PageSourceSearch

https://waytoidea.com/_next/static/chunks/8260.82c4159c5089a152.js

js waytoidea.com collected 2026-10-06 00:33:42 UTC 132,843 bytes, 34 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8260],{8260:function(t){()=>(()=>{var t=Object.defineProperty,e=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,n={};((e,i)=>{for(var s in i)t(e,s,{get:i[s],enumerable:!0})})(n,{Iti:()=>z,default:()=>K});var l=[];for(let t of[["af","93",0,null,"0"],["ax","358",1,["18","4"],"0"],["al","355",0,null,"0"],["dz","213",0,null,"0"],["as","1",5,["684"],"1"],["ad","376"],["ao","244"],["ai","1",6,["264"],"1"],["ag","1",7,["268"],"1"],["ar","54",0,null,"0"],["am","374",0,null,"0"],["aw","297"],["ac","247"],["au","61",0,["4"],"0"],["at","43",0,null,"0"],["az","994",0,null,"0"],["bs","1",8,["242"],"1"],["bh","973"],["bd","880",0,null,"0"],["bb","1",9,["246"],"1"],["by","375",0,null,"8"],["be","32",0,null,"0"],["bz","501"],["bj","229"],["bm","1",10,["441"],"1"],["bt","975"],["bo","591",0,null,"0"],["ba","387",0,null,"0"],["bw","267"],["br","55",0,null,"0"],["io","246"],["vg","1",11,["284"],"1"],["bn","673"],["bg","359",0,null,"0"],["bf","226"],["bi","257"],["kh","855",0,null,"0"],["cm","237"],["ca","1",1,["204","226","236","249","250","257","263","289","306","343","354","365","367","368","382","403","416","418","428","431","437","438","450","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","879","902","905","942"],"1"],["cv","238"],["bq","599",1,["3","4","7"]],["ky","1",12,["345"],"1"],["cf","236"],["td","235"],["cl","56"],["cn","86",0,null,"0"],["cx","61",2,["4","89164"],"0"],["cc","61",1,["4","89162"],"0"],["co","57",0,null,"0"],["km","269"],["cg","242"],["cd","243",0,null,"0"],["ck","682"],["cr","506"],["ci","225"],["hr","385",0,null,"0"],["cu","53",0,null,"0"],["cw","599",0],["cy","357"],["cz","420"],["dk","45"],["dj","253"],["dm","1",13,["767"],"1"],["do","1",2,["809","829","849"],"1"],["ec","593",0,null,"0"],["eg","20",0,null,"0"],["sv","503"],["gq","240"],["er","291",0,null,"0"],["ee","372"],["sz","268"],["et","251",0,null,"0"],["fk","500"],["fo","298"],["fj","679"],["fi","358",0,["4"],"0"],["fr","33",0,null,"0"],["gf","594",0,null,"0"],["pf","689"],["ga","241"],["gm","220"],["ge","995",0,null,"0"],["de","49",0,null,"0"],["gh","233",0,null,"0"],["gi","350"],["gr","30"],["gl","299"],["gd","1",14,["473"],"1"],["gp","590",0,null,"0"],["gu","1",15,["671"],"1"],["gt","502"],["gg","44",1,["1481","7781","7839","7911"],"0"],["gn","224"],["gw","245"],["gy","592"],["ht","509"],["hn","504"],["hk","852"],["hu","36",0,null,"06"],["is","354"],["in","91",0,null,"0"],["id","62",0,null,"0"],["ir","98",0,null,"0"],["iq","964",0,null,"0"],["ie","353",0,null,"0"],["im","44",2,["1624","74576","7524","7624","7924"],"0"],["il","972",0,null,"0"],["it","39",0,["3"]],["jm","1",4,["658","876"],"1"],["jp","81",0,null,"0"],["je","44",3,["1534","7509","7700","7797","7829","7937"],"0"],["jo","962",0,null,"0"],["kz","7",1,["33","7"],"8"],["ke","254",0,null,"0"],["ki","686",0,null,"0"],["xk","383",0,null,"0"],["kw","965"],["kg","996",0,null,"0"],["la","856",0,null,"0"],["lv","371"],["lb","961",0,null,"0"],["ls","266"],["lr","231",0,null,"0"],["ly","218",0,null,"0"],["li","423",0,null,"0"],["lt","370",0,null,"0"],["lu","352"],["mo","853"],["mg","261",0,null,"0"],["mw","265",0,null,"0"],["my","60",0,null,"0"],["mv","960"],["ml","223"],["mt","356"],["mh","692",0,null,"1"],["mq","596",0,null,"0"],["mr","222"],["mu","230"],["yt","262",1,["269","639"],"0"],["mx","52"],["fm","691"],["md","373",0,null,"0"],["mc","377",0,null,"0"],["mn","976",0,null,"0"],["me","382",0,null,"0"],["ms","1",16,["664"],"1"],["ma","212",0,["6","7"],"0"],["mz","258"],["mm","95",0,null,"0"],["na","264",0,null,"0"],["nr","674"],["np","977",0,null,"0"],["nl","31",0,null,"0"],["nc","687"],["nz","64",0,null,"0"],["ni","505"],["ne","227"],["ng","234",0,null,"0"],["nu","683"],["nf","672"],["kp","850",0,null,"0"],["mk","389",0,null,"0"],["mp","1",17,["670"],"1"],["no","47",0,["4","9"]],["om","968"],["pk","92",0,null,"0"],["pw","680"],["ps","970",0,null,"0"],["pa","507"],["pg","675"],["py","595",0,null,"0"],["pe","51",0,null,"0"],["ph","63",0,null,"0"],["pl","48"],["pt","351"],["pr","1",3,["787","939"],"1"],["qa","974"],["re","262",0,null,"0"],["ro","40",0,null,"0"],["ru","7",0,["33"],"8"],["rw","250",0,null,"0"],["ws","685"],["sm","378"],["st","239"],["sa","966",0,null,"0"],["sn","221"],["rs","381",0,null,"0"],["sc","248"],["sl","232",0,null,"0"],["sg","65"],["sx","1",21,["721"],"1"],["sk","421",0,null,"0"],["si","386",0,null,"0"],["sb","677"],["so","252",0,null,"0"],["za","27",0,null,"0"],["kr","82",0,null,"0"],["ss","211",0,null,"0"],["es","34"],["lk","94",0,null,"0"],["bl","590",1,null,"0"],["sh","290"],["kn","1",18,["869"],"1"],["lc","1",19,["758"],"1"],["mf","590",2,null,"0"],["pm","508",0,null,"0"],["vc","1",20,["784"],"1"],["sd","249",0,null,"0"],["sr","597"],["sj","47",1,["4","79","9"]],["se","46",0,null,"0"],["ch","41",0,null,"0"],["sy","963",0,null,"0"],["tw","886",0,null,"0"],["tj","992"],["tz","255",0,null,"0"],["th","66",0,null,"0"],["tl","670"],["tg","228"],["tk","690"],["to","676"],["tt","1",22,["868"],"1"],["tn","216"],["tr","90",0,null,"0"],["tm","993",0,null,"8"],["tc","1",23,["649"],"1"],["tv","688"],["vi","1",24,["340"],"1"],["ug","256",0,null,"0"],["ua","380",0,null,"0"],["ae","971",0,null,"0"],["gb","44",0,null,"0"],["us","1",0,null,"1"],["uy","598",0,null,"0"],["uz","998"],["vu","678"],["va","39",1,["06698","3"]],["ve","58",0,null,"0"],["vn","84",0,null,"0"],["wf","681"],["eh","212",1,["5288","5289","6","7"],"0"],["ye","967",0,null,"0"],["zm","260",0,null,"0"],["zw","263",0,null,"0"]])l.push({name:"",iso2:t[0],dialCode:t[1],priority:t[2]||0,areaCodes:t[3]||null,
1nodeById:{},nationalPrefix:t[4]||null,normalisedName:"",initials:"",dialCodePlus:""});var r={ad:"Andorra",ae:"United Arab Emirates",af:"Afghanistan",ag:"Antigua & Barbuda",ai:"Anguilla",al:"Albania",am:"Armenia",ao:"Angola",ar:"Argentina",as:"American Samoa",at:"Austria",au:"Australia",aw:"Aruba",ax:"\xc5land Islands",az:"Azerbaijan",ba:"Bosnia & Herzegovina",bb:"Barbados",bd:"Bangladesh",be:"Belgium",bf:"Burkina Faso",bg:"Bulgaria",bh:"Bahrain",bi:"Burundi",bj:"Benin",bl:"St. Barth\xe9lemy",bm:"Bermuda",bn:"Brunei",bo:"Bolivia",bq:"Caribbean Netherlands",br:"Brazil",bs:"Bahamas",bt:"Bhutan",bw:"Botswana",by:"Belarus",bz:"Belize",ca:"Canada",cc:"Cocos (Keeling) Islands",cd:"Congo - Kinshasa",cf:"Central African Republic",cg:"Congo - Brazzaville",ch:"Switzerland",ci:"C\xf4te d’Ivoire",ck:"Cook Islands",cl:"Chile",cm:"Cameroon",cn:"China",co:"Colombia",cr:"Costa Rica",cu:"Cuba",cv:"Cape Verde",cw:"Cura\xe7ao",cx:"Christmas Island",cy:"Cyprus",cz:"Czechia",de:"Germany",dj:"Djibouti",dk:"Denmark",dm:"Dominica",do:"Dominican Republic",dz:"Algeria",ec:"Ecuador",ee:"Estonia",eg:"Egypt",eh:"Western Sahara",er:"Eritrea",es:"Spain",et:"Ethiopia",fi:"Finland",fj:"Fiji",fk:"Falkland Islands",fm:"Micronesia",fo:"Faroe Islands",fr:"France",ga:"Gabon",gb:"United Kingdom",gd:"Grenada",ge:"Georgia",gf:"French Guiana",gg:"Guernsey",gh:"Ghana",gi:"Gibraltar",gl:"Greenland",gm:"Gambia",gn:"Guinea",gp:"Guadeloupe",gq:"Equatorial Guinea",gr:"Greece",gt:"Guatemala",gu:"Guam",gw:"Guinea-Bissau",gy:"Guyana",hk:"Hong Kong SAR China",hn:"Honduras",hr:"Croatia",ht:"Haiti",hu:"Hungary",id:"Indonesia",ie:"Ireland",il:"Israel",im:"Isle of Man",in:"India",io:"British Indian Ocean Territory",iq:"Iraq",ir:"Iran",is:"Iceland",it:"Italy",je:"Jersey",jm:"Jamaica",jo:"Jordan",jp:"Japan",ke:"Kenya",kg:"Kyrgyzstan",kh:"Cambodia",ki:"Kiribati",km:"Comoros",kn:"St. Kitts & Nevis",kp:"North Korea",kr:"South Korea",kw:"Kuwait",ky:"Cayman Islands",kz:"Kazakhstan",la:"Laos",lb:"Lebanon",lc:"St. Lucia",li:"Liechtenstein",lk:"Sri Lanka",lr:"Liberia",ls:"Lesotho",lt:"Lithuania",lu:"Luxembourg",lv:"Latvia",ly:"Libya",ma:"Morocco",mc:"Monaco",md:"Moldova",me:"Montenegro",mf:"St. Martin",mg:"Madagascar",mh:"Marshall Islands",mk:"North Macedonia",ml:"Mali",mm:"Myanmar (Burma)",mn:"Mongolia",mo:"Macao SAR China",mp:"Northern Mariana Islands",mq:"Martinique",mr:"Mauritania",ms:"Montserrat",mt:"Malta",mu:"Mauritius",mv:"Maldives",mw:"Malawi",mx:"Mexico",my:"Malaysia",mz:"Mozambique",na:"Namibia",nc:"New Caledonia",ne:"Niger",nf:"Norfolk Island",ng:"Nigeria",ni:"Nicaragua",nl:"Netherlands",no:"Norway",np:"Nepal",nr:"Nauru",nu:"Niue",nz:"New Zealand",om:"Oman",pa:"Panama",pe:"Peru",pf:"French Polynesia",pg:"Papua New Guinea",ph:"Philippines",pk:"Pakistan",pl:"Poland",pm:"St. Pierre & Miquelon",pr:"Puerto Rico",ps:"Palestinian Territories",pt:"Portugal",pw:"Palau",py:"Paraguay",qa:"Qatar",re:"R\xe9union",ro:"Romania",rs:"Serbia",ru:"Russia",rw:"Rwanda",sa:"Saudi Arabia",sb:"Solomon Islands",sc:"Seychelles",sd:"Sudan",se:"Sweden",sg:"Singapore",sh:"St. Helena",si:"Slovenia",sj:"Svalbard & Jan Mayen",sk:"Slovakia",sl:"Sierra Leone",sm:"San Marino",sn:"Senegal",so:"Somalia",sr:"Suriname",ss:"South Sudan",st:"S\xe3o Tom\xe9 & Pr\xedncipe",sv:"El Salvador",sx:"Sint Maarten",sy:"Syria",sz:"Eswatini",tc:"Turks & Caicos Islands",td:"Chad",tg:"Togo",th:"Thailand",tj:"Tajikistan",tk:"Tokelau",tl:"Timor-Leste",tm:"Turkmenistan",tn:"Tunisia",to:"Tonga",tr:"Turkey",tt:"Trinidad & Tobago",tv:"Tuvalu",tw:"Taiwan",tz:"Tanzania",ua:"Ukraine",ug:"Uganda",us:"United States",uy:"Uruguay",uz:"Uzbekistan",va:"Vatican City",vc:"St. Vincent & Grenadines",ve:"Venezuela",vg:"British Virgin Islands",vi:"U.S. Virgin Islands",vn:"Vietnam",vu:"Vanuatu",wf:"Wallis & Futuna",ws:"Samoa",ye:"Yemen",yt:"Mayotte",za:"South Africa",zm:"Zambia",zw:"Zimbabwe",selectedCountryAriaLabel:"Change country, selected ${countryName} (${dialCode})",noCountrySelected:"Select country",countryListAriaLabel:"List of countries",searchPlaceholder:"Search",clearSearchAriaLabel:"Clear search",zeroSearchResults:"No results found",oneSearchResult:"1 result found",multipleSearchResults:"${count} results found",ac:"Ascension Island",xk:"Kosovo"},o={HIDE:"iti__hide",V_HIDE:"iti__v-hide",ARROW_UP:"iti__arrow--up",GLOBE:"iti__globe",FLAG:"iti__flag",COUNTRY_ITEM:"iti__country",HIGHLIGHT:"iti__highlight"},a={ARROW_UP:"ArrowUp",ARROW_DOWN:"ArrowDown",SPACE:" ",ENTER:"Enter",ESC:"Escape",TAB:"Tab"}
1,u={PASTE:"insertFromPaste",DELETE_FWD:"deleteContentForward"},h={ALPHA_UNICODE:/\p{L}/u,NON_PLUS_NUMERIC:/[^+0-9]/,NON_PLUS_NUMERIC_GLOBAL:/[^+0-9]/g,HIDDEN_SEARCH_CHAR:/^[a-zA-ZÀ-ÿа-яА-Я ]$/},d={HIDDEN_SEARCH_RESET_MS:1e3},c={SANE_SELECTED_WITH_DIAL_WIDTH:78,SANE_SELECTED_NO_DIAL_WIDTH:42,INPUT_PADDING_EXTRA_LEFT:6},p={NANP:"1"},m={DIAL_CODE:"44",MOBILE_PREFIX:"7",MOBILE_CORE_LENGTH:10},C={ISO2:"us"},g={AGGRESSIVE:"aggressive",POLITE:"polite"},y="auto",_={EXPANDED:"aria-expanded",LABEL:"aria-label",SELECTED:"aria-selected",ACTIVE_DESCENDANT:"aria-activedescendant",HASPOPUP:"aria-haspopup",CONTROLS:"aria-controls",HIDDEN:"aria-hidden",AUTOCOMPLETE:"aria-autocomplete",MODAL:"aria-modal"},b=t=>"undefined"!=typeof window&&"function"==typeof window.matchMedia&&window.matchMedia(t).matches,I={allowPhonewords:!1,allowDropdown:!0,autoPlaceholder:g.POLITE,containerClass:"",countryOrder:null,countrySearch:!0,customPlaceholder:null,dropdownContainer:null,excludeCountries:[],fixDropdownWidth:!0,formatAsYouType:!0,formatOnDisplay:!0,geoIpLookup:null,hiddenInput:null,i18n:{},initialCountry:"",loadUtils:null,nationalMode:!0,onlyCountries:[],placeholderNumberType:"MOBILE",showFlags:!0,separateDialCode:!1,strictMode:!1,useFullscreenPopup:(()=>{if("undefined"!=typeof navigator&&"undefined"!=typeof window){let t=/Android.+Mobile|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),e=b("(max-width: 500px)"),i=b("(max-height: 600px)"),s=b("(pointer: coarse)");return t||e||s&&i}return!1})(),validationNumberTypes:["MOBILE"]},f=(t,e)=>{t.useFullscreenPopup&&(t.fixDropdownWidth=!1),1===t.onlyCountries.length&&(t.initialCountry=t.onlyCountries[0]),t.separateDialCode&&(t.nationalMode=!1),!t.allowDropdown||t.showFlags||t.separateDialCode||(t.nationalMode=!1),t.useFullscreenPopup&&!t.dropdownContainer&&(t.dropdownContainer=document.body),t.i18n={...e,...t.i18n}},L=t=>t.replace(/\D/g,""),D=(t="")=>t.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase(),w=(t,e)=>{let i=D(e),s=[],n=[],l=[],r=[],o=[],a=[];for(let e of t)e.iso2===i?s.push(e):e.normalisedName.startsWith(i)?n.push(e):e.normalisedName.includes(i)?l.push(e):i===e.dialCode||i===e.dialCodePlus?r.push(e):e.dialCodePlus.includes(i)?o.push(e):e.initials.includes(i)&&a.push(e);let u=(t,e)=>t.priority-e.priority;return[...s.sort(u),...n.sort(u),...l.sort(u),...r.sort(u),...o.sort(u),...a.sort(u)]},N=(t,e)=>{let i=e.toLowerCase();for(let e of t)if(e.name.toLowerCase().startsWith(i))return e;return null},E=t=>Object.keys(t).filter(e=>!!t[e]).join(" "),A=(t,e,i)=>{let s=document.createElement(t);return e&&Object.entries(e).forEach(([t,e])=>s.setAttribute(t,e)),i&&i.appendChild(s),s},S=()=>`
2  <svg class="iti__search-icon-svg" width="14" height="14" viewBox="0 0 24 24" focusable="false" ${_.HIDDEN}="true">
3    <circle cx="11" cy="11" r="7" />
4    <line x1="21" y1="21" x2="16.65" y2="16.65" />
5  </svg>`,T=t=>{let e=`iti-${t}-clear-mask`;return`
6    <svg class="iti__search-clear-svg" width="12" height="12" viewBox="0 0 16 16" ${_.HIDDEN}="true" focusable="false">
7      <mask id="${e}" maskUnits="userSpaceOnUse">
8        <rect width="16" height="16" fill="white" />
9        <path d="M5.2 5.2 L10.8 10.8 M10.8 5.2 L5.2 10.8" stroke="black" stroke-linecap="round" class="iti__search-clear-x" />
10      </mask>
11      <circle cx="8" cy="8" r="8" class="iti__search-clear-bg" mask="url(#${e})" />
12    </svg>`},v=class{constructor(t,e,i){this.highlightedItem=null,this.selectedItem=null,t.dataset.intlTelInputId=i.toString(),this.telInput=t,this.options=e,this.id=i,this.hadInitialPlaceholder=!!t.getAttribute("placeholder"),this.isRTL=!!this.telInput.closest("[dir=rtl]"),this.options.separateDialCode&&(this.originalPaddingLeft=this.telInput.style.paddingLeft)}generateMarkup(t){this.countries=t,this._prepareTelInput();let e=this._createWrapperAndInsert();this._maybeBuildCountryContainer(e),e.appendChild(this.telInput),this._maybeUpdateInputPaddingAndReveal(),this._maybeBuildHiddenInputs(e)}_prepareTelInput(){this.telInput.classList.add("iti__tel-input"),this.telInput.hasAttribute("autocomplete")||this.telInput.form?.hasAttribute("autocomplete")||this.telInput.setAttribute("autocomplete","off")}_createWrapperAndInsert(){let{allowDropdown:t,showFlags:e,containerClass:i,useFullscreenPopup:s}=this.options,n=A("div",{class:E({iti:!0,"iti--allow-dropdown":t,"iti--show-flags":e,"iti--inline-dropdown":!s,[i]:!!i})});return this.isRTL&&n.setAttribute("dir","ltr"),this.telInput.before(n),n}_maybeBuildCountryContainer(t){let{allowDropdown:e,separateDialCode:i,show
12Flags:s}=this.options;if(e||s||i){this.countryContainer=A("div",{class:`iti__country-container ${o.V_HIDE}`},t),e?(this.selectedCountry=A("button",{type:"button",class:"iti__selected-country",[_.EXPANDED]:"false",[_.LABEL]:this.options.i18n.noCountrySelected,[_.HASPOPUP]:"dialog",[_.CONTROLS]:`iti-${this.id}__dropdown-content`},this.countryContainer),this.telInput.disabled&&this.selectedCountry.setAttribute("disabled","true")):this.selectedCountry=A("div",{class:"iti__selected-country"},this.countryContainer);let s=A("div",{class:"iti__selected-country-primary"},this.selectedCountry);this.selectedCountryInner=A("div",{class:o.FLAG},s),e&&(this.dropdownArrow=A("div",{class:"iti__arrow",[_.HIDDEN]:"true"},s)),i&&(this.selectedDialCode=A("div",{class:"iti__selected-dial-code"},this.selectedCountry)),e&&this._buildDropdownContent()}}_buildDropdownContent(){let{fixDropdownWidth:t,useFullscreenPopup:e,countrySearch:i,i18n:s,dropdownContainer:n,containerClass:l}=this.options;if(this.dropdownContent=A("div",{id:`iti-${this.id}__dropdown-content`,class:`iti__dropdown-content ${o.HIDE} ${t?"":"iti--flexible-dropdown-width"}`,role:"dialog",[_.MODAL]:"true"}),this.isRTL&&this.dropdownContent.setAttribute("dir","rtl"),i&&this._buildSearchUI(),this.countryList=A("ul",{class:"iti__country-list",id:`iti-${this.id}__country-listbox`,role:"listbox",[_.LABEL]:s.countryListAriaLabel},this.dropdownContent),this._appendListItems(),i&&this.updateSearchResultsA11yText(),n){let t=E({iti:!0,"iti--container":!0,"iti--fullscreen-popup":e,"iti--inline-dropdown":!e,[l]:!!l});this.dropdown=A("div",{class:t}),this.dropdown.appendChild(this.dropdownContent)}else this.countryContainer.appendChild(this.dropdownContent)}_buildSearchUI(){let{i18n:t}=this.options,e=A("div",{class:"iti__search-input-wrapper"},this.dropdownContent);this.searchIcon=A("span",{class:"iti__search-icon",[_.HIDDEN]:"true"},e),this.searchIcon.innerHTML=S(),this.searchInput=A("input",{id:`iti-${this.id}__search-input`,type:"search",class:"iti__search-input",placeholder:t.searchPlaceholder,role:"combobox",[_.EXPANDED]:"true",[_.LABEL]:t.searchPlaceholder,[_.CONTROLS]:`iti-${this.id}__country-listbox`,[_.AUTOCOMPLETE]:"list",autocomplete:"off"},e),this.searchClearButton=A("button",{type:"button",class:`iti__search-clear ${o.HIDE}`,[_.LABEL]:t.clearSearchAriaLabel,tabindex:"-1"},e),this.searchClearButton.innerHTML=T(this.id),this.searchResultsA11yText=A("span",{class:"iti__a11y-text"},this.dropdownContent),this.searchNoResults=A("div",{class:`iti__no-results ${o.HIDE}`,[_.HIDDEN]:"true"},this.dropdownContent),this.searchNoResults.textContent=t.zeroSearchResults}_maybeUpdateInputPaddingAndReveal(){this.countryContainer&&(this.updateInputPadding(),this.countryContainer.classList.remove(o.V_HIDE))}_maybeBuildHiddenInputs(t){let{hiddenInput:e}=this.options;if(e){let i=e(this.telInput.getAttribute("name")||"");if(i.phone){let e=this.telInput.form?.querySelector(`input[name="${i.phone}"]`);e?this.hiddenInput=e:(this.hiddenInput=A("input",{type:"hidden",name:i.phone}),t.appendChild(this.hiddenInput))}if(i.country){let e=this.telInput.form?.querySelector(`input[name="${i.country}"]`);e?this.hiddenInputCountry=e:(this.hiddenInputCountry=A("input",{type:"hidden",name:i.country}),t.appendChild(this.hiddenInputCountry))}}}_appendListItems(){let t=document.createDocumentFragment();for(let e=0;e<this.countries.length;e++){let i=this.countries[e],s=E({[o.COUNTRY_ITEM]:!0}),n=A("li",{id:`iti-${this.id}__item-${i.iso2}`,class:s,tabindex:"-1",role:"option",[_.SELECTED]:"false"});n.dataset.dialCode=i.dialCode,n.dataset.countryCode=i.iso2,i.nodeById[this.id]=n,this.options.showFlags&&A("div",{class:`${o.FLAG} iti__${i.iso2}`},n),A("span",{class:"iti__country-name"},n).textContent=i.name;let l=A("span",{class:"iti__dial-code"},n);this.isRTL&&l.setAttribute("dir","ltr"),l.textContent=`+${i.dialCode}`,t.appendChild(n)}this.countryList.appendChild(t)}updateInputPadding(){if(this.selectedCountry){let t=this.options.separateDialCode?c.SANE_SELECTED_WITH_DIAL_WIDTH:c.SANE_SELECTED_NO_DIAL_WIDTH,e=(this.selectedCountry.offsetWidth||this._getHiddenSelectedCountryWidth()||t)+c.INPUT_PADDING_EXTRA_LEFT;this.telInput.style.paddingLeft=`${e}px`}}_getHiddenSelectedCountryWidth(){if(this.telInput.parentNode){let t;try{t=window.top.document.body}catch(e){t=document.body}let e=this.telInput.parentNode.cloneNode(!1);e.style.visibility="hidden",t.appendChild(e);let i=this.countryContainer.cloneNode();e.appendChild(i);let s=this.selectedCountry.cloneNode(!0);i.appendChild(s);let n=s.offsetWidth;return t.removeChild(e),n}return 0}updateSearchResultsA11yText(){let t;let{i18n:e}=this.options,i=this.countryList.childElementCount;t=0===i?e.zeroSearchResults:e.searchResultsText?e.searchResultsText(i):1===i?e.oneSearchResult:e.multipleSearchResults.replace("${count}",i.toString()),this.searchResultsA11yText.textContent=t}scrollTo(t){let e=this.countryList,i=document.documentElement.scrollTop,s=e.offsetHeight,n=e.getBoundingClientRect().top+i,l=t.offsetHeight,r=t.getBoundingClientRect().top+i,o=r-n+e.scrollTop;
12r<n?e.scrollTop=o:r+l>n+s&&(e.scrollTop=o-(s-l))}highlightListItem(t,e){let i=this.highlightedItem;if(i&&i.classList.remove(o.HIGHLIGHT),this.highlightedItem=t,this.highlightedItem&&(this.highlightedItem.classList.add(o.HIGHLIGHT),this.options.countrySearch)){let t=this.highlightedItem.getAttribute("id")||"";this.searchInput.setAttribute(_.ACTIVE_DESCENDANT,t)}e&&this.highlightedItem.focus()}updateSelectedItem(t){if(this.selectedItem&&this.selectedItem.dataset.countryCode!==t&&(this.selectedItem.setAttribute(_.SELECTED,"false"),this.selectedItem=null),t&&!this.selectedItem){let e=this.countryList.querySelector(`[data-country-code="${t}"]`);e&&(e.setAttribute(_.SELECTED,"true"),this.selectedItem=e)}}filterCountries(t){this.countryList.innerHTML="";let e=!0;for(let i of t){let t=i.nodeById[this.id];t&&(this.countryList.appendChild(t),e&&(this.highlightListItem(t,!1),e=!1))}e?(this.highlightListItem(null,!1),this.searchNoResults&&this.searchNoResults.classList.remove(o.HIDE)):this.searchNoResults&&this.searchNoResults.classList.add(o.HIDE),this.countryList.scrollTop=0,this.updateSearchResultsA11yText()}destroy(){this.telInput.iti=void 0,delete this.telInput.dataset.intlTelInputId,this.options.separateDialCode&&(this.telInput.style.paddingLeft=this.originalPaddingLeft);let t=this.telInput.parentNode;for(let e of(t.before(this.telInput),t.remove(),this.telInput=null,this.countryContainer=null,this.selectedCountry=null,this.selectedCountryInner=null,this.selectedDialCode=null,this.dropdownArrow=null,this.dropdownContent=null,this.searchInput=null,this.searchIcon=null,this.searchClearButton=null,this.searchNoResults=null,this.searchResultsA11yText=null,this.countryList=null,this.dropdown=null,this.hiddenInput=null,this.hiddenInputCountry=null,this.highlightedItem=null,this.selectedItem=null,this.countries))delete e.nodeById[this.id];this.countries=null}},P=t=>{let{onlyCountries:e,excludeCountries:i}=t;if(e.length){let t=e.map(t=>t.toLowerCase());return l.filter(e=>t.includes(e.iso2))}if(i.length){let t=i.map(t=>t.toLowerCase());return l.filter(e=>!t.includes(e.iso2))}return l},R=(t,e)=>{for(let i of t){let t=i.iso2.toLowerCase();e.i18n[t]&&(i.name=e.i18n[t])}},k=t=>{let e=new Set,i=0,s={},n=(t,e)=>{if(!t||!e)return;e.length>i&&(i=e.length),s.hasOwnProperty(e)||(s[e]=[]);let n=s[e];n.includes(t)||n.push(t)};for(let i of[...t].sort((t,e)=>t.priority-e.priority)){e.has(i.dialCode)||e.add(i.dialCode);for(let t=1;t<i.dialCode.length;t++){let e=i.dialCode.substring(0,t);n(i.iso2,e)}if(n(i.iso2,i.dialCode),i.areaCodes){let t=s[i.dialCode][0];for(let e of i.areaCodes){for(let s=1;s<e.length;s++){let l=e.substring(0,s),r=i.dialCode+l;n(t,r),n(i.iso2,r)}n(i.iso2,i.dialCode+e)}}}return{dialCodes:e,dialCodeMaxLen:i,dialCodeToIso2Map:s}},O=(t,e)=>{e.countryOrder&&(e.countryOrder=e.countryOrder.map(t=>t.toLowerCase())),t.sort((t,i)=>{let{countryOrder:s}=e;if(s){let e=s.indexOf(t.iso2),n=s.indexOf(i.iso2),l=e>-1,r=n>-1;if(l||r)return l&&r?e-n:l?-1:1}return t.name.localeCompare(i.name)})},M=t=>{for(let e of t)e.normalisedName=D(e.name),e.initials=e.normalisedName.split(/[^a-z]/).map(t=>t[0]).join(""),e.dialCodePlus=`+${e.dialCode}`},H=(t,e,i,s)=>{let n=t;if(i&&e){let t=" "===n[(e=`+${s.dialCode}`).length]||"-"===n[e.length]?e.length+1:e.length;n=n.substring(t)}return n},x=(t,e,i,s,n)=>{let l=i?i.formatNumberAsYouType(t,s.iso2):t,{dialCode:r}=s;return n&&"+"!==e.charAt(0)&&l.includes(`+${r}`)?(l.split(`+${r}`)[1]||"").trim():l},B=(t,e,i,s)=>{if(0===i&&!s)return 0;let n=0;for(let i=0;i<e.length;i++){if(/[+0-9]/.test(e[i])&&n++,n===t&&!s)return i+1;if(s&&n===t+1)return i}return e.length},U=["800","822","833","844","855","866","877","880","881","882","883","884","885","886","887","888","889"],F=t=>{let e=L(t);if(e.startsWith(p.NANP)&&e.length>=4){let t=e.substring(1,4);return U.includes(t)}return!1};for(let t of l)t.name=r[t.iso2];var $=0,W=new Set(l.map(t=>t.iso2)),G=t=>W.has(t),z=class t{constructor(e,i={}){this.id=$++,this.options={...I,...i},f(this.options,r),this.ui=new v(e,this.options,this.id),this.isAndroid=t._getIsAndroid(),this.promise=this._createInitPromises(),this.countries=P(this.options);let{dialCodes:s,dialCodeMaxLen:n,dialCodeToIso2Map:l}=k(this.countries);this.dialCodes=s,this.dialCodeMaxLen=n,this.dialCodeToIso2Map=l,this.countryByIso2=new Map(this.countries.map(t=>[t.iso2,t])),this._init()}static _getIsAndroid(){return"undefined"!=typeof navigator&&/Android/i.test(navigator.userAgent)}_updateNumeralSet(t){/[\u0660-\u0669]/.test(t)?this.userNumeralSet="arabic-indic":/[\u06F0-\u06F9]/.test(t)?this.userNumeralSet="persian":this.userNumeralSet="ascii"}_mapAsciiToUserNumerals(t){if(this.userNumeralSet||this._updateNumeralSet(this.ui.telInput.value),"ascii"===this.userNumeralSet)return t;let e="arabic-indic"===this.userNumeralSet?1632:1776;return t.replace(/[0-9]/g,t=>String.fromCharCode(e+Number(t)))}_normaliseNumerals(t){if(!t)return"";if(this._updateNumeralSet(t),"ascii"===this.userNumeralSet)return t;let e="arabic-indic"===this.userNumeralSet?1632:1776,i="arabic-indic"===this.userNumeralSet?/[\u0660-\u0669]/g:/[\u06F0-\u06F9]/g;return t.replace(i,t=>String.fromCharCode(48+(t.charCodeAt(0)-e)))}_getTelInputValue(){let t=this.ui.telInput.value.trim();return this._normaliseNumerals(t)}_setTelInputValue(t){this.ui.telInput.value=this._mapAsciiToUserNumerals(t)}_createInitPromises(){return Promise.all([new Promise((t,e)=>{this.resolveAutoCountryPromise=t,this.rejectAutoCountryPromise=e}),new Promise((t,e)=>{this.resolveUtilsScriptPromise=t,this.rejectUtilsScriptPromise=e})])}_init(){this.selectedCountryData={},this.abortController=new AbortController,this._processCountryData(),this.ui.generateMarkup(this.countries),this._setInitialState(),this._initListeners(),this._initRequests()}_processCountryData(){R(this.countries,this.options),O(this.countries,this.options),M(this.countries)}_setInitialState(t=!1){let e=this.ui.telInput.getAttribute("value"),i=this._normaliseNumerals(e),s=this._getTelInputValue(),n=i&&i.startsWith("+")&&(!s||!s.startsWith("+"))?i:s,l=this._getDialCode(n),r=F(n),{initialCountry:o,geoIpLookup:a}=this.options;if(l&&!r)this._updateCountryFromNumber(n);else if(!(o===y&&a)||t){let t=o?o.toLowerCase():"";G(t)?this._setCountry(t):l&&r?this._setCountry(C.ISO2):this._setCountry("")}
12n&&this._updateValFromNumber(n)}_initListeners(){this._initTelInputListeners(),this.options.allowDropdown&&this._initDropdownListeners(),(this.ui.hiddenInput||this.ui.hiddenInputCountry)&&this.ui.telInput.form&&this._initHiddenInputListener()}_initHiddenInputListener(){this.ui.telInput.form?.addEventListener("submit",()=>{this.ui.hiddenInput&&(this.ui.hiddenInput.value=this.getNumber()),this.ui.hiddenInputCountry&&(this.ui.hiddenInputCountry.value=this.selectedCountryData.iso2||"")},{signal:this.abortController.signal})}_initDropdownListeners(){let t=this.abortController.signal,e=this.ui.telInput.closest("label");e&&e.addEventListener("click",t=>{this.ui.dropdownContent.classList.contains(o.HIDE)?this.ui.telInput.focus():t.preventDefault()},{signal:t}),this.ui.selectedCountry.addEventListener("click",()=>{!this.ui.dropdownContent.classList.contains(o.HIDE)||this.ui.telInput.disabled||this.ui.telInput.readOnly||this._openDropdown()},{signal:t}),this.ui.countryContainer.addEventListener("keydown",t=>{this.ui.dropdownContent.classList.contains(o.HIDE)&&[a.ARROW_UP,a.ARROW_DOWN,a.SPACE,a.ENTER].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),this._openDropdown()),t.key===a.TAB&&this._closeDropdown()},{signal:t})}_initRequests(){let{loadUtils:t,initialCountry:e,geoIpLookup:i}=this.options;if(t&&!j.utils){let e=()=>{j.attachUtils(t)?.catch(()=>{})};j.documentReady()?e():window.addEventListener("load",()=>{e()},{signal:this.abortController.signal})}else this.resolveUtilsScriptPromise();e===y&&i&&!this.selectedCountryData.iso2?this._loadAutoCountry():this.resolveAutoCountryPromise()}_loadAutoCountry(){j.autoCountry?this.handleAutoCountry():j.startedLoadingAutoCountry||(j.startedLoadingAutoCountry=!0,"function"==typeof this.options.geoIpLookup&&this.options.geoIpLookup((t="")=>{let e=t.toLowerCase();G(e)?(j.autoCountry=e,setTimeout(()=>V("handleAutoCountry"))):(this._setInitialState(!0),V("rejectAutoCountryPromise"))},()=>{this._setInitialState(!0),V("rejectAutoCountryPromise")}))}_openDropdownWithPlus(){this._openDropdown(),this.ui.searchInput.value="+",this._filterCountriesByQuery("")}_initTelInputListeners(){this._bindInputListener(),this._maybeBindKeydownListener(),this._maybeBindPasteListener()}_bindInputListener(){let{strictMode:t,formatAsYouType:e,separateDialCode:i,allowDropdown:s,countrySearch:n}=this.options,l=!1;h.ALPHA_UNICODE.test(this._getTelInputValue())&&(l=!0),this.ui.telInput.addEventListener("input",r=>{let o=this._getTelInputValue();if(this.isAndroid&&r?.data==="+"&&i&&s&&n){let t=this.ui.telInput.selectionStart||0,e=o.substring(0,t-1),i=o.substring(t);this._setTelInputValue(e+i),this._openDropdownWithPlus();return}this._updateCountryFromNumber(o)&&this._triggerCountryChange();let a=r?.data&&h.NON_PLUS_NUMERIC.test(r.data),d=r?.inputType===u.PASTE&&o;a||d&&!t?l=!0:h.NON_PLUS_NUMERIC.test(o)||(l=!1);let c=r?.detail&&r.detail.isSetNumber,p="ascii"===this.userNumeralSet;if(e&&!l&&!c&&p){let t=this.ui.telInput.selectionStart||0,e=o.substring(0,t).replace(h.NON_PLUS_NUMERIC_GLOBAL,"").length,i=r?.inputType===u.DELETE_FWD,s=x(this._getFullNumber(),o,j.utils,this.selectedCountryData,this.options.separateDialCode),n=B(e,s,t,i);this._setTelInputValue(s),this.ui.telInput.setSelectionRange(n,n)}},{signal:this.abortController.signal})}_maybeBindKeydownListener(){let{strictMode:t,separateDialCode:e,allowDropdown:i,countrySearch:s}=this.options;(t||e)&&this.ui.telInput.addEventListener("keydown",n=>{if(n.key&&1===n.key.length&&!n.altKey&&!n.ctrlKey&&!n.metaKey){if(e&&i&&s&&"+"===n.key){n.preventDefault(),this._openDropdownWithPlus();return}if(t){let t=this._getTelInputValue(),i=!t.startsWith("+")&&0===this.ui.telInput.selectionStart&&"+"===n.key,s=this._normaliseNumerals(n.key),l=/^[0-9]$/.test(s),r=this.ui.telInput,o=r.selectionStart,a=r.selectionEnd,u=t.slice(0,o),h=t.slice(a),d=u+n.key+h,c=this._getFullNumber(d),p=j.utils.getCoreNumber(c,this.selectedCountryData.iso2),m=this.maxCoreNumberLength&&p.length>this.maxCoreNumberLength,C=this._getNewCountryFromNumber(c);(e?l:i||l)&&(!m||null!==C||i)||n.preventDefault()}}},{signal:this.abortController.signal})}_maybeBindPasteListener(){this.options.strictMode&&this.ui.telInput.addEventListener("paste",t=>{t.preventDefault();let e=this.ui.telInput,i=e.selectionStart,s=e.selectionEnd,n=this._getTelInputValue(),l=n.slice(0,i),r
12=n.slice(s),o=this.selectedCountryData.iso2,a=t.clipboardData.getData("text"),u=this._normaliseNumerals(a),d=0===i&&s>0,c=!n.startsWith("+")||d,p=u.replace(h.NON_PLUS_NUMERIC_GLOBAL,""),m=p.startsWith("+"),C=p.replace(/\+/g,""),g=m&&c?`+${C}`:C,y=l+g+r;if(y.length>5){let t=j.utils.getCoreNumber(y,o);for(;0===t.length&&y.length>0;)y=y.slice(0,-1),t=j.utils.getCoreNumber(y,o);if(!t)return;if(this.maxCoreNumberLength&&t.length>this.maxCoreNumberLength){if(e.selectionEnd!==n.length)return;{let e=t.length-this.maxCoreNumberLength;y=y.slice(0,y.length-e)}}}this._setTelInputValue(y);let _=i+g.length;e.setSelectionRange(_,_),e.dispatchEvent(new InputEvent("input",{bubbles:!0}))},{signal:this.abortController.signal})}_cap(t){let e=Number(this.ui.telInput.getAttribute("maxlength"));return e&&t.length>e?t.substring(0,e):t}_trigger(t,e={}){let i=new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:e});this.ui.telInput.dispatchEvent(i)}_openDropdown(){let{fixDropdownWidth:t,countrySearch:e}=this.options;if(this.dropdownAbortController=new AbortController,t&&(this.ui.dropdownContent.style.width=`${this.ui.telInput.offsetWidth}px`),this.ui.dropdownContent.classList.remove(o.HIDE),this.ui.selectedCountry.setAttribute(_.EXPANDED,"true"),this._setDropdownPosition(),e){let t=this.ui.countryList.firstElementChild;t&&(this.ui.highlightListItem(t,!1),this.ui.countryList.scrollTop=0),this.ui.searchInput.focus()}this._bindDropdownListeners(),this.ui.dropdownArrow.classList.add(o.ARROW_UP),this._trigger("open:countrydropdown")}_setDropdownPosition(){if(this.options.dropdownContainer&&this.options.dropdownContainer.appendChild(this.ui.dropdown),!this.options.useFullscreenPopup){let t=this.ui.telInput.getBoundingClientRect(),e=this.ui.telInput.offsetHeight;this.options.dropdownContainer&&(this.ui.dropdown.style.top=`${t.top+e}px`,this.ui.dropdown.style.left=`${t.left}px`,window.addEventListener("scroll",()=>this._closeDropdown(),{signal:this.dropdownAbortController.signal}))}}_bindDropdownListeners(){let t=this.dropdownAbortController.signal;this._bindDropdownMouseoverListener(t),this._bindDropdownCountryClickListener(t),this._bindDropdownClickOffListener(t),this._bindDropdownKeydownListener(t),this.options.countrySearch&&this._bindDropdownSearchListeners(t)}_bindDropdownMouseoverListener(t){this.ui.countryList.addEventListener("mouseover",t=>{let e=t.target?.closest(`.${o.COUNTRY_ITEM}`);e&&this.ui.highlightListItem(e,!1)},{signal:t})}_bindDropdownCountryClickListener(t){this.ui.countryList.addEventListener("click",t=>{let e=t.target?.closest(`.${o.COUNTRY_ITEM}`);e&&this._selectListItem(e)},{signal:t})}_bindDropdownClickOffListener(t){let e=t=>{t.target.closest(`#iti-${this.id}__dropdown-content`)||this._closeDropdown()};setTimeout(()=>{document.documentElement.addEventListener("click",e,{signal:t})},0)}_bindDropdownKeydownListener(t){let e="",i=null;document.addEventListener("keydown",t=>{[a.ARROW_UP,a.ARROW_DOWN,a.ENTER,a.ESC].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),t.key===a.ARROW_UP||t.key===a.ARROW_DOWN?this._handleUpDownKey(t.key):t.key===a.ENTER?this._handleEnterKey():t.key===a.ESC&&(this._closeDropdown(),this.ui.selectedCountry.focus())),!this.options.countrySearch&&h.HIDDEN_SEARCH_CHAR.test(t.key)&&(t.stopPropagation(),i&&clearTimeout(i),e+=t.key.toLowerCase(),this._searchForCountry(e),i=setTimeout(()=>{e=""},d.HIDDEN_SEARCH_RESET_MS))},{signal:t})}_bindDropdownSearchListeners(t){let e=()=>{let t=this.ui.searchInput.value.trim();this._filterCountriesByQuery(t),this.ui.searchInput.value?this.ui.searchClearButton.classList.remove(o.HIDE):this.ui.searchClearButton.classList.add(o.HIDE)},i=null;this.ui.searchInput.addEventListener("input",()=>{i&&clearTimeout(i),i=setTimeout(()=>{e(),i=null},100)},{signal:t}),this.ui.searchClearButton.addEventListener("click",()=>{this.ui.searchInput.value="",this.ui.searchInput.focus(),e()},{signal:t})}_searchForCountry(t){let e=N(this.countries,t);if(e){let t=e.nodeById[this.id];this.ui.highlightListItem(t,!1),this.ui.scrollTo(t)}}_filterCountriesByQuery(t){let e;e=""===t?this.countries:w(this.countries,t),this.ui.filterCountries(e)}_handleUpDownKey(t){let e=t===a.ARROW_UP?this.ui.highlightedItem?.previousElementSibling:this.ui.highlightedItem?.nextElementSibling;!e&&this.ui.countryList.childElementCount>1&&(e=t===a.ARROW_UP?this.ui.countryList.lastElementChild:this.ui.countryList.firstElementChild),e&&(this.ui.scrollTo(e),this.ui.highlightListItem(e,!1))}_handleEnterKey(){this.ui.highlightedItem&&this._selectListItem(this.ui.highlightedItem)}_updateValFromNumber(t){let e=t;if(this.options.formatOnDisplay&&j.utils&&this.selectedCountryData){let t=this.options.nationalMode||!e.startsWith("+")&&!this.options.separateDialCode,{NATIONAL:i,INTERNATIONAL:s}=j.utils.numberFormat;e=j.utils.formatNumber(e,this.selectedCountryData.iso2,t?i:s)}e=this._beforeSetNumber(e),this._setTelInputValue(e)}_updateCountryFromNumber(t){let e=this._getNewCountryFromNumber(t);return null!==e&&this._setCountry(e)}_ensureHasDialCode(t){let{dialCode:e,nationalPrefix:i}=this.selectedCountryData;if(t.startsWith("+")||!e)return t;let s=i&&t.startsWith(i)&&!this.options.separateDialCode?t.substring(1):t;return`+${e}${s}`}_getNewCountryFromNumber(t){let e=t.indexOf("+"),i=e?t.substring(e):t,s=this.selectedCountryData.iso2,n=this.selectedCountryData.dialCode;i=this._ensureHasDialCode(i);let l=this._getDialCode(i,!0),r=L(i);if(l){let t=L(l),e=this.dialCodeToIso2Map[t];if(1===e.length)return e[0]===s?null:e[0];if(!s&&this.defaultCountry&&e.includes(this.defaultCountry))return this.defaultCountry;if(n===p.NANP&&F(r))return null;let{areaCodes:i,priority:o}=this.selectedCountryData;if(i){for(let t of i.map(t=>`${n}${t}`))if(r.startsWith(t))return null}let a=i&&0!==o&&r.length>t.length,u=s&&e.includes(s)&&!a,h=s===e[0];if(!u&&!h)return e[0]}else if(i.startsWith("+")&&r.length){let t=this.selectedCountryData.dialCode||"";return t&&t.startsWith(r)?null:""}else if((!i||"+"===i)&&!s)return this.defaultCountry;return null}_setCountry(t){let{separateDialCode:e,showFlags:i,i18n:s,allowDropdown:n}=this.options,l=this.selectedCountryData.iso2||"";if(n&&this.ui.updateSelectedItem(t),this.selectedCountryData=t?this.countryByIso2.get(t):{},this.selectedCountryData.iso2&&(this.defaultCountry=this.selectedCountryData.iso2),this.ui.selectedCountry){let e,n;let l=t&&i?`${o.FLAG} iti__${t}`:`${o.FLAG} ${o.GLOBE}`;if(t){let{name:t,dialCode:i}=this.selectedCountryData;n=t,e=s.selectedCountryAriaLabel.replace("${countryName}",t).replace("${dialCode}",`+${i}`)}else n=s.noCountrySelected,e=s.noCountrySelected;this.ui.selectedCountryInner.className=l,this.ui.selectedCountry.setAttribute("title",n),this.ui.selectedCountry.setAttribute(_.LABEL,e)}if(e){let t=this.selectedCountryData.dialCode?`+${this.selectedCountryData.dialCode}`:"";this.ui.selectedDialCode.textContent=t,this.ui.updateInputPadding()}return this._updatePlaceholder(),this._updateMaxLength(),l!==t}_updateMaxLength(){let{strictMode:t,placeholderNumberType:e,validationNumberTypes:i}=this.options,{iso2:s}=this.selectedCountryData;if(t&&j.utils){if(s){let t=j.utils.numberType[e],n=j.utils.getExampleNumber(s,!1,t,!0),l=n;for(;j.utils.isPossibleNumber(n,s,i);)l=n,n+="0";let r=j.utils.getCoreNumber(l,s);this.maxCoreNumberLength=r.length,"by"===s&&(this.maxCoreNumberLength=r.length+1)}else this.maxCoreNumberLength=null}}_updatePlaceholder(){let{autoPlaceholder:t,placeholderNumberType:e,nationalMode:i,customPlaceholder:s}=this.options,n=t===g.AGGRESSIVE||!this.ui.hadInitialPlaceholder&&t===g.POLITE;if(j.utils&&n){let t=j.utils.numberType[e],n=this.selectedCountryData.iso2?j.utils.getExampleNumber(this.selectedCountryData.iso2,i,t):"";n=this._beforeSetNumber(n),"function"==typeof s&&(n=s(n,this.selectedCountryData)),this.ui.telInput.setAttribute("placeholder",n)}}_selectListItem(t){let e=t.dataset.countryCode,i=this._setCountry(e);this._closeDropdown();let s=t.dataset.dialCode;if(this._updateDialCode(s),this.options.formatOnDisplay){let t=this._getTelInputValue();
12this._updateValFromNumber(t)}this.ui.telInput.focus(),i&&this._triggerCountryChange()}_closeDropdown(){this.ui.dropdownContent.classList.contains(o.HIDE)||(this.ui.dropdownContent.classList.add(o.HIDE),this.ui.selectedCountry.setAttribute(_.EXPANDED,"false"),this.options.countrySearch&&(this.ui.searchInput.removeAttribute(_.ACTIVE_DESCENDANT),this.ui.highlightedItem&&(this.ui.highlightedItem.classList.remove(o.HIGHLIGHT),this.ui.highlightedItem=null)),this.ui.dropdownArrow.classList.remove(o.ARROW_UP),this.dropdownAbortController.abort(),this.dropdownAbortController=null,this.options.dropdownContainer&&this.ui.dropdown.remove(),this._trigger("close:countrydropdown"))}_updateDialCode(t){let e;let i=this._getTelInputValue(),s=`+${t}`;if(i.startsWith("+")){let t=this._getDialCode(i);e=t?i.replace(t,s):s,this._setTelInputValue(e)}}_getDialCode(t,e){let i="";if(t.startsWith("+")){let s="",n=!1;for(let l=0;l<t.length;l++){let r=t.charAt(l);if(/[0-9]/.test(r)){if(s+=r,!this.dialCodeToIso2Map[s])break;if(this.dialCodes.has(s)){if(i=t.substring(0,l+1),n=!0,!e)break}else e&&n&&(i=t.substring(0,l+1));if(s.length===this.dialCodeMaxLen)break}}}return i}_getFullNumber(t){let e=t?this._normaliseNumerals(t):this._getTelInputValue(),{dialCode:i}=this.selectedCountryData,s=L(e);return(this.options.separateDialCode&&!e.startsWith("+")&&i&&s?`+${i}`:"")+e}_beforeSetNumber(t){let e=this._getDialCode(t),i=H(t,e,this.options.separateDialCode,this.selectedCountryData);return this._cap(i)}_triggerCountryChange(){this._trigger("countrychange")}handleAutoCountry(){this.options.initialCountry===y&&j.autoCountry&&(this.defaultCountry=j.autoCountry,this.selectedCountryData.iso2||this.ui.selectedCountryInner.classList.contains(o.GLOBE)||this.setCountry(this.defaultCountry),this.resolveAutoCountryPromise())}handleUtils(){if(j.utils){let t=this._getTelInputValue();t&&this._updateValFromNumber(t),this.selectedCountryData.iso2&&(this._updatePlaceholder(),this._updateMaxLength())}this.resolveUtilsScriptPromise()}destroy(){this.ui.telInput&&(this.options.allowDropdown&&this._closeDropdown(),this.abortController.abort(),this.abortController=null,this.ui.destroy(),j.instances instanceof Map?j.instances.delete(this.id):delete j.instances[this.id])}getExtension(){return j.utils?j.utils.getExtension(this._getFullNumber(),this.selectedCountryData.iso2):""}getNumber(t){if(j.utils){let{iso2:e}=this.selectedCountryData,i=this._getFullNumber(),s=j.utils.formatNumber(i,e,t);return this._mapAsciiToUserNumerals(s)}return""}getNumberType(){return j.utils?j.utils.getNumberType(this._getFullNumber(),this.selectedCountryData.iso2):-99}getSelectedCountryData(){return this.selectedCountryData}getValidationError(){if(j.utils){let{iso2:t}=this.selectedCountryData;return j.utils.getValidationError(this._getFullNumber(),t)}return -99}isValidNumber(){let{dialCode:t,iso2:e}=this.selectedCountryData;if(t===m.DIAL_CODE&&j.utils){let t=this._getFullNumber(),i=j.utils.getCoreNumber(t,e);if(i[0]===m.MOBILE_PREFIX&&i.length!==m.MOBILE_CORE_LENGTH)return!1}return this._validateNumber(!1)}isValidNumberPrecise(){return this._validateNumber(!0)}_utilsIsPossibleNumber(t){return j.utils?j.utils.isPossibleNumber(t,this.selectedCountryData.iso2,this.options.validationNumberTypes):null}_validateNumber(t){if(!j.utils)return null;if(!this.selectedCountryData.iso2)return!1;let e=e=>t?this._utilsIsValidNumber(e):this._utilsIsPossibleNumber(e),i=this._getFullNumber(),s=i.search(h.ALPHA_UNICODE);if(s>-1&&!this.options.allowPhonewords){let t=e(i.substring(0,s)),n=e(i);return t&&n}return e(i)}_utilsIsValidNumber(t){return j.utils?j.utils.isValidNumber(t,this.selectedCountryData.iso2,this.options.validationNumberTypes):null}setCountry(t){let e=t?.toLowerCase();if(!G(e))throw Error(`Invalid country code: '${e}'`);let i=this.selectedCountryData.iso2;if(t&&e!==i||!t&&i){if(this._setCountry(e),this._updateDialCode(this.selectedCountryData.dialCode),this.options.formatOnDisplay){let t=this._getTelInputValue();this._updateValFromNumber(t)}this._triggerCountryChange()}}setNumber(t){let e=this._normaliseNumerals(t),i=this._updateCountryFromNumber(e);
12this._updateValFromNumber(e),i&&this._triggerCountryChange(),this._trigger("input",{isSetNumber:!0})}setPlaceholderNumberType(t){this.options.placeholderNumberType=t,this._updatePlaceholder()}setDisabled(t){this.ui.telInput.disabled=t,t?this.ui.selectedCountry.setAttribute("disabled","true"):this.ui.selectedCountry.removeAttribute("disabled")}},V=(t,...e)=>{Object.values(j.instances).forEach(i=>{let s=i[t];"function"==typeof s&&s.apply(i,e)})},j=Object.assign((t,e)=>{let i=new z(t,e);return j.instances[i.id]=i,t.iti=i,i},{defaults:I,documentReady:()=>"complete"===document.readyState,getCountryData:()=>l,getInstance:t=>{let e=t.dataset.intlTelInputId;return e?j.instances[e]:null},instances:{},attachUtils:t=>{if(!j.utils&&!j.startedLoadingUtilsScript){let e;if("function"!=typeof t)return Promise.reject(TypeError(`The argument passed to attachUtils must be a function that returns a promise for the utilities module, not ${typeof t}`));try{e=Promise.resolve(t())}catch(t){return Promise.reject(t)}return j.startedLoadingUtilsScript=!0,e.then(t=>{let e=t?.default;if(!e||"object"!=typeof e)throw TypeError("The loader function passed to attachUtils did not resolve to a module object with utils as its default export.");return j.utils=e,V("handleUtils"),!0}).catch(t=>{throw V("rejectUtilsScriptPromise",t),t})}return null},startedLoadingUtilsScript:!1,startedLoadingAutoCountry:!1,version:"25.15.1"}),K=j;return((n,l,r,o)=>{if(l&&"object"==typeof l||"function"==typeof l)for(let r of i(l))s.call(n,r)||void 0===r||t(n,r,{get:()=>l[r],enumerable:!(o=e(l,r))||o.enumerable});return n})(t({},"__esModule",{value:!0}),n)})().default,t.exports?t.exports=(()=>{var t=Object.defineProperty,e=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,n={};((e,i)=>{for(var s in i)t(e,s,{get:i[s],enumerable:!0})})(n,{Iti:()=>z,default:()=>K});var l=[];for(let t of[["af","93",0,null,"0"],["ax","358",1,["18","4"],"0"],["al","355",0,null,"0"],["dz","213",0,null,"0"],["as","1",5,["684"],"1"],["ad","376"],["ao","244"],["ai","1",6,["264"],"1"],["ag","1",7,["268"],"1"],["ar","54",0,null,"0"],["am","374",0,null,"0"],["aw","297"],["ac","247"],["au","61",0,["4"],"0"],["at","43",0,null,"0"],["az","994",0,null,"0"],["bs","1",8,["242"],"1"],["bh","973"],["bd","880",0,null,"0"],["bb","1",9,["246"],"1"],["by","375",0,null,"8"],["be","32",0,null,"0"],["bz","501"],["bj","229"],["bm","1",10,["441"],"1"],["bt","975"],["bo","591",0,null,"0"],["ba","387",0,null,"0"],["bw","267"],["br","55",0,null,"0"],["io","246"],["vg","1",11,["284"],"1"],["bn","673"],["bg","359",0,null,"0"],["bf","226"],["bi","257"],["kh","855",0,null,"0"],["cm","237"],["ca","1",1,["204","226","236","249","250","257","263","289","306","343","354","365","367","368","382","403","416","418","428","431","437","438","450","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","879","902","905","942"],"1"],["cv","238"],["bq","599",1,["3","4","7"]],["ky","1",12,["345"],"1"],["cf","236"],["td","235"],["cl","56"],["cn","86",0,null,"0"],["cx","61",2,["4","89164"],"0"],["cc","61",1,["4","89162"],"0"],["co","57",0,null,"0"],["km","269"],["cg","242"],["cd","243",0,null,"0"],["ck","682"],["cr","506"],["ci","225"],["hr","385",0,null,"0"],["cu","53",0,null,"0"],["cw","599",0],["cy","357"],["cz","420"],["dk","45"],["dj","253"],["dm","1",13,["767"],"1"],["do","1",2,["809","829","849"],"1"],["ec","593",0,null,"0"],["eg","20",0,null,"0"],["sv","503"],["gq","240"],["er","291",0,null,"0"],["ee","372"],["sz","268"],["et","251",0,null,"0"],["fk","500"],["fo","298"],["fj","679"],["fi","358",0,["4"],"0"],["fr","33",0,null,"0"],["gf","594",0,null,"0"],["pf","689"],["ga","241"],["gm","220"],["ge","995",0,null,"0"],["de","49",0,null,"0"],["gh","233",0,null,"0"],["gi","350"],["gr","30"],["gl","299"],["gd","1",14,["473"],"1"],["gp","590",0,null,"0"],["gu","1",15,["671"],"1"],["gt","502"],["gg","44",1,["1481","7781","7839","7911"],"0"],["gn","224"],["gw","245"],["gy","592"],["ht","509"],["hn","504"],["hk","852"],["hu","36",0,null,"06"],["is","354"],["in","91",0,null,"0"],["id","62",0,null,"0"],["ir","98",0,null,"0"],["iq","964",0,null,"0"],["ie","353",0,null,"0"],["im","44",2,["1624","74576","7524","7624","7924"],"0"],["il","972",0,null,"0"],["it","39",0,["3"]],["jm","1",4,["658","876"],"1"],["jp","81",0,null,"0"],["je","44",3,["1534","7509","7700","7797","7829","7937"],"0"],["jo","962",0,null,"0"],["kz","7",1,["33","7"],"8"],["ke","254",0,null,"0"],["ki","686",0,null,"0"],["xk","383",0,null,"0"],["kw","965"],["kg","996",0,null,"0"],["la","856",0,null,"0"],["lv","371"],["lb","961",0,null,"0"],["ls","266"],["lr","231",0,null,"0"],["ly","218",0,null,"0"],["li","423",0,null,"0"],["lt","370",0,null,"0"],["lu","352"],["mo","853"],["mg","261",0,null,"0"],["mw","265",0,null,"0"],["my","60",0,null,"0"],["mv","960"],["ml","223"],["mt","356"],["mh","692",0,null,"1"],["mq","596",0,null,"0"],["mr","222"],["mu","230"],["yt","262",1,["269","639"],"0"],["mx","52"],["fm","691"],["md","373",0,null,"0"],["mc","377",0,null,"0"],["mn","976",0,null,"0"],["me","382",0,null,"0"],["ms","1",16,["664"],"1"],["ma","212",0,["6","7"],"0"],["mz","258"],["mm","95",0,null,"0"],["na","264",0,null,"0"],["nr","674"],["np","977",0,null,"0"],["nl","31",0,null,"0"],["nc","687"],["nz","64",0,null,"0"],["ni","505"],["ne","227"],["ng","234",0,null,"0"],["nu","683"],["nf","672"],["kp","850",0,null,"0"],["mk","389",0,null,"0"],["mp","1",17,["670"],"1"],["no","47",0,["4","9"]],["om","968"],["pk","92",0,null,"0"],["pw","680"],["ps","970",0,null,"0"],["pa","507"],["pg","675"],["py","595",0,null,"0"],["pe","51",0,null,"0"],["ph","63",0,null,"0"],["pl","48"],["pt","351"],["pr","1",3,["787","939"],"1"],["qa","974"],["re","262",0,null,"0"],["ro","40",0,null,"0"],["ru","7",0,["33"],"8"],["rw","250",0,null,"0"],["ws","685"],["sm","378"],["st","239"],["sa","966",0,null,"0"],["sn","221"],["rs","381",0,null,"0"],["sc","248"],["sl","232",0,null,"0"],["sg","65"],["sx","1",21,["721"],"1"],["sk","421",0,null,"0"],["si","386",0,null,"0"],["sb","677"],["so","252",0,null,"0"],["za","27",0,null,"0"],["kr","82",0,null,"0"],["ss","211",0,null,"0"],["es","34"],["lk","94",0,null,"0"],["bl","590",1,null,"0"],["sh","290"],["kn","1",18,["869"],"1"],["lc","1",19,["758"],"1"],["mf","590",2,null,"0"],["pm","508",0,null,"0"],["vc","1",20,["784"],"1"],["sd","249",0,null,"0"],["sr","597"],["sj","47",1,["4","79","9"]],["se","46",0,null,"0"],["ch","41",0,null,"0"],["sy","963",0,null,"0"],["tw","886",0,null,"0"],["tj","992"],["tz","255",0,null,"0"],["th","66",0,null,"0"],["tl","670"],["tg","228"],["tk","690"],["to","676"],["tt","1",22,["868"],"1"],["tn","216"],["tr","90",0,null,"0"],["tm","993",0,null,"8"],["tc","1",23,["649"],"1"],["tv","688"],["vi","1",24,["340"],"1"],["ug","256",0,null,"0"],["ua","380",0,null,"0"],["ae","971",0,null,"0"],["gb","44",0,null,"0"],["us","1",0,null,"1"],["uy","598",0,null,"0"],["uz","998"],["vu","678"],["va","39",1,["06698","3"]],["ve","58",0,null,"0"],["vn","84",0,null,"0"],["wf","681"],["eh","212",1,["5288","5289","6","7"],"0"],["ye","967",0,null,"0"],["zm","260",0,null,"0"],["zw","263",0,null,"0"]])l.push({name:"",iso2:t[0],dialCode:t[1],priority:t[2]||0,areaCodes:t[3]||null,
12nodeById:{},nationalPrefix:t[4]||null,normalisedName:"",initials:"",dialCodePlus:""});var r={ad:"Andorra",ae:"United Arab Emirates",af:"Afghanistan",ag:"Antigua & Barbuda",ai:"Anguilla",al:"Albania",am:"Armenia",ao:"Angola",ar:"Argentina",as:"American Samoa",at:"Austria",au:"Australia",aw:"Aruba",ax:"\xc5land Islands",az:"Azerbaijan",ba:"Bosnia & Herzegovina",bb:"Barbados",bd:"Bangladesh",be:"Belgium",bf:"Burkina Faso",bg:"Bulgaria",bh:"Bahrain",bi:"Burundi",bj:"Benin",bl:"St. Barth\xe9lemy",bm:"Bermuda",bn:"Brunei",bo:"Bolivia",bq:"Caribbean Netherlands",br:"Brazil",bs:"Bahamas",bt:"Bhutan",bw:"Botswana",by:"Belarus",bz:"Belize",ca:"Canada",cc:"Cocos (Keeling) Islands",cd:"Congo - Kinshasa",cf:"Central African Republic",cg:"Congo - Brazzaville",ch:"Switzerland",ci:"C\xf4te d’Ivoire",ck:"Cook Islands",cl:"Chile",cm:"Cameroon",cn:"China",co:"Colombia",cr:"Costa Rica",cu:"Cuba",cv:"Cape Verde",cw:"Cura\xe7ao",cx:"Christmas Island",cy:"Cyprus",cz:"Czechia",de:"Germany",dj:"Djibouti",dk:"Denmark",dm:"Dominica",do:"Dominican Republic",dz:"Algeria",ec:"Ecuador",ee:"Estonia",eg:"Egypt",eh:"Western Sahara",er:"Eritrea",es:"Spain",et:"Ethiopia",fi:"Finland",fj:"Fiji",fk:"Falkland Islands",fm:"Micronesia",fo:"Faroe Islands",fr:"France",ga:"Gabon",gb:"United Kingdom",gd:"Grenada",ge:"Georgia",gf:"French Guiana",gg:"Guernsey",gh:"Ghana",gi:"Gibraltar",gl:"Greenland",gm:"Gambia",gn:"Guinea",gp:"Guadeloupe",gq:"Equatorial Guinea",gr:"Greece",gt:"Guatemala",gu:"Guam",gw:"Guinea-Bissau",gy:"Guyana",hk:"Hong Kong SAR China",hn:"Honduras",hr:"Croatia",ht:"Haiti",hu:"Hungary",id:"Indonesia",ie:"Ireland",il:"Israel",im:"Isle of Man",in:"India",io:"British Indian Ocean Territory",iq:"Iraq",ir:"Iran",is:"Iceland",it:"Italy",je:"Jersey",jm:"Jamaica",jo:"Jordan",jp:"Japan",ke:"Kenya",kg:"Kyrgyzstan",kh:"Cambodia",ki:"Kiribati",km:"Comoros",kn:"St. Kitts & Nevis",kp:"North Korea",kr:"South Korea",kw:"Kuwait",ky:"Cayman Islands",kz:"Kazakhstan",la:"Laos",lb:"Lebanon",lc:"St. Lucia",li:"Liechtenstein",lk:"Sri Lanka",lr:"Liberia",ls:"Lesotho",lt:"Lithuania",lu:"Luxembourg",lv:"Latvia",ly:"Libya",ma:"Morocco",mc:"Monaco",md:"Moldova",me:"Montenegro",mf:"St. Martin",mg:"Madagascar",mh:"Marshall Islands",mk:"North Macedonia",ml:"Mali",mm:"Myanmar (Burma)",mn:"Mongolia",mo:"Macao SAR China",mp:"Northern Mariana Islands",mq:"Martinique",mr:"Mauritania",ms:"Montserrat",mt:"Malta",mu:"Mauritius",mv:"Maldives",mw:"Malawi",mx:"Mexico",my:"Malaysia",mz:"Mozambique",na:"Namibia",nc:"New Caledonia",ne:"Niger",nf:"Norfolk Island",ng:"Nigeria",ni:"Nicaragua",nl:"Netherlands",no:"Norway",np:"Nepal",nr:"Nauru",nu:"Niue",nz:"New Zealand",om:"Oman",pa:"Panama",pe:"Peru",pf:"French Polynesia",pg:"Papua New Guinea",ph:"Philippines",pk:"Pakistan",pl:"Poland",pm:"St. Pierre & Miquelon",pr:"Puerto Rico",ps:"Palestinian Territories",pt:"Portugal",pw:"Palau",py:"Paraguay",qa:"Qatar",re:"R\xe9union",ro:"Romania",rs:"Serbia",ru:"Russia",rw:"Rwanda",sa:"Saudi Arabia",sb:"Solomon Islands",sc:"Seychelles",sd:"Sudan",se:"Sweden",sg:"Singapore",sh:"St. Helena",si:"Slovenia",sj:"Svalbard & Jan Mayen",sk:"Slovakia",sl:"Sierra Leone",sm:"San Marino",sn:"Senegal",so:"Somalia",sr:"Suriname",ss:"South Sudan",st:"S\xe3o Tom\xe9 & Pr\xedncipe",sv:"El Salvador",sx:"Sint Maarten",sy:"Syria",sz:"Eswatini",tc:"Turks & Caicos Islands",td:"Chad",tg:"Togo",th:"Thailand",tj:"Tajikistan",tk:"Tokelau",tl:"Timor-Leste",tm:"Turkmenistan",tn:"Tunisia",to:"Tonga",tr:"Turkey",tt:"Trinidad & Tobago",tv:"Tuvalu",tw:"Taiwan",tz:"Tanzania",ua:"Ukraine",ug:"Uganda",us:"United States",uy:"Uruguay",uz:"Uzbekistan",va:"Vatican City",vc:"St. Vincent & Grenadines",ve:"Venezuela",vg:"British Virgin Islands",vi:"U.S. Virgin Islands",vn:"Vietnam",vu:"Vanuatu",wf:"Wallis & Futuna",ws:"Samoa",ye:"Yemen",yt:"Mayotte",za:"South Africa",zm:"Zambia",zw:"Zimbabwe",selectedCountryAriaLabel:"Change country, selected ${countryName} (${dialCode})",noCountrySelected:"Select country",countryListAriaLabel:"List of countries",searchPlaceholder:"Search",clearSearchAriaLabel:"Clear search",zeroSearchResults:"No results found",oneSearchResult:"1 result found",multipleSearchResults:"${count} results found",ac:"Ascension Island",xk:"Kosovo"},o={HIDE:"iti__hide",V_HIDE:"iti__v-hide",ARROW_UP:"iti__arrow--up",GLOBE:"iti__globe",FLAG:"iti__flag",COUNTRY_ITEM:"iti__country",HIGHLIGHT:"iti__highlight"},a={ARROW_UP:"ArrowUp",ARROW_DOWN:"ArrowDown",SPACE:" ",ENTER:"Enter",ESC:"Escape",TAB:"Tab"}
12,u={PASTE:"insertFromPaste",DELETE_FWD:"deleteContentForward"},h={ALPHA_UNICODE:/\p{L}/u,NON_PLUS_NUMERIC:/[^+0-9]/,NON_PLUS_NUMERIC_GLOBAL:/[^+0-9]/g,HIDDEN_SEARCH_CHAR:/^[a-zA-ZÀ-ÿа-яА-Я ]$/},d={HIDDEN_SEARCH_RESET_MS:1e3},c={SANE_SELECTED_WITH_DIAL_WIDTH:78,SANE_SELECTED_NO_DIAL_WIDTH:42,INPUT_PADDING_EXTRA_LEFT:6},p={NANP:"1"},m={DIAL_CODE:"44",MOBILE_PREFIX:"7",MOBILE_CORE_LENGTH:10},C={ISO2:"us"},g={AGGRESSIVE:"aggressive",POLITE:"polite"},y="auto",_={EXPANDED:"aria-expanded",LABEL:"aria-label",SELECTED:"aria-selected",ACTIVE_DESCENDANT:"aria-activedescendant",HASPOPUP:"aria-haspopup",CONTROLS:"aria-controls",HIDDEN:"aria-hidden",AUTOCOMPLETE:"aria-autocomplete",MODAL:"aria-modal"},b=t=>"undefined"!=typeof window&&"function"==typeof window.matchMedia&&window.matchMedia(t).matches,I={allowPhonewords:!1,allowDropdown:!0,autoPlaceholder:g.POLITE,containerClass:"",countryOrder:null,countrySearch:!0,customPlaceholder:null,dropdownContainer:null,excludeCountries:[],fixDropdownWidth:!0,formatAsYouType:!0,formatOnDisplay:!0,geoIpLookup:null,hiddenInput:null,i18n:{},initialCountry:"",loadUtils:null,nationalMode:!0,onlyCountries:[],placeholderNumberType:"MOBILE",showFlags:!0,separateDialCode:!1,strictMode:!1,useFullscreenPopup:(()=>{if("undefined"!=typeof navigator&&"undefined"!=typeof window){let t=/Android.+Mobile|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),e=b("(max-width: 500px)"),i=b("(max-height: 600px)"),s=b("(pointer: coarse)");return t||e||s&&i}return!1})(),validationNumberTypes:["MOBILE"]},f=(t,e)=>{t.useFullscreenPopup&&(t.fixDropdownWidth=!1),1===t.onlyCountries.length&&(t.initialCountry=t.onlyCountries[0]),t.separateDialCode&&(t.nationalMode=!1),!t.allowDropdown||t.showFlags||t.separateDialCode||(t.nationalMode=!1),t.useFullscreenPopup&&!t.dropdownContainer&&(t.dropdownContainer=document.body),t.i18n={...e,...t.i18n}},L=t=>t.replace(/\D/g,""),D=(t="")=>t.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase(),w=(t,e)=>{let i=D(e),s=[],n=[],l=[],r=[],o=[],a=[];for(let e of t)e.iso2===i?s.push(e):e.normalisedName.startsWith(i)?n.push(e):e.normalisedName.includes(i)?l.push(e):i===e.dialCode||i===e.dialCodePlus?r.push(e):e.dialCodePlus.includes(i)?o.push(e):e.initials.includes(i)&&a.push(e);let u=(t,e)=>t.priority-e.priority;return[...s.sort(u),...n.sort(u),...l.sort(u),...r.sort(u),...o.sort(u),...a.sort(u)]},N=(t,e)=>{let i=e.toLowerCase();for(let e of t)if(e.name.toLowerCase().startsWith(i))return e;return null},E=t=>Object.keys(t).filter(e=>!!t[e]).join(" "),A=(t,e,i)=>{let s=document.createElement(t);return e&&Object.entries(e).forEach(([t,e])=>s.setAttribute(t,e)),i&&i.appendChild(s),s},S=()=>`
13  <svg class="iti__search-icon-svg" width="14" height="14" viewBox="0 0 24 24" focusable="false" ${_.HIDDEN}="true">
14    <circle cx="11" cy="11" r="7" />
15    <line x1="21" y1="21" x2="16.65" y2="16.65" />
16  </svg>`,T=t=>{let e=`iti-${t}-clear-mask`;return`
17    <svg class="iti__search-clear-svg" width="12" height="12" viewBox="0 0 16 16" ${_.HIDDEN}="true" focusable="false">
18      <mask id="${e}" maskUnits="userSpaceOnUse">
19        <rect width="16" height="16" fill="white" />
20        <path d="M5.2 5.2 L10.8 10.8 M10.8 5.2 L5.2 10.8" stroke="black" stroke-linecap="round" class="iti__search-clear-x" />
21      </mask>
22      <circle cx="8" cy="8" r="8" class="iti__search-clear-bg" mask="url(#${e})" />
23    </svg>`},v=class{constructor(t,e,i){this.highlightedItem=null,this.selectedItem=null,t.dataset.intlTelInputId=i.toString(),this.telInput=t,this.options=e,this.id=i,this.hadInitialPlaceholder=!!t.getAttribute("placeholder"),this.isRTL=!!this.telInput.closest("[dir=rtl]"),this.options.separateDialCode&&(this.originalPaddingLeft=this.telInput.style.paddingLeft)}generateMarkup(t){this.countries=t,this._prepareTelInput();let e=this._createWrapperAndInsert();this._maybeBuildCountryContainer(e),e.appendChild(this.telInput),this._maybeUpdateInputPaddingAndReveal(),this._maybeBuildHiddenInputs(e)}_prepareTelInput(){this.telInput.classList.add("iti__tel-input"),this.telInput.hasAttribute("autocomplete")||this.telInput.form?.hasAttribute("autocomplete")||this.telInput.setAttribute("autocomplete","off")}_createWrapperAndInsert(){let{allowDropdown:t,showFlags:e,containerClass:i,useFullscreenPopup:s}=this.options,n=A("div",{class:E({iti:!0,"iti--allow-dropdown":t,"iti--show-flags":e,"iti--inline-dropdown":!s,[i]:!!i})});return this.isRTL&&n.setAttribute("dir","ltr"),this.telInput.before(n),n}_maybeBuildCountryContainer(t){let{allowDropdown:e,separateDialCode:i,show
23Flags:s}=this.options;if(e||s||i){this.countryContainer=A("div",{class:`iti__country-container ${o.V_HIDE}`},t),e?(this.selectedCountry=A("button",{type:"button",class:"iti__selected-country",[_.EXPANDED]:"false",[_.LABEL]:this.options.i18n.noCountrySelected,[_.HASPOPUP]:"dialog",[_.CONTROLS]:`iti-${this.id}__dropdown-content`},this.countryContainer),this.telInput.disabled&&this.selectedCountry.setAttribute("disabled","true")):this.selectedCountry=A("div",{class:"iti__selected-country"},this.countryContainer);let s=A("div",{class:"iti__selected-country-primary"},this.selectedCountry);this.selectedCountryInner=A("div",{class:o.FLAG},s),e&&(this.dropdownArrow=A("div",{class:"iti__arrow",[_.HIDDEN]:"true"},s)),i&&(this.selectedDialCode=A("div",{class:"iti__selected-dial-code"},this.selectedCountry)),e&&this._buildDropdownContent()}}_buildDropdownContent(){let{fixDropdownWidth:t,useFullscreenPopup:e,countrySearch:i,i18n:s,dropdownContainer:n,containerClass:l}=this.options;if(this.dropdownContent=A("div",{id:`iti-${this.id}__dropdown-content`,class:`iti__dropdown-content ${o.HIDE} ${t?"":"iti--flexible-dropdown-width"}`,role:"dialog",[_.MODAL]:"true"}),this.isRTL&&this.dropdownContent.setAttribute("dir","rtl"),i&&this._buildSearchUI(),this.countryList=A("ul",{class:"iti__country-list",id:`iti-${this.id}__country-listbox`,role:"listbox",[_.LABEL]:s.countryListAriaLabel},this.dropdownContent),this._appendListItems(),i&&this.updateSearchResultsA11yText(),n){let t=E({iti:!0,"iti--container":!0,"iti--fullscreen-popup":e,"iti--inline-dropdown":!e,[l]:!!l});this.dropdown=A("div",{class:t}),this.dropdown.appendChild(this.dropdownContent)}else this.countryContainer.appendChild(this.dropdownContent)}_buildSearchUI(){let{i18n:t}=this.options,e=A("div",{class:"iti__search-input-wrapper"},this.dropdownContent);this.searchIcon=A("span",{class:"iti__search-icon",[_.HIDDEN]:"true"},e),this.searchIcon.innerHTML=S(),this.searchInput=A("input",{id:`iti-${this.id}__search-input`,type:"search",class:"iti__search-input",placeholder:t.searchPlaceholder,role:"combobox",[_.EXPANDED]:"true",[_.LABEL]:t.searchPlaceholder,[_.CONTROLS]:`iti-${this.id}__country-listbox`,[_.AUTOCOMPLETE]:"list",autocomplete:"off"},e),this.searchClearButton=A("button",{type:"button",class:`iti__search-clear ${o.HIDE}`,[_.LABEL]:t.clearSearchAriaLabel,tabindex:"-1"},e),this.searchClearButton.innerHTML=T(this.id),this.searchResultsA11yText=A("span",{class:"iti__a11y-text"},this.dropdownContent),this.searchNoResults=A("div",{class:`iti__no-results ${o.HIDE}`,[_.HIDDEN]:"true"},this.dropdownContent),this.searchNoResults.textContent=t.zeroSearchResults}_maybeUpdateInputPaddingAndReveal(){this.countryContainer&&(this.updateInputPadding(),this.countryContainer.classList.remove(o.V_HIDE))}_maybeBuildHiddenInputs(t){let{hiddenInput:e}=this.options;if(e){let i=e(this.telInput.getAttribute("name")||"");if(i.phone){let e=this.telInput.form?.querySelector(`input[name="${i.phone}"]`);e?this.hiddenInput=e:(this.hiddenInput=A("input",{type:"hidden",name:i.phone}),t.appendChild(this.hiddenInput))}if(i.country){let e=this.telInput.form?.querySelector(`input[name="${i.country}"]`);e?this.hiddenInputCountry=e:(this.hiddenInputCountry=A("input",{type:"hidden",name:i.country}),t.appendChild(this.hiddenInputCountry))}}}_appendListItems(){let t=document.createDocumentFragment();for(let e=0;e<this.countries.length;e++){let i=this.countries[e],s=E({[o.COUNTRY_ITEM]:!0}),n=A("li",{id:`iti-${this.id}__item-${i.iso2}`,class:s,tabindex:"-1",role:"option",[_.SELECTED]:"false"});n.dataset.dialCode=i.dialCode,n.dataset.countryCode=i.iso2,i.nodeById[this.id]=n,this.options.showFlags&&A("div",{class:`${o.FLAG} iti__${i.iso2}`},n),A("span",{class:"iti__country-name"},n).textContent=i.name;let l=A("span",{class:"iti__dial-code"},n);this.isRTL&&l.setAttribute("dir","ltr"),l.textContent=`+${i.dialCode}`,t.appendChild(n)}this.countryList.appendChild(t)}updateInputPadding(){if(this.selectedCountry){let t=this.options.separateDialCode?c.SANE_SELECTED_WITH_DIAL_WIDTH:c.SANE_SELECTED_NO_DIAL_WIDTH,e=(this.selectedCountry.offsetWidth||this._getHiddenSelectedCountryWidth()||t)+c.INPUT_PADDING_EXTRA_LEFT;this.telInput.style.paddingLeft=`${e}px`}}_getHiddenSelectedCountryWidth(){if(this.telInput.parentNode){let t;try{t=window.top.document.body}catch(e){t=document.body}let e=this.telInput.parentNode.cloneNode(!1);e.style.visibility="hidden",t.appendChild(e);let i=this.countryContainer.cloneNode();e.appendChild(i);let s=this.selectedCountry.cloneNode(!0);i.appendChild(s);let n=s.offsetWidth;return t.removeChild(e),n}return 0}updateSearchResultsA11yText(){let t;let{i18n:e}=this.options,i=this.countryList.childElementCount;t=0===i?e.zeroSearchResults:e.searchResultsText?e.searchResultsText(i):1===i?e.oneSearchResult:e.multipleSearchResults.replace("${count}",i.toString()),this.searchResultsA11yText.textContent=t}scrollTo(t){let e=this.countryList,i=document.documentElement.scrollTop,s=e.offsetHeight,n=e.getBoundingClientRect().top+i,l=t.offsetHeight,r=t.getBoundingClientRect().top+i,o=r-n+e.scrollTop;
23r<n?e.scrollTop=o:r+l>n+s&&(e.scrollTop=o-(s-l))}highlightListItem(t,e){let i=this.highlightedItem;if(i&&i.classList.remove(o.HIGHLIGHT),this.highlightedItem=t,this.highlightedItem&&(this.highlightedItem.classList.add(o.HIGHLIGHT),this.options.countrySearch)){let t=this.highlightedItem.getAttribute("id")||"";this.searchInput.setAttribute(_.ACTIVE_DESCENDANT,t)}e&&this.highlightedItem.focus()}updateSelectedItem(t){if(this.selectedItem&&this.selectedItem.dataset.countryCode!==t&&(this.selectedItem.setAttribute(_.SELECTED,"false"),this.selectedItem=null),t&&!this.selectedItem){let e=this.countryList.querySelector(`[data-country-code="${t}"]`);e&&(e.setAttribute(_.SELECTED,"true"),this.selectedItem=e)}}filterCountries(t){this.countryList.innerHTML="";let e=!0;for(let i of t){let t=i.nodeById[this.id];t&&(this.countryList.appendChild(t),e&&(this.highlightListItem(t,!1),e=!1))}e?(this.highlightListItem(null,!1),this.searchNoResults&&this.searchNoResults.classList.remove(o.HIDE)):this.searchNoResults&&this.searchNoResults.classList.add(o.HIDE),this.countryList.scrollTop=0,this.updateSearchResultsA11yText()}destroy(){this.telInput.iti=void 0,delete this.telInput.dataset.intlTelInputId,this.options.separateDialCode&&(this.telInput.style.paddingLeft=this.originalPaddingLeft);let t=this.telInput.parentNode;for(let e of(t.before(this.telInput),t.remove(),this.telInput=null,this.countryContainer=null,this.selectedCountry=null,this.selectedCountryInner=null,this.selectedDialCode=null,this.dropdownArrow=null,this.dropdownContent=null,this.searchInput=null,this.searchIcon=null,this.searchClearButton=null,this.searchNoResults=null,this.searchResultsA11yText=null,this.countryList=null,this.dropdown=null,this.hiddenInput=null,this.hiddenInputCountry=null,this.highlightedItem=null,this.selectedItem=null,this.countries))delete e.nodeById[this.id];this.countries=null}},P=t=>{let{onlyCountries:e,excludeCountries:i}=t;if(e.length){let t=e.map(t=>t.toLowerCase());return l.filter(e=>t.includes(e.iso2))}if(i.length){let t=i.map(t=>t.toLowerCase());return l.filter(e=>!t.includes(e.iso2))}return l},R=(t,e)=>{for(let i of t){let t=i.iso2.toLowerCase();e.i18n[t]&&(i.name=e.i18n[t])}},k=t=>{let e=new Set,i=0,s={},n=(t,e)=>{if(!t||!e)return;e.length>i&&(i=e.length),s.hasOwnProperty(e)||(s[e]=[]);let n=s[e];n.includes(t)||n.push(t)};for(let i of[...t].sort((t,e)=>t.priority-e.priority)){e.has(i.dialCode)||e.add(i.dialCode);for(let t=1;t<i.dialCode.length;t++){let e=i.dialCode.substring(0,t);n(i.iso2,e)}if(n(i.iso2,i.dialCode),i.areaCodes){let t=s[i.dialCode][0];for(let e of i.areaCodes){for(let s=1;s<e.length;s++){let l=e.substring(0,s),r=i.dialCode+l;n(t,r),n(i.iso2,r)}n(i.iso2,i.dialCode+e)}}}return{dialCodes:e,dialCodeMaxLen:i,dialCodeToIso2Map:s}},O=(t,e)=>{e.countryOrder&&(e.countryOrder=e.countryOrder.map(t=>t.toLowerCase())),t.sort((t,i)=>{let{countryOrder:s}=e;if(s){let e=s.indexOf(t.iso2),n=s.indexOf(i.iso2),l=e>-1,r=n>-1;if(l||r)return l&&r?e-n:l?-1:1}return t.name.localeCompare(i.name)})},M=t=>{for(let e of t)e.normalisedName=D(e.name),e.initials=e.normalisedName.split(/[^a-z]/).map(t=>t[0]).join(""),e.dialCodePlus=`+${e.dialCode}`},H=(t,e,i,s)=>{let n=t;if(i&&e){let t=" "===n[(e=`+${s.dialCode}`).length]||"-"===n[e.length]?e.length+1:e.length;n=n.substring(t)}return n},x=(t,e,i,s,n)=>{let l=i?i.formatNumberAsYouType(t,s.iso2):t,{dialCode:r}=s;return n&&"+"!==e.charAt(0)&&l.includes(`+${r}`)?(l.split(`+${r}`)[1]||"").trim():l},B=(t,e,i,s)=>{if(0===i&&!s)return 0;let n=0;for(let i=0;i<e.length;i++){if(/[+0-9]/.test(e[i])&&n++,n===t&&!s)return i+1;if(s&&n===t+1)return i}return e.length},U=["800","822","833","844","855","866","877","880","881","882","883","884","885","886","887","888","889"],F=t=>{let e=L(t);if(e.startsWith(p.NANP)&&e.length>=4){let t=e.substring(1,4);return U.includes(t)}return!1};for(let t of l)t.name=r[t.iso2];var $=0,W=new Set(l.map(t=>t.iso2)),G=t=>W.has(t),z=class t{constructor(e,i={}){this.id=$++,this.options={...I,...i},f(this.options,r),this.ui=new v(e,this.options,this.id),this.isAndroid=t._getIsAndroid(),this.promise=this._createInitPromises(),this.countries=P(this.options);let{dialCodes:s,dialCodeMaxLen:n,dialCodeToIso2Map:l}=k(this.countries);this.dialCodes=s,this.dialCodeMaxLen=n,this.dialCodeToIso2Map=l,this.countryByIso2=new Map(this.countries.map(t=>[t.iso2,t])),this._init()}static _getIsAndroid(){return"undefined"!=typeof navigator&&/Android/i.test(navigator.userAgent)}_updateNumeralSet(t){/[\u0660-\u0669]/.test(t)?this.userNumeralSet="arabic-indic":/[\u06F0-\u06F9]/.test(t)?this.userNumeralSet="persian":this.userNumeralSet="ascii"}_mapAsciiToUserNumerals(t){if(this.userNumeralSet||this._updateNumeralSet(this.ui.telInput.value),"ascii"===this.userNumeralSet)return t;let e="arabic-indic"===this.userNumeralSet?1632:1776;return t.replace(/[0-9]/g,t=>String.fromCharCode(e+Number(t)))}_normaliseNumerals(t){if(!t)return"";if(this._updateNumeralSet(t),"ascii"===this.userNumeralSet)return t;let e="arabic-indic"===this.userNumeralSet?1632:1776,i="arabic-indic"===this.userNumeralSet?/[\u0660-\u0669]/g:/[\u06F0-\u06F9]/g;return t.replace(i,t=>String.fromCharCode(48+(t.charCodeAt(0)-e)))}_getTelInputValue(){let t=this.ui.telInput.value.trim();return this._normaliseNumerals(t)}_setTelInputValue(t){this.ui.telInput.value=this._mapAsciiToUserNumerals(t)}_createInitPromises(){return Promise.all([new Promise((t,e)=>{this.resolveAutoCountryPromise=t,this.rejectAutoCountryPromise=e}),new Promise((t,e)=>{this.resolveUtilsScriptPromise=t,this.rejectUtilsScriptPromise=e})])}_init(){this.selectedCountryData={},this.abortController=new AbortController,this._processCountryData(),this.ui.generateMarkup(this.countries),this._setInitialState(),this._initListeners(),this._initRequests()}_processCountryData(){R(this.countries,this.options),O(this.countries,this.options),M(this.countries)}_setInitialState(t=!1){let e=this.ui.telInput.getAttribute("value"),i=this._normaliseNumerals(e),s=this._getTelInputValue(),n=i&&i.startsWith("+")&&(!s||!s.startsWith("+"))?i:s,l=this._getDialCode(n),r=F(n),{initialCountry:o,geoIpLookup:a}=this.options;if(l&&!r)this._updateCountryFromNumber(n);else if(!(o===y&&a)||t){let t=o?o.toLowerCase():"";G(t)?this._setCountry(t):l&&r?this._setCountry(C.ISO2):this._setCountry("")}
23n&&this._updateValFromNumber(n)}_initListeners(){this._initTelInputListeners(),this.options.allowDropdown&&this._initDropdownListeners(),(this.ui.hiddenInput||this.ui.hiddenInputCountry)&&this.ui.telInput.form&&this._initHiddenInputListener()}_initHiddenInputListener(){this.ui.telInput.form?.addEventListener("submit",()=>{this.ui.hiddenInput&&(this.ui.hiddenInput.value=this.getNumber()),this.ui.hiddenInputCountry&&(this.ui.hiddenInputCountry.value=this.selectedCountryData.iso2||"")},{signal:this.abortController.signal})}_initDropdownListeners(){let t=this.abortController.signal,e=this.ui.telInput.closest("label");e&&e.addEventListener("click",t=>{this.ui.dropdownContent.classList.contains(o.HIDE)?this.ui.telInput.focus():t.preventDefault()},{signal:t}),this.ui.selectedCountry.addEventListener("click",()=>{!this.ui.dropdownContent.classList.contains(o.HIDE)||this.ui.telInput.disabled||this.ui.telInput.readOnly||this._openDropdown()},{signal:t}),this.ui.countryContainer.addEventListener("keydown",t=>{this.ui.dropdownContent.classList.contains(o.HIDE)&&[a.ARROW_UP,a.ARROW_DOWN,a.SPACE,a.ENTER].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),this._openDropdown()),t.key===a.TAB&&this._closeDropdown()},{signal:t})}_initRequests(){let{loadUtils:t,initialCountry:e,geoIpLookup:i}=this.options;if(t&&!j.utils){let e=()=>{j.attachUtils(t)?.catch(()=>{})};j.documentReady()?e():window.addEventListener("load",()=>{e()},{signal:this.abortController.signal})}else this.resolveUtilsScriptPromise();e===y&&i&&!this.selectedCountryData.iso2?this._loadAutoCountry():this.resolveAutoCountryPromise()}_loadAutoCountry(){j.autoCountry?this.handleAutoCountry():j.startedLoadingAutoCountry||(j.startedLoadingAutoCountry=!0,"function"==typeof this.options.geoIpLookup&&this.options.geoIpLookup((t="")=>{let e=t.toLowerCase();G(e)?(j.autoCountry=e,setTimeout(()=>V("handleAutoCountry"))):(this._setInitialState(!0),V("rejectAutoCountryPromise"))},()=>{this._setInitialState(!0),V("rejectAutoCountryPromise")}))}_openDropdownWithPlus(){this._openDropdown(),this.ui.searchInput.value="+",this._filterCountriesByQuery("")}_initTelInputListeners(){this._bindInputListener(),this._maybeBindKeydownListener(),this._maybeBindPasteListener()}_bindInputListener(){let{strictMode:t,formatAsYouType:e,separateDialCode:i,allowDropdown:s,countrySearch:n}=this.options,l=!1;h.ALPHA_UNICODE.test(this._getTelInputValue())&&(l=!0),this.ui.telInput.addEventListener("input",r=>{let o=this._getTelInputValue();if(this.isAndroid&&r?.data==="+"&&i&&s&&n){let t=this.ui.telInput.selectionStart||0,e=o.substring(0,t-1),i=o.substring(t);this._setTelInputValue(e+i),this._openDropdownWithPlus();return}this._updateCountryFromNumber(o)&&this._triggerCountryChange();let a=r?.data&&h.NON_PLUS_NUMERIC.test(r.data),d=r?.inputType===u.PASTE&&o;a||d&&!t?l=!0:h.NON_PLUS_NUMERIC.test(o)||(l=!1);let c=r?.detail&&r.detail.isSetNumber,p="ascii"===this.userNumeralSet;if(e&&!l&&!c&&p){let t=this.ui.telInput.selectionStart||0,e=o.substring(0,t).replace(h.NON_PLUS_NUMERIC_GLOBAL,"").length,i=r?.inputType===u.DELETE_FWD,s=x(this._getFullNumber(),o,j.utils,this.selectedCountryData,this.options.separateDialCode),n=B(e,s,t,i);this._setTelInputValue(s),this.ui.telInput.setSelectionRange(n,n)}},{signal:this.abortController.signal})}_maybeBindKeydownListener(){let{strictMode:t,separateDialCode:e,allowDropdown:i,countrySearch:s}=this.options;(t||e)&&this.ui.telInput.addEventListener("keydown",n=>{if(n.key&&1===n.key.length&&!n.altKey&&!n.ctrlKey&&!n.metaKey){if(e&&i&&s&&"+"===n.key){n.preventDefault(),this._openDropdownWithPlus();return}if(t){let t=this._getTelInputValue(),i=!t.startsWith("+")&&0===this.ui.telInput.selectionStart&&"+"===n.key,s=this._normaliseNumerals(n.key),l=/^[0-9]$/.test(s),r=this.ui.telInput,o=r.selectionStart,a=r.selectionEnd,u=t.slice(0,o),h=t.slice(a),d=u+n.key+h,c=this._getFullNumber(d),p=j.utils.getCoreNumber(c,this.selectedCountryData.iso2),m=this.maxCoreNumberLength&&p.length>this.maxCoreNumberLength,C=this._getNewCountryFromNumber(c);(e?l:i||l)&&(!m||null!==C||i)||n.preventDefault()}}},{signal:this.abortController.signal})}_maybeBindPasteListener(){this.options.strictMode&&this.ui.telInput.addEventListener("paste",t=>{t.preventDefault();let e=this.ui.telInput,i=e.selectionStart,s=e.selectionEnd,n=this._getTelInputValue(),l=n.slice(0,i),r
23=n.slice(s),o=this.selectedCountryData.iso2,a=t.clipboardData.getData("text"),u=this._normaliseNumerals(a),d=0===i&&s>0,c=!n.startsWith("+")||d,p=u.replace(h.NON_PLUS_NUMERIC_GLOBAL,""),m=p.startsWith("+"),C=p.replace(/\+/g,""),g=m&&c?`+${C}`:C,y=l+g+r;if(y.length>5){let t=j.utils.getCoreNumber(y,o);for(;0===t.length&&y.length>0;)y=y.slice(0,-1),t=j.utils.getCoreNumber(y,o);if(!t)return;if(this.maxCoreNumberLength&&t.length>this.maxCoreNumberLength){if(e.selectionEnd!==n.length)return;{let e=t.length-this.maxCoreNumberLength;y=y.slice(0,y.length-e)}}}this._setTelInputValue(y);let _=i+g.length;e.setSelectionRange(_,_),e.dispatchEvent(new InputEvent("input",{bubbles:!0}))},{signal:this.abortController.signal})}_cap(t){let e=Number(this.ui.telInput.getAttribute("maxlength"));return e&&t.length>e?t.substring(0,e):t}_trigger(t,e={}){let i=new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:e});this.ui.telInput.dispatchEvent(i)}_openDropdown(){let{fixDropdownWidth:t,countrySearch:e}=this.options;if(this.dropdownAbortController=new AbortController,t&&(this.ui.dropdownContent.style.width=`${this.ui.telInput.offsetWidth}px`),this.ui.dropdownContent.classList.remove(o.HIDE),this.ui.selectedCountry.setAttribute(_.EXPANDED,"true"),this._setDropdownPosition(),e){let t=this.ui.countryList.firstElementChild;t&&(this.ui.highlightListItem(t,!1),this.ui.countryList.scrollTop=0),this.ui.searchInput.focus()}this._bindDropdownListeners(),this.ui.dropdownArrow.classList.add(o.ARROW_UP),this._trigger("open:countrydropdown")}_setDropdownPosition(){if(this.options.dropdownContainer&&this.options.dropdownContainer.appendChild(this.ui.dropdown),!this.options.useFullscreenPopup){let t=this.ui.telInput.getBoundingClientRect(),e=this.ui.telInput.offsetHeight;this.options.dropdownContainer&&(this.ui.dropdown.style.top=`${t.top+e}px`,this.ui.dropdown.style.left=`${t.left}px`,window.addEventListener("scroll",()=>this._closeDropdown(),{signal:this.dropdownAbortController.signal}))}}_bindDropdownListeners(){let t=this.dropdownAbortController.signal;this._bindDropdownMouseoverListener(t),this._bindDropdownCountryClickListener(t),this._bindDropdownClickOffListener(t),this._bindDropdownKeydownListener(t),this.options.countrySearch&&this._bindDropdownSearchListeners(t)}_bindDropdownMouseoverListener(t){this.ui.countryList.addEventListener("mouseover",t=>{let e=t.target?.closest(`.${o.COUNTRY_ITEM}`);e&&this.ui.highlightListItem(e,!1)},{signal:t})}_bindDropdownCountryClickListener(t){this.ui.countryList.addEventListener("click",t=>{let e=t.target?.closest(`.${o.COUNTRY_ITEM}`);e&&this._selectListItem(e)},{signal:t})}_bindDropdownClickOffListener(t){let e=t=>{t.target.closest(`#iti-${this.id}__dropdown-content`)||this._closeDropdown()};setTimeout(()=>{document.documentElement.addEventListener("click",e,{signal:t})},0)}_bindDropdownKeydownListener(t){let e="",i=null;document.addEventListener("keydown",t=>{[a.ARROW_UP,a.ARROW_DOWN,a.ENTER,a.ESC].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),t.key===a.ARROW_UP||t.key===a.ARROW_DOWN?this._handleUpDownKey(t.key):t.key===a.ENTER?this._handleEnterKey():t.key===a.ESC&&(this._closeDropdown(),this.ui.selectedCountry.focus())),!this.options.countrySearch&&h.HIDDEN_SEARCH_CHAR.test(t.key)&&(t.stopPropagation(),i&&clearTimeout(i),e+=t.key.toLowerCase(),this._searchForCountry(e),i=setTimeout(()=>{e=""},d.HIDDEN_SEARCH_RESET_MS))},{signal:t})}_bindDropdownSearchListeners(t){let e=()=>{let t=this.ui.searchInput.value.trim();this._filterCountriesByQuery(t),this.ui.searchInput.value?this.ui.searchClearButton.classList.remove(o.HIDE):this.ui.searchClearButton.classList.add(o.HIDE)},i=null;this.ui.searchInput.addEventListener("input",()=>{i&&clearTimeout(i),i=setTimeout(()=>{e(),i=null},100)},{signal:t}),this.ui.searchClearButton.addEventListener("click",()=>{this.ui.searchInput.value="",this.ui.searchInput.focus(),e()},{signal:t})}_searchForCountry(t){let e=N(this.countries,t);if(e){let t=e.nodeById[this.id];this.ui.highlightListItem(t,!1),this.ui.scrollTo(t)}}_filterCountriesByQuery(t){let e;e=""===t?this.countries:w(this.countries,t),this.ui.filterCountries(e)}_handleUpDownKey(t){let e=t===a.ARROW_UP?this.ui.highlightedItem?.previousElementSibling:this.ui.highlightedItem?.nextElementSibling;!e&&this.ui.countryList.childElementCount>1&&(e=t===a.ARROW_UP?this.ui.countryList.lastElementChild:this.ui.countryList.firstElementChild),e&&(this.ui.scrollTo(e),this.ui.highlightListItem(e,!1))}_handleEnterKey(){this.ui.highlightedItem&&this._selectListItem(this.ui.highlightedItem)}_updateValFromNumber(t){let e=t;if(this.options.formatOnDisplay&&j.utils&&this.selectedCountryData){let t=this.options.nationalMode||!e.startsWith("+")&&!this.options.separateDialCode,{NATIONAL:i,INTERNATIONAL:s}=j.utils.numberFormat;e=j.utils.formatNumber(e,this.selectedCountryData.iso2,t?i:s)}e=this._beforeSetNumber(e),this._setTelInputValue(e)}_updateCountryFromNumber(t){let e=this._getNewCountryFromNumber(t);return null!==e&&this._setCountry(e)}_ensureHasDialCode(t){let{dialCode:e,nationalPrefix:i}=this.selectedCountryData;if(t.startsWith("+")||!e)return t;let s=i&&t.startsWith(i)&&!this.options.separateDialCode?t.substring(1):t;return`+${e}${s}`}_getNewCountryFromNumber(t){let e=t.indexOf("+"),i=e?t.substring(e):t,s=this.selectedCountryData.iso2,n=this.selectedCountryData.dialCode;i=this._ensureHasDialCode(i);let l=this._getDialCode(i,!0),r=L(i);if(l){let t=L(l),e=this.dialCodeToIso2Map[t];if(1===e.length)return e[0]===s?null:e[0];if(!s&&this.defaultCountry&&e.includes(this.defaultCountry))return this.defaultCountry;if(n===p.NANP&&F(r))return null;let{areaCodes:i,priority:o}=this.selectedCountryData;if(i){for(let t of i.map(t=>`${n}${t}`))if(r.startsWith(t))return null}let a=i&&0!==o&&r.length>t.length,u=s&&e.includes(s)&&!a,h=s===e[0];if(!u&&!h)return e[0]}else if(i.startsWith("+")&&r.length){let t=this.selectedCountryData.dialCode||"";return t&&t.startsWith(r)?null:""}else if((!i||"+"===i)&&!s)return this.defaultCountry;return null}_setCountry(t){let{separateDialCode:e,showFlags:i,i18n:s,allowDropdown:n}=this.options,l=this.selectedCountryData.iso2||"";if(n&&this.ui.updateSelectedItem(t),this.selectedCountryData=t?this.countryByIso2.get(t):{},this.selectedCountryData.iso2&&(this.defaultCountry=this.selectedCountryData.iso2),this.ui.selectedCountry){let e,n;let l=t&&i?`${o.FLAG} iti__${t}`:`${o.FLAG} ${o.GLOBE}`;if(t){let{name:t,dialCode:i}=this.selectedCountryData;n=t,e=s.selectedCountryAriaLabel.replace("${countryName}",t).replace("${dialCode}",`+${i}`)}else n=s.noCountrySelected,e=s.noCountrySelected;this.ui.selectedCountryInner.className=l,this.ui.selectedCountry.setAttribute("title",n),this.ui.selectedCountry.setAttribute(_.LABEL,e)}if(e){let t=this.selectedCountryData.dialCode?`+${this.selectedCountryData.dialCode}`:"";this.ui.selectedDialCode.textContent=t,this.ui.updateInputPadding()}return this._updatePlaceholder(),this._updateMaxLength(),l!==t}_updateMaxLength(){let{strictMode:t,placeholderNumberType:e,validationNumberTypes:i}=this.options,{iso2:s}=this.selectedCountryData;if(t&&j.utils){if(s){let t=j.utils.numberType[e],n=j.utils.getExampleNumber(s,!1,t,!0),l=n;for(;j.utils.isPossibleNumber(n,s,i);)l=n,n+="0";let r=j.utils.getCoreNumber(l,s);this.maxCoreNumberLength=r.length,"by"===s&&(this.maxCoreNumberLength=r.length+1)}else this.maxCoreNumberLength=null}}_updatePlaceholder(){let{autoPlaceholder:t,placeholderNumberType:e,nationalMode:i,customPlaceholder:s}=this.options,n=t===g.AGGRESSIVE||!this.ui.hadInitialPlaceholder&&t===g.POLITE;if(j.utils&&n){let t=j.utils.numberType[e],n=this.selectedCountryData.iso2?j.utils.getExampleNumber(this.selectedCountryData.iso2,i,t):"";n=this._beforeSetNumber(n),"function"==typeof s&&(n=s(n,this.selectedCountryData)),this.ui.telInput.setAttribute("placeholder",n)}}_selectListItem(t){let e=t.dataset.countryCode,i=this._setCountry(e);this._closeDropdown();let s=t.dataset.dialCode;if(this._updateDialCode(s),this.options.formatOnDisplay){let t=this._getTelInputValue();
23this._updateValFromNumber(t)}this.ui.telInput.focus(),i&&this._triggerCountryChange()}_closeDropdown(){this.ui.dropdownContent.classList.contains(o.HIDE)||(this.ui.dropdownContent.classList.add(o.HIDE),this.ui.selectedCountry.setAttribute(_.EXPANDED,"false"),this.options.countrySearch&&(this.ui.searchInput.removeAttribute(_.ACTIVE_DESCENDANT),this.ui.highlightedItem&&(this.ui.highlightedItem.classList.remove(o.HIGHLIGHT),this.ui.highlightedItem=null)),this.ui.dropdownArrow.classList.remove(o.ARROW_UP),this.dropdownAbortController.abort(),this.dropdownAbortController=null,this.options.dropdownContainer&&this.ui.dropdown.remove(),this._trigger("close:countrydropdown"))}_updateDialCode(t){let e;let i=this._getTelInputValue(),s=`+${t}`;if(i.startsWith("+")){let t=this._getDialCode(i);e=t?i.replace(t,s):s,this._setTelInputValue(e)}}_getDialCode(t,e){let i="";if(t.startsWith("+")){let s="",n=!1;for(let l=0;l<t.length;l++){let r=t.charAt(l);if(/[0-9]/.test(r)){if(s+=r,!this.dialCodeToIso2Map[s])break;if(this.dialCodes.has(s)){if(i=t.substring(0,l+1),n=!0,!e)break}else e&&n&&(i=t.substring(0,l+1));if(s.length===this.dialCodeMaxLen)break}}}return i}_getFullNumber(t){let e=t?this._normaliseNumerals(t):this._getTelInputValue(),{dialCode:i}=this.selectedCountryData,s=L(e);return(this.options.separateDialCode&&!e.startsWith("+")&&i&&s?`+${i}`:"")+e}_beforeSetNumber(t){let e=this._getDialCode(t),i=H(t,e,this.options.separateDialCode,this.selectedCountryData);return this._cap(i)}_triggerCountryChange(){this._trigger("countrychange")}handleAutoCountry(){this.options.initialCountry===y&&j.autoCountry&&(this.defaultCountry=j.autoCountry,this.selectedCountryData.iso2||this.ui.selectedCountryInner.classList.contains(o.GLOBE)||this.setCountry(this.defaultCountry),this.resolveAutoCountryPromise())}handleUtils(){if(j.utils){let t=this._getTelInputValue();t&&this._updateValFromNumber(t),this.selectedCountryData.iso2&&(this._updatePlaceholder(),this._updateMaxLength())}this.resolveUtilsScriptPromise()}destroy(){this.ui.telInput&&(this.options.allowDropdown&&this._closeDropdown(),this.abortController.abort(),this.abortController=null,this.ui.destroy(),j.instances instanceof Map?j.instances.delete(this.id):delete j.instances[this.id])}getExtension(){return j.utils?j.utils.getExtension(this._getFullNumber(),this.selectedCountryData.iso2):""}getNumber(t){if(j.utils){let{iso2:e}=this.selectedCountryData,i=this._getFullNumber(),s=j.utils.formatNumber(i,e,t);return this._mapAsciiToUserNumerals(s)}return""}getNumberType(){return j.utils?j.utils.getNumberType(this._getFullNumber(),this.selectedCountryData.iso2):-99}getSelectedCountryData(){return this.selectedCountryData}getValidationError(){if(j.utils){let{iso2:t}=this.selectedCountryData;return j.utils.getValidationError(this._getFullNumber(),t)}return -99}isValidNumber(){let{dialCode:t,iso2:e}=this.selectedCountryData;if(t===m.DIAL_CODE&&j.utils){let t=this._getFullNumber(),i=j.utils.getCoreNumber(t,e);if(i[0]===m.MOBILE_PREFIX&&i.length!==m.MOBILE_CORE_LENGTH)return!1}return this._validateNumber(!1)}isValidNumberPrecise(){return this._validateNumber(!0)}_utilsIsPossibleNumber(t){return j.utils?j.utils.isPossibleNumber(t,this.selectedCountryData.iso2,this.options.validationNumberTypes):null}_validateNumber(t){if(!j.utils)return null;if(!this.selectedCountryData.iso2)return!1;let e=e=>t?this._utilsIsValidNumber(e):this._utilsIsPossibleNumber(e),i=this._getFullNumber(),s=i.search(h.ALPHA_UNICODE);if(s>-1&&!this.options.allowPhonewords){let t=e(i.substring(0,s)),n=e(i);return t&&n}return e(i)}_utilsIsValidNumber(t){return j.utils?j.utils.isValidNumber(t,this.selectedCountryData.iso2,this.options.validationNumberTypes):null}setCountry(t){let e=t?.toLowerCase();if(!G(e))throw Error(`Invalid country code: '${e}'`);let i=this.selectedCountryData.iso2;if(t&&e!==i||!t&&i){if(this._setCountry(e),this._updateDialCode(this.selectedCountryData.dialCode),this.options.formatOnDisplay){let t=this._getTelInputValue();this._updateValFromNumber(t)}this._triggerCountryChange()}}setNumber(t){let e=this._normaliseNumerals(t),i=this._updateCountryFromNumber(e);
23this._updateValFromNumber(e),i&&this._triggerCountryChange(),this._trigger("input",{isSetNumber:!0})}setPlaceholderNumberType(t){this.options.placeholderNumberType=t,this._updatePlaceholder()}setDisabled(t){this.ui.telInput.disabled=t,t?this.ui.selectedCountry.setAttribute("disabled","true"):this.ui.selectedCountry.removeAttribute("disabled")}},V=(t,...e)=>{Object.values(j.instances).forEach(i=>{let s=i[t];"function"==typeof s&&s.apply(i,e)})},j=Object.assign((t,e)=>{let i=new z(t,e);return j.instances[i.id]=i,t.iti=i,i},{defaults:I,documentReady:()=>"complete"===document.readyState,getCountryData:()=>l,getInstance:t=>{let e=t.dataset.intlTelInputId;return e?j.instances[e]:null},instances:{},attachUtils:t=>{if(!j.utils&&!j.startedLoadingUtilsScript){let e;if("function"!=typeof t)return Promise.reject(TypeError(`The argument passed to attachUtils must be a function that returns a promise for the utilities module, not ${typeof t}`));try{e=Promise.resolve(t())}catch(t){return Promise.reject(t)}return j.startedLoadingUtilsScript=!0,e.then(t=>{let e=t?.default;if(!e||"object"!=typeof e)throw TypeError("The loader function passed to attachUtils did not resolve to a module object with utils as its default export.");return j.utils=e,V("handleUtils"),!0}).catch(t=>{throw V("rejectUtilsScriptPromise",t),t})}return null},startedLoadingUtilsScript:!1,startedLoadingAutoCountry:!1,version:"25.15.1"}),K=j;return((n,l,r,o)=>{if(l&&"object"==typeof l||"function"==typeof l)for(let r of i(l))s.call(n,r)||void 0===r||t(n,r,{get:()=>l[r],enumerable:!(o=e(l,r))||o.enumerable});return n})(t({},"__esModule",{value:!0}),n)})().default:window.intlTelInput=(()=>{var t=Object.defineProperty,e=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,n={};((e,i)=>{for(var s in i)t(e,s,{get:i[s],enumerable:!0})})(n,{Iti:()=>z,default:()=>K});var l=[];for(let t of[["af","93",0,null,"0"],["ax","358",1,["18","4"],"0"],["al","355",0,null,"0"],["dz","213",0,null,"0"],["as","1",5,["684"],"1"],["ad","376"],["ao","244"],["ai","1",6,["264"],"1"],["ag","1",7,["268"],"1"],["ar","54",0,null,"0"],["am","374",0,null,"0"],["aw","297"],["ac","247"],["au","61",0,["4"],"0"],["at","43",0,null,"0"],["az","994",0,null,"0"],["bs","1",8,["242"],"1"],["bh","973"],["bd","880",0,null,"0"],["bb","1",9,["246"],"1"],["by","375",0,null,"8"],["be","32",0,null,"0"],["bz","501"],["bj","229"],["bm","1",10,["441"],"1"],["bt","975"],["bo","591",0,null,"0"],["ba","387",0,null,"0"],["bw","267"],["br","55",0,null,"0"],["io","246"],["vg","1",11,["284"],"1"],["bn","673"],["bg","359",0,null,"0"],["bf","226"],["bi","257"],["kh","855",0,null,"0"],["cm","237"],["ca","1",1,["204","226","236","249","250","257","263","289","306","343","354","365","367","368","382","403","416","418","428","431","437","438","450","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","879","902","905","942"],"1"],["cv","238"],["bq","599",1,["3","4","7"]],["ky","1",12,["345"],"1"],["cf","236"],["td","235"],["cl","56"],["cn","86",0,null,"0"],["cx","61",2,["4","89164"],"0"],["cc","61",1,["4","89162"],"0"],["co","57",0,null,"0"],["km","269"],["cg","242"],["cd","243",0,null,"0"],["ck","682"],["cr","506"],["ci","225"],["hr","385",0,null,"0"],["cu","53",0,null,"0"],["cw","599",0],["cy","357"],["cz","420"],["dk","45"],["dj","253"],["dm","1",13,["767"],"1"],["do","1",2,["809","829","849"],"1"],["ec","593",0,null,"0"],["eg","20",0,null,"0"],["sv","503"],["gq","240"],["er","291",0,null,"0"],["ee","372"],["sz","268"],["et","251",0,null,"0"],["fk","500"],["fo","298"],["fj","679"],["fi","358",0,["4"],"0"],["fr","33",0,null,"0"],["gf","594",0,null,"0"],["pf","689"],["ga","241"],["gm","220"],["ge","995",0,null,"0"],["de","49",0,null,"0"],["gh","233",0,null,"0"],["gi","350"],["gr","30"],["gl","299"],["gd","1",14,["473"],"1"],["gp","590",0,null,"0"],["gu","1",15,["671"],"1"],["gt","502"],["gg","44",1,["1481","7781","7839","7911"],"0"],["gn","224"],["gw","245"],["gy","592"],["ht","509"],["hn","504"],["hk","852"],["hu","36",0,null,"06"],["is","354"],["in","91",0,null,"0"],["id","62",0,null,"0"],["ir","98",0,null,"0"],["iq","964",0,null,"0"],["ie","353",0,null,"0"],["im","44",2,["1624","74576","7524","7624","7924"],"0"],["il","972",0,null,"0"],["it","39",0,["3"]],["jm","1",4,["658","876"],"1"],["jp","81",0,null,"0"],["je","44",3,["1534","7509","7700","7797","7829","7937"],"0"],["jo","962",0,null,"0"],["kz","7",1,["33","7"],"8"],["ke","254",0,null,"0"],["ki","686",0,null,"0"],["xk","383",0,null,"0"],["kw","965"],["kg","996",0,null,"0"],["la","856",0,null,"0"],["lv","371"],["lb","961",0,null,"0"],["ls","266"],["lr","231",0,null,"0"],["ly","218",0,null,"0"],["li","423",0,null,"0"],["lt","370",0,null,"0"],["lu","352"],["mo","853"],["mg","261",0,null,"0"],["mw","265",0,null,"0"],["my","60",0,null,"0"],["mv","960"],["ml","223"],["mt","356"],["mh","692",0,null,"1"],["mq","596",0,null,"0"],["mr","222"],["mu","230"],["yt","262",1,["269","639"],"0"],["mx","52"],["fm","691"],["md","373",0,null,"0"],["mc","377",0,null,"0"],["mn","976",0,null,"0"],["me","382",0,null,"0"],["ms","1",16,["664"],"1"],["ma","212",0,["6","7"],"0"],["mz","258"],["mm","95",0,null,"0"],["na","264",0,null,"0"],["nr","674"],["np","977",0,null,"0"],["nl","31",0,null,"0"],["nc","687"],["nz","64",0,null,"0"],["ni","505"],["ne","227"],["ng","234",0,null,"0"],["nu","683"],["nf","672"],["kp","850",0,null,"0"],["mk","389",0,null,"0"],["mp","1",17,["670"],"1"],["no","47",0,["4","9"]],["om","968"],["pk","92",0,null,"0"],["pw","680"],["ps","970",0,null,"0"],["pa","507"],["pg","675"],["py","595",0,null,"0"],["pe","51",0,null,"0"],["ph","63",0,null,"0"],["pl","48"],["pt","351"],["pr","1",3,["787","939"],"1"],["qa","974"],["re","262",0,null,"0"],["ro","40",0,null,"0"],["ru","7",0,["33"],"8"],["rw","250",0,null,"0"],["ws","685"],["sm","378"],["st","239"],["sa","966",0,null,"0"],["sn","221"],["rs","381",0,null,"0"],["sc","248"],["sl","232",0,null,"0"],["sg","65"],["sx","1",21,["721"],"1"],["sk","421",0,null,"0"],["si","386",0,null,"0"],["sb","677"],["so","252",0,null,"0"],["za","27",0,null,"0"],["kr","82",0,null,"0"],["ss","211",0,null,"0"],["es","34"],["lk","94",0,null,"0"],["bl","590",1,null,"0"],["sh","290"],["kn","1",18,["869"],"1"],["lc","1",19,["758"],"1"],["mf","590",2,null,"0"],["pm","508",0,null,"0"],["vc","1",20,["784"],"1"],["sd","249",0,null,"0"],["sr","597"],["sj","47",1,["4","79","9"]],["se","46",0,null,"0"],["ch","41",0,null,"0"],["sy","963",0,null,"0"],["tw","886",0,null,"0"],["tj","992"],["tz","255",0,null,"0"],["th","66",0,null,"0"],["tl","670"],["tg","228"],["tk","690"],["to","676"],["tt","1",22,["868"],"1"],["tn","216"],["tr","90",0,null,"0"],["tm","993",0,null,"8"],["tc","1",23,["649"],"1"],["tv","688"],["vi","1",24,["340"],"1"],["ug","256",0,null,"0"],["ua","380",0,null,"0"],["ae","971",0,null,"0"],["gb","44",0,null,"0"],["us","1",0,null,"1"],["uy","598",0,null,"0"],["uz","998"],["vu","678"],["va","39",1,["06698","3"]],["ve","58",0,null,"0"],["vn","84",0,null,"0"],["wf","681"],["eh","212",1,["5288","5289","6","7"],"0"],["ye","967",0,null,"0"],["zm","260",0,null,"0"],["zw","263",0,null,"0"]])l.push({name:"",iso2:t[0],dialCode:t[1],priority:t[2]||0,areaCodes:t[3]||null,
23nodeById:{},nationalPrefix:t[4]||null,normalisedName:"",initials:"",dialCodePlus:""});var r={ad:"Andorra",ae:"United Arab Emirates",af:"Afghanistan",ag:"Antigua & Barbuda",ai:"Anguilla",al:"Albania",am:"Armenia",ao:"Angola",ar:"Argentina",as:"American Samoa",at:"Austria",au:"Australia",aw:"Aruba",ax:"\xc5land Islands",az:"Azerbaijan",ba:"Bosnia & Herzegovina",bb:"Barbados",bd:"Bangladesh",be:"Belgium",bf:"Burkina Faso",bg:"Bulgaria",bh:"Bahrain",bi:"Burundi",bj:"Benin",bl:"St. Barth\xe9lemy",bm:"Bermuda",bn:"Brunei",bo:"Bolivia",bq:"Caribbean Netherlands",br:"Brazil",bs:"Bahamas",bt:"Bhutan",bw:"Botswana",by:"Belarus",bz:"Belize",ca:"Canada",cc:"Cocos (Keeling) Islands",cd:"Congo - Kinshasa",cf:"Central African Republic",cg:"Congo - Brazzaville",ch:"Switzerland",ci:"C\xf4te d’Ivoire",ck:"Cook Islands",cl:"Chile",cm:"Cameroon",cn:"China",co:"Colombia",cr:"Costa Rica",cu:"Cuba",cv:"Cape Verde",cw:"Cura\xe7ao",cx:"Christmas Island",cy:"Cyprus",cz:"Czechia",de:"Germany",dj:"Djibouti",dk:"Denmark",dm:"Dominica",do:"Dominican Republic",dz:"Algeria",ec:"Ecuador",ee:"Estonia",eg:"Egypt",eh:"Western Sahara",er:"Eritrea",es:"Spain",et:"Ethiopia",fi:"Finland",fj:"Fiji",fk:"Falkland Islands",fm:"Micronesia",fo:"Faroe Islands",fr:"France",ga:"Gabon",gb:"United Kingdom",gd:"Grenada",ge:"Georgia",gf:"French Guiana",gg:"Guernsey",gh:"Ghana",gi:"Gibraltar",gl:"Greenland",gm:"Gambia",gn:"Guinea",gp:"Guadeloupe",gq:"Equatorial Guinea",gr:"Greece",gt:"Guatemala",gu:"Guam",gw:"Guinea-Bissau",gy:"Guyana",hk:"Hong Kong SAR China",hn:"Honduras",hr:"Croatia",ht:"Haiti",hu:"Hungary",id:"Indonesia",ie:"Ireland",il:"Israel",im:"Isle of Man",in:"India",io:"British Indian Ocean Territory",iq:"Iraq",ir:"Iran",is:"Iceland",it:"Italy",je:"Jersey",jm:"Jamaica",jo:"Jordan",jp:"Japan",ke:"Kenya",kg:"Kyrgyzstan",kh:"Cambodia",ki:"Kiribati",km:"Comoros",kn:"St. Kitts & Nevis",kp:"North Korea",kr:"South Korea",kw:"Kuwait",ky:"Cayman Islands",kz:"Kazakhstan",la:"Laos",lb:"Lebanon",lc:"St. Lucia",li:"Liechtenstein",lk:"Sri Lanka",lr:"Liberia",ls:"Lesotho",lt:"Lithuania",lu:"Luxembourg",lv:"Latvia",ly:"Libya",ma:"Morocco",mc:"Monaco",md:"Moldova",me:"Montenegro",mf:"St. Martin",mg:"Madagascar",mh:"Marshall Islands",mk:"North Macedonia",ml:"Mali",mm:"Myanmar (Burma)",mn:"Mongolia",mo:"Macao SAR China",mp:"Northern Mariana Islands",mq:"Martinique",mr:"Mauritania",ms:"Montserrat",mt:"Malta",mu:"Mauritius",mv:"Maldives",mw:"Malawi",mx:"Mexico",my:"Malaysia",mz:"Mozambique",na:"Namibia",nc:"New Caledonia",ne:"Niger",nf:"Norfolk Island",ng:"Nigeria",ni:"Nicaragua",nl:"Netherlands",no:"Norway",np:"Nepal",nr:"Nauru",nu:"Niue",nz:"New Zealand",om:"Oman",pa:"Panama",pe:"Peru",pf:"French Polynesia",pg:"Papua New Guinea",ph:"Philippines",pk:"Pakistan",pl:"Poland",pm:"St. Pierre & Miquelon",pr:"Puerto Rico",ps:"Palestinian Territories",pt:"Portugal",pw:"Palau",py:"Paraguay",qa:"Qatar",re:"R\xe9union",ro:"Romania",rs:"Serbia",ru:"Russia",rw:"Rwanda",sa:"Saudi Arabia",sb:"Solomon Islands",sc:"Seychelles",sd:"Sudan",se:"Sweden",sg:"Singapore",sh:"St. Helena",si:"Slovenia",sj:"Svalbard & Jan Mayen",sk:"Slovakia",sl:"Sierra Leone",sm:"San Marino",sn:"Senegal",so:"Somalia",sr:"Suriname",ss:"South Sudan",st:"S\xe3o Tom\xe9 & Pr\xedncipe",sv:"El Salvador",sx:"Sint Maarten",sy:"Syria",sz:"Eswatini",tc:"Turks & Caicos Islands",td:"Chad",tg:"Togo",th:"Thailand",tj:"Tajikistan",tk:"Tokelau",tl:"Timor-Leste",tm:"Turkmenistan",tn:"Tunisia",to:"Tonga",tr:"Turkey",tt:"Trinidad & Tobago",tv:"Tuvalu",tw:"Taiwan",tz:"Tanzania",ua:"Ukraine",ug:"Uganda",us:"United States",uy:"Uruguay",uz:"Uzbekistan",va:"Vatican City",vc:"St. Vincent & Grenadines",ve:"Venezuela",vg:"British Virgin Islands",vi:"U.S. Virgin Islands",vn:"Vietnam",vu:"Vanuatu",wf:"Wallis & Futuna",ws:"Samoa",ye:"Yemen",yt:"Mayotte",za:"South Africa",zm:"Zambia",zw:"Zimbabwe",selectedCountryAriaLabel:"Change country, selected ${countryName} (${dialCode})",noCountrySelected:"Select country",countryListAriaLabel:"List of countries",searchPlaceholder:"Search",clearSearchAriaLabel:"Clear search",zeroSearchResults:"No results found",oneSearchResult:"1 result found",multipleSearchResults:"${count} results found",ac:"Ascension Island",xk:"Kosovo"},o={HIDE:"iti__hide",V_HIDE:"iti__v-hide",ARROW_UP:"iti__arrow--up",GLOBE:"iti__globe",FLAG:"iti__flag",COUNTRY_ITEM:"iti__country",HIGHLIGHT:"iti__highlight"},a={ARROW_UP:"ArrowUp",ARROW_DOWN:"ArrowDown",SPACE:" ",ENTER:"Enter",ESC:"Escape",TAB:"Tab"}
23,u={PASTE:"insertFromPaste",DELETE_FWD:"deleteContentForward"},h={ALPHA_UNICODE:/\p{L}/u,NON_PLUS_NUMERIC:/[^+0-9]/,NON_PLUS_NUMERIC_GLOBAL:/[^+0-9]/g,HIDDEN_SEARCH_CHAR:/^[a-zA-ZÀ-ÿа-яА-Я ]$/},d={HIDDEN_SEARCH_RESET_MS:1e3},c={SANE_SELECTED_WITH_DIAL_WIDTH:78,SANE_SELECTED_NO_DIAL_WIDTH:42,INPUT_PADDING_EXTRA_LEFT:6},p={NANP:"1"},m={DIAL_CODE:"44",MOBILE_PREFIX:"7",MOBILE_CORE_LENGTH:10},C={ISO2:"us"},g={AGGRESSIVE:"aggressive",POLITE:"polite"},y="auto",_={EXPANDED:"aria-expanded",LABEL:"aria-label",SELECTED:"aria-selected",ACTIVE_DESCENDANT:"aria-activedescendant",HASPOPUP:"aria-haspopup",CONTROLS:"aria-controls",HIDDEN:"aria-hidden",AUTOCOMPLETE:"aria-autocomplete",MODAL:"aria-modal"},b=t=>"undefined"!=typeof window&&"function"==typeof window.matchMedia&&window.matchMedia(t).matches,I={allowPhonewords:!1,allowDropdown:!0,autoPlaceholder:g.POLITE,containerClass:"",countryOrder:null,countrySearch:!0,customPlaceholder:null,dropdownContainer:null,excludeCountries:[],fixDropdownWidth:!0,formatAsYouType:!0,formatOnDisplay:!0,geoIpLookup:null,hiddenInput:null,i18n:{},initialCountry:"",loadUtils:null,nationalMode:!0,onlyCountries:[],placeholderNumberType:"MOBILE",showFlags:!0,separateDialCode:!1,strictMode:!1,useFullscreenPopup:(()=>{if("undefined"!=typeof navigator&&"undefined"!=typeof window){let t=/Android.+Mobile|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),e=b("(max-width: 500px)"),i=b("(max-height: 600px)"),s=b("(pointer: coarse)");return t||e||s&&i}return!1})(),validationNumberTypes:["MOBILE"]},f=(t,e)=>{t.useFullscreenPopup&&(t.fixDropdownWidth=!1),1===t.onlyCountries.length&&(t.initialCountry=t.onlyCountries[0]),t.separateDialCode&&(t.nationalMode=!1),!t.allowDropdown||t.showFlags||t.separateDialCode||(t.nationalMode=!1),t.useFullscreenPopup&&!t.dropdownContainer&&(t.dropdownContainer=document.body),t.i18n={...e,...t.i18n}},L=t=>t.replace(/\D/g,""),D=(t="")=>t.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase(),w=(t,e)=>{let i=D(e),s=[],n=[],l=[],r=[],o=[],a=[];for(let e of t)e.iso2===i?s.push(e):e.normalisedName.startsWith(i)?n.push(e):e.normalisedName.includes(i)?l.push(e):i===e.dialCode||i===e.dialCodePlus?r.push(e):e.dialCodePlus.includes(i)?o.push(e):e.initials.includes(i)&&a.push(e);let u=(t,e)=>t.priority-e.priority;return[...s.sort(u),...n.sort(u),...l.sort(u),...r.sort(u),...o.sort(u),...a.sort(u)]},N=(t,e)=>{let i=e.toLowerCase();for(let e of t)if(e.name.toLowerCase().startsWith(i))return e;return null},E=t=>Object.keys(t).filter(e=>!!t[e]).join(" "),A=(t,e,i)=>{let s=document.createElement(t);return e&&Object.entries(e).forEach(([t,e])=>s.setAttribute(t,e)),i&&i.appendChild(s),s},S=()=>`
24  <svg class="iti__search-icon-svg" width="14" height="14" viewBox="0 0 24 24" focusable="false" ${_.HIDDEN}="true">
25    <circle cx="11" cy="11" r="7" />
26    <line x1="21" y1="21" x2="16.65" y2="16.65" />
27  </svg>`,T=t=>{let e=`iti-${t}-clear-mask`;return`
28    <svg class="iti__search-clear-svg" width="12" height="12" viewBox="0 0 16 16" ${_.HIDDEN}="true" focusable="false">
29      <mask id="${e}" maskUnits="userSpaceOnUse">
30        <rect width="16" height="16" fill="white" />
31        <path d="M5.2 5.2 L10.8 10.8 M10.8 5.2 L5.2 10.8" stroke="black" stroke-linecap="round" class="iti__search-clear-x" />
32      </mask>
33      <circle cx="8" cy="8" r="8" class="iti__search-clear-bg" mask="url(#${e})" />
34    </svg>`},v=class{constructor(t,e,i){this.highlightedItem=null,this.selectedItem=null,t.dataset.intlTelInputId=i.toString(),this.telInput=t,this.options=e,this.id=i,this.hadInitialPlaceholder=!!t.getAttribute("placeholder"),this.isRTL=!!this.telInput.closest("[dir=rtl]"),this.options.separateDialCode&&(this.originalPaddingLeft=this.telInput.style.paddingLeft)}generateMarkup(t){this.countries=t,this._prepareTelInput();let e=this._createWrapperAndInsert();this._maybeBuildCountryContainer(e),e.appendChild(this.telInput),this._maybeUpdateInputPaddingAndReveal(),this._maybeBuildHiddenInputs(e)}_prepareTelInput(){this.telInput.classList.add("iti__tel-input"),this.telInput.hasAttribute("autocomplete")||this.telInput.form?.hasAttribute("autocomplete")||this.telInput.setAttribute("autocomplete","off")}_createWrapperAndInsert(){let{allowDropdown:t,showFlags:e,containerClass:i,useFullscreenPopup:s}=this.options,n=A("div",{class:E({iti:!0,"iti--allow-dropdown":t,"iti--show-flags":e,"iti--inline-dropdown":!s,[i]:!!i})});return this.isRTL&&n.setAttribute("dir","ltr"),this.telInput.before(n),n}_maybeBuildCountryContainer(t){let{allowDropdown:e,separateDialCode:i,show
34Flags:s}=this.options;if(e||s||i){this.countryContainer=A("div",{class:`iti__country-container ${o.V_HIDE}`},t),e?(this.selectedCountry=A("button",{type:"button",class:"iti__selected-country",[_.EXPANDED]:"false",[_.LABEL]:this.options.i18n.noCountrySelected,[_.HASPOPUP]:"dialog",[_.CONTROLS]:`iti-${this.id}__dropdown-content`},this.countryContainer),this.telInput.disabled&&this.selectedCountry.setAttribute("disabled","true")):this.selectedCountry=A("div",{class:"iti__selected-country"},this.countryContainer);let s=A("div",{class:"iti__selected-country-primary"},this.selectedCountry);this.selectedCountryInner=A("div",{class:o.FLAG},s),e&&(this.dropdownArrow=A("div",{class:"iti__arrow",[_.HIDDEN]:"true"},s)),i&&(this.selectedDialCode=A("div",{class:"iti__selected-dial-code"},this.selectedCountry)),e&&this._buildDropdownContent()}}_buildDropdownContent(){let{fixDropdownWidth:t,useFullscreenPopup:e,countrySearch:i,i18n:s,dropdownContainer:n,containerClass:l}=this.options;if(this.dropdownContent=A("div",{id:`iti-${this.id}__dropdown-content`,class:`iti__dropdown-content ${o.HIDE} ${t?"":"iti--flexible-dropdown-width"}`,role:"dialog",[_.MODAL]:"true"}),this.isRTL&&this.dropdownContent.setAttribute("dir","rtl"),i&&this._buildSearchUI(),this.countryList=A("ul",{class:"iti__country-list",id:`iti-${this.id}__country-listbox`,role:"listbox",[_.LABEL]:s.countryListAriaLabel},this.dropdownContent),this._appendListItems(),i&&this.updateSearchResultsA11yText(),n){let t=E({iti:!0,"iti--container":!0,"iti--fullscreen-popup":e,"iti--inline-dropdown":!e,[l]:!!l});this.dropdown=A("div",{class:t}),this.dropdown.appendChild(this.dropdownContent)}else this.countryContainer.appendChild(this.dropdownContent)}_buildSearchUI(){let{i18n:t}=this.options,e=A("div",{class:"iti__search-input-wrapper"},this.dropdownContent);this.searchIcon=A("span",{class:"iti__search-icon",[_.HIDDEN]:"true"},e),this.searchIcon.innerHTML=S(),this.searchInput=A("input",{id:`iti-${this.id}__search-input`,type:"search",class:"iti__search-input",placeholder:t.searchPlaceholder,role:"combobox",[_.EXPANDED]:"true",[_.LABEL]:t.searchPlaceholder,[_.CONTROLS]:`iti-${this.id}__country-listbox`,[_.AUTOCOMPLETE]:"list",autocomplete:"off"},e),this.searchClearButton=A("button",{type:"button",class:`iti__search-clear ${o.HIDE}`,[_.LABEL]:t.clearSearchAriaLabel,tabindex:"-1"},e),this.searchClearButton.innerHTML=T(this.id),this.searchResultsA11yText=A("span",{class:"iti__a11y-text"},this.dropdownContent),this.searchNoResults=A("div",{class:`iti__no-results ${o.HIDE}`,[_.HIDDEN]:"true"},this.dropdownContent),this.searchNoResults.textContent=t.zeroSearchResults}_maybeUpdateInputPaddingAndReveal(){this.countryContainer&&(this.updateInputPadding(),this.countryContainer.classList.remove(o.V_HIDE))}_maybeBuildHiddenInputs(t){let{hiddenInput:e}=this.options;if(e){let i=e(this.telInput.getAttribute("name")||"");if(i.phone){let e=this.telInput.form?.querySelector(`input[name="${i.phone}"]`);e?this.hiddenInput=e:(this.hiddenInput=A("input",{type:"hidden",name:i.phone}),t.appendChild(this.hiddenInput))}if(i.country){let e=this.telInput.form?.querySelector(`input[name="${i.country}"]`);e?this.hiddenInputCountry=e:(this.hiddenInputCountry=A("input",{type:"hidden",name:i.country}),t.appendChild(this.hiddenInputCountry))}}}_appendListItems(){let t=document.createDocumentFragment();for(let e=0;e<this.countries.length;e++){let i=this.countries[e],s=E({[o.COUNTRY_ITEM]:!0}),n=A("li",{id:`iti-${this.id}__item-${i.iso2}`,class:s,tabindex:"-1",role:"option",[_.SELECTED]:"false"});n.dataset.dialCode=i.dialCode,n.dataset.countryCode=i.iso2,i.nodeById[this.id]=n,this.options.showFlags&&A("div",{class:`${o.FLAG} iti__${i.iso2}`},n),A("span",{class:"iti__country-name"},n).textContent=i.name;let l=A("span",{class:"iti__dial-code"},n);this.isRTL&&l.setAttribute("dir","ltr"),l.textContent=`+${i.dialCode}`,t.appendChild(n)}this.countryList.appendChild(t)}updateInputPadding(){if(this.selectedCountry){let t=this.options.separateDialCode?c.SANE_SELECTED_WITH_DIAL_WIDTH:c.SANE_SELECTED_NO_DIAL_WIDTH,e=(this.selectedCountry.offsetWidth||this._getHiddenSelectedCountryWidth()||t)+c.INPUT_PADDING_EXTRA_LEFT;this.telInput.style.paddingLeft=`${e}px`}}_getHiddenSelectedCountryWidth(){if(this.telInput.parentNode){let t;try{t=window.top.document.body}catch(e){t=document.body}let e=this.telInput.parentNode.cloneNode(!1);e.style.visibility="hidden",t.appendChild(e);let i=this.countryContainer.cloneNode();e.appendChild(i);let s=this.selectedCountry.cloneNode(!0);i.appendChild(s);let n=s.offsetWidth;return t.removeChild(e),n}return 0}updateSearchResultsA11yText(){let t;let{i18n:e}=this.options,i=this.countryList.childElementCount;t=0===i?e.zeroSearchResults:e.searchResultsText?e.searchResultsText(i):1===i?e.oneSearchResult:e.multipleSearchResults.replace("${count}",i.toString()),this.searchResultsA11yText.textContent=t}scrollTo(t){let e=this.countryList,i=document.documentElement.scrollTop,s=e.offsetHeight,n=e.getBoundingClientRect().top+i,l=t.offsetHeight,r=t.getBoundingClientRect().top+i,o=r-n+e.scrollTop;
34r<n?e.scrollTop=o:r+l>n+s&&(e.scrollTop=o-(s-l))}highlightListItem(t,e){let i=this.highlightedItem;if(i&&i.classList.remove(o.HIGHLIGHT),this.highlightedItem=t,this.highlightedItem&&(this.highlightedItem.classList.add(o.HIGHLIGHT),this.options.countrySearch)){let t=this.highlightedItem.getAttribute("id")||"";this.searchInput.setAttribute(_.ACTIVE_DESCENDANT,t)}e&&this.highlightedItem.focus()}updateSelectedItem(t){if(this.selectedItem&&this.selectedItem.dataset.countryCode!==t&&(this.selectedItem.setAttribute(_.SELECTED,"false"),this.selectedItem=null),t&&!this.selectedItem){let e=this.countryList.querySelector(`[data-country-code="${t}"]`);e&&(e.setAttribute(_.SELECTED,"true"),this.selectedItem=e)}}filterCountries(t){this.countryList.innerHTML="";let e=!0;for(let i of t){let t=i.nodeById[this.id];t&&(this.countryList.appendChild(t),e&&(this.highlightListItem(t,!1),e=!1))}e?(this.highlightListItem(null,!1),this.searchNoResults&&this.searchNoResults.classList.remove(o.HIDE)):this.searchNoResults&&this.searchNoResults.classList.add(o.HIDE),this.countryList.scrollTop=0,this.updateSearchResultsA11yText()}destroy(){this.telInput.iti=void 0,delete this.telInput.dataset.intlTelInputId,this.options.separateDialCode&&(this.telInput.style.paddingLeft=this.originalPaddingLeft);let t=this.telInput.parentNode;for(let e of(t.before(this.telInput),t.remove(),this.telInput=null,this.countryContainer=null,this.selectedCountry=null,this.selectedCountryInner=null,this.selectedDialCode=null,this.dropdownArrow=null,this.dropdownContent=null,this.searchInput=null,this.searchIcon=null,this.searchClearButton=null,this.searchNoResults=null,this.searchResultsA11yText=null,this.countryList=null,this.dropdown=null,this.hiddenInput=null,this.hiddenInputCountry=null,this.highlightedItem=null,this.selectedItem=null,this.countries))delete e.nodeById[this.id];this.countries=null}},P=t=>{let{onlyCountries:e,excludeCountries:i}=t;if(e.length){let t=e.map(t=>t.toLowerCase());return l.filter(e=>t.includes(e.iso2))}if(i.length){let t=i.map(t=>t.toLowerCase());return l.filter(e=>!t.includes(e.iso2))}return l},R=(t,e)=>{for(let i of t){let t=i.iso2.toLowerCase();e.i18n[t]&&(i.name=e.i18n[t])}},k=t=>{let e=new Set,i=0,s={},n=(t,e)=>{if(!t||!e)return;e.length>i&&(i=e.length),s.hasOwnProperty(e)||(s[e]=[]);let n=s[e];n.includes(t)||n.push(t)};for(let i of[...t].sort((t,e)=>t.priority-e.priority)){e.has(i.dialCode)||e.add(i.dialCode);for(let t=1;t<i.dialCode.length;t++){let e=i.dialCode.substring(0,t);n(i.iso2,e)}if(n(i.iso2,i.dialCode),i.areaCodes){let t=s[i.dialCode][0];for(let e of i.areaCodes){for(let s=1;s<e.length;s++){let l=e.substring(0,s),r=i.dialCode+l;n(t,r),n(i.iso2,r)}n(i.iso2,i.dialCode+e)}}}return{dialCodes:e,dialCodeMaxLen:i,dialCodeToIso2Map:s}},O=(t,e)=>{e.countryOrder&&(e.countryOrder=e.countryOrder.map(t=>t.toLowerCase())),t.sort((t,i)=>{let{countryOrder:s}=e;if(s){let e=s.indexOf(t.iso2),n=s.indexOf(i.iso2),l=e>-1,r=n>-1;if(l||r)return l&&r?e-n:l?-1:1}return t.name.localeCompare(i.name)})},M=t=>{for(let e of t)e.normalisedName=D(e.name),e.initials=e.normalisedName.split(/[^a-z]/).map(t=>t[0]).join(""),e.dialCodePlus=`+${e.dialCode}`},H=(t,e,i,s)=>{let n=t;if(i&&e){let t=" "===n[(e=`+${s.dialCode}`).length]||"-"===n[e.length]?e.length+1:e.length;n=n.substring(t)}return n},x=(t,e,i,s,n)=>{let l=i?i.formatNumberAsYouType(t,s.iso2):t,{dialCode:r}=s;return n&&"+"!==e.charAt(0)&&l.includes(`+${r}`)?(l.split(`+${r}`)[1]||"").trim():l},B=(t,e,i,s)=>{if(0===i&&!s)return 0;let n=0;for(let i=0;i<e.length;i++){if(/[+0-9]/.test(e[i])&&n++,n===t&&!s)return i+1;if(s&&n===t+1)return i}return e.length},U=["800","822","833","844","855","866","877","880","881","882","883","884","885","886","887","888","889"],F=t=>{let e=L(t);if(e.startsWith(p.NANP)&&e.length>=4){let t=e.substring(1,4);return U.includes(t)}return!1};for(let t of l)t.name=r[t.iso2];var $=0,W=new Set(l.map(t=>t.iso2)),G=t=>W.has(t),z=class t{constructor(e,i={}){this.id=$++,this.options={...I,...i},f(this.options,r),this.ui=new v(e,this.options,this.id),this.isAndroid=t._getIsAndroid(),this.promise=this._createInitPromises(),this.countries=P(this.options);let{dialCodes:s,dialCodeMaxLen:n,dialCodeToIso2Map:l}=k(this.countries);this.dialCodes=s,this.dialCodeMaxLen=n,this.dialCodeToIso2Map=l,this.countryByIso2=new Map(this.countries.map(t=>[t.iso2,t])),this._init()}static _getIsAndroid(){return"undefined"!=typeof navigator&&/Android/i.test(navigator.userAgent)}_updateNumeralSet(t){/[\u0660-\u0669]/.test(t)?this.userNumeralSet="arabic-indic":/[\u06F0-\u06F9]/.test(t)?this.userNumeralSet="persian":this.userNumeralSet="ascii"}_mapAsciiToUserNumerals(t){if(this.userNumeralSet||this._updateNumeralSet(this.ui.telInput.value),"ascii"===this.userNumeralSet)return t;let e="arabic-indic"===this.userNumeralSet?1632:1776;return t.replace(/[0-9]/g,t=>String.fromCharCode(e+Number(t)))}_normaliseNumerals(t){if(!t)return"";if(this._updateNumeralSet(t),"ascii"===this.userNumeralSet)return t;let e="arabic-indic"===this.userNumeralSet?1632:1776,i="arabic-indic"===this.userNumeralSet?/[\u0660-\u0669]/g:/[\u06F0-\u06F9]/g;return t.replace(i,t=>String.fromCharCode(48+(t.charCodeAt(0)-e)))}_getTelInputValue(){let t=this.ui.telInput.value.trim();return this._normaliseNumerals(t)}_setTelInputValue(t){this.ui.telInput.value=this._mapAsciiToUserNumerals(t)}_createInitPromises(){return Promise.all([new Promise((t,e)=>{this.resolveAutoCountryPromise=t,this.rejectAutoCountryPromise=e}),new Promise((t,e)=>{this.resolveUtilsScriptPromise=t,this.rejectUtilsScriptPromise=e})])}_init(){this.selectedCountryData={},this.abortController=new AbortController,this._processCountryData(),this.ui.generateMarkup(this.countries),this._setInitialState(),this._initListeners(),this._initRequests()}_processCountryData(){R(this.countries,this.options),O(this.countries,this.options),M(this.countries)}_setInitialState(t=!1){let e=this.ui.telInput.getAttribute("value"),i=this._normaliseNumerals(e),s=this._getTelInputValue(),n=i&&i.startsWith("+")&&(!s||!s.startsWith("+"))?i:s,l=this._getDialCode(n),r=F(n),{initialCountry:o,geoIpLookup:a}=this.options;if(l&&!r)this._updateCountryFromNumber(n);else if(!(o===y&&a)||t){let t=o?o.toLowerCase():"";G(t)?this._setCountry(t):l&&r?this._setCountry(C.ISO2):this._setCountry("")}
34n&&this._updateValFromNumber(n)}_initListeners(){this._initTelInputListeners(),this.options.allowDropdown&&this._initDropdownListeners(),(this.ui.hiddenInput||this.ui.hiddenInputCountry)&&this.ui.telInput.form&&this._initHiddenInputListener()}_initHiddenInputListener(){this.ui.telInput.form?.addEventListener("submit",()=>{this.ui.hiddenInput&&(this.ui.hiddenInput.value=this.getNumber()),this.ui.hiddenInputCountry&&(this.ui.hiddenInputCountry.value=this.selectedCountryData.iso2||"")},{signal:this.abortController.signal})}_initDropdownListeners(){let t=this.abortController.signal,e=this.ui.telInput.closest("label");e&&e.addEventListener("click",t=>{this.ui.dropdownContent.classList.contains(o.HIDE)?this.ui.telInput.focus():t.preventDefault()},{signal:t}),this.ui.selectedCountry.addEventListener("click",()=>{!this.ui.dropdownContent.classList.contains(o.HIDE)||this.ui.telInput.disabled||this.ui.telInput.readOnly||this._openDropdown()},{signal:t}),this.ui.countryContainer.addEventListener("keydown",t=>{this.ui.dropdownContent.classList.contains(o.HIDE)&&[a.ARROW_UP,a.ARROW_DOWN,a.SPACE,a.ENTER].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),this._openDropdown()),t.key===a.TAB&&this._closeDropdown()},{signal:t})}_initRequests(){let{loadUtils:t,initialCountry:e,geoIpLookup:i}=this.options;if(t&&!j.utils){let e=()=>{j.attachUtils(t)?.catch(()=>{})};j.documentReady()?e():window.addEventListener("load",()=>{e()},{signal:this.abortController.signal})}else this.resolveUtilsScriptPromise();e===y&&i&&!this.selectedCountryData.iso2?this._loadAutoCountry():this.resolveAutoCountryPromise()}_loadAutoCountry(){j.autoCountry?this.handleAutoCountry():j.startedLoadingAutoCountry||(j.startedLoadingAutoCountry=!0,"function"==typeof this.options.geoIpLookup&&this.options.geoIpLookup((t="")=>{let e=t.toLowerCase();G(e)?(j.autoCountry=e,setTimeout(()=>V("handleAutoCountry"))):(this._setInitialState(!0),V("rejectAutoCountryPromise"))},()=>{this._setInitialState(!0),V("rejectAutoCountryPromise")}))}_openDropdownWithPlus(){this._openDropdown(),this.ui.searchInput.value="+",this._filterCountriesByQuery("")}_initTelInputListeners(){this._bindInputListener(),this._maybeBindKeydownListener(),this._maybeBindPasteListener()}_bindInputListener(){let{strictMode:t,formatAsYouType:e,separateDialCode:i,allowDropdown:s,countrySearch:n}=this.options,l=!1;h.ALPHA_UNICODE.test(this._getTelInputValue())&&(l=!0),this.ui.telInput.addEventListener("input",r=>{let o=this._getTelInputValue();if(this.isAndroid&&r?.data==="+"&&i&&s&&n){let t=this.ui.telInput.selectionStart||0,e=o.substring(0,t-1),i=o.substring(t);this._setTelInputValue(e+i),this._openDropdownWithPlus();return}this._updateCountryFromNumber(o)&&this._triggerCountryChange();let a=r?.data&&h.NON_PLUS_NUMERIC.test(r.data),d=r?.inputType===u.PASTE&&o;a||d&&!t?l=!0:h.NON_PLUS_NUMERIC.test(o)||(l=!1);let c=r?.detail&&r.detail.isSetNumber,p="ascii"===this.userNumeralSet;if(e&&!l&&!c&&p){let t=this.ui.telInput.selectionStart||0,e=o.substring(0,t).replace(h.NON_PLUS_NUMERIC_GLOBAL,"").length,i=r?.inputType===u.DELETE_FWD,s=x(this._getFullNumber(),o,j.utils,this.selectedCountryData,this.options.separateDialCode),n=B(e,s,t,i);this._setTelInputValue(s),this.ui.telInput.setSelectionRange(n,n)}},{signal:this.abortController.signal})}_maybeBindKeydownListener(){let{strictMode:t,separateDialCode:e,allowDropdown:i,countrySearch:s}=this.options;(t||e)&&this.ui.telInput.addEventListener("keydown",n=>{if(n.key&&1===n.key.length&&!n.altKey&&!n.ctrlKey&&!n.metaKey){if(e&&i&&s&&"+"===n.key){n.preventDefault(),this._openDropdownWithPlus();return}if(t){let t=this._getTelInputValue(),i=!t.startsWith("+")&&0===this.ui.telInput.selectionStart&&"+"===n.key,s=this._normaliseNumerals(n.key),l=/^[0-9]$/.test(s),r=this.ui.telInput,o=r.selectionStart,a=r.selectionEnd,u=t.slice(0,o),h=t.slice(a),d=u+n.key+h,c=this._getFullNumber(d),p=j.utils.getCoreNumber(c,this.selectedCountryData.iso2),m=this.maxCoreNumberLength&&p.length>this.maxCoreNumberLength,C=this._getNewCountryFromNumber(c);(e?l:i||l)&&(!m||null!==C||i)||n.preventDefault()}}},{signal:this.abortController.signal})}_maybeBindPasteListener(){this.options.strictMode&&this.ui.telInput.addEventListener("paste",t=>{t.preventDefault();let e=this.ui.telInput,i=e.selectionStart,s=e.selectionEnd,n=this._getTelInputValue(),l=n.slice(0,i),r
34=n.slice(s),o=this.selectedCountryData.iso2,a=t.clipboardData.getData("text"),u=this._normaliseNumerals(a),d=0===i&&s>0,c=!n.startsWith("+")||d,p=u.replace(h.NON_PLUS_NUMERIC_GLOBAL,""),m=p.startsWith("+"),C=p.replace(/\+/g,""),g=m&&c?`+${C}`:C,y=l+g+r;if(y.length>5){let t=j.utils.getCoreNumber(y,o);for(;0===t.length&&y.length>0;)y=y.slice(0,-1),t=j.utils.getCoreNumber(y,o);if(!t)return;if(this.maxCoreNumberLength&&t.length>this.maxCoreNumberLength){if(e.selectionEnd!==n.length)return;{let e=t.length-this.maxCoreNumberLength;y=y.slice(0,y.length-e)}}}this._setTelInputValue(y);let _=i+g.length;e.setSelectionRange(_,_),e.dispatchEvent(new InputEvent("input",{bubbles:!0}))},{signal:this.abortController.signal})}_cap(t){let e=Number(this.ui.telInput.getAttribute("maxlength"));return e&&t.length>e?t.substring(0,e):t}_trigger(t,e={}){let i=new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:e});this.ui.telInput.dispatchEvent(i)}_openDropdown(){let{fixDropdownWidth:t,countrySearch:e}=this.options;if(this.dropdownAbortController=new AbortController,t&&(this.ui.dropdownContent.style.width=`${this.ui.telInput.offsetWidth}px`),this.ui.dropdownContent.classList.remove(o.HIDE),this.ui.selectedCountry.setAttribute(_.EXPANDED,"true"),this._setDropdownPosition(),e){let t=this.ui.countryList.firstElementChild;t&&(this.ui.highlightListItem(t,!1),this.ui.countryList.scrollTop=0),this.ui.searchInput.focus()}this._bindDropdownListeners(),this.ui.dropdownArrow.classList.add(o.ARROW_UP),this._trigger("open:countrydropdown")}_setDropdownPosition(){if(this.options.dropdownContainer&&this.options.dropdownContainer.appendChild(this.ui.dropdown),!this.options.useFullscreenPopup){let t=this.ui.telInput.getBoundingClientRect(),e=this.ui.telInput.offsetHeight;this.options.dropdownContainer&&(this.ui.dropdown.style.top=`${t.top+e}px`,this.ui.dropdown.style.left=`${t.left}px`,window.addEventListener("scroll",()=>this._closeDropdown(),{signal:this.dropdownAbortController.signal}))}}_bindDropdownListeners(){let t=this.dropdownAbortController.signal;this._bindDropdownMouseoverListener(t),this._bindDropdownCountryClickListener(t),this._bindDropdownClickOffListener(t),this._bindDropdownKeydownListener(t),this.options.countrySearch&&this._bindDropdownSearchListeners(t)}_bindDropdownMouseoverListener(t){this.ui.countryList.addEventListener("mouseover",t=>{let e=t.target?.closest(`.${o.COUNTRY_ITEM}`);e&&this.ui.highlightListItem(e,!1)},{signal:t})}_bindDropdownCountryClickListener(t){this.ui.countryList.addEventListener("click",t=>{let e=t.target?.closest(`.${o.COUNTRY_ITEM}`);e&&this._selectListItem(e)},{signal:t})}_bindDropdownClickOffListener(t){let e=t=>{t.target.closest(`#iti-${this.id}__dropdown-content`)||this._closeDropdown()};setTimeout(()=>{document.documentElement.addEventListener("click",e,{signal:t})},0)}_bindDropdownKeydownListener(t){let e="",i=null;document.addEventListener("keydown",t=>{[a.ARROW_UP,a.ARROW_DOWN,a.ENTER,a.ESC].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),t.key===a.ARROW_UP||t.key===a.ARROW_DOWN?this._handleUpDownKey(t.key):t.key===a.ENTER?this._handleEnterKey():t.key===a.ESC&&(this._closeDropdown(),this.ui.selectedCountry.focus())),!this.options.countrySearch&&h.HIDDEN_SEARCH_CHAR.test(t.key)&&(t.stopPropagation(),i&&clearTimeout(i),e+=t.key.toLowerCase(),this._searchForCountry(e),i=setTimeout(()=>{e=""},d.HIDDEN_SEARCH_RESET_MS))},{signal:t})}_bindDropdownSearchListeners(t){let e=()=>{let t=this.ui.searchInput.value.trim();this._filterCountriesByQuery(t),this.ui.searchInput.value?this.ui.searchClearButton.classList.remove(o.HIDE):this.ui.searchClearButton.classList.add(o.HIDE)},i=null;this.ui.searchInput.addEventListener("input",()=>{i&&clearTimeout(i),i=setTimeout(()=>{e(),i=null},100)},{signal:t}),this.ui.searchClearButton.addEventListener("click",()=>{this.ui.searchInput.value="",this.ui.searchInput.focus(),e()},{signal:t})}_searchForCountry(t){let e=N(this.countries,t);if(e){let t=e.nodeById[this.id];this.ui.highlightListItem(t,!1),this.ui.scrollTo(t)}}_filterCountriesByQuery(t){let e;e=""===t?this.countries:w(this.countries,t),this.ui.filterCountries(e)}_handleUpDownKey(t){let e=t===a.ARROW_UP?this.ui.highlightedItem?.previousElementSibling:this.ui.highlightedItem?.nextElementSibling;!e&&this.ui.countryList.childElementCount>1&&(e=t===a.ARROW_UP?this.ui.countryList.lastElementChild:this.ui.countryList.firstElementChild),e&&(this.ui.scrollTo(e),this.ui.highlightListItem(e,!1))}_handleEnterKey(){this.ui.highlightedItem&&this._selectListItem(this.ui.highlightedItem)}_updateValFromNumber(t){let e=t;if(this.options.formatOnDisplay&&j.utils&&this.selectedCountryData){let t=this.options.nationalMode||!e.startsWith("+")&&!this.options.separateDialCode,{NATIONAL:i,INTERNATIONAL:s}=j.utils.numberFormat;e=j.utils.formatNumber(e,this.selectedCountryData.iso2,t?i:s)}e=this._beforeSetNumber(e),this._setTelInputValue(e)}_updateCountryFromNumber(t){let e=this._getNewCountryFromNumber(t);return null!==e&&this._setCountry(e)}_ensureHasDialCode(t){let{dialCode:e,nationalPrefix:i}=this.selectedCountryData;if(t.startsWith("+")||!e)return t;let s=i&&t.startsWith(i)&&!this.options.separateDialCode?t.substring(1):t;return`+${e}${s}`}_getNewCountryFromNumber(t){let e=t.indexOf("+"),i=e?t.substring(e):t,s=this.selectedCountryData.iso2,n=this.selectedCountryData.dialCode;i=this._ensureHasDialCode(i);let l=this._getDialCode(i,!0),r=L(i);if(l){let t=L(l),e=this.dialCodeToIso2Map[t];if(1===e.length)return e[0]===s?null:e[0];if(!s&&this.defaultCountry&&e.includes(this.defaultCountry))return this.defaultCountry;if(n===p.NANP&&F(r))return null;let{areaCodes:i,priority:o}=this.selectedCountryData;if(i){for(let t of i.map(t=>`${n}${t}`))if(r.startsWith(t))return null}let a=i&&0!==o&&r.length>t.length,u=s&&e.includes(s)&&!a,h=s===e[0];if(!u&&!h)return e[0]}else if(i.startsWith("+")&&r.length){let t=this.selectedCountryData.dialCode||"";return t&&t.startsWith(r)?null:""}else if((!i||"+"===i)&&!s)return this.defaultCountry;return null}_setCountry(t){let{separateDialCode:e,showFlags:i,i18n:s,allowDropdown:n}=this.options,l=this.selectedCountryData.iso2||"";if(n&&this.ui.updateSelectedItem(t),this.selectedCountryData=t?this.countryByIso2.get(t):{},this.selectedCountryData.iso2&&(this.defaultCountry=this.selectedCountryData.iso2),this.ui.selectedCountry){let e,n;let l=t&&i?`${o.FLAG} iti__${t}`:`${o.FLAG} ${o.GLOBE}`;if(t){let{name:t,dialCode:i}=this.selectedCountryData;n=t,e=s.selectedCountryAriaLabel.replace("${countryName}",t).replace("${dialCode}",`+${i}`)}else n=s.noCountrySelected,e=s.noCountrySelected;this.ui.selectedCountryInner.className=l,this.ui.selectedCountry.setAttribute("title",n),this.ui.selectedCountry.setAttribute(_.LABEL,e)}if(e){let t=this.selectedCountryData.dialCode?`+${this.selectedCountryData.dialCode}`:"";this.ui.selectedDialCode.textContent=t,this.ui.updateInputPadding()}return this._updatePlaceholder(),this._updateMaxLength(),l!==t}_updateMaxLength(){let{strictMode:t,placeholderNumberType:e,validationNumberTypes:i}=this.options,{iso2:s}=this.selectedCountryData;if(t&&j.utils){if(s){let t=j.utils.numberType[e],n=j.utils.getExampleNumber(s,!1,t,!0),l=n;for(;j.utils.isPossibleNumber(n,s,i);)l=n,n+="0";let r=j.utils.getCoreNumber(l,s);this.maxCoreNumberLength=r.length,"by"===s&&(this.maxCoreNumberLength=r.length+1)}else this.maxCoreNumberLength=null}}_updatePlaceholder(){let{autoPlaceholder:t,placeholderNumberType:e,nationalMode:i,customPlaceholder:s}=this.options,n=t===g.AGGRESSIVE||!this.ui.hadInitialPlaceholder&&t===g.POLITE;if(j.utils&&n){let t=j.utils.numberType[e],n=this.selectedCountryData.iso2?j.utils.getExampleNumber(this.selectedCountryData.iso2,i,t):"";n=this._beforeSetNumber(n),"function"==typeof s&&(n=s(n,this.selectedCountryData)),this.ui.telInput.setAttribute("placeholder",n)}}_selectListItem(t){let e=t.dataset.countryCode,i=this._setCountry(e);this._closeDropdown();let s=t.dataset.dialCode;if(this._updateDialCode(s),this.options.formatOnDisplay){let t=this._getTelInputValue();
34this._updateValFromNumber(t)}this.ui.telInput.focus(),i&&this._triggerCountryChange()}_closeDropdown(){this.ui.dropdownContent.classList.contains(o.HIDE)||(this.ui.dropdownContent.classList.add(o.HIDE),this.ui.selectedCountry.setAttribute(_.EXPANDED,"false"),this.options.countrySearch&&(this.ui.searchInput.removeAttribute(_.ACTIVE_DESCENDANT),this.ui.highlightedItem&&(this.ui.highlightedItem.classList.remove(o.HIGHLIGHT),this.ui.highlightedItem=null)),this.ui.dropdownArrow.classList.remove(o.ARROW_UP),this.dropdownAbortController.abort(),this.dropdownAbortController=null,this.options.dropdownContainer&&this.ui.dropdown.remove(),this._trigger("close:countrydropdown"))}_updateDialCode(t){let e;let i=this._getTelInputValue(),s=`+${t}`;if(i.startsWith("+")){let t=this._getDialCode(i);e=t?i.replace(t,s):s,this._setTelInputValue(e)}}_getDialCode(t,e){let i="";if(t.startsWith("+")){let s="",n=!1;for(let l=0;l<t.length;l++){let r=t.charAt(l);if(/[0-9]/.test(r)){if(s+=r,!this.dialCodeToIso2Map[s])break;if(this.dialCodes.has(s)){if(i=t.substring(0,l+1),n=!0,!e)break}else e&&n&&(i=t.substring(0,l+1));if(s.length===this.dialCodeMaxLen)break}}}return i}_getFullNumber(t){let e=t?this._normaliseNumerals(t):this._getTelInputValue(),{dialCode:i}=this.selectedCountryData,s=L(e);return(this.options.separateDialCode&&!e.startsWith("+")&&i&&s?`+${i}`:"")+e}_beforeSetNumber(t){let e=this._getDialCode(t),i=H(t,e,this.options.separateDialCode,this.selectedCountryData);return this._cap(i)}_triggerCountryChange(){this._trigger("countrychange")}handleAutoCountry(){this.options.initialCountry===y&&j.autoCountry&&(this.defaultCountry=j.autoCountry,this.selectedCountryData.iso2||this.ui.selectedCountryInner.classList.contains(o.GLOBE)||this.setCountry(this.defaultCountry),this.resolveAutoCountryPromise())}handleUtils(){if(j.utils){let t=this._getTelInputValue();t&&this._updateValFromNumber(t),this.selectedCountryData.iso2&&(this._updatePlaceholder(),this._updateMaxLength())}this.resolveUtilsScriptPromise()}destroy(){this.ui.telInput&&(this.options.allowDropdown&&this._closeDropdown(),this.abortController.abort(),this.abortController=null,this.ui.destroy(),j.instances instanceof Map?j.instances.delete(this.id):delete j.instances[this.id])}getExtension(){return j.utils?j.utils.getExtension(this._getFullNumber(),this.selectedCountryData.iso2):""}getNumber(t){if(j.utils){let{iso2:e}=this.selectedCountryData,i=this._getFullNumber(),s=j.utils.formatNumber(i,e,t);return this._mapAsciiToUserNumerals(s)}return""}getNumberType(){return j.utils?j.utils.getNumberType(this._getFullNumber(),this.selectedCountryData.iso2):-99}getSelectedCountryData(){return this.selectedCountryData}getValidationError(){if(j.utils){let{iso2:t}=this.selectedCountryData;return j.utils.getValidationError(this._getFullNumber(),t)}return -99}isValidNumber(){let{dialCode:t,iso2:e}=this.selectedCountryData;if(t===m.DIAL_CODE&&j.utils){let t=this._getFullNumber(),i=j.utils.getCoreNumber(t,e);if(i[0]===m.MOBILE_PREFIX&&i.length!==m.MOBILE_CORE_LENGTH)return!1}return this._validateNumber(!1)}isValidNumberPrecise(){return this._validateNumber(!0)}_utilsIsPossibleNumber(t){return j.utils?j.utils.isPossibleNumber(t,this.selectedCountryData.iso2,this.options.validationNumberTypes):null}_validateNumber(t){if(!j.utils)return null;if(!this.selectedCountryData.iso2)return!1;let e=e=>t?this._utilsIsValidNumber(e):this._utilsIsPossibleNumber(e),i=this._getFullNumber(),s=i.search(h.ALPHA_UNICODE);if(s>-1&&!this.options.allowPhonewords){let t=e(i.substring(0,s)),n=e(i);return t&&n}return e(i)}_utilsIsValidNumber(t){return j.utils?j.utils.isValidNumber(t,this.selectedCountryData.iso2,this.options.validationNumberTypes):null}setCountry(t){let e=t?.toLowerCase();if(!G(e))throw Error(`Invalid country code: '${e}'`);let i=this.selectedCountryData.iso2;if(t&&e!==i||!t&&i){if(this._setCountry(e),this._updateDialCode(this.selectedCountryData.dialCode),this.options.formatOnDisplay){let t=this._getTelInputValue();this._updateValFromNumber(t)}this._triggerCountryChange()}}setNumber(t){let e=this._normaliseNumerals(t),i=this._updateCountryFromNumber(e);
34this._updateValFromNumber(e),i&&this._triggerCountryChange(),this._trigger("input",{isSetNumber:!0})}setPlaceholderNumberType(t){this.options.placeholderNumberType=t,this._updatePlaceholder()}setDisabled(t){this.ui.telInput.disabled=t,t?this.ui.selectedCountry.setAttribute("disabled","true"):this.ui.selectedCountry.removeAttribute("disabled")}},V=(t,...e)=>{Object.values(j.instances).forEach(i=>{let s=i[t];"function"==typeof s&&s.apply(i,e)})},j=Object.assign((t,e)=>{let i=new z(t,e);return j.instances[i.id]=i,t.iti=i,i},{defaults:I,documentReady:()=>"complete"===document.readyState,getCountryData:()=>l,getInstance:t=>{let e=t.dataset.intlTelInputId;return e?j.instances[e]:null},instances:{},attachUtils:t=>{if(!j.utils&&!j.startedLoadingUtilsScript){let e;if("function"!=typeof t)return Promise.reject(TypeError(`The argument passed to attachUtils must be a function that returns a promise for the utilities module, not ${typeof t}`));try{e=Promise.resolve(t())}catch(t){return Promise.reject(t)}return j.startedLoadingUtilsScript=!0,e.then(t=>{let e=t?.default;if(!e||"object"!=typeof e)throw TypeError("The loader function passed to attachUtils did not resolve to a module object with utils as its default export.");return j.utils=e,V("handleUtils"),!0}).catch(t=>{throw V("rejectUtilsScriptPromise",t),t})}return null},startedLoadingUtilsScript:!1,startedLoadingAutoCountry:!1,version:"25.15.1"}),K=j;return((n,l,r,o)=>{if(l&&"object"==typeof l||"function"==typeof l)for(let r of i(l))s.call(n,r)||void 0===r||t(n,r,{get:()=>l[r],enumerable:!(o=e(l,r))||o.enumerable});return n})(t({},"__esModule",{value:!0}),n)})().default}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.