import{R as N,r as S,j as W,g as io,a as va}from"./jsx-runtime-BMrMXMSG.js";import{b as oo}from"./utils-Br2EXFOw.js";import{r as _s}from"./components-Cr-DqYPJ.js";/**
 * @license lucide-react v0.468.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ms=oo("EyeClosed",[["path",{d:"m15 18-.722-3.25",key:"1j64jw"}],["path",{d:"M2 8a10.645 10.645 0 0 0 20 0",key:"1e7gxb"}],["path",{d:"m20 15-1.726-2.05",key:"1cnuld"}],["path",{d:"m4 15 1.726-2.05",key:"1dsqqd"}],["path",{d:"m9 18 .722-3.25",key:"ypw2yx"}]]);/**
 * @license lucide-react v0.468.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ds=oo("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);var Tt=e=>e.type==="checkbox",Qe=e=>e instanceof Date,ve=e=>e==null;const uo=e=>typeof e=="object";var ae=e=>!ve(e)&&!Array.isArray(e)&&uo(e)&&!Qe(e),so=e=>ae(e)&&e.target?Tt(e.target)?e.target.checked:e.target.value:e,ks=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,lo=(e,t)=>e.has(ks(t)),Ls=e=>{const t=e.constructor&&e.constructor.prototype;return ae(t)&&t.hasOwnProperty("isPrototypeOf")},Dn=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function be(e){let t;const r=Array.isArray(e),n=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(Dn&&(e instanceof Blob||n))&&(r||ae(e)))if(t=r?[]:{},!r&&!Ls(e))t=e;else for(const a in e)e.hasOwnProperty(a)&&(t[a]=be(e[a]));else return e;return t}var vr=e=>Array.isArray(e)?e.filter(Boolean):[],ee=e=>e===void 0,A=(e,t,r)=>{if(!t||!ae(e))return r;const n=vr(t.split(/[,[\].]+?/)).reduce((a,i)=>ve(a)?a:a[i],e);return ee(n)||n===e?ee(e[t])?r:e[t]:n},xe=e=>typeof e=="boolean",kn=e=>/^\w*$/.test(e),co=e=>vr(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Q=(e,t,r)=>{let n=-1;const a=kn(t)?[t]:co(t),i=a.length,o=i-1;for(;++n<i;){const s=a[n];let u=r;if(n!==o){const l=e[s];u=ae(l)||Array.isArray(l)?l:isNaN(+a[n+1])?{}:[]}if(s==="__proto__"||s==="constructor"||s==="prototype")return;e[s]=u,e=e[s]}return e};const Jt={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Te={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Be={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},fo=N.createContext(null),Rt=()=>N.useContext(fo),mg=e=>{const{children:t,...r}=e;return N.createElement(fo.Provider,{value:r},t)};var po=(e,t,r,n=!0)=>{const a={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(a,i,{get:()=>{const o=i;return t._proxyFormState[o]!==Te.all&&(t._proxyFormState[o]=!n||Te.all),r&&(r[o]=!0),e[o]}});return a},Ce=e=>ae(e)&&!Object.keys(e).length,$o=(e,t,r,n)=>{r(e);const{name:a,...i}=e;return Ce(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find(o=>t[o]===(!n||Te.all))},St=e=>Array.isArray(e)?e:[e],ho=(e,t,r)=>!e||!t||e===t||St(e).some(n=>n&&(r?n===t:n.startsWith(t)||t.startsWith(n)));function Ln(e){const t=N.useRef(e);t.current=e,N.useEffect(()=>{const r=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{r&&r.unsubscribe()}},[e.disabled])}function Vs(e){const t=Rt(),{control:r=t.control,disabled:n,name:a,exact:i}=e||{},[o,s]=N.useState(r._formState),u=N.useRef(!0),l=N.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),d=N.useRef(a);return d.current=a,Ln({disabled:n,next:c=>u.current&&ho(d.current,c.name,i)&&$o(c,l.current,r._updateFormState)&&s({...r._formState,...c}),subject:r._subjects.state}),N.useEffect(()=>(u.current=!0,l.current.isValid&&r._updateValid(!0),()=>{u.current=!1}),[r]),N.useMemo(()=>po(o,r,l.current,!1),[o,r])}var Ve=e=>typeof e=="string",go=(e,t,r,n,a)=>Ve(e)?(n&&t.watch.add(e),A(r,e,a)):Array.isArray(e)?e.map(i=>(n&&t.watch.add(i),A(r,i))):(n&&(t.watchAll=!0),r);function js(e){const t=Rt(),{control:r=t.control,name:n,defaultValue:a,disabled:i,exact:o}=e||{},s=N.useRef(n);s.current=n,Ln({disabled:i,subject:r._subjects.values,next:d=>{ho(s.current,d.name,o)&&l(be(go(s.current,r._names,d.values||r._formValues,!1,a)))}});const[u,l]=N.useState(r._getWatch(n,a));return N.useEffect(()=>r._removeUnmounted()),u}function Bs(e){const t=Rt(),{name:r,disabled:n,control:a=t.control,shouldUnregister:i}=e,o=lo(a._names.array,r),s=js({control:a,name:r,defaultValue:A(a._formValues,r,A(a._defaultValues,r,e.defaultValue)),exact:!0}),u=Vs({control:a,name:r,exact:!0}),l=N.useRef(a.register(r,{...e.rules,value:s,...xe(e.disabled)?{disabled:e.disabled}:{}})),d=N.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!A(u.errors,r)},isDirty:{enumerable:!0,get:()=>!!A(u.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!A(u.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!A(u.validatingFields,r)},error:{enumerable:!0,get:()=>A(u.errors,r)}}),[u,r]),c=N.useMemo(()=>({name:r,value:s,...xe(n)||u.disabled?{disabled:u.disabled||n}:{},onChange:$=>l.current.onChange({target:{value:so($),name:r},type:Jt.CHANGE}),onBlur:()=>l.current.onBlur({target:{value:A(a._formValues,r),name:r},type:Jt.BLUR}),ref:$=>{const v=A(a._fields,r);v&&$&&(v._f.ref={focus:()=>$.focus(),select:()=>$.select(),setCustomValidity:g=>$.setCustomValidity(g),reportValidity:()=>$.reportValidity()})}}),[r,a._formValues,n,u.disabled,s,a._fields]);return N.useEffect(()=>{const $=a._options.shouldUnregister||i,v=(g,m)=>{const p=A(a._fields,g);p&&p._f&&(p._f.mount=m)};if(v(r,!0),$){const g=be(A(a._options.defaultValues,r));Q(a._defaultValues,r,g),ee(A(a._formValues,r))&&Q(a._formValues,r,g)}return()=>{(o?$&&!a._state.action:$)?a.unregister(r):v(r,!1)}},[r,a,o,i]),N.useEffect(()=>{xe(n)&&A(a._fields,r)&&a._updateDisabledField({disabled:n,fields:a._fields,name:r,value:A(a._fields,r)._f.value})},[n,r,a]),N.useMemo(()=>({field:c,formState:u,fieldState:d}),[c,u,d])}const Vn=e=>e.render(Bs(e));var Us=(e,t,r,n,a)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:a||!0}}:{},ma=e=>({isOnSubmit:!e||e===Te.onSubmit,isOnBlur:e===Te.onBlur,isOnChange:e===Te.onChange,isOnAll:e===Te.all,isOnTouch:e===Te.onTouched}),ya=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(n=>e.startsWith(n)&&/^\.\w+/.test(e.slice(n.length))));const Ot=(e,t,r,n)=>{for(const a of r||Object.keys(e)){const i=A(e,a);if(i){const{_f:o,...s}=i;if(o){if(o.refs&&o.refs[0]&&t(o.refs[0],a)&&!n)return!0;if(o.ref&&t(o.ref,o.name)&&!n)return!0;if(Ot(s,t))break}else if(ae(s)&&Ot(s,t))break}}};var Hs=(e,t,r)=>{const n=St(A(e,r));return Q(n,"root",t[r]),Q(e,r,n),e},jn=e=>e.type==="file",Le=e=>typeof e=="function",Qt=e=>{if(!Dn)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Wt=e=>Ve(e),Bn=e=>e.type==="radio",er=e=>e instanceof RegExp;const ba={value:!1,isValid:!1},Ca={value:!0,isValid:!0};var vo=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(r=>r&&r.checked&&!r.disabled).map(r=>r.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!ee(e[0].attributes.value)?ee(e[0].value)||e[0].value===""?Ca:{value:e[0].value,isValid:!0}:Ca:ba}return ba};const Sa={isValid:!1,value:null};var mo=e=>Array.isArray(e)?e.reduce((t,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:t,Sa):Sa;function Oa(e,t,r="validate"){if(Wt(e)||Array.isArray(e)&&e.every(Wt)||xe(e)&&!e)return{type:r,message:Wt(e)?e:"",ref:t}}var tt=e=>ae(e)&&!er(e)?e:{value:e,message:""},Pa=async(e,t,r,n,a)=>{const{ref:i,refs:o,required:s,maxLength:u,minLength:l,min:d,max:c,pattern:$,validate:v,name:g,valueAsNumber:m,mount:p,disabled:h}=e._f,b=A(t,g);if(!p||h)return{};const x=o?o[0]:i,T=M=>{n&&x.reportValidity&&(x.setCustomValidity(xe(M)?"":M||""),x.reportValidity())},P={},I=Bn(i),E=Tt(i),_=I||E,U=(m||jn(i))&&ee(i.value)&&ee(b)||Qt(i)&&i.value===""||b===""||Array.isArray(b)&&!b.length,j=Us.bind(null,g,r,P),J=(M,B,K,H=Be.maxLength,q=Be.minLength)=>{const Z=M?B:K;P[g]={type:M?H:q,message:Z,ref:i,...j(M?H:q,Z)}};if(a?!Array.isArray(b)||!b.length:s&&(!_&&(U||ve(b))||xe(b)&&!b||E&&!vo(o).isValid||I&&!mo(o).isValid)){const{value:M,message:B}=Wt(s)?{value:!!s,message:s}:tt(s);if(M&&(P[g]={type:Be.required,message:B,ref:x,...j(Be.required,B)},!r))return T(B),P}if(!U&&(!ve(d)||!ve(c))){let M,B;const K=tt(c),H=tt(d);if(!ve(b)&&!isNaN(b)){const q=i.valueAsNumber||b&&+b;ve(K.value)||(M=q>K.value),ve(H.value)||(B=q<H.value)}else{const q=i.valueAsDate||new Date(b),Z=ye=>new Date(new Date().toDateString()+" "+ye),te=i.type=="time",$e=i.type=="week";Ve(K.value)&&b&&(M=te?Z(b)>Z(K.value):$e?b>K.value:q>new Date(K.value)),Ve(H.value)&&b&&(B=te?Z(b)<Z(H.value):$e?b<H.value:q<new Date(H.value))}if((M||B)&&(J(!!M,K.message,H.message,Be.max,Be.min),!r))return T(P[g].message),P}if((u||l)&&!U&&(Ve(b)||a&&Array.isArray(b))){const M=tt(u),B=tt(l),K=!ve(M.value)&&b.length>+M.value,H=!ve(B.value)&&b.length<+B.value;if((K||H)&&(J(K,M.message,B.message),!r))return T(P[g].message),P}if($&&!U&&Ve(b)){const{value:M,message:B}=tt($);if(er(M)&&!b.match(M)&&(P[g]={type:Be.pattern,message:B,ref:i,...j(Be.pattern,B)},!r))return T(B),P}if(v){if(Le(v)){const M=await v(b,t),B=Oa(M,x);if(B&&(P[g]={...B,...j(Be.validate,B.message)},!r))return T(B.message),P}else if(ae(v)){let M={};for(const B in v){if(!Ce(M)&&!r)break;const K=Oa(await v[B](b,t),x,B);K&&(M={...K,...j(B,K.message)},T(K.message),r&&(P[g]=M))}if(!Ce(M)&&(P[g]={ref:x,...M},!r))return P}}return T(!0),P};function Gs(e,t){const r=t.slice(0,-1).length;let n=0;for(;n<r;)e=ee(e)?n++:e[t[n++]];return e}function Ws(e){for(const t in e)if(e.hasOwnProperty(t)&&!ee(e[t]))return!1;return!0}function ue(e,t){const r=Array.isArray(t)?t:kn(t)?[t]:co(t),n=r.length===1?e:Gs(e,r),a=r.length-1,i=r[a];return n&&delete n[i],a!==0&&(ae(n)&&Ce(n)||Array.isArray(n)&&Ws(n))&&ue(e,r.slice(0,-1)),e}var Ur=()=>{let e=[];return{get observers(){return e},next:a=>{for(const i of e)i.next&&i.next(a)},subscribe:a=>(e.push(a),{unsubscribe:()=>{e=e.filter(i=>i!==a)}}),unsubscribe:()=>{e=[]}}},rn=e=>ve(e)||!uo(e);function ze(e,t){if(rn(e)||rn(t))return e===t;if(Qe(e)&&Qe(t))return e.getTime()===t.getTime();const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(const a of r){const i=e[a];if(!n.includes(a))return!1;if(a!=="ref"){const o=t[a];if(Qe(i)&&Qe(o)||ae(i)&&ae(o)||Array.isArray(i)&&Array.isArray(o)?!ze(i,o):i!==o)return!1}}return!0}var yo=e=>e.type==="select-multiple",Ks=e=>Bn(e)||Tt(e),Hr=e=>Qt(e)&&e.isConnected,bo=e=>{for(const t in e)if(Le(e[t]))return!0;return!1};function tr(e,t={}){const r=Array.isArray(e);if(ae(e)||r)for(const n in e)Array.isArray(e[n])||ae(e[n])&&!bo(e[n])?(t[n]=Array.isArray(e[n])?[]:{},tr(e[n],t[n])):ve(e[n])||(t[n]=!0);return t}function Co(e,t,r){const n=Array.isArray(e);if(ae(e)||n)for(const a in e)Array.isArray(e[a])||ae(e[a])&&!bo(e[a])?ee(t)||rn(r[a])?r[a]=Array.isArray(e[a])?tr(e[a],[]):{...tr(e[a])}:Co(e[a],ve(t)?{}:t[a],r[a]):r[a]=!ze(e[a],t[a]);return r}var gt=(e,t)=>Co(e,t,tr(t)),So=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>ee(e)?e:t?e===""?NaN:e&&+e:r&&Ve(e)?new Date(e):n?n(e):e;function Gr(e){const t=e.ref;if(!(e.refs?e.refs.every(r=>r.disabled):t.disabled))return jn(t)?t.files:Bn(t)?mo(e.refs).value:yo(t)?[...t.selectedOptions].map(({value:r})=>r):Tt(t)?vo(e.refs).value:So(ee(t.value)?e.ref.value:t.value,e)}var qs=(e,t,r,n)=>{const a={};for(const i of e){const o=A(t,i);o&&Q(a,i,o._f)}return{criteriaMode:r,names:[...e],fields:a,shouldUseNativeValidation:n}},vt=e=>ee(e)?e:er(e)?e.source:ae(e)?er(e.value)?e.value.source:e.value:e;const xa="AsyncFunction";var zs=e=>!!e&&!!e.validate&&!!(Le(e.validate)&&e.validate.constructor.name===xa||ae(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===xa)),Ys=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function Ia(e,t,r){const n=A(e,r);if(n||kn(r))return{error:n,name:r};const a=r.split(".");for(;a.length;){const i=a.join("."),o=A(t,i),s=A(e,i);if(o&&!Array.isArray(o)&&r!==i)return{name:r};if(s&&s.type)return{name:i,error:s};a.pop()}return{name:r}}var Zs=(e,t,r,n,a)=>a.isOnAll?!1:!r&&a.isOnTouch?!(t||e):(r?n.isOnBlur:a.isOnBlur)?!e:(r?n.isOnChange:a.isOnChange)?e:!0,Xs=(e,t)=>!vr(A(e,t)).length&&ue(e,t);const Js={mode:Te.onSubmit,reValidateMode:Te.onChange,shouldFocusError:!0};function Qs(e={}){let t={...Js,...e},r={submitCount:0,isDirty:!1,isLoading:Le(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},n={},a=ae(t.defaultValues)||ae(t.values)?be(t.defaultValues||t.values)||{}:{},i=t.shouldUnregister?{}:be(a),o={action:!1,mount:!1,watch:!1},s={mount:new Set,unMount:new Set,array:new Set,watch:new Set},u,l=0;const d={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},c={values:Ur(),array:Ur(),state:Ur()},$=ma(t.mode),v=ma(t.reValidateMode),g=t.criteriaMode===Te.all,m=f=>y=>{clearTimeout(l),l=setTimeout(f,y)},p=async f=>{if(!t.disabled&&(d.isValid||f)){const y=t.resolver?Ce((await _()).errors):await j(n,!0);y!==r.isValid&&c.state.next({isValid:y})}},h=(f,y)=>{!t.disabled&&(d.isValidating||d.validatingFields)&&((f||Array.from(s.mount)).forEach(C=>{C&&(y?Q(r.validatingFields,C,y):ue(r.validatingFields,C))}),c.state.next({validatingFields:r.validatingFields,isValidating:!Ce(r.validatingFields)}))},b=(f,y=[],C,R,F=!0,w=!0)=>{if(R&&C&&!t.disabled){if(o.action=!0,w&&Array.isArray(A(n,f))){const L=C(A(n,f),R.argA,R.argB);F&&Q(n,f,L)}if(w&&Array.isArray(A(r.errors,f))){const L=C(A(r.errors,f),R.argA,R.argB);F&&Q(r.errors,f,L),Xs(r.errors,f)}if(d.touchedFields&&w&&Array.isArray(A(r.touchedFields,f))){const L=C(A(r.touchedFields,f),R.argA,R.argB);F&&Q(r.touchedFields,f,L)}d.dirtyFields&&(r.dirtyFields=gt(a,i)),c.state.next({name:f,isDirty:M(f,y),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else Q(i,f,y)},x=(f,y)=>{Q(r.errors,f,y),c.state.next({errors:r.errors})},T=f=>{r.errors=f,c.state.next({errors:r.errors,isValid:!1})},P=(f,y,C,R)=>{const F=A(n,f);if(F){const w=A(i,f,ee(C)?A(a,f):C);ee(w)||R&&R.defaultChecked||y?Q(i,f,y?w:Gr(F._f)):H(f,w),o.mount&&p()}},I=(f,y,C,R,F)=>{let w=!1,L=!1;const G={name:f};if(!t.disabled){const le=!!(A(n,f)&&A(n,f)._f&&A(n,f)._f.disabled);if(!C||R){d.isDirty&&(L=r.isDirty,r.isDirty=G.isDirty=M(),w=L!==G.isDirty);const de=le||ze(A(a,f),y);L=!!(!le&&A(r.dirtyFields,f)),de||le?ue(r.dirtyFields,f):Q(r.dirtyFields,f,!0),G.dirtyFields=r.dirtyFields,w=w||d.dirtyFields&&L!==!de}if(C){const de=A(r.touchedFields,f);de||(Q(r.touchedFields,f,C),G.touchedFields=r.touchedFields,w=w||d.touchedFields&&de!==C)}w&&F&&c.state.next(G)}return w?G:{}},E=(f,y,C,R)=>{const F=A(r.errors,f),w=d.isValid&&xe(y)&&r.isValid!==y;if(t.delayError&&C?(u=m(()=>x(f,C)),u(t.delayError)):(clearTimeout(l),u=null,C?Q(r.errors,f,C):ue(r.errors,f)),(C?!ze(F,C):F)||!Ce(R)||w){const L={...R,...w&&xe(y)?{isValid:y}:{},errors:r.errors,name:f};r={...r,...L},c.state.next(L)}},_=async f=>{h(f,!0);const y=await t.resolver(i,t.context,qs(f||s.mount,n,t.criteriaMode,t.shouldUseNativeValidation));return h(f),y},U=async f=>{const{errors:y}=await _(f);if(f)for(const C of f){const R=A(y,C);R?Q(r.errors,C,R):ue(r.errors,C)}else r.errors=y;return y},j=async(f,y,C={valid:!0})=>{for(const R in f){const F=f[R];if(F){const{_f:w,...L}=F;if(w){const G=s.array.has(w.name),le=F._f&&zs(F._f);le&&d.validatingFields&&h([R],!0);const de=await Pa(F,i,g,t.shouldUseNativeValidation&&!y,G);if(le&&d.validatingFields&&h([R]),de[w.name]&&(C.valid=!1,y))break;!y&&(A(de,w.name)?G?Hs(r.errors,de,w.name):Q(r.errors,w.name,de[w.name]):ue(r.errors,w.name))}!Ce(L)&&await j(L,y,C)}}return C.valid},J=()=>{for(const f of s.unMount){const y=A(n,f);y&&(y._f.refs?y._f.refs.every(C=>!Hr(C)):!Hr(y._f.ref))&&ge(f)}s.unMount=new Set},M=(f,y)=>!t.disabled&&(f&&y&&Q(i,f,y),!ze(Ze(),a)),B=(f,y,C)=>go(f,s,{...o.mount?i:ee(y)?a:Ve(f)?{[f]:y}:y},C,y),K=f=>vr(A(o.mount?i:a,f,t.shouldUnregister?A(a,f,[]):[])),H=(f,y,C={})=>{const R=A(n,f);let F=y;if(R){const w=R._f;w&&(!w.disabled&&Q(i,f,So(y,w)),F=Qt(w.ref)&&ve(y)?"":y,yo(w.ref)?[...w.ref.options].forEach(L=>L.selected=F.includes(L.value)):w.refs?Tt(w.ref)?w.refs.length>1?w.refs.forEach(L=>(!L.defaultChecked||!L.disabled)&&(L.checked=Array.isArray(F)?!!F.find(G=>G===L.value):F===L.value)):w.refs[0]&&(w.refs[0].checked=!!F):w.refs.forEach(L=>L.checked=L.value===F):jn(w.ref)?w.ref.value="":(w.ref.value=F,w.ref.type||c.values.next({name:f,values:{...i}})))}(C.shouldDirty||C.shouldTouch)&&I(f,F,C.shouldTouch,C.shouldDirty,!0),C.shouldValidate&&ye(f)},q=(f,y,C)=>{for(const R in y){const F=y[R],w=`${f}.${R}`,L=A(n,w);(s.array.has(f)||ae(F)||L&&!L._f)&&!Qe(F)?q(w,F,C):H(w,F,C)}},Z=(f,y,C={})=>{const R=A(n,f),F=s.array.has(f),w=be(y);Q(i,f,w),F?(c.array.next({name:f,values:{...i}}),(d.isDirty||d.dirtyFields)&&C.shouldDirty&&c.state.next({name:f,dirtyFields:gt(a,i),isDirty:M(f,w)})):R&&!R._f&&!ve(w)?q(f,w,C):H(f,w,C),ya(f,s)&&c.state.next({...r}),c.values.next({name:o.mount?f:void 0,values:{...i}})},te=async f=>{o.mount=!0;const y=f.target;let C=y.name,R=!0;const F=A(n,C),w=()=>y.type?Gr(F._f):so(f),L=G=>{R=Number.isNaN(G)||Qe(G)&&isNaN(G.getTime())||ze(G,A(i,C,G))};if(F){let G,le;const de=w(),Je=f.type===Jt.BLUR||f.type===Jt.FOCUS_OUT,Fs=!Ys(F._f)&&!t.resolver&&!A(r.errors,C)&&!F._f.deps||Zs(Je,A(r.touchedFields,C),r.isSubmitted,v,$),jr=ya(C,s,Je);Q(i,C,de),Je?(F._f.onBlur&&F._f.onBlur(f),u&&u(0)):F._f.onChange&&F._f.onChange(f);const Br=I(C,de,Je,!1),Ts=!Ce(Br)||jr;if(!Je&&c.values.next({name:C,type:f.type,values:{...i}}),Fs)return d.isValid&&(t.mode==="onBlur"?Je&&p():p()),Ts&&c.state.next({name:C,...jr?{}:Br});if(!Je&&jr&&c.state.next({...r}),t.resolver){const{errors:ha}=await _([C]);if(L(de),R){const Rs=Ia(r.errors,n,C),ga=Ia(ha,n,Rs.name||C);G=ga.error,C=ga.name,le=Ce(ha)}}else h([C],!0),G=(await Pa(F,i,g,t.shouldUseNativeValidation))[C],h([C]),L(de),R&&(G?le=!1:d.isValid&&(le=await j(n,!0)));R&&(F._f.deps&&ye(F._f.deps),E(C,le,G,Br))}},$e=(f,y)=>{if(A(r.errors,y)&&f.focus)return f.focus(),1},ye=async(f,y={})=>{let C,R;const F=St(f);if(t.resolver){const w=await U(ee(f)?f:F);C=Ce(w),R=f?!F.some(L=>A(w,L)):C}else f?(R=(await Promise.all(F.map(async w=>{const L=A(n,w);return await j(L&&L._f?{[w]:L}:L)}))).every(Boolean),!(!R&&!r.isValid)&&p()):R=C=await j(n);return c.state.next({...!Ve(f)||d.isValid&&C!==r.isValid?{}:{name:f},...t.resolver||!f?{isValid:C}:{},errors:r.errors}),y.shouldFocus&&!R&&Ot(n,$e,f?F:s.mount),R},Ze=f=>{const y={...o.mount?i:a};return ee(f)?y:Ve(f)?A(y,f):f.map(C=>A(y,C))},re=(f,y)=>({invalid:!!A((y||r).errors,f),isDirty:!!A((y||r).dirtyFields,f),error:A((y||r).errors,f),isValidating:!!A(r.validatingFields,f),isTouched:!!A((y||r).touchedFields,f)}),he=f=>{f&&St(f).forEach(y=>ue(r.errors,y)),c.state.next({errors:f?r.errors:{}})},Ne=(f,y,C)=>{const R=(A(n,f,{_f:{}})._f||{}).ref,F=A(r.errors,f)||{},{ref:w,message:L,type:G,...le}=F;Q(r.errors,f,{...le,...y,ref:R}),c.state.next({name:f,errors:r.errors,isValid:!1}),C&&C.shouldFocus&&R&&R.focus&&R.focus()},_e=(f,y)=>Le(f)?c.values.subscribe({next:C=>f(B(void 0,y),C)}):B(f,y,!0),ge=(f,y={})=>{for(const C of f?St(f):s.mount)s.mount.delete(C),s.array.delete(C),y.keepValue||(ue(n,C),ue(i,C)),!y.keepError&&ue(r.errors,C),!y.keepDirty&&ue(r.dirtyFields,C),!y.keepTouched&&ue(r.touchedFields,C),!y.keepIsValidating&&ue(r.validatingFields,C),!t.shouldUnregister&&!y.keepDefaultValue&&ue(a,C);c.values.next({values:{...i}}),c.state.next({...r,...y.keepDirty?{isDirty:M()}:{}}),!y.keepIsValid&&p()},Ee=({disabled:f,name:y,field:C,fields:R,value:F})=>{if(xe(f)&&o.mount||f){const w=f?void 0:ee(F)?Gr(C?C._f:A(R,y)._f):F;(f||!f&&!ee(w))&&Q(i,y,w),I(y,w,!1,!1,!0)}},Oe=(f,y={})=>{let C=A(n,f);const R=xe(y.disabled)||xe(t.disabled);return Q(n,f,{...C||{},_f:{...C&&C._f?C._f:{ref:{name:f}},name:f,mount:!0,...y}}),s.mount.add(f),C?Ee({field:C,disabled:xe(y.disabled)?y.disabled:t.disabled,name:f,value:y.value}):P(f,!0,y.value),{...R?{disabled:y.disabled||t.disabled}:{},...t.progressive?{required:!!y.required,min:vt(y.min),max:vt(y.max),minLength:vt(y.minLength),maxLength:vt(y.maxLength),pattern:vt(y.pattern)}:{},name:f,onChange:te,onBlur:te,ref:F=>{if(F){Oe(f,y),C=A(n,f);const w=ee(F.value)&&F.querySelectorAll&&F.querySelectorAll("input,select,textarea")[0]||F,L=Ks(w),G=C._f.refs||[];if(L?G.find(le=>le===w):w===C._f.ref)return;Q(n,f,{_f:{...C._f,...L?{refs:[...G.filter(Hr),w,...Array.isArray(A(a,f))?[{}]:[]],ref:{type:w.type,name:f}}:{ref:w}}}),P(f,!1,void 0,w)}else C=A(n,f,{}),C._f&&(C._f.mount=!1),(t.shouldUnregister||y.shouldUnregister)&&!(lo(s.array,f)&&o.action)&&s.unMount.add(f)}}},Xe=()=>t.shouldFocusError&&Ot(n,$e,s.mount),Vr=f=>{xe(f)&&(c.state.next({disabled:f}),Ot(n,(y,C)=>{const R=A(n,C);R&&(y.disabled=R._f.disabled||f,Array.isArray(R._f.refs)&&R._f.refs.forEach(F=>{F.disabled=R._f.disabled||f}))},0,!1))},$t=(f,y)=>async C=>{let R;if(C&&(C.preventDefault&&C.preventDefault(),C.persist&&C.persist()),t.disabled){y&&await y({...r.errors},C);return}let F=be(i);if(c.state.next({isSubmitting:!0}),t.resolver){const{errors:w,values:L}=await _();r.errors=w,F=L}else await j(n);if(ue(r.errors,"root"),Ce(r.errors)){c.state.next({errors:{}});try{await f(F,C)}catch(w){R=w}}else y&&await y({...r.errors},C),Xe(),setTimeout(Xe);if(c.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Ce(r.errors)&&!R,submitCount:r.submitCount+1,errors:r.errors}),R)throw R},Dt=(f,y={})=>{A(n,f)&&(ee(y.defaultValue)?Z(f,be(A(a,f))):(Z(f,y.defaultValue),Q(a,f,be(y.defaultValue))),y.keepTouched||ue(r.touchedFields,f),y.keepDirty||(ue(r.dirtyFields,f),r.isDirty=y.defaultValue?M(f,be(A(a,f))):M()),y.keepError||(ue(r.errors,f),d.isValid&&p()),c.state.next({...r}))},kt=(f,y={})=>{const C=f?be(f):a,R=be(C),F=Ce(f),w=F?a:R;if(y.keepDefaultValues||(a=C),!y.keepValues){if(y.keepDirtyValues){const L=new Set([...s.mount,...Object.keys(gt(a,i))]);for(const G of Array.from(L))A(r.dirtyFields,G)?Q(w,G,A(i,G)):Z(G,A(w,G))}else{if(Dn&&ee(f))for(const L of s.mount){const G=A(n,L);if(G&&G._f){const le=Array.isArray(G._f.refs)?G._f.refs[0]:G._f.ref;if(Qt(le)){const de=le.closest("form");if(de){de.reset();break}}}}n={}}i=t.shouldUnregister?y.keepDefaultValues?be(a):{}:be(w),c.array.next({values:{...w}}),c.values.next({values:{...w}})}s={mount:y.keepDirtyValues?s.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},o.mount=!d.isValid||!!y.keepIsValid||!!y.keepDirtyValues,o.watch=!!t.shouldUnregister,c.state.next({submitCount:y.keepSubmitCount?r.submitCount:0,isDirty:F?!1:y.keepDirty?r.isDirty:!!(y.keepDefaultValues&&!ze(f,a)),isSubmitted:y.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:F?{}:y.keepDirtyValues?y.keepDefaultValues&&i?gt(a,i):r.dirtyFields:y.keepDefaultValues&&f?gt(a,f):y.keepDirty?r.dirtyFields:{},touchedFields:y.keepTouched?r.touchedFields:{},errors:y.keepErrors?r.errors:{},isSubmitSuccessful:y.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},ht=(f,y)=>kt(Le(f)?f(i):f,y);return{control:{register:Oe,unregister:ge,getFieldState:re,handleSubmit:$t,setError:Ne,_executeSchema:_,_getWatch:B,_getDirty:M,_updateValid:p,_removeUnmounted:J,_updateFieldArray:b,_updateDisabledField:Ee,_getFieldArray:K,_reset:kt,_resetDefaultValues:()=>Le(t.defaultValues)&&t.defaultValues().then(f=>{ht(f,t.resetOptions),c.state.next({isLoading:!1})}),_updateFormState:f=>{r={...r,...f}},_disableForm:Vr,_subjects:c,_proxyFormState:d,_setErrors:T,get _fields(){return n},get _formValues(){return i},get _state(){return o},set _state(f){o=f},get _defaultValues(){return a},get _names(){return s},set _names(f){s=f},get _formState(){return r},set _formState(f){r=f},get _options(){return t},set _options(f){t={...t,...f}}},trigger:ye,register:Oe,handleSubmit:$t,watch:_e,setValue:Z,getValues:Ze,reset:ht,resetField:Dt,clearErrors:he,unregister:ge,setError:Ne,setFocus:(f,y={})=>{const C=A(n,f),R=C&&C._f;if(R){const F=R.refs?R.refs[0]:R.ref;F.focus&&(F.focus(),y.shouldSelect&&Le(F.select)&&F.select())}},getFieldState:re}}function yg(e={}){const t=N.useRef(void 0),r=N.useRef(void 0),[n,a]=N.useState({isDirty:!1,isValidating:!1,isLoading:Le(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:Le(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...Qs(e),formState:n});const i=t.current.control;return i._options=e,Ln({subject:i._subjects.state,next:o=>{$o(o,i._proxyFormState,i._updateFormState,!0)&&a({...i._formState})}}),N.useEffect(()=>i._disableForm(e.disabled),[i,e.disabled]),N.useEffect(()=>{if(i._proxyFormState.isDirty){const o=i._getDirty();o!==n.isDirty&&i._subjects.state.next({isDirty:o})}},[i,n.isDirty]),N.useEffect(()=>{e.values&&!ze(e.values,r.current)?(i._reset(e.values,i._options.resetOptions),r.current=e.values,a(o=>({...o}))):i._resetDefaultValues()},[e.values,i]),N.useEffect(()=>{e.errors&&i._setErrors(e.errors)},[e.errors,i]),N.useEffect(()=>{i._state.mount||(i._updateValid(),i._state.mount=!0),i._state.watch&&(i._state.watch=!1,i._subjects.state.next({...i._formState})),i._removeUnmounted()}),N.useEffect(()=>{e.shouldUnregister&&i._subjects.values.next({values:i._getWatch()})},[e.shouldUnregister,i]),t.current.formState=po(n,i),t.current}var el=typeof global=="object"&&global&&global.Object===Object&&global,tl=typeof self=="object"&&self&&self.Object===Object&&self,rl=el||tl||Function("return this")(),lt=rl.Symbol,Oo=Object.prototype,nl=Oo.hasOwnProperty,al=Oo.toString,mt=lt?lt.toStringTag:void 0;function il(e){var t=nl.call(e,mt),r=e[mt];try{e[mt]=void 0;var n=!0}catch{}var a=al.call(e);return n&&(t?e[mt]=r:delete e[mt]),a}var ol=Object.prototype,ul=ol.toString;function sl(e){return ul.call(e)}var ll="[object Null]",dl="[object Undefined]",wa=lt?lt.toStringTag:void 0;function cl(e){return e==null?e===void 0?dl:ll:wa&&wa in Object(e)?il(e):sl(e)}function fl(e){return e!=null&&typeof e=="object"}var pl="[object Symbol]";function $l(e){return typeof e=="symbol"||fl(e)&&cl(e)==pl}function hl(e,t){for(var r=-1,n=e==null?0:e.length,a=Array(n);++r<n;)a[r]=t(e[r],r,e);return a}var gl=Array.isArray,vl=1/0,Na=lt?lt.prototype:void 0,Ea=Na?Na.toString:void 0;function Po(e){if(typeof e=="string")return e;if(gl(e))return hl(e,Po)+"";if($l(e))return Ea?Ea.call(e):"";var t=e+"";return t=="0"&&1/e==-vl?"-0":t}function Un(e){return e==null?"":Po(e)}function ml(e,t,r){var n=-1,a=e.length;t<0&&(t=-t>a?0:a+t),r=r>a?a:r,r<0&&(r+=a),a=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(a);++n<a;)i[n]=e[n+t];return i}function yl(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:ml(e,t,r)}var bl="\\ud800-\\udfff",Cl="\\u0300-\\u036f",Sl="\\ufe20-\\ufe2f",Ol="\\u20d0-\\u20ff",Pl=Cl+Sl+Ol,xl="\\ufe0e\\ufe0f",Il="\\u200d",wl=RegExp("["+Il+bl+Pl+xl+"]");function xo(e){return wl.test(e)}function Nl(e){return e.split("")}var Io="\\ud800-\\udfff",El="\\u0300-\\u036f",Al="\\ufe20-\\ufe2f",Fl="\\u20d0-\\u20ff",Tl=El+Al+Fl,Rl="\\ufe0e\\ufe0f",_l="["+Io+"]",nn="["+Tl+"]",an="\\ud83c[\\udffb-\\udfff]",Ml="(?:"+nn+"|"+an+")",wo="[^"+Io+"]",No="(?:\\ud83c[\\udde6-\\uddff]){2}",Eo="[\\ud800-\\udbff][\\udc00-\\udfff]",Dl="\\u200d",Ao=Ml+"?",Fo="["+Rl+"]?",kl="(?:"+Dl+"(?:"+[wo,No,Eo].join("|")+")"+Fo+Ao+")*",Ll=Fo+Ao+kl,Vl="(?:"+[wo+nn+"?",nn,No,Eo,_l].join("|")+")",jl=RegExp(an+"(?="+an+")|"+Vl+Ll,"g");function Bl(e){return e.match(jl)||[]}function Ul(e){return xo(e)?Bl(e):Nl(e)}function Hl(e){return function(t){t=Un(t);var r=xo(t)?Ul(t):void 0,n=r?r[0]:t.charAt(0),a=r?yl(r,1).join(""):t.slice(1);return n[e]()+a}}var Gl=Hl("toUpperCase");function Wl(e,t,r,n){for(var a=-1,i=e==null?0:e.length;++a<i;)r=t(r,e[a],a,e);return r}function Kl(e){return function(t){return e==null?void 0:e[t]}}var ql={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",Ĳ:"IJ",ĳ:"ij",Œ:"Oe",œ:"oe",ŉ:"'n",ſ:"s"},zl=Kl(ql),Yl=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Zl="\\u0300-\\u036f",Xl="\\ufe20-\\ufe2f",Jl="\\u20d0-\\u20ff",Ql=Zl+Xl+Jl,ed="["+Ql+"]",td=RegExp(ed,"g");function rd(e){return e=Un(e),e&&e.replace(Yl,zl).replace(td,"")}var nd=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function ad(e){return e.match(nd)||[]}var id=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function od(e){return id.test(e)}var To="\\ud800-\\udfff",ud="\\u0300-\\u036f",sd="\\ufe20-\\ufe2f",ld="\\u20d0-\\u20ff",dd=ud+sd+ld,Ro="\\u2700-\\u27bf",_o="a-z\\xdf-\\xf6\\xf8-\\xff",cd="\\xac\\xb1\\xd7\\xf7",fd="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",pd="\\u2000-\\u206f",$d=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Mo="A-Z\\xc0-\\xd6\\xd8-\\xde",hd="\\ufe0e\\ufe0f",Do=cd+fd+pd+$d,ko="['’]",Aa="["+Do+"]",gd="["+dd+"]",Lo="\\d+",vd="["+Ro+"]",Vo="["+_o+"]",jo="[^"+To+Do+Lo+Ro+_o+Mo+"]",md="\\ud83c[\\udffb-\\udfff]",yd="(?:"+gd+"|"+md+")",bd="[^"+To+"]",Bo="(?:\\ud83c[\\udde6-\\uddff]){2}",Uo="[\\ud800-\\udbff][\\udc00-\\udfff]",at="["+Mo+"]",Cd="\\u200d",Fa="(?:"+Vo+"|"+jo+")",Sd="(?:"+at+"|"+jo+")",Ta="(?:"+ko+"(?:d|ll|m|re|s|t|ve))?",Ra="(?:"+ko+"(?:D|LL|M|RE|S|T|VE))?",Ho=yd+"?",Go="["+hd+"]?",Od="(?:"+Cd+"(?:"+[bd,Bo,Uo].join("|")+")"+Go+Ho+")*",Pd="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",xd="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Id=Go+Ho+Od,wd="(?:"+[vd,Bo,Uo].join("|")+")"+Id,Nd=RegExp([at+"?"+Vo+"+"+Ta+"(?="+[Aa,at,"$"].join("|")+")",Sd+"+"+Ra+"(?="+[Aa,at+Fa,"$"].join("|")+")",at+"?"+Fa+"+"+Ta,at+"+"+Ra,xd,Pd,Lo,wd].join("|"),"g");function Ed(e){return e.match(Nd)||[]}function Ad(e,t,r){return e=Un(e),t=t,t===void 0?od(e)?Ed(e):ad(e):e.match(t)||[]}var Fd="['’]",Td=RegExp(Fd,"g");function Rd(e){return function(t){return Wl(Ad(rd(t).replace(Td,"")),e,"")}}var _t=Rd(function(e,t,r){return e+(r?" ":"")+Gl(t)}),_d=function(e){var t=e.as,r=e.errors,n=e.name,a=e.message,i=e.render,o=function($,v){if($==null)return{};var g,m,p={},h=Object.keys($);for(m=0;m<h.length;m++)v.indexOf(g=h[m])>=0||(p[g]=$[g]);return p}(e,["as","errors","name","message","render"]),s=Rt(),u=A(r||s.formState.errors,n);if(!u)return null;var l=u.message,d=u.types,c=Object.assign({},o,{children:l||a});return S.isValidElement(t)?S.cloneElement(t,c):i?i({message:l||a,messages:d}):S.createElement(t||S.Fragment,c)};const Md=({register:e,fieldName:t,fieldLabel:r,type:n,moreCss:a="border-stroke",required:i,isValidated:o,validateFn:s,handleKeyDown:u,onChangeFn:l,defaultValue:d,placeholder:c=!0,isDisabled:$,tooltip:v})=>{const[g,m]=S.useState("password"),p=b=>{l&&l(b.target.value)},h=()=>{m(b=>b==="password"?"text":"password")};return W.jsxs("div",{className:"relative w-full",children:[W.jsx("input",{id:t,defaultValue:d,className:`
          ${n!=="email"&&"capitalize"} w-full rounded-md border-2 bg-transparent py-2.5 px-3 text-black outline-none transition focus:border-primary active:border-primary disabled:cursor-default disabled:bg-white
          ${a}`,type:n==="password"?g:n,placeholder:c?typeof c=="string"?c:`Enter ${(r==null?void 0:r.toLowerCase())||_t(t).toLowerCase()}...`:"",...e(t,{required:i?"This field is required.":!1,validate:o?s:void 0,onChange:p}),onKeyDown:u,disabled:$,autoComplete:"on"}),n==="password"&&W.jsx("span",{className:"absolute right-4 bottom-3 text-2xl hover:cursor-pointer",onClick:h,as:"button",children:g==="password"?W.jsx(Ds,{}):W.jsx(Ms,{})}),v&&W.jsx("span",{className:"tooltip",children:v})]})},Dd=({register:e,fieldName:t,fieldLabel:r,required:n,isValidated:a,validateFn:i,handleKeyDown:o,defaultValue:s,placeholder:u=!0,isDisabled:l})=>W.jsx("textarea",{id:t,rows:4,defaultValue:s,className:"w-full rounded border-2 bg-transparent py-2.5 px-3 text-black outline-none transition focus:border-primary active:border-primary disabled:cursor-default disabled:bg-whiter dark:border-form-strokedark dark:bg-form-input dark:text-white dark:focus:border-primary",placeholder:u?typeof u=="string"?u:`Enter ${(r==null?void 0:r.toLowerCase())||_t(t).toLowerCase()}...`:"",...e(t,{required:n?"This field is required.":!1,validate:a?i:void 0}),onKeyDown:o,autoComplete:"on",disabled:l}),kd={version:4,country_calling_codes:{1:["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"],7:["RU","KZ"],20:["EG"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],36:["HU"],39:["IT","VA"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG","IM","JE"],45:["DK"],46:["SE"],47:["NO","SJ"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],53:["CU"],54:["AR"],55:["BR"],56:["CL"],57:["CO"],58:["VE"],60:["MY"],61:["AU","CC","CX"],62:["ID"],63:["PH"],64:["NZ"],65:["SG"],66:["TH"],81:["JP"],82:["KR"],84:["VN"],86:["CN"],90:["TR"],91:["IN"],92:["PK"],93:["AF"],94:["LK"],95:["MM"],98:["IR"],211:["SS"],212:["MA","EH"],213:["DZ"],216:["TN"],218:["LY"],220:["GM"],221:["SN"],222:["MR"],223:["ML"],224:["GN"],225:["CI"],226:["BF"],227:["NE"],228:["TG"],229:["BJ"],230:["MU"],231:["LR"],232:["SL"],233:["GH"],234:["NG"],235:["TD"],236:["CF"],237:["CM"],238:["CV"],239:["ST"],240:["GQ"],241:["GA"],242:["CG"],243:["CD"],244:["AO"],245:["GW"],246:["IO"],247:["AC"],248:["SC"],249:["SD"],250:["RW"],251:["ET"],252:["SO"],253:["DJ"],254:["KE"],255:["TZ"],256:["UG"],257:["BI"],258:["MZ"],260:["ZM"],261:["MG"],262:["RE","YT"],263:["ZW"],264:["NA"],265:["MW"],266:["LS"],267:["BW"],268:["SZ"],269:["KM"],290:["SH","TA"],291:["ER"],297:["AW"],298:["FO"],299:["GL"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],355:["AL"],356:["MT"],357:["CY"],358:["FI","AX"],359:["BG"],370:["LT"],371:["LV"],372:["EE"],373:["MD"],374:["AM"],375:["BY"],376:["AD"],377:["MC"],378:["SM"],380:["UA"],381:["RS"],382:["ME"],383:["XK"],385:["HR"],386:["SI"],387:["BA"],389:["MK"],420:["CZ"],421:["SK"],423:["LI"],500:["FK"],501:["BZ"],502:["GT"],503:["SV"],504:["HN"],505:["NI"],506:["CR"],507:["PA"],508:["PM"],509:["HT"],590:["GP","BL","MF"],591:["BO"],592:["GY"],593:["EC"],594:["GF"],595:["PY"],596:["MQ"],597:["SR"],598:["UY"],599:["CW","BQ"],670:["TL"],672:["NF"],673:["BN"],674:["NR"],675:["PG"],676:["TO"],677:["SB"],678:["VU"],679:["FJ"],680:["PW"],681:["WF"],682:["CK"],683:["NU"],685:["WS"],686:["KI"],687:["NC"],688:["TV"],689:["PF"],690:["TK"],691:["FM"],692:["MH"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],880:["BD"],886:["TW"],960:["MV"],961:["LB"],962:["JO"],963:["SY"],964:["IQ"],965:["KW"],966:["SA"],967:["YE"],968:["OM"],970:["PS"],971:["AE"],972:["IL"],973:["BH"],974:["QA"],975:["BT"],976:["MN"],977:["NP"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},countries:{AC:["247","00","(?:[01589]\\d|[46])\\d{4}",[5,6]],AD:["376","00","(?:1|6\\d)\\d{7}|[135-9]\\d{5}",[6,8,9],[["(\\d{3})(\\d{3})","$1 $2",["[135-9]"]],["(\\d{4})(\\d{4})","$1 $2",["1"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]]],AE:["971","00","(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",[5,6,7,8,9,10,11,12],[["(\\d{3})(\\d{2,9})","$1 $2",["60|8"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[236]|[479][2-8]"],"0$1"],["(\\d{3})(\\d)(\\d{5})","$1 $2 $3",["[479]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"]],"0"],AF:["93","00","[2-7]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],"0"],AG:["1","011","(?:268|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([457]\\d{6})$|1","268$1",0,"268"],AI:["1","011","(?:264|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2457]\\d{6})$|1","264$1",0,"264"],AL:["355","00","(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}",[6,7,8,9],[["(\\d{3})(\\d{3,4})","$1 $2",["80|9"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["4[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2358][2-5]|4"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["[23578]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["6"],"0$1"]],"0"],AM:["374","00","(?:[1-489]\\d|55|60|77)\\d{6}",[8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[89]0"],"0 $1"],["(\\d{3})(\\d{5})","$1 $2",["2|3[12]"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["1|47"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[3-9]"],"0$1"]],"0"],AO:["244","00","[29]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]]],AR:["54","00","(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}",[10,11],[["(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",1],["(\\d)(\\d{4})(\\d{2})(\\d{4})","$2 15-$3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",0,"$1 $2 $3-$4"],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1",0,"$1 $2 $3-$4"],["(\\d{3})(\\d{3})(\\d{5})","$1-$2-$3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 15-$3-$4",["9"],"0$1",0,"$1 $2 $3-$4"]],"0",0,"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?","9$1"],AS:["1","011","(?:[58]\\d\\d|684|900)\\d{7}",[10],0,"1",0,"([267]\\d{6})$|1","684$1",0,"684"],AT:["43","00","1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}",[4,5,6,7,8,9,10,11,12,13],[["(\\d)(\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],["(\\d{3})(\\d{2})","$1 $2",["517"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["5[079]"],"0$1"],["(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],["(\\d{4})(\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["5"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,7})","$1 $2 $3",["5"],"0$1"]],"0"],AU:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}",[5,6,7,8,9,10,12],[["(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|4"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],"0",0,"(183[12])|0",0,0,0,[["(?:(?:(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|7(?:[013-57-9]\\d|2[0-8]))\\d|3(?:(?:[0-3589]\\d|6[1-9]|7[0-35-9])\\d|4(?:[0-578]\\d|90)))\\d\\d|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4])|3\\d\\d)|(?:6[0-8]|[78]\\d)\\d{3}|9(?:[02-9]\\d{3}|1(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79])))))\\d{3}",[9]],["4(?:79[01]|83[0-389]|94[0-4])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,["163\\d{2,6}",[5,6,7,8,9]],["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],AW:["297","00","(?:[25-79]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[25-9]"]]]],AX:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}",[5,6,7,8,9,10,11,12],0,"0",0,0,0,0,"18",0,"00"],AZ:["994","00","365\\d{6}|(?:[124579]\\d|60|88)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[28]|2|365|46","1[28]|2|365[45]|46","1[28]|2|365(?:4|5[02])|46"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-9]"],"0$1"]],"0"],BA:["387","00","6\\d{8}|(?:[35689]\\d|49|70)\\d{6}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-3]|[7-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]|6[56]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6"],"0$1"]],"0"],BB:["1","011","(?:246|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","246$1",0,"246"],BD:["880","00","[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{4,6})","$1-$2",["31[5-8]|[459]1"],"0$1"],["(\\d{3})(\\d{3,7})","$1-$2",["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28|4[14])|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"],"0$1"],["(\\d{4})(\\d{3,6})","$1-$2",["[13-9]|2[23]"],"0$1"],["(\\d)(\\d{7,8})","$1-$2",["2"],"0$1"]],"0"],BE:["32","00","4\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:80|9)0"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[239]|4[23]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[15-8]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4"],"0$1"]],"0"],BF:["226","00","[025-7]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[025-7]"]]]],BG:["359","00","00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",[6,7,8,9,12],[["(\\d)(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["43[1-6]|70[1-9]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:70|8)0"],"0$1"],["(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[1-7]|7"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[48]|9[08]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"]],"0"],BH:["973","00","[136-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[13679]|8[02-4679]"]]]],BI:["257","00","(?:[267]\\d|31)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]]],BJ:["229","00","(?:01\\d|[24-689])\\d{7}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["0"]]]],BL:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:2[7-9]|3[3-7]|5[12]|87)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-5])\\d{4}"]]],BM:["1","011","(?:441|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","441$1",0,"441"],BN:["673","00","[2-578]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]]],BO:["591","00(?:1\\d)?","8001\\d{5}|(?:[2-467]\\d|50)\\d{6}",[8,9],[["(\\d)(\\d{7})","$1 $2",["[235]|4[46]"]],["(\\d{8})","$1",["[67]"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["8"]]],"0",0,"0(1\\d)?"],BQ:["599","00","(?:[34]1|7\\d)\\d{5}",[7],0,0,0,0,0,0,"[347]"],BR:["55","00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","(?:[1-46-9]\\d\\d|5(?:[0-46-9]\\d|5[0-46-9]))\\d{8}|[1-9]\\d{9}|[3589]\\d{8}|[34]\\d{7}",[8,9,10,11],[["(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37)","4(?:02|37)0|[34]00"]],["(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)"],["(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)"]],"0",0,"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2"],BS:["1","011","(?:242|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([3-8]\\d{6})$|1","242$1",0,"242"],BT:["975","00","[17]\\d{7}|[2-8]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-68]|7[246]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|7"]]]],BW:["267","00","(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}",[7,8,10],[["(\\d{2})(\\d{5})","$1 $2",["90"]],["(\\d{3})(\\d{4})","$1 $2",["[24-6]|3[15-9]"]],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37]"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["8"]]]],BY:["375","810","(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3})","$1 $2",["800"],"8 $1"],["(\\d{3})(\\d{2})(\\d{2,4})","$1 $2 $3",["800"],"8 $1"],["(\\d{4})(\\d{2})(\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["1(?:[56]|7[467])|2[1-3]"],"8 0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-4]"],"8 0$1"],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["[89]"],"8 $1"]],"8",0,"0|80?",0,0,0,0,"8~10"],BZ:["501","00","(?:0800\\d|[2-8])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],["(\\d)(\\d{3})(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"]]]],CA:["1","011","[2-9]\\d{9}|3\\d{6}",[7,10],0,"1",0,0,0,0,0,[["(?:2(?:04|[23]6|[48]9|50|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|9(?:0[25]|42))[2-9]\\d{6}",[10]],["",[10]],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",[10]],["900[2-9]\\d{6}",[10]],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:00|2[125-9]|33|44|66|77|88)|6(?:22|33))[2-9]\\d{6}",[10]],0,["310\\d{4}",[7]],0,["600[2-9]\\d{6}",[10]]]],CC:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}",[9]],["4(?:79[01]|83[0-389]|94[0-4])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CD:["243","00","(?:(?:[189]|5\\d)\\d|2)\\d{7}|[1-68]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[1-6]"],"0$1"],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["5"],"0$1"]],"0"],CF:["236","00","(?:[27]\\d{3}|8776)\\d{4}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[278]"]]]],CG:["242","00","222\\d{6}|(?:0\\d|80)\\d{7}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02]"]]]],CH:["41","00","8\\d{11}|[2-9]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8[047]|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]|81"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["8"],"0$1"]],"0"],CI:["225","00","[02]\\d{9}",[10],[["(\\d{2})(\\d{2})(\\d)(\\d{5})","$1 $2 $3 $4",["2"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3 $4",["0"]]]],CK:["682","00","[2-578]\\d{4}",[5],[["(\\d{2})(\\d{3})","$1 $2",["[2-578]"]]]],CL:["56","(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0","12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}",[9,10,11],[["(\\d{5})(\\d{4})","$1 $2",["219","2196"],"($1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["44"]],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[1-36]"],"($1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9[2-9]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-9]|[1-9])"],"($1)"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{3})(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3 $4",["60"]]]],CM:["237","00","[26]\\d{8}|88\\d{6,7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["88"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]|88"]]]],CN:["86","00|1(?:[12]\\d|79)\\d\\d00","(?:(?:1[03-689]|2\\d)\\d\\d|6)\\d{8}|1\\d{10}|[126]\\d{6}(?:\\d(?:\\d{2})?)?|86\\d{5,6}|(?:[3-579]\\d|8[0-57-9])\\d{5,9}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]|3(?:[157]|35|49|9[1-68])|4(?:1[124-9]|2[179]|6[47-9]|7|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:07|1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3|4[13]|5[1-5]|7[0-79]|9[0-35-9])|(?:4[35]|59|85)[1-9]","(?:10|2[0-57-9])(?:1[02]|9[56])|8078|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))1","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|80781|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))12","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|807812|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:078|1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123"],"0$1"],["(\\d{3})(\\d{5,6})","$1 $2",["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]","(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]","85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])","85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["(?:4|80)0"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|2(?:[02-57-9]|1[1-9])","10|2(?:[02-57-9]|1[1-9])","10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"],"0$1",1],["(\\d{3})(\\d{7,8})","$1 $2",["9"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",1]],"0",0,"(1(?:[12]\\d|79)\\d\\d)|0",0,0,0,0,"00"],CO:["57","00(?:4(?:[14]4|56)|[579])","(?:46|60\\d\\d)\\d{6}|(?:1\\d|[39])\\d{9}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["46"]],["(\\d{3})(\\d{7})","$1 $2",["6|90"],"($1)"],["(\\d{3})(\\d{7})","$1 $2",["3[0-357]|91"]],["(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1",0,"$1 $2 $3"]],"0",0,"0([3579]|4(?:[14]4|56))?"],CR:["506","00","(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}",[8,10],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[3-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[89]"]]],0,0,"(19(?:0[0-2468]|1[09]|20|66|77|99))"],CU:["53","119","(?:[2-7]|8\\d\\d)\\d{7}|[2-47]\\d{6}|[34]\\d{5}",[6,7,8,10],[["(\\d{2})(\\d{4,6})","$1 $2",["2[1-4]|[34]"],"(0$1)"],["(\\d)(\\d{6,7})","$1 $2",["7"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["[56]"],"0$1"],["(\\d{3})(\\d{7})","$1 $2",["8"],"0$1"]],"0"],CV:["238","0","(?:[2-59]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2-589]"]]]],CW:["599","00","(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[3467]"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["9[4-8]"]]],0,0,0,0,0,"[69]"],CX:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}",[9]],["4(?:79[01]|83[0-389]|94[0-4])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CY:["357","00","(?:[279]\\d|[58]0)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[257-9]"]]]],CZ:["420","00","(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}",[9,10,11,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["96"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]]],DE:["49","00","[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}",[4,5,6,7,8,9,10,11,12,13,14,15],[["(\\d{2})(\\d{3,13})","$1 $2",["3[02]|40|[68]9"],"0$1"],["(\\d{3})(\\d{3,12})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1","2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"],"0$1"],["(\\d{4})(\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["138"],"0$1"],["(\\d{5})(\\d{2,10})","$1 $2",["3"],"0$1"],["(\\d{3})(\\d{5,11})","$1 $2",["181"],"0$1"],["(\\d{3})(\\d)(\\d{4,10})","$1 $2 $3",["1(?:3|80)|9"],"0$1"],["(\\d{3})(\\d{7,8})","$1 $2",["1[67]"],"0$1"],["(\\d{3})(\\d{7,12})","$1 $2",["8"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["185","1850","18500"],"0$1"],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["18[68]"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["15[1279]"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["15[03568]","15(?:[0568]|31)"],"0$1"],["(\\d{3})(\\d{8})","$1 $2",["18"],"0$1"],["(\\d{3})(\\d{2})(\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"],"0$1"],["(\\d{4})(\\d{2})(\\d{7})","$1 $2 $3",["15[279]"],"0$1"],["(\\d{3})(\\d{2})(\\d{8})","$1 $2 $3",["15"],"0$1"]],"0"],DJ:["253","00","(?:2\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27]"]]]],DK:["45","00","[2-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]]],DM:["1","011","(?:[58]\\d\\d|767|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","767$1",0,"767"],DO:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,0,0,0,"8001|8[024]9"],DZ:["213","00","(?:[1-4]|[5-79]\\d|80)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-8]"],"0$1"]],"0"],EC:["593","00","1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}",[8,9,10,11],[["(\\d)(\\d{3})(\\d{4})","$1 $2-$3",["[2-7]"],"(0$1)",0,"$1-$2-$3"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],"0"],EE:["372","00","8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]],["(\\d{4})(\\d{3,4})","$1 $2",["[45]|8(?:00|[1-49])","[45]|8(?:00[1-9]|[1-49])"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],EG:["20","00","[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}",[8,9,10],[["(\\d)(\\d{7,8})","$1 $2",["[23]"],"0$1"],["(\\d{2})(\\d{6,7})","$1 $2",["1[35]|[4-6]|8[2468]|9[235-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{8})","$1 $2",["1"],"0$1"]],"0"],EH:["212","00","[5-8]\\d{8}",[9],0,"0",0,0,0,0,"528[89]"],ER:["291","00","[178]\\d{6}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],"0"],ES:["34","00","[5-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-9]"]]]],ET:["251","00","(?:11|[2-579]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-579]"],"0$1"]],"0"],FI:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}",[5,6,7,8,9,10,11,12],[["(\\d{5})","$1",["20[2-59]"],"0$1"],["(\\d{3})(\\d{3,7})","$1 $2",["(?:[1-3]0|[68])0|70[07-9]"],"0$1"],["(\\d{2})(\\d{4,8})","$1 $2",["[14]|2[09]|50|7[135]"],"0$1"],["(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"],["(\\d)(\\d{4,9})","$1 $2",["(?:19|[2568])[1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"]],"0",0,0,0,0,"1[03-79]|[2-9]",0,"00"],FJ:["679","0(?:0|52)","45\\d{5}|(?:0800\\d|[235-9])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|45"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]]],0,0,0,0,0,0,0,"00"],FK:["500","00","[2-7]\\d{4}",[5]],FM:["691","00","(?:[39]\\d\\d|820)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[389]"]]]],FO:["298","00","[2-9]\\d{5}",[6],[["(\\d{6})","$1",["[2-9]"]]],0,0,"(10(?:01|[12]0|88))"],FR:["33","00","[1-9]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],"0"],GA:["241","00","(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}",[7,8],[["(\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["11|[67]"],"0$1"]],0,0,"0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})","$1"],GB:["44","00","[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",[7,9,10],[["(\\d{3})(\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["845","8454","84546","845464"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["800"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["1(?:[2-69][02-9]|[78])"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[25]|7(?:0|6[02-9])","[25]|7(?:0|6(?:[03-9]|2[356]))"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[1389]"],"0$1"]],"0",0,0,0,0,0,[["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0-35])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|50))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-3]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}",[9,10]],["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]],0," x"],GD:["1","011","(?:473|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","473$1",0,"473"],GE:["995","00","(?:[3-57]\\d\\d|800)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["32"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[57]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"]],"0"],GF:["594","00","(?:[56]94\\d|7093)\\d{5}|(?:80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]|9[47]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[89]"],"0$1"]],"0"],GG:["44","00","(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",[7,9,10],0,"0",0,"([25-9]\\d{5})$|0","1481$1",0,0,[["1481[25-9]\\d{5}",[10]],["7(?:(?:781|839)\\d|911[17])\\d{5}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]]],GH:["233","00","(?:[235]\\d{3}|800)\\d{5}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[235]"],"0$1"]],"0"],GI:["350","00","(?:[25]\\d|60)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["2"]]]],GL:["299","00","(?:19|[2-689]\\d|70)\\d{4}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-9]"]]]],GM:["220","00","[2-9]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],GN:["224","00","722\\d{6}|(?:3|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["3"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[67]"]]]],GP:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["590(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-5])\\d{4}"]]],GQ:["240","00","222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],["(\\d{3})(\\d{6})","$1 $2",["[89]"]]]],GR:["30","00","5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}",[10,11,12],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["21|7"]],["(\\d{4})(\\d{6})","$1 $2",["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2689]"]],["(\\d{3})(\\d{3,4})(\\d{5})","$1 $2 $3",["8"]]]],GT:["502","00","80\\d{6}|(?:1\\d{3}|[2-7])\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1 $2",["[2-8]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],GU:["1","011","(?:[58]\\d\\d|671|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","671$1",0,"671"],GW:["245","00","[49]\\d{8}|4\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["40"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"]]]],GY:["592","001","(?:[2-8]\\d{3}|9008)\\d{3}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],HK:["852","00(?:30|5[09]|[126-9]?)","8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}",[5,6,7,8,9,11],[["(\\d{3})(\\d{2,5})","$1 $2",["900","9003"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{3})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],0,0,0,0,0,0,0,"00"],HN:["504","00","8\\d{10}|[237-9]\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]]],HR:["385","00","(?:[24-69]\\d|3[0-79])\\d{7}|80\\d{5,7}|[1-79]\\d{7}|6\\d{5,6}",[6,7,8,9],[["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["6[01]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{4})(\\d{3})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6|7[245]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-57]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],"0"],HT:["509","00","(?:[2-489]\\d|55)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-589]"]]]],HU:["36","00","[235-7]\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"06 $1"]],"06"],ID:["62","00[89]","00[1-9]\\d{9,14}|(?:[1-36]|8\\d{5})\\d{6}|00\\d{9}|[1-9]\\d{8,10}|[2-9]\\d{7}",[7,8,9,10,11,12,13,14,15,16,17],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["15"]],["(\\d{2})(\\d{5,9})","$1 $2",["2[124]|[36]1"],"(0$1)"],["(\\d{3})(\\d{5,7})","$1 $2",["800"],"0$1"],["(\\d{3})(\\d{5,8})","$1 $2",["[2-79]"],"(0$1)"],["(\\d{3})(\\d{3,4})(\\d{3})","$1-$2-$3",["8[1-35-9]"],"0$1"],["(\\d{3})(\\d{6,8})","$1 $2",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["804"],"0$1"],["(\\d{3})(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1-$2-$3",["8"],"0$1"]],"0"],IE:["353","00","(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"],"(0$1)"],["(\\d{3})(\\d{5})","$1 $2",["[45]0"],"(0$1)"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["1"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2569]|4[1-69]|7[14]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["81"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[78]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["4"],"(0$1)"],["(\\d{2})(\\d)(\\d{3})(\\d{4})","$1 $2 $3 $4",["8"],"0$1"]],"0"],IL:["972","0(?:0|1[2-9])","1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}",[7,8,9,10,11,12],[["(\\d{4})(\\d{3})","$1-$2",["125"]],["(\\d{4})(\\d{2})(\\d{2})","$1-$2-$3",["121"]],["(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1-$2-$3",["12"]],["(\\d{4})(\\d{6})","$1-$2",["159"]],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3-$4",["1[7-9]"]],["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})","$1-$2 $3-$4",["15"]]],"0"],IM:["44","00","1624\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([25-8]\\d{5})$|0","1624$1",0,"74576|(?:16|7[56])24"],IN:["91","00","(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",[8,9,10,11,12,13],[["(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],0,1],["(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],0,1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-7]|80[2-46]","11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[14]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:2[14]|3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"],"0$1",1],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|28|3[129]|4[1-35689]|5[29]|6[02-5]|70)|807","1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]","1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|83)|73179|807(?:1|9[1-3])|(?:1552|6(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[124-6])\\d|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"],"0$1",1],["(\\d{5})(\\d{5})","$1 $2",["[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["1(?:6|8[06])","1(?:6|8[06]0)"],0,1],["(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],0,1]],"0"],IO:["246","00","3\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["3"]]]],IQ:["964","00","(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],IR:["98","00","[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",[4,5,6,7,10],[["(\\d{4,5})","$1",["96"],"0$1"],["(\\d{2})(\\d{4,5})","$1 $2",["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[1-8]"],"0$1"]],"0"],IS:["354","00|1(?:0(?:01|[12]0)|100)","(?:38\\d|[4-9])\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],0,0,0,0,0,0,0,"00"],IT:["39","00","0\\d{5,10}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:43|55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?",[6,7,8,9,10,11,12],[["(\\d{2})(\\d{4,6})","$1 $2",["0[26]"]],["(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]],["(\\d{4})(\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],["(\\d{4})(\\d{4})","$1 $2",["894"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|5"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["1(?:44|[679])|[378]|43"]],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]|14"]],["(\\d{2})(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["3"]]],0,0,0,0,0,0,[["0669[0-79]\\d{1,6}|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[1-356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}",[6,7,8,9,10,11]],["3[2-9]\\d{7,8}|(?:31|43)\\d{8}",[9,10]],["80(?:0\\d{3}|3)\\d{3}",[6,9]],["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}",[6,8,9,10]],["1(?:78\\d|99)\\d{6}",[9,10]],["3[2-8]\\d{9,10}",[11,12]],0,0,["55\\d{8}",[10]],["84(?:[08]\\d{3}|[17])\\d{3}",[6,9]]]],JE:["44","00","1534\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([0-24-8]\\d{5})$|0","1534$1",0,0,[["1534[0-24-8]\\d{5}"],["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97\\d))\\d{5}"],["80(?:07(?:35|81)|8901)\\d{4}"],["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"],["701511\\d{4}"],0,["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}"],["56\\d{8}"]]],JM:["1","011","(?:[58]\\d\\d|658|900)\\d{7}",[10],0,"1",0,0,0,0,"658|876"],JO:["962","00","(?:(?:[2689]|7\\d)\\d|32|53)\\d{6}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],["(\\d{3})(\\d{5,6})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["70"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],JP:["81","010","00[1-9]\\d{6,14}|[257-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",[8,9,10,11,12,13,14,15,16,17],[["(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1"],["(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["[36]|4(?:2[09]|7[01])","[36]|4(?:2(?:0|9[02-69])|7(?:0[019]|1))"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"],"0$1"],["(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["[14]|[289][2-9]|5[3-9]|7[2-4679]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[257-9]"],"0$1"]],"0",0,"(000[259]\\d{6})$|(?:(?:003768)0?)|0","$1"],KE:["254","000","(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}",[7,8,9,10],[["(\\d{2})(\\d{5,7})","$1 $2",["[24-6]"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[17]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0"],KG:["996","00","8\\d{9}|[235-9]\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["3(?:1[346]|[24-79])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-79]|88"],"0$1"],["(\\d{3})(\\d{3})(\\d)(\\d{2,3})","$1 $2 $3 $4",["8"],"0$1"]],"0"],KH:["855","00[14-9]","1\\d{9}|[1-9]\\d{7,8}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],KI:["686","00","(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",[5,8],0,"0"],KM:["269","00","[3478]\\d{6}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]]],KN:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","869$1",0,"869"],KP:["850","00|99","85\\d{6}|(?:19\\d|[2-7])\\d{7}",[8,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"]],"0"],KR:["82","00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))","00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}",[5,6,8,9,10,11,12,13,14],[["(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1"],["(\\d{4})(\\d{4})","$1-$2",["1"]],["(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[36]0|8"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1"]],"0",0,"0(8(?:[1-46-8]|5\\d\\d))?"],KW:["965","00","18\\d{5}|(?:[2569]\\d|41)\\d{6}",[7,8],[["(\\d{4})(\\d{3,4})","$1 $2",["[169]|2(?:[235]|4[1-35-9])|52"]],["(\\d{3})(\\d{5})","$1 $2",["[245]"]]]],KY:["1","011","(?:345|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","345$1",0,"345"],KZ:["7","810","(?:33622|8\\d{8})\\d{5}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"33|7",0,"8~10"],LA:["856","00","[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["30[0135-9]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[23]"],"0$1"]],"0"],LB:["961","00","[27-9]\\d{7}|[13-9]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-7]|9[04-9])|8[02-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27-9]"]]],"0"],LC:["1","011","(?:[58]\\d\\d|758|900)\\d{7}",[10],0,"1",0,"([2-8]\\d{6})$|1","758$1",0,"758"],LI:["423","00","[68]\\d{8}|(?:[2378]\\d|90)\\d{5}",[7,9],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2379]|8(?:0[09]|7)","[2379]|8(?:0(?:02|9)|7)"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["69"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]],"0",0,"(1001)|0"],LK:["94","00","[1-9]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[1-689]"],"0$1"]],"0"],LR:["231","00","(?:[245]\\d|33|77|88)\\d{7}|(?:2\\d|[4-6])\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["4[67]|[56]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-578]"],"0$1"]],"0"],LS:["266","00","(?:[256]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2568]"]]]],LT:["370","00","(?:[3469]\\d|52|[78]0)\\d{6}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["52[0-7]"],"(0-$1)",1],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"0 $1",1],["(\\d{2})(\\d{6})","$1 $2",["37|4(?:[15]|6[1-8])"],"(0-$1)",1],["(\\d{3})(\\d{5})","$1 $2",["[3-6]"],"(0-$1)",1]],"0",0,"[08]"],LU:["352","00","35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}",[4,5,6,7,8,9,10,11],[["(\\d{2})(\\d{3})","$1 $2",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20[2-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["2(?:[0367]|4[3-8])"]],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["2(?:[0367]|4[3-8])"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})","$1 $2 $3 $4",["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]]],0,0,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"],LV:["371","00","(?:[268]\\d|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[269]|8[01]"]]]],LY:["218","00","[2-9]\\d{8}",[9],[["(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],"0"],MA:["212","00","[5-8]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5[45]"],"0$1"],["(\\d{4})(\\d{5})","$1-$2",["5(?:2[2-46-9]|3[3-9]|9)|8(?:0[89]|92)"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8"],"0$1"],["(\\d{3})(\\d{6})","$1-$2",["[5-7]"],"0$1"]],"0",0,0,0,0,0,[["5(?:2(?:[0-25-79]\\d|3[1-578]|4[02-46-8]|8[0235-7])|3(?:[0-47]\\d|5[02-9]|6[02-8]|8[014-9]|9[3-9])|(?:4[067]|5[03])\\d)\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[0167]\\d|2[0-4]|5[01]|8[0-3]))\\d{6}"],["80[0-7]\\d{6}"],["89\\d{7}"],0,0,0,0,["(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}"]]],MC:["377","00","(?:[3489]|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["4"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[389]"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["6"],"0$1"]],"0"],MD:["373","00","(?:[235-7]\\d|[89]0)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["22|3"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[25-7]"],"0$1"]],"0"],ME:["382","00","(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"0$1"]],"0"],MF:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-5])\\d{4}"]]],MG:["261","00","[23]\\d{8}",[9],[["(\\d{2})(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",["[23]"],"0$1"]],"0",0,"([24-9]\\d{6})$|0","20$1"],MH:["692","011","329\\d{4}|(?:[256]\\d|45)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1-$2",["[2-6]"]]],"1"],MK:["389","00","[2-578]\\d{7}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2|34[47]|4(?:[37]7|5[47]|64)"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[347]"],"0$1"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["[58]"],"0$1"]],"0"],ML:["223","00","[24-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]]],MM:["95","00","1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}",[6,7,8,9,10],[["(\\d)(\\d{2})(\\d{3})","$1 $2 $3",["16|2"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["4(?:[2-46]|5[3-5])|5|6(?:[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-5]|(?:60|86)[23]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]|452|678|86","[12]|452|6788|86"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[4-7]|8[1-35]"],"0$1"],["(\\d)(\\d{3})(\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[137-9])"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["92"],"0$1"],["(\\d)(\\d{5})(\\d{4})","$1 $2 $3",["9"],"0$1"]],"0"],MN:["976","001","[12]\\d{7,9}|[5-9]\\d{7}",[8,9,10],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[12]1"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[5-9]"]],["(\\d{3})(\\d{5,6})","$1 $2",["[12]2[1-3]"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["[12](?:27|3[2-8]|4[2-68]|5[1-4689])","[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["[12]"],"0$1"]],"0"],MO:["853","00","0800\\d{3}|(?:28|[68]\\d)\\d{6}",[7,8],[["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{4})(\\d{4})","$1 $2",["[268]"]]]],MP:["1","011","[58]\\d{9}|(?:67|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","670$1",0,"670"],MQ:["596","00","(?:596\\d|7091)\\d{5}|(?:69|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]|8(?:0[6-9]|[36])"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],MR:["222","00","(?:[2-4]\\d\\d|800)\\d{5}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-48]"]]]],MS:["1","011","(?:[58]\\d\\d|664|900)\\d{7}",[10],0,"1",0,"([34]\\d{6})$|1","664$1",0,"664"],MT:["356","00","3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2357-9]"]]]],MU:["230","0(?:0|[24-7]0|3[03])","(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[2-46]|8[013]"]],["(\\d{4})(\\d{4})","$1 $2",["[57]"]],["(\\d{5})(\\d{5})","$1 $2",["8"]]],0,0,0,0,0,0,0,"020"],MV:["960","0(?:0|19)","(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}",[7,10],[["(\\d{3})(\\d{4})","$1-$2",["[34679]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"]]],0,0,0,0,0,0,0,"00"],MW:["265","00","(?:[1289]\\d|31|77)\\d{7}|1\\d{6}",[7,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["1[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[137-9]"],"0$1"]],"0"],MX:["52","0[09]","[2-9]\\d{9}",[10],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"]]],0,0,0,0,0,0,0,"00"],MY:["60","00","1\\d{8,9}|(?:3\\d|[4-9])\\d{7}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["[4-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1-$2 $3",["1(?:[02469]|[378][1-9]|53)|8","1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2 $3",["3"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3-$4",["1(?:[367]|80)"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2 $3",["15"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2 $3",["1"],"0$1"]],"0"],MZ:["258","00","(?:2|8\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2|8[2-79]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],NA:["264","00","[68]\\d{7,8}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["87"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],NC:["687","00","(?:050|[2-57-9]\\d\\d)\\d{3}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[02-57-9]"]]]],NE:["227","00","[027-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["08"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[089]|2[013]|7[0467]"]]]],NF:["672","00","[13]\\d{5}",[6],[["(\\d{2})(\\d{4})","$1 $2",["1[0-3]"]],["(\\d)(\\d{5})","$1 $2",["[13]"]]],0,0,"([0-258]\\d{4})$","3$1"],NG:["234","009","38\\d{6}|[78]\\d{9,13}|(?:20|9\\d)\\d{8}",[8,10,11,12,13,14],[["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["3"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["20[129]"],"0$1"],["(\\d{4})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[78]"],"0$1"],["(\\d{3})(\\d{5})(\\d{5,6})","$1 $2 $3",["[78]"],"0$1"]],"0"],NI:["505","00","(?:1800|[25-8]\\d{3})\\d{4}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[125-8]"]]]],NL:["31","00","(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}",[5,6,7,8,9,10,11],[["(\\d{3})(\\d{4,7})","$1 $2",["[89]0"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["66"],"0$1"],["(\\d)(\\d{8})","$1 $2",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-578]|91"],"0$1"],["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3",["9"],"0$1"]],"0"],NO:["47","00","(?:0|[2-9]\\d{3})\\d{4}",[5,8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]"]]],0,0,0,0,0,"[02-689]|7[0-8]"],NP:["977","00","(?:1\\d|9)\\d{9}|[1-9]\\d{7}",[8,10,11],[["(\\d)(\\d{7})","$1-$2",["1[2-6]"],"0$1"],["(\\d{2})(\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-59]|[67][2-6])"],"0$1"],["(\\d{3})(\\d{7})","$1-$2",["9"]]],"0"],NR:["674","00","(?:444|(?:55|8\\d)\\d|666)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[4-68]"]]]],NU:["683","00","(?:[4-7]|888\\d)\\d{3}",[4,7],[["(\\d{3})(\\d{4})","$1 $2",["8"]]]],NZ:["64","0(?:0|161)","[1289]\\d{9}|50\\d{5}(?:\\d{2,3})?|[27-9]\\d{7,8}|(?:[34]\\d|6[0-35-9])\\d{6}|8\\d{4,6}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,8})","$1 $2",["8[1-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["50[036-8]|8|90","50(?:[0367]|88)|8|90"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["24|[346]|7[2-57-9]|9[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:10|74)|[589]"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1|2[028]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,5})","$1 $2 $3",["2(?:[169]|7[0-35-9])|7"],"0$1"]],"0",0,0,0,0,0,0,"00"],OM:["968","00","(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}",[7,8,9],[["(\\d{3})(\\d{4,6})","$1 $2",["[58]"]],["(\\d{2})(\\d{6})","$1 $2",["2"]],["(\\d{4})(\\d{4})","$1 $2",["[179]"]]]],PA:["507","00","(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}",[7,8,10,11],[["(\\d{3})(\\d{4})","$1-$2",["[1-57-9]"]],["(\\d{4})(\\d{4})","$1-$2",["[68]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]]],PE:["51","00|19(?:1[124]|77|90)00","(?:[14-8]|9\\d)\\d{7}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["80"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["1"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[4-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"]]],"0",0,0,0,0,0,0,"00"," Anexo "],PF:["689","00","4\\d{5}(?:\\d{2})?|8\\d{7,8}",[6,8,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["44"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4|8[7-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],PG:["675","00|140[1-3]","(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["18|[2-69]|85"]],["(\\d{4})(\\d{4})","$1 $2",["[78]"]]],0,0,0,0,0,0,0,"00"],PH:["63","00","(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}",[6,8,9,10,11,12,13],[["(\\d)(\\d{5})","$1 $2",["2"],"(0$1)"],["(\\d{4})(\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)"],["(\\d{5})(\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|8[2-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["1"]]],"0"],PK:["92","00","122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,7})","$1 $2 $3",["[89]0"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["1"]],["(\\d{3})(\\d{6,7})","$1 $2",["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])","9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"],"(0$1)"],["(\\d{2})(\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"],"(0$1)"],["(\\d{5})(\\d{5})","$1 $2",["58"],"(0$1)"],["(\\d{3})(\\d{7})","$1 $2",["3"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[24-9]"],"(0$1)"]],"0"],PL:["48","00","(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}",[6,7,8,9,10],[["(\\d{5})","$1",["19"]],["(\\d{3})(\\d{3})","$1 $2",["11|20|64"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1","(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["64"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[2-8]|[2-7]|8[1-79]|9[145]"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["8"]]]],PM:["508","00","[45]\\d{5}|(?:708|8\\d\\d)\\d{6}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[45]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],PR:["1","011","(?:[589]\\d\\d|787)\\d{7}",[10],0,"1",0,0,0,0,"787|939"],PS:["970","00","[2489]2\\d{6}|(?:1\\d|5)\\d{8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2489]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["5"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],PT:["351","00","1693\\d{5}|(?:[26-9]\\d|30)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["2[12]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["16|[236-9]"]]]],PW:["680","01[12]","(?:[24-8]\\d\\d|345|900)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],PY:["595","00","59\\d{4,6}|9\\d{5,10}|(?:[2-46-8]\\d|5[0-8])\\d{4,7}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36]"],"(0$1)"],["(\\d{3})(\\d{4,5})","$1 $2",["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["87"]],["(\\d{3})(\\d{6})","$1 $2",["9(?:[5-79]|8[1-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["9"]]],"0"],QA:["974","00","800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}",[7,8,9,11],[["(\\d{3})(\\d{4})","$1 $2",["2[16]|8"]],["(\\d{4})(\\d{4})","$1 $2",["[3-7]"]]]],RE:["262","00","709\\d{6}|(?:26|[689]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-9]"],"0$1"]],"0",0,0,0,0,0,[["26(?:2\\d\\d|3(?:0\\d|1[0-6]))\\d{4}"],["(?:69(?:2\\d\\d|3(?:[06][0-6]|1[013]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))|7092[0-3])\\d{4}"],["80\\d{7}"],["89[1-37-9]\\d{6}"],0,0,0,0,["9(?:399[0-3]|479[0-5]|76(?:2[278]|3[0-37]))\\d{4}"],["8(?:1[019]|2[0156]|84|90)\\d{6}"]]],RO:["40","00","(?:[236-8]\\d|90)\\d{7}|[23]\\d{5}",[6,9],[["(\\d{3})(\\d{3})","$1 $2",["2[3-6]","2[3-6]\\d9"],"0$1"],["(\\d{2})(\\d{4})","$1 $2",["219|31"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23]1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[236-9]"],"0$1"]],"0",0,0,0,0,0,0,0," int "],RS:["381","00","38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}",[6,7,8,9,10,11,12],[["(\\d{3})(\\d{3,9})","$1 $2",["(?:2[389]|39)0|[7-9]"],"0$1"],["(\\d{2})(\\d{5,10})","$1 $2",["[1-36]"],"0$1"]],"0"],RU:["7","810","8\\d{13}|[347-9]\\d{9}",[10,14],[["(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"],"8 ($1)",1],["(\\d{5})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-68]|2[1-9])","7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))","7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[349]|8(?:[02-7]|1[1-8])"],"8 ($1)",1],["(\\d{4})(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3 $4",["8"],"8 ($1)"]],"8",0,0,0,0,"3[04-689]|[489]",0,"8~10"],RW:["250","00","(?:06|[27]\\d\\d|[89]00)\\d{6}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1"]],"0"],SA:["966","00","92\\d{7}|(?:[15]|8\\d)\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["9"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["81"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],"0"],SB:["677","0[01]","[6-9]\\d{6}|[1-6]\\d{4}",[5,7],[["(\\d{2})(\\d{5})","$1 $2",["6[89]|7|8[4-9]|9(?:[1-8]|9[0-8])"]]]],SC:["248","010|0[0-2]","(?:[2489]\\d|64)\\d{5}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[246]|9[57]"]]],0,0,0,0,0,0,0,"00"],SD:["249","00","[19]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[19]"],"0$1"]],"0"],SE:["46","00","(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}",[6,7,8,9,10,12],[["(\\d{2})(\\d{2,3})(\\d{2})","$1-$2 $3",["20"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{4})","$1-$2",["9(?:00|39|44|9)"],"0$1",0,"$1 $2"],["(\\d{2})(\\d{3})(\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3"],["(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2,3})(\\d{2})","$1-$2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{2,3})(\\d{3})","$1-$2 $3",["9(?:00|39|44)"],"0$1",0,"$1 $2 $3"],["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3 $4"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["10|7"],"0$1",0,"$1 $2 $3 $4"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1-$2 $3 $4",["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1-$2 $3 $4",["9"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4 $5",["[26]"],"0$1",0,"$1 $2 $3 $4 $5"]],"0"],SG:["65","0[0-3]\\d","(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-9]|[1-9])"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]],["(\\d{4})(\\d{4})(\\d{3})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],SH:["290","00","(?:[256]\\d|8)\\d{3}",[4,5],0,0,0,0,0,0,"[256]"],SI:["386","00|10(?:22|66|88|99)","[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}",[5,6,7,8],[["(\\d{2})(\\d{3,6})","$1 $2",["8[09]|9"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["59|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37][01]|4[0139]|51|6"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-57]"],"(0$1)"]],"0",0,0,0,0,0,0,"00"],SJ:["47","00","0\\d{4}|(?:[489]\\d|79)\\d{6}",[5,8],0,0,0,0,0,0,"79"],SK:["421","00","[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}",[6,7,9],[["(\\d)(\\d{2})(\\d{3,4})","$1 $2 $3",["21"],"0$1"],["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["[3-5][1-8]1","[3-5][1-8]1[67]"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1/$2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1/$2 $3 $4",["[3-5]"],"0$1"]],"0"],SL:["232","00","(?:[237-9]\\d|66)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[236-9]"],"(0$1)"]],"0"],SM:["378","00","(?:0549|[5-7]\\d)\\d{6}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],["(\\d{4})(\\d{6})","$1 $2",["0"]]],0,0,"([89]\\d{5})$","0549$1"],SN:["221","00","(?:[378]\\d|93)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[379]"]]]],SO:["252","00","[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}",[6,7,8,9],[["(\\d{2})(\\d{4})","$1 $2",["8[125]"]],["(\\d{6})","$1",["[134]"]],["(\\d)(\\d{6})","$1 $2",["[15]|2[0-79]|3[0-46-8]|4[0-7]"]],["(\\d)(\\d{7})","$1 $2",["(?:2|90)4|[67]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[348]|64|79|90"]],["(\\d{2})(\\d{5,7})","$1 $2",["1|28|6[0-35-9]|77|9[2-9]"]]],"0"],SR:["597","00","(?:[2-5]|68|[78]\\d)\\d{5}",[6,7],[["(\\d{2})(\\d{2})(\\d{2})","$1-$2-$3",["56"]],["(\\d{3})(\\d{3})","$1-$2",["[2-5]"]],["(\\d{3})(\\d{4})","$1-$2",["[6-8]"]]]],SS:["211","00","[19]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[19]"],"0$1"]],"0"],ST:["239","00","(?:22|9\\d)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[29]"]]]],SV:["503","00","[267]\\d{7}|(?:80\\d|900)\\d{4}(?:\\d{4})?",[7,8,11],[["(\\d{3})(\\d{4})","$1 $2",["[89]"]],["(\\d{4})(\\d{4})","$1 $2",["[267]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[89]"]]]],SX:["1","011","7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"(5\\d{6})$|1","721$1",0,"721"],SY:["963","00","[1-359]\\d{8}|[1-5]\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-4]|5[1-3]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[59]"],"0$1",1]],"0"],SZ:["268","00","0800\\d{4}|(?:[237]\\d|900)\\d{6}",[8,9],[["(\\d{4})(\\d{4})","$1 $2",["[0237]"]],["(\\d{5})(\\d{4})","$1 $2",["9"]]]],TA:["290","00","8\\d{3}",[4],0,0,0,0,0,0,"8"],TC:["1","011","(?:[58]\\d\\d|649|900)\\d{7}",[10],0,"1",0,"([2-479]\\d{6})$|1","649$1",0,"649"],TD:["235","00|16","(?:22|[689]\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-9]"]]],0,0,0,0,0,0,0,"00"],TG:["228","00","[279]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[279]"]]]],TH:["66","00[1-9]","(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}",[8,9,10,13],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[13-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],TJ:["992","810","[0-57-9]\\d{8}",[9],[["(\\d{6})(\\d)(\\d{2})","$1 $2 $3",["331","3317"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["44[02-479]|[34]7"]],["(\\d{4})(\\d)(\\d{4})","$1 $2 $3",["3(?:[1245]|3[12])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[0-57-9]"]]],0,0,0,0,0,0,0,"8~10"],TK:["690","00","[2-47]\\d{3,6}",[4,5,6,7]],TL:["670","00","7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[2-489]|70"]],["(\\d{4})(\\d{4})","$1 $2",["7"]]]],TM:["993","810","(?:[1-6]\\d|71)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["12"],"(8 $1)"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-5]"],"(8 $1)"],["(\\d{2})(\\d{6})","$1 $2",["[67]"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],TN:["216","00","[2-57-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]]],TO:["676","00","(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}",[5,7],[["(\\d{2})(\\d{3})","$1-$2",["[2-4]|50|6[09]|7[0-24-69]|8[05]"]],["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[5-9]"]]]],TR:["90","00","4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}",[7,10,12,13],[["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["512|8[01589]|90"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5(?:[0-59]|61)","5(?:[0-59]|61[06])","5(?:[0-59]|61[06]1)"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24][1-8]|3[1-9]"],"(0$1)",1],["(\\d{3})(\\d{3})(\\d{6,7})","$1 $2 $3",["80"],"0$1",1]],"0"],TT:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-46-8]\\d{6})$|1","868$1",0,"868"],TV:["688","00","(?:2|7\\d\\d|90)\\d{4}",[5,6,7],[["(\\d{2})(\\d{3})","$1 $2",["2"]],["(\\d{2})(\\d{4})","$1 $2",["90"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],TW:["886","0(?:0[25-79]|19)","[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}",[7,8,9,10,11],[["(\\d{2})(\\d)(\\d{4})","$1 $2 $3",["202"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[258]0"],"0$1"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-47-9])|7[1-9]","[23568]|4(?:0[2-48]|[1-47-9])|(?:400|7)[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,5})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,0,0,"#"],TZ:["255","00[056]","(?:[25-8]\\d|41|90)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[24]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["5"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[67]"],"0$1"]],"0"],UA:["380","00","[89]\\d{9}|[3-9]\\d{8}",[9,10],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]","6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])","3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|89|9[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0",0,0,0,0,0,0,"0~0"],UG:["256","00[057]","800\\d{6}|(?:[29]0|[347]\\d)\\d{7}",[9],[["(\\d{4})(\\d{5})","$1 $2",["202","2024"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[27-9]|4(?:6[45]|[7-9])"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[34]"],"0$1"]],"0"],US:["1","011","[2-9]\\d{9}|3\\d{6}",[10],[["(\\d{3})(\\d{4})","$1-$2",["310"],0,1],["(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",["[2-9]"],0,1,"$1-$2-$3"]],"1",0,0,0,0,0,[["(?:3052(?:0[0-8]|[1-9]\\d)|5056(?:[0-35-9]\\d|4[468])|7302[0-4]\\d)\\d{4}|(?:305[3-9]|472[24]|505[2-57-9]|7306|983[2-47-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-47-9]|1[02-9]|2[0135-79]|3[0-24679]|4[167]|5[0-2]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-47-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-29])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[1247]|4[037]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[068]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-389]|8[04-69]))[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}"],0,0,0,["305209\\d{4}"]]],UY:["598","0(?:0|1[3-9]\\d)","0004\\d{2,9}|[1249]\\d{7}|(?:[49]\\d|80)\\d{5}",[6,7,8,9,10,11,12,13],[["(\\d{3})(\\d{3,4})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[49]0|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[124]"]],["(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3 $4",["0"]]],"0",0,0,0,0,0,0,"00"," int. "],UZ:["998","00","(?:20|33|[5-79]\\d|88)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-9]"]]]],VA:["39","00","0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}",[6,7,8,9,10,11,12],0,0,0,0,0,0,"06698"],VC:["1","011","(?:[58]\\d\\d|784|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","784$1",0,"784"],VE:["58","00","[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}",[10],[["(\\d{3})(\\d{7})","$1-$2",["[24-689]"],"0$1"]],"0"],VG:["1","011","(?:284|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-578]\\d{6})$|1","284$1",0,"284"],VI:["1","011","[58]\\d{9}|(?:34|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","340$1",0,"340"],VN:["84","00","[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["80"],"0$1",1],["(\\d{4})(\\d{4,6})","$1 $2",["1"],0,1],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["6"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[357-9]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",1]],"0"],VU:["678","00","[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}",[5,7],[["(\\d{3})(\\d{4})","$1 $2",["[57-9]"]]]],WF:["681","00","(?:40|72|8\\d{4})\\d{4}|[89]\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[47-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],WS:["685","0","(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}",[5,6,7,10],[["(\\d{5})","$1",["[2-5]|6[1-9]"]],["(\\d{3})(\\d{3,7})","$1 $2",["[68]"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],XK:["383","00","2\\d{7,8}|3\\d{7,11}|(?:4\\d\\d|[89]00)\\d{5}",[8,9,10,11,12],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2|39"],"0$1"],["(\\d{2})(\\d{7,10})","$1 $2",["3"],"0$1"]],"0"],YE:["967","00","(?:1|7\\d)\\d{7}|[1-7]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-6]|7(?:[24-6]|8[0-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1"]],"0"],YT:["262","00","7093\\d{5}|(?:80|9\\d)\\d{7}|(?:26|63)9\\d{6}",[9],0,"0",0,0,0,0,0,[["269(?:0[0-467]|15|5[0-4]|6\\d|[78]0)\\d{4}"],["(?:639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])|7093[5-7])\\d{4}"],["80\\d{7}"],0,0,0,0,0,["9(?:(?:39|47)8[01]|769\\d)\\d{4}"]]],ZA:["27","00","[1-79]\\d{8}|8\\d{4,9}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,4})","$1 $2",["8[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["8[1-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["860"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],ZM:["260","00","800\\d{6}|(?:21|63|[79]\\d)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[79]"],"0$1"]],"0"],ZW:["263","00","2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}",[5,6,7,8,9,10],[["(\\d{3})(\\d{3,5})","$1 $2",["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"],"0$1"],["(\\d)(\\d{3})(\\d{2,4})","$1 $2 $3",["[49]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["80"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2","2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)","2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["29[013-9]|39|54"],"0$1"],["(\\d{4})(\\d{3,5})","$1 $2",["(?:25|54)8","258|5483"],"0$1"]],"0"]},nonGeographic:{800:["800",0,"(?:00|[1-9]\\d)\\d{6}",[8],[["(\\d{4})(\\d{4})","$1 $2",["\\d"]]],0,0,0,0,0,0,[0,0,["(?:00|[1-9]\\d)\\d{6}"]]],808:["808",0,"[1-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,["[1-9]\\d{7}"]]],870:["870",0,"7\\d{11}|[235-7]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-7]"]]],0,0,0,0,0,0,[0,["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"],0,0,0,0,0,0,["2\\d{8}",[9]]]],878:["878",0,"10\\d{10}",[12],[["(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["10\\d{10}"]]],881:["881",0,"6\\d{9}|[0-36-9]\\d{8}",[9,10],[["(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-37-9]"]],["(\\d)(\\d{3})(\\d{5,6})","$1 $2 $3",["6"]]],0,0,0,0,0,0,[0,["6\\d{9}|[0-36-9]\\d{8}"]]],882:["882",0,"[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?",[7,8,9,10,11,12],[["(\\d{2})(\\d{5})","$1 $2",["16|342"]],["(\\d{2})(\\d{6})","$1 $2",["49"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["1[36]|9"]],["(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["16"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|23|3(?:[15]|4[57])|4|51"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["34"]],["(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["[1-35]"]]],0,0,0,0,0,0,[0,["342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|50\\d{3})\\d{7}",[7,8,9,10,12]],0,0,0,["348[57]\\d{7}",[11]],0,0,["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}"]]],883:["883",0,"(?:[1-4]\\d|51)\\d{6,10}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,8})","$1 $2 $3",["[14]|2[24-689]|3[02-689]|51[24-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["21"]],["(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["51[13]"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[235]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}"]]],888:["888",0,"\\d{11}",[11],[["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3"]],0,0,0,0,0,0,[0,0,0,0,0,0,["\\d{11}"]]],979:["979",0,"[1359]\\d{8}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[1359]"]]],0,0,0,0,0,0,[0,0,0,["[1359]\\d{8}"]]]}};var Wo={exports:{}},Ld="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Vd=Ld,jd=Vd;function Ko(){}function qo(){}qo.resetWarningCache=Ko;var Bd=function(){function e(n,a,i,o,s,u){if(u!==jd){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}e.isRequired=e;function t(){return e}var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:qo,resetWarningCache:Ko};return r.PropTypes=r,r};Wo.exports=Bd();var Hn=Wo.exports;const O=io(Hn);function Ud(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=Hd(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Hd(e,t){if(e){if(typeof e=="string")return _a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _a(e,t)}}function _a(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Gd(e){var t=S.useRef(),r=S.useCallback(function(n){zo([e,t],n)},[e,t]);return[t,r]}function zo(e,t){for(var r=Ud(e),n;!(n=r()).done;){var a=n.value;a&&Wd(a,t)}}function Wd(e,t){typeof e=="function"?e(t):e.current=t}var Kd=["Component","name","defaultValue","shouldUnregister","control","rules","onChange","onBlur"],qd=["ref","onChange","onBlur"];function on(){return on=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},on.apply(this,arguments)}function zd(e,t){return Jd(e)||Xd(e,t)||Zd(e,t)||Yd()}function Yd(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Zd(e,t){if(e){if(typeof e=="string")return Ma(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ma(e,t)}}function Ma(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Xd(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,o,s=[],u=!0,l=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(u=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(d){l=!0,a=d}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw a}}return s}}function Jd(e){if(Array.isArray(e))return e}function Da(e,t){if(e==null)return{};var r=Qd(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Qd(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i<n.length;i++)a=n[i],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}var rr=function(t,r){var n=t.Component,a=t.name,i=t.defaultValue,o=t.shouldUnregister,s=t.control,u=t.rules,l=t.onChange,d=t.onBlur,c=Da(t,Kd),$=Gd(r),v=zd($,2),g=v[0],m=v[1];i=i===void 0?null:i;var p=function(x){var T=x.ref,P=x.onChange,I=x.onBlur,E=Da(x,qd);S.useImperativeHandle(T,function(){return{focus:function(){g.current.focus()}}});var _=S.useCallback(function(j){j===void 0&&(j=null),P(j),l&&l(j)},[P,l]),U=S.useCallback(function(j){I(j),d&&d(j)},[I,d]);return N.createElement(n,on({},c,E,{ref:m,onChange:_,onBlur:U}))},h=S.useCallback(function(){g.current.focus()},[]);return N.createElement(Vn,{control:s,name:a,defaultValue:i,shouldUnregister:o,rules:u,onFocus:h,render:function(x){return p(x.field||x)}})};rr=N.forwardRef(rr);rr.propTypes={Component:O.elementType.isRequired,name:O.string.isRequired,defaultValue:O.string,shouldUnregister:O.bool,control:O.object,rules:O.object,onChange:O.func,onBlur:O.func};const ec={ext:"ext.",country:"Phone number country",phone:"Phone",AB:"Abkhazia",AC:"Ascension Island",AD:"Andorra",AE:"United Arab Emirates",AF:"Afghanistan",AG:"Antigua and Barbuda",AI:"Anguilla",AL:"Albania",AM:"Armenia",AO:"Angola",AQ:"Antarctica",AR:"Argentina",AS:"American Samoa",AT:"Austria",AU:"Australia",AW:"Aruba",AX:"Åland Islands",AZ:"Azerbaijan",BA:"Bosnia and Herzegovina",BB:"Barbados",BD:"Bangladesh",BE:"Belgium",BF:"Burkina Faso",BG:"Bulgaria",BH:"Bahrain",BI:"Burundi",BJ:"Benin",BL:"Saint Barthélemy",BM:"Bermuda",BN:"Brunei Darussalam",BO:"Bolivia",BQ:"Bonaire, Sint Eustatius and Saba",BR:"Brazil",BS:"Bahamas",BT:"Bhutan",BV:"Bouvet Island",BW:"Botswana",BY:"Belarus",BZ:"Belize",CA:"Canada",CC:"Cocos (Keeling) Islands",CD:"Congo, Democratic Republic of the",CF:"Central African Republic",CG:"Congo",CH:"Switzerland",CI:"Cote d'Ivoire",CK:"Cook Islands",CL:"Chile",CM:"Cameroon",CN:"China",CO:"Colombia",CR:"Costa Rica",CU:"Cuba",CV:"Cape Verde",CW:"Curaçao",CX:"Christmas Island",CY:"Cyprus",CZ:"Czech Republic",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:"Federated States of 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",GS:"South Georgia and the South Sandwich Islands",GT:"Guatemala",GU:"Guam",GW:"Guinea-Bissau",GY:"Guyana",HK:"Hong Kong",HM:"Heard Island and McDonald Islands",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:"Saint Kitts and Nevis",KP:"North Korea",KR:"South Korea",KW:"Kuwait",KY:"Cayman Islands",KZ:"Kazakhstan",LA:"Laos",LB:"Lebanon",LC:"Saint 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:"Saint Martin (French Part)",MG:"Madagascar",MH:"Marshall Islands",MK:"North Macedonia",ML:"Mali",MM:"Myanmar",MN:"Mongolia",MO:"Macao",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",OS:"South Ossetia",PA:"Panama",PE:"Peru",PF:"French Polynesia",PG:"Papua New Guinea",PH:"Philippines",PK:"Pakistan",PL:"Poland",PM:"Saint Pierre and Miquelon",PN:"Pitcairn",PR:"Puerto Rico",PS:"Palestine",PT:"Portugal",PW:"Palau",PY:"Paraguay",QA:"Qatar",RE:"Reunion",RO:"Romania",RS:"Serbia",RU:"Russia",RW:"Rwanda",SA:"Saudi Arabia",SB:"Solomon Islands",SC:"Seychelles",SD:"Sudan",SE:"Sweden",SG:"Singapore",SH:"Saint Helena",SI:"Slovenia",SJ:"Svalbard and Jan Mayen",SK:"Slovakia",SL:"Sierra Leone",SM:"San Marino",SN:"Senegal",SO:"Somalia",SR:"Suriname",SS:"South Sudan",ST:"Sao Tome and Principe",SV:"El Salvador",SX:"Sint Maarten",SY:"Syria",SZ:"Swaziland",TA:"Tristan da Cunha",TC:"Turks and Caicos Islands",TD:"Chad",TF:"French Southern Territories",TG:"Togo",TH:"Thailand",TJ:"Tajikistan",TK:"Tokelau",TL:"Timor-Leste",TM:"Turkmenistan",TN:"Tunisia",TO:"Tonga",TR:"Turkey",TT:"Trinidad and Tobago",TV:"Tuvalu",TW:"Taiwan",TZ:"Tanzania",UA:"Ukraine",UG:"Uganda",UM:"United States Minor Outlying Islands",US:"United States",UY:"Uruguay",UZ:"Uzbekistan",VA:"Holy See (Vatican City State)",VC:"Saint Vincent and the Grenadines",VE:"Venezuela",VG:"Virgin Islands, British",VI:"Virgin Islands, U.S.",VN:"Vietnam",VU:"Vanuatu",WF:"Wallis and Futuna",WS:"Samoa",XK:"Kosovo",YE:"Yemen",YT:"Mayotte",ZA:"South Africa",ZM:"Zambia",ZW:"Zimbabwe",ZZ:"International"};var Gn=O.shape({country_calling_codes:O.object.isRequired,countries:O.object.isRequired}),Yo=O.objectOf(O.string),Zo={exports:{}};/*!
	Copyright (c) 2018 Jed Watson.
	Licensed under the MIT License (MIT), see
	http://jedwatson.github.io/classnames
*/(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var i="",o=0;o<arguments.length;o++){var s=arguments[o];s&&(i=a(i,n(s)))}return i}function n(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return r.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var o="";for(var s in i)t.call(i,s)&&i[s]&&(o=a(o,s));return o}function a(i,o){return o?i?i+" "+o:i+o:i}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(Zo);var Xo=Zo.exports;const nr=io(Xo);function tc(e,t,r){switch(r){case"Backspace":t>0&&(e=e.slice(0,t-1)+e.slice(t),t--);break;case"Delete":e=e.slice(0,t)+e.slice(t+1);break}return{value:e,caret:t}}function rc(e,t,r){for(var n={},a="",i=0,o=0;o<e.length;){var s=r(e[o],a,n);s!==void 0&&(a+=s,t!==void 0&&(t===o?i=a.length-1:t>o&&(i=a.length))),o++}t===void 0&&(i=a.length);var u={value:a,caret:i};return u}function nc(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=ac(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ac(e,t){if(e){if(typeof e=="string")return ka(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ka(e,t)}}function ka(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function un(e,t){for(var r=0,n=nc(t.split("")),a;!(a=n()).done;){var i=a.value;i===e&&r++}return r}function ic(e,t){for(var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"x",n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:" ",a=e.length,i=un("(",e),o=un(")",e),s=i-o;s>0&&a<t.length;)e+=t[a].replace(r,n),t[a]===")"&&s--,a++;return e}function oc(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=uc(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function uc(e,t){if(e){if(typeof e=="string")return La(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return La(e,t)}}function La(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function sc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"x",r=arguments.length>2?arguments[2]:void 0;if(!e)return function(a){return{text:a}};var n=un(t,e);return function(a){if(!a)return{text:"",template:e};for(var i=0,o="",s=oc(e.split("")),u;!(u=s()).done;){var l=u.value;if(l!==t){o+=l;continue}if(o+=a[i],i++,i===a.length&&a.length<n)break}return r&&(o=ic(o,e)),{text:o,template:e}}}function lc(e,t,r){typeof r=="string"&&(r=sc(r));var n=r(e)||{},a=n.text,i=n.template;if(a===void 0&&(a=e),i)if(t===void 0)t=a.length;else{for(var o=0,s=!1,u=-1;o<a.length&&o<i.length;){if(a[o]!==i[o]){if(t===0){s=!0,t=o;break}u=o,t--}o++}s||(t=u+1)}return{text:a,caret:t}}function dc(e){return e.hasAttribute("readonly")}function cc(e){if(e.selectionStart!==e.selectionEnd)return{start:e.selectionStart,end:e.selectionEnd}}var Va={Backspace:8,Delete:46};function fc(e){switch(e.keyCode){case Va.Backspace:return"Backspace";case Va.Delete:return"Delete"}}function pc(e){return e.selectionStart}function Jo(e,t){t!==void 0&&($c()?setTimeout(function(){return e.setSelectionRange(t,t)},0):e.setSelectionRange(t,t))}function $c(){if(typeof navigator<"u")return hc.test(navigator.userAgent)}var hc=/Android/i;function gc(e,t,r,n,a){sn(t,r,n,void 0,a)}function vc(e,t,r,n,a){if(!dc(t)){var i=fc(e);switch(i){case"Delete":case"Backspace":e.preventDefault();var o=cc(t);return o?(mc(t,o),sn(t,r,n,void 0,a)):sn(t,r,n,i,a)}}}function mc(e,t){var r=e.value;r=r.slice(0,t.start)+r.slice(t.end),e.value=r,Jo(e,t.start)}function sn(e,t,r,n,a){var i=rc(e.value,pc(e),t),o=i.value,s=i.caret;if(n){var u=tc(o,s,n);o=u.value,s=u.caret}var l=lc(o,s,r),d=l.text;s=l.caret,e.value=d,Jo(e,s),a(o)}var yc=["value","parse","format","inputComponent","onChange","onKeyDown"];function ln(){return ln=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ln.apply(this,arguments)}function bc(e,t){if(e==null)return{};var r=Cc(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Cc(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i<n.length;i++)a=n[i],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}function xt(e,t){var r=e.value,n=e.parse,a=e.format,i=e.inputComponent,o=e.onChange,s=e.onKeyDown,u=bc(e,yc),l=S.useRef(),d=S.useCallback(function(v){l.current=v,t&&(typeof t=="function"?t(v):t.current=v)},[t]),c=S.useCallback(function(v){return gc(v,l.current,n,a,o)},[l,n,a,o]),$=S.useCallback(function(v){if(s&&s(v),!v.defaultPrevented)return vc(v,l.current,n,a,o)},[l,n,a,o,s]);return N.createElement(i,ln({},u,{ref:d,value:a(Sc(r)?"":r).text,onKeyDown:$,onChange:c}))}xt=N.forwardRef(xt);xt.propTypes={parse:O.func.isRequired,format:O.func.isRequired,inputComponent:O.elementType.isRequired,type:O.string.isRequired,value:O.string,onChange:O.func.isRequired,onKeyDown:O.func,onCut:O.func,onPaste:O.func};xt.defaultProps={inputComponent:"input",type:"text"};function Sc(e){return e==null}function dn(e){"@babel/helpers - typeof";return dn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dn(e)}function Oc(e,t,r){return Object.defineProperty(e,"prototype",{writable:!1}),e}function Pc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xc(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&It(e,t)}function Ic(e){var t=eu();return function(){var n=wt(e),a;if(t){var i=wt(this).constructor;a=Reflect.construct(n,arguments,i)}else a=n.apply(this,arguments);return wc(this,a)}}function wc(e,t){if(t&&(dn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Qo(e)}function Qo(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cn(e){var t=typeof Map=="function"?new Map:void 0;return cn=function(n){if(n===null||!Nc(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(n))return t.get(n);t.set(n,a)}function a(){return Kt(n,arguments,wt(this).constructor)}return a.prototype=Object.create(n.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),It(a,n)},cn(e)}function Kt(e,t,r){return eu()?Kt=Reflect.construct:Kt=function(a,i,o){var s=[null];s.push.apply(s,i);var u=Function.bind.apply(a,s),l=new u;return o&&It(l,o.prototype),l},Kt.apply(null,arguments)}function eu(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Nc(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function It(e,t){return It=Object.setPrototypeOf||function(n,a){return n.__proto__=a,n},It(e,t)}function wt(e){return wt=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},wt(e)}var Ue=function(e){xc(r,e);var t=Ic(r);function r(n){var a;return Pc(this,r),a=t.call(this,n),Object.setPrototypeOf(Qo(a),r.prototype),a.name=a.constructor.name,a}return Oc(r)}(cn(Error)),Wn=2,Ec=17,Ac=3,me="0-9０-９٠-٩۰-۹",Fc="-‐-―−ー－",Tc="／/",Rc="．.",_c="  ­​⁠　",Mc="()（）［］\\[\\]",Dc="~⁓∼～",Re="".concat(Fc).concat(Tc).concat(Rc).concat(_c).concat(Mc).concat(Dc),mr="+＋";function ja(e,t){e=e.split("-"),t=t.split("-");for(var r=e[0].split("."),n=t[0].split("."),a=0;a<3;a++){var i=Number(r[a]),o=Number(n[a]);if(i>o)return 1;if(o>i)return-1;if(!isNaN(i)&&isNaN(o))return 1;if(isNaN(i)&&!isNaN(o))return-1}return e[1]&&t[1]?e[1]>t[1]?1:e[1]<t[1]?-1:0:!e[1]&&t[1]?1:e[1]&&!t[1]?-1:0}var kc={}.constructor;function Pt(e){return e!=null&&e.constructor===kc}function fn(e){"@babel/helpers - typeof";return fn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fn(e)}function yr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Lc(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function br(e,t,r){return t&&Lc(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var Vc="1.2.0",jc="1.7.35",Ba=" ext. ",Bc=/^\d+$/,se=function(){function e(t){yr(this,e),Wc(t),this.metadata=t,ru.call(this,t)}return br(e,[{key:"getCountries",value:function(){return Object.keys(this.metadata.countries).filter(function(r){return r!=="001"})}},{key:"getCountryMetadata",value:function(r){return this.metadata.countries[r]}},{key:"nonGeographic",value:function(){if(!(this.v1||this.v2||this.v3))return this.metadata.nonGeographic||this.metadata.nonGeographical}},{key:"hasCountry",value:function(r){return this.getCountryMetadata(r)!==void 0}},{key:"hasCallingCode",value:function(r){if(this.getCountryCodesForCallingCode(r))return!0;if(this.nonGeographic()){if(this.nonGeographic()[r])return!0}else{var n=this.countryCallingCodes()[r];if(n&&n.length===1&&n[0]==="001")return!0}}},{key:"isNonGeographicCallingCode",value:function(r){return this.nonGeographic()?!!this.nonGeographic()[r]:!this.getCountryCodesForCallingCode(r)}},{key:"country",value:function(r){return this.selectNumberingPlan(r)}},{key:"selectNumberingPlan",value:function(r,n){if(r&&Bc.test(r)&&(n=r,r=null),r&&r!=="001"){if(!this.hasCountry(r))throw new Error("Unknown country: ".concat(r));this.numberingPlan=new Ua(this.getCountryMetadata(r),this)}else if(n){if(!this.hasCallingCode(n))throw new Error("Unknown calling code: ".concat(n));this.numberingPlan=new Ua(this.getNumberingPlanMetadata(n),this)}else this.numberingPlan=void 0;return this}},{key:"getCountryCodesForCallingCode",value:function(r){var n=this.countryCallingCodes()[r];if(n)return n.length===1&&n[0].length===3?void 0:n}},{key:"getCountryCodeForCallingCode",value:function(r){var n=this.getCountryCodesForCallingCode(r);if(n)return n[0]}},{key:"getNumberingPlanMetadata",value:function(r){var n=this.getCountryCodeForCallingCode(r);if(n)return this.getCountryMetadata(n);if(this.nonGeographic()){var a=this.nonGeographic()[r];if(a)return a}else{var i=this.countryCallingCodes()[r];if(i&&i.length===1&&i[0]==="001")return this.metadata.countries["001"]}}},{key:"countryCallingCode",value:function(){return this.numberingPlan.callingCode()}},{key:"IDDPrefix",value:function(){return this.numberingPlan.IDDPrefix()}},{key:"defaultIDDPrefix",value:function(){return this.numberingPlan.defaultIDDPrefix()}},{key:"nationalNumberPattern",value:function(){return this.numberingPlan.nationalNumberPattern()}},{key:"possibleLengths",value:function(){return this.numberingPlan.possibleLengths()}},{key:"formats",value:function(){return this.numberingPlan.formats()}},{key:"nationalPrefixForParsing",value:function(){return this.numberingPlan.nationalPrefixForParsing()}},{key:"nationalPrefixTransformRule",value:function(){return this.numberingPlan.nationalPrefixTransformRule()}},{key:"leadingDigits",value:function(){return this.numberingPlan.leadingDigits()}},{key:"hasTypes",value:function(){return this.numberingPlan.hasTypes()}},{key:"type",value:function(r){return this.numberingPlan.type(r)}},{key:"ext",value:function(){return this.numberingPlan.ext()}},{key:"countryCallingCodes",value:function(){return this.v1?this.metadata.country_phone_code_to_countries:this.metadata.country_calling_codes}},{key:"chooseCountryByCountryCallingCode",value:function(r){return this.selectNumberingPlan(r)}},{key:"hasSelectedNumberingPlan",value:function(){return this.numberingPlan!==void 0}}]),e}(),Ua=function(){function e(t,r){yr(this,e),this.globalMetadataObject=r,this.metadata=t,ru.call(this,r.metadata)}return br(e,[{key:"callingCode",value:function(){return this.metadata[0]}},{key:"getDefaultCountryMetadataForRegion",value:function(){return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode())}},{key:"IDDPrefix",value:function(){if(!(this.v1||this.v2))return this.metadata[1]}},{key:"defaultIDDPrefix",value:function(){if(!(this.v1||this.v2))return this.metadata[12]}},{key:"nationalNumberPattern",value:function(){return this.v1||this.v2?this.metadata[1]:this.metadata[2]}},{key:"possibleLengths",value:function(){if(!this.v1)return this.metadata[this.v2?2:3]}},{key:"_getFormats",value:function(r){return r[this.v1?2:this.v2?3:4]}},{key:"formats",value:function(){var r=this,n=this._getFormats(this.metadata)||this._getFormats(this.getDefaultCountryMetadataForRegion())||[];return n.map(function(a){return new Uc(a,r)})}},{key:"nationalPrefix",value:function(){return this.metadata[this.v1?3:this.v2?4:5]}},{key:"_getNationalPrefixFormattingRule",value:function(r){return r[this.v1?4:this.v2?5:6]}},{key:"nationalPrefixFormattingRule",value:function(){return this._getNationalPrefixFormattingRule(this.metadata)||this._getNationalPrefixFormattingRule(this.getDefaultCountryMetadataForRegion())}},{key:"_nationalPrefixForParsing",value:function(){return this.metadata[this.v1?5:this.v2?6:7]}},{key:"nationalPrefixForParsing",value:function(){return this._nationalPrefixForParsing()||this.nationalPrefix()}},{key:"nationalPrefixTransformRule",value:function(){return this.metadata[this.v1?6:this.v2?7:8]}},{key:"_getNationalPrefixIsOptionalWhenFormatting",value:function(){return!!this.metadata[this.v1?7:this.v2?8:9]}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata)||this._getNationalPrefixIsOptionalWhenFormatting(this.getDefaultCountryMetadataForRegion())}},{key:"leadingDigits",value:function(){return this.metadata[this.v1?8:this.v2?9:10]}},{key:"types",value:function(){return this.metadata[this.v1?9:this.v2?10:11]}},{key:"hasTypes",value:function(){return this.types()&&this.types().length===0?!1:!!this.types()}},{key:"type",value:function(r){if(this.hasTypes()&&Ha(this.types(),r))return new Gc(Ha(this.types(),r),this)}},{key:"ext",value:function(){return this.v1||this.v2?Ba:this.metadata[13]||Ba}}]),e}(),Uc=function(){function e(t,r){yr(this,e),this._format=t,this.metadata=r}return br(e,[{key:"pattern",value:function(){return this._format[0]}},{key:"format",value:function(){return this._format[1]}},{key:"leadingDigitsPatterns",value:function(){return this._format[2]||[]}},{key:"nationalPrefixFormattingRule",value:function(){return this._format[3]||this.metadata.nationalPrefixFormattingRule()}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return!!this._format[4]||this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"nationalPrefixIsMandatoryWhenFormattingInNationalFormat",value:function(){return this.usesNationalPrefix()&&!this.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"usesNationalPrefix",value:function(){return!!(this.nationalPrefixFormattingRule()&&!Hc.test(this.nationalPrefixFormattingRule()))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}]),e}(),Hc=/^\(?\$1\)?$/,Gc=function(){function e(t,r){yr(this,e),this.type=t,this.metadata=r}return br(e,[{key:"pattern",value:function(){return this.metadata.v1?this.type:this.type[0]}},{key:"possibleLengths",value:function(){if(!this.metadata.v1)return this.type[1]||this.metadata.possibleLengths()}}]),e}();function Ha(e,t){switch(t){case"FIXED_LINE":return e[0];case"MOBILE":return e[1];case"TOLL_FREE":return e[2];case"PREMIUM_RATE":return e[3];case"PERSONAL_NUMBER":return e[4];case"VOICEMAIL":return e[5];case"UAN":return e[6];case"PAGER":return e[7];case"VOIP":return e[8];case"SHARED_COST":return e[9]}}function Wc(e){if(!e)throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!Pt(e)||!Pt(e.countries))throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(Pt(e)?"an object of shape: { "+Object.keys(e).join(", ")+" }":"a "+Kc(e)+": "+e,"."))}var Kc=function(t){return fn(t)};function Ye(e,t){if(t=new se(t),t.hasCountry(e))return t.country(e).countryCallingCode();throw new Error("Unknown country: ".concat(e))}function tu(e,t){return t.countries.hasOwnProperty(e)}function ru(e){var t=e.version;typeof t=="number"?(this.v1=t===1,this.v2=t===2,this.v3=t===3,this.v4=t===4):t?ja(t,Vc)===-1?this.v2=!0:ja(t,jc)===-1?this.v3=!0:this.v4=!0:this.v1=!0}var qc=";ext=",rt=function(t){return"([".concat(me,"]{1,").concat(t,"})")};function nu(e){var t="20",r="15",n="9",a="6",i="[  \\t,]*",o="[:\\.．]?[  \\t,-]*",s="#?",u="(?:e?xt(?:ensi(?:ó?|ó))?n?|ｅ?ｘｔｎ?|доб|anexo)",l="(?:[xｘ#＃~～]|int|ｉｎｔ)",d="[- ]+",c="[  \\t]*",$="(?:,{2}|;)",v=qc+rt(t),g=i+u+o+rt(t)+s,m=i+l+o+rt(n)+s,p=d+rt(a)+"#",h=c+$+o+rt(r)+s,b=c+"(?:,)+"+o+rt(n)+s;return v+"|"+g+"|"+m+"|"+p+"|"+h+"|"+b}var zc="["+me+"]{"+Wn+"}",Yc="["+mr+"]{0,1}(?:["+Re+"]*["+me+"]){3,}["+Re+me+"]*",Zc=new RegExp("^["+mr+"]{0,1}(?:["+Re+"]*["+me+"]){1,2}$","i"),Xc=Yc+"(?:"+nu()+")?",Jc=new RegExp("^"+zc+"$|^"+Xc+"$","i");function Qc(e){return e.length>=Wn&&Jc.test(e)}function ef(e){return Zc.test(e)}var Ga=new RegExp("(?:"+nu()+")$","i");function tf(e){var t=e.search(Ga);if(t<0)return{};for(var r=e.slice(0,t),n=e.match(Ga),a=1;a<n.length;){if(n[a])return{number:r,ext:n[a]};a++}}function rf(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=nf(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nf(e,t){if(e){if(typeof e=="string")return Wa(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Wa(e,t)}}function Wa(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var af={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","０":"0","１":"1","２":"2","３":"3","４":"4","５":"5","６":"6","７":"7","８":"8","９":"9","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9"};function au(e){return af[e]}function ar(e){for(var t="",r=rf(e.split("")),n;!(n=r()).done;){var a=n.value,i=au(a);i&&(t+=i)}return t}function of(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=uf(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function uf(e,t){if(e){if(typeof e=="string")return Ka(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ka(e,t)}}function Ka(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function pn(e){for(var t="",r=of(e.split("")),n;!(n=r()).done;){var a=n.value;t+=iu(a,t)||""}return t}function iu(e,t,r){if(e==="+"){if(t){typeof r=="function"&&r("end");return}return"+"}return au(e)}function Cr(e,t){return sf(e,void 0,t)}function sf(e,t,r){var n=r.type(t),a=n&&n.possibleLengths()||r.possibleLengths();if(!a)return"IS_POSSIBLE";var i=e.length,o=a[0];return o===i?"IS_POSSIBLE":o>i?"TOO_SHORT":a[a.length-1]<i?"TOO_LONG":a.indexOf(i,1)>=0?"IS_POSSIBLE":"INVALID_LENGTH"}function lf(e,t,r){if(t===void 0&&(t={}),r=new se(r),t.v2){if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");r.selectNumberingPlan(e.countryCallingCode)}else{if(!e.phone)return!1;if(e.country){if(!r.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));r.country(e.country)}else{if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");r.selectNumberingPlan(e.countryCallingCode)}}if(r.possibleLengths())return ou(e.phone||e.nationalNumber,r);if(e.countryCallingCode&&r.isNonGeographicCallingCode(e.countryCallingCode))return!0;throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}function ou(e,t){switch(Cr(e,t)){case"IS_POSSIBLE":return!0;default:return!1}}function We(e,t){return e=e||"",new RegExp("^(?:"+t+")$").test(e)}function df(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=cf(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cf(e,t){if(e){if(typeof e=="string")return qa(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return qa(e,t)}}function qa(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var ff=["MOBILE","PREMIUM_RATE","TOLL_FREE","SHARED_COST","VOIP","PERSONAL_NUMBER","PAGER","UAN","VOICEMAIL"];function Kn(e,t,r){if(t=t||{},!(!e.country&&!e.countryCallingCode)){r=new se(r),r.selectNumberingPlan(e.country,e.countryCallingCode);var n=t.v2?e.nationalNumber:e.phone;if(We(n,r.nationalNumberPattern())){if(Wr(n,"FIXED_LINE",r))return r.type("MOBILE")&&r.type("MOBILE").pattern()===""||!r.type("MOBILE")||Wr(n,"MOBILE",r)?"FIXED_LINE_OR_MOBILE":"FIXED_LINE";for(var a=df(ff),i;!(i=a()).done;){var o=i.value;if(Wr(n,o,r))return o}}}}function Wr(e,t,r){return t=r.type(t),!t||!t.pattern()||t.possibleLengths()&&t.possibleLengths().indexOf(e.length)<0?!1:We(e,t.pattern())}function pf(e,t,r){if(t=t||{},r=new se(r),r.selectNumberingPlan(e.country,e.countryCallingCode),r.hasTypes())return Kn(e,t,r.metadata)!==void 0;var n=t.v2?e.nationalNumber:e.phone;return We(n,r.nationalNumberPattern())}function $f(e,t,r){var n=new se(r),a=n.getCountryCodesForCallingCode(e);return a?a.filter(function(i){return hf(t,i,r)}):[]}function hf(e,t,r){var n=new se(r);return n.selectNumberingPlan(t),n.numberingPlan.possibleLengths().indexOf(e.length)>=0}function uu(e){return e.replace(new RegExp("[".concat(Re,"]+"),"g")," ").trim()}var su=/(\$\d)/;function lu(e,t,r){var n=r.useInternationalFormat,a=r.withNationalPrefix;r.carrierCode,r.metadata;var i=e.replace(new RegExp(t.pattern()),n?t.internationalFormat():a&&t.nationalPrefixFormattingRule()?t.format().replace(su,t.nationalPrefixFormattingRule()):t.format());return n?uu(i):i}var gf=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function vf(e,t,r){var n=new se(r);if(n.selectNumberingPlan(e,t),n.defaultIDDPrefix())return n.defaultIDDPrefix();if(gf.test(n.IDDPrefix()))return n.IDDPrefix()}function mf(e){var t=e.number,r=e.ext;if(!t)return"";if(t[0]!=="+")throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');return"tel:".concat(t).concat(r?";ext="+r:"")}function yf(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=bf(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bf(e,t){if(e){if(typeof e=="string")return za(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return za(e,t)}}function za(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Ya(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Za(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ya(Object(r),!0).forEach(function(n){Cf(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ya(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Cf(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Xa={formatExtension:function(t,r,n){return"".concat(t).concat(n.ext()).concat(r)}};function Sf(e,t,r,n){if(r?r=Za(Za({},Xa),r):r=Xa,n=new se(n),e.country&&e.country!=="001"){if(!n.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));n.country(e.country)}else if(e.countryCallingCode)n.selectNumberingPlan(e.countryCallingCode);else return e.phone||"";var a=n.countryCallingCode(),i=r.v2?e.nationalNumber:e.phone,o;switch(t){case"NATIONAL":return i?(o=ir(i,e.carrierCode,"NATIONAL",n,r),Kr(o,e.ext,n,r.formatExtension)):"";case"INTERNATIONAL":return i?(o=ir(i,null,"INTERNATIONAL",n,r),o="+".concat(a," ").concat(o),Kr(o,e.ext,n,r.formatExtension)):"+".concat(a);case"E.164":return"+".concat(a).concat(i);case"RFC3966":return mf({number:"+".concat(a).concat(i),ext:e.ext});case"IDD":if(!r.fromCountry)return;var s=Pf(i,e.carrierCode,a,r.fromCountry,n);return Kr(s,e.ext,n,r.formatExtension);default:throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(t,'"'))}}function ir(e,t,r,n,a){var i=Of(n.formats(),e);return i?lu(e,i,{useInternationalFormat:r==="INTERNATIONAL",withNationalPrefix:!(i.nationalPrefixIsOptionalWhenFormattingInNationalFormat()&&a&&a.nationalPrefix===!1),carrierCode:t,metadata:n}):e}function Of(e,t){for(var r=yf(e),n;!(n=r()).done;){var a=n.value;if(a.leadingDigitsPatterns().length>0){var i=a.leadingDigitsPatterns()[a.leadingDigitsPatterns().length-1];if(t.search(i)!==0)continue}if(We(t,a.pattern()))return a}}function Kr(e,t,r,n){return t?n(e,t,r):e}function Pf(e,t,r,n,a){var i=Ye(n,a.metadata);if(i===r){var o=ir(e,t,"NATIONAL",a);return r==="1"?r+" "+o:o}var s=vf(n,void 0,a.metadata);if(s)return"".concat(s," ").concat(r," ").concat(ir(e,null,"INTERNATIONAL",a))}function Ja(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Qa(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ja(Object(r),!0).forEach(function(n){xf(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ja(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function xf(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function If(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wf(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Nf(e,t,r){return t&&wf(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var du=function(){function e(t,r,n){if(If(this,e),!t)throw new TypeError("`country` or `countryCallingCode` not passed");if(!r)throw new TypeError("`nationalNumber` not passed");if(!n)throw new TypeError("`metadata` not passed");var a=Af(t,n),i=a.country,o=a.countryCallingCode;this.country=i,this.countryCallingCode=o,this.nationalNumber=r,this.number="+"+this.countryCallingCode+this.nationalNumber,this.getMetadata=function(){return n}}return Nf(e,[{key:"setExt",value:function(r){this.ext=r}},{key:"getPossibleCountries",value:function(){return this.country?[this.country]:$f(this.countryCallingCode,this.nationalNumber,this.getMetadata())}},{key:"isPossible",value:function(){return lf(this,{v2:!0},this.getMetadata())}},{key:"isValid",value:function(){return pf(this,{v2:!0},this.getMetadata())}},{key:"isNonGeographic",value:function(){var r=new se(this.getMetadata());return r.isNonGeographicCallingCode(this.countryCallingCode)}},{key:"isEqual",value:function(r){return this.number===r.number&&this.ext===r.ext}},{key:"getType",value:function(){return Kn(this,{v2:!0},this.getMetadata())}},{key:"format",value:function(r,n){return Sf(this,r,n?Qa(Qa({},n),{},{v2:!0}):{v2:!0},this.getMetadata())}},{key:"formatNational",value:function(r){return this.format("NATIONAL",r)}},{key:"formatInternational",value:function(r){return this.format("INTERNATIONAL",r)}},{key:"getURI",value:function(r){return this.format("RFC3966",r)}}]),e}(),Ef=function(t){return/^[A-Z]{2}$/.test(t)};function Af(e,t){var r,n,a=new se(t);return Ef(e)?(r=e,a.selectNumberingPlan(r),n=a.countryCallingCode()):n=e,{country:r,countryCallingCode:n}}var Ff=new RegExp("(["+me+"])");function cu(e,t,r,n){if(t){var a=new se(n);a.selectNumberingPlan(t,r);var i=new RegExp(a.IDDPrefix());if(e.search(i)===0){e=e.slice(e.match(i)[0].length);var o=e.match(Ff);if(!(o&&o[1]!=null&&o[1].length>0&&o[1]==="0"))return e}}}function $n(e,t){if(e&&t.numberingPlan.nationalPrefixForParsing()){var r=new RegExp("^(?:"+t.numberingPlan.nationalPrefixForParsing()+")"),n=r.exec(e);if(n){var a,i,o=n.length-1,s=o>0&&n[o];if(t.nationalPrefixTransformRule()&&s)a=e.replace(r,t.nationalPrefixTransformRule()),o>1&&(i=n[1]);else{var u=n[0];a=e.slice(u.length),s&&(i=n[1])}var l;if(s){var d=e.indexOf(n[1]),c=e.slice(0,d);c===t.numberingPlan.nationalPrefix()&&(l=t.numberingPlan.nationalPrefix())}else l=n[0];return{nationalNumber:a,nationalPrefix:l,carrierCode:i}}}return{nationalNumber:e}}function hn(e,t){var r=$n(e,t),n=r.carrierCode,a=r.nationalNumber;if(a!==e){if(!Tf(e,a,t))return{nationalNumber:e};if(t.possibleLengths()&&!Rf(a,t))return{nationalNumber:e}}return{nationalNumber:a,carrierCode:n}}function Tf(e,t,r){return!(We(e,r.nationalNumberPattern())&&!We(t,r.nationalNumberPattern()))}function Rf(e,t){switch(Cr(e,t)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}function fu(e,t,r,n){var a=t?Ye(t,n):r;if(e.indexOf(a)===0){n=new se(n),n.selectNumberingPlan(t,r);var i=e.slice(a.length),o=hn(i,n),s=o.nationalNumber,u=hn(e,n),l=u.nationalNumber;if(!We(l,n.nationalNumberPattern())&&We(s,n.nationalNumberPattern())||Cr(l,n)==="TOO_LONG")return{countryCallingCode:a,number:i}}return{number:e}}function pu(e,t,r,n){if(!e)return{};var a;if(e[0]!=="+"){var i=cu(e,t,r,n);if(i&&i!==e)a=!0,e="+"+i;else{if(t||r){var o=fu(e,t,r,n),s=o.countryCallingCode,u=o.number;if(s)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:s,number:u}}return{number:e}}}if(e[1]==="0")return{};n=new se(n);for(var l=2;l-1<=Ac&&l<=e.length;){var d=e.slice(1,l);if(n.hasCallingCode(d))return n.selectNumberingPlan(d),{countryCallingCodeSource:a?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:d,number:e.slice(l)};l++}return{}}function _f(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=Mf(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Mf(e,t){if(e){if(typeof e=="string")return ei(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ei(e,t)}}function ei(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function $u(e,t){var r=t.countries;t.defaultCountry;var n=t.metadata;n=new se(n);for(var a=_f(r),i;!(i=a()).done;){var o=i.value;if(n.country(o),n.leadingDigits()){if(e&&e.search(n.leadingDigits())===0)return o}else if(Kn({phone:e,country:o},void 0,n.metadata))return o}}function hu(e,t){var r=t.nationalNumber,n=t.defaultCountry,a=t.metadata,i=a.getCountryCodesForCallingCode(e);if(i)return i.length===1?i[0]:$u(r,{countries:i,defaultCountry:n,metadata:a.metadata})}var gu="+",Df="[\\-\\.\\(\\)]?",ti="(["+me+"]|"+Df+")",kf="^\\"+gu+ti+"*["+me+"]"+ti+"*$",Lf=new RegExp(kf,"g"),gn=me,Vf="["+gn+"]+((\\-)*["+gn+"])*",jf="a-zA-Z",Bf="["+jf+"]+((\\-)*["+gn+"])*",Uf="^("+Vf+"\\.)*"+Bf+"\\.?$",Hf=new RegExp(Uf,"g"),ri="tel:",vn=";phone-context=",Gf=";isub=";function Wf(e){var t=e.indexOf(vn);if(t<0)return null;var r=t+vn.length;if(r>=e.length)return"";var n=e.indexOf(";",r);return n>=0?e.substring(r,n):e.substring(r)}function Kf(e){return e===null?!0:e.length===0?!1:Lf.test(e)||Hf.test(e)}function qf(e,t){var r=t.extractFormattedPhoneNumber,n=Wf(e);if(!Kf(n))throw new Ue("NOT_A_NUMBER");var a;if(n===null)a=r(e)||"";else{a="",n.charAt(0)===gu&&(a+=n);var i=e.indexOf(ri),o;i>=0?o=i+ri.length:o=0;var s=e.indexOf(vn);a+=e.substring(o,s)}var u=a.indexOf(Gf);if(u>0&&(a=a.substring(0,u)),a!=="")return a}var zf=250,Yf=new RegExp("["+mr+me+"]"),Zf=new RegExp("[^"+me+"#]+$");function Xf(e,t,r){if(t=t||{},r=new se(r),t.defaultCountry&&!r.hasCountry(t.defaultCountry))throw t.v2?new Ue("INVALID_COUNTRY"):new Error("Unknown country: ".concat(t.defaultCountry));var n=Qf(e,t.v2,t.extract),a=n.number,i=n.ext,o=n.error;if(!a){if(t.v2)throw o==="TOO_SHORT"?new Ue("TOO_SHORT"):new Ue("NOT_A_NUMBER");return{}}var s=t0(a,t.defaultCountry,t.defaultCallingCode,r),u=s.country,l=s.nationalNumber,d=s.countryCallingCode,c=s.countryCallingCodeSource,$=s.carrierCode;if(!r.hasSelectedNumberingPlan()){if(t.v2)throw new Ue("INVALID_COUNTRY");return{}}if(!l||l.length<Wn){if(t.v2)throw new Ue("TOO_SHORT");return{}}if(l.length>Ec){if(t.v2)throw new Ue("TOO_LONG");return{}}if(t.v2){var v=new du(d,l,r.metadata);return u&&(v.country=u),$&&(v.carrierCode=$),i&&(v.ext=i),v.__countryCallingCodeSource=c,v}var g=(t.extended?r.hasSelectedNumberingPlan():u)?We(l,r.nationalNumberPattern()):!1;return t.extended?{country:u,countryCallingCode:d,carrierCode:$,valid:g,possible:g?!0:!!(t.extended===!0&&r.possibleLengths()&&ou(l,r)),phone:l,ext:i}:g?e0(u,l,i):{}}function Jf(e,t,r){if(e){if(e.length>zf){if(r)throw new Ue("TOO_LONG");return}if(t===!1)return e;var n=e.search(Yf);if(!(n<0))return e.slice(n).replace(Zf,"")}}function Qf(e,t,r){var n=qf(e,{extractFormattedPhoneNumber:function(o){return Jf(o,r,t)}});if(!n)return{};if(!Qc(n))return ef(n)?{error:"TOO_SHORT"}:{};var a=tf(n);return a.ext?a:{number:n}}function e0(e,t,r){var n={country:e,phone:t};return r&&(n.ext=r),n}function t0(e,t,r,n){var a=pu(pn(e),t,r,n.metadata),i=a.countryCallingCodeSource,o=a.countryCallingCode,s=a.number,u;if(o)n.selectNumberingPlan(o);else if(s&&(t||r))n.selectNumberingPlan(t,r),t&&(u=t),o=r||Ye(t,n.metadata);else return{};if(!s)return{countryCallingCodeSource:i,countryCallingCode:o};var l=hn(pn(s),n),d=l.nationalNumber,c=l.carrierCode,$=hu(o,{nationalNumber:d,defaultCountry:t,metadata:n});return $&&(u=$,$==="001"||n.country(u)),{country:u,countryCallingCode:o,countryCallingCodeSource:i,nationalNumber:d,carrierCode:c}}function ni(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function ai(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ni(Object(r),!0).forEach(function(n){r0(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ni(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function r0(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function n0(e,t,r){return Xf(e,ai(ai({},t),{},{v2:!0}),r)}function ii(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function a0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ii(Object(r),!0).forEach(function(n){i0(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ii(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function i0(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o0(e,t){return d0(e)||l0(e,t)||s0(e,t)||u0()}function u0(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function s0(e,t){if(e){if(typeof e=="string")return oi(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return oi(e,t)}}function oi(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function l0(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],a=!0,i=!1,o,s;try{for(r=r.call(e);!(a=(o=r.next()).done)&&(n.push(o.value),!(t&&n.length===t));a=!0);}catch(u){i=!0,s=u}finally{try{!a&&r.return!=null&&r.return()}finally{if(i)throw s}}return n}}function d0(e){if(Array.isArray(e))return e}function c0(e){var t=Array.prototype.slice.call(e),r=o0(t,4),n=r[0],a=r[1],i=r[2],o=r[3],s,u,l;if(typeof n=="string")s=n;else throw new TypeError("A text for parsing must be a string.");if(!a||typeof a=="string")o?(u=i,l=o):(u=void 0,l=i),a&&(u=a0({defaultCountry:a},u));else if(Pt(a))i?(u=a,l=i):l=a;else throw new Error("Invalid second argument: ".concat(a));return{text:s,options:u,metadata:l}}function ui(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function si(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ui(Object(r),!0).forEach(function(n){f0(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ui(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function f0(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p0(e,t,r){t&&t.defaultCountry&&!tu(t.defaultCountry,r)&&(t=si(si({},t),{},{defaultCountry:void 0}));try{return n0(e,t,r)}catch(n){if(!(n instanceof Ue))throw n}}function $0(){var e=c0(arguments),t=e.text,r=e.options,n=e.metadata;return p0(t,r,n)}function h0(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g0(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function v0(e,t,r){return t&&g0(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var m0=function(){function e(t){var r=t.onCountryChange,n=t.onCallingCodeChange;h0(this,e),this.onCountryChange=r,this.onCallingCodeChange=n}return v0(e,[{key:"reset",value:function(r){var n=r.country,a=r.callingCode;this.international=!1,this.missingPlus=!1,this.IDDPrefix=void 0,this.callingCode=void 0,this.digits="",this.resetNationalSignificantNumber(),this.initCountryAndCallingCode(n,a)}},{key:"resetNationalSignificantNumber",value:function(){this.nationalSignificantNumber=this.getNationalDigits(),this.nationalSignificantNumberMatchesInput=!0,this.nationalPrefix=void 0,this.carrierCode=void 0,this.complexPrefixBeforeNationalSignificantNumber=void 0}},{key:"update",value:function(r){for(var n=0,a=Object.keys(r);n<a.length;n++){var i=a[n];this[i]=r[i]}}},{key:"initCountryAndCallingCode",value:function(r,n){this.setCountry(r),this.setCallingCode(n)}},{key:"setCountry",value:function(r){this.country=r,this.onCountryChange(r)}},{key:"setCallingCode",value:function(r){this.callingCode=r,this.onCallingCodeChange(r,this.country)}},{key:"startInternationalNumber",value:function(r,n){this.international=!0,this.initCountryAndCallingCode(r,n)}},{key:"appendDigits",value:function(r){this.digits+=r}},{key:"appendNationalSignificantNumberDigits",value:function(r){this.nationalSignificantNumber+=r}},{key:"getNationalDigits",value:function(){return this.international?this.digits.slice((this.IDDPrefix?this.IDDPrefix.length:0)+(this.callingCode?this.callingCode.length:0)):this.digits}},{key:"getDigitsWithoutInternationalPrefix",value:function(){return this.international&&this.IDDPrefix?this.digits.slice(this.IDDPrefix.length):this.digits}}]),e}();function y0(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=b0(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function b0(e,t){if(e){if(typeof e=="string")return li(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return li(e,t)}}function li(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Fe="x",qr=new RegExp(Fe);function qt(e,t){if(t<1)return"";for(var r="";t>1;)t&1&&(r+=e),t>>=1,e+=e;return r+e}function di(e,t){return e[t]===")"&&t++,C0(e.slice(0,t))}function C0(e){for(var t=[],r=0;r<e.length;)e[r]==="("?t.push(r):e[r]===")"&&t.pop(),r++;var n=0,a="";t.push(e.length);for(var i=0,o=t;i<o.length;i++){var s=o[i];a+=e.slice(n,s),n=s+1}return a}function S0(e,t,r){for(var n=y0(r.split("")),a;!(a=n()).done;){var i=a.value;if(e.slice(t+1).search(qr)<0)return;t=e.search(qr),e=e.replace(qr,i)}return[e,t]}function O0(e,t,r){var n=r.metadata,a=r.shouldTryNationalPrefixFormattingRule,i=r.getSeparatorAfterNationalPrefix,o=new RegExp("^(?:".concat(t.pattern(),")$"));if(o.test(e.nationalSignificantNumber))return x0(e,t,{metadata:n,shouldTryNationalPrefixFormattingRule:a,getSeparatorAfterNationalPrefix:i})}function P0(e,t){return Cr(e,t)==="IS_POSSIBLE"}function x0(e,t,r){var n=r.metadata,a=r.shouldTryNationalPrefixFormattingRule,i=r.getSeparatorAfterNationalPrefix;if(e.nationalSignificantNumber,e.international,e.nationalPrefix,e.carrierCode,a(t)){var o=ci(e,t,{useNationalPrefixFormattingRule:!0,getSeparatorAfterNationalPrefix:i,metadata:n});if(o)return o}return ci(e,t,{useNationalPrefixFormattingRule:!1,getSeparatorAfterNationalPrefix:i,metadata:n})}function ci(e,t,r){var n=r.metadata,a=r.useNationalPrefixFormattingRule,i=r.getSeparatorAfterNationalPrefix,o=lu(e.nationalSignificantNumber,t,{carrierCode:e.carrierCode,useInternationalFormat:e.international,withNationalPrefix:a,metadata:n});if(a||(e.nationalPrefix?o=e.nationalPrefix+i(t)+o:e.complexPrefixBeforeNationalSignificantNumber&&(o=e.complexPrefixBeforeNationalSignificantNumber+" "+o)),I0(o,e))return o}function I0(e,t){return ar(e)===t.getNationalDigits()}function w0(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function N0(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function E0(e,t,r){return t&&N0(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var A0=function(){function e(){w0(this,e)}return E0(e,[{key:"parse",value:function(r){if(this.context=[{or:!0,instructions:[]}],this.parsePattern(r),this.context.length!==1)throw new Error("Non-finalized contexts left when pattern parse ended");var n=this.context[0],a=n.branches,i=n.instructions;if(a)return{op:"|",args:a.concat([zr(i)])};if(i.length===0)throw new Error("Pattern is required");return i.length===1?i[0]:i}},{key:"startContext",value:function(r){this.context.push(r)}},{key:"endContext",value:function(){this.context.pop()}},{key:"getContext",value:function(){return this.context[this.context.length-1]}},{key:"parsePattern",value:function(r){if(!r)throw new Error("Pattern is required");var n=r.match(R0);if(!n){if(T0.test(r))throw new Error("Illegal characters found in a pattern: ".concat(r));this.getContext().instructions=this.getContext().instructions.concat(r.split(""));return}var a=n[1],i=r.slice(0,n.index),o=r.slice(n.index+a.length);switch(a){case"(?:":i&&this.parsePattern(i),this.startContext({or:!0,instructions:[],branches:[]});break;case")":if(!this.getContext().or)throw new Error('")" operator must be preceded by "(?:" operator');if(i&&this.parsePattern(i),this.getContext().instructions.length===0)throw new Error('No instructions found after "|" operator in an "or" group');var s=this.getContext(),u=s.branches;u.push(zr(this.getContext().instructions)),this.endContext(),this.getContext().instructions.push({op:"|",args:u});break;case"|":if(!this.getContext().or)throw new Error('"|" operator can only be used inside "or" groups');if(i&&this.parsePattern(i),!this.getContext().branches)if(this.context.length===1)this.getContext().branches=[];else throw new Error('"branches" not found in an "or" group context');this.getContext().branches.push(zr(this.getContext().instructions)),this.getContext().instructions=[];break;case"[":i&&this.parsePattern(i),this.startContext({oneOfSet:!0});break;case"]":if(!this.getContext().oneOfSet)throw new Error('"]" operator must be preceded by "[" operator');this.endContext(),this.getContext().instructions.push({op:"[]",args:F0(i)});break;default:throw new Error("Unknown operator: ".concat(a))}o&&this.parsePattern(o)}}]),e}();function F0(e){for(var t=[],r=0;r<e.length;){if(e[r]==="-"){if(r===0||r===e.length-1)throw new Error("Couldn't parse a one-of set pattern: ".concat(e));for(var n=e[r-1].charCodeAt(0)+1,a=e[r+1].charCodeAt(0)-1,i=n;i<=a;)t.push(String.fromCharCode(i)),i++}else t.push(e[r]);r++}return t}var T0=/[\(\)\[\]\?\:\|]/,R0=new RegExp("(\\||\\(\\?\\:|\\)|\\[|\\])");function zr(e){return e.length===1?e[0]:e}function fi(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=_0(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _0(e,t){if(e){if(typeof e=="string")return pi(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return pi(e,t)}}function pi(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function M0(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function D0(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function k0(e,t,r){return t&&D0(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var L0=function(){function e(t){M0(this,e),this.matchTree=new A0().parse(t)}return k0(e,[{key:"match",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=n.allowOverflow;if(!r)throw new Error("String is required");var i=mn(r.split(""),this.matchTree,!0);if(i&&i.match&&delete i.matchedChars,!(i&&i.overflow&&!a))return i}}]),e}();function mn(e,t,r){if(typeof t=="string"){var n=e.join("");return t.indexOf(n)===0?e.length===t.length?{match:!0,matchedChars:e}:{partialMatch:!0}:n.indexOf(t)===0?r&&e.length>t.length?{overflow:!0}:{match:!0,matchedChars:e.slice(0,t.length)}:void 0}if(Array.isArray(t)){for(var a=e.slice(),i=0;i<t.length;){var o=t[i],s=mn(a,o,r&&i===t.length-1);if(s){if(s.overflow)return s;if(s.match){if(a=a.slice(s.matchedChars.length),a.length===0)return i===t.length-1?{match:!0,matchedChars:e}:{partialMatch:!0}}else{if(s.partialMatch)return{partialMatch:!0};throw new Error(`Unsupported match result:
`.concat(JSON.stringify(s,null,2)))}}else return;i++}return r?{overflow:!0}:{match:!0,matchedChars:e.slice(0,e.length-a.length)}}switch(t.op){case"|":for(var u,l=fi(t.args),d;!(d=l()).done;){var c=d.value,$=mn(e,c,r);if($){if($.overflow)return $;if($.match)return{match:!0,matchedChars:$.matchedChars};if($.partialMatch)u=!0;else throw new Error(`Unsupported match result:
`.concat(JSON.stringify($,null,2)))}}return u?{partialMatch:!0}:void 0;case"[]":for(var v=fi(t.args),g;!(g=v()).done;){var m=g.value;if(e[0]===m)return e.length===1?{match:!0,matchedChars:e}:r?{overflow:!0}:{match:!0,matchedChars:[m]}}return;default:throw new Error("Unsupported instruction tree: ".concat(t))}}function $i(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=V0(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function V0(e,t){if(e){if(typeof e=="string")return hi(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return hi(e,t)}}function hi(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function j0(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function B0(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function U0(e,t,r){return t&&B0(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var yn="9",H0=15,G0=qt(yn,H0),W0=/[- ]/,K0=function(){return/\[([^\[\]])*\]/g},q0=function(){return/\d(?=[^,}][^,}])/g},z0=new RegExp("["+Re+"]*\\$1["+Re+"]*(\\$\\d["+Re+"]*)*$"),gi=3,Y0=function(){function e(t){t.state;var r=t.metadata;j0(this,e),this.metadata=r,this.resetFormat()}return U0(e,[{key:"resetFormat",value:function(){this.chosenFormat=void 0,this.template=void 0,this.nationalNumberTemplate=void 0,this.populatedNationalNumberTemplate=void 0,this.populatedNationalNumberTemplatePosition=-1}},{key:"reset",value:function(r,n){this.resetFormat(),r?(this.isNANP=r.callingCode()==="1",this.matchingFormats=r.formats(),n.nationalSignificantNumber&&this.narrowDownMatchingFormats(n)):(this.isNANP=void 0,this.matchingFormats=[])}},{key:"format",value:function(r,n){var a=this;if(P0(n.nationalSignificantNumber,this.metadata))for(var i=$i(this.matchingFormats),o;!(o=i()).done;){var s=o.value,u=O0(n,s,{metadata:this.metadata,shouldTryNationalPrefixFormattingRule:function(d){return a.shouldTryNationalPrefixFormattingRule(d,{international:n.international,nationalPrefix:n.nationalPrefix})},getSeparatorAfterNationalPrefix:function(d){return a.getSeparatorAfterNationalPrefix(d)}});if(u)return this.resetFormat(),this.chosenFormat=s,this.setNationalNumberTemplate(u.replace(/\d/g,Fe),n),this.populatedNationalNumberTemplate=u,this.populatedNationalNumberTemplatePosition=this.template.lastIndexOf(Fe),u}return this.formatNationalNumberWithNextDigits(r,n)}},{key:"formatNationalNumberWithNextDigits",value:function(r,n){var a=this.chosenFormat,i=this.chooseFormat(n);if(i)return i===a?this.formatNextNationalNumberDigits(r):this.formatNextNationalNumberDigits(n.getNationalDigits())}},{key:"narrowDownMatchingFormats",value:function(r){var n=this,a=r.nationalSignificantNumber,i=r.nationalPrefix,o=r.international,s=a,u=s.length-gi;u<0&&(u=0),this.matchingFormats=this.matchingFormats.filter(function(l){return n.formatSuits(l,o,i)&&n.formatMatches(l,s,u)}),this.chosenFormat&&this.matchingFormats.indexOf(this.chosenFormat)===-1&&this.resetFormat()}},{key:"formatSuits",value:function(r,n,a){return!(a&&!r.usesNationalPrefix()&&!r.nationalPrefixIsOptionalWhenFormattingInNationalFormat()||!n&&!a&&r.nationalPrefixIsMandatoryWhenFormattingInNationalFormat())}},{key:"formatMatches",value:function(r,n,a){var i=r.leadingDigitsPatterns().length;if(i===0)return!0;a=Math.min(a,i-1);var o=r.leadingDigitsPatterns()[a];if(n.length<gi)try{return new L0(o).match(n,{allowOverflow:!0})!==void 0}catch(s){return console.error(s),!0}return new RegExp("^(".concat(o,")")).test(n)}},{key:"getFormatFormat",value:function(r,n){return n?r.internationalFormat():r.format()}},{key:"chooseFormat",value:function(r){for(var n=this,a=function(){var l=o.value;return n.chosenFormat===l?"break":z0.test(n.getFormatFormat(l,r.international))?n.createTemplateForFormat(l,r)?(n.chosenFormat=l,"break"):(n.matchingFormats=n.matchingFormats.filter(function(d){return d!==l}),"continue"):"continue"},i=$i(this.matchingFormats.slice()),o;!(o=i()).done;){var s=a();if(s==="break")break}return this.chosenFormat||this.resetFormat(),this.chosenFormat}},{key:"createTemplateForFormat",value:function(r,n){if(!(r.pattern().indexOf("|")>=0)){var a=this.getTemplateForFormat(r,n);if(a)return this.setNationalNumberTemplate(a,n),!0}}},{key:"getSeparatorAfterNationalPrefix",value:function(r){return this.isNANP||r&&r.nationalPrefixFormattingRule()&&W0.test(r.nationalPrefixFormattingRule())?" ":""}},{key:"getInternationalPrefixBeforeCountryCallingCode",value:function(r,n){var a=r.IDDPrefix,i=r.missingPlus;return a?n&&n.spacing===!1?a:a+" ":i?"":"+"}},{key:"getTemplate",value:function(r){if(this.template){for(var n=-1,a=0,i=r.international?this.getInternationalPrefixBeforeCountryCallingCode(r,{spacing:!1}):"";a<i.length+r.getDigitsWithoutInternationalPrefix().length;)n=this.template.indexOf(Fe,n+1),a++;return di(this.template,n+1)}}},{key:"setNationalNumberTemplate",value:function(r,n){this.nationalNumberTemplate=r,this.populatedNationalNumberTemplate=r,this.populatedNationalNumberTemplatePosition=-1,n.international?this.template=this.getInternationalPrefixBeforeCountryCallingCode(n).replace(/[\d\+]/g,Fe)+qt(Fe,n.callingCode.length)+" "+r:this.template=r}},{key:"getTemplateForFormat",value:function(r,n){var a=n.nationalSignificantNumber,i=n.international,o=n.nationalPrefix,s=n.complexPrefixBeforeNationalSignificantNumber,u=r.pattern();u=u.replace(K0(),"\\d").replace(q0(),"\\d");var l=G0.match(u)[0];if(!(a.length>l.length)){var d=new RegExp("^"+u+"$"),c=a.replace(/\d/g,yn);d.test(c)&&(l=c);var $=this.getFormatFormat(r,i),v;if(this.shouldTryNationalPrefixFormattingRule(r,{international:i,nationalPrefix:o})){var g=$.replace(su,r.nationalPrefixFormattingRule());if(ar(r.nationalPrefixFormattingRule())===(o||"")+ar("$1")&&($=g,v=!0,o))for(var m=o.length;m>0;)$=$.replace(/\d/,Fe),m--}var p=l.replace(new RegExp(u),$).replace(new RegExp(yn,"g"),Fe);return v||(s?p=qt(Fe,s.length)+" "+p:o&&(p=qt(Fe,o.length)+this.getSeparatorAfterNationalPrefix(r)+p)),i&&(p=uu(p)),p}}},{key:"formatNextNationalNumberDigits",value:function(r){var n=S0(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition,r);if(!n){this.resetFormat();return}return this.populatedNationalNumberTemplate=n[0],this.populatedNationalNumberTemplatePosition=n[1],di(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition+1)}},{key:"shouldTryNationalPrefixFormattingRule",value:function(r,n){var a=n.international,i=n.nationalPrefix;if(r.nationalPrefixFormattingRule()){var o=r.usesNationalPrefix();if(o&&i||!o&&!a)return!0}}}]),e}();function vu(e,t){return Q0(e)||J0(e,t)||X0(e,t)||Z0()}function Z0(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function X0(e,t){if(e){if(typeof e=="string")return vi(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return vi(e,t)}}function vi(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function J0(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],a=!0,i=!1,o,s;try{for(r=r.call(e);!(a=(o=r.next()).done)&&(n.push(o.value),!(t&&n.length===t));a=!0);}catch(u){i=!0,s=u}finally{try{!a&&r.return!=null&&r.return()}finally{if(i)throw s}}return n}}function Q0(e){if(Array.isArray(e))return e}function e1(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t1(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function r1(e,t,r){return t&&t1(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var n1="["+Re+me+"]+",a1=new RegExp("^"+n1+"$","i"),i1="(?:["+mr+"]["+Re+me+"]*|["+Re+me+"]+)",o1=new RegExp("[^"+Re+me+"]+.*$"),u1=/[^\d\[\]]/,s1=function(){function e(t){var r=t.defaultCountry,n=t.defaultCallingCode,a=t.metadata,i=t.onNationalSignificantNumberChange;e1(this,e),this.defaultCountry=r,this.defaultCallingCode=n,this.metadata=a,this.onNationalSignificantNumberChange=i}return r1(e,[{key:"input",value:function(r,n){var a=c1(r),i=vu(a,2),o=i[0],s=i[1],u=ar(o),l;return s&&(n.digits||(n.startInternationalNumber(),u||(l=!0))),u&&this.inputDigits(u,n),{digits:u,justLeadingPlus:l}}},{key:"inputDigits",value:function(r,n){var a=n.digits,i=a.length<3&&a.length+r.length>=3;if(n.appendDigits(r),i&&this.extractIddPrefix(n),this.isWaitingForCountryCallingCode(n)){if(!this.extractCountryCallingCode(n))return}else n.appendNationalSignificantNumberDigits(r);n.international||this.hasExtractedNationalSignificantNumber||this.extractNationalSignificantNumber(n.getNationalDigits(),function(o){return n.update(o)})}},{key:"isWaitingForCountryCallingCode",value:function(r){var n=r.international,a=r.callingCode;return n&&!a}},{key:"extractCountryCallingCode",value:function(r){var n=pu("+"+r.getDigitsWithoutInternationalPrefix(),this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),a=n.countryCallingCode,i=n.number;if(a)return r.setCallingCode(a),r.update({nationalSignificantNumber:i}),!0}},{key:"reset",value:function(r){if(r){this.hasSelectedNumberingPlan=!0;var n=r._nationalPrefixForParsing();this.couldPossiblyExtractAnotherNationalSignificantNumber=n&&u1.test(n)}else this.hasSelectedNumberingPlan=void 0,this.couldPossiblyExtractAnotherNationalSignificantNumber=void 0}},{key:"extractNationalSignificantNumber",value:function(r,n){if(this.hasSelectedNumberingPlan){var a=$n(r,this.metadata),i=a.nationalPrefix,o=a.nationalNumber,s=a.carrierCode;if(o!==r)return this.onExtractedNationalNumber(i,s,o,r,n),!0}}},{key:"extractAnotherNationalSignificantNumber",value:function(r,n,a){if(!this.hasExtractedNationalSignificantNumber)return this.extractNationalSignificantNumber(r,a);if(this.couldPossiblyExtractAnotherNationalSignificantNumber){var i=$n(r,this.metadata),o=i.nationalPrefix,s=i.nationalNumber,u=i.carrierCode;if(s!==n)return this.onExtractedNationalNumber(o,u,s,r,a),!0}}},{key:"onExtractedNationalNumber",value:function(r,n,a,i,o){var s,u,l=i.lastIndexOf(a);if(l>=0&&l===i.length-a.length){u=!0;var d=i.slice(0,l);d!==r&&(s=d)}o({nationalPrefix:r,carrierCode:n,nationalSignificantNumber:a,nationalSignificantNumberMatchesInput:u,complexPrefixBeforeNationalSignificantNumber:s}),this.hasExtractedNationalSignificantNumber=!0,this.onNationalSignificantNumberChange()}},{key:"reExtractNationalSignificantNumber",value:function(r){if(this.extractAnotherNationalSignificantNumber(r.getNationalDigits(),r.nationalSignificantNumber,function(n){return r.update(n)}))return!0;if(this.extractIddPrefix(r))return this.extractCallingCodeAndNationalSignificantNumber(r),!0;if(this.fixMissingPlus(r))return this.extractCallingCodeAndNationalSignificantNumber(r),!0}},{key:"extractIddPrefix",value:function(r){var n=r.international,a=r.IDDPrefix,i=r.digits;if(r.nationalSignificantNumber,!(n||a)){var o=cu(i,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata);if(o!==void 0&&o!==i)return r.update({IDDPrefix:i.slice(0,i.length-o.length)}),this.startInternationalNumber(r,{country:void 0,callingCode:void 0}),!0}}},{key:"fixMissingPlus",value:function(r){if(!r.international){var n=fu(r.digits,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),a=n.countryCallingCode;if(n.number,a)return r.update({missingPlus:!0}),this.startInternationalNumber(r,{country:r.country,callingCode:a}),!0}}},{key:"startInternationalNumber",value:function(r,n){var a=n.country,i=n.callingCode;r.startInternationalNumber(a,i),r.nationalSignificantNumber&&(r.resetNationalSignificantNumber(),this.onNationalSignificantNumberChange(),this.hasExtractedNationalSignificantNumber=void 0)}},{key:"extractCallingCodeAndNationalSignificantNumber",value:function(r){this.extractCountryCallingCode(r)&&this.extractNationalSignificantNumber(r.getNationalDigits(),function(n){return r.update(n)})}}]),e}();function l1(e){var t=e.search(i1);if(!(t<0)){e=e.slice(t);var r;return e[0]==="+"&&(r=!0,e=e.slice(1)),e=e.replace(o1,""),r&&(e="+"+e),e}}function d1(e){var t=l1(e)||"";return t[0]==="+"?[t.slice(1),!0]:[t]}function c1(e){var t=d1(e),r=vu(t,2),n=r[0],a=r[1];return a1.test(n)||(n=""),[n,a]}function f1(e,t){return g1(e)||h1(e,t)||$1(e,t)||p1()}function p1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $1(e,t){if(e){if(typeof e=="string")return mi(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return mi(e,t)}}function mi(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function h1(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],a=!0,i=!1,o,s;try{for(r=r.call(e);!(a=(o=r.next()).done)&&(n.push(o.value),!(t&&n.length===t));a=!0);}catch(u){i=!0,s=u}finally{try{!a&&r.return!=null&&r.return()}finally{if(i)throw s}}return n}}function g1(e){if(Array.isArray(e))return e}function v1(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m1(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function y1(e,t,r){return t&&m1(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var ft=function(){function e(t,r){v1(this,e),this.metadata=new se(r);var n=this.getCountryAndCallingCode(t),a=f1(n,2),i=a[0],o=a[1];this.defaultCountry=i,this.defaultCallingCode=o,this.reset()}return y1(e,[{key:"getCountryAndCallingCode",value:function(r){var n,a;return r&&(Pt(r)?(n=r.defaultCountry,a=r.defaultCallingCode):n=r),n&&!this.metadata.hasCountry(n)&&(n=void 0),[n,a]}},{key:"input",value:function(r){var n=this.parser.input(r,this.state),a=n.digits,i=n.justLeadingPlus;if(i)this.formattedOutput="+";else if(a){this.determineTheCountryIfNeeded(),this.state.nationalSignificantNumber&&this.formatter.narrowDownMatchingFormats(this.state);var o;if(this.metadata.hasSelectedNumberingPlan()&&(o=this.formatter.format(a,this.state)),o===void 0&&this.parser.reExtractNationalSignificantNumber(this.state)){this.determineTheCountryIfNeeded();var s=this.state.getNationalDigits();s&&(o=this.formatter.format(s,this.state))}this.formattedOutput=o?this.getFullNumber(o):this.getNonFormattedNumber()}return this.formattedOutput}},{key:"reset",value:function(){var r=this;return this.state=new m0({onCountryChange:function(a){r.country=a},onCallingCodeChange:function(a,i){r.metadata.selectNumberingPlan(i,a),r.formatter.reset(r.metadata.numberingPlan,r.state),r.parser.reset(r.metadata.numberingPlan)}}),this.formatter=new Y0({state:this.state,metadata:this.metadata}),this.parser=new s1({defaultCountry:this.defaultCountry,defaultCallingCode:this.defaultCallingCode,metadata:this.metadata,state:this.state,onNationalSignificantNumberChange:function(){r.determineTheCountryIfNeeded(),r.formatter.reset(r.metadata.numberingPlan,r.state)}}),this.state.reset({country:this.defaultCountry,callingCode:this.defaultCallingCode}),this.formattedOutput="",this}},{key:"isInternational",value:function(){return this.state.international}},{key:"getCallingCode",value:function(){if(this.isInternational())return this.state.callingCode}},{key:"getCountryCallingCode",value:function(){return this.getCallingCode()}},{key:"getCountry",value:function(){var r=this.state.digits;if(r)return this._getCountry()}},{key:"_getCountry",value:function(){var r=this.state.country;return r}},{key:"determineTheCountryIfNeeded",value:function(){(!this.state.country||this.isCountryCallingCodeAmbiguous())&&this.determineTheCountry()}},{key:"getFullNumber",value:function(r){var n=this;if(this.isInternational()){var a=function(s){return n.formatter.getInternationalPrefixBeforeCountryCallingCode(n.state,{spacing:!!s})+s},i=this.state.callingCode;return a(i?r?"".concat(i," ").concat(r):i:"".concat(this.state.getDigitsWithoutInternationalPrefix()))}return r}},{key:"getNonFormattedNationalNumberWithPrefix",value:function(){var r=this.state,n=r.nationalSignificantNumber,a=r.complexPrefixBeforeNationalSignificantNumber,i=r.nationalPrefix,o=n,s=a||i;return s&&(o=s+o),o}},{key:"getNonFormattedNumber",value:function(){var r=this.state.nationalSignificantNumberMatchesInput;return this.getFullNumber(r?this.getNonFormattedNationalNumberWithPrefix():this.state.getNationalDigits())}},{key:"getNonFormattedTemplate",value:function(){var r=this.getNonFormattedNumber();if(r)return r.replace(/[\+\d]/g,Fe)}},{key:"isCountryCallingCodeAmbiguous",value:function(){var r=this.state.callingCode,n=this.metadata.getCountryCodesForCallingCode(r);return n&&n.length>1}},{key:"determineTheCountry",value:function(){this.state.setCountry(hu(this.isInternational()?this.state.callingCode:this.defaultCallingCode,{nationalNumber:this.state.nationalSignificantNumber,defaultCountry:this.defaultCountry,metadata:this.metadata}))}},{key:"getNumberValue",value:function(){var r=this.state,n=r.digits,a=r.callingCode,i=r.country,o=r.nationalSignificantNumber;if(n){if(this.isInternational())return a?"+"+a+o:"+"+n;if(i||a){var s=i?this.metadata.countryCallingCode():a;return"+"+s+o}}}},{key:"getNumber",value:function(){var r=this.state,n=r.nationalSignificantNumber,a=r.carrierCode,i=r.callingCode,o=this._getCountry();if(n&&!(!o&&!i)){if(o&&o===this.defaultCountry){var s=new se(this.metadata.metadata);s.selectNumberingPlan(o);var u=s.numberingPlan.callingCode(),l=this.metadata.getCountryCodesForCallingCode(u);if(l.length>1){var d=$u(n,{countries:l,defaultCountry:this.defaultCountry,metadata:this.metadata.metadata});d&&(o=d)}}var c=new du(o||i,n,this.metadata.metadata);return a&&(c.carrierCode=a),c}}},{key:"isPossible",value:function(){var r=this.getNumber();return r?r.isPossible():!1}},{key:"isValid",value:function(){var r=this.getNumber();return r?r.isValid():!1}},{key:"getNationalNumber",value:function(){return this.state.nationalSignificantNumber}},{key:"getChars",value:function(){return(this.state.international?"+":"")+this.state.digits}},{key:"getTemplate",value:function(){return this.formatter.getTemplate(this.state)||this.getNonFormattedTemplate()||""}}]),e}();function yi(e){return new se(e).getCountries()}function b1(e,t,r){return r||(r=t,t=void 0),new ft(t,r).input(e)}function mu(e){var t=e.inputFormat,r=e.country,n=e.metadata;return t==="NATIONAL_PART_OF_INTERNATIONAL"?"+".concat(Ye(r,n)):""}function bn(e,t){return t&&(e=e.slice(t.length),e[0]===" "&&(e=e.slice(1))),e}function C1(e,t,r){if(!(r&&r.ignoreRest)){var n=function(i){if(r)switch(i){case"end":r.ignoreRest=!0;break}};return iu(e,t,n)}}function yu(e){var t=e.onKeyDown,r=e.inputFormat;return S.useCallback(function(n){if(n.keyCode===O1&&r==="INTERNATIONAL"&&n.target instanceof HTMLInputElement&&S1(n.target)===P1.length){n.preventDefault();return}t&&t(n)},[t,r])}function S1(e){return e.selectionStart}var O1=8,P1="+",x1=["onKeyDown","country","inputFormat","metadata","international","withCountryCallingCode"];function Cn(){return Cn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Cn.apply(this,arguments)}function I1(e,t){if(e==null)return{};var r=w1(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function w1(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i<n.length;i++)a=n[i],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}function N1(e){function t(r,n){var a=r.onKeyDown,i=r.country,o=r.inputFormat,s=r.metadata,u=s===void 0?e:s;r.international,r.withCountryCallingCode;var l=I1(r,x1),d=S.useCallback(function($){var v=new ft(i,u),g=mu({inputFormat:o,country:i,metadata:u}),m=v.input(g+$),p=v.getTemplate();return g&&(m=bn(m,g),p&&(p=bn(p,g))),{text:m,template:p}},[i,u]),c=yu({onKeyDown:a,inputFormat:o});return N.createElement(xt,Cn({},l,{ref:n,parse:C1,format:d,onKeyDown:c}))}return t=N.forwardRef(t),t.propTypes={value:O.string.isRequired,onChange:O.func.isRequired,onKeyDown:O.func,country:O.string,inputFormat:O.oneOf(["INTERNATIONAL","NATIONAL_PART_OF_INTERNATIONAL","NATIONAL","INTERNATIONAL_OR_NATIONAL"]).isRequired,metadata:O.object},t}const E1=N1();var A1=["value","onChange","onKeyDown","country","inputFormat","metadata","inputComponent","international","withCountryCallingCode"];function Sn(){return Sn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Sn.apply(this,arguments)}function F1(e,t){if(e==null)return{};var r=T1(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function T1(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i<n.length;i++)a=n[i],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}function R1(e){function t(r,n){var a=r.value,i=r.onChange,o=r.onKeyDown,s=r.country,u=r.inputFormat,l=r.metadata,d=l===void 0?e:l,c=r.inputComponent,$=c===void 0?"input":c;r.international,r.withCountryCallingCode;var v=F1(r,A1),g=mu({inputFormat:u,country:s,metadata:d}),m=S.useCallback(function(h){var b=pn(h.target.value);if(b===a){var x=bi(g,b,s,d);x.indexOf(h.target.value)===0&&(b=b.slice(0,-1))}i(b)},[g,a,i,s,d]),p=yu({onKeyDown:o,inputFormat:u});return N.createElement($,Sn({},v,{ref:n,value:bi(g,a,s,d),onChange:m,onKeyDown:p}))}return t=N.forwardRef(t),t.propTypes={value:O.string.isRequired,onChange:O.func.isRequired,onKeyDown:O.func,country:O.string,inputFormat:O.oneOf(["INTERNATIONAL","NATIONAL_PART_OF_INTERNATIONAL","NATIONAL","INTERNATIONAL_OR_NATIONAL"]).isRequired,metadata:O.object,inputComponent:O.elementType},t}const _1=R1();function bi(e,t,r,n){return bn(b1(e+t,r,n),e)}function M1(e){return Ci(e[0])+Ci(e[1])}function Ci(e){return String.fromCodePoint(127397+e.toUpperCase().charCodeAt(0))}var D1=["value","onChange","options","disabled","readOnly"],k1=["value","options","className","iconComponent","getIconAspectRatio","arrowComponent","unicodeFlags"];function L1(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=V1(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function V1(e,t){if(e){if(typeof e=="string")return Si(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Si(e,t)}}function Si(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function or(){return or=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},or.apply(this,arguments)}function bu(e,t){if(e==null)return{};var r=j1(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function j1(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i<n.length;i++)a=n[i],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}function Cu(e){var t=e.value,r=e.onChange,n=e.options,a=e.disabled,i=e.readOnly,o=bu(e,D1),s=S.useCallback(function(u){var l=u.target.value;r(l==="ZZ"?void 0:l)},[r]);return S.useMemo(function(){return Ou(n,t)},[n,t]),N.createElement("select",or({},o,{disabled:a||i,readOnly:i,value:t||"ZZ",onChange:s}),n.map(function(u){var l=u.value,d=u.label,c=u.divider;return N.createElement("option",{key:c?"|":l||"ZZ",value:c?"|":l||"ZZ",disabled:!!c,style:c?B1:void 0},d)}))}Cu.propTypes={value:O.string,onChange:O.func.isRequired,options:O.arrayOf(O.shape({value:O.string,label:O.string,divider:O.bool})).isRequired,disabled:O.bool,readOnly:O.bool};var B1={fontSize:"1px",backgroundColor:"currentColor",color:"inherit"};function Su(e){var t=e.value,r=e.options,n=e.className,a=e.iconComponent;e.getIconAspectRatio;var i=e.arrowComponent,o=i===void 0?U1:i,s=e.unicodeFlags,u=bu(e,k1),l=S.useMemo(function(){return Ou(r,t)},[r,t]);return N.createElement("div",{className:"PhoneInputCountry"},N.createElement(Cu,or({},u,{value:t,options:r,className:nr("PhoneInputCountrySelect",n)})),l&&(s&&t?N.createElement("div",{className:"PhoneInputCountryIconUnicode"},M1(t)):N.createElement(a,{"aria-hidden":!0,country:t,label:l.label,aspectRatio:s?1:void 0})),N.createElement(o,null))}Su.propTypes={iconComponent:O.elementType,arrowComponent:O.elementType,unicodeFlags:O.bool};function U1(){return N.createElement("div",{className:"PhoneInputCountrySelectArrow"})}function Ou(e,t){for(var r=L1(e),n;!(n=r()).done;){var a=n.value;if(!a.divider&&H1(a.value,t))return a}}function H1(e,t){return e==null?t==null:e===t}var G1=["country","countryName","flags","flagUrl"];function On(){return On=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},On.apply(this,arguments)}function W1(e,t){if(e==null)return{};var r=K1(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function K1(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i<n.length;i++)a=n[i],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}function qn(e){var t=e.country,r=e.countryName,n=e.flags,a=e.flagUrl,i=W1(e,G1);return n&&n[t]?n[t]({title:r}):N.createElement("img",On({},i,{alt:r,role:r?void 0:"presentation",src:a.replace("{XX}",t).replace("{xx}",t.toLowerCase())}))}qn.propTypes={country:O.string.isRequired,countryName:O.string.isRequired,flags:O.objectOf(O.elementType),flagUrl:O.string.isRequired};var q1=["aspectRatio"],z1=["title"],Y1=["title"];function ur(){return ur=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ur.apply(this,arguments)}function zn(e,t){if(e==null)return{};var r=Z1(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Z1(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i<n.length;i++)a=n[i],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}function Sr(e){var t=e.aspectRatio,r=zn(e,q1);return t===1?N.createElement(xu,r):N.createElement(Pu,r)}Sr.propTypes={title:O.string.isRequired,aspectRatio:O.number};function Pu(e){var t=e.title,r=zn(e,z1);return N.createElement("svg",ur({},r,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 75 50"}),N.createElement("title",null,t),N.createElement("g",{className:"PhoneInputInternationalIconGlobe",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeMiterlimit:"10"},N.createElement("path",{strokeLinecap:"round",d:"M47.2,36.1C48.1,36,49,36,50,36c7.4,0,14,1.7,18.5,4.3"}),N.createElement("path",{d:"M68.6,9.6C64.2,12.3,57.5,14,50,14c-7.4,0-14-1.7-18.5-4.3"}),N.createElement("line",{x1:"26",y1:"25",x2:"74",y2:"25"}),N.createElement("line",{x1:"50",y1:"1",x2:"50",y2:"49"}),N.createElement("path",{strokeLinecap:"round",d:"M46.3,48.7c1.2,0.2,2.5,0.3,3.7,0.3c13.3,0,24-10.7,24-24S63.3,1,50,1S26,11.7,26,25c0,2,0.3,3.9,0.7,5.8"}),N.createElement("path",{strokeLinecap:"round",d:"M46.8,48.2c1,0.6,2.1,0.8,3.2,0.8c6.6,0,12-10.7,12-24S56.6,1,50,1S38,11.7,38,25c0,1.4,0.1,2.7,0.2,4c0,0.1,0,0.2,0,0.2"})),N.createElement("path",{className:"PhoneInputInternationalIconPhone",stroke:"none",fill:"currentColor",d:"M12.4,17.9c2.9-2.9,5.4-4.8,0.3-11.2S4.1,5.2,1.3,8.1C-2,11.4,1.1,23.5,13.1,35.6s24.3,15.2,27.5,11.9c2.8-2.8,7.8-6.3,1.4-11.5s-8.3-2.6-11.2,0.3c-2,2-7.2-2.2-11.7-6.7S10.4,19.9,12.4,17.9z"}))}Pu.propTypes={title:O.string.isRequired};function xu(e){var t=e.title,r=zn(e,Y1);return N.createElement("svg",ur({},r,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50"}),N.createElement("title",null,t),N.createElement("g",{className:"PhoneInputInternationalIconGlobe",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeLinecap:"round"},N.createElement("path",{d:"M8.45,13A21.44,21.44,0,1,1,37.08,41.56"}),N.createElement("path",{d:"M19.36,35.47a36.9,36.9,0,0,1-2.28-13.24C17.08,10.39,21.88.85,27.8.85s10.72,9.54,10.72,21.38c0,6.48-1.44,12.28-3.71,16.21"}),N.createElement("path",{d:"M17.41,33.4A39,39,0,0,1,27.8,32.06c6.62,0,12.55,1.5,16.48,3.86"}),N.createElement("path",{d:"M44.29,8.53c-3.93,2.37-9.86,3.88-16.49,3.88S15.25,10.9,11.31,8.54"}),N.createElement("line",{x1:"27.8",y1:"0.85",x2:"27.8",y2:"34.61"}),N.createElement("line",{x1:"15.2",y1:"22.23",x2:"49.15",y2:"22.23"})),N.createElement("path",{className:"PhoneInputInternationalIconPhone",stroke:"transparent",fill:"currentColor",d:"M9.42,26.64c2.22-2.22,4.15-3.59.22-8.49S3.08,17,.93,19.17c-2.49,2.48-.13,11.74,9,20.89s18.41,11.5,20.89,9c2.15-2.15,5.91-4.77,1-8.71s-6.27-2-8.49.22c-1.55,1.55-5.48-1.69-8.86-5.08S7.87,28.19,9.42,26.64Z"}))}xu.propTypes={title:O.string.isRequired};function X1(e){if(e.length<2||e[0]!=="+")return!1;for(var t=1;t<e.length;){var r=e.charCodeAt(t);if(!(r>=48&&r<=57))return!1;t++}return!0}function Iu(e){X1(e)||console.error("[react-phone-number-input] Expected the initial `value` to be a E.164 phone number. Got",e)}function J1(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=Q1(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Q1(e,t){if(e){if(typeof e=="string")return Oi(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Oi(e,t)}}function Oi(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function e2(e,t){if(!t)return e;for(var r=[],n=[],a=r,i=function(){var l=s.value;if(l==="|")a.push({divider:!0});else if(l==="..."||l==="…")a=n;else{var d;l==="🌐"?d=void 0:d=l;var c=e.indexOf(e.filter(function(v){return v.value===d})[0]),$=e[c];e.splice(c,1),a.push($)}},o=J1(t),s;!(s=o()).done;)i();return r.concat(e).concat(n)}function t2(e,t){if(e&&(e=e.filter(function(r){switch(r){case"🌐":case"|":case"...":case"…":return!0;default:return Or(r,t)}}),e.length>0))return e}function Or(e,t){return tu(e,t)?!0:(console.error("Country not found: ".concat(e)),!1)}function wu(e,t){return e&&(e=e.filter(function(r){return Or(r,t)}),e.length===0&&(e=void 0)),e}var r2=["country","label","aspectRatio"];function Pn(){return Pn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Pn.apply(this,arguments)}function n2(e,t){if(e==null)return{};var r=a2(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function a2(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i<n.length;i++)a=n[i],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}function Nu(e){var t=e.flags,r=e.flagUrl,n=e.flagComponent,a=e.internationalIcon;function i(o){var s=o.country,u=o.label,l=o.aspectRatio,d=n2(o,r2),c=a===Sr?l:void 0;return N.createElement("div",Pn({},d,{className:nr("PhoneInputCountryIcon",{"PhoneInputCountryIcon--square":c===1,"PhoneInputCountryIcon--border":s})}),s?N.createElement(n,{country:s,countryName:u,flags:t,flagUrl:r,className:"PhoneInputCountryIconImg"}):N.createElement(a,{title:u,aspectRatio:c,className:"PhoneInputCountryIconImg"}))}return i.propTypes={country:O.string,label:O.string.isRequired,aspectRatio:O.number},i}Nu({flagUrl:"https://purecatamphetamine.github.io/country-flag-icons/3x2/{XX}.svg",flagComponent:qn,internationalIcon:Sr});function He(e,t){var r="+"+Ye(e,t);return r}function i2(e){var t=e.value,r=e.phoneNumber,n=e.defaultCountry,a=e.getAnyCountry,i=e.countries,o=e.required,s=e.metadata,u;return r&&r.country?u=r.country:n&&(!t||ot(t,n,s))&&(u=n),i&&i.indexOf(u)<0&&(u=void 0),!u&&o&&i&&i.length>0&&(u=a()),u}function o2(e){var t=e.countries,r=e.countryNames,n=e.addInternationalOption,a=e.compareStringsLocales,i=e.compareStrings;i||(i=p2);var o=t.map(function(s){return{value:s,label:r[s]||s}});return o.sort(function(s,u){return i(s.label,u.label,a)}),n&&o.unshift({label:r.ZZ}),o}function Eu(e,t){return $0(e||"",t)}function u2(e){return e.formatNational().replace(/\D/g,"")}function s2(e,t){var r=t.prevCountry,n=t.newCountry,a=t.metadata,i=t.useNationalFormat;if(r===n)return e;if(!e)return i?"":n?He(n,a):"";if(n){if(e[0]==="+"){if(i)return e.indexOf("+"+Ye(n,a))===0?$2(e,n,a):"";if(r){var o=He(n,a);return e.indexOf(o)===0?e:o}else{var s=He(n,a);return e.indexOf(s)===0?e:s}}}else if(e[0]!=="+")return it(e,r,a)||"";return e}function it(e,t,r){if(e){if(e[0]==="+"){if(e==="+")return;var n=new ft(t,r);return n.input(e),n.getNumberValue()}if(t){var a=Fu(e,t,r);return"+".concat(Ye(t,r)).concat(a||"")}}}function l2(e,t,r){var n=Fu(e,t,r);if(n){var a=n.length-d2(t,r);if(a>0)return e.slice(0,e.length-a)}return e}function d2(e,t){return t=new se(t),t.selectNumberingPlan(e),t.numberingPlan.possibleLengths()[t.numberingPlan.possibleLengths().length-1]}function Au(e,t){var r=t.country,n=t.countries,a=t.defaultCountry,i=t.latestCountrySelectedByUser,o=t.required,s=t.metadata;if(e==="+")return r;var u=f2(e,s);if(u)return!n||n.indexOf(u)>=0?u:void 0;if(r){if(ot(e,r,s)){if(i&&ot(e,i,s))return i;if(a&&ot(e,a,s))return a;if(!o)return}else if(!o)return}return r}function c2(e,t){var r=t.prevPhoneDigits,n=t.country,a=t.defaultCountry,i=t.latestCountrySelectedByUser,o=t.countryRequired,s=t.getAnyCountry,u=t.countries,l=t.international,d=t.limitMaxLength,c=t.countryCallingCodeEditable,$=t.metadata;if(l&&c===!1&&n){var v=He(n,$);if(e.indexOf(v)!==0){var g,m=e&&e[0]!=="+";return m?(e=v+e,g=it(e,n,$)):e=v,{phoneDigits:e,value:g,country:n}}}l===!1&&n&&e&&e[0]==="+"&&(e=Pi(e,n,$)),e&&n&&d&&(e=l2(e,n,$)),e&&e[0]!=="+"&&(!n||l)&&(e="+"+e),!e&&r&&r[0]==="+"&&(l?n=void 0:n=a),e==="+"&&r&&r[0]==="+"&&r.length>1&&(n=void 0);var p;return e&&(e[0]==="+"&&(e==="+"||n&&He(n,$).indexOf(e)===0)?p=void 0:p=it(e,n,$)),p&&(n=Au(p,{country:n,countries:u,defaultCountry:a,latestCountrySelectedByUser:i,required:!1,metadata:$}),l===!1&&n&&e&&e[0]==="+"&&(e=Pi(e,n,$),p=it(e,n,$))),!n&&o&&(n=a||s()),{phoneDigits:e,country:n,value:p}}function Pi(e,t,r){if(e.indexOf(He(t,r))===0){var n=new ft(t,r);n.input(e);var a=n.getNumber();return a?a.formatNational().replace(/\D/g,""):""}else return e.replace(/\D/g,"")}function f2(e,t){var r=new ft(null,t);return r.input(e),r.getCountry()}function p2(e,t,r){return String.prototype.localeCompare?e.localeCompare(t,r):e<t?-1:e>t?1:0}function $2(e,t,r){if(t){var n="+"+Ye(t,r);if(e.length<n.length){if(n.indexOf(e)===0)return""}else if(e.indexOf(n)===0)return e.slice(n.length)}for(var a=0,i=Object.keys(r.country_calling_codes);a<i.length;a++){var o=i[a];if(e.indexOf(o)===1)return e.slice(1+o.length)}return""}function Fu(e,t,r){var n=new ft(t,r);n.input(e);var a=n.getNumber();return a&&a.nationalNumber}function ot(e,t,r){for(var n=He(t,r),a=0;a<e.length&&a<n.length;){if(e[a]!==n[a])return!1;a++}return!0}function Tu(e){var t=e.value,r=e.phoneNumber,n=e.defaultCountry,a=e.international,i=e.useNationalFormat,o=e.metadata;return(a===!1||i)&&r&&r.country?u2(r):!t&&a&&n?He(n,o):t}function Nt(e){"@babel/helpers - typeof";return Nt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nt(e)}function xi(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Lt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xi(Object(r),!0).forEach(function(n){h2(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xi(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function h2(e,t,r){return t=g2(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function g2(e){var t=v2(e,"string");return Nt(t)=="symbol"?t:t+""}function v2(e,t){if(Nt(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Nt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function m2(e,t,r){var n=e.metadata,a=e.countries,i=e.defaultCountry,o=e.value,s=e.reset,u=e.international,l=e.displayInitialValueAsLocalNumber,d=e.initialValueFormat,c=t.defaultCountry,$=t.value,v=t.reset;r.country;var g=r.value,m=r.hasUserSelectedACountry,p=r.latestCountrySelectedByUser,h=function(J){return Tu(Lt(Lt({},J),{},{international:u,useNationalFormat:l||d==="national",metadata:n}))};if(s!==v)return{phoneDigits:h({value:void 0,defaultCountry:i}),value:void 0,country:i,latestCountrySelectedByUser:void 0,hasUserSelectedACountry:void 0};if(i!==c){var b=!i||Or(i,n),x=!g||u&&g===h({value:void 0,defaultCountry:c}),T=!o&&x;if(!m&&b&&T)return{country:i,phoneDigits:h({value:void 0,defaultCountry:i}),value:void 0}}if(!Ii(o,$)&&!Ii(o,g)){var P,I;if(o){o&&Iu(o),P=Eu(o,n);var E=wu(a,n);P&&P.country?(!E||E.indexOf(P.country)>=0)&&(I=P.country):(I=Au(o,{country:void 0,countries:E,metadata:n}),I||i&&o.indexOf(He(i,n))===0&&(I=i))}var _;if(o){if(p){var U=I?p===I:ot(o,p,n);U?I||(I=p):_={latestCountrySelectedByUser:void 0}}}else _={latestCountrySelectedByUser:void 0,hasUserSelectedACountry:void 0};return Lt(Lt({},_),{},{phoneDigits:h({phoneNumber:P,value:o,defaultCountry:i}),value:o,country:o?I:i})}}function Ii(e,t){return e===null&&(e=void 0),t===null&&(t=void 0),e===t}var y2=["name","disabled","readOnly","autoComplete","style","className","inputRef","inputComponent","numberInputProps","smartCaret","countrySelectComponent","countrySelectProps","containerComponent","containerComponentProps","defaultCountry","countries","countryOptionsOrder","labels","flags","flagComponent","flagUrl","addInternationalOption","internationalIcon","displayInitialValueAsLocalNumber","initialValueFormat","onCountryChange","limitMaxLength","countryCallingCodeEditable","focusInputOnCountrySelection","reset","metadata","international","locales"];function dt(e){"@babel/helpers - typeof";return dt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dt(e)}function wi(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Ru(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?wi(Object(r),!0).forEach(function(n){Ae(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wi(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ut(){return ut=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ut.apply(this,arguments)}function b2(e,t){if(e==null)return{};var r=C2(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function C2(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i<n.length;i++)a=n[i],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}function S2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ni(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Mu(n.key),n)}}function O2(e,t,r){return t&&Ni(e.prototype,t),r&&Ni(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function P2(e,t,r){return t=sr(t),x2(e,_u()?Reflect.construct(t,r||[],sr(e).constructor):t.apply(e,r))}function x2(e,t){if(t&&(dt(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return I2(e)}function I2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_u=function(){return!!e})()}function sr(e){return sr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},sr(e)}function w2(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&xn(e,t)}function xn(e,t){return xn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},xn(e,t)}function Ae(e,t,r){return t=Mu(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Mu(e){var t=N2(e,"string");return dt(t)=="symbol"?t:t+""}function N2(e,t){if(dt(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(dt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var E2=function(e){function t(r){var n;S2(this,t),n=P2(this,t,[r]),Ae(n,"setInputRef",function(p){zo([n.props.inputRef,n.inputRef],p)}),Ae(n,"isCountrySupportedWithError",function(p){var h=n.props.metadata;return Or(p,h)}),Ae(n,"onCountryChange",function(p){var h=n.props,b=h.international,x=h.metadata,T=h.onChange,P=h.focusInputOnCountrySelection,I=n.state,E=I.phoneDigits,_=I.country,U=s2(E,{prevCountry:_,newCountry:p,metadata:x,useNationalFormat:!b}),j=it(U,p,x);P&&n.inputRef.current.focus(),n.setState({country:p,latestCountrySelectedByUser:p,hasUserSelectedACountry:!0,phoneDigits:U,value:j},function(){T(j)})}),Ae(n,"onChange",function(p){var h=n.props,b=h.defaultCountry,x=h.onChange,T=h.addInternationalOption,P=h.international,I=h.limitMaxLength,E=h.countryCallingCodeEditable,_=h.metadata,U=n.state,j=U.countries,J=U.phoneDigits,M=U.country,B=U.latestCountrySelectedByUser,K=c2(p,{prevPhoneDigits:J,country:M,countryRequired:!T,defaultCountry:b,latestCountrySelectedByUser:B,getAnyCountry:function(){return n.getFirstSupportedCountry({countries:j})},countries:j,international:P,limitMaxLength:I,countryCallingCodeEditable:E,metadata:_}),H=K.phoneDigits,q=K.country,Z=K.value,te={phoneDigits:H,value:Z,country:q};B&&Z&&!ot(Z,B,_)&&(te.latestCountrySelectedByUser=void 0),E===!1&&!Z&&H===n.state.phoneDigits&&(te.forceRerender={}),n.setState(te,function(){return x(Z)})}),Ae(n,"_onFocus",function(){return n.setState({isFocused:!0})}),Ae(n,"_onBlur",function(){return n.setState({isFocused:!1})}),Ae(n,"onFocus",function(p){n._onFocus();var h=n.props.onFocus;h&&h(p)}),Ae(n,"onBlur",function(p){var h=n.props.onBlur;n._onBlur(),h&&h(p)}),Ae(n,"onCountryFocus",function(p){n._onFocus();var h=n.props.countrySelectProps;if(h){var b=h.onFocus;b&&b(p)}}),Ae(n,"onCountryBlur",function(p){n._onBlur();var h=n.props.countrySelectProps;if(h){var b=h.onBlur;b&&b(p)}}),n.inputRef=N.createRef();var a=n.props,i=a.value;a.labels;var o=a.international,s=a.addInternationalOption,u=a.displayInitialValueAsLocalNumber,l=a.initialValueFormat,d=a.metadata,c=n.props,$=c.defaultCountry,v=c.countries;$&&(n.isCountrySupportedWithError($)||($=void 0)),i&&Iu(i),v=wu(v,d);var g=Eu(i,d);n.CountryIcon=Nu(n.props);var m=i2({value:i,phoneNumber:g,defaultCountry:$,required:!s,countries:v||yi(d),getAnyCountry:function(){return n.getFirstSupportedCountry({countries:v})},metadata:d});return n.state={props:n.props,country:m,countries:v,phoneDigits:Tu({value:i,phoneNumber:g,defaultCountry:$,international:o,useNationalFormat:u||l==="national",metadata:d}),value:i},n}return w2(t,e),O2(t,[{key:"componentDidMount",value:function(){var n=this.props.onCountryChange,a=this.props.defaultCountry,i=this.state.country;n&&(a&&(this.isCountrySupportedWithError(a)||(a=void 0)),i!==a&&n(i))}},{key:"componentDidUpdate",value:function(n,a){var i=this.props.onCountryChange,o=this.state.country;i&&o!==a.country&&i(o)}},{key:"getCountrySelectOptions",value:function(n){var a=n.countries,i=this.props,o=i.international,s=i.countryCallingCodeEditable,u=i.countryOptionsOrder,l=i.addInternationalOption,d=i.labels,c=i.locales,$=i.metadata;return this.useMemoCountrySelectOptions(function(){return e2(o2({countries:a||yi($),countryNames:d,addInternationalOption:o&&s===!1?!1:l,compareStringsLocales:c}),t2(u,$))},[a,u,l,d,$])}},{key:"useMemoCountrySelectOptions",value:function(n,a){return(!this.countrySelectOptionsMemoDependencies||!F2(a,this.countrySelectOptionsMemoDependencies))&&(this.countrySelectOptionsMemo=n(),this.countrySelectOptionsMemoDependencies=a),this.countrySelectOptionsMemo}},{key:"getFirstSupportedCountry",value:function(n){var a=n.countries,i=this.getCountrySelectOptions({countries:a});return i[0].value}},{key:"render",value:function(){var n=this.props,a=n.name,i=n.disabled,o=n.readOnly,s=n.autoComplete,u=n.style,l=n.className;n.inputRef;var d=n.inputComponent,c=n.numberInputProps,$=n.smartCaret,v=n.countrySelectComponent,g=n.countrySelectProps,m=n.containerComponent,p=n.containerComponentProps;n.defaultCountry,n.countries,n.countryOptionsOrder;var h=n.labels;n.flags,n.flagComponent,n.flagUrl,n.addInternationalOption,n.internationalIcon,n.displayInitialValueAsLocalNumber,n.initialValueFormat,n.onCountryChange,n.limitMaxLength,n.countryCallingCodeEditable,n.focusInputOnCountrySelection,n.reset;var b=n.metadata,x=n.international;n.locales;var T=b2(n,y2),P=this.state,I=P.country,E=P.countries,_=P.phoneDigits,U=P.isFocused,j=$?E1:_1,J=this.getCountrySelectOptions({countries:E});return N.createElement(m,ut({style:u,className:nr(l,"PhoneInput",{"PhoneInput--focus":U,"PhoneInput--disabled":i,"PhoneInput--readOnly":o})},p),N.createElement(v,ut({name:a?"".concat(a,"Country"):void 0,"aria-label":h.country},g,{value:I,options:J,onChange:this.onCountryChange,onFocus:this.onCountryFocus,onBlur:this.onCountryBlur,disabled:i||g&&g.disabled,readOnly:o||g&&g.readOnly,iconComponent:this.CountryIcon})),N.createElement(j,ut({ref:this.setInputRef,type:"tel",autoComplete:s},c,T,{inputFormat:x===!0?"INTERNATIONAL":x===!1?"NATIONAL":"INTERNATIONAL_OR_NATIONAL",international:x?!0:void 0,withCountryCallingCode:x?!0:void 0,name:a,metadata:b,country:I,value:_||"",onChange:this.onChange,onFocus:this.onFocus,onBlur:this.onBlur,disabled:i,readOnly:o,inputComponent:d,className:nr("PhoneInputInput",c&&c.className,T.className)})))}}],[{key:"getDerivedStateFromProps",value:function(n,a){return Ru({props:n},m2(n,a.props,a))}}])}(N.PureComponent),Du=N.forwardRef(function(e,t){return N.createElement(E2,ut({},A2(e),{inputRef:t}))});Du.propTypes={value:O.string,onChange:O.func.isRequired,onFocus:O.func,onBlur:O.func,disabled:O.bool,readOnly:O.bool,autoComplete:O.string,initialValueFormat:O.oneOf(["national"]),displayInitialValueAsLocalNumber:O.bool,defaultCountry:O.string,countries:O.arrayOf(O.string),labels:Yo,locales:O.oneOfType([O.string,O.arrayOf(O.string)]),flagUrl:O.string,flags:O.objectOf(O.elementType),flagComponent:O.elementType,addInternationalOption:O.bool,internationalIcon:O.elementType,countryOptionsOrder:O.arrayOf(O.string),style:O.object,className:O.string,countrySelectComponent:O.elementType,countrySelectProps:O.object,inputComponent:O.elementType,numberInputProps:O.object,containerComponent:O.elementType,containerComponentProps:O.object,smartCaret:O.bool,international:O.bool,limitMaxLength:O.bool,countryCallingCodeEditable:O.bool,metadata:Gn,onCountryChange:O.func,focusInputOnCountrySelection:O.bool};var Ei={autoComplete:"tel",countrySelectComponent:Su,flagComponent:qn,flagUrl:"https://purecatamphetamine.github.io/country-flag-icons/3x2/{XX}.svg",internationalIcon:Sr,inputComponent:"input",containerComponent:"div",reset:O.any,smartCaret:!0,addInternationalOption:!0,countryCallingCodeEditable:!0,focusInputOnCountrySelection:!0};function A2(e){e=Ru({},e);for(var t in Ei)e[t]===void 0&&(e[t]=Ei[t]);return e}function F2(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;){if(e[r]!==t[r])return!1;r++}return!0}var T2=["metadata","labels"];function In(){return In=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},In.apply(this,arguments)}function R2(e,t){if(e==null)return{};var r=_2(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function _2(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i<n.length;i++)a=n[i],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}function M2(e){var t=N.forwardRef(function(r,n){var a=r.metadata,i=a===void 0?e:a,o=r.labels,s=o===void 0?ec:o,u=R2(r,T2);return N.createElement(Du,In({},u,{ref:n,metadata:i,labels:s}))});return t.propTypes={metadata:Gn,labels:Yo},t}const D2=M2();var k2=["metadata"];function wn(){return wn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},wn.apply(this,arguments)}function L2(e,t){if(e==null)return{};var r=V2(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function V2(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i<n.length;i++)a=n[i],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}function ku(e){var t=function(n,a){var i=n.metadata,o=i===void 0?e:i,s=L2(n,k2);return N.createElement(rr,wn({},s,{ref:a,metadata:o,Component:D2}))};return t=N.forwardRef(t),t.propTypes={metadata:Gn},t}ku();const j2=ku(kd),B2=({control:e,fieldName:t,required:r=!1,maxLength:n,isDisabled:a=!1,defaultValue:i,moreCss:o})=>W.jsx("div",{className:`w-full rounded border-2 border-stroke bg-transparent px-3 py-2.5 text-black outline-none transition focus:border-primary active:border-primary disabled:cursor-default disabled:bg-whiter dark:border-form-strokedark dark:bg-form-input dark:text-white dark:focus:border-primary ${o}`,children:W.jsx(j2,{name:t||"phoneNumber",control:e,rules:{required:r?"This field is required.":!1,maxLength:{value:n,message:"Invalid phone number"},minLength:{value:n,message:"Invalid phone number"}},international:!0,defaultValue:i,defaultCountry:"NG",countryCallingCodeEditable:!1,disabled:a})});function et(e){"@babel/helpers - typeof";return et=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},et(e)}function U2(e,t){if(et(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(et(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Lu(e){var t=U2(e,"string");return et(t)=="symbol"?t:t+""}function Ct(e,t,r){return(t=Lu(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ai(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function k(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ai(Object(r),!0).forEach(function(n){Ct(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ai(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function H2(e){if(Array.isArray(e))return e}function G2(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,o,s=[],u=!0,l=!1;try{if(i=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(d){l=!0,a=d}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw a}}return s}}function Nn(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Vu(e,t){if(e){if(typeof e=="string")return Nn(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Nn(e,t):void 0}}function W2(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ge(e,t){return H2(e)||G2(e,t)||Vu(e,t)||W2()}function K2(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}function qe(e,t){if(e==null)return{};var r,n,a=K2(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var q2=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function z2(e){var t=e.defaultInputValue,r=t===void 0?"":t,n=e.defaultMenuIsOpen,a=n===void 0?!1:n,i=e.defaultValue,o=i===void 0?null:i,s=e.inputValue,u=e.menuIsOpen,l=e.onChange,d=e.onInputChange,c=e.onMenuClose,$=e.onMenuOpen,v=e.value,g=qe(e,q2),m=S.useState(s!==void 0?s:r),p=Ge(m,2),h=p[0],b=p[1],x=S.useState(u!==void 0?u:a),T=Ge(x,2),P=T[0],I=T[1],E=S.useState(v!==void 0?v:o),_=Ge(E,2),U=_[0],j=_[1],J=S.useCallback(function(te,$e){typeof l=="function"&&l(te,$e),j(te)},[l]),M=S.useCallback(function(te,$e){var ye;typeof d=="function"&&(ye=d(te,$e)),b(ye!==void 0?ye:te)},[d]),B=S.useCallback(function(){typeof $=="function"&&$(),I(!0)},[$]),K=S.useCallback(function(){typeof c=="function"&&c(),I(!1)},[c]),H=s!==void 0?s:h,q=u!==void 0?u:P,Z=v!==void 0?v:U;return k(k({},g),{},{inputValue:H,menuIsOpen:q,onChange:J,onInputChange:M,onMenuClose:K,onMenuOpen:B,value:Z})}function V(){return V=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},V.apply(null,arguments)}function Y2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fi(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Lu(n.key),n)}}function Z2(e,t,r){return t&&Fi(e.prototype,t),r&&Fi(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function En(e,t){return En=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},En(e,t)}function X2(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&En(e,t)}function lr(e){return lr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},lr(e)}function ju(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ju=function(){return!!e})()}function J2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Q2(e,t){if(t&&(et(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return J2(e)}function e3(e){var t=ju();return function(){var r,n=lr(e);if(t){var a=lr(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return Q2(this,r)}}function t3(e){if(Array.isArray(e))return Nn(e)}function r3(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function n3(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Yn(e){return t3(e)||r3(e)||Vu(e)||n3()}var a3=!1;function i3(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function o3(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var u3=function(){function e(r){var n=this;this._insertTag=function(a){var i;n.tags.length===0?n.insertionPoint?i=n.insertionPoint.nextSibling:n.prepend?i=n.container.firstChild:i=n.before:i=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(a,i),n.tags.push(a)},this.isSpeedy=r.speedy===void 0?!a3:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(o3(this));var a=this.tags[this.tags.length-1];if(this.isSpeedy){var i=i3(a);try{i.insertRule(n,i.cssRules.length)}catch{}}else a.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){var a;return(a=n.parentNode)==null?void 0:a.removeChild(n)}),this.tags=[],this.ctr=0},e}(),pe="-ms-",dr="-moz-",z="-webkit-",Bu="comm",Zn="rule",Xn="decl",s3="@import",Uu="@keyframes",l3="@layer",d3=Math.abs,Pr=String.fromCharCode,c3=Object.assign;function f3(e,t){return fe(e,0)^45?(((t<<2^fe(e,0))<<2^fe(e,1))<<2^fe(e,2))<<2^fe(e,3):0}function Hu(e){return e.trim()}function p3(e,t){return(e=t.exec(e))?e[0]:e}function Y(e,t,r){return e.replace(t,r)}function An(e,t){return e.indexOf(t)}function fe(e,t){return e.charCodeAt(t)|0}function Et(e,t,r){return e.slice(t,r)}function De(e){return e.length}function Jn(e){return e.length}function Vt(e,t){return t.push(e),e}function $3(e,t){return e.map(t).join("")}var xr=1,ct=1,Gu=0,Se=0,oe=0,pt="";function Ir(e,t,r,n,a,i,o){return{value:e,root:t,parent:r,type:n,props:a,children:i,line:xr,column:ct,length:o,return:""}}function yt(e,t){return c3(Ir("",null,null,"",null,null,0),e,{length:-e.length},t)}function h3(){return oe}function g3(){return oe=Se>0?fe(pt,--Se):0,ct--,oe===10&&(ct=1,xr--),oe}function Ie(){return oe=Se<Gu?fe(pt,Se++):0,ct++,oe===10&&(ct=1,xr++),oe}function je(){return fe(pt,Se)}function zt(){return Se}function Mt(e,t){return Et(pt,e,t)}function At(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Wu(e){return xr=ct=1,Gu=De(pt=e),Se=0,[]}function Ku(e){return pt="",e}function Yt(e){return Hu(Mt(Se-1,Fn(e===91?e+2:e===40?e+1:e)))}function v3(e){for(;(oe=je())&&oe<33;)Ie();return At(e)>2||At(oe)>3?"":" "}function m3(e,t){for(;--t&&Ie()&&!(oe<48||oe>102||oe>57&&oe<65||oe>70&&oe<97););return Mt(e,zt()+(t<6&&je()==32&&Ie()==32))}function Fn(e){for(;Ie();)switch(oe){case e:return Se;case 34:case 39:e!==34&&e!==39&&Fn(oe);break;case 40:e===41&&Fn(e);break;case 92:Ie();break}return Se}function y3(e,t){for(;Ie()&&e+oe!==57;)if(e+oe===84&&je()===47)break;return"/*"+Mt(t,Se-1)+"*"+Pr(e===47?e:Ie())}function b3(e){for(;!At(je());)Ie();return Mt(e,Se)}function C3(e){return Ku(Zt("",null,null,null,[""],e=Wu(e),0,[0],e))}function Zt(e,t,r,n,a,i,o,s,u){for(var l=0,d=0,c=o,$=0,v=0,g=0,m=1,p=1,h=1,b=0,x="",T=a,P=i,I=n,E=x;p;)switch(g=b,b=Ie()){case 40:if(g!=108&&fe(E,c-1)==58){An(E+=Y(Yt(b),"&","&\f"),"&\f")!=-1&&(h=-1);break}case 34:case 39:case 91:E+=Yt(b);break;case 9:case 10:case 13:case 32:E+=v3(g);break;case 92:E+=m3(zt()-1,7);continue;case 47:switch(je()){case 42:case 47:Vt(S3(y3(Ie(),zt()),t,r),u);break;default:E+="/"}break;case 123*m:s[l++]=De(E)*h;case 125*m:case 59:case 0:switch(b){case 0:case 125:p=0;case 59+d:h==-1&&(E=Y(E,/\f/g,"")),v>0&&De(E)-c&&Vt(v>32?Ri(E+";",n,r,c-1):Ri(Y(E," ","")+";",n,r,c-2),u);break;case 59:E+=";";default:if(Vt(I=Ti(E,t,r,l,d,a,s,x,T=[],P=[],c),i),b===123)if(d===0)Zt(E,t,I,I,T,i,c,s,P);else switch($===99&&fe(E,3)===110?100:$){case 100:case 108:case 109:case 115:Zt(e,I,I,n&&Vt(Ti(e,I,I,0,0,a,s,x,a,T=[],c),P),a,P,c,s,n?T:P);break;default:Zt(E,I,I,I,[""],P,0,s,P)}}l=d=v=0,m=h=1,x=E="",c=o;break;case 58:c=1+De(E),v=g;default:if(m<1){if(b==123)--m;else if(b==125&&m++==0&&g3()==125)continue}switch(E+=Pr(b),b*m){case 38:h=d>0?1:(E+="\f",-1);break;case 44:s[l++]=(De(E)-1)*h,h=1;break;case 64:je()===45&&(E+=Yt(Ie())),$=je(),d=c=De(x=E+=b3(zt())),b++;break;case 45:g===45&&De(E)==2&&(m=0)}}return i}function Ti(e,t,r,n,a,i,o,s,u,l,d){for(var c=a-1,$=a===0?i:[""],v=Jn($),g=0,m=0,p=0;g<n;++g)for(var h=0,b=Et(e,c+1,c=d3(m=o[g])),x=e;h<v;++h)(x=Hu(m>0?$[h]+" "+b:Y(b,/&\f/g,$[h])))&&(u[p++]=x);return Ir(e,t,r,a===0?Zn:s,u,l,d)}function S3(e,t,r){return Ir(e,t,r,Bu,Pr(h3()),Et(e,2,-2),0)}function Ri(e,t,r,n){return Ir(e,t,r,Xn,Et(e,0,n),Et(e,n+1,-1),n)}function st(e,t){for(var r="",n=Jn(e),a=0;a<n;a++)r+=t(e[a],a,e,t)||"";return r}function O3(e,t,r,n){switch(e.type){case l3:if(e.children.length)break;case s3:case Xn:return e.return=e.return||e.value;case Bu:return"";case Uu:return e.return=e.value+"{"+st(e.children,n)+"}";case Zn:e.value=e.props.join(",")}return De(r=st(e.children,n))?e.return=e.value+"{"+r+"}":""}function P3(e){var t=Jn(e);return function(r,n,a,i){for(var o="",s=0;s<t;s++)o+=e[s](r,n,a,i)||"";return o}}function x3(e){return function(t){t.root||(t=t.return)&&e(t)}}function I3(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var w3=function(t,r,n){for(var a=0,i=0;a=i,i=je(),a===38&&i===12&&(r[n]=1),!At(i);)Ie();return Mt(t,Se)},N3=function(t,r){var n=-1,a=44;do switch(At(a)){case 0:a===38&&je()===12&&(r[n]=1),t[n]+=w3(Se-1,r,n);break;case 2:t[n]+=Yt(a);break;case 4:if(a===44){t[++n]=je()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=Pr(a)}while(a=Ie());return t},E3=function(t,r){return Ku(N3(Wu(t),r))},_i=new WeakMap,A3=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,a=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!_i.get(n))&&!a){_i.set(t,!0);for(var i=[],o=E3(r,i),s=n.props,u=0,l=0;u<o.length;u++)for(var d=0;d<s.length;d++,l++)t.props[l]=i[u]?o[u].replace(/&\f/g,s[d]):s[d]+" "+o[u]}}},F3=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function qu(e,t){switch(f3(e,t)){case 5103:return z+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return z+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return z+e+dr+e+pe+e+e;case 6828:case 4268:return z+e+pe+e+e;case 6165:return z+e+pe+"flex-"+e+e;case 5187:return z+e+Y(e,/(\w+).+(:[^]+)/,z+"box-$1$2"+pe+"flex-$1$2")+e;case 5443:return z+e+pe+"flex-item-"+Y(e,/flex-|-self/,"")+e;case 4675:return z+e+pe+"flex-line-pack"+Y(e,/align-content|flex-|-self/,"")+e;case 5548:return z+e+pe+Y(e,"shrink","negative")+e;case 5292:return z+e+pe+Y(e,"basis","preferred-size")+e;case 6060:return z+"box-"+Y(e,"-grow","")+z+e+pe+Y(e,"grow","positive")+e;case 4554:return z+Y(e,/([^-])(transform)/g,"$1"+z+"$2")+e;case 6187:return Y(Y(Y(e,/(zoom-|grab)/,z+"$1"),/(image-set)/,z+"$1"),e,"")+e;case 5495:case 3959:return Y(e,/(image-set\([^]*)/,z+"$1$`$1");case 4968:return Y(Y(e,/(.+:)(flex-)?(.*)/,z+"box-pack:$3"+pe+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+z+e+e;case 4095:case 3583:case 4068:case 2532:return Y(e,/(.+)-inline(.+)/,z+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(De(e)-1-t>6)switch(fe(e,t+1)){case 109:if(fe(e,t+4)!==45)break;case 102:return Y(e,/(.+:)(.+)-([^]+)/,"$1"+z+"$2-$3$1"+dr+(fe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~An(e,"stretch")?qu(Y(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(fe(e,t+1)!==115)break;case 6444:switch(fe(e,De(e)-3-(~An(e,"!important")&&10))){case 107:return Y(e,":",":"+z)+e;case 101:return Y(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+z+(fe(e,14)===45?"inline-":"")+"box$3$1"+z+"$2$3$1"+pe+"$2box$3")+e}break;case 5936:switch(fe(e,t+11)){case 114:return z+e+pe+Y(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return z+e+pe+Y(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return z+e+pe+Y(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return z+e+pe+e+e}return e}var T3=function(t,r,n,a){if(t.length>-1&&!t.return)switch(t.type){case Xn:t.return=qu(t.value,t.length);break;case Uu:return st([yt(t,{value:Y(t.value,"@","@"+z)})],a);case Zn:if(t.length)return $3(t.props,function(i){switch(p3(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return st([yt(t,{props:[Y(i,/:(read-\w+)/,":"+dr+"$1")]})],a);case"::placeholder":return st([yt(t,{props:[Y(i,/:(plac\w+)/,":"+z+"input-$1")]}),yt(t,{props:[Y(i,/:(plac\w+)/,":"+dr+"$1")]}),yt(t,{props:[Y(i,/:(plac\w+)/,pe+"input-$1")]})],a)}return""})}},R3=[T3],_3=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(m){var p=m.getAttribute("data-emotion");p.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var a=t.stylisPlugins||R3,i={},o,s=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(m){for(var p=m.getAttribute("data-emotion").split(" "),h=1;h<p.length;h++)i[p[h]]=!0;s.push(m)});var u,l=[A3,F3];{var d,c=[O3,x3(function(m){d.insert(m)})],$=P3(l.concat(a,c)),v=function(p){return st(C3(p),$)};u=function(p,h,b,x){d=b,v(p?p+"{"+h.styles+"}":h.styles),x&&(g.inserted[h.name]=!0)}}var g={key:r,sheet:new u3({key:r,container:o,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:u};return g.sheet.hydrate(s),g},zu={exports:{}},X={};/** @license React v16.13.1
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var ce=typeof Symbol=="function"&&Symbol.for,Qn=ce?Symbol.for("react.element"):60103,ea=ce?Symbol.for("react.portal"):60106,wr=ce?Symbol.for("react.fragment"):60107,Nr=ce?Symbol.for("react.strict_mode"):60108,Er=ce?Symbol.for("react.profiler"):60114,Ar=ce?Symbol.for("react.provider"):60109,Fr=ce?Symbol.for("react.context"):60110,ta=ce?Symbol.for("react.async_mode"):60111,Tr=ce?Symbol.for("react.concurrent_mode"):60111,Rr=ce?Symbol.for("react.forward_ref"):60112,_r=ce?Symbol.for("react.suspense"):60113,M3=ce?Symbol.for("react.suspense_list"):60120,Mr=ce?Symbol.for("react.memo"):60115,Dr=ce?Symbol.for("react.lazy"):60116,D3=ce?Symbol.for("react.block"):60121,k3=ce?Symbol.for("react.fundamental"):60117,L3=ce?Symbol.for("react.responder"):60118,V3=ce?Symbol.for("react.scope"):60119;function we(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Qn:switch(e=e.type,e){case ta:case Tr:case wr:case Er:case Nr:case _r:return e;default:switch(e=e&&e.$$typeof,e){case Fr:case Rr:case Dr:case Mr:case Ar:return e;default:return t}}case ea:return t}}}function Yu(e){return we(e)===Tr}X.AsyncMode=ta;X.ConcurrentMode=Tr;X.ContextConsumer=Fr;X.ContextProvider=Ar;X.Element=Qn;X.ForwardRef=Rr;X.Fragment=wr;X.Lazy=Dr;X.Memo=Mr;X.Portal=ea;X.Profiler=Er;X.StrictMode=Nr;X.Suspense=_r;X.isAsyncMode=function(e){return Yu(e)||we(e)===ta};X.isConcurrentMode=Yu;X.isContextConsumer=function(e){return we(e)===Fr};X.isContextProvider=function(e){return we(e)===Ar};X.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Qn};X.isForwardRef=function(e){return we(e)===Rr};X.isFragment=function(e){return we(e)===wr};X.isLazy=function(e){return we(e)===Dr};X.isMemo=function(e){return we(e)===Mr};X.isPortal=function(e){return we(e)===ea};X.isProfiler=function(e){return we(e)===Er};X.isStrictMode=function(e){return we(e)===Nr};X.isSuspense=function(e){return we(e)===_r};X.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===wr||e===Tr||e===Er||e===Nr||e===_r||e===M3||typeof e=="object"&&e!==null&&(e.$$typeof===Dr||e.$$typeof===Mr||e.$$typeof===Ar||e.$$typeof===Fr||e.$$typeof===Rr||e.$$typeof===k3||e.$$typeof===L3||e.$$typeof===V3||e.$$typeof===D3)};X.typeOf=we;zu.exports=X;var j3=zu.exports,Zu=j3,B3={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},U3={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Xu={};Xu[Zu.ForwardRef]=B3;Xu[Zu.Memo]=U3;var H3=!0;function G3(e,t,r){var n="";return r.split(" ").forEach(function(a){e[a]!==void 0?t.push(e[a]+";"):a&&(n+=a+" ")}),n}var Ju=function(t,r,n){var a=t.key+"-"+r.name;(n===!1||H3===!1)&&t.registered[a]===void 0&&(t.registered[a]=r.styles)},W3=function(t,r,n){Ju(t,r,n);var a=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var i=r;do t.insert(r===i?"."+a:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function K3(e){for(var t=0,r,n=0,a=e.length;a>=4;++n,a-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var q3={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},z3=!1,Y3=/[A-Z]|^ms/g,Z3=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Qu=function(t){return t.charCodeAt(1)===45},Mi=function(t){return t!=null&&typeof t!="boolean"},Yr=I3(function(e){return Qu(e)?e:e.replace(Y3,"-$&").toLowerCase()}),Di=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(Z3,function(n,a,i){return ke={name:a,styles:i,next:ke},a})}return q3[t]!==1&&!Qu(t)&&typeof r=="number"&&r!==0?r+"px":r},X3="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Ft(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var a=r;if(a.anim===1)return ke={name:a.name,styles:a.styles,next:ke},a.name;var i=r;if(i.styles!==void 0){var o=i.next;if(o!==void 0)for(;o!==void 0;)ke={name:o.name,styles:o.styles,next:ke},o=o.next;var s=i.styles+";";return s}return J3(e,t,r)}case"function":{if(e!==void 0){var u=ke,l=r(e);return ke=u,Ft(e,t,l)}break}}var d=r;return d}function J3(e,t,r){var n="";if(Array.isArray(r))for(var a=0;a<r.length;a++)n+=Ft(e,t,r[a])+";";else for(var i in r){var o=r[i];if(typeof o!="object"){var s=o;Mi(s)&&(n+=Yr(i)+":"+Di(i,s)+";")}else{if(i==="NO_COMPONENT_SELECTOR"&&z3)throw new Error(X3);if(Array.isArray(o)&&typeof o[0]=="string"&&t==null)for(var u=0;u<o.length;u++)Mi(o[u])&&(n+=Yr(i)+":"+Di(i,o[u])+";");else{var l=Ft(e,t,o);switch(i){case"animation":case"animationName":{n+=Yr(i)+":"+l+";";break}default:n+=i+"{"+l+"}"}}}}return n}var ki=/label:\s*([^\s;{]+)\s*(;|$)/g,ke;function es(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,a="";ke=void 0;var i=e[0];if(i==null||i.raw===void 0)n=!1,a+=Ft(r,t,i);else{var o=i;a+=o[0]}for(var s=1;s<e.length;s++)if(a+=Ft(r,t,e[s]),n){var u=i;a+=u[s]}ki.lastIndex=0;for(var l="",d;(d=ki.exec(a))!==null;)l+="-"+d[1];var c=K3(a)+l;return{name:c,styles:a,next:ke}}var Q3=function(t){return t()},ep=va.useInsertionEffect?va.useInsertionEffect:!1,tp=ep||Q3,rp=!1,ts=S.createContext(typeof HTMLElement<"u"?_3({key:"css"}):null);ts.Provider;var np=function(t){return S.forwardRef(function(r,n){var a=S.useContext(ts);return t(r,a,n)})},ap=S.createContext({}),ra={}.hasOwnProperty,Tn="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",ip=function(t,r){var n={};for(var a in r)ra.call(r,a)&&(n[a]=r[a]);return n[Tn]=t,n},op=function(t){var r=t.cache,n=t.serialized,a=t.isStringTag;return Ju(r,n,a),tp(function(){return W3(r,n,a)}),null},up=np(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var a=e[Tn],i=[n],o="";typeof e.className=="string"?o=G3(t.registered,i,e.className):e.className!=null&&(o=e.className+" ");var s=es(i,void 0,S.useContext(ap));o+=t.key+"-"+s.name;var u={};for(var l in e)ra.call(e,l)&&l!=="css"&&l!==Tn&&!rp&&(u[l]=e[l]);return u.className=o,r&&(u.ref=r),S.createElement(S.Fragment,null,S.createElement(op,{cache:t,serialized:s,isStringTag:typeof a=="string"}),S.createElement(a,u))}),sp=up,D=function(t,r){var n=arguments;if(r==null||!ra.call(r,"css"))return S.createElement.apply(void 0,n);var a=n.length,i=new Array(a);i[0]=sp,i[1]=ip(t,r);for(var o=2;o<a;o++)i[o]=n[o];return S.createElement.apply(null,i)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(D||(D={}));function na(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return es(t)}function lp(){var e=na.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}function dp(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const cp=Math.min,fp=Math.max,cr=Math.round,jt=Math.floor,fr=e=>({x:e,y:e});function pp(e){const{x:t,y:r,width:n,height:a}=e;return{width:n,height:a,top:r,left:t,right:t+n,bottom:r+a,x:t,y:r}}function kr(){return typeof window<"u"}function rs(e){return as(e)?(e.nodeName||"").toLowerCase():"#document"}function Ke(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ns(e){var t;return(t=(as(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function as(e){return kr()?e instanceof Node||e instanceof Ke(e).Node:!1}function $p(e){return kr()?e instanceof Element||e instanceof Ke(e).Element:!1}function aa(e){return kr()?e instanceof HTMLElement||e instanceof Ke(e).HTMLElement:!1}function Li(e){return!kr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ke(e).ShadowRoot}function is(e){const{overflow:t,overflowX:r,overflowY:n,display:a}=ia(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(a)}function hp(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function gp(e){return["html","body","#document"].includes(rs(e))}function ia(e){return Ke(e).getComputedStyle(e)}function vp(e){if(rs(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Li(e)&&e.host||ns(e);return Li(t)?t.host:t}function os(e){const t=vp(e);return gp(t)?e.ownerDocument?e.ownerDocument.body:e.body:aa(t)&&is(t)?t:os(t)}function pr(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const a=os(e),i=a===((n=e.ownerDocument)==null?void 0:n.body),o=Ke(a);if(i){const s=Rn(o);return t.concat(o,o.visualViewport||[],is(a)?a:[],s&&r?pr(s):[])}return t.concat(a,pr(a,[],r))}function Rn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function mp(e){const t=ia(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const a=aa(e),i=a?e.offsetWidth:r,o=a?e.offsetHeight:n,s=cr(r)!==i||cr(n)!==o;return s&&(r=i,n=o),{width:r,height:n,$:s}}function oa(e){return $p(e)?e:e.contextElement}function Vi(e){const t=oa(e);if(!aa(t))return fr(1);const r=t.getBoundingClientRect(),{width:n,height:a,$:i}=mp(t);let o=(i?cr(r.width):r.width)/n,s=(i?cr(r.height):r.height)/a;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const yp=fr(0);function bp(e){const t=Ke(e);return!hp()||!t.visualViewport?yp:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Cp(e,t,r){return!1}function ji(e,t,r,n){t===void 0&&(t=!1);const a=e.getBoundingClientRect(),i=oa(e);let o=fr(1);t&&(o=Vi(e));const s=Cp()?bp(i):fr(0);let u=(a.left+s.x)/o.x,l=(a.top+s.y)/o.y,d=a.width/o.x,c=a.height/o.y;if(i){const $=Ke(i),v=n;let g=$,m=Rn(g);for(;m&&n&&v!==g;){const p=Vi(m),h=m.getBoundingClientRect(),b=ia(m),x=h.left+(m.clientLeft+parseFloat(b.paddingLeft))*p.x,T=h.top+(m.clientTop+parseFloat(b.paddingTop))*p.y;u*=p.x,l*=p.y,d*=p.x,c*=p.y,u+=x,l+=T,g=Ke(m),m=Rn(g)}}return pp({width:d,height:c,x:u,y:l})}function Sp(e,t){let r=null,n;const a=ns(e);function i(){var s;clearTimeout(n),(s=r)==null||s.disconnect(),r=null}function o(s,u){s===void 0&&(s=!1),u===void 0&&(u=1),i();const{left:l,top:d,width:c,height:$}=e.getBoundingClientRect();if(s||t(),!c||!$)return;const v=jt(d),g=jt(a.clientWidth-(l+c)),m=jt(a.clientHeight-(d+$)),p=jt(l),b={rootMargin:-v+"px "+-g+"px "+-m+"px "+-p+"px",threshold:fp(0,cp(1,u))||1};let x=!0;function T(P){const I=P[0].intersectionRatio;if(I!==u){if(!x)return o();I?o(!1,I):n=setTimeout(()=>{o(!1,1e-7)},1e3)}x=!1}try{r=new IntersectionObserver(T,{...b,root:a.ownerDocument})}catch{r=new IntersectionObserver(T,b)}r.observe(e)}return o(!0),i}function Op(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:a=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:u=!1}=n,l=oa(e),d=a||i?[...l?pr(l):[],...pr(t)]:[];d.forEach(h=>{a&&h.addEventListener("scroll",r,{passive:!0}),i&&h.addEventListener("resize",r)});const c=l&&s?Sp(l,r):null;let $=-1,v=null;o&&(v=new ResizeObserver(h=>{let[b]=h;b&&b.target===l&&v&&(v.unobserve(t),cancelAnimationFrame($),$=requestAnimationFrame(()=>{var x;(x=v)==null||x.observe(t)})),r()}),l&&!u&&v.observe(l),v.observe(t));let g,m=u?ji(e):null;u&&p();function p(){const h=ji(e);m&&(h.x!==m.x||h.y!==m.y||h.width!==m.width||h.height!==m.height)&&r(),m=h,g=requestAnimationFrame(p)}return r(),()=>{var h;d.forEach(b=>{a&&b.removeEventListener("scroll",r),i&&b.removeEventListener("resize",r)}),c==null||c(),(h=v)==null||h.disconnect(),v=null,u&&cancelAnimationFrame(g)}}var _n=S.useLayoutEffect,Pp=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],$r=function(){};function xp(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function Ip(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),a=2;a<r;a++)n[a-2]=arguments[a];var i=[].concat(n);if(t&&e)for(var o in t)t.hasOwnProperty(o)&&t[o]&&i.push("".concat(xp(e,o)));return i.filter(function(s){return s}).map(function(s){return String(s).trim()}).join(" ")}var Bi=function(t){return Mp(t)?t.filter(Boolean):et(t)==="object"&&t!==null?[t]:[]},us=function(t){t.className,t.clearValue,t.cx,t.getStyles,t.getClassNames,t.getValue,t.hasValue,t.isMulti,t.isRtl,t.options,t.selectOption,t.selectProps,t.setValue,t.theme;var r=qe(t,Pp);return k({},r)},ne=function(t,r,n){var a=t.cx,i=t.getStyles,o=t.getClassNames,s=t.className;return{css:i(r,t),className:a(n??{},o(r,t),s)}};function Lr(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function wp(e){return Lr(e)?window.innerHeight:e.clientHeight}function ss(e){return Lr(e)?window.pageYOffset:e.scrollTop}function hr(e,t){if(Lr(e)){window.scrollTo(0,t);return}e.scrollTop=t}function Np(e){var t=getComputedStyle(e),r=t.position==="absolute",n=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var a=e;a=a.parentElement;)if(t=getComputedStyle(a),!(r&&t.position==="static")&&n.test(t.overflow+t.overflowY+t.overflowX))return a;return document.documentElement}function Ep(e,t,r,n){return r*((e=e/n-1)*e*e+1)+t}function Bt(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:$r,a=ss(e),i=t-a,o=10,s=0;function u(){s+=o;var l=Ep(s,a,i,r);hr(e,l),s<r?window.requestAnimationFrame(u):n(e)}u()}function Ui(e,t){var r=e.getBoundingClientRect(),n=t.getBoundingClientRect(),a=t.offsetHeight/3;n.bottom+a>r.bottom?hr(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+a,e.scrollHeight)):n.top-a<r.top&&hr(e,Math.max(t.offsetTop-a,0))}function Ap(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function Hi(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function Fp(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var ls=!1,Tp={get passive(){return ls=!0}},Ut=typeof window<"u"?window:{};Ut.addEventListener&&Ut.removeEventListener&&(Ut.addEventListener("p",$r,Tp),Ut.removeEventListener("p",$r,!1));var Rp=ls;function _p(e){return e!=null}function Mp(e){return Array.isArray(e)}function Ht(e,t,r){return e?t:r}var Dp=function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];var i=Object.entries(t).filter(function(o){var s=Ge(o,1),u=s[0];return!n.includes(u)});return i.reduce(function(o,s){var u=Ge(s,2),l=u[0],d=u[1];return o[l]=d,o},{})},kp=["children","innerProps"],Lp=["children","innerProps"];function Vp(e){var t=e.maxHeight,r=e.menuEl,n=e.minHeight,a=e.placement,i=e.shouldScroll,o=e.isFixedPosition,s=e.controlHeight,u=Np(r),l={placement:"bottom",maxHeight:t};if(!r||!r.offsetParent)return l;var d=u.getBoundingClientRect(),c=d.height,$=r.getBoundingClientRect(),v=$.bottom,g=$.height,m=$.top,p=r.offsetParent.getBoundingClientRect(),h=p.top,b=o?window.innerHeight:wp(u),x=ss(u),T=parseInt(getComputedStyle(r).marginBottom,10),P=parseInt(getComputedStyle(r).marginTop,10),I=h-P,E=b-m,_=I+x,U=c-x-m,j=v-b+x+T,J=x+m-P,M=160;switch(a){case"auto":case"bottom":if(E>=g)return{placement:"bottom",maxHeight:t};if(U>=g&&!o)return i&&Bt(u,j,M),{placement:"bottom",maxHeight:t};if(!o&&U>=n||o&&E>=n){i&&Bt(u,j,M);var B=o?E-T:U-T;return{placement:"bottom",maxHeight:B}}if(a==="auto"||o){var K=t,H=o?I:_;return H>=n&&(K=Math.min(H-T-s,t)),{placement:"top",maxHeight:K}}if(a==="bottom")return i&&hr(u,j),{placement:"bottom",maxHeight:t};break;case"top":if(I>=g)return{placement:"top",maxHeight:t};if(_>=g&&!o)return i&&Bt(u,J,M),{placement:"top",maxHeight:t};if(!o&&_>=n||o&&I>=n){var q=t;return(!o&&_>=n||o&&I>=n)&&(q=o?I-P:_-P),i&&Bt(u,J,M),{placement:"top",maxHeight:q}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(a,'".'))}return l}function jp(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var ds=function(t){return t==="auto"?"bottom":t},Bp=function(t,r){var n,a=t.placement,i=t.theme,o=i.borderRadius,s=i.spacing,u=i.colors;return k((n={label:"menu"},Ct(n,jp(a),"100%"),Ct(n,"position","absolute"),Ct(n,"width","100%"),Ct(n,"zIndex",1),n),r?{}:{backgroundColor:u.neutral0,borderRadius:o,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:s.menuGutter,marginTop:s.menuGutter})},cs=S.createContext(null),Up=function(t){var r=t.children,n=t.minMenuHeight,a=t.maxMenuHeight,i=t.menuPlacement,o=t.menuPosition,s=t.menuShouldScrollIntoView,u=t.theme,l=S.useContext(cs)||{},d=l.setPortalPlacement,c=S.useRef(null),$=S.useState(a),v=Ge($,2),g=v[0],m=v[1],p=S.useState(null),h=Ge(p,2),b=h[0],x=h[1],T=u.spacing.controlHeight;return _n(function(){var P=c.current;if(P){var I=o==="fixed",E=s&&!I,_=Vp({maxHeight:a,menuEl:P,minHeight:n,placement:i,shouldScroll:E,isFixedPosition:I,controlHeight:T});m(_.maxHeight),x(_.placement),d==null||d(_.placement)}},[a,i,o,s,n,d,T]),r({ref:c,placerProps:k(k({},t),{},{placement:b||ds(i),maxHeight:g})})},Hp=function(t){var r=t.children,n=t.innerRef,a=t.innerProps;return D("div",V({},ne(t,"menu",{menu:!0}),{ref:n},a),r)},Gp=Hp,Wp=function(t,r){var n=t.maxHeight,a=t.theme.spacing.baseUnit;return k({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},r?{}:{paddingBottom:a,paddingTop:a})},Kp=function(t){var r=t.children,n=t.innerProps,a=t.innerRef,i=t.isMulti;return D("div",V({},ne(t,"menuList",{"menu-list":!0,"menu-list--is-multi":i}),{ref:a},n),r)},fs=function(t,r){var n=t.theme,a=n.spacing.baseUnit,i=n.colors;return k({textAlign:"center"},r?{}:{color:i.neutral40,padding:"".concat(a*2,"px ").concat(a*3,"px")})},qp=fs,zp=fs,Yp=function(t){var r=t.children,n=r===void 0?"No options":r,a=t.innerProps,i=qe(t,kp);return D("div",V({},ne(k(k({},i),{},{children:n,innerProps:a}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),a),n)},Zp=function(t){var r=t.children,n=r===void 0?"Loading...":r,a=t.innerProps,i=qe(t,Lp);return D("div",V({},ne(k(k({},i),{},{children:n,innerProps:a}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),a),n)},Xp=function(t){var r=t.rect,n=t.offset,a=t.position;return{left:r.left,position:a,top:n,width:r.width,zIndex:1}},Jp=function(t){var r=t.appendTo,n=t.children,a=t.controlElement,i=t.innerProps,o=t.menuPlacement,s=t.menuPosition,u=S.useRef(null),l=S.useRef(null),d=S.useState(ds(o)),c=Ge(d,2),$=c[0],v=c[1],g=S.useMemo(function(){return{setPortalPlacement:v}},[]),m=S.useState(null),p=Ge(m,2),h=p[0],b=p[1],x=S.useCallback(function(){if(a){var E=Ap(a),_=s==="fixed"?0:window.pageYOffset,U=E[$]+_;(U!==(h==null?void 0:h.offset)||E.left!==(h==null?void 0:h.rect.left)||E.width!==(h==null?void 0:h.rect.width))&&b({offset:U,rect:E})}},[a,s,$,h==null?void 0:h.offset,h==null?void 0:h.rect.left,h==null?void 0:h.rect.width]);_n(function(){x()},[x]);var T=S.useCallback(function(){typeof l.current=="function"&&(l.current(),l.current=null),a&&u.current&&(l.current=Op(a,u.current,x,{elementResize:"ResizeObserver"in window}))},[a,x]);_n(function(){T()},[T]);var P=S.useCallback(function(E){u.current=E,T()},[T]);if(!r&&s!=="fixed"||!h)return null;var I=D("div",V({ref:P},ne(k(k({},t),{},{offset:h.offset,position:s,rect:h.rect}),"menuPortal",{"menu-portal":!0}),i),n);return D(cs.Provider,{value:g},r?_s.createPortal(I,r):I)},Qp=function(t){var r=t.isDisabled,n=t.isRtl;return{label:"container",direction:n?"rtl":void 0,pointerEvents:r?"none":void 0,position:"relative"}},e$=function(t){var r=t.children,n=t.innerProps,a=t.isDisabled,i=t.isRtl;return D("div",V({},ne(t,"container",{"--is-disabled":a,"--is-rtl":i}),n),r)},t$=function(t,r){var n=t.theme.spacing,a=t.isMulti,i=t.hasValue,o=t.selectProps.controlShouldRenderValue;return k({alignItems:"center",display:a&&i&&o?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},r?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(n.baseUnit*2,"px")})},r$=function(t){var r=t.children,n=t.innerProps,a=t.isMulti,i=t.hasValue;return D("div",V({},ne(t,"valueContainer",{"value-container":!0,"value-container--is-multi":a,"value-container--has-value":i}),n),r)},n$=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},a$=function(t){var r=t.children,n=t.innerProps;return D("div",V({},ne(t,"indicatorsContainer",{indicators:!0}),n),r)},Gi,i$=["size"],o$=["innerProps","isRtl","size"],u$={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},ps=function(t){var r=t.size,n=qe(t,i$);return D("svg",V({height:r,width:r,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:u$},n))},ua=function(t){return D(ps,V({size:20},t),D("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},$s=function(t){return D(ps,V({size:20},t),D("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},hs=function(t,r){var n=t.isFocused,a=t.theme,i=a.spacing.baseUnit,o=a.colors;return k({label:"indicatorContainer",display:"flex",transition:"color 150ms"},r?{}:{color:n?o.neutral60:o.neutral20,padding:i*2,":hover":{color:n?o.neutral80:o.neutral40}})},s$=hs,l$=function(t){var r=t.children,n=t.innerProps;return D("div",V({},ne(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),r||D($s,null))},d$=hs,c$=function(t){var r=t.children,n=t.innerProps;return D("div",V({},ne(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),r||D(ua,null))},f$=function(t,r){var n=t.isDisabled,a=t.theme,i=a.spacing.baseUnit,o=a.colors;return k({label:"indicatorSeparator",alignSelf:"stretch",width:1},r?{}:{backgroundColor:n?o.neutral10:o.neutral20,marginBottom:i*2,marginTop:i*2})},p$=function(t){var r=t.innerProps;return D("span",V({},r,ne(t,"indicatorSeparator",{"indicator-separator":!0})))},$$=lp(Gi||(Gi=dp([`
  0%, 80%, 100% { opacity: 0; }
  40% { opacity: 1; }
`]))),h$=function(t,r){var n=t.isFocused,a=t.size,i=t.theme,o=i.colors,s=i.spacing.baseUnit;return k({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:a,lineHeight:1,marginRight:a,textAlign:"center",verticalAlign:"middle"},r?{}:{color:n?o.neutral60:o.neutral20,padding:s*2})},Zr=function(t){var r=t.delay,n=t.offset;return D("span",{css:na({animation:"".concat($$," 1s ease-in-out ").concat(r,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},g$=function(t){var r=t.innerProps,n=t.isRtl,a=t.size,i=a===void 0?4:a,o=qe(t,o$);return D("div",V({},ne(k(k({},o),{},{innerProps:r,isRtl:n,size:i}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),r),D(Zr,{delay:0,offset:n}),D(Zr,{delay:160,offset:!0}),D(Zr,{delay:320,offset:!n}))},v$=function(t,r){var n=t.isDisabled,a=t.isFocused,i=t.theme,o=i.colors,s=i.borderRadius,u=i.spacing;return k({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:u.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},r?{}:{backgroundColor:n?o.neutral5:o.neutral0,borderColor:n?o.neutral10:a?o.primary:o.neutral20,borderRadius:s,borderStyle:"solid",borderWidth:1,boxShadow:a?"0 0 0 1px ".concat(o.primary):void 0,"&:hover":{borderColor:a?o.primary:o.neutral30}})},m$=function(t){var r=t.children,n=t.isDisabled,a=t.isFocused,i=t.innerRef,o=t.innerProps,s=t.menuIsOpen;return D("div",V({ref:i},ne(t,"control",{control:!0,"control--is-disabled":n,"control--is-focused":a,"control--menu-is-open":s}),o,{"aria-disabled":n||void 0}),r)},y$=m$,b$=["data"],C$=function(t,r){var n=t.theme.spacing;return r?{}:{paddingBottom:n.baseUnit*2,paddingTop:n.baseUnit*2}},S$=function(t){var r=t.children,n=t.cx,a=t.getStyles,i=t.getClassNames,o=t.Heading,s=t.headingProps,u=t.innerProps,l=t.label,d=t.theme,c=t.selectProps;return D("div",V({},ne(t,"group",{group:!0}),u),D(o,V({},s,{selectProps:c,theme:d,getStyles:a,getClassNames:i,cx:n}),l),D("div",null,r))},O$=function(t,r){var n=t.theme,a=n.colors,i=n.spacing;return k({label:"group",cursor:"default",display:"block"},r?{}:{color:a.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:i.baseUnit*3,paddingRight:i.baseUnit*3,textTransform:"uppercase"})},P$=function(t){var r=us(t);r.data;var n=qe(r,b$);return D("div",V({},ne(t,"groupHeading",{"group-heading":!0}),n))},x$=S$,I$=["innerRef","isDisabled","isHidden","inputClassName"],w$=function(t,r){var n=t.isDisabled,a=t.value,i=t.theme,o=i.spacing,s=i.colors;return k(k({visibility:n?"hidden":"visible",transform:a?"translateZ(0)":""},N$),r?{}:{margin:o.baseUnit/2,paddingBottom:o.baseUnit/2,paddingTop:o.baseUnit/2,color:s.neutral80})},gs={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},N$={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":k({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},gs)},E$=function(t){return k({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},gs)},A$=function(t){var r=t.cx,n=t.value,a=us(t),i=a.innerRef,o=a.isDisabled,s=a.isHidden,u=a.inputClassName,l=qe(a,I$);return D("div",V({},ne(t,"input",{"input-container":!0}),{"data-value":n||""}),D("input",V({className:r({input:!0},u),ref:i,style:E$(s),disabled:o},l)))},F$=A$,T$=function(t,r){var n=t.theme,a=n.spacing,i=n.borderRadius,o=n.colors;return k({label:"multiValue",display:"flex",minWidth:0},r?{}:{backgroundColor:o.neutral10,borderRadius:i/2,margin:a.baseUnit/2})},R$=function(t,r){var n=t.theme,a=n.borderRadius,i=n.colors,o=t.cropWithEllipsis;return k({overflow:"hidden",textOverflow:o||o===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},r?{}:{borderRadius:a/2,color:i.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},_$=function(t,r){var n=t.theme,a=n.spacing,i=n.borderRadius,o=n.colors,s=t.isFocused;return k({alignItems:"center",display:"flex"},r?{}:{borderRadius:i/2,backgroundColor:s?o.dangerLight:void 0,paddingLeft:a.baseUnit,paddingRight:a.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}})},vs=function(t){var r=t.children,n=t.innerProps;return D("div",n,r)},M$=vs,D$=vs;function k$(e){var t=e.children,r=e.innerProps;return D("div",V({role:"button"},r),t||D(ua,{size:14}))}var L$=function(t){var r=t.children,n=t.components,a=t.data,i=t.innerProps,o=t.isDisabled,s=t.removeProps,u=t.selectProps,l=n.Container,d=n.Label,c=n.Remove;return D(l,{data:a,innerProps:k(k({},ne(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":o})),i),selectProps:u},D(d,{data:a,innerProps:k({},ne(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:u},r),D(c,{data:a,innerProps:k(k({},ne(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(r||"option")},s),selectProps:u}))},V$=L$,j$=function(t,r){var n=t.isDisabled,a=t.isFocused,i=t.isSelected,o=t.theme,s=o.spacing,u=o.colors;return k({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},r?{}:{backgroundColor:i?u.primary:a?u.primary25:"transparent",color:n?u.neutral20:i?u.neutral0:"inherit",padding:"".concat(s.baseUnit*2,"px ").concat(s.baseUnit*3,"px"),":active":{backgroundColor:n?void 0:i?u.primary:u.primary50}})},B$=function(t){var r=t.children,n=t.isDisabled,a=t.isFocused,i=t.isSelected,o=t.innerRef,s=t.innerProps;return D("div",V({},ne(t,"option",{option:!0,"option--is-disabled":n,"option--is-focused":a,"option--is-selected":i}),{ref:o,"aria-disabled":n},s),r)},U$=B$,H$=function(t,r){var n=t.theme,a=n.spacing,i=n.colors;return k({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},r?{}:{color:i.neutral50,marginLeft:a.baseUnit/2,marginRight:a.baseUnit/2})},G$=function(t){var r=t.children,n=t.innerProps;return D("div",V({},ne(t,"placeholder",{placeholder:!0}),n),r)},W$=G$,K$=function(t,r){var n=t.isDisabled,a=t.theme,i=a.spacing,o=a.colors;return k({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},r?{}:{color:n?o.neutral40:o.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},q$=function(t){var r=t.children,n=t.isDisabled,a=t.innerProps;return D("div",V({},ne(t,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),a),r)},z$=q$,Y$={ClearIndicator:c$,Control:y$,DropdownIndicator:l$,DownChevron:$s,CrossIcon:ua,Group:x$,GroupHeading:P$,IndicatorsContainer:a$,IndicatorSeparator:p$,Input:F$,LoadingIndicator:g$,Menu:Gp,MenuList:Kp,MenuPortal:Jp,LoadingMessage:Zp,NoOptionsMessage:Yp,MultiValue:V$,MultiValueContainer:M$,MultiValueLabel:D$,MultiValueRemove:k$,Option:U$,Placeholder:W$,SelectContainer:e$,SingleValue:z$,ValueContainer:r$},Z$=function(t){return k(k({},Y$),t.components)},Wi=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function X$(e,t){return!!(e===t||Wi(e)&&Wi(t))}function J$(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!X$(e[r],t[r]))return!1;return!0}function Q$(e,t){t===void 0&&(t=J$);var r=null;function n(){for(var a=[],i=0;i<arguments.length;i++)a[i]=arguments[i];if(r&&r.lastThis===this&&t(a,r.lastArgs))return r.lastResult;var o=e.apply(this,a);return r={lastResult:o,lastArgs:a,lastThis:this},o}return n.clear=function(){r=null},n}var eh={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},th=function(t){return D("span",V({css:eh},t))},Ki=th,rh={guidance:function(t){var r=t.isSearchable,n=t.isMulti,a=t.tabSelectsValue,i=t.context,o=t.isInitialFocus;switch(i){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(a?", press Tab to select the option and exit the menu":"",".");case"input":return o?"".concat(t["aria-label"]||"Select"," is focused ").concat(r?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(t){var r=t.action,n=t.label,a=n===void 0?"":n,i=t.labels,o=t.isDisabled;switch(r){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(a,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(i.length>1?"s":""," ").concat(i.join(","),", selected.");case"select-option":return o?"option ".concat(a," is disabled. Select another option."):"option ".concat(a,", selected.");default:return""}},onFocus:function(t){var r=t.context,n=t.focused,a=t.options,i=t.label,o=i===void 0?"":i,s=t.selectValue,u=t.isDisabled,l=t.isSelected,d=t.isAppleDevice,c=function(m,p){return m&&m.length?"".concat(m.indexOf(p)+1," of ").concat(m.length):""};if(r==="value"&&s)return"value ".concat(o," focused, ").concat(c(s,n),".");if(r==="menu"&&d){var $=u?" disabled":"",v="".concat(l?" selected":"").concat($);return"".concat(o).concat(v,", ").concat(c(a,n),".")}return""},onFilter:function(t){var r=t.inputValue,n=t.resultsMessage;return"".concat(n).concat(r?" for search term "+r:"",".")}},nh=function(t){var r=t.ariaSelection,n=t.focusedOption,a=t.focusedValue,i=t.focusableOptions,o=t.isFocused,s=t.selectValue,u=t.selectProps,l=t.id,d=t.isAppleDevice,c=u.ariaLiveMessages,$=u.getOptionLabel,v=u.inputValue,g=u.isMulti,m=u.isOptionDisabled,p=u.isSearchable,h=u.menuIsOpen,b=u.options,x=u.screenReaderStatus,T=u.tabSelectsValue,P=u.isLoading,I=u["aria-label"],E=u["aria-live"],_=S.useMemo(function(){return k(k({},rh),c||{})},[c]),U=S.useMemo(function(){var H="";if(r&&_.onChange){var q=r.option,Z=r.options,te=r.removedValue,$e=r.removedValues,ye=r.value,Ze=function(Oe){return Array.isArray(Oe)?null:Oe},re=te||q||Ze(ye),he=re?$(re):"",Ne=Z||$e||void 0,_e=Ne?Ne.map($):[],ge=k({isDisabled:re&&m(re,s),label:he,labels:_e},r);H=_.onChange(ge)}return H},[r,_,m,s,$]),j=S.useMemo(function(){var H="",q=n||a,Z=!!(n&&s&&s.includes(n));if(q&&_.onFocus){var te={focused:q,label:$(q),isDisabled:m(q,s),isSelected:Z,options:i,context:q===n?"menu":"value",selectValue:s,isAppleDevice:d};H=_.onFocus(te)}return H},[n,a,$,m,_,i,s,d]),J=S.useMemo(function(){var H="";if(h&&b.length&&!P&&_.onFilter){var q=x({count:i.length});H=_.onFilter({inputValue:v,resultsMessage:q})}return H},[i,v,h,_,b,x,P]),M=(r==null?void 0:r.action)==="initial-input-focus",B=S.useMemo(function(){var H="";if(_.guidance){var q=a?"value":h?"menu":"input";H=_.guidance({"aria-label":I,context:q,isDisabled:n&&m(n,s),isMulti:g,isSearchable:p,tabSelectsValue:T,isInitialFocus:M})}return H},[I,n,a,g,m,p,h,_,s,T,M]),K=D(S.Fragment,null,D("span",{id:"aria-selection"},U),D("span",{id:"aria-focused"},j),D("span",{id:"aria-results"},J),D("span",{id:"aria-guidance"},B));return D(S.Fragment,null,D(Ki,{id:l},M&&K),D(Ki,{"aria-live":E,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},o&&!M&&K))},ah=nh,Mn=[{base:"A",letters:"AⒶＡÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷＢḂḄḆɃƂƁ"},{base:"C",letters:"CⒸＣĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹＤḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"ǱǄ"},{base:"Dz",letters:"ǲǅ"},{base:"E",letters:"EⒺＥÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻＦḞƑꝻ"},{base:"G",letters:"GⒼＧǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽＨĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾＩÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿＪĴɈ"},{base:"K",letters:"KⓀＫḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁＬĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"Ǉ"},{base:"Lj",letters:"ǈ"},{base:"M",letters:"MⓂＭḾṀṂⱮƜ"},{base:"N",letters:"NⓃＮǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"Ǌ"},{base:"Nj",letters:"ǋ"},{base:"O",letters:"OⓄＯÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅＰṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆＱꝖꝘɊ"},{base:"R",letters:"RⓇＲŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈＳẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉＴṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊＵÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋＶṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌＷẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍＸẊẌ"},{base:"Y",letters:"YⓎＹỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏＺŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐａẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑｂḃḅḇƀƃɓ"},{base:"c",letters:"cⓒｃćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓｄḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"ǳǆ"},{base:"e",letters:"eⓔｅèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕｆḟƒꝼ"},{base:"g",letters:"gⓖｇǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗｈĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘｉìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙｊĵǰɉ"},{base:"k",letters:"kⓚｋḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛｌŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"ǉ"},{base:"m",letters:"mⓜｍḿṁṃɱɯ"},{base:"n",letters:"nⓝｎǹńñṅňṇņṋṉƞɲŉꞑꞥ"},{base:"nj",letters:"ǌ"},{base:"o",letters:"oⓞｏòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟｐṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠｑɋꝗꝙ"},{base:"r",letters:"rⓡｒŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢｓßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣｔṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤｕùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥｖṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦｗẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧｘẋẍ"},{base:"y",letters:"yⓨｙỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩｚźẑżžẓẕƶȥɀⱬꝣ"}],ih=new RegExp("["+Mn.map(function(e){return e.letters}).join("")+"]","g"),ms={};for(var Xr=0;Xr<Mn.length;Xr++)for(var Jr=Mn[Xr],Qr=0;Qr<Jr.letters.length;Qr++)ms[Jr.letters[Qr]]=Jr.base;var ys=function(t){return t.replace(ih,function(r){return ms[r]})},oh=Q$(ys),qi=function(t){return t.replace(/^\s+|\s+$/g,"")},uh=function(t){return"".concat(t.label," ").concat(t.value)},sh=function(t){return function(r,n){if(r.data.__isNew__)return!0;var a=k({ignoreCase:!0,ignoreAccents:!0,stringify:uh,trim:!0,matchFrom:"any"},t),i=a.ignoreCase,o=a.ignoreAccents,s=a.stringify,u=a.trim,l=a.matchFrom,d=u?qi(n):n,c=u?qi(s(r)):s(r);return i&&(d=d.toLowerCase(),c=c.toLowerCase()),o&&(d=oh(d),c=ys(c)),l==="start"?c.substr(0,d.length)===d:c.indexOf(d)>-1}},lh=["innerRef"];function dh(e){var t=e.innerRef,r=qe(e,lh),n=Dp(r,"onExited","in","enter","exit","appear");return D("input",V({ref:t},n,{css:na({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var ch=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function fh(e){var t=e.isEnabled,r=e.onBottomArrive,n=e.onBottomLeave,a=e.onTopArrive,i=e.onTopLeave,o=S.useRef(!1),s=S.useRef(!1),u=S.useRef(0),l=S.useRef(null),d=S.useCallback(function(p,h){if(l.current!==null){var b=l.current,x=b.scrollTop,T=b.scrollHeight,P=b.clientHeight,I=l.current,E=h>0,_=T-P-x,U=!1;_>h&&o.current&&(n&&n(p),o.current=!1),E&&s.current&&(i&&i(p),s.current=!1),E&&h>_?(r&&!o.current&&r(p),I.scrollTop=T,U=!0,o.current=!0):!E&&-h>x&&(a&&!s.current&&a(p),I.scrollTop=0,U=!0,s.current=!0),U&&ch(p)}},[r,n,a,i]),c=S.useCallback(function(p){d(p,p.deltaY)},[d]),$=S.useCallback(function(p){u.current=p.changedTouches[0].clientY},[]),v=S.useCallback(function(p){var h=u.current-p.changedTouches[0].clientY;d(p,h)},[d]),g=S.useCallback(function(p){if(p){var h=Rp?{passive:!1}:!1;p.addEventListener("wheel",c,h),p.addEventListener("touchstart",$,h),p.addEventListener("touchmove",v,h)}},[v,$,c]),m=S.useCallback(function(p){p&&(p.removeEventListener("wheel",c,!1),p.removeEventListener("touchstart",$,!1),p.removeEventListener("touchmove",v,!1))},[v,$,c]);return S.useEffect(function(){if(t){var p=l.current;return g(p),function(){m(p)}}},[t,g,m]),function(p){l.current=p}}var zi=["boxSizing","height","overflow","paddingRight","position"],Yi={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Zi(e){e.cancelable&&e.preventDefault()}function Xi(e){e.stopPropagation()}function Ji(){var e=this.scrollTop,t=this.scrollHeight,r=e+this.offsetHeight;e===0?this.scrollTop=1:r===t&&(this.scrollTop=e-1)}function Qi(){return"ontouchstart"in window||navigator.maxTouchPoints}var eo=!!(typeof window<"u"&&window.document&&window.document.createElement),bt=0,nt={capture:!1,passive:!1};function ph(e){var t=e.isEnabled,r=e.accountForScrollbars,n=r===void 0?!0:r,a=S.useRef({}),i=S.useRef(null),o=S.useCallback(function(u){if(eo){var l=document.body,d=l&&l.style;if(n&&zi.forEach(function(g){var m=d&&d[g];a.current[g]=m}),n&&bt<1){var c=parseInt(a.current.paddingRight,10)||0,$=document.body?document.body.clientWidth:0,v=window.innerWidth-$+c||0;Object.keys(Yi).forEach(function(g){var m=Yi[g];d&&(d[g]=m)}),d&&(d.paddingRight="".concat(v,"px"))}l&&Qi()&&(l.addEventListener("touchmove",Zi,nt),u&&(u.addEventListener("touchstart",Ji,nt),u.addEventListener("touchmove",Xi,nt))),bt+=1}},[n]),s=S.useCallback(function(u){if(eo){var l=document.body,d=l&&l.style;bt=Math.max(bt-1,0),n&&bt<1&&zi.forEach(function(c){var $=a.current[c];d&&(d[c]=$)}),l&&Qi()&&(l.removeEventListener("touchmove",Zi,nt),u&&(u.removeEventListener("touchstart",Ji,nt),u.removeEventListener("touchmove",Xi,nt)))}},[n]);return S.useEffect(function(){if(t){var u=i.current;return o(u),function(){s(u)}}},[t,o,s]),function(u){i.current=u}}var $h=function(t){var r=t.target;return r.ownerDocument.activeElement&&r.ownerDocument.activeElement.blur()},hh={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function gh(e){var t=e.children,r=e.lockEnabled,n=e.captureEnabled,a=n===void 0?!0:n,i=e.onBottomArrive,o=e.onBottomLeave,s=e.onTopArrive,u=e.onTopLeave,l=fh({isEnabled:a,onBottomArrive:i,onBottomLeave:o,onTopArrive:s,onTopLeave:u}),d=ph({isEnabled:r}),c=function(v){l(v),d(v)};return D(S.Fragment,null,r&&D("div",{onClick:$h,css:hh}),t(c))}var vh={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},mh=function(t){var r=t.name,n=t.onFocus;return D("input",{required:!0,name:r,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:vh,value:"",onChange:function(){}})},yh=mh;function sa(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function bh(){return sa(/^iPhone/i)}function bs(){return sa(/^Mac/i)}function Ch(){return sa(/^iPad/i)||bs()&&navigator.maxTouchPoints>1}function Sh(){return bh()||Ch()}function Oh(){return bs()||Sh()}var Ph=function(t){return t.label},xh=function(t){return t.label},Ih=function(t){return t.value},wh=function(t){return!!t.isDisabled},Nh={clearIndicator:d$,container:Qp,control:v$,dropdownIndicator:s$,group:C$,groupHeading:O$,indicatorsContainer:n$,indicatorSeparator:f$,input:w$,loadingIndicator:h$,loadingMessage:zp,menu:Bp,menuList:Wp,menuPortal:Xp,multiValue:T$,multiValueLabel:R$,multiValueRemove:_$,noOptionsMessage:qp,option:j$,placeholder:H$,singleValue:K$,valueContainer:t$},Eh={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},Ah=4,Cs=4,Fh=38,Th=Cs*2,Rh={baseUnit:Cs,controlHeight:Fh,menuGutter:Th},en={borderRadius:Ah,colors:Eh,spacing:Rh},_h={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Hi(),captureMenuScroll:!Hi(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:sh(),formatGroupLabel:Ph,getOptionLabel:xh,getOptionValue:Ih,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:wh,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!Fp(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var r=t.count;return"".concat(r," result").concat(r!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function to(e,t,r,n){var a=Ps(e,t,r),i=xs(e,t,r),o=Os(e,t),s=gr(e,t);return{type:"option",data:t,isDisabled:a,isSelected:i,label:o,value:s,index:n}}function Xt(e,t){return e.options.map(function(r,n){if("options"in r){var a=r.options.map(function(o,s){return to(e,o,t,s)}).filter(function(o){return no(e,o)});return a.length>0?{type:"group",data:r,options:a,index:n}:void 0}var i=to(e,r,t,n);return no(e,i)?i:void 0}).filter(_p)}function Ss(e){return e.reduce(function(t,r){return r.type==="group"?t.push.apply(t,Yn(r.options.map(function(n){return n.data}))):t.push(r.data),t},[])}function ro(e,t){return e.reduce(function(r,n){return n.type==="group"?r.push.apply(r,Yn(n.options.map(function(a){return{data:a.data,id:"".concat(t,"-").concat(n.index,"-").concat(a.index)}}))):r.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),r},[])}function Mh(e,t){return Ss(Xt(e,t))}function no(e,t){var r=e.inputValue,n=r===void 0?"":r,a=t.data,i=t.isSelected,o=t.label,s=t.value;return(!ws(e)||!i)&&Is(e,{label:o,value:s,data:a},n)}function Dh(e,t){var r=e.focusedValue,n=e.selectValue,a=n.indexOf(r);if(a>-1){var i=t.indexOf(r);if(i>-1)return r;if(a<t.length)return t[a]}return null}function kh(e,t){var r=e.focusedOption;return r&&t.indexOf(r)>-1?r:t[0]}var tn=function(t,r){var n,a=(n=t.find(function(i){return i.data===r}))===null||n===void 0?void 0:n.id;return a||null},Os=function(t,r){return t.getOptionLabel(r)},gr=function(t,r){return t.getOptionValue(r)};function Ps(e,t,r){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,r):!1}function xs(e,t,r){if(r.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,r);var n=gr(e,t);return r.some(function(a){return gr(e,a)===n})}function Is(e,t,r){return e.filterOption?e.filterOption(t,r):!0}var ws=function(t){var r=t.hideSelectedOptions,n=t.isMulti;return r===void 0?n:r},Lh=1,Ns=function(e){X2(r,e);var t=e3(r);function r(n){var a;if(Y2(this,r),a=t.call(this,n),a.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},a.blockOptionHover=!1,a.isComposing=!1,a.commonProps=void 0,a.initialTouchX=0,a.initialTouchY=0,a.openAfterFocus=!1,a.scrollToFocusedOptionOnUpdate=!1,a.userIsDragging=void 0,a.isAppleDevice=Oh(),a.controlRef=null,a.getControlRef=function(u){a.controlRef=u},a.focusedOptionRef=null,a.getFocusedOptionRef=function(u){a.focusedOptionRef=u},a.menuListRef=null,a.getMenuListRef=function(u){a.menuListRef=u},a.inputRef=null,a.getInputRef=function(u){a.inputRef=u},a.focus=a.focusInput,a.blur=a.blurInput,a.onChange=function(u,l){var d=a.props,c=d.onChange,$=d.name;l.name=$,a.ariaOnChange(u,l),c(u,l)},a.setValue=function(u,l,d){var c=a.props,$=c.closeMenuOnSelect,v=c.isMulti,g=c.inputValue;a.onInputChange("",{action:"set-value",prevInputValue:g}),$&&(a.setState({inputIsHiddenAfterUpdate:!v}),a.onMenuClose()),a.setState({clearFocusValueOnUpdate:!0}),a.onChange(u,{action:l,option:d})},a.selectOption=function(u){var l=a.props,d=l.blurInputOnSelect,c=l.isMulti,$=l.name,v=a.state.selectValue,g=c&&a.isOptionSelected(u,v),m=a.isOptionDisabled(u,v);if(g){var p=a.getOptionValue(u);a.setValue(v.filter(function(h){return a.getOptionValue(h)!==p}),"deselect-option",u)}else if(!m)c?a.setValue([].concat(Yn(v),[u]),"select-option",u):a.setValue(u,"select-option");else{a.ariaOnChange(u,{action:"select-option",option:u,name:$});return}d&&a.blurInput()},a.removeValue=function(u){var l=a.props.isMulti,d=a.state.selectValue,c=a.getOptionValue(u),$=d.filter(function(g){return a.getOptionValue(g)!==c}),v=Ht(l,$,$[0]||null);a.onChange(v,{action:"remove-value",removedValue:u}),a.focusInput()},a.clearValue=function(){var u=a.state.selectValue;a.onChange(Ht(a.props.isMulti,[],null),{action:"clear",removedValues:u})},a.popValue=function(){var u=a.props.isMulti,l=a.state.selectValue,d=l[l.length-1],c=l.slice(0,l.length-1),$=Ht(u,c,c[0]||null);d&&a.onChange($,{action:"pop-value",removedValue:d})},a.getFocusedOptionId=function(u){return tn(a.state.focusableOptionsWithIds,u)},a.getFocusableOptionsWithIds=function(){return ro(Xt(a.props,a.state.selectValue),a.getElementId("option"))},a.getValue=function(){return a.state.selectValue},a.cx=function(){for(var u=arguments.length,l=new Array(u),d=0;d<u;d++)l[d]=arguments[d];return Ip.apply(void 0,[a.props.classNamePrefix].concat(l))},a.getOptionLabel=function(u){return Os(a.props,u)},a.getOptionValue=function(u){return gr(a.props,u)},a.getStyles=function(u,l){var d=a.props.unstyled,c=Nh[u](l,d);c.boxSizing="border-box";var $=a.props.styles[u];return $?$(c,l):c},a.getClassNames=function(u,l){var d,c;return(d=(c=a.props.classNames)[u])===null||d===void 0?void 0:d.call(c,l)},a.getElementId=function(u){return"".concat(a.state.instancePrefix,"-").concat(u)},a.getComponents=function(){return Z$(a.props)},a.buildCategorizedOptions=function(){return Xt(a.props,a.state.selectValue)},a.getCategorizedOptions=function(){return a.props.menuIsOpen?a.buildCategorizedOptions():[]},a.buildFocusableOptions=function(){return Ss(a.buildCategorizedOptions())},a.getFocusableOptions=function(){return a.props.menuIsOpen?a.buildFocusableOptions():[]},a.ariaOnChange=function(u,l){a.setState({ariaSelection:k({value:u},l)})},a.onMenuMouseDown=function(u){u.button===0&&(u.stopPropagation(),u.preventDefault(),a.focusInput())},a.onMenuMouseMove=function(u){a.blockOptionHover=!1},a.onControlMouseDown=function(u){if(!u.defaultPrevented){var l=a.props.openMenuOnClick;a.state.isFocused?a.props.menuIsOpen?u.target.tagName!=="INPUT"&&u.target.tagName!=="TEXTAREA"&&a.onMenuClose():l&&a.openMenu("first"):(l&&(a.openAfterFocus=!0),a.focusInput()),u.target.tagName!=="INPUT"&&u.target.tagName!=="TEXTAREA"&&u.preventDefault()}},a.onDropdownIndicatorMouseDown=function(u){if(!(u&&u.type==="mousedown"&&u.button!==0)&&!a.props.isDisabled){var l=a.props,d=l.isMulti,c=l.menuIsOpen;a.focusInput(),c?(a.setState({inputIsHiddenAfterUpdate:!d}),a.onMenuClose()):a.openMenu("first"),u.preventDefault()}},a.onClearIndicatorMouseDown=function(u){u&&u.type==="mousedown"&&u.button!==0||(a.clearValue(),u.preventDefault(),a.openAfterFocus=!1,u.type==="touchend"?a.focusInput():setTimeout(function(){return a.focusInput()}))},a.onScroll=function(u){typeof a.props.closeMenuOnScroll=="boolean"?u.target instanceof HTMLElement&&Lr(u.target)&&a.props.onMenuClose():typeof a.props.closeMenuOnScroll=="function"&&a.props.closeMenuOnScroll(u)&&a.props.onMenuClose()},a.onCompositionStart=function(){a.isComposing=!0},a.onCompositionEnd=function(){a.isComposing=!1},a.onTouchStart=function(u){var l=u.touches,d=l&&l.item(0);d&&(a.initialTouchX=d.clientX,a.initialTouchY=d.clientY,a.userIsDragging=!1)},a.onTouchMove=function(u){var l=u.touches,d=l&&l.item(0);if(d){var c=Math.abs(d.clientX-a.initialTouchX),$=Math.abs(d.clientY-a.initialTouchY),v=5;a.userIsDragging=c>v||$>v}},a.onTouchEnd=function(u){a.userIsDragging||(a.controlRef&&!a.controlRef.contains(u.target)&&a.menuListRef&&!a.menuListRef.contains(u.target)&&a.blurInput(),a.initialTouchX=0,a.initialTouchY=0)},a.onControlTouchEnd=function(u){a.userIsDragging||a.onControlMouseDown(u)},a.onClearIndicatorTouchEnd=function(u){a.userIsDragging||a.onClearIndicatorMouseDown(u)},a.onDropdownIndicatorTouchEnd=function(u){a.userIsDragging||a.onDropdownIndicatorMouseDown(u)},a.handleInputChange=function(u){var l=a.props.inputValue,d=u.currentTarget.value;a.setState({inputIsHiddenAfterUpdate:!1}),a.onInputChange(d,{action:"input-change",prevInputValue:l}),a.props.menuIsOpen||a.onMenuOpen()},a.onInputFocus=function(u){a.props.onFocus&&a.props.onFocus(u),a.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(a.openAfterFocus||a.props.openMenuOnFocus)&&a.openMenu("first"),a.openAfterFocus=!1},a.onInputBlur=function(u){var l=a.props.inputValue;if(a.menuListRef&&a.menuListRef.contains(document.activeElement)){a.inputRef.focus();return}a.props.onBlur&&a.props.onBlur(u),a.onInputChange("",{action:"input-blur",prevInputValue:l}),a.onMenuClose(),a.setState({focusedValue:null,isFocused:!1})},a.onOptionHover=function(u){if(!(a.blockOptionHover||a.state.focusedOption===u)){var l=a.getFocusableOptions(),d=l.indexOf(u);a.setState({focusedOption:u,focusedOptionId:d>-1?a.getFocusedOptionId(u):null})}},a.shouldHideSelectedOptions=function(){return ws(a.props)},a.onValueInputFocus=function(u){u.preventDefault(),u.stopPropagation(),a.focus()},a.onKeyDown=function(u){var l=a.props,d=l.isMulti,c=l.backspaceRemovesValue,$=l.escapeClearsValue,v=l.inputValue,g=l.isClearable,m=l.isDisabled,p=l.menuIsOpen,h=l.onKeyDown,b=l.tabSelectsValue,x=l.openMenuOnFocus,T=a.state,P=T.focusedOption,I=T.focusedValue,E=T.selectValue;if(!m&&!(typeof h=="function"&&(h(u),u.defaultPrevented))){switch(a.blockOptionHover=!0,u.key){case"ArrowLeft":if(!d||v)return;a.focusValue("previous");break;case"ArrowRight":if(!d||v)return;a.focusValue("next");break;case"Delete":case"Backspace":if(v)return;if(I)a.removeValue(I);else{if(!c)return;d?a.popValue():g&&a.clearValue()}break;case"Tab":if(a.isComposing||u.shiftKey||!p||!b||!P||x&&a.isOptionSelected(P,E))return;a.selectOption(P);break;case"Enter":if(u.keyCode===229)break;if(p){if(!P||a.isComposing)return;a.selectOption(P);break}return;case"Escape":p?(a.setState({inputIsHiddenAfterUpdate:!1}),a.onInputChange("",{action:"menu-close",prevInputValue:v}),a.onMenuClose()):g&&$&&a.clearValue();break;case" ":if(v)return;if(!p){a.openMenu("first");break}if(!P)return;a.selectOption(P);break;case"ArrowUp":p?a.focusOption("up"):a.openMenu("last");break;case"ArrowDown":p?a.focusOption("down"):a.openMenu("first");break;case"PageUp":if(!p)return;a.focusOption("pageup");break;case"PageDown":if(!p)return;a.focusOption("pagedown");break;case"Home":if(!p)return;a.focusOption("first");break;case"End":if(!p)return;a.focusOption("last");break;default:return}u.preventDefault()}},a.state.instancePrefix="react-select-"+(a.props.instanceId||++Lh),a.state.selectValue=Bi(n.value),n.menuIsOpen&&a.state.selectValue.length){var i=a.getFocusableOptionsWithIds(),o=a.buildFocusableOptions(),s=o.indexOf(a.state.selectValue[0]);a.state.focusableOptionsWithIds=i,a.state.focusedOption=o[s],a.state.focusedOptionId=tn(i,o[s])}return a}return Z2(r,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&Ui(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(a){var i=this.props,o=i.isDisabled,s=i.menuIsOpen,u=this.state.isFocused;(u&&!o&&a.isDisabled||u&&s&&!a.menuIsOpen)&&this.focusInput(),u&&o&&!a.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!u&&!o&&a.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Ui(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(a,i){this.props.onInputChange(a,i)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(a){var i=this,o=this.state,s=o.selectValue,u=o.isFocused,l=this.buildFocusableOptions(),d=a==="first"?0:l.length-1;if(!this.props.isMulti){var c=l.indexOf(s[0]);c>-1&&(d=c)}this.scrollToFocusedOptionOnUpdate=!(u&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:l[d],focusedOptionId:this.getFocusedOptionId(l[d])},function(){return i.onMenuOpen()})}},{key:"focusValue",value:function(a){var i=this.state,o=i.selectValue,s=i.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var u=o.indexOf(s);s||(u=-1);var l=o.length-1,d=-1;if(o.length){switch(a){case"previous":u===0?d=0:u===-1?d=l:d=u-1;break;case"next":u>-1&&u<l&&(d=u+1);break}this.setState({inputIsHidden:d!==-1,focusedValue:o[d]})}}}},{key:"focusOption",value:function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",i=this.props.pageSize,o=this.state.focusedOption,s=this.getFocusableOptions();if(s.length){var u=0,l=s.indexOf(o);o||(l=-1),a==="up"?u=l>0?l-1:s.length-1:a==="down"?u=(l+1)%s.length:a==="pageup"?(u=l-i,u<0&&(u=0)):a==="pagedown"?(u=l+i,u>s.length-1&&(u=s.length-1)):a==="last"&&(u=s.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:s[u],focusedValue:null,focusedOptionId:this.getFocusedOptionId(s[u])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(en):k(k({},en),this.props.theme):en}},{key:"getCommonProps",value:function(){var a=this.clearValue,i=this.cx,o=this.getStyles,s=this.getClassNames,u=this.getValue,l=this.selectOption,d=this.setValue,c=this.props,$=c.isMulti,v=c.isRtl,g=c.options,m=this.hasValue();return{clearValue:a,cx:i,getStyles:o,getClassNames:s,getValue:u,hasValue:m,isMulti:$,isRtl:v,options:g,selectOption:l,selectProps:c,setValue:d,theme:this.getTheme()}}},{key:"hasValue",value:function(){var a=this.state.selectValue;return a.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var a=this.props,i=a.isClearable,o=a.isMulti;return i===void 0?o:i}},{key:"isOptionDisabled",value:function(a,i){return Ps(this.props,a,i)}},{key:"isOptionSelected",value:function(a,i){return xs(this.props,a,i)}},{key:"filterOption",value:function(a,i){return Is(this.props,a,i)}},{key:"formatOptionLabel",value:function(a,i){if(typeof this.props.formatOptionLabel=="function"){var o=this.props.inputValue,s=this.state.selectValue;return this.props.formatOptionLabel(a,{context:i,inputValue:o,selectValue:s})}else return this.getOptionLabel(a)}},{key:"formatGroupLabel",value:function(a){return this.props.formatGroupLabel(a)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var a=this.props,i=a.isDisabled,o=a.isSearchable,s=a.inputId,u=a.inputValue,l=a.tabIndex,d=a.form,c=a.menuIsOpen,$=a.required,v=this.getComponents(),g=v.Input,m=this.state,p=m.inputIsHidden,h=m.ariaSelection,b=this.commonProps,x=s||this.getElementId("input"),T=k(k(k({"aria-autocomplete":"list","aria-expanded":c,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":$,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},c&&{"aria-controls":this.getElementId("listbox")}),!o&&{"aria-readonly":!0}),this.hasValue()?(h==null?void 0:h.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return o?S.createElement(g,V({},b,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:x,innerRef:this.getInputRef,isDisabled:i,isHidden:p,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:l,form:d,type:"text",value:u},T)):S.createElement(dh,V({id:x,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:$r,onFocus:this.onInputFocus,disabled:i,tabIndex:l,inputMode:"none",form:d,value:""},T))}},{key:"renderPlaceholderOrValue",value:function(){var a=this,i=this.getComponents(),o=i.MultiValue,s=i.MultiValueContainer,u=i.MultiValueLabel,l=i.MultiValueRemove,d=i.SingleValue,c=i.Placeholder,$=this.commonProps,v=this.props,g=v.controlShouldRenderValue,m=v.isDisabled,p=v.isMulti,h=v.inputValue,b=v.placeholder,x=this.state,T=x.selectValue,P=x.focusedValue,I=x.isFocused;if(!this.hasValue()||!g)return h?null:S.createElement(c,V({},$,{key:"placeholder",isDisabled:m,isFocused:I,innerProps:{id:this.getElementId("placeholder")}}),b);if(p)return T.map(function(_,U){var j=_===P,J="".concat(a.getOptionLabel(_),"-").concat(a.getOptionValue(_));return S.createElement(o,V({},$,{components:{Container:s,Label:u,Remove:l},isFocused:j,isDisabled:m,key:J,index:U,removeProps:{onClick:function(){return a.removeValue(_)},onTouchEnd:function(){return a.removeValue(_)},onMouseDown:function(B){B.preventDefault()}},data:_}),a.formatOptionLabel(_,"value"))});if(h)return null;var E=T[0];return S.createElement(d,V({},$,{data:E,isDisabled:m}),this.formatOptionLabel(E,"value"))}},{key:"renderClearIndicator",value:function(){var a=this.getComponents(),i=a.ClearIndicator,o=this.commonProps,s=this.props,u=s.isDisabled,l=s.isLoading,d=this.state.isFocused;if(!this.isClearable()||!i||u||!this.hasValue()||l)return null;var c={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return S.createElement(i,V({},o,{innerProps:c,isFocused:d}))}},{key:"renderLoadingIndicator",value:function(){var a=this.getComponents(),i=a.LoadingIndicator,o=this.commonProps,s=this.props,u=s.isDisabled,l=s.isLoading,d=this.state.isFocused;if(!i||!l)return null;var c={"aria-hidden":"true"};return S.createElement(i,V({},o,{innerProps:c,isDisabled:u,isFocused:d}))}},{key:"renderIndicatorSeparator",value:function(){var a=this.getComponents(),i=a.DropdownIndicator,o=a.IndicatorSeparator;if(!i||!o)return null;var s=this.commonProps,u=this.props.isDisabled,l=this.state.isFocused;return S.createElement(o,V({},s,{isDisabled:u,isFocused:l}))}},{key:"renderDropdownIndicator",value:function(){var a=this.getComponents(),i=a.DropdownIndicator;if(!i)return null;var o=this.commonProps,s=this.props.isDisabled,u=this.state.isFocused,l={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return S.createElement(i,V({},o,{innerProps:l,isDisabled:s,isFocused:u}))}},{key:"renderMenu",value:function(){var a=this,i=this.getComponents(),o=i.Group,s=i.GroupHeading,u=i.Menu,l=i.MenuList,d=i.MenuPortal,c=i.LoadingMessage,$=i.NoOptionsMessage,v=i.Option,g=this.commonProps,m=this.state.focusedOption,p=this.props,h=p.captureMenuScroll,b=p.inputValue,x=p.isLoading,T=p.loadingMessage,P=p.minMenuHeight,I=p.maxMenuHeight,E=p.menuIsOpen,_=p.menuPlacement,U=p.menuPosition,j=p.menuPortalTarget,J=p.menuShouldBlockScroll,M=p.menuShouldScrollIntoView,B=p.noOptionsMessage,K=p.onMenuScrollToTop,H=p.onMenuScrollToBottom;if(!E)return null;var q=function(he,Ne){var _e=he.type,ge=he.data,Ee=he.isDisabled,Oe=he.isSelected,Xe=he.label,Vr=he.value,$t=m===ge,Dt=Ee?void 0:function(){return a.onOptionHover(ge)},kt=Ee?void 0:function(){return a.selectOption(ge)},ht="".concat(a.getElementId("option"),"-").concat(Ne),$a={id:ht,onClick:kt,onMouseMove:Dt,onMouseOver:Dt,tabIndex:-1,role:"option","aria-selected":a.isAppleDevice?void 0:Oe};return S.createElement(v,V({},g,{innerProps:$a,data:ge,isDisabled:Ee,isSelected:Oe,key:ht,label:Xe,type:_e,value:Vr,isFocused:$t,innerRef:$t?a.getFocusedOptionRef:void 0}),a.formatOptionLabel(he.data,"menu"))},Z;if(this.hasOptions())Z=this.getCategorizedOptions().map(function(re){if(re.type==="group"){var he=re.data,Ne=re.options,_e=re.index,ge="".concat(a.getElementId("group"),"-").concat(_e),Ee="".concat(ge,"-heading");return S.createElement(o,V({},g,{key:ge,data:he,options:Ne,Heading:s,headingProps:{id:Ee,data:re.data},label:a.formatGroupLabel(re.data)}),re.options.map(function(Oe){return q(Oe,"".concat(_e,"-").concat(Oe.index))}))}else if(re.type==="option")return q(re,"".concat(re.index))});else if(x){var te=T({inputValue:b});if(te===null)return null;Z=S.createElement(c,g,te)}else{var $e=B({inputValue:b});if($e===null)return null;Z=S.createElement($,g,$e)}var ye={minMenuHeight:P,maxMenuHeight:I,menuPlacement:_,menuPosition:U,menuShouldScrollIntoView:M},Ze=S.createElement(Up,V({},g,ye),function(re){var he=re.ref,Ne=re.placerProps,_e=Ne.placement,ge=Ne.maxHeight;return S.createElement(u,V({},g,ye,{innerRef:he,innerProps:{onMouseDown:a.onMenuMouseDown,onMouseMove:a.onMenuMouseMove},isLoading:x,placement:_e}),S.createElement(gh,{captureEnabled:h,onTopArrive:K,onBottomArrive:H,lockEnabled:J},function(Ee){return S.createElement(l,V({},g,{innerRef:function(Xe){a.getMenuListRef(Xe),Ee(Xe)},innerProps:{role:"listbox","aria-multiselectable":g.isMulti,id:a.getElementId("listbox")},isLoading:x,maxHeight:ge,focusedOption:m}),Z)}))});return j||U==="fixed"?S.createElement(d,V({},g,{appendTo:j,controlElement:this.controlRef,menuPlacement:_,menuPosition:U}),Ze):Ze}},{key:"renderFormField",value:function(){var a=this,i=this.props,o=i.delimiter,s=i.isDisabled,u=i.isMulti,l=i.name,d=i.required,c=this.state.selectValue;if(d&&!this.hasValue()&&!s)return S.createElement(yh,{name:l,onFocus:this.onValueInputFocus});if(!(!l||s))if(u)if(o){var $=c.map(function(m){return a.getOptionValue(m)}).join(o);return S.createElement("input",{name:l,type:"hidden",value:$})}else{var v=c.length>0?c.map(function(m,p){return S.createElement("input",{key:"i-".concat(p),name:l,type:"hidden",value:a.getOptionValue(m)})}):S.createElement("input",{name:l,type:"hidden",value:""});return S.createElement("div",null,v)}else{var g=c[0]?this.getOptionValue(c[0]):"";return S.createElement("input",{name:l,type:"hidden",value:g})}}},{key:"renderLiveRegion",value:function(){var a=this.commonProps,i=this.state,o=i.ariaSelection,s=i.focusedOption,u=i.focusedValue,l=i.isFocused,d=i.selectValue,c=this.getFocusableOptions();return S.createElement(ah,V({},a,{id:this.getElementId("live-region"),ariaSelection:o,focusedOption:s,focusedValue:u,isFocused:l,selectValue:d,focusableOptions:c,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var a=this.getComponents(),i=a.Control,o=a.IndicatorsContainer,s=a.SelectContainer,u=a.ValueContainer,l=this.props,d=l.className,c=l.id,$=l.isDisabled,v=l.menuIsOpen,g=this.state.isFocused,m=this.commonProps=this.getCommonProps();return S.createElement(s,V({},m,{className:d,innerProps:{id:c,onKeyDown:this.onKeyDown},isDisabled:$,isFocused:g}),this.renderLiveRegion(),S.createElement(i,V({},m,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:$,isFocused:g,menuIsOpen:v}),S.createElement(u,V({},m,{isDisabled:$}),this.renderPlaceholderOrValue(),this.renderInput()),S.createElement(o,V({},m,{isDisabled:$}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(a,i){var o=i.prevProps,s=i.clearFocusValueOnUpdate,u=i.inputIsHiddenAfterUpdate,l=i.ariaSelection,d=i.isFocused,c=i.prevWasFocused,$=i.instancePrefix,v=a.options,g=a.value,m=a.menuIsOpen,p=a.inputValue,h=a.isMulti,b=Bi(g),x={};if(o&&(g!==o.value||v!==o.options||m!==o.menuIsOpen||p!==o.inputValue)){var T=m?Mh(a,b):[],P=m?ro(Xt(a,b),"".concat($,"-option")):[],I=s?Dh(i,b):null,E=kh(i,T),_=tn(P,E);x={selectValue:b,focusedOption:E,focusedOptionId:_,focusableOptionsWithIds:P,focusedValue:I,clearFocusValueOnUpdate:!1}}var U=u!=null&&a!==o?{inputIsHidden:u,inputIsHiddenAfterUpdate:void 0}:{},j=l,J=d&&c;return d&&!J&&(j={value:Ht(h,b,b[0]||null),options:b,action:"initial-input-focus"},J=!c),(l==null?void 0:l.action)==="initial-input-focus"&&(j=null),k(k(k({},x),U),{},{prevProps:a,ariaSelection:j,prevWasFocused:J})}}]),r}(S.Component);Ns.defaultProps=_h;var Vh=S.forwardRef(function(e,t){var r=z2(e);return S.createElement(Ns,V({ref:t},r))}),jh=Vh;const Bh=({optionsData:e,getOptionLabel:t,getOptionValue:r,fieldName:n,fieldLabel:a,placeholder:i=!0,control:o,required:s,isDisabled:u,validateFn:l,onChangeFn:d,defaultValue:c,moreCss:$="border-stroke"})=>{const g=(p=>p.map(h=>typeof h=="string"?{value:h,label:h}:h))(e),m=g.find(p=>p.value===c)||null;return W.jsx(Vn,{name:n,control:o,defaultValue:m,rules:{required:s?"This field is required.":!1,validate:l},render:({field:p})=>W.jsx(jh,{...p,inputId:n,options:g,getOptionLabel:t,getOptionValue:r,value:p.value||m,placeholder:i?typeof i=="string"?i:`Select ${(a==null?void 0:a.toLowerCase())||_t(n)}...`:void 0,onChange:h=>{p.onChange(h),d&&d(h)},isSearchable:!0,isClearable:!0,closeMenuOnSelect:!0,blurInputOnSelect:!0,className:`${$} rounded border-2 bg-transparent py-2.5 px-3 text-black focus:border-primary active:border-primary disabled:cursor-default disabled:bg-whiter dark:border-form-strokedark dark:bg-form-input dark:text-white dark:focus:border-primary`,classNamePrefix:"",theme:h=>({...h,colors:{...h.colors,primary25:"#eeffee",primary:"#fff"}}),styles:fg,isDisabled:u})})},Uh=({fieldName:e,register:t,required:r=!1,options:n,withDescription:a=!1,defaultChecked:i="",onChangeFn:o})=>W.jsx("div",{className:"grid grid-cols-2 gap-2 justify-start items-center w-fit",children:n.map((s,u)=>{const l=typeof s=="object"?s.value:s,d=typeof s=="object"?s.label:s,c=typeof s=="object"&&a?s.description:null;return W.jsxs("div",{className:"flex justify-start items-center gap-1.5 rounded-full w-fit border-2 border-slate-200 py-1 px-3 ",children:[W.jsx("input",{type:"radio",id:u,value:l,defaultChecked:l===i,...t(e,{required:r?"This field is required.":!1}),onClick:()=>o&&o(l,u)}),W.jsxs("label",{htmlFor:d,children:[_t(d)," ",W.jsx("p",{children:c})]})]},u)})}),Hh=({fieldName:e,fieldLabel:t,jsxFieldLabel:r,register:n,required:a,defaultChecked:i,onChangeFn:o})=>W.jsxs("div",{className:"",children:[W.jsx("input",{id:e,type:"checkbox",defaultChecked:i,...n(e,{required:a?"This field is required.":!1}),onChange:({target:{checked:s}})=>o&&o(s)}),t||r&&W.jsx("label",{htmlFor:e,children:r||t})]});var Es={},la={},da={};Object.defineProperty(da,"__esModule",{value:!0});var Gh=function(){function e(t,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),Wh=S,Gt=ca(Wh),Kh=Xo,qh=ca(Kh),zh=Hn,ie=ca(zh);function ca(e){return e&&e.__esModule?e:{default:e}}function Yh(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zh(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function Xh(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var As=function(e){Xh(t,e);function t(){return Yh(this,t),Zh(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return Gh(t,[{key:"render",value:function(){var n=this.props,a=n.changeRating,i=n.hoverOverStar,o=n.unHoverOverStar,s=n.svgIconViewBox,u=n.svgIconPath;return Gt.default.createElement("div",{className:"star-container",style:this.starContainerStyle,onMouseEnter:i,onMouseLeave:o,onClick:a},Gt.default.createElement("svg",{viewBox:s,className:this.starClasses,style:this.starSvgStyle},Gt.default.createElement("path",{className:"star",style:this.pathStyle,d:u})))}},{key:"starContainerStyle",get:function(){var n=this.props,a=n.changeRating,i=n.starSpacing,o=n.isFirstStar,s=n.isLastStar,u=n.ignoreInlineStyles,l={position:"relative",display:"inline-block",verticalAlign:"middle",paddingLeft:o?void 0:i,paddingRight:s?void 0:i,cursor:a?"pointer":void 0};return u?{}:l}},{key:"starSvgStyle",get:function(){var n=this.props,a=n.ignoreInlineStyles,i=n.isCurrentHoveredStar,o=n.starDimension,s={width:o,height:o,transition:"transform .2s ease-in-out",transform:i?"scale(1.1)":void 0};return a?{}:s}},{key:"pathStyle",get:function(){var n=this.props,a=n.isStarred,i=n.isPartiallyFullStar,o=n.isHovered,s=n.hoverMode,u=n.starEmptyColor,l=n.starRatedColor,d=n.starHoverColor,c=n.gradientPathName,$=n.fillId,v=n.ignoreInlineStyles,g=void 0;s?o?g=d:g=u:i?g="url('"+c+"#"+$+"')":a?g=l:g=u;var m={fill:g,transition:"fill .2s ease-in-out"};return v?{}:m}},{key:"starClasses",get:function(){var n=this.props,a=n.isSelected,i=n.isPartiallyFullStar,o=n.isHovered,s=n.isCurrentHoveredStar,u=n.ignoreInlineStyles,l=(0,qh.default)({"widget-svg":!0,"widget-selected":a,"multi-widget-selected":i,hovered:o,"current-hovered":s});return u?{}:l}}]),t}(Gt.default.Component);As.propTypes={fillId:ie.default.string.isRequired,changeRating:ie.default.func,hoverOverStar:ie.default.func,unHoverOverStar:ie.default.func,isStarred:ie.default.bool.isRequired,isPartiallyFullStar:ie.default.bool.isRequired,isHovered:ie.default.bool.isRequired,hoverMode:ie.default.bool.isRequired,isCurrentHoveredStar:ie.default.bool.isRequired,isFirstStar:ie.default.bool.isRequired,isLastStar:ie.default.bool.isRequired,starDimension:ie.default.string.isRequired,starSpacing:ie.default.string.isRequired,starHoverColor:ie.default.string.isRequired,starRatedColor:ie.default.string.isRequired,starEmptyColor:ie.default.string.isRequired,gradientPathName:ie.default.string.isRequired,ignoreInlineStyles:ie.default.bool.isRequired,svgIconPath:ie.default.string.isRequired,svgIconViewBox:ie.default.string.isRequired};da.default=As;Object.defineProperty(la,"__esModule",{value:!0});var Jh=function(){function e(t,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),Qh=S,Me=fa(Qh),eg=Hn,Pe=fa(eg),tg=da,rg=fa(tg);function fa(e){return e&&e.__esModule?e:{default:e}}function ng(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ao(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function ag(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var pa=function(e){ag(t,e);function t(){var r,n,a,i;ng(this,t);for(var o=arguments.length,s=Array(o),u=0;u<o;u++)s[u]=arguments[u];return i=(n=(a=ao(this,(r=t.__proto__||Object.getPrototypeOf(t)).call.apply(r,[this].concat(s))),a),a.state={highestStarHovered:-1/0},a.fillId="starGrad"+Math.random().toFixed(15).slice(2),a.hoverOverStar=function(l){return function(){a.setState({highestStarHovered:l})}},a.unHoverOverStar=function(){a.setState({highestStarHovered:-1/0})},n),ao(a,i)}return Jh(t,[{key:"stopColorStyle",value:function(n){var a={stopColor:n,stopOpacity:"1"};return this.props.ignoreInlineStyles?{}:a}},{key:"render",value:function(){var n=this.props,a=n.starRatedColor,i=n.starEmptyColor;return Me.default.createElement("div",{className:"star-ratings",title:this.titleText,style:this.starRatingsStyle},Me.default.createElement("svg",{className:"star-grad",style:this.starGradientStyle},Me.default.createElement("defs",null,Me.default.createElement("linearGradient",{id:this.fillId,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},Me.default.createElement("stop",{offset:"0%",className:"stop-color-first",style:this.stopColorStyle(a)}),Me.default.createElement("stop",{offset:this.offsetValue,className:"stop-color-first",style:this.stopColorStyle(a)}),Me.default.createElement("stop",{offset:this.offsetValue,className:"stop-color-final",style:this.stopColorStyle(i)}),Me.default.createElement("stop",{offset:"100%",className:"stop-color-final",style:this.stopColorStyle(i)})))),this.renderStars)}},{key:"starRatingsStyle",get:function(){var n={position:"relative",boxSizing:"border-box",display:"inline-block"};return this.props.ignoreInlineStyles?{}:n}},{key:"starGradientStyle",get:function(){var n={position:"absolute",zIndex:"0",width:"0",height:"0",visibility:"hidden"};return this.props.ignoreInlineStyles?{}:n}},{key:"titleText",get:function(){var n=this.props,a=n.typeOfWidget,i=n.rating,o=this.state.highestStarHovered,s=o>0?o:i,u=parseFloat(s.toFixed(2)).toString();Number.isInteger(s)&&(u=String(s));var l=a+"s";return u==="1"&&(l=a),u+" "+l}},{key:"offsetValue",get:function(){var n=this.props.rating,a=Number.isInteger(n),i="0%";if(!a){var o=n.toFixed(2).split(".")[1].slice(0,2);i=o+"%"}return i}},{key:"renderStars",get:function(){var n=this,a=this.props,i=a.changeRating,o=a.rating,s=a.numberOfStars,u=a.starDimension,l=a.starSpacing,d=a.starRatedColor,c=a.starEmptyColor,$=a.starHoverColor,v=a.gradientPathName,g=a.ignoreInlineStyles,m=a.svgIconPath,p=a.svgIconViewBox,h=a.name,b=this.state.highestStarHovered,x=Array.apply(null,Array(s));return x.map(function(T,P){var I=P+1,E=I<=o,_=b>0,U=I<=b,j=I===b,J=I>o&&I-1<o,M=I===1,B=I===s;return Me.default.createElement(rg.default,{key:I,fillId:n.fillId,changeRating:i?function(){return i(I,h)}:null,hoverOverStar:i?n.hoverOverStar(I):null,unHoverOverStar:i?n.unHoverOverStar:null,isStarred:E,isPartiallyFullStar:J,isHovered:U,hoverMode:_,isCurrentHoveredStar:j,isFirstStar:M,isLastStar:B,starDimension:u,starSpacing:l,starHoverColor:$,starRatedColor:d,starEmptyColor:c,gradientPathName:v,ignoreInlineStyles:g,svgIconPath:m,svgIconViewBox:p})})}}]),t}(Me.default.Component);pa.propTypes={rating:Pe.default.number.isRequired,numberOfStars:Pe.default.number.isRequired,changeRating:Pe.default.func,starHoverColor:Pe.default.string.isRequired,starRatedColor:Pe.default.string.isRequired,starEmptyColor:Pe.default.string.isRequired,starDimension:Pe.default.string.isRequired,starSpacing:Pe.default.string.isRequired,gradientPathName:Pe.default.string.isRequired,ignoreInlineStyles:Pe.default.bool.isRequired,svgIconPath:Pe.default.string.isRequired,svgIconViewBox:Pe.default.string.isRequired,name:Pe.default.string};pa.defaultProps={rating:0,typeOfWidget:"Star",numberOfStars:5,changeRating:null,starHoverColor:"rgb(230, 67, 47)",starRatedColor:"rgb(109, 122, 130)",starEmptyColor:"rgb(203, 211, 227)",starDimension:"50px",starSpacing:"7px",gradientPathName:"",ignoreInlineStyles:!1,svgIconPath:"m25,1 6,17h18l-14,11 5,17-15-10-15,10 5-17-14-11h18z",svgIconViewBox:"0 0 51 48"};la.default=pa;Object.defineProperty(Es,"__esModule",{value:!0});var ig=la,og=ug(ig);function ug(e){return e&&e.__esModule?e:{default:e}}Number.isInteger=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e};var sg=Es.default=og.default;const lg=({control:e,fieldName:t,required:r,defaultValue:n})=>W.jsx(Vn,{name:t,control:e,defaultValue:n,rules:{required:r?"This field is required":!1},render:({field:{onChange:a,value:i}})=>W.jsx(sg,{name:t,rating:i||n,starRatedColor:"gold",starHoverColor:"gold",changeRating:a,numberOfStars:5,starDimension:"25px",starSpacing:"2px"})}),dg=({register:e,control:t,fieldName:r,fieldLabel:n,type:a,required:i,isValidated:o,validateFn:s,onChangeFn:u,handleKeyDown:l,defaultValue:d,placeholder:c,isDisabled:$,maxLength:v,optionsData:g=[],radioOptions:m=[],withDescription:p,defaultChecked:h,tooltip:b,jsxFieldLabel:x,moreCss:T})=>{let P=null;switch(a){case"text":case"number":case"date":case"password":case"email":P=W.jsx(Md,{type:a,fieldName:r,fieldLabel:n,register:e,required:i,isValidated:o,validateFn:s,handleKeyDown:l,defaultValue:d,placeholder:c,isDisabled:$,tooltip:b,onChangeFn:u,moreCss:T});break;case"textarea":P=W.jsx(Dd,{register:e,fieldName:r,fieldLabel:n,required:i,isValidated:o,validateFn:s,handleKeyDown:l,defaultValue:d,isDisabled:$});break;case"phone":P=W.jsx(B2,{moreCss:T,control:t,fieldName:r,maxLength:v,required:i,isDisabled:$,defaultValue:d});break;case"select":P=W.jsx(Bh,{control:t,fieldName:r,fieldLabel:n,defaultValue:d,required:i,optionsData:g,isDisabled:$,onChangeFn:u,moreCss:T});break;case"star-rating":P=W.jsx(lg,{fieldName:r,required:i,control:t,defaultValue:d});break;case"radio-options":P=W.jsx(Uh,{register:e,fieldName:r,required:i,options:m,withDescription:p,defaultChecked:h});break;case"checkbox":P=W.jsx(Hh,{register:e,fieldName:r,fieldLabel:n,required:i,defaultChecked:h,jsxFieldLabel:x});break}return{content:P,type:a}},cg=({dynamic:e,errors:t})=>{var n,a,i,o,s,u,l,d,c,$,v,g,m,p,h,b,x,T,P,I,E;let r="";return e&&t?(e.grandParent?e.grandParentType==="array"&&typeof e.parentIndex=="number"?e.type==="array"?r=(s=(o=(i=(a=(n=t[e.grandParent])==null?void 0:n[e.parentIndex])==null?void 0:a[e.parent])==null?void 0:i[e.index])==null?void 0:o[e.fieldName])==null?void 0:s.message:r=(c=(d=(l=(u=t[e.grandParent])==null?void 0:u[e.parentIndex])==null?void 0:l[e.parent])==null?void 0:d[e.fieldName])==null?void 0:c.message:e.grandParentType==="object"&&(e.type==="array"?r=(m=(g=(v=($=t[e.grandParent])==null?void 0:$[e.parent])==null?void 0:v[e.index])==null?void 0:g[e.fieldName])==null?void 0:m.message:r=(b=(h=(p=t[e.grandParent])==null?void 0:p[e.parent])==null?void 0:h[e.fieldName])==null?void 0:b.message):e.type==="array"?r=(P=(T=(x=t[e.parent])==null?void 0:x[e.index])==null?void 0:T[e.fieldName])==null?void 0:P.message:r=(E=(I=t[e.parent])==null?void 0:I[e.fieldName])==null?void 0:E.message,r):null},fg={control:(e,t)=>({...e,border:"none",minHeight:"fit-content",backgroundColor:(t.isDisabled,"transparent")}),valueContainer:e=>({...e,padding:0,border:"none",outline:"none"}),input:e=>({...e,margin:0,padding:0,border:"none",outline:"none"}),placeholder:e=>({...e,color:"#ced6de",fontFamily:"Open Sans"}),menu:e=>({...e,marginTop:"0.5rem",marginLeft:"-0.75rem",color:"#414141"}),option:(e,t)=>({...e,cursor:"pointer",backgroundColor:t.isSelected?"#eef6f0":"white",color:t.isSelected?"#1b7232":"#414141"}),indicatorSeparator:()=>({display:"none"}),dropdownIndicator:()=>({position:"relative",right:"0.2rem",bottom:"0.1rem",color:"#ced6de",cursor:"pointer"}),clearIndicator:()=>({position:"relative",right:"0.5rem",bottom:"0.1rem",color:"red",cursor:"pointer"})},bg=e=>{const{fieldName:t,fieldLabel:r,withLabel:n=!0,required:a,dynamic:i}=e,{register:o,control:s,formState:{errors:u}}=Rt(),l=cg({dynamic:i,errors:u}),{content:d,type:c}=dg({register:o,control:s,...e});return W.jsxs("div",{className:"w-full",children:[c==="checkbox"?W.jsx(W.Fragment,{children:d}):W.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[W.jsxs("label",{htmlFor:t,className:"flex gap-0.5 items-center font-semibold",children:[n&&(r||_t(t)),n&&a&&W.jsx("span",{className:"text-red-500",children:"*"})]}),d]}),l?W.jsx("p",{className:"text-sm text-red-500 mt-1",children:l}):u[t]&&W.jsx(_d,{errors:u,name:t,render:({message:$})=>W.jsx("p",{className:"text-sm text-red-500 mt-1",children:$})})]})};export{mg as F,bg as a,yg as u};
