PageSourceSearch

https://app2.sked.life/assets/ai-receptionist.page-tXPmtqQu.js

js sked.life collected 2026-10-02 12:15:14 UTC 276,610 bytes, 5 lines download raw bytes

1import{r as o,j as r,M as Rt,$ as pe,a3 as zt,aA as x,H as Pe,bE as c0,n as z,kL as f1,ew as g1,dF as j,a6 as Se,az as ft,ak as st,al as ge,ap as m1,kM as Tt,N as Z,kN as C1,C as gt,a8 as kt,br as v1,jP as x1,eA as b1,af as u0,bC as S1,bL as Nt,be as oe,e as A1,a as it,kO as P1,cx as _1,cA as pl,b1 as N1,a$ as Kt,G as Ze,dQ as Vt,ax as w1,R as j1,ay as $l,i as k1,P as I1,bA as hl}from"./index-2k2e1F8S.js";import{F as z1}from"./feature-disabled.component-BcL7Qi9I.js";import{a as tn,I as Ke}from"./Input.component-x3IBogpr.js";import{L as nt}from"./Loading.component-Dq4YBBIA.js";import{u as T1,v as E1,w as U1,C as O1}from"./Appointments.component-xcykr4Sn.js";import{C as de}from"./CalloutCard.component-C782SQjO.js";import{T as p0,H as xe,B as be,a as yl}from"./TableContainer.component-DbVZvbOn.js";import{B as g}from"./Box-J9ns1Mf-.js";import{T as $0}from"./TableHead-BF_d99Ij.js";import{a as fl,T as h0}from"./TableRow-B_Xdv0vT.js";import{H as M1}from"./Help-C015KE1B.js";import{A as L1}from"./Autocomplete.component-DM0hn9df.js";import{T as y0}from"./Tag.component-BVO2lwdQ.js";import{S as mt}from"./Select.component-Dq4QdXhZ.js";import{f as F1,g as f0}from"./phone-B39Y4O8P.js";import{I as ln}from"./InputAdornment-D_vrziC0.js";import{L as cn}from"./Link-J-dERu0A.js";import{B as Q}from"./Button.component-BxpK7Xc6.js";import{R as R1,A as D1}from"./ApptTypeSelector.component-EWG4Y7VK.js";import{P as gl}from"./PencilFilled.icon-Cr4tKqJm.js";import{I as B1}from"./sectionItems-kp_XVyu4.js";import{b as g0,n as m0,p as H1,f as W1}from"./NewPatientPortal.actions-C3PsWlK1.js";import{T as ml}from"./Trash.icon-D3NE4Rsn.js";import{C as G1}from"./Check-CeNJHpI6.js";import{C as K1}from"./Checkbox.component-drCMVWvX.js";import{L as V1}from"./LinearProgress-DZsi77i4.js";import{A as q1}from"./Add-BvHB-VPL.js";import{P as Y1}from"./PageHeader.component-3dQc61hD.js";import{H as X1}from"./HeaderCheckbox.component-TOhPuIv5.js";import{H as Z1}from"./HeaderSearch.component-Di9aUAT4.js";import{H as J1}from"./HeaderTabs.component-CEAaAfJ_.js";import{S as Q1}from"./SaveButton.component-BFghbSdt.js";import{F as Cl}from"./FilterHeader.component-9vKVsrMw.js";import{R as vl}from"./Radio-C6B0eTuQ.js";import"./inputAdornmentClasses-DAPYZ7aH.js";import"./CheckBox-BfB6V0Cq.js";import"./Convert.component-BsMcnHdk.js";import"./Delete-TmGf8XG4.js";import"./KeyboardArrowDown-BHrHG3Mm.js";import"./promise.hook-BeqSMSpU.js";import"./Clock.icon-Bvr6hVKa.js";import"./range-DHSINqi3.js";import"./chain-r-wqyjzJ.js";import"./CheckCircle-C_HUDRG5.js";import"./Professional.icon-DnIWutr2.js";import"./DateInput.component-BQxPXKGY.js";import"./KeyboardArrowRight-Bch2APbE.js";import"./OpenInNewTab.icon-C9YptI6T.js";import"./FormControlLabel-DTmxyUmR.js";import"./Checkbox-CyLj9Qpv.js";import"./LockModal.component-ygEBKEFh.js";import"./RoundExclamation.icon-Cw5idCuV.js";import"./intake-list.page-Cu2FOuGL.js";import"./Settings.icon-DbzBDNHV.js";import"./Copy.icon-BUZYPIzG.js";import"./useTitle-CTZNLmI5.js";import"./emoji-B3ceABCI.js";import"./index-BcA84JJb.js";import"./Error-1FM79VlE.js";import"./ChevronLeft-B5IBp7lf.js";import"./Editor.component-9RjPO1Vb.js";import"./Info-v2HnUEsb.js";import"./TipTap.component-DAdOJtRB.js";import"./Link-CBIsPU2V.js";import"./Undo-DxLXRrh8.js";import"./Google-CLQvVlx_.js";import"./ImageUpload.component-ZwBTJrEM.js";import"./Lock-xVLNkkZ9.js";import"./components.component-Cu0TTQ7g.js";import"./Tabs-Bx01J7i8.js";import"./htmlTemplates-Do-QgPes.js";import"./fromPairs-eFGrIL2n.js";import"./forEach-DO2W1516.js";import"./gt-C04ZannU.js";import"./OpenInNew-CQNJnWC3.js";import"./AppointmentTypeLabel.component-DQp-xMkV.js";import"./dripCampaigns.types-BIQG0yzx.js";import"./Container.component-CmG6p6ds.js";import"./PhoneInput.component-OLhflosC.js";import"./FilterStartEndDate.component-CuwFXPlQ.js";import"./Delete.icon-B2ZEksMb.js";import"./placeholders-BGlTkxmw.js";import"./quick-replies.page-BJwNeT0r.js";import"./FilterText.component-DX2RZ1LH.js";import"./Search-CkpQcndd.js";import"./FilterSelect.component-Bq_PmD3e.js";import"./SwapVert-pZQINl7e.js";import"./useEppPlaceholders-4s2MCAmW.js";import"./automation-message.actions-DMBERNQA.js";import"./automations.actions-CtP7CGGz.js";import"./intersperse-DJV4HeB6.js";import"./appointments.service-J_UpJqSF.js";import"./Edit-CnMlClWI.js";import"./useDrop-C-hUx1J0.js";import"./Reports.icon-CtyS6F4m.js";import"./Avatar-C0xwm1EY.js";import"./getValidReactChildren-DpiZ8iPW.js";import"./AccordionSummary-w03QlhNd.js";import"./Collapse-CyyoCvKq.js";import"./automations.page-ITbPuAEc.js";import"./ChevronRight-D7JFQKUD.js";import"./typeahead.hook-C1tlD2BH.js";
1import"./MessageComposer.component-9X6tJC8T.js";import"./DialogTitle-C4ffLzD_.js";import"./DialogContent-BjQuEoSh.js";import"./DialogActions-Bn9BjVxc.js";import"./TagsSelector.component--6R4WKqj.js";import"./DrawerList.component-UrF4xbDr.js";import"./SidebarFolders.component-Ckn5UdIy.js";import"./ListItem-Bbo2Atif.js";import"./join-l_emI_xZ.js";import"./Switch-9VfNviW1.js";import"./sortWith-CMxVsVLW.js";import"./Stack-C6x6Zxxx.js";import"./Block-FjzC7Uxq.js";import"./DiscardDialog.component-BfyxxIyC.js";import"./ConfirmationDialog.component-BfuxQCeq.js";import"./difference-BfmijKj_.js";import"./app.actions-DaoresS8.js";import"./stop-managers.page-C60F_hEB.js";import"./Save-D9vymLfu.js";import"./Switch.component-CuD4u6RX.js";import"./SearchClients.component--9oxubWC.js";import"./RadioButtonUnchecked-ksLr7bc4.js";import"./RadioGroup-Cu6AG27I.js";import"./FormGroup-DlXI3Nad.js";import"./Card-sWLQbFU6.js";import"./form-validation-3A4u7sau.js";import"./AddClients.component-UUplwF0-.js";import"./FilterApptTypes.component-BiaTFW3H.js";import"./FilterLocations.component-Cot1zzdl.js";import"./ThreePeople.icon-DARHPGRn.js";import"./dripCampaigns.actions-w6hDcGa4.js";import"./subtract--TvxTltL.js";import"./PartialChecked.icon-Cg4BldBY.js";import"./ExpandLess-Chga_r89.js";import"./KeyboardArrowUp-BPKn8ZPp.js";import"./intersection-CvKlKIce.js";import"./InnerHeader.component-CIjmR-l0.js";import"./saveButton.styles-DG4YoOvr.js";const xl=({open:e,onClose:t,mode:n,initialType:a="info",item:i=null,onSave:d})=>{const[s,c]=o.useState(a),[u,l]=o.useState(""),[p,$]=o.useState("");o.useEffect(()=>{n==="edit"&&i?i.type==="question"?(c("question"),l(i.question),$(i.answer)):(c("info"),l(i.title),$(i.body)):n==="create"&&(c(a),l(""),$(""))},[n,i,a,e]);const y=o.useCallback(()=>{if(!(!u||!p)){if(n==="create")d(s==="question"?{type:"question",question:u,answer:p}:{type:"info",title:u,body:p});else{if(!i)return;i.type==="question"?d({...i,question:u,answer:p}):d({...i,title:u,body:p})}t()}},[u,p,n,s,i,d,t]),h=o.useMemo(()=>p.length,[p]),f=n==="create"?`Add ${s==="question"?"Question":"Information"} Item`:`Edit ${(i==null?void 0:i.type)==="question"?"Question":"Information"} Content`,m=n==="create"?"sked-test-AIReceptionist-CreateKnowledgeItemModal":"sked-test-AIReceptionist-EditTextContentModal",C=o.useCallback(_=>{l(_.target.value)},[]),v=o.useCallback(_=>{l(_.target.value.trim())},[]),S=o.useCallback(_=>{$(_.target.value)},[]),A=o.useCallback(_=>{$(_.target.value.trim())},[]);return r.jsx(Rt,{open:e,onClose:t,title:f,size:"sm",buttons:[r.jsx(Pe,{title:"Save",onClick:y,disabled:!u||!p,color:"primary",className:`${m}-Button-Save`},"save")],children:r.jsxs(pe,{display:"flex",flexDirection:"column",gap:2,children:[r.jsxs(zt,{fullWidth:!0,children:[r.jsx(tn,{htmlFor:`${m}-TextInput-Title`,children:s==="question"?"Question":"Title"}),r.jsx(Ke,{id:`${m}-TextInput-Title`,fullWidth:!0,placeholder:s==="question"?"Enter question...":"Enter title...",value:u,onChange:C,onBlur:v,className:`${m}-TextInput-Title`})]}),r.jsxs(zt,{fullWidth:!0,children:[r.jsxs(pe,{display:"flex",alignItems:"center",justifyContent:"space-between",sx:{marginBottom:"5px"},children:[r.jsx(tn,{htmlFor:`${m}-TextArea-Description`,sx:{marginBottom:0},children:s==="question"?"Answer":"Description"}),r.jsxs(x,{variant:"body2",sx:_=>({color:_.palette.gray[600]}),children:[h," characters"]})]}),r.jsx(Ke,{id:`${m}-TextArea-Description`,fullWidth:!0,multiline:!0,minRows:4,maxRows:10,placeholder:s==="question"?"Enter answer...":"Enter description...",value:p,onChange:S,onBlur:A,className:`${m}-TextArea-Description`}),r.jsx(x,{variant:"caption",sx:_=>({color:_.palette.gray[600],marginTop:"4px",display:"block"}),children:"Paste or type any text content you want to use for training the AI."})]})]})})},ec=({open:e,descriptor:t,timezone:n,onClose:a})=>{const i=o.useMemo(()=>t?c0(t.startTime,n,"MMM d, yyyy h:mm a"):"Call transcript",[t,n]);return t?r.jsx(Rt,{title:i,open:e,onClose:a,size:"md",className:"sked-test-AIReceptionist-ConversationTranscriptModal",contentMarginBottom:0,innerSx:{dis
1play:"flex",flexDirection:"column",minHeight:0,overflow:"hidden",paddingBottom:2},children:r.jsx(g,{sx:{display:"flex",flexDirection:"column",flex:1,minHeight:480,maxHeight:"calc(100vh - 220px)",overflow:"hidden"},children:r.jsx(T1,{descriptor:t},t.id)})}):null},ee=z(x,{})(({theme:e})=>({color:e.palette.gray[600]})),tc=()=>r.jsxs(g,{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minHeight:"40rem",children:[r.jsx(ee,{variant:"h2",sx:{fontSize:"21px",fontWeight:500,marginBottom:"8px"},children:"No Conversations Yet"}),r.jsxs(ee,{variant:"body2",sx:{fontSize:"16px",textAlign:"center",lineHeight:1.5},children:["AI receptionist calls will appear here once callers reach your office line.",r.jsx("br",{}),"You can review transcripts and call details from this table."]})]}),nc=z(p0)({display:"flex",flexDirection:"column",width:"100%",minWidth:0,height:"auto",position:"relative",marginBottom:0,"& > div:first-of-type":{minHeight:"40rem !important",maxHeight:"calc(100vh - 120px) !important",flex:"1 1 auto",overflow:"auto"},"& .MuiTable-root":{width:"100%",tableLayout:"fixed"}}),rc=({rows:e,error:t,paginationData:n,timezone:a})=>{const[i,d]=o.useState(null),[s,c]=o.useState(0),u=o.useCallback(h=>{h.stopPropagation();const f=Number(h.currentTarget.dataset.clientId);Number.isInteger(f)&&f>0&&c(f)},[]),l=o.useCallback(()=>{c(0)},[]),p=o.useCallback(h=>{const f=h.currentTarget.dataset.conversationId;if(!f)return;const m=e.find(({descriptor:C})=>C.id===f);m&&d(m.descriptor)},[e]),$=o.useCallback(()=>{d(null)},[]),y=o.useCallback(h=>{h.stopPropagation()},[]);return t&&e.length===0?r.jsx(de,{open:!0,variant:"error",title:t,noTag:!0}):e.length===0?r.jsx(tc,{}):r.jsxs(g,{sx:{width:"100%",minWidth:0},children:[t&&r.jsx(de,{open:!0,variant:"error",title:t,noTag:!0,style:{marginBottom:8}}),r.jsxs(nc,{pagination:!0,paginationData:n,scrollPaddingBottom:38,className:"sked-test-AIReceptionist-ConversationsTable-Table",children:[r.jsx($0,{children:r.jsxs(fl,{children:[r.jsx(xe,{fixed:!0,children:"Name"}),r.jsx(xe,{children:"Phone"}),r.jsx(xe,{children:"Date/Time"}),r.jsx(xe,{children:"Duration"}),r.jsx(xe,{children:"Tags"})]})}),r.jsx(h0,{children:e.map(({descriptor:h,clientId:f})=>{var m;return r.jsxs(fl,{hover:!0,"data-conversation-id":h.id,onClick:p,sx:{cursor:"pointer"},children:[r.jsx(be,{fixed:!0,children:f?r.jsx(x,{component:"button",type:"button",variant:"body2","data-client-id":f,onClick:u,sx:{background:"none",border:"none",padding:0,fontSize:14,color:"primary.main",cursor:"pointer",textAlign:"left"},children:((m=h.patientName)==null?void 0:m.trim())||"Patient"}):"Unknown Caller"}),r.jsx(be,{children:h.patientPhoneNumber}),r.jsx(be,{children:c0(h.startTime,a,"MMM d, yyyy h:mm a")}),r.jsx(be,{children:E1(h.duration)}),r.jsx(be,{children:r.jsx(g,{onClick:y,sx:{maxWidth:280,minWidth:0},children:r.jsx(U1,{tags:h.tags,compact:!0})})})]},h.id)})})]}),r.jsx(ec,{open:i!==null,descriptor:i,timezone:a,onClose:$}),r.jsx(O1,{clientId:s,open:!!s,onClose:l})]})},ac=({conversations:e,timezone:t})=>{const{rows:n,loading:a,error:i,pagination:d}=e;return a?r.jsx(nt,{loading:!0}):r.jsx(g,{sx:{width:"100%",minWidth:0,alignSelf:"stretch"},children:r.jsx(rc,{rows:n,error:i,paginationData:d,timezone:t})})},ic=25,oc=({enabled:e})=>{const[t,n]=o.useState([]),[a,i]=o.useState(!1),[d,s]=o.useState(null),[c,u]=o.useState(1),[l,p]=o.useState(ic),[$,y]=o.useState(0),[h,f]=o.useState(0),m=o.useCallback(async()=>{if(e){i(!0),s(null);try{const A=await f1({page:c,perPage:l});n(A.rows);const _=A.rows.length,U=A.totalCount??(c-1)*l+_,O=A.totalPages??(_<l?c:c+1);y(U),f(O)}catch(A){console.error("Failed to fetch Alina conversations:",A),n([]),y(0),f(0),s("Failed to load conversations.")}finally{i(!1)}}},[e,c,l]);o.useEffect(()=>{e&&m()},[e,m]);const C=o.useCallback(A=>{u(_=>Math.max(1,_+A))},[]),v=o.useCallback(A=>{p(A),u(1)},[]),S=o.useMemo(()=>({page:c,perPage:l,setPerPage:v,totalPages:h,totalCount:$,addPage:C,currentLength:t.length,className:"sked-test-AIReceptionist-ConversationsTable-Pagination"}),[c,l,v,h,$,C,t.length]);return o.useMemo(()=>({rows:t,loading:a,error:d,pagination:S,refetch:m}),[t,a,d,S,m])},dc=({color:e,className:t,...n})=>r.jsx("svg",{className:t,viewBox:"0 0 11 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:r.jsx("path",{d:"M6.03906 0V3.99414C6.
103906 4.28904 6.27835 4.52832 6.57324 4.52832H10.7715V10.5361C10.7715 11.8965 9.66894 12.9998 8.30859 13H2.46387C1.10336 13 0 11.8966 0 10.5361V2.46387C0 1.10336 1.10336 0 2.46387 0H6.03906ZM3.07227 9.38672C2.76221 9.38687 2.51074 9.63815 2.51074 9.94824C2.5108 10.2583 2.76224 10.5096 3.07227 10.5098H7.79199C8.10215 10.5098 8.35346 10.2584 8.35352 9.94824C8.35352 9.63805 8.10219 9.38672 7.79199 9.38672H3.07227ZM3.07227 7.08594C2.76237 7.08609 2.511 7.33759 2.51074 7.64746C2.51074 7.95755 2.76221 8.20981 3.07227 8.20996H7.79199C8.10219 8.20996 8.35352 7.95766 8.35352 7.64746C8.35326 7.33749 8.10203 7.08594 7.79199 7.08594H3.07227ZM3.07227 4.71777C2.76221 4.71793 2.51074 4.9692 2.51074 5.2793C2.51084 5.58931 2.76227 5.84067 3.07227 5.84082H4.37012C4.68015 5.8407 4.93155 5.58934 4.93164 5.2793C4.93164 4.96918 4.68021 4.7179 4.37012 4.71777H3.07227ZM10.5566 3.80762H6.74414V0.15918L10.5566 3.80762Z",fill:e||"#4F4F55"})}),sc=3,wt="900px",un="650px",C0="https://intercom.help/sked-help-center/en/",X={general:"general",knowledge:"knowledge",conversations:"conversations"},lc=[{value:X.general,label:"General"},{value:X.knowledge,label:"Knowledge"},{value:X.conversations,label:"Call History"}],cc=[{value:"info",label:"Information",icon:dc},{value:"question",label:"Question",icon:M1}],uc=[{value:"date-added-newest",label:"Date Added (Newest First)"},{value:"date-added-oldest",label:"Date Added (Oldest First)"},{value:"last-edited-newest",label:"Last Edited Date (Newest First)"},{value:"last-edited-oldest",label:"Last Edited Date (Oldest First)"},{value:"title-asc",label:"Title (A - Z)"},{value:"title-desc",label:"Title (Z - A)"}],Et=[{value:"en",label:"English"},{value:"zh",label:"Chinese"},{value:"es",label:"Spanish"},{value:"hi",label:"Hindi"},{value:"pt",label:"Portuguese"},{value:"pt-br",label:"Portuguese (Brazil)"},{value:"fr",label:"French"},{value:"de",label:"German"},{value:"ja",label:"Japanese"},{value:"ar",label:"Arabic"},{value:"ko",label:"Korean"},{value:"id",label:"Indonesian"},{value:"it",label:"Italian"},{value:"nl",label:"Dutch"},{value:"tr",label:"Turkish"},{value:"pl",label:"Polish"},{value:"ru",label:"Russian"},{value:"sv",label:"Swedish"},{value:"tl",label:"Tagalog"},{value:"ms",label:"Malay"},{value:"ro",label:"Romanian"},{value:"uk",label:"Ukrainian"},{value:"el",label:"Greek"},{value:"cs",label:"Czech"},{value:"da",label:"Danish"},{value:"fi",label:"Finnish"},{value:"bg",label:"Bulgarian"},{value:"hr",label:"Croatian"},{value:"sk",label:"Slovak"},{value:"ta",label:"Tamil"},{value:"vi",label:"Vietnamese"},{value:"no",label:"Norwegian"},{value:"hu",label:"Hungarian"},{value:"fil",label:"Filipino"},{value:"af",label:"Afrikaans"},{value:"hy",label:"Armenian"},{value:"as",label:"Assamese"},{value:"az",label:"Azerbaijani"},{value:"be",label:"Belarusian"},{value:"bn",label:"Bengali"},{value:"bs",label:"Bosnian"},{value:"ca",label:"Catalan"},{value:"et",label:"Estonian"},{value:"gl",label:"Galician"},{value:"ka",label:"Georgian"},{value:"gu",label:"Gujarati"},{value:"ha",label:"Hausa"},{value:"he",label:"Hebrew"},{value:"is",label:"Icelandic"},{value:"ga",label:"Irish"},{value:"jv",label:"Javanese"},{value:"kn",label:"Kannada"},{value:"kk",label:"Kazakh"},{value:"ky",label:"Kyrgyz"},{value:"lv",label:"Latvian"},{value:"lt",label:"Lithuanian"},{value:"lb",label:"Luxembourgish"},{value:"mk",label:"Macedonian"},{value:"ml",label:"Malayalam"},{value:"mr",label:"Marathi"},{value:"ne",label:"Nepali"},{value:"ps",label:"Pashto"},{value:"fa",label:"Persian"},{value:"pa",label:"Punjabi"},{value:"sr",label:"Serbian"},{value:"sd",label:"Sindhi"},{value:"sl",label:"Slovenian"},{value:"so",label:"Somali"},{value:"sw",label:"Swahili"},{value:"te",label:"Telugu"},{value:"th",label:"Thai"},{value:"ur",label:"Urdu"},{value:"cy",label:"Welsh"}],pc=({value:e,onChange:t,maxWidth:n="650px",className:a})=>{const i=Et.filter(c=>e.includes(c.value)),d=o.useCallback((c,u)=>{t(u.map(l=>l.value))},[t]),s=o.useCallback(c=>{t(e.filter(u=>u!==c))},[t,e]);return r.jsx(zt,{fullWidth:!0,sx:{maxWidth:n},className:a,children:r.jsx(L1,{multiple:!0,options:Et,getOptionLabel:c=>c.label,value:i,onChange:d,isOptionEqualToValue:(c,u)=>c.value===u.value,disableCloseOnSelect:!0,className:`${a}-Autocomplete`,placeholder:"Select languages...",hasCheck:!0,renderTags:(c,u)=>c.map((l,p)=>{const{key:$,...y}
1=u({index:p});return r.jsx(y0,{title:l.label,onClose:()=>s(l.value),className:`${a}-Tag-${p+1}`,sx:h=>({backgroundColor:g1(h.palette.primary.dark,.1)}),...y},$)}),slotProps:{paper:{sx:{borderRadius:"12px",maxWidth:n,maxHeight:400}}}})})},$c="sked-test-AIReceptionist-General-Form-DropDown-ReceptionistLanguage",hc="sked-test-AIReceptionist-General-Form-DropDown-AdditionalLanguages",v0=({languages:e,receptionistLanguageClassName:t=$c,additionalLanguagesClassName:n=hc})=>{const a=j(),{receptionistLanguage:i,additionalLanguages:d,onReceptionistLanguageChange:s,onAdditionalLanguagesChange:c}=e,u=o.useCallback(l=>{s(l.target.value)},[s]);return r.jsxs(r.Fragment,{children:[r.jsxs(pe,{marginBottom:3,children:[r.jsx(x,{variant:"h3",sx:{fontWeight:600,margin:0,lineHeight:"16px",fontSize:"16px",color:a.palette.gray[700]},children:"Alina Language"}),r.jsx(ee,{variant:"body1",sx:{margin:"0.5rem 0"},children:"Choose the default language Alina will communicate in."}),r.jsx(g,{sx:{maxWidth:"200px",width:"100%"},children:r.jsx(mt,{value:i,onChange:u,SelectProps:{displayEmpty:!0},className:t,children:Et.map((l,p)=>r.jsx(Se,{value:l.value,className:`${t}-ListItem-${p+1}`,children:l.label},l.value))})})]}),r.jsxs(pe,{marginBottom:3,children:[r.jsx(x,{variant:"h3",sx:{fontWeight:600,margin:0,lineHeight:"16px",fontSize:"16px",color:a.palette.gray[700]},children:"Additional Languages"}),r.jsx(ee,{variant:"body1",sx:{margin:"0.5rem 0"},children:"Specify additional languages which callers can choose from."}),r.jsx(pc,{value:d,onChange:c,maxWidth:un,className:n})]})]})},yc=({languages:e})=>{const t=j();return r.jsxs(r.Fragment,{children:[r.jsx(x,{variant:"h2",sx:{fontWeight:600,margin:0,marginBottom:"1.5rem",lineHeight:"18px",fontSize:"18px",color:t.palette.gray[800]},children:"Languages"}),r.jsx(v0,{languages:e})]})};var qt,bl;function fc(){if(bl)return qt;bl=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,i=($e,K)=>{for(var _t in K)e($e,_t,{get:K[_t],enumerable:!0})},d=($e,K,_t,ul)=>{if(K&&typeof K=="object"||typeof K=="function")for(let at of n(K))!a.call($e,at)&&at!==_t&&e($e,at,{get:()=>K[at],enumerable:!(ul=t(K,at))||ul.enumerable});return $e},s=$e=>d(e({},"__esModule",{value:!0}),$e),c={};i(c,{getDataFromAreaCode:()=>y1,getZipcodeFromAreaCode:()=>h1}),qt=s(c);var u={};i(u,{201:()=>l,202:()=>p,203:()=>$,204:()=>y,205:()=>h,206:()=>f,207:()=>m,208:()=>C,209:()=>v,210:()=>S,212:()=>A,213:()=>_,214:()=>U,215:()=>O,216:()=>M,217:()=>w,218:()=>k,219:()=>B,220:()=>F,223:()=>T,224:()=>I,225:()=>J,226:()=>H,227:()=>q,228:()=>L,229:()=>E,231:()=>te,234:()=>se,235:()=>W,236:()=>ye,239:()=>G,240:()=>ne,248:()=>D,249:()=>P,250:()=>re,251:()=>fe,252:()=>_e,253:()=>le,254:()=>ae,256:()=>Ce,257:()=>Ne,260:()=>we,262:()=>je,263:()=>ke,267:()=>ie,269:()=>Ie,270:()=>ze,272:()=>Te,274:()=>Ee,276:()=>Ue,279:()=>Oe,281:()=>Me,283:()=>Le,289:()=>Fe,301:()=>Re,302:()=>De,303:()=>Be,304:()=>He,305:()=>We,306:()=>qe,307:()=>Ge,308:()=>N,309:()=>Y,310:()=>vt,312:()=>xt,313:()=>bt,314:()=>St,315:()=>At,316:()=>Pt,317:()=>b,318:()=>R,319:()=>ce,320:()=>ue,321:()=>Ye,323:()=>Xe,324:()=>mn,325:()=>Cn,326:()=>vn,327:()=>xn,329:()=>bn,330:()=>Sn,331:()=>An,332:()=>Pn,334:()=>_n,336:()=>Nn,337:()=>wn,339:()=>jn,340:()=>kn,341:()=>In,343:()=>zn,346:()=>Tn,347:()=>En,350:()=>Un,351:()=>On,352:()=>Mn,354:()=>Ln,357:()=>Fn,360:()=>Rn,361:()=>Dn,363:()=>Bn,364:()=>Hn,365:()=>Wn,367:()=>Gn,368:()=>Kn,369:()=>Vn,380:()=>qn,382:()=>Yn,385:()=>Xn,386:()=>Zn,401:()=>Jn,402:()=>Qn,403:()=>er,404:()=>tr,405:()=>nr,406:()=>rr,407:()=>ar,408:()=>ir,409:()=>or,410:()=>dr,412:()=>sr,413:()=>lr,414:()=>cr,415:()=>ur,416:()=>pr,417:()=>$r,418:()=>hr,419:()=>yr,423:()=>fr,424:()=>gr,425:()=>mr,428:()=>Cr,430:()=>vr,431:()=>xr,432:()=>br,434:()=>Sr,435:()=>Ar,436:()=>Pr,437:()=>_r,438:()=>Nr,440:()=>wr,442:()=>jr,443:()=>kr,445:()=>Ir,447:()=>zr,448:()=>Tr,450:()=>Er,457:()=>Ur,458:()=>Or,463:()=>Mr,464:()=>Lr,468:()=>Fr,469:()=>Rr,470:()=>Dr,472:()=>Br,474:()=>Hr,475:()=>Wr,478:()=>Gr,479:()=>Kr,480:()=>Vr,483:()=>qr,484:()=>Yr,501:()=>Xr,502:()=>Zr,503:()=>Jr,504:()=>Qr,505:()=>ea,506:()=>ta,507:()=>na,508:()=>ra,509:()=>aa,510:()=>ia,512:()=>oa,513:()=>da,514:()=>sa,515:()=>la,516:()=>ca,517:()=>ua,518:()=>pa,519:()=>$a,520:()=>ha,530:()=>ya,531:()=>fa,534:()=>ga,539:()=>ma,540:()=>Ca,541:()=>va,548:()=>xa,551:()=>ba,557:()=>Sa,559:()=>Aa,561:()=>Pa,562:()=>_a,563:()=>Na,564:()=>wa,567:()=>ja,570:()=>ka,571:()=>Ia,573:()=>za,574:()=>Ta,575:()=>Ea,579:()=>Ua,580:()=>Oa,581:()=>Ma,582:()=>La,584:()=>Fa,585:()=>Ra,586:()=>Da,587:()=>Ba,601:()=>Ha,602:()=>Wa,603:()=>Ga,604:()=>Ka,605:()=>Va,606:()=>qa,607:()=>Ya,608:()=>Xa,609:()=>Za,610:()=>Ja,612:()=>Qa,613:()=>ei,614:()=>ti,615:()=>ni,616:()=>ri,617:()=>ai,618:()=>ii,619:()=>oi,620:()=>di,621:()=>si,623:()=>li,624:()=>ci,626:()=>ui,627:()=>pi,628:()=>$i,629:()=>hi,630:()=>yi,631:()=>fi,636:()=>gi,639:()=>mi,640:()=>Ci,641:()=>vi,645:()=>xi,646:()=>bi,647:()=>Si,650:()=>Ai,651:()=>Pi,656:()=>_i,657:()=>Ni,659:()=>wi,660:()=>ji,661:()=>ki,662:()=>Ii,667:()=>zi,669:()=>Ti,670:()=>Ei,671:()=>Ui,672:()=>Oi,678:()=>Mi,679:()=>Li,680:()=>Fi,681:()=>Ri,682:()=>Di,683:()=>Bi,684:()=>Hi,686:()=>Wi,689:()=>Gi,701:()=>Ki,702:()=>Vi,703:()=>qi,704:()=>Yi,705:()=>Xi,706:()=>Zi,707:()=>Ji,708:()=>Qi,709:()=>eo,712:()=>to,713:()=>no,714:()=>ro,715:()=>ao,716:()=>io,717:()=>oo,718:()=>so,719:()=>lo,720:()=>co,724:()=>uo,725:()=>po,726:()=>$o,727:()=>ho,728:()=>yo,729:()=>fo,730:()=>go,731:()=>mo,732:()=>Co,734:()=>vo,737:()=>xo,738:()=>bo,740:()=>So,742:()=>Ao,743:()=>Po,747:()=>_o,748:()=>No,753:()=>wo,754:()=>jo,757:()=>ko,760:()=>Io,762:()=>zo,763:()=>To,765:()=>Eo,769:()=>Uo,770:()=>Oo,771:()=>Mo,772:()=>Lo,773:()=>Fo,774:()=>Ro,775:()=>Do,778:()=>Bo,779:()=>Ho,780:()=>Wo,781:()=>Go,782:()=>Ko,785:()=>Vo,786:()=>qo,800:()=>Yo,801:()=>Xo,802:()=>Zo,803:()=>Jo,804:()=>Qo,805:()=>ed,806:()=>td,807:()=>nd,808:()=>rd,810:()=>ad,812:()=>id,813:()=>od,814:()=>
1dd,815:()=>sd,816:()=>ld,817:()=>cd,818:()=>ud,819:()=>pd,820:()=>$d,821:()=>hd,822:()=>yd,825:()=>fd,826:()=>gd,828:()=>md,830:()=>Cd,831:()=>vd,832:()=>xd,833:()=>bd,835:()=>Sd,837:()=>Ad,838:()=>Pd,839:()=>_d,840:()=>Nd,843:()=>wd,844:()=>jd,845:()=>kd,847:()=>Id,848:()=>zd,850:()=>Td,854:()=>Ed,855:()=>Ud,856:()=>Od,857:()=>Md,858:()=>Ld,859:()=>Fd,860:()=>Rd,861:()=>Dd,862:()=>Bd,863:()=>Hd,864:()=>Wd,865:()=>Gd,866:()=>Kd,867:()=>Vd,870:()=>qd,872:()=>Yd,873:()=>Xd,877:()=>Zd,878:()=>Jd,879:()=>Qd,880:()=>es,881:()=>ts,882:()=>ns,883:()=>rs,884:()=>as,885:()=>is,886:()=>os,887:()=>ds,888:()=>ss,889:()=>ls,901:()=>cs,902:()=>us,903:()=>ps,904:()=>$s,905:()=>hs,906:()=>ys,907:()=>fs,908:()=>gs,909:()=>ms,910:()=>Cs,912:()=>vs,913:()=>xs,914:()=>bs,915:()=>Ss,916:()=>As,917:()=>Ps,918:()=>_s,919:()=>Ns,920:()=>ws,924:()=>js,925:()=>ks,928:()=>Is,929:()=>zs,930:()=>Ts,931:()=>Es,934:()=>Us,936:()=>Os,937:()=>Ms,938:()=>Ls,940:()=>Fs,941:()=>Rs,942:()=>Ds,943:()=>Bs,945:()=>Hs,947:()=>Ws,948:()=>Gs,949:()=>Ks,951:()=>Vs,952:()=>qs,954:()=>Ys,956:()=>Xs,959:()=>Zs,970:()=>Js,971:()=>Qs,972:()=>el,973:()=>tl,975:()=>nl,978:()=>rl,979:()=>al,980:()=>il,983:()=>ol,984:()=>dl,985:()=>sl,986:()=>ll,989:()=>cl,default:()=>$1});var l={city:"Bayonne",state:"NJ",zipCode:"07002",country:"US"},p={city:"Washington",state:"DC",zipCode:"20001",country:"US"},$={city:"Bridgeport",state:"CT",zipCode:"06604",country:"US"},y={city:"Winnipeg",state:"MB",zipCode:"R2C0A5",country:"CA"},h={city:"Birmingham",state:"AL",zipCode:"35203",country:"US"},f={city:"Seattle",state:"WA",zipCode:"98101",country:"US"},m={city:"Portland",state:"ME",zipCode:"04101",country:"US"},C={city:"Boise",state:"ID",zipCode:"83702",country:"US"},v={city:"Lodi",state:"CA",zipCode:"95240",country:"US"},S={city:"San Antonio",state:"TX",zipCode:"78205",country:"US"},A={city:"New York City",state:"NY",zipCode:"10024",country:"US"},_={city:"Los Angeles",state:"CA",zipCode:"90015",country:"US"},U={city:"Dallas",state:"TX",zipCode:"75201",country:"US"},O={city:"Levittown",state:"PA",zipCode:"19054",country:"US"},M={city:"Cleveland",state:"OH",zipCode:"44101",country:"US"}
1,w={city:"Champaign",state:"IL",zipCode:"61820",country:"US"},k={city:"Duluth",state:"MN",zipCode:"55802",country:"US"},B={city:"Gary",state:"IN",zipCode:"46402",country:"US"},F={city:"Athens",state:"OH",zipCode:"45701",country:"US"},T={city:"Lancaster",state:"PA",zipCode:"17602",country:"US"},I={city:"Arlington Heights",state:"IL",zipCode:"60004",country:"US"},J={city:"Baton Rouge",state:"LA",zipCode:"70801",country:"US"},H={city:"London",state:"ON",zipCode:"N5V0A2",country:"CA"},q={city:"Silver Spring",state:"MD",zipCode:"20901",country:"US"},L={city:"Biloxi",state:"MS",zipCode:"39530",country:"US"},E={city:"Albany",state:"GA",zipCode:"31701",country:"US"},te={city:"Grant",state:"MI",zipCode:"49327",country:"US"},se={city:"Akron",state:"OH",zipCode:"44301",country:"US"},W={city:"Columbia",state:"MO",zipCode:"65211",country:"US"},ye={city:"Victoria",state:"BC",zipCode:"V8P5N3",country:"CA"},G={city:"Cape Coral",state:"FL",zipCode:"33904",country:"US"},ne={city:"Aspen Hill",state:"MD",zipCode:"20906",country:"US"},D={city:"Farmington Hills",state:"MI",zipCode:"48331",country:"US"},P={city:"Sudbury",state:"ON",zipCode:"P3A0A4",country:"CA"},re={city:"Victoria",state:"BC",zipCode:"V8P5N3",country:"CA"},fe={city:"Mobile",state:"AL",zipCode:"36601",country:"US"},_e={city:"Elizabeth City",state:"NC",zipCode:"27909",country:"US"},le={city:"Kent",state:"WA",zipCode:"98030",country:"US"},ae={city:"Eastland",state:"TX",zipCode:"76448",country:"US"},Ce={city:"Decatur",state:"AL",zipCode:"35601",country:"US"},Ne={city:"Vancouver",state:"BC",zipCode:"V6B4Y8",country:"CA"},we={city:"Fort Wayne",state:"IN",zipCode:"46802",country:"US"},je={city:"Kenosha",state:"WI",zipCode:"53140",country:"US"},ke={city:"Montreal",state:"QC",zipCode:"H2W1K4",country:"CA"},ie={city:"Levittown",state:"PA",zipCode:"19055",country:"US"},Ie={city:"Allegan",state:"MI",zipCode:"49010",country:"US"},ze={city:"Bowling Green",state:"KY",zipCode:"42101",country:"US"},Te={city:"Back Mountain",state:"PA",zipCode:"18612",country:"US"},Ee={city:"Green Bay",state:"WI",zipCode:"54301",country:"US"},Ue={city:"Danville",state:"VA",zipCode:"24540",country:"US"},Oe={city:"Arden-Arcade",state:"CA",zipCode:"95825",country:"US"},Me={city:"Baytown",state:"TX",zipCode:"77520",country:"US"},Le={city:"Cincinnati",state:"OH",zipCode:"45201",country:"US"},Fe={city:"Mississauga",state:"ON",zipCode:"L4T0A2",country:"CA"},Re={city:"Aspen Hill",state:"MD",zipCode:"20906",country:"US"},De={city:"Dover",state:"DE",zipCode:"19901",country:"US"},Be={city:"Aurora",state:"CO",zipCode:"80010",country:"US"},He={city:"Charleston",state:"WV",zipCode:"25301",country:"US"},We={city:"Miami",state:"FL",zipCode:"33101",country:"US"},qe={city:"Regina",state:"SK",zipCode:"S4T3N1",country:"CA"},Ge={city:"Casper",state:"WY",zipCode:"82601",country:"US"}
1,N={city:"Kearney",state:"NE",zipCode:"68847",country:"US"},Y={city:"Bloomington",state:"IL",zipCode:"61701",country:"US"},vt={city:"Los Angeles",state:"CA",zipCode:"90001",country:"US"},xt={city:"Chicago",state:"IL",zipCode:"60601",country:"US"},bt={city:"Dearborn",state:"MI",zipCode:"48120",country:"US"},St={city:"Florissant",state:"MO",zipCode:"63031",country:"US"},At={city:"Syracuse",state:"NY",zipCode:"13201",country:"US"},Pt={city:"Wichita",state:"KS",zipCode:"67201",country:"US"},b={city:"Indianapolis",state:"IN",zipCode:"46201",country:"US"},R={city:"Bossier City",state:"LA",zipCode:"71111",country:"US"},ce={city:"Cedar Rapids",state:"IA",zipCode:"52401",country:"US"},ue={city:"Alexandria",state:"MN",zipCode:"56308",country:"US"},Ye={city:"Melbourne",state:"FL",zipCode:"32901",country:"US"},Xe={city:"Los Angeles",state:"CA",zipCode:"90001",country:"US"},mn={city:"Jacksonville",state:"FL",zipCode:"32201",country:"US"},Cn={city:"Abilene",state:"TX",zipCode:"79601",country:"US"},vn={city:"Dayton",state:"OH",zipCode:"45401",country:"US"},xn={city:"Jonesboro",state:"AR",zipCode:"72401",country:"US"},bn={city:"Kingston",state:"NY",zipCode:"12401",country:"US"},Sn={city:"Akron",state:"OH",zipCode:"44301",country:"US"}
1,An={city:"Aurora",state:"IL",zipCode:"60505",country:"US"},Pn={city:"Manhattan",state:"NY",zipCode:"10001",country:"US"},_n={city:"Auburn",state:"AL",zipCode:"36830",country:"US"},Nn={city:"Greensboro",state:"NC",zipCode:"27401",country:"US"},wn={city:"Lafayette",state:"LA",zipCode:"70501",country:"US"},jn={city:"Lynn",state:"MA",zipCode:"01901",country:"US"},kn={city:"Charlotte Amalie",state:"VI",zipCode:"00802",country:"US"},In={city:"Oakland",state:"CA",zipCode:"94601",country:"US"},zn={city:"Ottawa",state:"ON",zipCode:"K2V1A4",country:"CA"},Tn={city:"Alvin",state:"TX",zipCode:"77511",country:"US"},En={city:"Bronx",state:"NY",zipCode:"10451",country:"US"},Un={city:"Lodi",state:"CA",zipCode:"95240",country:"US"},On={city:"Haverhill",state:"MA",zipCode:"01830",country:"US"},Mn={city:"Gainesville",state:"FL",zipCode:"32601",country:"US"},Ln={city:"Granby",state:"QC",zipCode:"J2G0A2",country:"CA"},Fn={city:"Clovis",state:"CA",zipCode:"93611",country:"US"},Rn={city:"Bellingham",state:"WA",zipCode:"98225",country:"US"},Dn={city:"Corpus Christi",state:"TX",zipCode:"78401",country:"US"},Bn={city:"Freeport",state:"NY",zipCode:"11520",country:"US"},Hn={city:"Owensboro",state:"KY",zipCode:"42301",country:"US"},Wn={city:"Mississauga",state:"ON",zipCode:"L4T0A2",country:"CA"},Gn={city:"Saguenay",state:"QC",zipCode:"G0W1Z0",country:"CA"},Kn={city:"Edmonton",state:"AB",zipCode:"T5J0H6",country:"CA"},Vn={city:"santa rosa",state:"CA",zipCode:"95401",country:"US"},qn={city:"Columbus",state:"OH",zipCode:"43215",country:"US"},Yn={city:"London",state:"ON",zipCode:"N5V0A2",country:"CA"},Xn={city:"Ogden",state:"UT",zipCode:"84401",country:"US"},Zn={city:"Daytona Beach",state:"FL",zipCode:"32114",country:"US"},Jn={city:"Cranston",state:"RI",zipCode:"02920",country:"US"}
1,Qn={city:"Columbus",state:"NE",zipCode:"68601",country:"US"},er={city:"Calgary",state:"AB",zipCode:"T2G2W1",country:"CA"},tr={city:"Atlanta",state:"GA",zipCode:"30301",country:"US"},nr={city:"Midwest City",state:"OK",zipCode:"73110",country:"US"},rr={city:"Billings",state:"MT",zipCode:"59101",country:"US"},ar={city:"Altamonte Springs",state:"FL",zipCode:"32701",country:"US"},ir={city:"Gilroy",state:"CA",zipCode:"95020",country:"US"},or={city:"Beaumont",state:"TX",zipCode:"77701",country:"US"},dr={city:"Annapolis",state:"MD",zipCode:"21401",country:"US"},sr={city:"Pittsburgh",state:"PA",zipCode:"15201",country:"US"},lr={city:"Chicopee",state:"MA",zipCode:"01013",country:"US"},cr={city:"Milwaukee",state:"WI",zipCode:"53201",country:"US"},ur={city:"San Francisco",state:"CA",zipCode:"94101",country:"US"},pr={city:"Toronto",state:"ON",zipCode:"M3C1E6",country:"CA"},$r={city:"Springfield",state:"MO",zipCode:"65801",country:"US"},hr={city:"Saguenay",state:"QC",zipCode:"G0W1Z0",country:"CA"},yr={city:"Toledo",state:"OH",zipCode:"43601",country:"US"},fr={city:"Chattanooga",state:"TN",zipCode:"37401",country:"US"},gr={city:"Beverly Hills",state:"CA",zipCode:"90210",country:"US"},mr={city:"Bellevue",state:"WA",zipCode:"98004",country:"US"},Cr={city:"Prince William",state:"NB",zipCode:"E6K0A5",country:"CA"},vr={city:"Longview",state:"TX",zipCode:"75601",country:"US"},xr={city:"Winnipeg",state:"MB",zipCode:"R2C0A5",country:"CA"},br={city:"Midland",state:"TX",zipCode:"79701",country:"US"},Sr={city:"Lynchburg",state:"VA",zipCode:"24501",country:"US"},Ar={city:"Cedar City",state:"UT",zipCode:"84720",country:"US"},Pr={city:"Cleveland",state:"OH",zipCode:"44101",country:"US"},_r={city:"Toronto",state:"ON",zipCode:"M3C1E6",country:"CA"},Nr={city:"Montreal",state:"QC",zipCode:"H2W1K4",country:"CA"},wr={city:"Cleveland",state:"OH",zipCode:"44101",country:"US"},jr={city:"Apple Valley",state:"CA",zipCode:"92307",country:"US"},kr={city:"Baltimore",state:"MD",zipCode:"21201",country:"US"},Ir={city:"Philadelphia",state:"PA",zipCode:"19101",country:"US"}
1,zr={city:"Champaign",state:"IL",zipCode:"61820",country:"US"},Tr={city:"Pensacola",state:"FL",zipCode:"32501",country:"US"},Er={city:"Granby",state:"QC",zipCode:"J2G0A2",country:"CA"},Ur={city:"Bossier City",state:"LA",zipCode:"71111",country:"US"},Or={city:"Eugene",state:"OR",zipCode:"97401",country:"US"},Mr={city:"Carmel",state:"IN",zipCode:"46032",country:"US"},Lr={city:"Cicero",state:"IL",zipCode:"60804",country:"US"},Fr={city:"Sherbrooke",state:"QC",zipCode:"J1C0A6",country:"CA"},Rr={city:"Carrollton",state:"TX",zipCode:"75006",country:"US"},Dr={city:"Atlanta",state:"GA",zipCode:"30301",country:"US"},Br={city:"Fayetteville",state:"NC",zipCode:"28301",country:"US"},Hr={city:"Regina",state:"SK",zipCode:"S4T3N1",country:"CA"},Wr={city:"Bridgeport",state:"CT",zipCode:"06601",country:"US"},Gr={city:"Macon",state:"GA",zipCode:"31201",country:"US"},Kr={city:"Fayetteville",state:"AR",zipCode:"72701",country:"US"},Vr={city:"Chandler",state:"AZ",zipCode:"85224",country:"US"},qr={city:"Auburn",state:"AL",zipCode:"36830",country:"US"},Yr={city:"Allentown",state:"PA",zipCode:"18101",country:"US"},Xr={city:"Little Rock",state:"AR",zipCode:"72201",country:"US"},Zr={city:"Louisville",state:"KY",zipCode:"40201",country:"US"},Jr={city:"Beaver",state:"OR",zipCode:"97004",country:"US"},Qr={city:"Kenner",state:"LA",zipCode:"70062",country:"US"},ea={city:"Albuquerque",state:"NM",zipCode:"87101",country:"US"},ta={city:"Prince William",state:"NB",zipCode:"E6K0A5",country:"CA"},na={city:"Austin",state:"MN",zipCode:"55912",country:"US"},ra={city:"Cambridge",state:"MA",zipCode:"02138",country:"US"},aa={city:"Kennewick",state:"WA",zipCode:"99336",country:"US"},ia={city:"Alameda",state:"CA",zipCode:"94501",country:"US"},oa={city:"Austin",state:"TX",zipCode:"78701",country:"US"},da={city:"Cincinnati",state:"OH",zipCode:"45201",country:"US"},sa={city:"Montreal",state:"QC",zipCode:"H2W1K4",country:"CA"},la={city:"Ames",state:"IA",zipCode:"50010",country:"US"},ca={city:"Freeport",state:"NY",zipCode:"11520",country:"US"},ua={city:"Charlotte",state:"MI",zipCode:"48813",country:"US"},pa={city:"Albany",state:"NY",zipCode:"12201",country:"US"},$a={city:"London",state:"ON",zipCode:"N5V0A2",country:"CA"},ha={city:"Casas Adobes",state:"AZ",zipCode:"85701",country:"US"},ya={city:"Chico",state:"CA",zipCode:"95926",country:"US"}
1,fa={city:"Omaha",state:"NE",zipCode:"68101",country:"US"},ga={city:"Eau Claire",state:"WI",zipCode:"54701",country:"US"},ma={city:"Bartlesville",state:"OK",zipCode:"74003",country:"US"},Ca={city:"Blacksburg",state:"VA",zipCode:"24060",country:"US"},va={city:"Bend",state:"OR",zipCode:"97701",country:"US"},xa={city:"London",state:"ON",zipCode:"N5V0A2",country:"CA"},ba={city:"Bayonne",state:"NJ",zipCode:"07002",country:"US"},Sa={city:"St. Louis",state:"MO",zipCode:"63101",country:"US"},Aa={city:"Clovis",state:"CA",zipCode:"93611",country:"US"},Pa={city:"Boca Raton",state:"FL",zipCode:"33431",country:"US"},_a={city:"Bellflower",state:"CA",zipCode:"90706",country:"US"},Na={city:"Davenport",state:"IA",zipCode:"52801",country:"US"},wa={city:"Seattle",state:"WA",zipCode:"98101",country:"US"},ja={city:"Toledo",state:"OH",zipCode:"43601",country:"US"},ka={city:"Scranton",state:"PA",zipCode:"18501",country:"US"},Ia={city:"Alexandria",state:"VA",zipCode:"22301",country:"US"},za={city:"Columbia",state:"MO",zipCode:"65201",country:"US"},Ta={city:"Elkhart",state:"IN",zipCode:"46514",country:"US"},Ea={city:"Alamogordo",state:"NM",zipCode:"88310",country:"US"},Ua={city:"Granby",state:"QC",zipCode:"J2G0A2",country:"CA"},Oa={city:"Lawton",state:"OK",zipCode:"73501",country:"US"},Ma={city:"Saguenay",state:"QC",zipCode:"G0W1Z0",country:"CA"},La={city:"Erie",state:"PA",zipCode:"16501",country:"US"},Fa={city:"Winnipeg",state:"MB",zipCode:"R2C0A5",country:"CA"},Ra={city:"Arcade",state:"NY",zipCode:"14009",country:"US"},Da={city:"Sterling Heights",state:"MI",zipCode:"48310",country:"US"},Ba={city:"Edmonton",state:"AB",zipCode:"T5J0H6",country:"CA"},Ha={city:"Hattiesburg",state:"MS",zipCode:"39401",country:"US"},Wa={city:"Phoenix",state:"AZ",zipCode:"85001",country:"US"},Ga={city:"Dover",state:"NH",zipCode:"03820",country:"US"},Ka={city:"Vancouver",state:"BC",zipCode:"V6B4Y8",country:"CA"},Va={city:"Rapid City",state:"SD",zipCode:"57701",country:"US"},qa={city:"Ashland",state:"KY",zipCode:"41101",country:"US"},Ya={city:"Elmira",state:"NY",zipCode:"14901",country:"US"},Xa={city:"Janesville",state:"WI",zipCode:"53545",country:"US"},Za={city:"Allentown",state:"NJ",zipCode:"08501",country:"US"},Ja={city:"Allentown",state:"PA",zipCode:"18101",country:"US"},Qa={city:"Minneapolis",state:"MN",zipCode:"55401",country:"US"},ei={city:"Ottawa",state:"ON",zipCode:"K2V1A4",country:"CA"},ti={city:"Columbus",state:"OH",zipCode:"43215",country:"US"},ni={city:"Murfreesboro",state:"TN",zipCode:"37130",country:"US"},ri={city:"Grand Rapids",state:"MI",zipCode:"49501",country:"US"},ai={city:"Boston",state:"MA",zipCode:"02108",country:"US"}
1,ii={city:"Alton",state:"IL",zipCode:"62002",country:"US"},oi={city:"Chula Vista",state:"CA",zipCode:"91910",country:"US"},di={city:"Dodge City",state:"KS",zipCode:"67801",country:"US"},si={city:"Houston",state:"TX",zipCode:"77001",country:"US"},li={city:"Phoenix",state:"AZ",zipCode:"85001",country:"US"},ci={city:"Cattaraugus",state:"NY",zipCode:"14719",country:"US"},ui={city:"Alhambra",state:"CA",zipCode:"91801",country:"US"},pi={city:"Santa Rosa",state:"CA",zipCode:"95401",country:"US"},$i={city:"San Francisco",state:"CA",zipCode:"94101",country:"US"},hi={city:"Brentwood",state:"TN",zipCode:"37027",country:"US"},yi={city:"Naperville",state:"IL",zipCode:"60540",country:"US"},fi={city:"Babylon",state:"NY",zipCode:"11702",country:"US"},gi={city:"St. Charles",state:"MO",zipCode:"63301",country:"US"},mi={city:"Regina",state:"SK",zipCode:"S4T3N1",country:"CA"},Ci={city:"Allentown",state:"NJ",zipCode:"08501",country:"US"},vi={city:"Mason City",state:"IA",zipCode:"50401",country:"US"},xi={city:"Miami",state:"FL",zipCode:"33101",country:"US"},bi={city:"New York City",state:"NY",zipCode:"10001",country:"US"},Si={city:"Toronto",state:"ON",zipCode:"M3C1E6",country:"CA"},Ai={city:"Daly City",state:"CA",zipCode:"94014",country:"US"},Pi={city:"St. Paul",state:"MN",zipCode:"55101",country:"US"},_i={city:"Tampa",state:"FL",zipCode:"33601",country:"US"},Ni={city:"Anaheim",state:"CA",zipCode:"92801",country:"US"},wi={city:"Birmingham",state:"AL",zipCode:"35201",country:"US"},ji={city:"Marshall",state:"MO",zipCode:"65340",country:"US"},ki={city:"Earlimart",state:"CA",zipCode:"93219",country:"US"},Ii={city:"Starkville",state:"MS",zipCode:"39759",country:"US"},zi={city:"Baltimore",state:"MD",zipCode:"21201",country:"US"},Ti={city:"San Jose",state:"CA",zipCode:"95101",country:"US"},Ei={city:"saipan",state:"MP",zipCode:"96950",country:"US"},Ui={city:"Hagatna",state:"GU",zipCode:"96910",country:"US"},Oi={city:"Vancouver",state:"BC",zipCode:"V6B4Y8",country:"CA"},Mi={city:"Atlanta",state:"GA",zipCode:"30301",country:"US"},Li={city:"Detroit",state:"MI",zipCode:"48201",country:"US"},Fi={city:"Auburn",state:"NY",zipCode:"13021",country:"US"},Ri={city:"Charleston",state:"WV",zipCode:"25301",country:"US"},Di={city:"Arlington",state:"TX",zipCode:"76010",country:"US"},Bi={city:"Sudbury",state:"ON",zipCode:"P3A0A4",country:"CA"},Hi={city:"Pago Pago",state:"AS",zipCode:"96799",country:"US"},Wi={city:"Mechanicsville",state:"VA",zipCode:"23111",country:"US"},Gi={city:"Orlando",state:"FL",zipCode:"32801",country:"US"},Ki={city:"Bismarck",state:"ND",zipCode:"58501",country:"US"},Vi={city:"Henderson",state:"NV",zipCode:"89011",country:"US"},qi={city:"Alexandria",state:"VA",zipCode:"22301",country:"US"},Yi={city:"Charlotte",state:"NC",zipCode:"28202",country:"US"},Xi={city:"Sudbury",state:"ON",zipCode:"P3A0A4",country:"CA"},Zi={city:"Athens",state:"GA",zipCode:"30601",country:"US"},Ji={city:"Benicia",state:"CA",zipCode:"94510",country:"US"}
1,Qi={city:"Berwyn",state:"IL",zipCode:"60402",country:"US"},eo={city:"St. John's",state:"NL",zipCode:"A1E1T2",country:"CA"},to={city:"Council Bluffs",state:"IA",zipCode:"51501",country:"US"},no={city:"Houston",state:"TX",zipCode:"77001",country:"US"},ro={city:"Anaheim",state:"CA",zipCode:"92801",country:"US"},ao={city:"Chippewa Falls",state:"WI",zipCode:"54729",country:"US"},io={city:"Cattaraugus",state:"NY",zipCode:"14719",country:"US"},oo={city:"Lancaster",state:"PA",zipCode:"17601",country:"US"},so={city:"Bellerose",state:"NY",zipCode:"11426",country:"US"},lo={city:"Alamosa",state:"CO",zipCode:"81101",country:"US"},co={city:"Boulder",state:"CO",zipCode:"80301",country:"US"},uo={city:"New Castle",state:"PA",zipCode:"16101",country:"US"},po={city:"Henderson",state:"NV",zipCode:"89011",country:"US"},$o={city:"San Antonio",state:"TX",zipCode:"78201",country:"US"},ho={city:"Clearwater",state:"FL",zipCode:"33755",country:"US"},yo={city:"Boca Raton",state:"FL",zipCode:"33431",country:"US"},fo={city:"Chattanooga",state:"TN",zipCode:"37401",country:"US"}
1,go={city:"Alton",state:"IL",zipCode:"62002",country:"US"},mo={city:"Jackson",state:"TN",zipCode:"38301",country:"US"},Co={city:"Brick Township",state:"NJ",zipCode:"08723",country:"US"},vo={city:"Ann Arbor",state:"MI",zipCode:"48103",country:"US"},xo={city:"Austin",state:"TX",zipCode:"73301",country:"US"},bo={city:"Los Angeles",state:"CA",zipCode:"90015",country:"US"},So={city:"Athens",state:"OH",zipCode:"45701",country:"US"},Ao={city:"Mississauga",state:"ON",zipCode:"L4T0A2",country:"CA"},Po={city:"Greensboro",state:"NC",zipCode:"27401",country:"US"},_o={city:"Burbank",state:"CA",zipCode:"91501",country:"US"},No={city:"Durango",state:"CO",zipCode:"81301",country:"US"},wo={city:"Ottawa",state:"ON",zipCode:"K2V1A4",country:"CA"},jo={city:"Coral Springs",state:"FL",zipCode:"33065",country:"US"},ko={city:"Chesapeake",state:"VA",zipCode:"23320",country:"US"},Io={city:"Apple Valley",state:"CA",zipCode:"92307",country:"US"},zo={city:"Athens",state:"GA",zipCode:"30601",country:"US"},To={city:"Brooklyn Park",state:"MN",zipCode:"55443",country:"US"},Eo={city:"Kokomo",state:"IN",zipCode:"46901",country:"US"},Uo={city:"Hattiesburg",state:"MS",zipCode:"39401",country:"US"},Oo={city:"Atlanta",state:"GA",zipCode:"30301",country:"US"},Mo={city:"Washington",state:"DC",zipCode:"20001",country:"US"},Lo={city:"Port St. Lucie",state:"FL",zipCode:"34952",country:"US"}
1,Fo={city:"Chicago",state:"IL",zipCode:"60601",country:"US"},Ro={city:"Brockton",state:"MA",zipCode:"02301",country:"US"},Do={city:"Carson City",state:"NV",zipCode:"89701",country:"US"},Bo={city:"Victoria",state:"BC",zipCode:"V8P5N3",country:"CA"},Ho={city:"Joliet",state:"IL",zipCode:"60431",country:"US"},Wo={city:"Edmonton",state:"AB",zipCode:"T5J0H6",country:"CA"},Go={city:"Lynn",state:"MA",zipCode:"01901",country:"US"},Ko={city:"Halifax",state:"NS",zipCode:"B3H0A4",country:"CA"},Vo={city:"Abilene",state:"KS",zipCode:"67410",country:"US"},qo={city:"Hialeah",state:"FL",zipCode:"33010",country:"US"},Yo={city:null,state:null,zipCode:null,country:null},Xo={city:"Ogden",state:"UT",zipCode:"84401",country:"US"},Zo={city:"Bennington",state:"VT",zipCode:"05201",country:"US"},Jo={city:"Columbia",state:"SC",zipCode:"29201",country:"US"},Qo={city:"Mechanicsville",state:"VA",zipCode:"23111",country:"US"},ed={city:"Camarillo",state:"CA",zipCode:"93010",country:"US"},td={city:"Amarillo",state:"TX",zipCode:"79101",country:"US"},nd={city:"Kenora",state:"ON",zipCode:"P9N0A3",country:"CA"},rd={city:"Honolulu",state:"HI",zipCode:"96801",country:"US"},ad={city:"Flint",state:"MI",zipCode:"48501",country:"US"},id={city:"Bloomington",state:"IN",zipCode:"47401",country:"US"},od={city:"Tampa",state:"FL",zipCode:"33601",country:"US"},dd={city:"Erie",state:"PA",zipCode:"16501",country:"US"}
1,sd={city:"Joliet",state:"IL",zipCode:"60431",country:"US"},ld={city:"Kansas City",state:"MO",zipCode:"64101",country:"US"},cd={city:"Arlington",state:"TX",zipCode:"76010",country:"US"},ud={city:"Agoura Hills",state:"CA",zipCode:"91301",country:"US"},pd={city:"Sherbrooke",state:"QC",zipCode:"J1C0A6",country:"CA"},$d={city:"Camarillo",state:"CA",zipCode:"93010",country:"US"},hd={city:"Greenville",state:"SC",zipCode:"29601",country:"US"},yd={city:null,state:null,zipCode:null,country:null},fd={city:"Edmonton",state:"AB",zipCode:"T5J0H6",country:"CA"},gd={city:"Blacksburg",state:"VA",zipCode:"24060",country:"US"},md={city:"Asheville",state:"NC",zipCode:"28801",country:"US"},Cd={city:"Medina",state:"TX",zipCode:"78055",country:"US"},vd={city:"Salinas",state:"CA",zipCode:"93901",country:"US"},xd={city:"Baytown",state:"TX",zipCode:"77520",country:"US"},bd={city:null,state:null,zipCode:null,country:null},Sd={city:"Allentown",state:"PA",zipCode:"18101",country:"US"},Ad={city:"Chico",state:"CA",zipCode:"95926",country:"US"},Pd={city:"Albany",state:"NY",zipCode:"12201",country:"US"},_d={city:"Columbia",state:"SC",zipCode:"29201",country:"US"},Nd={city:"Anaheim",state:"CA",zipCode:"92801",country:"US"},wd={city:"Charleston",state:"SC",zipCode:"29401",country:"US"},jd={city:null,state:null,zipCode:null,country:null},kd={city:"Kingston",state:"NY",zipCode:"12401",country:"US"}
1,Id={city:"Arlington Heights",state:"IL",zipCode:"60004",country:"US"},zd={city:"Brick Township",state:"NJ",zipCode:"08723",country:"US"},Td={city:"Pensacola",state:"FL",zipCode:"32501",country:"US"},Ed={city:"Charleston",state:"SC",zipCode:"29401",country:"US"},Ud={city:null,state:null,zipCode:null,country:null},Od={city:"Camden",state:"NJ",zipCode:"08101",country:"US"},Md={city:"Boston",state:"MA",zipCode:"02101",country:"US"},Ld={city:"San Diego",state:"CA",zipCode:"92101",country:"US"},Fd={city:"Lexington",state:"KY",zipCode:"40502",country:"US"},Rd={city:"Bristol",state:"CT",zipCode:"06010",country:"US"},Dd={city:"Bloomington",state:"IL",zipCode:"61701",country:"US"},Bd={city:"Clifton",state:"NJ",zipCode:"07011",country:"US"},Hd={city:"Lakeland",state:"FL",zipCode:"33801",country:"US"},Wd={city:"Greenville",state:"SC",zipCode:"29601",country:"US"},Gd={city:"Knoxville",state:"TN",zipCode:"37901",country:"US"},Kd={city:null,state:null,zipCode:null,country:null},Vd={city:"Whitehorse",state:"YT",zipCode:"Y1A0A4",country:"CA"},qd={city:"Jonesboro",state:"AR",zipCode:"72401",country:"US"}
1,Yd={city:"Chicago",state:"IL",zipCode:"60601",country:"US"},Xd={city:"Sherbrooke",state:"QC",zipCode:"J1C0A6",country:"CA"},Zd={city:null,state:null,zipCode:null,country:null},Jd={city:"Pittsburgh",state:"PA",zipCode:"15201",country:"US"},Qd={city:"St. John's",state:"NL",zipCode:"A1E1T2",country:"CA"},es={city:null,state:null,zipCode:null,country:null},ts={city:null,state:null,zipCode:null,country:null},ns={city:null,state:null,zipCode:null,country:null},rs={city:null,state:null,zipCode:null,country:null},as={city:null,state:null,zipCode:null,country:null},is={city:null,state:null,zipCode:null,country:null},os={city:null,state:null,zipCode:null,country:null},ds={city:null,state:null,zipCode:null,country:null},ss={city:null,state:null,zipCode:null,country:null},ls={city:null,state:null,zipCode:null,country:null},cs={city:"Memphis",state:"TN",zipCode:"38101",country:"US"},us={city:"Halifax",state:"NS",zipCode:"B3H0A4",country:"CA"},ps={city:"Longview",state:"TX",zipCode:"75601",country:"US"},$s={city:"Jacksonville",state:"FL",zipCode:"32201",country:"US"},hs={city:"Mississauga",state:"ON",zipCode:"L4T0A2",country:"CA"},ys={city:"Sault Ste Marie",state:"MI",zipCode:"49783",country:"US"},fs={city:"Anchorage",state:"AK",zipCode:"99501",country:"US"},gs={city:"Washington Township",state:"NJ",zipCode:"07676",country:"US"},ms={city:"Anaheim",state:"CA",zipCode:"92801",country:"US"},Cs={city:"Fayetteville",state:"NC",zipCode:"28301",country:"US"},vs={city:"Savannah",state:"GA",zipCode:"31401",country:"US"}
1,xs={city:"Kansas City",state:"KS",zipCode:"66101",country:"US"},bs={city:"Mount Vernon",state:"NY",zipCode:"10550",country:"US"},Ss={city:"El Paso",state:"TX",zipCode:"79901",country:"US"},As={city:"Elk Grove",state:"CA",zipCode:"95624",country:"US"},Ps={city:"New York City",state:"NY",zipCode:"10001",country:"US"},_s={city:"Broken Arrow",state:"OK",zipCode:"74011",country:"US"},Ns={city:"Cary",state:"NC",zipCode:"27511",country:"US"},ws={city:"Appleton",state:"WI",zipCode:"54911",country:"US"},js={city:"Austin",state:"MN",zipCode:"55912",country:"US"},ks={city:"Antioch",state:"CA",zipCode:"94509",country:"US"},Is={city:"Flagstaff",state:"AZ",zipCode:"86001",country:"US"},zs={city:"Bellerose",state:"NY",zipCode:"11426",country:"US"},Ts={city:"Bloomington",state:"IN",zipCode:"47401",country:"US"},Es={city:"Clarksville",state:"TN",zipCode:"37040",country:"US"},Us={city:"Babylon",state:"NY",zipCode:"11702",country:"US"},Os={city:"Huntsville",state:"TX",zipCode:"77320",country:"US"},Ms={city:"Dayton",state:"OH",zipCode:"45401",country:"US"},Ls={city:"Huntsville",state:"AL",zipCode:"35801",country:"US"},Fs={city:"Denton",state:"TX",zipCode:"76201",country:"US"},Rs={city:"Sarasota",state:"FL",zipCode:"34230",country:"US"},Ds={city:"Toronto",state:"ON",zipCode:"M3C1E6",country:"CA"},Bs={city:"Atlanta",state:"GA",zipCode:"30301",country:"US"},Hs={city:"Dallas",state:"TX",zipCode:"75201",country:"US"},Ws={city:"Farmington Hills",state:"MI",zipCode:"48331",country:"US"},Gs={city:"Chesapeake",state:"VA",zipCode:"23320",country:"US"},Ks={city:"Costa Mesa",state:"CA",zipCode:"92626",country:"US"},Vs={city:"Corona",state:"CA",zipCode:"92877",country:"US"},qs={city:"Bloomington",state:"MN",zipCode:"55420",country:"US"},Ys={city:"Fort Lauderdale",state:"FL",zipCode:"33301",country:"US"},Xs={city:"Laredo",state:"TX",zipCode:"78040",country:"US"},Zs={city:"Hartford",state:"CT",zipCode:"06101",country:"US"},Js={city:"Durango",state:"CO",zipCode:"81301",country:"US"},Qs={city:"Beaverton",state:"OR",zipCode:"97005",country:"US"},el={city:"Carrollton",state:"TX",zipCode:"75006",country:"US"},tl={city:"Newark",state:"NJ",zipCode:"07101",country:"US"},nl={city:"Kansas City",state:"MO",zipCode:"64101",country:"US"},rl={city:"Haverhill",state:"MA",zipCode:"01830",country:"US"},al={city:"Bryan",state:"TX",zipCode:"77801",country:"US"},il={city:"Charlotte",state:"NC",zipCode:"28201",country:"US"},ol={city:"Aurora",state:"CO",zipCode:"80010",country:"US"},dl={city:"Raleigh",state:"NC",zipCode:"27601",country:"US"},sl={city:"Hammond",state:"LA",zipCode:"70401",country:"US"},ll={city:"Boise",state:"ID",zipCode:"83701",country:"US"},cl={city:"Alma",state:"MI",zipCode:"48801",country:"US"},$1={201:l,202:p,203:$,204:y,205:h,206:f,207:m,208:C,209:v,210:S,212:A,213:_,214:U,215:O,216:M,217:w,218:k,219:B,220:F,223:T,224:I,225:J,226:H,227:q,228:L,229:E,231:te,234:se,235:W,236:ye,239:G,240:ne,248:D,249:P,250:re,251:fe,252:_e,253:le,254:ae,256:Ce,257:Ne,260:we,262:je,263:ke,267:ie,269:Ie,270:ze,272:Te,274:Ee,276:Ue,279:Oe,281:Me,283:Le,289:Fe,301:Re,302:De,303:Be,304:He,305:We,306:qe,307:Ge,308:N,309:Y,310:vt,312:xt,313:bt,314:St,315:At,316:Pt,317:b,318:R,319:ce,320:ue,321:Ye,323:Xe,324:mn,325:Cn,326:vn,327:xn,329:bn,330:Sn,331:An,332:Pn,334:_n,336:Nn,337:wn,339:jn,340:kn,341:In,343:zn,346:Tn,347:En,350:Un,351:On,352:Mn,354:Ln,357:Fn,360:Rn,361:Dn,363:Bn,364:Hn,365:Wn,367:Gn,368:Kn,369:Vn,380:qn,382:Yn,385:Xn,386:Zn,401:Jn,402:Qn,403:er,404:tr,405:nr,406:rr,407:ar,408:ir,409:or,410:dr,412:sr,413:lr,414:cr,415:ur,416:pr,417:$r,418:hr,419:yr,423:fr,424:gr,425:mr,428:Cr,430:vr,431:xr,432:br,434:Sr,435:Ar,436:Pr,437:_r,438:Nr,440:wr,442:jr,443:kr,445:Ir,447:zr,448:Tr,450:Er,457:Ur,458:Or,463:Mr,464:Lr,468:Fr,469:Rr,470:Dr,472:Br,474:Hr,475:Wr,478:Gr,479:Kr,480:Vr,483:qr,484:Yr,501:Xr,502:Zr,503:Jr,504:Qr,505:ea,506:ta,507:na,508:ra,509:aa,510:ia,512:oa,513:da,514:sa,515:la,516:ca,517:ua,518:pa,519:$a,520:ha,530:ya,531:fa,534:ga,539:ma,540:Ca,541:va,548:xa,551:ba,557:Sa,559:Aa,561:Pa,562:_a,563:Na,564:wa,567:ja,570:ka,571:Ia,573:za,574:Ta,575:Ea,579:Ua,580:Oa,581:Ma,582:La,584:Fa,585:Ra,586:Da,587:Ba,601:Ha,602:Wa,603:Ga,604:Ka,605:Va,606:qa,607:Ya,608:Xa,609:Za,610:Ja,612:Qa,613:ei,614:ti,615:ni,616:ri,617:ai,618:ii,619:oi,620:di,621:si,623:li,624:ci,626:ui,627:pi,628:$i,629:hi,630:yi,631:fi,636:gi,639:mi,640:Ci,641:vi,645:xi,646:bi,647:Si,650:Ai,651:Pi,656:_i,657:Ni,659:wi,660:ji,661:ki,662:Ii,667:zi,669:Ti,670:Ei,671:Ui,672:Oi,678:Mi,679:Li,680:Fi,681:Ri,682:Di,683:Bi,684:Hi,686:Wi,689:Gi,701:Ki,702:Vi,703:qi,704:Yi,705:Xi,706:Zi,707:Ji,708:Qi,709:eo,712:to,713:no,714:ro,715:ao,716:io,717:oo,718:so,719:lo,720:co,724:uo,725:po,726:$o,727:ho,728:yo,729:fo,730:go,731:mo,732:Co,734:vo,737:xo,738:bo,740:So,742:Ao,743:Po,747:_o,748:No,753:wo,754:jo,757:ko,760:Io,762:zo,763:To,765:Eo,769:Uo,770:Oo,771:Mo,772:Lo,773:Fo,774:Ro,775:Do,778:Bo,779:Ho,780:Wo,781:Go,782:Ko,785:Vo,786:qo,800:Yo,801:Xo,802:Zo,803:Jo,804:Qo,805:ed,806:td,807:nd,808:rd,810:ad,812:id,813:od,814:dd,815:sd,816:ld,817:cd,818:ud,819:pd,820:$d,821:hd,822:yd,825:fd,826:gd,828:md,830:Cd,831:vd,832:xd,833:bd,835:Sd,837:Ad,838:Pd,839:_d,840:Nd,843:wd,844:jd,845:kd,847:Id,848:zd,850:Td,854:Ed,855:Ud,856:Od,857:Md,858:Ld,859:Fd,860:Rd,861:Dd,862:B
1d,863:Hd,864:Wd,865:Gd,866:Kd,867:Vd,870:qd,872:Yd,873:Xd,877:Zd,878:Jd,879:Qd,880:es,881:ts,882:ns,883:rs,884:as,885:is,886:os,887:ds,888:ss,889:ls,901:cs,902:us,903:ps,904:$s,905:hs,906:ys,907:fs,908:gs,909:ms,910:Cs,912:vs,913:xs,914:bs,915:Ss,916:As,917:Ps,918:_s,919:Ns,920:ws,924:js,925:ks,928:Is,929:zs,930:Ts,931:Es,934:Us,936:Os,937:Ms,938:Ls,940:Fs,941:Rs,942:Ds,943:Bs,945:Hs,947:Ws,948:Gs,949:Ks,951:Vs,952:qs,954:Ys,956:Xs,959:Zs,970:Js,971:Qs,972:el,973:tl,975:nl,978:rl,979:al,980:il,983:ol,984:dl,985:sl,986:ll,989:cl};function h1($e){const K=u[$e.toString()];return K&&K.zipCode?K.zipCode:null}function y1($e){const K=u[$e.toString()];return K??null}return qt}var gc=fc();const mc={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
vendor: 10,172 bytes, line 1
1])\\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(?:48|5[0-3579]|[6-9])|7(?:20|32|8)|[89]","(?:31|4)6|51|6(?:485|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,[["(?:(?:241|349)0\\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])|[34]\\d\\d)|91(?:(?:[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}|(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|3(?:[0-3589]\\d|4[0-578]|6[1-9]|7[0-35-9])|7(?:[013-57-9]\\d|2[0-8])|8(?:55|6[0-8]|[78]\\d|9[02-9]))\\d{6}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-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","[024-7]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[024-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|8)\\d{7}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["0"]]]],BL:["590","00","7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["(?:59(?:0(?:2[7-9]|3[3-7]|5[12]|87)|87\\d)|80[6-9]\\d\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],["8[129]\\d{7}"],0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\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)?","(?:[2-7]\\d\\d|8001)\\d{5}",[8,9],[["(\\d)(\\d{7})","$1 $2",["[23]|4[46]|50"]],["(\\d{8})","$1",["[5-7]"]],["(\\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-467]\\d{9,10}
vendor: 15,097 bytes, line 1
1|55[0-46-9]\\d{8}|[34]\\d{7}|55\\d{7,8}|(?:5[0-46-9]|[89]\\d)\\d{7,9}",[8,9,10,11],[["(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37|86)","300|4(?:0(?:0|20)|370|864)"]],["(\\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","[178]\\d{7}|[2-8]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-6]|7[246]|8[2-4]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|[78]"]]]],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|5[07]|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(?:2[125-9]|3[23]|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-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-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","8776\\d{4}|(?:[27]\\d|61)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-8]"]]]],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{3})(\\d{3})(\\d{3})","$1 $2 $3",["60|809"]],["(\\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(?:10|[2-9])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-8]|[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]|9[14]"]],["(\\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-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-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]|3[13])"],"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,0,[["528[89]\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[016-8]\\d|2[0-8]|5[0-5]))\\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}"]]],ER:["291","00","[178]\\d{6}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],"0"],ES:["34","00","
1(?:400|[5-9]\\d\\d)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[4-9]"]]]],ET:["251","00","(?:11|[2-57-9]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-57-9]"],"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|180020",0,0,0,[["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0-5])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|5[01]))\\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])
1))|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","(?:694\\d|7093)\\d{5}|(?:59|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]|80[6-9]|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|180020","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{8}|800\\d{5,6}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2358]"],"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","7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]|80[6-9]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["(?:59(?:0(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)|87\\d)|80[6-9]\\d\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],["8[129]\\d{7}"],0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\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","[2-69]\\d{8}|80\\d{5,7}|[1-79]\\d{7}|6\\d{6}",[7,8,9],[["(\\d{2})(\\d{2})(\\d{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-589]\\d{7}",[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|180020","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
vendor: 21,963 bytes, line 1
1]))|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]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67)[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(?:(?: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)|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(?:3171|5[15][2-6]|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|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]|3[129]|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(?:[23569]|8[0-57-9])|8[1-6])|7(?:1(?:[013-8]|9[6-9])|3(?:17|2[0-49]|9[2-57])|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|8(?:28[235-7]|3))|73179|807(?:1|9[1-3])|(?:1552|6(?:(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578])\\d|7(?:[23569]\\d|8[0-57-9])|8(?:[14-6]\\d|2[0-79]))|7(?:1(?:[013-8]\\d|9[6-9])|3(?:2[0-49]|9[2-57])|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",["16|[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["18[06]","18[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,11}|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",["[03]"]]],0,0,0,0,0,0,[["0(?:669[0-79]\\d{1,6}|831\\d{2,8})|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[2356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}"],["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|180020","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|427|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",["[47]"],"0$1"]],"0"],JP:["81","010","00[1-9]\\d{6,14}|[25-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",["3|4(?:2[09]|7[01])|6[1-9]","3|4(?:2(?:0|9[02-69])|7(?:0[019]|1))|6[1-9]"],"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",["[25-9]"],"0$1"]],"0",0,"(000[2569]\\d{4,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","8\\d{13}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"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",["3"],"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-6]|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","(?:[2457]\\d|33|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",["20"]],["(\\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]"]],["(\\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",["20"]]],0,0,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"],LV:["371","00","(?:[268]\\d|78|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2679]|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{4})(\\d{5})","$1-$2",["892"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8(?:0[0-7]|9)"],"0$1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[5-8]"],"0$1"]],"0",0,0,0,0,"[5-8]"],MC:["377","00","(?:[3489]|[67]\\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",["[67]"],"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","7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["(?:59(?:0(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)|87\\d)|80[6-9]\\d\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],["8[129]\\d{7}"],0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\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",["11|2[16]"],"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","7091\\d{5}|(?:[56]9|[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{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-37-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-9]"]],["(\\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","(?:20|9\\d)\\d{8}|[78]\\d{9,13}",[10,11,12,13,14],[["(\\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","(?:222|444|(?:55|8\\d)\\d|666|777|999)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[24-9]"]]]],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
1"]],["(\\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",["30|(?: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","30|(?: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","[78]\\d{8}|[2-9]\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[2-9]"],"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","[36-8]\\d{5,8}|4\\d{6,8}|59\\d{6}|9\\d{5,10}|(?:2\\d|5[0-8])\\d{6,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",["3[289]|4[246-8]|61|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[136]|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,[["2631[0-6]\\d{4}|26(?:2\\d|30|88)\\d{5}"],["(?:69(?:2\\d\\d|3(?:[06][0-6]|1[0-3]|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-6]|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,"[3489]",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","(?:[15]\\d|800|92)\\d{7}",[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{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[013]|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{2})(\\d{5,7})","$1 $2",["1|28|9[2-9]"]],["(\\d)(\\d{7})","$1 $2",["[267]|904"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[346-9]"]]],"0"],SR:["597","00","(?:[2-5]|[6-9]\\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-9]"]]]],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","[25-7]\\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",["[25-7]"]],["(\\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|[3689]\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[236-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|66)\\d{7}",[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)","$1 $2 $3",["3(?:[1245]|3[12])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["\\d"]]],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-7]\\d{7}",[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-79]"],"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{3})(\\d{5})","$1 $2",["826"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["83"],"0$1"],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["82"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[25]0|37|49|8[09]"],"0$1"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-478])|7[1-9]","[23568]|4(?:0[2-48]|[1-478])|(?: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,[["(?:472[2-47-9]|983[2-57-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[02469]|8[13])|3(?:0[1-57-9]|1[02-9]|2[013-79]|3[0-24679]|4[167]|5[0-3]|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-57-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-269])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-2478]|4[0378]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[0168]|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-3589]|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]|3[23]|44|66|77|88)[2-9]\\d{6}"]]],UY:["598","0(?:0|1[3-9]\\d)","0004\\d{2,9}|[1249]\\d{7}|2\\d{3,4}|(?:[49]\\d|80)\\d{5}",[4,5,6,7,8,9,10,11,12,13],[["(\\d{4,5})","$1",["21"]],["(\\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-9]\\d)\\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{6,7}|7\\d{6}",[7,8,9,10],[["(\\d{4})(\\d{4,6})","$1 $2",["1(?:2[02]|[89])"],0,1],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[26]|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","(?:639\\d|7093)\\d{5}|(?:26|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["26(?:89\\d|9(?: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|[579]\\d|63)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[579]"],"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)","$1 $2 $3",["10|23|3(?:[15]|4[57])|4|5[12]"]],["(\\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})|5(?:0\\d{3}|2[0-2]))\\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}"]]]}};function Cc(e,t){var n=Array.prototype.slice.call(t);return n.push(mc),e.apply(this,n)}function Sl(e,t){e=e.split("-"),t=t.split("-");for(var n=e[0].split("."),a=t[0].split("."),i=0;i<3;i++){var d=Number(n[i]),s=Number(a[i]);if(d>s)return 1;if(s>d)return-1;if(!isNaN(d)&&isNaN(s))return 1;if(isNaN(d)&&!isNaN(s))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 vc={}.constructor;function et(e){return e!=null&&e.constructor===vc}var xc=/^\d+$/;function bc(e){return xc.test(e)}function tt(e){"@babel/helpers - typeof";return tt=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},tt(e)}function Dt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Sc(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,Ac(a.key),a)}}function Bt(e,t,n){return t&&Sc(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ac(e){var t=Pc(e,"string");return tt(t)=="symbol"?t:t+""}function Pc(e,t){if(tt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var a=n.call(e,t);if(tt(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var _c="1.2.0",Nc="1.7.35",Al=" ext. ",V=function(){function e(t){Dt(this,e),x0(t),this.metadata=t,S0.call(this,t)}return Bt(e,[{key:"getCountries",value:function(){return Object.keys(this.metadata.countries).filter(function(n){return n!=="001"})}},{key:"getCountryMetadata",value:function(n){return this.metadata.countries[n]}},{key:"nonGeographic",value:function(){if(!(this.v1||this.v2||this.v3))return this.metadata.nonGeographic||this.metadata.nonGeographical}},{key:"hasCountry",value:function(n){return this.getCountryMetadata(n)!==void 0}},{key:"hasCallingCode",value:function(n){if(this.getCountryCodesForCallingCode(n))return!0;if(this.nonGeographic()){if(this.nonGeographic()[n])return!0}else{var a=this.countryCallingCodes()[n];if(a&&a.length===1&&a[0]==="001")return!0}}},{key:"isNonGeographicCallingCode",value:function(n){return this.nonGeographic()?!!this.nonGeographic()[n]:!this.getCountryCodesForCallingCode(n)}},{key:"country",value:function(n){return this.selectNumberingPlan(n)}},{key:"selectNumberingPlan",value:function(n,a){var i,d;if(n&&(bc(n)?d=n:i=n),a&&(d=a),i&&i!=="001"){var s=this.getCountryMetadata(i);if(!s)throw new Error("Unknown country: ".concat(i));this.numberingPlan=new Pl(s,this)}else if(d){if(!this.hasCallingCode(d))throw new Error("Unknown calling code: ".concat(d));this.numberingPlan=new Pl(this.getNumberingPlanMetadata(d),this)}else this.numberingPlan=void 0;return this}},{key:"getCountryCodesForCallingCode",value:function(n){var a=this.countryCallingCodes()[n];if(a)return a.length===1&&a[0].length===3?void 0:a}},{key:"getCountryCodeForCallingCode",value:function(n){var a=this.getCountryCodesForCallingCode(n);if(a)return a[0]}},{key:"getNumberingPlanMetadata",value:function(n){var a=this.getCountryCodeForCallingCode(n);if(a)return this.getCountryMetadata(a);if(this.nonGeographic()){var i=this.nonGeographic()[n];if(i)return i}else{var d=this.countryCallingCodes()[n];if(d&&d.length===1&&d[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(n){return this.numberingPlan.type(n)}},{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(n){return this.selectNumberingPlan(n)}},{key:"hasSelectedNumberingPlan",value:function(){return this.numberingPlan!==void 0}}])}(),Pl=function(){function e(t,n){Dt(this,e),this.globalMetadataObject=n,this.metadata=t,S0.call(this,n.metadata)}return Bt(e,[{key:"callingCode",value:function(){return this.metadata[0]}},{key:"_getDefaultCountryMetadataForThisCallingCode",value:function(){return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode())}},{key:"getDefaultCountryMetadataForRegion",value:function(){return this._getDefaultCountryMetadataForThisCallingCode()}},{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(n){return n[this.v1?2:this.v2?3:4]}},{key:"formats",value:function(){var n=this,a=this._getFormats(this.metadata)||this._getFormats(this._getDefaultCountryMetadataForThisCallingCode())||[];return a.map(function(i){return new wc(i,n)})}},{key:"nationalPrefix",value:function(){return this.metadata[this.v1?3:this.v2?4:5]}},{key:"_getNationalPrefixFormattingRule",value:function(n){return n[this.v1?4:this.v2?5:6]}},{key:"nationalPrefixFormattingRule",value:function(){return this._getNationalPrefixFormattingRule(this.metadata)||this._getNationalPrefixFormattingRule(this._getDefaultCountryMetadataForThisCallingCode())}},{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._getDefaultCountryMetadataForThisCallingCode())}},{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()}}
vendor: 1,346 bytes, line 1
1,{key:"type",value:function(n){if(this.hasTypes()&&_l(this.types(),n))return new kc(_l(this.types(),n),this)}},{key:"ext",value:function(){return this.v1||this.v2?Al:this.metadata[13]||Al}}])}(),wc=function(){function e(t,n){Dt(this,e),this._format=t,this.metadata=n}return Bt(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()&&!jc.test(this.nationalPrefixFormattingRule()))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}])}(),jc=/^\(?\$1\)?$/,kc=function(){function e(t,n){Dt(this,e),this.type=t,this.metadata=n}return Bt(e,[{key:"pattern",value:function(){return this.metadata.v1?this.type:this.t
vendor: 4,707 bytes, lines 1-2
1ype[0]}},{key:"possibleLengths",value:function(){if(!this.metadata.v1)return this.type[1]||this.metadata.possibleLengths()}}])}();function _l(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 x0(e){if(!e)throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!et(e)||!et(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(et(e)?"an object of shape: { "+Object.keys(e).join(", ")+" }":"a "+Ic(e)+": "+e,"."))}var Ic=function(t){return tt(t)};function b0(e,t){var n=new V(t);if(n.hasCountry(e))return n.selectNumberingPlan(e).countryCallingCode();throw new Error("Unknown country: ".concat(e))}function zc(e,t){return t.countries.hasOwnProperty(e)}function S0(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?Sl(t,_c)===-1?this.v2=!0:Sl(t,Nc)===-1?this.v3=!0:this.v4=!0:this.v1=!0}function pn(e,t,n){return Tc(e,void 0,t,n)}function Tc(e,t,n,a){n&&(a=new V(a.metadata),a.selectNumberingPlan(n));var i=a.type(t),d=i&&i.possibleLengths()||a.possibleLengths();if(!d)return"IS_POSSIBLE";var s=e.length,c=d[0];return c===s?"IS_POSSIBLE":c>s?"TOO_SHORT":d[d.length-1]<s?"TOO_LONG":d.indexOf(s,1)>=0?"IS_POSSIBLE":"INVALID_LENGTH"}function Ec(e,t,n){t===void 0&&(t={});var a=new V(n);if(t.v2){if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");a.selectNumberingPlan(e.country||e.countryCallingCode)}else{if(!e.phone)return!1;if(e.country){if(!a.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));a.selectNumberingPlan(e.country)}else{if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");a.selectNumberingPlan(e.countryCallingCode)}}if(a.possibleLengths())return A0(e.phone||e.nationalNumber,a);if(e.countryCallingCode&&a.isNonGeographicCallingCode(e.countryCallingCode))return!0;throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}function A0(e,t){switch(pn(e,void 0,t)){case"IS_POSSIBLE":return!0;default:return!1}}function Ae(e,t){return e=e||"",new RegExp("^(?:"+t+")$").test(e)}function Uc(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=Oc(e))||t){n&&(e=n);var a=0;return function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
2In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Oc(e,t){if(e){if(typeof e=="string")return Nl(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Nl(e,t):void 0}}function Nl(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var Mc=["MOBILE","PREMIUM_RATE","TOLL_FREE","SHARED_COST","VOIP","PERSONAL_NUMBER","PAGER","UAN","VOICEMAIL"];function $n(e,t,n){if(t=t||{},!(!e.country&&!e.countryCallingCode)){var a=new V(n);a.selectNumberingPlan(e.country||e.countryCallingCode);var i=t.v2?e.nationalNumber:e.phone;if(Ae(i,a.nationalNumberPattern())){if(Yt(i,"FIXED_LINE",a))return a.type("MOBILE")&&a.type("MOBILE").pattern()===""||!a.type("MOBILE")||Yt(i,"MOBILE",a)?"FIXED_LINE_OR_MOBILE":"FIXED_LINE";for(var d=Uc(Mc),s;!(s=d()).done;){var c=s.value;if(Yt(i,c,a))return c}}}}function Yt(e,t,n){var a=n.type(t);return!a||!a.pattern()||a.possibleLengths()&&a.possibleLengths().indexOf(e.length)<0?!1:Ae(e,a.pattern())}function Lc(e,t,n){t=t||{};var a=new V(n);if(a.selectNumberingPlan(e.country||e.countryCallingCode),a.hasTypes())return $n(e,t,a.metadata)!==void 0;var i=t.v2?e.nationalNumber:e.phone;return Ae(i,a.nationalNumberPattern())}var Fc=/^[A-Z]{2}$/;function Rc(e){return Fc.test(e)}function Dc(e,t){var n,a,i=new V(t);return Rc(e)?(n=e,i.selectNumberingPlan(n),a=i.countryCallingCode()):a=e,{country:n,callingCode:a}}function Bc(e,t,n){var a=new V(n),i=a.getCountryCodesForCallingCode(e);return i?i.filter(function(d){return Hc(t,d,n)}):[]}function Hc(e,t,n){var a=new V(n);return a.selectNumberingPlan(t),a.numberingPlan.possibleLengths().indexOf(e.length)>=0}var hn=2,Wc=17,Gc=3,he="0-90-9٠-Ù©Û°-Û¹",Kc="-‐-―−ー-",Vc="//",qc="..",Yc="  ­â€
2‹â ã€€",Xc="()()[]\\[\\]",Zc="~⁓∼~",Ut="".concat(Kc).concat(Vc).concat(qc).concat(Yc).concat(Xc).concat(Zc),yn="++",Jc=new RegExp("(["+he+"])");function Qc(e,t,n,a){if(t){var i=new V(a);i.selectNumberingPlan(t||n);var d=new RegExp(i.IDDPrefix());if(e.search(d)===0){e=e.slice(e.match(d)[0].length);var s=e.match(Jc);if(!(s&&s[1]!=null&&s[1].length>0&&s[1]==="0"))return e}}}function e2(e,t){if(e&&t.numberingPlan.nationalPrefixForParsing()){var n=new RegExp("^(?:"+t.numberingPlan.nationalPrefixForParsing()+")"),a=n.exec(e);if(a){var i,d,s=a.length-1,c=s>0&&a[s];if(t.nationalPrefixTransformRule()&&c)i=e.replace(n,t.nationalPrefixTransformRule()),s>1&&(d=a[1]);else{var u=a[0];i=e.slice(u.length),c&&(d=a[1])}var l;if(c){var p=e.indexOf(a[1]),$=e.slice(0,p);$===t.numberingPlan.nationalPrefix()&&(l=t.numberingPlan.nationalPrefix())}else l=a[0];return{nationalNumber:i,nationalPrefix:l,carrierCode:d}}}return{nationalNumber:e}}function t2(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=n2(e))||t){n&&(e=n);var a=0;return function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
3In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function n2(e,t){if(e){if(typeof e=="string")return wl(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?wl(e,t):void 0}}function wl(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function r2(e,t,n){for(var a=new V(n),i=t2(t),d;!(d=i()).done;){var s=d.value;if(a.selectNumberingPlan(s),a.leadingDigits()){if(e&&e.search(a.leadingDigits())===0)return s}else if($n({phone:e,country:s},void 0,a.metadata))return s}}function P0(e,t){var n=t.nationalNumber,a=t.metadata,i=a.getCountryCodesForCallingCode(e);if(i)return i.length===1?i[0]:r2(n,i,a.metadata)}function nn(e,t,n){var a=e2(e,n),i=a.carrierCode,d=a.nationalNumber;if(d!==e){if(!a2(e,d,n))return{nationalNumber:e};if(n.numberingPlan.possibleLengths()&&(t||(t=P0(n.numberingPlan.callingCode(),{nationalNumber:d,metadata:n})),!i2(d,t,n)))return{nationalNumber:e}}return{nationalNumber:d,carrierCode:i}}function a2(e,t,n){return!(Ae(e,n.nationalNumberPattern())&&!Ae(t,n.nationalNumberPattern()))}function i2(e,t,n){switch(pn(e,t,n)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}function o2(e,t,n,a,i){if(!(n||a))return{number:e};var d=n?b0(n,i):a;if(e.indexOf(d)===0){var s=new V(i);s.selectNumberingPlan(n||a);var c=e.slice(d.length),u=nn(c,void 0,s),l=u.nationalNumber,p=nn(e,void 0,s),$=p.nationalNumber;if(!Ae($,s.nationalNumberPattern())&&Ae(l,s.nationalNumberPattern())||pn($,void 0,s)==="TOO_LONG")return{countryCallingCode:d,number:c}}return{number:e}}function _0(e,t,n,a,i){if(!e)return{};var d;if(e[0]!=="+"){var s=Qc(e,n,a,i);if(s&&s!==e)d=!0,e="+"+s;else{if(n||a){var c=o2(e,t,n,a,i),u=c.countryCallingCode,l=c.number;if(u)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:u,number:l}}return{number:e}}}if(e[1]==="0")return{};for(var p=new V(i),$=2;$-1<=Gc&&$<=e.length;){var y=e.slice(1,$);if(p.hasCallingCode(y))return p.selectNumberingPlan(y),{countryCallingCodeSource:d?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:y,number:e.slice($)};$++}return{}}function d2(e){return e.replace(new RegExp("[".concat(Ut,"]+"),"g")," ").trim()}var s2=/(\$\d)/;function l2(e,t,n){var a=n.useInternationalFormat,i=n.withNationalPrefix,d=e.replace(new RegExp(t.pattern()),a?t.internationalFormat():i&&t.nationalPrefixFormattingRule()?t.format().replace(s2,t.nationalPrefixFormattingRule()):t.format());return a?d2(d):d}var c2=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function u2(e,t,n){var a=new V(n);if(a.selectNumberingPlan(e||t),a.defaultIDDPrefix())return a.defaultIDDPrefix();if(c2.test(a.IDDPrefix()))return a.IDDPrefix()}var p2=";ext=",Je=function(t){return"([".concat(he,"]{1,").concat(t,"})")};function N0(e){var t="20",n="15",a="9",i="6",d="[  \\t,]*",s="[:\\..]?[  \\t,-]*",c="#?",u="(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)",l="(?:[xx##~~]|int|int)",p="[- ]+",$="[  \\t]*",y="(?:,{2}|;)",h=p2+Je(t),f=d+u+s+Je(t)+c,m=d+l+s+Je(a)+c,C=p+Je(i)+"#",v=$+y+s+Je(n)+c,S=$+"(?:,)+"+s+Je(a)+c;return h+"|"+f+"|"+m+"|"+C+"|"+v+"|"+S}var $2="["+he+"]{"+hn+"}",h2="["+yn+"]{0,1}(?:["+Ut+"]*["+he+"]){3,}["+Ut+he+"]*",y2=new RegExp("^["+yn+"]{0,1}(?:["+Ut+"]*["+he+"]){1,2}$","i"),f2=h2+"(?:"+N0()+")?",g2=new RegExp("^"+$2+"$|^"+f2+"$","i");function m2(e){return e.length>=hn&&g2.test(e)}function C2(e){return y2.test(e)}function v2(e){var t=e.number,n=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(n?";ext="+n:"")}var jl={formatExtension:function(t,n,a){return"".concat(t).concat(a.ext()).concat(n)}};function x2(e,t,n,a){n?n=A2({},jl,n):n=jl;var i=new V(a);if(e.country&&e.country!=="001"){if(!i.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));i.selectNumberingPlan(e.country)}else if(e.countryCallingCode)i.selectNumberingPlan(e.countryCallingCode);else return e.phone||"";var d=i.countryCallingCode(),s=n.v2?e.nationalNumber:e.phone,c;switch(t){case"NATIONAL":return s?(c=Ot(s,e.carrierCode,"NATIONAL",i,n),Xt(c,e.ext,i,n.formatExtension)):"";case"INTERNATIONAL":return s?(c=Ot(s,null,"INTERNATIONAL",i,n),c="+".concat(d," ").concat(c),Xt(c,e.ext,i,n.formatExtension)):"+".concat(d);case"E.164":return"+".concat(d).concat(s);case"RFC3966":return v2({number:"+".concat(d).concat(s),ext:e.ext});case"IDD":if(!n.fromCountry)return;var u=S2(s,e.carrierCode,d,n.fromCountry,i);return u?Xt(u,e.ext,i,n.formatExtension):void 0;default:throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(t,'"'))}}function Ot(e,t,n,a,i){var d=b2(a.formats(),e);return d?l2(e,d,{useInternationalFormat:n==="INTERNATIONAL",withNationalPrefix:!(d.nationalPrefixIsOptionalWhenFormattingInNationalFormat()&&i&&i.nationalPrefix===!1)}):e}function b2(e,t){return P2(e,function(n){if(n.leadingDigitsPatterns().length>0){var a=n.leadingDigitsPatterns()[n.leadingDigitsPatterns().length-1];if(t.search(a)!==0)return!1}return Ae(t,n.pattern())})}function Xt(e,t,n,a){return t?a(e,t,n):e}function S2(e,t,n,a,i){var d=b0(a,i.metadata);if(d===n){var s=Ot(e,t,"NATIONAL",i);return n==="1"?n+" "+s:s}var c=u2(a,void 0,i.metadata);if(c)return"".concat(c," ").concat(n," ").concat(Ot(e,null,"INTERNATIONAL",i))}function A2(){for(var e=1,t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];for(;e<n.length;){if(n[e])for(var i in n[e])n[0][i]=n[e][i];e++}return n[0]}function P2(e,t){for(var n=0;n<e.length;){if(t(e[n]))return e[n];n++}}function lt(e){"@babel/helpers - typeof";return lt=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},lt(e)}function kl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,a)}return n}function Il(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};
vendor: 4,142 bytes, line 3
3t%2?kl(Object(n),!0).forEach(function(a){_2(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kl(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}function _2(e,t,n){return(t=w0(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function N2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w2(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,w0(a.key),a)}}function j2(e,t,n){return t&&w2(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function w0(e){var t=k2(e,"string");return lt(t)=="symbol"?t:t+""}function k2(e,t){if(lt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var a=n.call(e,t);if(lt(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var I2=function(){function e(t,n,a){if(N2(this,e),!t)throw new TypeError("First argument is required");if(typeof t!="string")throw new TypeError("First argument must be a string");if(t[0]==="+"&&!n)throw new TypeError("`metadata` argument not passed");if(et(n)&&et(n.countries)){a=n;var i=t;if(!z2.test(i))throw new Error('Invalid `number` argument passed: must consist of a "+" followed by digits');var d=_0(i,void 0,void 0,void 0,a),s=d.countryCallingCode,c=d.number;if(n=c,t=s,!n)throw new Error("Invalid `number` argument passed: too short")}if(!n)throw new TypeError("`nationalNumber` argument is required");if(typeof n!="string")throw new TypeError("`nationalNumber` argument must be a string");x0(a);var u=Dc(t,a),l=u.country,p=u.callingCode;this.country=l,this.countryCallingCode=p,this.nationalNumber=n,this.number="+"+this.countryCallingCode+this.nationalNumber,this.getMetadata=function(){return a}}return j2(e,[{key:"setExt",value:function(n){this.ext=n}},{key:"getPossibleCountries",value:function(){return this.country?[this.country]:Bc(this.countryCallingCode,this.nationalNumber,this.getMetadata())}},{key:"isPossible",value:function(){return Ec(this,{v2:!0},this.getMetadata())}},{key:"isValid",value:function(){return Lc(this,{v2:!0},this.getMetadata())}},{key:"isNonGeographic",value:function(){var n=new V(this.getMetadata());return n.isNonGeographicCallingCode(this.countryCallingCode)}},{key:"isEqual",value:function(n){return this.number===n.number&&this.ext===n.ext}},{key:"getType",value:function(){return $n(this,{v2:!0},this.getMetadata())}},{key:"format",value:function(n,a){return x2(this,n,a?Il(Il({},a),{},{v2:!0}):{v2:!0},this.getMetadata())}},{key:"formatNational",value:function(n){return this.format("NATIONAL",n)}},{key:"formatInternational",value:function(n){return this.format("INTERNATIONAL",n)}},{key:"getURI",value:function(n){return this.format("RFC3966",n)}}])}(),z2=/^\+\d+$/;function rn(e){"@babel/helpers - typeof";return rn=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},rn(e)}function T2(e,t,n){return Object.defineProperty(e,"prototype",{writable:!1}),e}function E2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function U2(e,t,n){return t=ut(t),O2(e,fn()?Reflect.construct(t,n||[],ut(e).constructor):t.apply(e,n))}function O2(e,t){if(t&&(rn(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return M2(e)}function M2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function L2(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&&ct(e,t)}function an(e){var t=typeof Map=="function"?new Map:void 0;
vendor: 4,823 bytes, lines 3-4
3return an=function(a){if(a===null||!R2(a))return a;if(typeof a!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(a))return t.get(a);t.set(a,i)}function i(){return F2(a,arguments,ut(this).constructor)}return i.prototype=Object.create(a.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),ct(i,a)},an(e)}function F2(e,t,n){if(fn())return Reflect.construct.apply(null,arguments);var a=[null];a.push.apply(a,t);var i=new(e.bind.apply(e,a));return n&&ct(i,n.prototype),i}function fn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(fn=function(){return!!e})()}function R2(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function ct(e,t){return ct=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},ct(e,t)}function ut(e){return ut=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ut(e)}var ve=function(e){function t(n){var a;return E2(this,t),a=U2(this,t,[n]),Object.setPrototypeOf(a,t.prototype),a.name=a.constructor.name,a}return L2(t,e),T2(t)}(an(Error)),zl=new RegExp("(?:"+N0()+")$","i");function D2(e){var t=e.search(zl);if(t<0)return{};for(var n=e.slice(0,t),a=e.match(zl),i=1;i<a.length;){if(a[i])return{number:n,ext:a[i]};i++}}var B2={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","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"};function H2(e){return B2[e]}function W2(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=G2(e))||t){n&&(e=n);var a=0;return function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
4In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function G2(e,t){if(e){if(typeof e=="string")return Tl(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Tl(e,t):void 0}}function Tl(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function El(e){for(var t="",n=W2(e.split("")),a;!(a=n()).done;){var i=a.value;t+=K2(i,t)||""}return t}function K2(e,t,n){return e==="+"?t?void 0:"+":H2(e)}var j0="+",V2="[\\-\\.\\(\\)]?",Ul="(["+he+"]|"+V2+")",q2="^\\"+j0+Ul+"*["+he+"]"+Ul+"*$",Y2=new RegExp(q2,"g"),on=he,X2="["+on+"]+((\\-)*["+on+"])*",Z2="a-zA-Z",J2="["+Z2+"]+((\\-)*["+on+"])*",Q2="^("+X2+"\\.)*"+J2+"\\.?$",eu=new RegExp(Q2,"g"),Ol="tel:",dn=";phone-context=",tu=";isub=";function nu(e){var t=e.indexOf(dn);if(t<0)return null;var n=t+dn.length;if(n>=e.length)return"";var a=e.indexOf(";",n);return a>=0?e.substring(n,a):e.substring(n)}function ru(e){return e===null?!0:e.length===0?!1:Y2.test(e)||eu.test(e)}function au(e,t){var n=t.extractFormattedPhoneNumber,a=nu(e);if(!ru(a))throw new ve("NOT_A_NUMBER");var i;if(a===null)i=n(e)||"";else{i="",a.charAt(0)===j0&&(i+=a);var d=e.indexOf(Ol),s;d>=0?s=d+Ol.length:s=0;var c=e.indexOf(dn);i+=e.substring(s,c)}var u=i.indexOf(tu);if(u>0&&(i=i.substring(0,u)),i!=="")return i}var iu=250,ou=new RegExp("["+yn+he+"]"),du=new RegExp("[^"+he+"#]+$");function su(e,t,n){t=t||{};var a=new V(n);if(t.defaultCountry&&!a.hasCountry(t.defaultCountry))throw t.v2?new ve("INVALID_COUNTRY"):new Error("Unknown country: ".concat(t.defaultCountry));var i=cu(e,t.v2,t.extract),d=i.number,s=i.ext,c=i.error;if(!d){if(t.v2)throw c==="TOO_SHORT"?new ve("TOO_SHORT"):new ve("NOT_A_NUMBER");return{}}var u=pu(d,t.defaultCountry,t.defaultCallingCode,a),l=u.country,p=u.nationalNumber,$=u.countryCallingCode,y=u.countryCallingCodeSource,h=u.carrierCode;if(!a.hasSelectedNumberingPlan()){if(t.v2)throw new ve("INVALID_COUNTRY");return{}}if(!p||p.length<hn){if(t.v2)throw new ve("TOO_SHORT");return{}}if(p.length>Wc){if(t.v2)throw new ve("TOO_LONG");return{}}if(t.v2){var f=new I2($,p,a.metadata);return l&&(f.country=l),h&&(f.carrierCode=h),s&&(f.ext=s),f.__countryCallingCodeSource=y,f}var m=(t.extended?a.hasSelectedNumberingPlan():l)?Ae(p,a.nationalNumberPattern()):!1;return t.extended?{country:l,countryCallingCode:$,carrierCode:h,valid:m,possible:m?!0:!!(t.extended===!0&&a.possibleLengths()&&A0(p,a)),phone:p,ext:s}:m?uu(l,p,s):{}}function lu(e,t,n){if(e){if(e.length>iu){if(n)throw new ve("TOO_LONG");return}if(t===!1)return e;var a=e.search(ou);
vendor: 4,260 bytes, lines 4-5
4if(!(a<0))return e.slice(a).replace(du,"")}}function cu(e,t,n){var a=au(e,{extractFormattedPhoneNumber:function(s){return lu(s,n,t)}});if(!a)return{};if(!m2(a))return C2(a)?{error:"TOO_SHORT"}:{};var i=D2(a);return i.ext?i:{number:a}}function uu(e,t,n){var a={country:e,phone:t};return n&&(a.ext=n),a}function pu(e,t,n,a){var i=_0(El(e),void 0,t,n,a.metadata),d=i.countryCallingCodeSource,s=i.countryCallingCode,c=i.number,u;if(s)a.selectNumberingPlan(s);else if(c&&(t||n))t?(u=t,a.selectNumberingPlan(t),s=a.numberingPlan.callingCode()):(a.selectNumberingPlan(n),s=n);else return{};if(!c)return{countryCallingCodeSource:d,countryCallingCode:s};var l=nn(El(c),void 0,a),p=l.nationalNumber,$=l.carrierCode,y=P0(s,{nationalNumber:p,metadata:a});return y&&(u=y,y==="001"||a.selectNumberingPlan(u)),{country:u,countryCallingCode:s,countryCallingCodeSource:d,nationalNumber:p,carrierCode:$}}function pt(e){"@babel/helpers - typeof";return pt=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},pt(e)}function Ml(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,a)}return n}function Ll(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ml(Object(n),!0).forEach(function(a){$u(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ml(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}function $u(e,t,n){return(t=hu(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hu(e){var t=yu(e,"string");return pt(t)=="symbol"?t:t+""}function yu(e,t){if(pt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var a=n.call(e,t);if(pt(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fu(e,t,n){return su(e,Ll(Ll({},t),{},{v2:!0}),n)}function $t(e){"@babel/helpers - typeof";return $t=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},$t(e)}function Fl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,a)}return n}function gu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Fl(Object(n),!0).forEach(function(a){mu(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fl(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}function mu(e,t,n){return(t=Cu(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cu(e){var t=vu(e,"string");return $t(t)=="symbol"?t:t+""}function vu(e,t){if($t(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var a=n.call(e,t);if($t(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function xu(e,t){return Pu(e)||Au(e,t)||Su(e,t)||bu()}function bu(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
5In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Su(e,t){if(e){if(typeof e=="string")return Rl(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Rl(e,t):void 0}}function Rl(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function Au(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var a,i,d,s,c=[],u=!0,l=!1;try{if(d=(n=n.call(e)).next,t!==0)for(;
5!(u=(a=d.call(n)).done)&&(c.push(a.value),c.length!==t);u=!0);}catch(p){l=!0,i=p}finally{try{if(!u&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return c}}function Pu(e){if(Array.isArray(e))return e}function _u(e){var t=Array.prototype.slice.call(e),n=xu(t,4),a=n[0],i=n[1],d=n[2],s=n[3],c,u,l;if(typeof a=="string")c=a;else throw new TypeError("A text for parsing must be a string.");if(!i||typeof i=="string")s?(u=d,l=s):(u=void 0,l=d),i&&(u=gu({defaultCountry:i},u));else if(et(i))d?(u=i,l=d):l=i;else throw new Error("Invalid second argument: ".concat(i));return{text:c,options:u,metadata:l}}function ht(e){"@babel/helpers - typeof";return ht=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},ht(e)}function Dl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,a)}return n}function Bl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Dl(Object(n),!0).forEach(function(a){Nu(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dl(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}function Nu(e,t,n){return(t=wu(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wu(e){var t=ju(e,"string");return ht(t)=="symbol"?t:t+""}function ju(e,t){if(ht(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var a=n.call(e,t);if(ht(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ku(e,t,n){t&&t.defaultCountry&&!zc(t.defaultCountry,n)&&(t=Bl(Bl({},t),{},{defaultCountry:void 0}));try{return fu(e,t,n)}catch(a){if(!(a instanceof ve))throw a}}function Iu(){var e=_u(arguments),t=e.text,n=e.options,a=e.metadata;return ku(t,n,a)}function zu(){return Cc(Iu,arguments)}const k0=ft(r.jsx("path",{d:"M11 18h2v-2h-2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4"}),"HelpOutlineOutlined"),Tu="A direct line or extension is required to avoid infinite call forwarding loops to the same phone number.",Eu=(e,t)=>t?"officeExtension":e?"direct":"officeNumber",Uu=e=>({transferMode:Eu(e==null?void 0:e.transferNumber,e==null?void 0:e.transferExtension),transferNumberInput:(e==null?void 0:e.transferNumber)??"",transferExtensionInput:(e==null?void 0:e.transferExtension)??""}),I0=e=>e.replace(/\D/g,""),z0=e=>{const t=e.trim();if(!t)return null;const n=I0(t);if(!n)return"Enter a valid US phone number";const a=n.length===11&&n.startsWith("1")?n.slice(1):n;return a.length!==10||!/^\d{10}$/.test(a)?"Enter a valid US phone number":null},T0=e=>{const t=e.trim();return t?/^\d+$/.test(t)?null:"Extension must contain numbers only":null},Mt=e=>{const t=I0(e);return t.length===11&&t.startsWith("1")?t.slice(1):t},E0=(e,t)=>{if(!t)return!1;const n=Mt(e),a=Mt(t);return n.length===10&&n===a},U0=(e,t)=>e.transferMode==="officeNumber"?{transferNumberError:null,transferExtensionError:null}:e.transferMode==="direct"?{transferNumberError:z0(e.transferNumberInput),transferExtensionError:null}:e.transferExtensionInput.trim()?{transferNumberError:null,transferExtensionError:T0(e.transferExtensionInput)}:{transferNumberError:null,transferExtensionError:"Extension is required"},O0=e=>!!(e.transferNumberError||e.transferExtensionError),Ou=(e,t)=>{const n=U0(e);return O0(n)?{transferNumber:null,transferExtension:null}:e.transferMode==="officeNumber"?{transferNumber:null,transferExtension:null}:e.transferMode==="direct"?e.transferNumberInput.trim()?{transferNumber:Mt(e.transferNumberInput),transferExtension:null}:{transferNumber:null,transferExtension:null}:e.transferExtensionInput.trim()?{transferNumber:null,transferExtension:e.transferExtensionInput.trim()}:{transferNumber:null,transferExtension:null}},ot=e=>e==null||e===""?"Not set":F1(e),M0=z(x,{})(({theme:e})=>({fontWeight:500,fontSize:14,lineHeight:"20px",color:e.palette.gray[800]}
5)),Mu=z(x,{})(({theme:e})=>({fontWeight:500,fontSize:14,lineHeight:"20px",color:e.palette.gray[300]})),Lu=z(x,{})(({theme:e})=>({fontWeight:500,fontSize:14,lineHeight:"20px",color:e.palette.gray[700],whiteSpace:"nowrap"})),Fu={fontSize:14,fontWeight:500,lineHeight:"20px"},Ru=e=>e==="Not set"?"Office phone EXT:":`${e} EXT:`,Lt=e=>o.useCallback(t=>{e(t.target.value)},[e]),L0=e=>o.useCallback(t=>{e(t.target.value)},[e]),dt=({label:e,hint:t,maxWidth:n,required:a,children:i})=>r.jsxs(g,{sx:{display:"flex",flexDirection:"column",gap:.75,...n!==void 0?{maxWidth:n,width:"100%"}:{}},children:[r.jsxs(M0,{children:[e,a?" *":""]}),t?r.jsx(ee,{variant:"body2",sx:Fu,children:t}):null,i]}),F0=({value:e,onChange:t,showError:n,errorMessage:a,className:i,placeholder:d="",disabled:s,required:c,sx:u={maxWidth:231},InputProps:l})=>r.jsx(Ke,{value:e,onChange:t,placeholder:d,disabled:s,required:c,error:n,helperText:n?a??void 0:void 0,sx:u,className:i,InputProps:l}),R0=e=>r.jsx(F0,{...e,InputProps:{startAdornment:r.jsx(ln,{position:"start",children:r.jsx(Mu,{children:"+1"})})}}),D0=({officePhone:e,className:t,placeholder:n="123...",sx:a={width:100,minWidth:100,maxWidth:120},showError:i,errorMessage:d,...s})=>r.jsxs(g,{sx:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:.5},children:[r.jsxs(g,{sx:{display:"flex",flexDirection:"row",alignItems:"center",gap:.75},children:[r.jsx(Lu,{children:Ru(e)}),r.jsx(F0,{...s,showError:i,errorMessage:null,className:t,placeholder:n,sx:a,disabled:e==="Not set"})]}),i&&d?r.jsx(m1,{error:!0,sx:{m:0,ml:.5,fontSize:14},children:d}):null]}),Du=[{value:"officeNumber",label:"Office Number"},{value:"direct",label:"Direct Number"},{value:"officeExtension",label:"Office Number + Extension"}],Bu=({value:e,onChange:t,className:n})=>{const a=L0(t);return r.jsx(mt,{value:e,onChange:a,fullWidth:!0,className:n,children:Du.map(i=>r.jsx(Se,{value:i.value,children:i.label},i.value))})},Hu=e=>{if(e==null||e===""||e==="Not set")return"";const t=zu(e,"US");if(t===void 0)return"";const n=parseInt(t.nationalNumber.slice(0,3),10);if(Number.isNaN(n))return"";const a=gc.getDataFromAreaCode(n);return a===null?"":a.city&&a.state?`${a.city}, ${a.state}`:a.city?a.city:a.state?a.state:""},rt=({phone:e})=>{const t=j(),n=Hu(e),a=e!=="Not set"&&n!=="";return r.jsxs(g,{sx:{display:"flex",gap:2,alignItems:"center",flexWrap:"wrap"},children:[r.jsx(x,{component:"span",sx:{fontWeight:400,fontSize:16,lineHeight:"24px",color:t.palette.gray[600]},children:e}),a?r.jsx(x,{component:"span",sx:{fontWeight:500,fontSize:14,lineHeight:"24px",color:t.palette.gray[500]},children:n}):null]})},Wu=({value:e,onChange:t,className:n})=>{const a=j(),i=L0(t);return r.jsxs(g,{sx:{maxWidth:500,width:"100%",mt:.5},children:[r.jsx(x,{sx:{fontWeight:500,fontSize:14,lineHeight:"20px",color:a.palette.gray[800],mb:.75},children:"Forward inbound calls to:"}),r.jsxs(mt,{className:n,value:e,onChange:i,fullWidth:!0,children:[r.jsx(Se,{value:"alinaPhone",children:"Alina phone number"}),r.jsx(Se,{value:"officePhone",children:"General office phone number"})]})]})},me=({title:e,description:t,titleAdornment:n})=>{const a=j();return r.jsxs(g,{sx:{display:"flex",flexDirection:"column",gap:t?"6px":0},children:[r.jsxs(g,{sx:{display:"flex",alignItems:"center",gap:.75,flexWrap:"wrap"},children:[r.jsx(x,{variant:"h3",sx:{fontWeight:600,margin:0,lineHeight:"16px",fontSize:"16px",color:a.palette.gray[700]},children:e}),n]}),t?r.jsx(ee,{variant:"body2",sx:{fontSize:14,lineHeight:"20px"},children:t}):null]})},Gu=({phone:e})=>{const[t,n]=o.useState("alinaPhone"),a=o.useCallback(i=>{n(i)},[]);return r.jsxs(g,{sx:{display:"flex",flexDirection:"column",gap:1.5},children:[r.jsx(me,{title:"SMS Phone Number",description:"This is the SMS number used for sending messages. Calls made to this number can be forwarded."}),r.jsx(rt,{phone:e}),r.jsx(Wu,{value:t,onChange:a,className:"sked-test-AIReceptionist-General-Phone-InboundForwarding"})]})},Ku=()=>{const e=j();return r.jsx(me,{title:"Transfer Phone Number",description:"Enter the phone number or extension Alina should transfer callers to when a staff member is needed.",titleAdornment:r.jsx(st,{arrow:!0,placement:"top",title:Tu,children:r.jsx(ge,{"aria-label":"Transfer phone number help",size:"small",sx:{color:e.palette.gray[400],p:.25},className:"sked-test-AIReceptionist-General-Phone-TransferHelp",children:r.jsx(k0,{sx:{fontSize:18}})})})})},Ht=({before:e,after:t})=>{const n=j();return r.jsxs(ee,{variant:"body2",sx:{fontSize:14,lineHeight:"20px"},children:[e,r.jsx(cn,{href:C0,target:"_blank",rel:"noopener noreferrer",sx:{fontWeight:500,fontSize:14,lineHeight:"20px",color:n.palette.primary.main,cursor:"pointer",textDecoration:"none","&:hover":{textDecoration:"underline"}},children:"Learn more"}),t]})},Wt=()=>{const e=j();return r.jsxs(g,{children:[r.jsx(x,{variant:"h2",sx:{fontWeight:600,margin:0,lineHeight:"18px",color:e.palette.gray[800]},children:"Phone Setup"}),r.jsx(ee,{variant:"body2",sx:{mt:"6px",fontSize:14,lineHeight:"20px"},children:"Manage how patients reach your office and Alina."})]})},Vu=()=>{const e=j();return r.jsx(de,{open:!0,variant:"noteBlue",title:"You can set up your office number so patients can call your office phone number and get Alina by default.",body:r.jsxs(ee,{variant:"body2",sx:{fontSize:14,fontWeight:500},children:["This is supported by most phone providers. Visit our help center to"," ",r.jsx(cn,{href:C0,target:"_blank",rel:"noopener noreferrer",sx:{fontWeight:500,fontSize:14,lineHeight:"20px",color:e.palette.primary.main,cursor:"pointer",textDecoration:"none","&:hover":{textDecoration:"underline"}},children:"learn more"}),"."]})})},B0=ft(r.jsx("path",{d:"M12 12c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m6-1.8C18 
56.57 15.35 4 12 4s-6 2.57-6 6.2c0 2.34 1.95 5.44 6 9.14 4.05-3.7 6-6.8 6-9.14M12 2c4.2 0 8 3.22 8 8.2 0 3.32-2.67 7.25-8 11.8-5.33-4.55-8-8.48-8-11.8C4 5.22 7.8 2 12 2"}),"PlaceOutlined"),H0=()=>C1(),W0=(e,t)=>`ai-receptionist/conversations/office/${e}/${t}`,G0=e=>{if(!e)throw new Error("Office ID is required to search or provision phone numbers.")},Hl={twilio_search_failed:"Unable to search for available phone numbers. Please try again.",twilio_purchase_failed:"Unable to purchase this phone number. Please try another number or contact support.",no_agent:"No Alina agent found for this office. Contact support to complete setup first.",already_provisioned:"This office already has a different Alina phone number provisioned.",sked_api_base_url_not_configured:"Phone provisioning is not configured for this environment. Contact support.",elevenlabs_registration_failed:"The number could not be registered with Alina. Contact support.",elevenlabs_assignment_failed:"The number could not be linked to your Alina agent. Contact support.",sked_update_failed:"The number was provisioned but settings could not be updated. Contact support.",no_phone_configured:"This office has no Alina phone number configured to release.",twilio_release_failed:"Unable to release this phone number in Twilio. Try again or release it manually.",elevenlabs_deregistration_failed:"The number was released in Twilio but could not be removed from Alina. Retry or remove it manually."},qu=e=>{var t;return(t=e.response)==null?void 0:t.data},sn=(e,t)=>{if(e instanceof Tt){const n=qu(e);if(n!=null&&n.message)return n.message;if(n!=null&&n.error&&Hl[n.error])return Hl[n.error];if(n!=null&&n.error)return`Request failed (${n.error}). Please try again or contact support.`}return e instanceof Error&&e.message?e.message:t},Yu=async(e,t)=>(G0(e),(await Z.get(`${W0(e,"phone-search")}?areaCode=${encodeURIComponent(t)}`,H0())).results??[]),K0=async(e,t)=>{G0(e);const n=await Z.post(W0(e,"phone-provision"),{phoneNumber:t.phoneNumber},H0());if(!n.phoneNumber)throw new Error("Phone provisioning failed.");return n},Xu=e=>e.replace(/\D/g,"").slice(0,3),V0=e=>{const[t,n]=o.useState([]),[a,i]=o.useState(!1),[d,s]=o.useState(null),[c,u]=o.useState(!1),[l,p]=o.useState(!1),[$,y]=o.useState(null),h=o.useCallback(()=>{n([]),i(!1),s(null),u(!1),p(!1),y(null)},[]),f=o.useCallback(async C=>{const v=Xu(C);if(v.length!==3){s("Enter a 3-digit area code to search."),n([]),u(!1);return}if(e===void 0){s("Unable to search for phone numbers. Check your connection and try again."),n([]),u(!0);return}i(!0),s(null),u(!1);try{const S=await Yu(e,v);n(S),u(!0)}catch(S){console.error("Failed to search available phone numbers:",S),n([]);const A="Unable to search for phone numbers. Check your connection and try again.";S instanceof Tt||S instanceof Error?s(sn(S,A)):s(A),u(!0)}finally{i(!1)}},[e]),m=o.useCallback(async C=>{if(e===void 0)return y("Unable to purchase this phone number. Please try again or contact support."),null;p(!0),y(null);try{return(await K0(e,{phoneNumber:C})).phoneNumber}catch(v){console.error("Failed to purchase phone number:",v);const S="Unable to purchase this phone number. Please try again or contact support.";return v instanceof Tt||v instanceof Error?y(sn(v,S)):y(S),null}finally{p(!1)}},[e]);return{searchResults:t,searchLoading:a,searchError:d,hasSearched:c,purchaseLoading:l,purchaseError:$,search:f,purchase:m,resetSearch:h}},Zu=({open:e,officeId:t,onClose:n,onProvisioned:a})=>{const{searchResults:i,searchLoading:d,searchError:s,hasSearched:c,purchaseLoading:u,purchaseError:l,search:p,purchase:$,resetSearch:y}=V0(t),[h,f]=o.useState("select"),[m,C]=o.useState(null),[v,S]=o.useState("");o.useEffect(()=>{e||(f("select"),C(null),S(""),y())},[e,y]);
5const A=(m==null?void 0:m.phoneNumber)??"",_=v.length===3&&!d,U=c&&!d&&i.length===0,O=h==="select"?750:526,M=h==="select"?"Select a Number":"Confirm Setup",w=o.useCallback(()=>{u||n()},[u,n]),k=o.useCallback(()=>{if(!u){if(h==="confirm"){f("select");return}w()}},[h,u,w]),B=o.useCallback(E=>{S(E.target.value.replace(/\D/g,"").slice(0,3))},[]),F=o.useCallback(()=>{v.length!==3||d||p(v)},[v,d,p]),T=o.useCallback(E=>{E.key==="Enter"&&(E.preventDefault(),!(v.length!==3||d)&&p(v))},[v,d,p]),I=o.useCallback(E=>{C(E)},[]),J=o.useCallback(()=>{m&&f("confirm")},[m]),H=o.useCallback(async()=>{if(!m||u)return;const E=await $(m.phoneNumber);E&&(a==null||a(E),n())},[m,u,$,a,n]),q=o.useMemo(()=>({areaCodeQuery:v,canSearch:_,searchLoading:d,searchError:s,searchResults:i,selectedPhoneNumber:A,showEmptyState:U,hasSearched:c,onAreaCodeChange:B,onAreaCodeKeyDown:T,onSearch:F,onPickOption:I}),[v,_,d,s,i,A,U,c,B,T,F,I]),L=o.useMemo(()=>({selectedNumber:m,purchaseError:l}),[m,l]);return{phase:h,title:M,paperMaxWidth:O,selectedNumber:m,purchaseLoading:u,selectPhase:q,confirmPhase:L,handleClose:w,handleBack:k,handleFinish:J,handleConfirmPurchase:H}},Ju=({selectedNumber:e,purchaseError:t})=>{const n=j();return r.jsxs(r.Fragment,{children:[t?r.jsx(g,{sx:{mb:1.25},children:r.jsx(de,{open:!0,variant:"error",title:t,body:null,className:"sked-test-AIReceptionist-SelectAlinaNumberModal-PurchaseError"})}):null,r.jsxs(x,{component:"div",sx:{fontWeight:500,fontSize:16,lineHeight:1.5,color:n.palette.gray[700],mb:1.25},children:["You're about to purchase"," ",r.jsx(x,{component:"span",sx:{fontWeight:700},children:e?f0(e.phoneNumber):"this phone number"})," ","for Alina. Once purchased, number changes must go through support."]}),r.jsx(x,{sx:{fontWeight:500,fontSize:16,lineHeight:1.5,color:n.palette.gray[700]},children:"After confirmation, this number will appear in your AI Scheduling Assistant settings."})]})},q0=e=>[e.locality,e.region].filter(Boolean).join(", "),Y0=({searchLoading:e,searchError:t,searchResults:n,selectedPhoneNumber:a,showEmptyState:i,hasSearched:d,areaCodeQuery:s,onPickOption:c})=>{const u=j(),l=o.useCallback($=>{c($)},[c]),p=o.useCallback($=>{$.stopPropagation()},[]);return t?r.jsx(de,{open:!0,variant:"error",title:t,body:null,className:"sked-test-AIReceptionist-SelectAlinaNumberModal-SearchError"}):e?r.jsx(g,{sx:{display:"flex",justifyContent:"center",py:3},children:r.jsx(gt,{size:28})}):i?r.jsx(de,{open:!0,variant:"noteGray",title:"No numbers found",body:`No available numbers were found for area code ${s}. Try another area code.`,className:"sked-test-AIReceptionist-SelectAlinaNumberModal-EmptyState"}):n.length>0?r.jsx(g,{sx:{display:"flex",flexDirection:"column",gap:.25},role:"radiogroup","aria-label":"Available phone numbers",children:n.map($=>{const y=$.phoneNumber===a,h=q0($);return r.jsxs(g,{onClick:()=>l($),sx:{display:"flex",alignItems:"center",gap:1,py:.75,px:1,pr:1.25,borderRadius:"4px",cursor:"pointer",bgcolor:y?u.palette.blue[50]:"transparent"},className:"sked-test-AIReceptionist-SelectAlinaNumberModal-OptionRow",children:[r.jsx(R1,{name:"alina-phone-selection",value:$.phoneNumber,checked:y,onChange:()=>l($),onClick:p,buttonSize:"small",sx:{p:0}}),r.jsxs(g,{sx:{display:"flex",flexWrap:"wrap",alignItems:"baseline",gap:1,flex:1,minWidth:0},children:[r.jsx(x,{component:"span",sx:{fontWeight:500,fontSize:14,lineHeight:"20px",color:u.palette.gray[700]},children:f0($.phoneNumber)}),h?r.jsx(x,{component:"span",sx:{fontWeight:500,fontSize:12,lineHeight:"18px",color:u.palette.gray[500],flex:"1 1 auto"},children:h}):null]})]},$.phoneNumber)})}):d?null:r.jsx(x,{sx:{fontWeight:500,fontSize:14,lineHeight:"20px",color:u.palette.gray[500],py:1},children:"Enter a 3-digit area code and search to see available numbers."})},Qu=({open:e,onClose:t,officeId:n,onProvisioned:a})=>{const i=j(),{phase:d,title:s,paperMaxWidth:c,selectedNumber:u,purchaseLoading:l,selectPhase:p,confirmPhase:$,handleClose:y,handleBack:h,handleFinish:f,handleConfirmPurchase:m}=Zu({open:e,officeId:n,onClose:t,onProvisioned:a}),C=o.useMemo(()=>d!=="select"?r.jsx(x,{id:"confirm-alina-setup-dialog-title",component:"span",sx:{fontWeight:600,fontSize:16,lineHeight:"24px",color:i.palette.gray[800]},children:s}):r.jsxs(g,{sx:{display:"flex",alignItems:"center",gap:.5,minWidth:0},children:[r.jsx(x,{id:"select-alina-phone-dialog-title",component:"span",sx:{fontWeight:600,fontSize:16,lineHeight:"24px",color:i.palette.gray[800]},children:s}),r.jsx(st,{arrow:!0,placement:"bottom",title:"Search by area code to find an available number for Alina at this location.",children:r.jsx(g,{component:"span",sx:{dis
5play:"inline-flex",color:i.palette.gray[600]},className:"sked-test-AIReceptionist-SelectAlinaNumberModal-Help",children:r.jsx(k0,{sx:{fontSize:20}})})})]}),[d,s,i]),v=o.useMemo(()=>d==="select"?[r.jsx(Q,{color:"border",size:"medium",onClick:h,className:"sked-test-AIReceptionist-SelectAlinaNumberModal-Back",sx:{mr:.625},children:"Back"},"back"),r.jsx(Q,{color:"primary",size:"medium",disabled:!u,onClick:f,className:"sked-test-AIReceptionist-SelectAlinaNumberModal-Finish",children:"Finish"},"finish")]:[r.jsx(Q,{color:"border",size:"medium",disabled:l,onClick:h,className:"sked-test-AIReceptionist-SelectAlinaNumberModal-Back",sx:{mr:.625},children:"Back"},"back"),r.jsx(Q,{color:"primary",size:"medium",disabled:l,onClick:m,className:"sked-test-AIReceptionist-SelectAlinaNumberModal-Activate",children:l?"Purchasing…":"Confirm Purchase"},"confirm")],[d,u,l,h,f,m]);return r.jsx(Rt,{open:e,onClose:l?void 0:y,title:s,titleComponent:C,buttons:v,maxWidth:c,paperWidth:"100%",className:"sked-test-AIReceptionist-SelectAlinaNumberModal",contentMarginBottom:0,innerSx:{padding:"10px",paddingTop:"10px"},children:d==="select"?r.jsxs(g,{sx:{display:"flex",flexDirection:"column",gap:1.25,width:"100%"},children:[r.jsxs(g,{sx:{display:"flex",gap:.75,alignItems:"flex-start"},children:[r.jsx(Ke,{value:p.areaCodeQuery,onChange:p.onAreaCodeChange,onKeyDown:p.onAreaCodeKeyDown,placeholder:"Area Code...",fullWidth:!0,className:"sked-test-AIReceptionist-SelectAlinaNumberModal-AreaCode",InputProps:{startAdornment:r.jsx(ln,{position:"start",children:r.jsx(B0,{sx:{fontSize:20,color:i.palette.gray[600]}})})}}),r.jsx(Q,{color:"primary",size:"medium",disabled:!p.canSearch,onClick:p.onSearch,className:"sked-test-AIReceptionist-SelectAlinaNumberModal-Search",sx:{flexShrink:0,mt:.125},children:"Search"})]}),r.jsx(Y0,{searchLoading:p.searchLoading,searchError:p.searchError,searchResults:p.searchResults,selectedPhoneNumber:p.selectedPhoneNumber,showEmptyState:p.showEmptyState,hasSearched:p.hasSearched,areaCodeQuery:p.areaCodeQuery,onPickOption:p.onPickOption})]}):r.jsx(Ju,{selectedNumber:$.selectedNumber,purchaseError:$.purchaseError})})},Gt=({alinaPhoneDisplay:e,hasAlinaPhone:t,officeId:n,onProvisioned:a})=>{const[i,d]=o.useState(!1),s=o.useCallback(()=>{n&&d(!0)},[n]),c=o.useCallback(()=>{d(!1)},[]),u=o.useCallback(l=>{a==null||a(l),d(!1)},[a]);return t?r.jsx(rt,{phone:e}):n?r.jsxs(r.Fragment,{children:[r.jsx(Q,{color:"primary",size:"medium",className:"sked-test-AIReceptionist-General-Phone-SelectAlinaNumber",onClick:s,sx:{width:200,maxWidth:"100%",alignSelf:"flex-start"},children:"Select a Number for Alina"}),r.jsx(Qu,{open:i,onClose:c,officeId:n,onProvisioned:u})]}):null},e3=({officePhone:e,alinaPhoneDisplay:t,hasAlinaPhone:n,officeId:a,onAlinaPhoneProvisioned:i})=>r.jsxs(g,{sx:{display:"flex",flexDirection:"column",gap:2.5},children:[r.jsx(Wt,{}),r.jsxs(g,{sx:{display:"flex",flexDirection:"column",gap:1.5},children:[r.jsxs(g,{sx:{display:"flex",flexDirection:"column",gap:"2px"},children:[r.jsx(me,{title:"General Office Phone Number"}),r.jsx(Ht,{before:"Your office's main line for calls and texts. Forward this line to Alina so she can answer. ",after:""})]}),r.jsx(rt,{phone:e})]}),r.jsxs(g,{sx:{display:"flex",flexDirection:"column",gap:1.25},children:[r.jsx(me,{title:"Alina Phone Number",description:n?"Contact support to change your Alina phone number.":"Search for an available number by area code and assign it to this office."}),r.jsx(Gt,{alinaPhoneDisplay:t,hasAlinaPhone:n,officeId:a,onProvisioned:i})]})]}),t3=({officePhone:e,alinaPhoneDisplay:t,hasAlinaPhone:n,officeId:a,onAlinaPhoneProvisioned:i})=>{const d=j();return r.jsxs(g,{sx:{display:"flex",flexDirection:"column",gap:2.5},children:[r.jsx(Wt,{}),r.jsxs(g,{sx:{display:"flex",flexDirection:"column",gap:1.25},children:[r.jsxs(g,{sx:{display:"flex",flexDirection:"column",gap:"2px"},children:[r.jsx(me,{title:"General Office Phone Number"}),r.jsx(Ht,{before:"Your office's main line for calls and texts. Forward this line to Alina so she can answer. ",after:""})]}),r.jsx(rt,{phone:e}),r.jsx(Vu,{})]}),r.jsx(kt,{sx:{borderColor:d.palette.gray[200]}}),r.jsxs(g,{sx:{display:"flex",flexDirection:"column",gap:1.5},children:[r.jsx(me,{title:"Alina Phone Number",description:n?"You can distribute this number. Contact support to change your Alina phone number.":"Search for an available number by area code and assign it to this office."}),r.jsx(Gt,{alinaPhoneDisplay:t,hasAlinaPhone:n,officeId:a,onProvisioned:i})]})]})},n3=({officePhone:e,alinaPhoneDisplay:t,hasAlinaPhone:n,officeId:a,onAlinaPhoneProvisioned:i})=>r.jsxs(g,{sx:{display:"flex",flexDirection:"column",gap:2.5},children:[r.jsx(Wt,{}),r.jsxs(g,{sx:{display:"flex",flexDirection:"column",gap:1.25},children:[r.jsxs(g,{sx:{display:"flex",flexDirection:"column",gap:"2px"},children:[r.jsx(me,{title:"General Office Phone Number"}),r.jsx(Ht,{before:"Your office's main line for calls and texts. Forward this line to Alina so she can answer. ",after:""})]}),r.jsx(rt,{phone:e})]}),r.jsxs(g,{sx:{display:"flex",flexDirection:"column",gap:1.5},children:[r.jsx(me,{title:"Alina Phone Number",description:n?"You can distribute this number. Contact support to change your Alina phone number.":"Search for an available number by area code and assign it to this office."}),r.jsx(Gt,{alinaPhoneDisplay:t,hasAlinaPhone:n,officeId:a,onProvisioned:i})]})]}),r3=({officePhone:e,alinaPhoneDisplay:t,hasAlinaPhone:n,officeId:a,onAlinaPhoneProvisioned:i})=>r.jsxs(g,{sx:{display:"flex",flexDirection:"column",gap:2.5},children:[r.jsx(Wt,{}),r.jsxs(g,{sx:{display:"flex",flexDirection:"column",gap:1.5},children:[r.jsxs(g,{sx:{display:"flex",flexDirection:"column",gap:"2px"},children:[r.jsx(me,{title:"General Office Phone Number"}),r.jsx(Ht,{before:"Your office's main line for calls and texts. Forward this line to Alina so she can answer. ",after:""})]}),r.jsx(rt,{phone:e})]}),r.jsxs(g,{sx:{display:"flex",flexDirection:"column",gap:1.25},children:[r.jsx(me,{title:"Alina Phone Number",description:n?"Contact support to change your Alina phone number.":"Search for an available number by area code and assign it to this office."}),r.jsx(Gt,{alinaPhoneDisplay:t,hasAlinaPhone:n,officeId:a,onProvisioned:i})]})]}),a3=({officePhone:e,transferMode:t,transferNumberInput:n,transferExtensionInput
5:a,transferNumberError:i,transferExtensionError:d,showTransferValidation:s,onTransferModeChange:c,onTransferNumberInputChange:u,onTransferExtensionInputChange:l})=>{const p=Lt(u),$=Lt(l),y=s&&!!i,h=s&&!!d;return r.jsxs(g,{sx:{display:"flex",flexDirection:"column",gap:1.25},children:[r.jsx(Ku,{}),r.jsx(dt,{label:"Direct Number or Office Number + Extension",maxWidth:500,children:r.jsx(Bu,{value:t,onChange:c,className:"sked-test-AIReceptionist-General-Phone-TransferMode"})}),t==="direct"?r.jsx(dt,{label:"Direct Staff Number",children:r.jsx(R0,{value:n,onChange:p,showError:y,errorMessage:i,className:"sked-test-AIReceptionist-General-Phone-TransferStaff"})}):null,t==="officeExtension"?r.jsx(dt,{label:"Office Extension",hint:"Must be a valid extension in your phone system.",required:!0,children:r.jsx(D0,{officePhone:e,required:!0,value:a,onChange:$,showError:h,errorMessage:d,className:"sked-test-AIReceptionist-General-Phone-TransferOfficeExtension"})}):null]})},i3=(e,t,n,a)=>({officePhone:ot(e==null?void 0:e.phone),smsPhoneDisplay:ot(t),alinaPhoneDisplay:ot(n),hasAlinaPhone:!!n,officeId:e==null?void 0:e.id,onAlinaPhoneProvisioned:a}),o3=(e,t)=>e==="hybridOfficeRouting"?r.jsx(e3,{...t}):e==="smsBackedAlinaLine"?r.jsx(n3,{...t}):e==="separateAlinaLine"?r.jsx(t3,{...t}):e==="unifiedNumber"?r.jsx(r3,{...t}):e,d3=({officePhoneRouting:e,office:t,smsPhone:n,alinaPhone:a,transfer:i,onAlinaPhoneProvisioned:d})=>{const s=o.useMemo(()=>i3(t,n,a,d),[t,n,a,d]),c=e==="hybridOfficeRouting"||e==="smsBackedAlinaLine";return r.jsxs(g,{sx:{display:"flex",flexDirection:"column",gap:2.5},children:[o3(e,s),r.jsx(a3,{officePhone:s.officePhone,...i}),c?r.jsx(Gu,{phone:s.smsPhoneDisplay}):null]})},Wl=({color:e,className:t})=>r.jsx("svg",{className:t,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M16.4813 7.82607V8.82998C16.4864 10.4728 16.4864 12.1162 16.4813 13.7597C16.4776 13.9486 16.4492 14.1368 16.3963 14.3183C16.1041 15.3745 15.1285 16.0947 14.0331 16.0644H5.952C4.85648 16.0947 3.88092 15.3745 3.58871 14.3183C3.53581 14.1368 3.50742 13.9486 3.50375 13.7597V7.82607H16.4813ZM12.3866 9.25088V11.4188H15.2606V9.25088H12.3866ZM13.5194 3.99111C14.8454 3.7023 16.1542 4.54303 16.4432 5.86904C16.5023 6.14026 16.5155 6.41974 16.4813 6.69521H3.52524C3.36395 5.58004 4.00183 4.50331 5.05746 4.10928C5.51457 3.971 5.99475 3.9254 6.46957 3.97646L6.47739 5.38076C6.46257 5.6909 6.7024 5.95481 7.01254 5.96963C7.02 5.96998 7.02754 5.96957 7.035 5.96963C7.34268 5.96005 7.58459 5.70309 7.57504 5.39541C7.57489 5.39056 7.57434 5.3856 7.57407 5.38076V3.97646C7.63407 3.9759 7.69502 3.96966 7.75864 3.96963H12.2264C12.2983 3.96968 12.3703 3.98034 12.4422 3.98623C12.4306 4.02855 12.4237 4.07241 12.4198 4.11611V5.37392C12.3931 5.67743 12.6172 5.94492 12.9207 5.97158C13.2243 5.99824 13.4917 5.77411 13.5184 5.4706C13.5211 5.44012 13.5218 5.40931 13.5194 5.37881V3.99111ZM12.4471 3.98721C12.4455 3.98708 12.4439 3.98636 12.4422 3.98623L12.4432 3.98428L12.4471 3.98721ZM7.57407 3.97646C7.57186 3.97648 7.56944 3.97744 7.56723 3.97744L7.57407 3.97158V3.97646Z",fill:e||"#4F4F55"})}),Gl=({color:e,className:t})=>r.jsx("svg",{className:t,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M9.98475 16.998C8.83121 16.998 7.67759 16.9901 6.52413 16.9999C4.88339 17.0138 3.45337 15.8673 3.09857 14.2974C3.03538 14.0177 3.0099 13.724 3.00902 13.4367C3.002 11.1442 3.02014 8.85148 3.00014 6.55912C2.98506 4.83088 4.21326 3.35859 5.85681 3.05627C5.9959 3.03069 6.13795 3.0074 6.27872 3.00677C7.51969 3.00125 8.76065 3.00025 10.0016 3C10.2996 2.99994 10.5169 3.14328 10.6349 3.41212C10.7493 3.67278 10.7143 3.92673 10.5291 4.14872C10.3741 4.33444 10.168 4.39379 9.9302 4.39294C8.79854 4.38887 7.66686 4.38763 6.5352 4.39226C5.54439 4.39631 4.72595 5.01482 4.47615 5.95269C4.42475 6.14568 4.40011 6.35151 4.39966 6.55152C4.39448 8.84953 4.3944 11.1476 4.39727 13.4456C4.39859 14.5082 5.06962 15.3402 6.09709 15.5591C6.24024 15.5896 6.38965 15.6036 6.53616 15.6038C8.84325 15.6065 11.1503 15.6084 13.4574 15.6044C14.5114 15.6026 15.3468 14.918 15.5585 13.8897C15.5913 13.7304 15.5988 13.5639 15.6 13.4006C15.605 12.7222 15.5981 12.0436 15.6057 11.3653C15.6095 11.018 15.8572 10.7611 16.2157 10.7045C16.5191 10.6565 16.8447 10.8529 16.9505 11.157C16.9786 11.2377 16.9908 11.3278 16.991 11.4136C16.9928 12.1632 17.0027 12.913 
516.9865 13.6623C16.951 15.2992 15.6269 16.7562 14.0003 16.9599C13.8005 16.9849 13.5977 16.9959 13.3962 16.9965C12.2591 16.9998 11.1219 16.9981 9.98475 16.998ZM12.0984 10.6475C12.0969 10.9688 12.229 11.2124 12.526 11.339C12.8235 11.4659 13.0914 11.3934 13.319 11.1657C14.4668 10.0169 15.6161 8.86965 16.7619 7.71892C17.1081 7.37121 17.0714 6.91678 16.6868 6.61074C16.161 6.19227 15.6378 5.77065 15.1132 5.3507C14.4905 4.85223 13.8687 4.35252 13.244 3.85664C13.0143 3.67433 12.7568 3.63757 12.492 3.76845C12.2282 3.89889 12.1007 4.12329 12.0992 4.41761C12.0979 4.66374 12.0988 4.90987 12.0988 5.15602C12.0988 5.34534 12.0988 5.53468 12.0988 5.73073C11.8694 5.73073 11.6609 5.71502 11.4556 5.73388C10.9622 5.77921 10.4643 5.80947 9.97915 5.90277C9.16782 6.0588 8.41966 6.38674 7.8261 6.97442C6.78655 8.00368 6.3885 9.27778 6.49877 10.7206C6.52781 11.1006 6.75596 11.3321 7.10764 11.389C7.3995 11.4363 7.67444 11.2935 7.83294 10.9964C8.0396 10.609 8.30833 10.277 8.66774 10.0229C9.69665 9.29545 10.8702 9.19939 12.0989 9.22509C12.0989 9.71911 12.1005 10.1833 12.0984 10.6475Z",fill:e||"#4F4F55"})}),s3=z("div")({marginTop:"1.5rem",position:"relative",zIndex:1}),l3=z(x)(({theme:e})=>({fontWeight:600,fontSize:"16px",marginBottom:"0.5rem",color:e.palette.gray[700]})),c3=z("div")(({theme:e})=>({display:"flex",alignItems:"center",padding:"5px 16px",borderRadius:"8px",border:`1px solid ${e.palette.gray[200]}`,backgroundColor:e.palette.common.white,cursor:"pointer",transition:"background-color 0.2s","&:hover":{backgroundColor:e.palette.gray[50]}})),X0=z("div")(({theme:e})=>({display:"flex",alignItems:"center",marginRight:"12px",color:e.palette.gray[600],"& svg":{width:"24px",height:"24px"}})),gn=z("div")({flex:1,display:"flex",flexDirection:"column"}),Zt=z(x)(({theme:e})=>({fontSize:"14px",fontWeight:500,color:e.palette.gray[700],marginBottom:"4px"})),Kl=z(x)(({theme:e})=>({fontSize:"12px",fontWeight:500,color:e.palette.gray[500]})),Z0=z("div")({display:"flex",alignItems:"center",gap:"8px"}),u3=z(Se,{shouldForwardProp:e=>e!=="selected"})(({selected:e,theme:t})=>({display:"flex",alignItems:"center",padding:"12px 16px",borderRadius:"8px",marginBottom:"8px",background:e?t.palette.blue[50]:"unset","&:hover":{backgroundColor:e?t.palette.blue[50]:t.palette.gray[50],filter:e?"brightness(0.95)":"none"},"&.Mui-selected":{backgroundColor:t.palette.blue[50],"&:hover":{backgroundColor:t.palette.blue[50]}}})),J0=({selected:e,options:t,onSelect:n,getOptionId:a,renderButtonContent:i,renderMenuItem:d,title:s,placeholder:c="Select an option",className:u,showHeader:l=!1,renderActions:p,renderIcon:$,containerStyle:y})=>{const[h,f]=o.useState(null),[m,C]=o.useState(),v=o.useRef(null),S=!!h;o.useEffect(()=>{S&&v.current&&C(v.current.offsetWidth)},[S]);const A=o.useCallback(w=>{f(k=>k?null:w.currentTarget)},[]),_=o.useCallback(w=>{var k;(k=v.current)!=null&&k.contains(w.target)||f(null)},[]),U=o.useCallback(w=>{n(w),f(null)},[n]),O=l?s3:g,M=l?{className:u}:{sx:y||{maxWidth:"550px",position:"relative",zIndex:1},className:u};return r.jsxs(O,{...M,children:[l&&s&&r.jsx(l3,{variant:"h3",children:s}),r.jsxs(c3,{ref:v,onClick:A,className:`${u}-Button`,children:[$&&r.jsx(X0,{children:$(e)}),r.jsx(gn,{children:i(e,c)}),r.jsxs(Z0,{children:[e&&p&&p(e),r.jsx(v1,{sx:w=>({fontSize:20,color:w.palette.gray[600]})})]})]}),r.jsx(x1,{open:S,anchorEl:h,placement:"bottom-start",style:{zIndex:1300,width:m},children:r.jsx(b1,{onClickAway:_,children:r.jsx(u0,{sx:{borderRadius:"12px",border:"1px solid rgba(0, 0, 0, 0.1)",maxHeight:400,overflowY:"auto",width:"100%"},children:r.jsx(pe,{sx:{width:"100%",padding:"8px"},children:t.map((w,k)=>{const B=a(w),F=e?a(e)===B:!1;return r.jsx(u3,{selected:F,onClick:()=>U(w),className:`${u}-DropdownMenu-ListItem-${k+1}`,children:d(w,F,k,`${u}-DropdownMenu-ListItem-${k+1}`)},B)})})})})})]})},p3=({title:e,selected:t,options:n,onSelect:a,onEdit:i,onShare:d,className:s})=>{const c=o.useCallback((l,p)=>{l.stopPropagation(),i==null||i(p)},[i]),u=o.useCallback((l,p)=>{l.stopPropagation(),d==null||d(p)},[d]);return r.jsx(J0,{title:e,selected:t,options:n,onSelect:a,getOptionId:l=>l.id,renderButtonContent:l=>r.jsx(r.Fragment,{children:l?r.jsxs(r.Fragment,{children:[r.jsx(Zt,{children:l.title}
5),r.jsx(Kl,{children:l.subtitle})]}):r.jsx(Zt,{children:"Select a portal"})}),renderMenuItem:(l,p,$,y)=>r.jsxs(r.Fragment,{children:[r.jsx(X0,{children:r.jsx(Wl,{})}),r.jsxs(gn,{children:[r.jsx(Zt,{children:l.title}),r.jsx(Kl,{children:l.subtitle})]}),r.jsxs(Z0,{children:[l.showEdit&&r.jsx(ge,{size:"small",onClick:h=>c(h,l),sx:h=>({color:h.palette.gray[600],padding:"4px"}),className:`${y}-Button-Edit`,children:r.jsx(gl,{})}),l.showShare&&r.jsx(ge,{size:"small",onClick:h=>u(h,l),sx:h=>({color:h.palette.gray[600],padding:"4px"}),className:`${y}-Button-Share`,children:r.jsx(Gl,{})})]})]}),renderActions:l=>r.jsxs(r.Fragment,{children:[l.showEdit&&r.jsx(ge,{size:"small",onClick:p=>c(p,l),sx:p=>({color:p.palette.gray[600],padding:"4px"}),className:`${s}-Button-Edit`,children:r.jsx(gl,{})}),l.showShare&&r.jsx(ge,{size:"small",onClick:p=>u(p,l),sx:p=>({color:p.palette.gray[600],padding:"4px"}),className:`${s}-Button-Share`,children:r.jsx(Gl,{})})]}),renderIcon:()=>r.jsx(Wl,{}),placeholder:"Select a portal",className:s,showHeader:!0})},Jt=B1.app.items.find(e=>e.link==="/settings/app"),$3=({portals:e})=>{const t=j(),{newPatientPortal:n,newPatientPortals:a,onNewPatientPortalChange:i,onEditPortal:d,onSharePortal:s}=e;return r.jsxs(r.Fragment,{children:[r.jsx(pe,{marginBottom:2,children:r.jsx(x,{variant:"h2",sx:{fontWeight:600,margin:0,lineHeight:"18px",color:t.palette.gray[800]},children:"Scheduling"})}),r.jsxs(pe,{marginBottom:3,marginTop:2,children:[r.jsx(x,{variant:"h3",sx:{fontWeight:600,margin:0,lineHeight:"16px",fontSize:"16px",color:t.palette.gray[700]},children:"New Patient Portal"}),r.jsx(ee,{variant:"body1",sx:{margin:"0.5rem 0"},children:"Select the portal Alina uses to schedule new patient appointments. The selected portal's scheduling rules apply, but the “Linked portal” settings are ignored."}),r.jsx(g,{sx:{maxWidth:un,width:"100%"},children:r.jsx(p3,{title:"",selected:n,options:a,onSelect:i,onEdit:d,onShare:s,className:"sked-test-AIReceptionist-General-Form-DropDown-NewPatientPortal"})})]}),r.jsx(de,{open:!0,variant:"noteBlue",title:r.jsxs(ee,{component:"span",variant:"body2",sx:{fontSize:14,fontWeight:500,color:"inherit"},children:["Existing patient appointments use the same scheduling settings as the app. Manage them in"," ",r.jsx(cn,{component:S1,to:"/settings/app",sx:{fontWeight:500,fontSize:14,lineHeight:"20px",color:t.palette.primary.main,textDecoration:"none","&:hover":{textDecoration:"underline"}},children:Jt==null?void 0:Jt.title}),"."]}),body:null,style:{maxWidth:"100%"}})]})},h3=ft(r.jsx("path",{d:"M8 5v14l11-7z"}),"PlayArrow"),y3=ft(r.jsx("path",{d:"M6 6h12v12H6z"}),"Stop");let Qe=null,yt=null;const Vl=()=>{Qe&&(Qe.pause(),Qe.currentTime=0,Qe=null,yt=null)},Qt=e=>{yt===e&&(Qe=null,yt=null)},ql=e=>{e&&(e.pause(),e.currentTime=0)},Yl=e=>{e.stopPropagation()},f3=({previewUrl:e,voiceId:t})=>{const n=j(),[a,i]=o.useState(!1),[d,s]=o.useState(0),c=o.useRef(null);o.useEffect(()=>()=>{c.current&&yt===t&&(ql(c.current),c.current=null,Qt(t))},[t]);const u=o.useCallback(()=>{i(!1),c.current=null,Qt(t),s(0)},[t]),l=o.useCallback(()=>{i(!1),c.current=null,Qt(t)},[t]),p=o.useCallback(()=>{ql(c.current),c.current=null,Vl(),i(!1),s(0)},[]),$=o.useCallback(()=>{if(!e)return;Vl();const C=new Audio(e);c.current=C,Qe=C,yt=t;const v=()=>{if(C.duration&&C.duration>0){const A=C.currentTime/C.duration*100;s(A)}},S=()=>{s(0)};C.addEventListener("ended",u),C.addEventListener("error",l),C.addEventListener("timeupdate",v),C.addEventListener("loadedmetadata",S),C.play().catch(l),i(!0)},[e,t,u,l]),y=o.useCallback(C=>{C.stopPropagation(),C.preventDefault(),e&&(a?p():$())},[a,p,$,e]),h=o.useCallback(C=>{C.stopPropagation()},[]),f=!!e,m={width:"32px",height:"32px",borderRadius:"50%",backgroundColor:f?n.palette.gray[300]:n.palette.gray[100],color:f?n.palette.gray[600]:n.palette.gray[400],"&:hover":{backgroundColor:f?n.palette.gray[400]:n.palette.gray[100]},padding:0,pointerEvents:"auto"};return r.jsxs(g,{sx:{position:"relative",width:"36px",height:"36px",display:"flex",alignItems:"center",justifyContent:"center"},children:[a&&f&&r.jsx(gt,{variant:"determinate",value:d,size:36,thickness:2.5,sx:{position:"absolute",top:0,left:0,color:n.palette.primary.main,zIndex:0,"& .MuiCircularProgress-circle":{strokeLinecap:"round"}}}),r.jsx(ge,{onClick:y,onMouseDown:h,sx:{...m,position:"relative",zIndex:1},size:"small",children:a?r.jsx(y3,{sx:{fontSize:"18px"}}):r.jsx(h3,{sx:{fontSize:"18px"}})})]})},Xl={height:"24px","& .MuiChip-label":{padding:"0 8px"}},Zl=({option:e})=>{const t=j(),n={...Xl,backgroundColor:t.palette.blue[50],color:t.palette.primary.main,fontWeight:500},a={...Xl,backgroundColor:t.palette.gray[100],color:t.palette.gray[600]};return r.jsxs(g,{sx:{display:"flex",flexWrap:"wrap",gap:.5},children:[r.jsx(Nt,{label:e.name,size:"small",sx:n}),r.jsx(Nt,{label:e.languageDisplay,size:"small",sx:a}),e.descriptive&&r.jsx(Nt,{label:e.descriptive,size:"small",sx:a}),e.useCase&&r.jsx(Nt,{label:e.useCase,size:"small",sx:a})]})},Q0=({selected:e,options:t,onSelect:n,className:a})=>r.jsx(J0,{selected:e,options:t,onSelect:n,getOptionId:i=>i.voiceId,renderButtonContent:(i,d)=>i?r.jsx(Zl,{option:i}):r.jsx(g,{sx:s=>({color:s.palette.gray[500]}),children:d}),renderMenuItem:(i,d,s,c)=>r.jsx(gn,{children:r.jsxs(g,{sx:{display:"flex",alignItems:"flex-start",ga
5p:1},children:[r.jsx(g,{sx:{marginTop:"2px"},onClick:Yl,onMouseDown:Yl,children:r.jsx(f3,{previewUrl:i.previewUrl,voiceId:i.voiceId})}),r.jsxs(g,{sx:{flex:1},children:[r.jsx(Zl,{option:i}),i.description&&r.jsx(g,{sx:u=>({fontSize:"12px",color:u.palette.gray[500],marginTop:"4px",textWrap:"wrap"}),children:i.description})]})]})}),placeholder:"Select a voice",className:a,containerStyle:{width:"100%",maxWidth:"100%"}}),g3=({voice:e})=>{const t=j(),{selectedVoice:n,voiceOptions:a,onVoiceChange:i}=e;return r.jsxs(pe,{marginBottom:3,children:[r.jsx(x,{variant:"h2",sx:{fontWeight:600,margin:0,lineHeight:"18px",color:t.palette.gray[800]},children:"Voice"}),r.jsx(ee,{variant:"body1",sx:{margin:"0.5rem 0"},children:"Select the voice you want to use for Alina."}),r.jsx(g,{sx:{maxWidth:un,width:"100%"},children:r.jsx(Q0,{selected:n,options:a,onSelect:i,className:"sked-test-AIReceptionist-General-Form-DropDown-Voice"})})]})},m3=({loading:e,phone:t,portals:n,voice:a,languages:i})=>e.isLoading?r.jsx(nt,{loading:!0}):r.jsxs(g,{children:[r.jsx(g,{sx:{maxWidth:wt},children:r.jsx(d3,{officePhoneRouting:t.officePhoneRouting,office:t.office,smsPhone:t.smsPhone,alinaPhone:t.alinaPhone,transfer:t.transfer,onAlinaPhoneProvisioned:t.onAlinaPhoneProvisioned})}),r.jsx(kt,{sx:{margin:"2.5rem 0"}}),r.jsx(g,{sx:{maxWidth:wt},children:r.jsx($3,{portals:n})}),r.jsx(kt,{sx:{margin:"2.5rem 0"}}),r.jsx(g,{sx:{maxWidth:wt},children:r.jsx(g3,{voice:a})}),r.jsx(kt,{sx:{margin:"2.5rem 0"}}),r.jsx(g,{sx:{maxWidth:wt},children:r.jsx(yc,{languages:i})})]}),C3=!1,v3="OYTbf65OHHFELVut7v2H",Jl=e=>e.replace(/\D/g,""),x3=(e,t)=>{if(!e||!t)return!1;const n=Jl(e),a=Jl(t);return!n||!a?!1:n===a},b3=e=>e?"unifiedNumber":"smsBackedAlinaLine",S3=e=>{const[t,n]=o.useState(null),[a,i]=o.useState(!1),[d,s]=o.useState(!1),c=o.useCallback(async()=>{if(e!==void 0){i(!0);try{const l=await Z.get(`ai-receptionist/conversations/office/${e}/agent-enabled`,{headers:{Accept:"application/json"}});n(l.enabled)}catch(l){console.error("Failed to fetch agent enabled state:",l)}finally{i(!1)}}},[e]),u=o.useCallback(async l=>{if(e===void 0)return;s(!0);let p=null;n($=>(p=$,l));try{await Z.post(`ai-receptionist/conversations/office/${e}/agent-enabled`,{enabled:l},{headers:{Accept:"application/json"}})}catch($){throw n(p),$}finally{s(!1)}},[e]);return o.useEffect(()=>{c()},[c]),{enabled:t,loading:a,toggling:d,refetch:c,toggle:u}},e1=()=>Z.get("ai-receptionist/config"),t1=e=>Z.put("ai-receptionist/config",e),A3=()=>{const[e,t]=o.useState(null),[n,a]=o.useState(!1),i=o.useCallback(async()=>{try{const c=await e1();return t(c),c}catch(c){return console.error("Failed to fetch AI config:",c),null}},[]),d=o.useCallback(async c=>{try{await t1(c),t(u=>{const l={smsForwardsToAlina:u==null?void 0:u.smsForwardsToAlina,alinaPhone:(u==null?void 0:u.alinaPhone)??null};return{linkedNPP:c.linkedNPP,linkedEPP:c.linkedEPP,voiceId:c.voiceId,voiceMainLocale:c.voiceMainLocale,voiceAdditionalLocales:c.voiceAdditionalLocales,allowsRecording:c.allowsRecording,transferNumber:c.transferNumber??null,transferExtension:c.transferExtension??null,enabled:c.enabled,...l}})}catch(u){throw console.error("Failed to save AI config:",u),u}},[]),s=o.useCallback(async()=>{a(!0);try{await i()}finally{a(!1)}},[i]);return{config:e,loading:n,fetchConfig:i,saveConfig:d,refetch:s}},P3=()=>{const[e,t]=o.useState(null),[n,a]=o.useState(!1),i=o.useCallback(async()=>{a(!0);try{const d=await Z.get("office/sms-number");t(d.number??null)}catch(d){console.error("Failed to fetch SMS number:",d),t(null)}finally{a(!1)}},[]);return o.useEffect(()=>{i()},[i]),{smsPhone:e,loading:n,refetch:i}},Ql=e=>({id:String(e.newPatientPortalSettingsId),title:e.name,subtitle:`${e.nppType} Patient Portal`,showEdit:!0,showShare:!0,key:e.key}),_3=e=>{const t=e.filter(a=>a.nppType==="New").map(Ql),n=e.filter(a=>a.nppType==="Existing").map(Ql);return{new:t,existing:n}},n1=()=>{const[e,t]=o.useState([]),[n,a]=o.useState([]),[i,d]=o.useState(!1),s=o.useCallback(async()=>{d(!0);try{const c=await g0(),{new:u,existing:l}=_3(c);t(u),a(l)}catch(c){console.error("Failed to fetch portals:",c),oe("Error!","Failed to load portal settings.")}finally{d(!1)}},[]);return{newPatientPortals:e,existingPatientPortals:n,loading:i,refetch:s}},N3=e=>{const t=e.split("-")[0].toLowerCase(),n=Et.find(a=>a.value.toLowerCase()===t||a.value.toLowerCase()===e.toLowerCase());return(n==null?void 0:n.label)||t.charAt(0).toUpperCase()+t.slice(1)},w3=e=>({american:"American",british:"British",canadian:"Canadian",australian:"Australian",indian:"Indian",irish:"Irish","south african":"South African","latin american":"Latin American",peninsular:"Peninsular",mexican:"Mexican",parisian:"Parisian",standard:"Standard","us midwest":"US Midwest"})[e.toLowerCase()]||e.charAt(0).toUpperCase()+e.slice(1),j3=(e,t)=>{const n=N3(e),a=w3(t);return!a||a==="Standard"?n:`${n} (${a})`},k3=e=>e?e.split("_").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" & "):"",I3=e=>{if(!e)return"en-US";const t={en:"en-US",es:"es-ES",fr:"fr-FR",de:"de-DE",it:"it-IT",pt:"pt-BR",pl:"pl-PL",ru:"ru-RU",zh:"zh-CN",ja:"ja-JP",ko:"ko-KR",hi:"hi-IN",ar:"ar-SA",tr:"tr-TR",nl:"nl-NL",sv:"sv-SE",da:"da-DK",no:"no-NO",fi:"fi-FI",cs:"cs-CZ",sk:"sk-SK",hu:"hu-HU",ro:"ro-RO",bg:"bg-BG",hr:"hr-HR",el:"el-GR"},n=e.toLowerCase();return t[n]||`${n}-${n.toUpperCase()}`},z3=e=>e.map(t=>{const n=t.labels||{},a=n.locale||I3(n.language),i=n.accent||"standard";return{voiceId:t.voiceId,name:t.name,languageDisplay:j3(a,i),descriptive:n.descriptive||"",useCase:k3(n.use_case||""),description:t.description,previewUrl:t.previewUrl}}),r1=e=>{const t=o.useMemo(()=>z3(e),[e]),n=o.useMemo(()=>i=>t.find(d=>d.voiceId===i),[t]),a=o.useMemo(()=>()=>t.length>0?t[0]:null,[t]);return{voiceOptions:t,getVoiceById:n,getDefaultVoice:a}},a1=e=>{const[t,n]=o.useState([]),[a,i]=o.useState(!1),d=o.useCallback(async()=>
5{if(e!==void 0){i(!0);try{const s=await Z.get(`ai-receptionist/conversations/office/${e}/voices`,{headers:{Accept:"application/json"}});n(s.voices)}catch(s){console.error("Failed to fetch voices:",s),oe("Error!","Failed to load voices."),n([])}finally{i(!1)}}},[e]);return o.useEffect(()=>{d()},[d]),{voices:t,loading:a,refetch:d}},T3=({activeTab:e,officePhoneRoutingDev:t})=>{const n=A1(),a=it(b=>b.login.office),{config:i,loading:d,fetchConfig:s,saveConfig:c}=A3(),{newPatientPortals:u,existingPatientPortals:l,loading:p,refetch:$}=n1(),{voices:y,loading:h}=a1(a==null?void 0:a.id),{voiceOptions:f,getVoiceById:m,getDefaultVoice:C}=r1(y),{smsPhone:v,loading:S}=P3(),{enabled:A,loading:_,toggling:U,toggle:O}=S3(a==null?void 0:a.id),[M,w]=o.useState(null),[k,B]=o.useState(null),[F,T]=o.useState(!1),[I,J]=o.useState("en-US"),[H,q]=o.useState([]),[L,E]=o.useState(null),[te,se]=o.useState(!1),[W,ye]=o.useState("officeNumber"),[G,ne]=o.useState(""),[D,P]=o.useState(""),[re,fe]=o.useState(null),[_e,le]=o.useState(null),[ae,Ce]=o.useState(!1),Ne=o.useRef(null),we=o.useMemo(()=>{const b=x3(v,a==null?void 0:a.phone);return b3(b)},[v,a==null?void 0:a.phone]),je=o.useMemo(()=>we,[we,t]),ke=o.useCallback((b,R,ce)=>{if(b){w(b.linkedNPP&&R.find(Xe=>Number(Xe.id)===b.linkedNPP)||null),B(b.linkedEPP&&ce.find(Xe=>Number(Xe.id)===b.linkedEPP)||null),J(b.voiceMainLocale||"en-US"),q(b.voiceAdditionalLocales||[]);const ue=m(b.voiceId);E(ue||C());const Ye=Uu(b);ye(Ye.transferMode),ne(Ye.transferNumberInput),P(Ye.transferExtensionInput),fe(null),le(null),Ce(!1)}else w(null),B(null),J("en-US"),q([]),E(C()),ye("officeNumber"),ne(""),P(""),fe(null),le(null),Ce(!1)},[m,C]),ie=o.useCallback((b,R,ce)=>{const ue=U0({transferMode:b,transferNumberInput:R,transferExtensionInput:ce});return fe(ue.transferNumberError),le(ue.transferExtensionError),!O0(ue)},[]),Ie=o.useCallback((b=!1)=>{const R={transferMode:W,transferNumberInput:G,transferExtensionInput:D};return ie(W,G,D)?Ou(R):b?{transferNumber:(i==null?void 0:i.transferNumber)??null,transferExtension:(i==null?void 0:i.transferExtension)??null}:null},[i,W,G,D,ie]),ze=o.useCallback((b=!1)=>{const R=Ie(b);return R?{linkedNPP:M?Number(M.id):null,linkedEPP:k?Number(k.id):null,voiceId:(L==null?void 0:L.voiceId)||(i==null?void 0:i.voiceId)||v3,voiceMainLocale:I,voiceAdditionalLocales:H,allowsRecording:(i==null?void 0:i.allowsRecording)??!0,transferNumber:R.transferNumber,transferExtension:R.transferExtension,enabled:(i==null?void 0:i.enabled)??!1}:null},[Ie,M,k,L,i,I,H]),Te=o.useCallback(async()=>{try{await Promise.all([s(),$()])}catch(b){console.error("Failed to fetch general data:",b),oe("Error!","Failed to load Alina settings.")}},[s,$]);o.useEffect(()=>{e===X.general&&Te()},[e,Te]),o.useEffect(()=>{if(e===X.general&&i!==null&&!p&&!d&&!h){const b=JSON.stringify(i.voiceAdditionalLocales??[]),R=`${i.voiceId}-${i.linkedNPP}-${i.linkedEPP}-${i.enabled}-${i.voiceMainLocale}-${b}-${i.transferNumber??""}-${i.transferExtension??""}`;Ne.current!==R&&(Ne.current=R,ke(i,u,l))}},[e,i,d,p,h,u,l,ke]),o.useEffect(()=>{f.length>0&&L===null&&E(C())},[f.length,L,C]);const Ee=o.useCallback(b=>{w(b),T(!0)},[]),Ue=o.useCallback(b=>{B(b),T(!0)},[]),Oe=o.useCallback(b=>{n(`/settings/new-patient-portal/${b.id}`)},[n]),Me=o.useCallback(b=>{const ce=[...u,...l].find(ue=>ue.id===b.id);if(ce!=null&&ce.key){const ue=`${P1}/new-patient?key=${ce.key}`;window.open(ue,"_blank")}},[u,l]),Le=o.useCallback(b=>{E(b),T(!0)},[]),Fe=o.useCallback(b=>{J(b),T(!0)},[]),Re=o.useCallback(b=>{q(b),T(!0)},[]),De=o.useCallback(b=>{ye(b),T(!0),ae&&ie(b,G,D)},[ae,G,D,ie]),Be=o.useCallback(b=>{ne(b),T(!0),ae&&ie(W,b,D)},[ae,W,D,ie]),He=o.useCallback(b=>{P(b),T(!0),ae&&ie(W,G,b)},[ae,W,G,ie]),We=o.useCallback(async()=>{if(!F)return;Ce(!0);const b=ze();if(!b){oe("Error!","Please fix the transfer number configuration before saving.");return}se(!0);try{await c(b),T(!1),Ce(!1),fe(null),le(null),oe("Success!","Alina settings saved successfully.")}catch(R){console.error("Failed to save settings:",R),oe("Error!","Failed to save Alina settings.")}finally{se(!1)}},[F,c,ze]),qe=A??(i==null?void 0:i.enabled)??!1,Ge=o.useCallback(async b=>{try{await O(b)}catch(R){console.error("Failed to toggle Alina:",R),oe("Error!","Failed to update AI Scheduling Assistant status.")}},[O]),N=_||U,Y=o.useCallback(async b=>{await s()},[s]),vt=o.useMemo(()=>({isLoading:d||h||p||S}),[d,h,p,S]),xt=o.useMemo(()=>({officePhoneRouting:je,office:a,smsPhone:v,alinaPhone:(i==null?void 0:i.alinaPhone)??null,transfer:{transferMode:W,transferNumberInput:G,transferExtensionInput
5:D,transferNumberError:re,transferExtensionError:_e,showTransferValidation:ae,onTransferModeChange:De,onTransferNumberInputChange:Be,onTransferExtensionInputChange:He},onAlinaPhoneProvisioned:Y}),[je,a,v,i==null?void 0:i.alinaPhone,W,G,D,re,_e,ae,De,Be,He,Y]),bt=o.useMemo(()=>({newPatientPortal:M,existingPatientPortal:k,newPatientPortals:u,existingPatientPortals:l,onNewPatientPortalChange:Ee,onExistingPatientPortalChange:Ue,onEditPortal:Oe,onSharePortal:Me}),[M,k,u,l,Ee,Ue,Oe,Me]),St=o.useMemo(()=>({selectedVoice:L,voiceOptions:f,onVoiceChange:Le}),[L,f,Le]),At=o.useMemo(()=>({receptionistLanguage:I,additionalLanguages:H,onReceptionistLanguageChange:Fe,onAdditionalLanguagesChange:Re}),[I,H,Fe,Re]),Pt=o.useMemo(()=>({hasUnsavedChanges:F,saving:te,isAlinaEnabled:qe,alinaToggleDisabled:N,configLoading:d||h,onSave:We,onAlinaToggle:Ge}),[F,te,qe,N,d,h,We,Ge]);return{loading:vt,phone:xt,portals:bt,voice:St,languages:At,actions:Pt}},jt=[{question:"What is your location?",placeholder:"123 Main Street, City, State 12345"},{question:"What is your phone number?",placeholder:"(555) 123-4567"},{question:"What is your email?",placeholder:"[email protected]"},{question:"Do you accept same day appointments?",placeholder:"Yes, we accept same day appointments"},{question:"Which insurance providers do you accept?",placeholder:"Blue Cross, Aetna, Cigna, UnitedHealthcare"},{question:"Do you have on-site X-ray facilities?",placeholder:"Yes, we have on-site X-ray facilities"},{question:"What other diagnostic tools do you use besides X-rays?",placeholder:"MRI, CT scans, ultrasound"},{question:"Do you specialize in any particular treatments/therapies?",placeholder:"Sports injury rehabilitation, prenatal care, pediatric chiropractic"},{question:"Do you specialize in any particular packages/programs?",placeholder:"Wellness programs, corrective care plans, maintenance care"},{question:"How many chiropractors are on staff?",placeholder:"3 chiropractors"},{question:"How long have your chiropractors been practicing?",placeholder:"Over 20 years of combined experience"},{question:"Do you have bilingual staff?",placeholder:"Yes, we have Spanish-speaking staff members"},{question:"What makes you unique?"}],E3=({open:e,onClose:t,onSave:n})=>{const[a,i]=o.useState({});o.useEffect(()=>{if(e){const $={};jt.forEach(y=>{$[y.question]=""}),i($)}},[e]);const d=o.useCallback(($,y)=>{i(h=>({...h,[$]:y}))},[]),s=o.useCallback(($,y)=>{d($,y.trim())},[d]),c=o.useCallback(($,y)=>{d($,y.target.value)},[d]),u=o.useCallback(($,y)=>{s($,y.target.value)},[s]),l=o.useCallback(()=>{const $=jt.filter(y=>{var h;return(h=a[y.question])==null?void 0:h.trim()}).map(y=>({type:"question",question:y.question,answer:a[y.question].trim()}));$.length!==0&&(n($),t())},[a,n,t]),p=jt.some($=>{var y;return(y=a[$.question])==null?void 0:y.trim()});return r.jsx(Rt,{open:e,onClose:t,title:"Initial Knowledge Items",size:"sm",buttons:[r.jsx(Pe,{title:"Save",onClick:l,disabled:!p,color:"primary",className:"sked-test-AIReceptionist-InitialKnowledgeItemsModal-Button-Save"},"save")],contentStyle:{height:"600px",overflowY:"auto",overflowX:"hidden"},children:r.jsxs(pe,{display:"flex",flexDirection:"column",gap:3,children:[jt.map(($,y)=>{const h=`sked-test-AIReceptionist-InitialKnowledgeItemsModal-TextInput-${y+1}`;return r.jsxs(zt,{fullWidth:!0,children:[r.jsx(tn,{htmlFor:h,children:$.question}),r.jsx(Ke,{id:h,fullWidth:!0,placeholder:$.placeholder,value:a[$.question]||"",onChange:f=>c($.question,f),onBlur:f=>u($.question,f),className:`sked-test-AIReceptionist-InitialKnowledgeItemsModal-TextInput-${y+1}`})]},$.question)}),r.jsx(g,{marginTop:1,children:r.jsx(x,{variant:"caption",sx:$=>({color:$.palette.gray[600],display:"block"}),children:"Fill out any or all of these fields to create initial knowledge items for your AI receptionist. Empty fields will be skipped."})})]})})},en=z(p0)({display:"flex",flexDirection:"column","& > div:first-of-type":{minHeight:"40rem !important",maxHeight:"calc(100vh - 120px) !important",flex:"1 1 auto",overflow:"auto"},"& tbody tr":{height:"auto"}}),U3=e=>{switch(e){case"no-knowledge":return{title:"No Knowledge Added Yet",message:r.jsxs(r.Fragment,{children:["Knowledge will appear here once you add it.",r.jsx("br",{}),"You'll be able to review what your AI receptionist knows and update it anytime."]})};default:return{title:"",message:""}}},O3=({type:e,button:t})=>{const{title:n,message:a}=U3(e);return r.jsxs(g,{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minHeight:"40rem",children:[r.jsx(ee,{variant:"h2",sx:{fontSize:"21px",fontWeight:500,marginBottom:"8px"},children:n}),r.jsx(ee,{variant:"body2",sx:{fontSize:"16px",textAlign:"center",lineHeight:1.5},children:a}),t&&r.jsx(g,{marginTop:3,children:t})]})},M3=(e,t=400)=>e.length<=t?e:e.slice(0,t)+"...",e0={maxWidth:"500px",wordWrap:"break-word",overflowWrap:"break-word",whiteSpace:"normal",overflow:"visible",textOverflow:"unset",verticalAlign:"middle"},L3={cursor:"pointer",whiteSpace:"normal",overflow:"visible",textOverflow:"unset",wordWrap:"break-word",overflowWrap:"break-word"},F3=({items:e,onEdit:t,onDelete:n,onBulkSelect:a,onBulkDelete:i,selectedIds:d,paginationData:s,className:c,emptyStateButton:u,showZeroState:l=!0})=>{const p=o.useMemo(()=>e.length>0&&d.length===e.length,[e.length,d.length]),$=o.useMemo(()=>d.length>0&&d.length<e.length,[e.length,d.length]),y=o.useCallback(f=>{a(f?e.map(m=>m.id):[])},[e,a]),h=o.useCallback((f,m)=>{a(m?[...d,f]:d.filter(C=>C!==f))},[d,a]);return e.length===0?l?r.jsx(en,{pagination:!1,children:r.jsx(O3,{type:"no-knowledge",button:u})}):r.jsx(en,{pagination:!1}):r.jsxs(en,{pagination:!0,paginationData:s,className:c,children:[r.jsx($0,{children:r.jsxs(yl,{hasSelect:!0,checked:p,someChecked:$,setChecked:y,noSelectHover:!0,className:"sked-test-AIReceptionist-KnowledgeTable-TableRow-Header",checkboxClassName:"sked-test-AIReceptionist-KnowledgeTable-CheckBox-SelectAll",children:[r.jsx(xe,{fixed:!0,minWidth:180,style:{position:"relative"},children:d.length>0&&i?r.jsx(pe,{position:"absolute",display:"flex",alignItems:"center",top:5,left
5:8,style:{background:"#F5F5F5",zIndex:1},children:r.jsx(st,{title:"Delete selected",children:r.jsx(ge,{size:"small",onClick:()=>i(d),className:"sked-test-AIReceptionist-KnowledgeTable-Button-BulkDelete",children:r.jsx(ml,{})})})}):"Title"}),r.jsx(xe,{children:"Description"}),r.jsx(xe,{children:r.jsxs(pe,{display:"flex",alignItems:"center",gap:.5,children:["Type",r.jsx(st,{title:"Information: General knowledge content. Question: Q&A format content.",arrow:!0,placement:"top",children:r.jsx(ge,{size:"small",sx:{padding:0},className:"sked-test-AIReceptionist-KnowledgeTable-Button-TypeHelp",children:r.jsx(_1,{})})})]})}),r.jsx(xe,{children:"Actions"})]})}),r.jsx(h0,{children:e.map((f,m)=>{const C=d.includes(f.id);return r.jsxs(yl,{hasSelect:!0,checked:C,setChecked:v=>h(f.id,v),className:`sked-test-AIReceptionist-KnowledgeTable-TableRow-${m+1}`,checkboxClassName:`sked-test-AIReceptionist-KnowledgeTable-CheckBox-${m+1}`,children:[r.jsx(be,{style:e0,children:r.jsx("a",{onClick:()=>t(f),style:L3,className:`sked-test-AIReceptionist-KnowledgeTable-Link-Title-${m+1}`,children:f.type==="question"?f.question:f.title})}),r.jsx(be,{style:e0,children:M3(f.type==="question"?f.answer:f.body)}),r.jsx(be,{children:f.type==="question"?"Question":"Information"}),r.jsx(be,{children:r.jsx(ge,{size:"small",title:"Delete",onClick:()=>n(f),className:`sked-test-AIReceptionist-KnowledgeTable-Button-Delete-${m+1}`,children:r.jsx(ml,{})})})]},f.id)})})]})},R3=({items:e,loading:t,selectedIds:n,paginationData:a,hasSourceItems:i,onEdit:d,onDelete:s,onBulkSelect:c,onBulkDelete:u,onCreateMultiple:l})=>{const[p,$]=o.useState(!1),y=o.useCallback(()=>{$(!1)},[]),h=o.useCallback(()=>{$(!0)},[]),f=o.useCallback(C=>{l&&l(C)},[l]),m=l?r.jsx(Pe,{title:"Add Initial Knowledge Items",onClick:h,color:"primary",className:"sked-test-AIReceptionist-EmptyState-Button-AddInitialKnowledge"}):void 0;return t?r.jsx(nt,{loading:!0}):r.jsxs(r.Fragment,{children:[r.jsx(F3,{items:e,onEdit:d,onDelete:s,onBulkSelect:c,onBulkDelete:u,selectedIds:n,paginationData:a,className:"sked-test-AIReceptionist-KnowledgeTable-Table",emptyStateButton:m,showZeroState:!i}),l&&r.jsx(E3,{open:p,onClose:y,onSave:f})]})},D3=e=>e.type==="question"?`${e.question} ${e.answer}`.toLowerCase():`${e.title} ${e.body}`.toLowerCase(),B3=(e,t)=>t==="all"?e:e.filter(n=>n.type===t),H3=(e,t)=>{if(t.length<sc)return e;const n=t.toLowerCase().trim(),a=n.split(/\s+/).filter(Boolean),i=Array.from(new Set(a)),d=e.map(u=>{const l=D3(u),p=l.includes(n);let $=0,y=Number.POSITIVE_INFINITY;for(const h of i){const f=l.indexOf(h);f!==-1&&($+=1,f<y&&(y=f))}return{item:u,exactMatch:p,hits:$,firstHitIndex:y}}),s=d.filter(u=>u.exactMatch).map(u=>u.item),c=d.filter(u=>!u.exactMatch&&u.hits>0).sort((u,l)=>l.hits!==u.hits?l.hits-u.hits:u.firstHitIndex!==l.firstHitIndex?u.firstHitIndex-l.firstHitIndex:0).map(u=>u.item);return[...s,...c]},W3=(e,t)=>[...e].sort((a,i)=>{switch(t){case"date-added-newest":return new Date(i.created||0).getTime()-new Date(a.created||0).getTime();case"date-added-oldest":return new Date(a.created||0).getTime()-new Date(i.created||0).getTime();case"last-edited-newest":return new Date(i.updated||0).getTime()-new Date(a.updated||0).getTime();case"last-edited-oldest":return new Date(a.updated||0).getTime()-new Date(i.updated||0).getTime();case"title-asc":{const d=a.type==="question"?a.question:a.title,s=i.type==="question"?i.question:i.title;return d.localeCompare(s)}case"title-desc":{const d=a.type==="question"?a.question:a.title;return(i.type==="question"?i.question:i.title).localeCompare(d)}default:return 0}}),G3=e=>{const[t,n]=o.useState(""),[a,i]=o.useState("date-added-newest"),[d,s]=o.useState("all"),[c,u]=o.useState(1),[l,p]=o.useState(25);o.useEffect(()=>{u(1)},[t,d,a]);const $=o.useMemo(()=>{let m=B3(e,d);return m=H3(m,t),m=W3(m,a),m},[e,t,d,a]),y=o.useMemo(()=>{const m=(c-1)*l,C=m+l;return $.slice(m,C)},[$,c,l]),h=o.useMemo(()=>Math.ceil($.length/l),[$.length,l]),f=o.useCallback(m=>{u(C=>C+m)},[]);return{searchQuery:t,setSearchQuery:n,sortOption:a,setSortOption:i,typeFilter:d,setTypeFilter:s,displayedItems:$,paginatedItems:y,pagination:{page:c,perPage:l,setPerPage:p,totalPages:h,totalCount:$.length,addPage:f,currentLength:y.length}}},K3=()=>
5{const[e,t]=o.useState([]),[n,a]=o.useState(!1),i=o.useCallback(async()=>{a(!0);try{const l=await Z.get("ai-receptionist/knowledge");t(l)}catch(l){console.error("Failed to fetch knowledge items:",l),oe("Error!","Failed to load knowledge items.")}finally{a(!1)}},[]),d=o.useCallback(async l=>{try{const p=await Z.post("ai-receptionist/knowledge",l),$=new Date().toISOString(),y={...l,id:p.id,created:$,updated:$};t(h=>[...h,y])}catch(p){throw console.error("Failed to create knowledge item:",p),oe("Error!","Failed to create knowledge item."),p}},[]),s=o.useCallback(async l=>{try{const{id:p,...$}=l,y=new Date().toISOString(),h={...l,updated:y};await Z.put(`ai-receptionist/knowledge/${p}`,{...$,updated:y}),t(f=>f.map(m=>m.id===l.id?h:m))}catch(p){throw console.error("Failed to update knowledge item:",p),oe("Error!","Failed to update knowledge item."),p}},[]),c=o.useCallback(async l=>{try{await Z.delete("ai-receptionist/knowledge",{data:{ids:[l]}}),t(p=>p.filter($=>$.id!==l))}catch(p){throw console.error("Failed to delete knowledge item:",p),oe("Error!","Failed to delete knowledge item."),p}},[]),u=o.useCallback(async l=>{try{await Z.delete("ai-receptionist/knowledge",{data:{ids:l}}),t(p=>p.filter($=>!l.includes($.id)))}catch(p){throw console.error("Failed to delete knowledge items:",p),oe("An error occured!","Failed to delete knowledge items."),p}},[]);return{items:e,loading:n,createItem:d,updateItem:s,deleteItem:c,deleteItems:u,refetch:i}},It=e=>{const t=e.howAlina;if(t===null)return["callHandling"];const n=["callHandling"];return t==="existing-office"&&n.push("handoff"),n.push("numberPick","portalChoice"),e.nppPath==="scratch"&&n.push("portalSettings","portalCreated"),n.push("voice","language","provisioning","goLive"),n},V3=(e,t)=>{const n=It(t),a=n.indexOf(e);return a===-1?null:{cur:a+1,total:n.length}},q3=(e,t)=>e.transferMode==="direct"?e.transferNumber.trim()?z0(e.transferNumber)===null&&!E0(e.transferNumber,t):!1:e.transferExtension.trim()?T0(e.transferExtension)===null:!1,t0=(e,t,n)=>e==="callHandling"?t.howAlina!==null:e==="handoff"?q3(t,n):e==="numberPick"?t.alinaNumber!==null:e==="portalChoice"?t.nppPath?t.nppPath==="scratch"?!0:t.selectedNPP!==null:!1:e==="portalSettings"?t.nppConfig.appointmentTypes.length>0:e==="voice"?t.voice!==null:e==="portalCreated"?t.linkedNPPId!==null:!0,Y3=z(g)(({theme:e})=>{var t;return{flex:1,overflowY:"auto",padding:e.spacing(3.5,3.75),backgroundColor:((t=e.palette.gray)==null?void 0:t[25])??e.palette.grey[50]}}),Ve=z(x)(({theme:e})=>{var t;return{fontWeight:600,fontSize:19,lineHeight:1.4,color:((t=e.palette.gray)==null?void 0:t[900])??e.palette.text.primary,marginBottom:e.spacing(.75)}}),Ct=z(x)(({theme:e})=>{var t;return{fontSize:13,lineHeight:1.65,color:((t=e.palette.gray)==null?void 0:t[600])??e.palette.text.secondary,marginBottom:e.spacing(3)}}),i1=z(g)(({theme:e})=>({display:"flex",flexDirection:"column",gap:e.spacing(1.25)})),X3=()=>({howAlina:null,transferMode:"direct",transferNumber:"",transferExtension:"",alinaNumber:null,nppPath:null,selectedNPP:null,nppConfig:{sameDayScheduling:!1,directSchedule:!0,futureScheduleLimit:null,smsConsent:!1,birthdayOption:"Optional",appointmentTypes:[]},linkedNPPId:null,voice:null,language:"en",additionalLanguages:[]}),Z3=(e,t)=>({...e,howAlina:t,transferNumber:"",transferExtension:"",alinaNumber:null,nppPath:null,selectedNPP:null,linkedNPPId:null,voice:null,additionalLanguages:[]}),n0=(e,t,n)=>{var a,i,d;return{border:"2px solid",borderStyle:n?"dashed":"solid",borderColor:t?e.palette.primary.main:(a=e.palette.gray)==null?void 0:a[200],borderRadius:1,padding:e.spacing(1.75,2.25),backgroundColor:t?((i=e.palette.blue)==null?void 0:i[50])??e.palette.action.selected:e.palette.common.white,transition:"border-color 0.12s ease, background-color 0.12s ease","&:hover":{borderColor:e.palette.primary.main,backgroundColor:((d=e.palette.blue)==null?void 0:d[50])??e.palette.action.hover}}},J3=e=>{var t;return{fontWeight:600,fontSize:14,lineHeight:1.4,color:((t=e.palette.gray)==null?void 0:t[900])??e.palette.text.primary,marginBottom:.375}},Q3=e=>{var t;return{fontSize:12,lineHeight:1.5,color:((t=e.palette.gray)==null?void 0:t[600])??e.palette.text.secondary}},Ft=({title:e,description:t,selected:n,onClick:a,action:i,dashed:d=!1,className:s})=>{const c=j(),u=o.useCallback(p=>{(p.key==="Enter"||p.key===" ")&&(p.preventDefault(),a())}
5,[a]),l=r.jsxs(r.Fragment,{children:[r.jsx(x,{sx:J3(c),children:e}),r.jsx(x,{component:"div",sx:Q3(c),children:t})]});return i?r.jsxs(g,{className:s,sx:{...n0(c,n,d),display:"flex",alignItems:"flex-start",gap:1.5},children:[r.jsx(g,{role:"button",tabIndex:0,onClick:a,onKeyDown:u,sx:{flex:1,minWidth:0,cursor:"pointer"},children:l}),i]}):r.jsx(g,{role:"button",tabIndex:0,onClick:a,onKeyDown:u,className:s,sx:{...n0(c,n,d),cursor:"pointer"},children:l})},e4=[{label:"Call forwarding",detail:"Set your phone provider to forward your main office line to Alina."},{label:"A direct number or extension",detail:"Alina uses it to transfer callers back to staff without looping the call back to herself. You'll enter it in the next step."}],t4=()=>{var t;const e=j();return r.jsxs(g,{sx:{display:"flex",flexDirection:"column",gap:1.25,marginTop:.5},children:[e4.map(n=>{var a,i;return r.jsxs(g,{children:[r.jsx(x,{sx:{fontSize:13,fontWeight:600,lineHeight:1.5,color:((a=e.palette.gray)==null?void 0:a[900])??e.palette.text.primary},children:n.label}),r.jsx(x,{sx:{fontSize:13,lineHeight:1.55,color:((i=e.palette.gray)==null?void 0:i[600])??e.palette.text.secondary},children:n.detail})]},n.label)}),r.jsxs(x,{component:"div",sx:{fontSize:13,lineHeight:1.55,color:((t=e.palette.gray)==null?void 0:t[600])??e.palette.text.secondary},children:["Not ready? Choose ",r.jsx("strong",{children:"Alina answers her own number"})," instead and switch on the"," ",r.jsx("strong",{children:"Settings"})," tab later."]})]})},n4=({answers:e,onAnswersChange:t})=>{var i;const n=j(),a=o.useCallback(d=>{t(s=>Z3(s,d))},[t]);return r.jsxs(g,{className:"sked-test-AIReceptionist-Onboarding-Step-CallHandling",children:[r.jsx(Ve,{children:"How would you like Alina to handle your phone calls?"}),r.jsxs(i1,{sx:{marginTop:1},children:[r.jsx(Ft,{title:"Alina answers calls to her own number",description:"Alina gets her own dedicated line — share it on your website, Google listing, or anywhere you want patients to reach her directly. Your office number stays separate.",selected:e.howAlina==="new-number",onClick:()=>{a("new-number")},className:"sked-test-AIReceptionist-Onboarding-Option-OwnNumber"}),r.jsx(Ft,{title:"Alina answers calls to my office number",description:"Alina answers when patients call your main office line. Setup takes two extra things from your phone provider.",selected:e.howAlina==="existing-office",onClick:()=>{a("existing-office")},className:"sked-test-AIReceptionist-Onboarding-Option-OfficeNumber"})]}),e.howAlina==="existing-office"?r.jsx(g,{sx:{marginTop:1.75},children:r.jsx(de,{variant:"noteBlue",noTag:!0,open:!0,title:r.jsx(x,{sx:{fontSize:14,fontWeight:600,lineHeight:1.4,color:((i=n.palette.gray)==null?void 0:i[900])??n.palette.text.primary},children:"What this requires"}),body:r.jsx(t4,{}),style:{borderRadius:12,maxWidth:"100%"}})}):null]})},r4=[{value:"direct",label:"Direct Number"},{value:"officeExtension",label:"Office Number + Extension"}],a4=({answers:e,officePhone:t,onAnswersChange:n})=>{const a=ot(t),i=E0(e.transferNumber,t),d=o.useCallback(u=>{const l=u.target.value;n(p=>({...p,transferMode:l,transferNumber:"",transferExtension:""}))},[n]),s=Lt(u=>{n(l=>({...l,transferNumber:u}))}),c=Lt(u=>{n(l=>({...l,transferExtension:u}))});return r.jsxs(g,{className:"sked-test-AIReceptionist-Onboarding-Step-Handoff",children:[r.jsx(Ve,{children:"Set a transfer number for Alina"}),r.jsx(Ct,{children:"When a patient asks to speak with a staff member, Alina will transfer them to this number."}),r.jsx(dt,{label:"Type",maxWidth:340,children:r.jsx(mt,{value:e.transferMode,onChange:d,fullWidth:!0,className:"sked-test-AIReceptionist-Onboarding-Handoff-TransferMode",children:r4.map(u=>r.jsx(Se,{value:u.value,children:u.label},u.value))})}),e.transferMode==="direct"?r.jsx(dt,{label:"Number",children:r.jsx(R0,{value:e.transferNumber,onChange:s,showError:i,errorMessage:"Transfer number must be different from the office number.",className:"sked-test-AIReceptionist-Onboarding-Handoff-DirectNumber"})}):r.jsxs(g,{children:[r.jsx(M0,{sx:{marginBottom:.75},children:"Number"}),r.jsx(D0,{officePhone:a,value:e.transferExtension,onChange:c,showError:!1,errorMessage:null,className:"sked-test-AIReceptionist-Onboarding-Handoff-Extension"})]})]})},i4=({answers:e,officeId:t,onAnswersChange:n})=>{var C,v;const a=j(),{searchResults:i,searchLoading:d,searchError:s,hasSearched:c,search:u,resetSearch:l}=V0(t),[p,$]=o.useState("");o.useEffect(()=>{if(e.alinaNumber){const S=e.alinaNumber.displayNumber.replace(/\D/g,"");S.length>=3&&$(S.slice(0,3))}},[e.alinaNumber]);const y=o.useCallback(S=>{const A=S.target.value.replace(/\D/g,"").slice(0,3);if($(A),n(_=>({..._,alinaNumber:null})),A.length===3){u(A);return}l()},[n,l,u]),h=o.useCallback(S=>{n(A=>
5({...A,alinaNumber:{id:S.phoneNumber,displayNumber:S.friendlyName||S.phoneNumber,locality:q0(S)}}))},[n]),f=e.howAlina==="existing-office",m=c&&!d&&i.length===0;return r.jsxs(g,{className:"sked-test-AIReceptionist-Onboarding-Step-NumberPick",children:[r.jsx(Ve,{children:"Let's get a number for Alina."}),r.jsx(Ct,{sx:{marginBottom:2},children:"What is your preferred area code?"}),f?r.jsx(g,{sx:{marginBottom:2},children:r.jsx(de,{variant:"noteBlue",noTag:!0,open:!0,title:"Since patients will call your office number (not this one directly), the area code doesn't need to match your location."})}):null,r.jsx(g,{sx:{position:"relative",marginBottom:1.75},children:r.jsx(Ke,{value:p,onChange:y,placeholder:"Area Code...",fullWidth:!0,className:"sked-test-AIReceptionist-Onboarding-AreaCode",inputProps:{maxLength:3,inputMode:"numeric"},InputProps:{startAdornment:r.jsx(ln,{position:"start",children:r.jsx(B0,{sx:{fontSize:20,color:(C=a.palette.gray)==null?void 0:C[600]}})})}})}),r.jsx(Y0,{searchLoading:d,searchError:s,searchResults:i,selectedPhoneNumber:((v=e.alinaNumber)==null?void 0:v.id)??"",showEmptyState:m,hasSearched:c,areaCodeQuery:p,onPickOption:h})]})},o4=ft(r.jsx("path",{d:"M6.54 5c.06.89.21 1.76.45 2.59l-1.2 1.2c-.41-1.2-.67-2.47-.76-3.79zm9.86 12.02c.85.24 1.72.39 2.6.45v1.49c-1.32-.09-2.59-.35-3.8-.75zM7.5 3H4c-.55 0-1 .45-1 1 0 9.39 7.61 17 17 17 .55 0 1-.45 1-1v-3.49c0-.55-.45-1-1-1-1.24 0-2.45-.2-3.57-.57-.1-.04-.21-.05-.31-.05-.26 0-.51.1-.71.29l-2.2 2.2c-2.83-1.45-5.15-3.76-6.59-6.59l2.2-2.2c.28-.28.36-.67.25-1.02C8.7 6.45 8.5 5.25 8.5 4c0-.55-.45-1-1-1"}),"PhoneOutlined"),d4=({number:e,title:t,description:n,last:a=!1,required:i=!1})=>{var s,c;const d=j();return r.jsxs(g,{sx:{display:"flex",alignItems:"flex-start",gap:1.75,padding:2,borderBottom:a?"none":"1px solid",borderColor:(s=d.palette.gray)==null?void 0:s[100]},children:[r.jsx(g,{sx:{width:32,height:32,borderRadius:"50%",backgroundColor:d.palette.primary.main,color:d.palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,fontSize:13,fontWeight:700},children:e}),r.jsxs(g,{sx:{flex:1},children:[r.jsxs(g,{sx:{display:"flex",alignItems:"center",flexWrap:"wrap",gap:1},children:[r.jsx(x,{sx:{fontSize:14,fontWeight:600},children:t}),i?r.jsx(y0,{title:"Required to go live",color:"yellow",marginRight:0}):null]}),r.jsx(x,{component:"div",sx:{fontSize:13,lineHeight:1.6,color:(c=d.palette.gray)==null?void 0:c[600],marginTop:.5},children:n})]})]})},s4=({answers:e})=>{var s,c,u,l,p,$,y;const t=j(),n=ot((s=e.alinaNumber)==null?void 0:s.displayNumber),a=n.startsWith("+1")?n:`+1 ${n}`,i=e.howAlina==="existing-office",d=[{title:"Train Alina on your office",description:"Help Alina answer questions appropriately by adding office knowledge. Go to the Training tab after setup."}];return i&&d.push({title:"Configure call routing",description:`Log into your phone provider and forward calls to ${a}.`,required:!0}),d.push({title:"Enable Alina",description:"Flip the Enabled toggle at the top of this page when you are ready."}),r.jsxs(r.Fragment,{children:[r.jsxs(g,{sx:{marginBottom:2.25},children:[r.jsx(x,{sx:{fontSize:19,fontWeight:700,marginBottom:.5},children:"Alina's number is ready!"}),r.jsx(x,{sx:{fontSize:12,color:(c=t.palette.gray)==null?void 0:c[500]},children:"She's on and ready to answer — but not live to patients yet. Complete the steps below first."}),r.jsxs(g,{sx:{display:"flex",alignItems:"flex-start",gap:1.25,marginTop:1.5,padding:t.spacing(1.375,1.75),backgroundColor:(u=t.palette.green)==null?void 0:u[50],border:"1px solid",borderColor:(l=t.palette.green)==null?void 0:l[200],borderRadius:1,color:(p=t.palette.green)==null?void 0:p[700]},children:[r.jsx(o4,{sx:{fontSize:17,flexShrink:0,marginTop:.125}}),r.jsxs(x,{sx:{fontSize:12,lineHeight:1.6},children:[r.jsx("strong",{children:"Try her now"})," — call ",r.jsx("strong",{children:a})," directly to hear Alina in action before going live to patients."]})]})]}),r.jsx(x,{sx:{fontSize:11,fontWeight:700,color:($=t.palette.gray)==null?void 0:$[500],letterSpacing:"0.07em",textTransform:"uppercase",marginBottom:1.25}
5,children:"Before going live"}),r.jsx(g,{sx:{border:"1px solid",borderColor:(y=t.palette.gray)==null?void 0:y[200],borderRadius:1.25,backgroundColor:t.palette.common.white,overflow:"hidden"},children:d.map((h,f)=>r.jsx(d4,{number:f+1,title:h.title,description:h.description,required:h.required,last:f===d.length-1},h.title))})]})},l4=({answers:e,onAnswersChange:t})=>{const n=o.useCallback(d=>{t(s=>({...s,language:d,additionalLanguages:s.additionalLanguages.filter(c=>c!==d)}))},[t]),a=o.useCallback(d=>{t(s=>({...s,additionalLanguages:d.filter(c=>c!==s.language)}))},[t]),i=o.useMemo(()=>({receptionistLanguage:e.language,additionalLanguages:e.additionalLanguages,onReceptionistLanguageChange:n,onAdditionalLanguagesChange:a}),[e.additionalLanguages,e.language,a,n]);return r.jsxs(r.Fragment,{children:[r.jsx(Ve,{children:"Language settings"}),r.jsx(Ct,{children:"Set Alina's default language and any additional languages she should support."}),r.jsx(v0,{languages:i,receptionistLanguageClassName:"sked-test-AIReceptionist-SetupAlinaWizard-ReceptionistLanguage",additionalLanguagesClassName:"sked-test-AIReceptionist-SetupAlinaWizard-Languages"})]})},c4=({answers:e,onAnswersChange:t})=>{const{newPatientPortals:n,loading:a,refetch:i}=n1();o.useEffect(()=>{i()},[i]);const d=o.useCallback((u,l)=>{t(p=>({...p,nppPath:u,selectedNPP:l,linkedNPPId:u==="existing"?l:null}))},[t]),s=o.useCallback(u=>{d("duplicate",u)},[d]),c=o.useCallback(()=>{d("scratch",null)},[d]);return r.jsxs(r.Fragment,{children:[r.jsx(Ve,{sx:{fontSize:16,lineHeight:1.5},children:"Alina uses a New Patient Portal to view New Patient appointment availability. Select a portal, duplicate one, or create a new one."}),r.jsxs(g,{sx:{position:"relative",minHeight:a?160:0,marginTop:2},children:[r.jsx(nt,{loading:a,vh:20,width:"100%"}),a?null:r.jsxs(i1,{children:[n.map(u=>{const l=Number(u.id),p=e.selectedNPP===l,$=p&&e.nppPath==="duplicate";return r.jsx(Ft,{title:u.title,description:$?"Will be duplicated for Alina":"Use this portal as-is",selected:p,onClick:()=>d("existing",l),action:r.jsx(Q,{color:"border",size:"small",onClick:()=>s(l),children:"Duplicate"})},u.id)}),r.jsx(Ft,{title:"Create new",description:"Build a new patient portal from scratch",selected:e.nppPath==="scratch",dashed:!0,onClick:c})]})]})]})},o1="Alina — ",d1=`${o1}New Patient Portal`,u4=/^alina(?:\s*[—–-]\s*|\s+|$)/i,p4=/\s*\(\d+\)$/,$4=e=>{const t=e.replace(u4,"").replace(p4,"").trim();return t===""?d1:`${o1}${t}`},s1=(e,t)=>{if(!t.has(e))return e;let n=2;for(;t.has(`${e} (${n})`);)n+=1;return`${e} (${n})`},h4=async()=>{const[e,t]=await Promise.all([Z.get("appointmentType"),Z.get("professional")]);return{appointmentTypes:e.filter(n=>!n.disabled),professionals:t.filter(n=>!n.isHidden)}},l1=async()=>{const e=await g0();return new Set(e.map(t=>t.name))},y4=async e=>{const t=await l1();return(await m0({...H1({name:s1(d1,t),nppType:"New"}),allowSameDayScheduling:e.sameDayScheduling,scheduleNewPatient:e.directSchedule,futureScheduleLimit:e.futureScheduleLimit,enableSMSOptIn:e.smsConsent,enableEmailOptIn:e.smsConsent,birthdayOption:e.birthdayOption,newClient:e.appointmentTypes.map((a,i)=>({appointmentTypeId:a,apptTypeDescription:"",index:i}))})).newPatientPortalSettingsId},f4=async e=>{const[{settings:t},n]=await Promise.all([W1(e),l1()]),a=t,i={...a};return delete i.newPatientPortalSettingsId,delete i.officeId,delete i.key,delete i.linkedPortalId,delete i.linkedNppId,delete i.isSpark,(await m0({...i,name:s1($4(a.name),n)})).newPatientPortalSettingsId},c1=async({path:e,selectedPortalId:t,linkedPortalId:n,config:a})=>{if(n!==null)return n;if(e===null)throw new Error("A patient portal choice is required before provisioning.");if(e==="scratch")return y4(a);if(t===null)throw new Error("A patient portal is required before provisioning.");return e==="duplicate"?f4(t):t},g4=({answers:e,onAnswersChange:t,onBusyChange:n})=>{var l,p,$;const a=j(),i=o.useRef(!1),[d,s]=o.useState("loading"),c=o.useCallback(async()=>{s("loading"),n(!0);try{const y=await c1({path:e.nppPath,selectedPortalId:e.selectedNPP,linkedPortalId:e.linkedNPPId,config:e.nppConfig});t(h=>({...h,linkedNPPId:y})),s("success")}catch(y){console.error("Failed to create or link the portal:",y),s("error")}finally{n(!1)}},[e.nppConfig,e.nppPath,e.selectedNPP,t,n]);o.useEffect(()=>
5{i.current||(i.current=!0,c())},[c]);const u=o.useCallback(()=>{c()},[c]);return d==="loading"?r.jsxs(g,{sx:{textAlign:"center",paddingY:6},children:[r.jsx(gt,{size:40}),r.jsx(x,{sx:{fontSize:14,fontWeight:600,marginTop:2},children:"Creating and linking your portal…"})]}):d==="error"?r.jsxs(g,{sx:{maxWidth:420,marginX:"auto",paddingY:4},children:[r.jsx(de,{open:!0,variant:"error",title:"We could not finish setting up the portal.",body:"Your other setup choices are safe. Retry when you are ready."}),r.jsx(g,{sx:{textAlign:"center",marginTop:2},children:r.jsx(Q,{color:"primary",size:"medium",onClick:u,children:"Retry"})})]}):r.jsxs(r.Fragment,{children:[r.jsxs(g,{sx:{textAlign:"center",padding:a.spacing(2,0,3)},children:[r.jsx(g,{sx:{width:56,height:56,borderRadius:"50%",backgroundColor:(l=a.palette.green)==null?void 0:l[50],color:(p=a.palette.green)==null?void 0:p[600],display:"flex",alignItems:"center",justifyContent:"center",marginX:"auto",marginBottom:2},children:r.jsx(G1,{sx:{fontSize:30}})}),r.jsx(x,{sx:{fontSize:17,fontWeight:600,marginBottom:1},children:"New patient portal created!"}),r.jsx(x,{sx:{fontSize:13,lineHeight:1.6,color:($=a.palette.gray)==null?void 0:$[600],maxWidth:360,marginX:"auto"},children:"A new patient portal has been created and linked to the AI Scheduling Assistant."})]}),r.jsx(de,{open:!0,variant:"warning",title:"For existing patients, Alina will use your mobile app settings.",body:"You can configure those settings separately.",noTag:!0})]})},m4=()=>{const[e,t]=o.useState([]),[n,a]=o.useState([]),[i,d]=o.useState(!1),s=o.useCallback(async()=>{d(!0);try{const c=await h4();t(c.appointmentTypes),a(c.professionals)}catch(c){console.error("Failed to load portal appointment types:",c),oe("Error!","Failed to load appointment types."),t([]),a([])}finally{d(!1)}},[]);return o.useEffect(()=>{s()},[s]),{appointmentTypes:e,professionals:n,loading:i,refetch:s}},r0=[{field:"sameDayScheduling",label:"Same-day scheduling",description:"Enable for patients who need quick and flexible appointment options."},{field:"directSchedule",label:"Direct schedule",description:"If yes, appointments save to your calendar and sync to your EHR. If no, new patients will request an appointment."},{field:"smsConsent",label:"Email and SMS consent",description:"Display email and SMS opt-in checkboxes during scheduling. Required for compliance unless your team collects consent in person."}],C4=({answers:e,onAnswersChange:t})=>{var y;const n=j(),{appointmentTypes:a,professionals:i,loading:d}=m4(),s=e.nppConfig,c=o.useCallback(h=>{t(f=>({...f,nppConfig:h(f.nppConfig),linkedNPPId:null}))},[t]),u=o.useCallback(h=>{c(f=>({...f,[h]:!f[h]}))},[c]),l=o.useCallback(h=>{const f=h.target.value;c(m=>({...m,birthdayOption:f}))},[c]),p=o.useCallback(h=>{const f=h.target.value;c(m=>({...m,futureScheduleLimit:f===""?null:Number(f)}))},[c]),$=o.useCallback(h=>{c(f=>({...f,appointmentTypes:h}))},[c]);return r.jsxs(r.Fragment,{children:[r.jsx(Ve,{children:"New Patient Portal Settings"}),r.jsx(Ct,{children:"Configure how Alina's portal will handle new patient scheduling."}),r.jsx(g,{sx:{border:"1px solid",borderColor:(y=n.palette.gray)==null?void 0:y[200],borderRadius:1,backgroundColor:n.palette.common.white,paddingX:1.75,marginBottom:2.5},children:r0.map((h,f)=>{var m,C;return r.jsxs(g,{sx:{display:"flex",alignItems:"flex-start",gap:1.25,paddingY:1.75,borderBottom:f<r0.length-1?"1px solid":"none",borderColor:(m=n.palette.gray)==null?void 0:m[100]},children:[r.jsx(K1,{checked:s[h.field],onChange:()=>u(h.field),size:"small",sx:{marginTop:.25}}),r.jsxs(g,{children:[r.jsx(x,{sx:{fontSize:13,fontWeight:500},children:h.label}),r.jsx(x,{sx:{fontSize:12,lineHeight:1.55,color:(C=n.palette.gray)==null?void 0:C[600],marginTop:.375},children:h.description})]})]},h.field)})}),r.jsxs(g,{sx:{display:"flex",gap:2,marginBottom:2.5},children:[r.jsxs(g,{sx:{width:220},children:[r.jsx(x,{sx:{fontSize:13,fontWeight:500,marginBottom:.75},children:"Future booking limit"}),r.jsx(Ke,{label:"Days",type:"number",value:s.futureScheduleLimit??"",onChange:p,fullWidth:!0})]}),r.jsxs(g,{sx:{width:220},children:[r.jsx(x,{sx:{fontSize:13,fontWeight:500,marginBottom:.75},children:"Birthday field"}),r.jsxs(mt,{value:s.birthdayOption,onChange:l,fullWidth:!0,children:[r.jsx(Se,{value:"Optional",children:"Optional"}),r.jsx(Se,{value:"Required",children:"Required"}),r.jsx(Se,{value:"Hidden",children:"Hidden"})]})]})]}),r.jsxs(g,{children:[r.jsx(x,{sx:{fontSize:13,fontWeight:500,marginBottom:.75},children:"Which appointment types should be available on this portal?"}),r.jsx(de,{open:s.appointmentTypes.length===0,variant:"warning",title:"If no appointment types are selected, patients will not be able to schedule.",noTag:!0,style:{marginBottom:10}}),r.jsxs(g,{sx:{position:"relative",minHeight:d?140:0},children:[r.jsx(nt,{loading:d,vh:16,width:"100%"}),d?null:r.jsx(D1,{multiple:!0,apptTypes:a,professionals:i,selectedTypeIds:s.appointmentTypes,setSelectedTypeIds:$,maxWidth:"100%"})]})]})]})},a0=["Reserving your number…","Setting up call routing…","Configuring voice settings…","Almost there…"],v4=(e,t)=>{if(e.voice===null)throw new Error("A voice is required before provisioning.");let n=null,a=null;return e.howAlina==="existing-office"&&e.transferMode==="direct"&&(n=Mt(e.transferNumber)),e.howAlina==="existing-office"&&e.transferMode==="officeExtension"&&(
5a=e.transferExtension),{linkedNPP:t,linkedEPP:null,voiceId:e.voice,voiceMainLocale:e.language,voiceAdditionalLocales:e.additionalLanguages,allowsRecording:!0,transferNumber:n,transferExtension:a,enabled:!1}},x4=e=>{var a,i,d;if(!(e instanceof Tt))return"unknown";const t=(a=e.response)==null?void 0:a.data,n=(t==null?void 0:t.error)??(t==null?void 0:t.code)??(t==null?void 0:t.errorCode);return n||(((i=e.response)==null?void 0:i.status)===409?"number_unavailable":((d=e.response)==null?void 0:d.status)===422?"no_agent":"unknown")},b4=async(e,t)=>{const n=await e1();if(n!=null&&n.alinaPhone){console.info(`[Alina] Office already has ${n.alinaPhone}. Would have provisioned ${t}.`);return}await K0(e,{phoneNumber:t})},S4=({answers:e,officeId:t,onAnswersChange:n,onBusyChange:a,onSuccess:i})=>{const d=o.useRef(!1),[s,c]=o.useState("loading"),[u,l]=o.useState(null),[p,$]=o.useState(null),[y,h]=o.useState(0),f=o.useCallback(async()=>{c("loading"),l(null),$(null),h(0),a(!0);try{if(t===void 0||e.alinaNumber===null)throw new Error("Office and phone number details are required.");const C=await c1({path:e.nppPath,selectedPortalId:e.selectedNPP,linkedPortalId:e.linkedNPPId,config:e.nppConfig});C!==e.linkedNPPId&&n(v=>({...v,linkedNPPId:C})),await t1(v4(e,C)),await b4(t,e.alinaNumber.id),c("success"),i()}catch(C){const v=C;l(x4(v)),$(sn(v,"Setup could not be completed.")),c("error")}finally{a(!1)}},[e,t,n,a,i]);o.useEffect(()=>{d.current||(d.current=!0,f())},[f]),o.useEffect(()=>{if(s!=="loading")return;const C=window.setInterval(()=>{h(v=>Math.min(v+1,a0.length-1))},2500);return()=>{window.clearInterval(C)}},[s]);const m=o.useCallback(()=>{f()},[f]);return{status:s,errorCode:u,errorMessage:p,progressMessage:a0[y],retry:m}},A4=(e,t)=>e==="no_agent"?"Setup is still finishing. Please wait a moment and retry.":e==="number_unavailable"?"That number is no longer available. Choose another number to continue.":t??"Setup could not be completed. Please retry.",P4=({answers:e,officeId:t,onAnswersChange:n,onBusyChange:a,onSuccess:i,onChooseAnotherNumber:d})=>{var h;const s=j(),{status:c,errorCode:u,errorMessage:l,progressMessage:p,retry:$}=S4({answers:e,officeId:t,onAnswersChange:n,onBusyChange:a,onSuccess:i}),y=o.useCallback(()=>{$()},[$]);if(c==="error"){const f=u==="number_unavailable";return r.jsxs(g,{sx:{maxWidth:430,marginX:"auto",paddingY:5},children:[r.jsx(de,{open:!0,variant:"error",title:A4(u,l)}),r.jsxs(g,{sx:{display:"flex",justifyContent:"center",gap:1,marginTop:2},children:[f?r.jsx(Q,{color:"border",size:"medium",onClick:d,children:"Choose another number"}):null,r.jsx(Q,{color:"primary",size:"medium",onClick:y,children:"Retry"})]})]})}return r.jsxs(g,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:s.spacing(6,3),textAlign:"center",gap:2.75},children:[r.jsx(gt,{size:48,thickness:3.5}),r.jsxs(g,{children:[r.jsx(x,{sx:{fontSize:20,fontWeight:700,marginBottom:1},children:"Getting Alina ready!"}),r.jsx(x,{sx:{fontSize:13,color:(h=s.palette.gray)==null?void 0:h[500],marginBottom:1.75},children:"This takes about 10–15 seconds — hang tight."}),r.jsx(x,{sx:{fontSize:13,fontWeight:500,color:s.palette.primary.main},children:p})]})]})},_4=({answers:e,onAnswersChange:t})=>{const n=it(l=>l.login.office),{voices:a,loading:i}=a1(n==null?void 0:n.id),{voiceOptions:d,getVoiceById:s}=r1(a),c=o.useMemo(()=>e.voice===null?null:s(e.voice)??null,[e.voice,s]),u=o.useCallback(l=>{t(p=>({...p,voice:l.voiceId}))},[t]);return r.jsxs(r.Fragment,{children:[r.jsx(Ve,{children:"What should Alina's voice sound like?"}),r.jsx(Ct,{children:"Click play to preview each voice, then select your favorite."}),r.jsxs(g,{sx:{position:"relative",minHeight:i?180:0},children:[r.jsx(nt,{loading:i,vh:20,width:"100%"}),i?null:r.jsx(Q0,{selected:c,options:d,onSelect:u,className:"sked-test-AIReceptionist-SetupAlinaWizard-Voice"})]})]})},N4=["provisioning","goLive"],w4=({open:e,officeId:t,officePhone:n,wizard:a,onExitConfirmed:i,onComplete:d})=>{var H,q,L,E,te,se;const s=j(),[c,u]=o.useState(!1),[l,p]=o.useState(!1),{session:$,canContinue:y,setAnswers:h,goNext:f,goBack:m,goTo:C,reset:v}
5=a,S=V3($.current,$.answers),A=S?S.cur/S.total*100:0,_=$.history.length>0&&!N4.includes($.current),U=$.current==="provisioning",O=o.useMemo(()=>$.current==="goLive"?"Go to Training":"Continue",[$.current]),M=o.useCallback(()=>{if(!l){if($.current==="goLive"){i();return}u(!0)}},[l,i,$.current]),w=o.useCallback(()=>{u(!1)},[]),k=o.useCallback(()=>{u(!1),v(),i()},[i,v]),B=o.useCallback(()=>{if($.current==="goLive"){d();return}f()},[f,d,$.current]),F=o.useCallback(()=>{C("numberPick")},[C]),T=o.useCallback(()=>{$.current==="goLive"&&v()},[v,$.current]),I=o.useMemo(()=>({answers:$.answers,onAnswersChange:h}),[$.answers,h]),J=()=>{switch($.current){case"callHandling":return r.jsx(n4,{...I});case"handoff":return r.jsx(a4,{...I,officePhone:n});case"numberPick":return r.jsx(i4,{...I,officeId:t});case"portalChoice":return r.jsx(c4,{...I});case"portalSettings":return r.jsx(C4,{...I});case"portalCreated":return r.jsx(g4,{...I,onBusyChange:p});case"voice":return r.jsx(_4,{...I});case"language":return r.jsx(l4,{...I});case"provisioning":return r.jsx(P4,{...I,officeId:t,onBusyChange:p,onSuccess:f,onChooseAnotherNumber:F});case"goLive":return r.jsx(s4,{answers:$.answers});default:return null}};return r.jsxs(r.Fragment,{children:[r.jsxs(pl,{open:e,onClose:M,maxWidth:!1,className:"sked-test-AIReceptionist-SetupAlinaWizard",TransitionProps:{onExited:T},PaperProps:{sx:{width:"100%",maxWidth:700,maxHeight:"92vh",borderRadius:1.5,display:"flex",flexDirection:"column",overflow:"hidden"}},children:[r.jsxs(g,{sx:{display:"flex",alignItems:"center",gap:1.25,padding:s.spacing(2,2.75),borderBottom:`1px solid ${(H=s.palette.gray)==null?void 0:H[200]}`,flexShrink:0},children:[r.jsx(x,{sx:{flex:1,fontWeight:600,fontSize:15,color:(q=s.palette.gray)==null?void 0:q[900]},children:"AI Scheduling Assistant Setup"}),S?r.jsx(x,{sx:{fontSize:12,fontWeight:500,color:(L=s.palette.gray)==null?void 0:L[400],whiteSpace:"nowrap"},className:"sked-test-AIReceptionist-SetupAlinaWizard-StepIndicator",children:`Step ${S.cur} of ${S.total}`}):null,r.jsx(ge,{"aria-label":"Close",onClick:M,disabled:l,size:"small",className:"sked-test-AIReceptionist-SetupAlinaWizard-Close",children:r.jsx(N1,{})})]}),r.jsx(V1,{variant:"determinate",value:A,sx:{height:3,flexShrink:0,backgroundColor:(E=s.palette.gray)==null?void 0:E[200],"& .MuiLinearProgress-bar":{backgroundColor:s.palette.primary.main}}}),r.jsx(Y3,{className:"sked-test-AIReceptionist-SetupAlinaWizard-Body",children:J()}),r.jsxs(g,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:s.spacing(1.75,2.75),borderTop:`1px solid ${(te=s.palette.gray)==null?void 0:te[200]}`,flexShrink:0},children:[r.jsx(Q,{color:"border",size:"medium",onClick:m,disabled:!_,sx:{visibility:_?"visible":"hidden"},className:"sked-test-AIReceptionist-SetupAlinaWizard-Back",children:"Back"}),U?r.jsx(g,{}):r.jsx(Q,{color:"primary",size:"medium",onClick:B,disabled:l||!y,className:"sked-test-AIReceptionist-SetupAlinaWizard-Continue",children:O})]})]}),r.jsx(pl,{open:c,onClose:w,maxWidth:"xs",fullWidth:!0,className:"sked-test-AIReceptionist-SetupAlinaWizard-ExitConfirm",children:r.jsxs(g,{sx:{padding:3.5,textAlign:"center"},children:[r.jsx(x,{sx:{fontWeight:600,fontSize:17,marginBottom:1.25},children:"Exit Setup?"}),r.jsx(x,{sx:{fontSize:13,color:(se=s.palette.gray)==null?void 0:se[600],lineHeight:1.6,marginBottom:2.75},children:"Leaving now will reset your setup. You will need to start over when you return."}),r.jsxs(g,{sx:{display:"flex",gap:1.25,justifyContent:"center"},children:[r.jsx(Q,{color:"border",size:"medium",onClick:w,children:"Continue"}),r.jsx(Q,{color:"error",size:"medium",onClick:k,className:"sked-test-AIReceptionist-SetupAlinaWizard-ExitConfirmButton",children:"Exit Setup"})]})]})})]})},i0=()=>({answers:X3(),current:"callHandling",history:[]}),j4=e=>{const[t,n]=o.useState(i0),a=o.useRef(t);a.current=t;const i=o.useCallback(p=>{n($=>{const y=p($.answers),h=It(y);let f=$.current;return h.includes(f)||(f=h[0]??"callHandling"),{...$,answers:y,current:f,history:$.history.filter(m=>h.includes(m))}})},[]),d=o.useCallback(()=>{const p=a.current;if(!t0(p.current,p.answers,e))return;const $=It(p.answers),y=$.indexOf(p.current);y===-1||y>=$.length-1||n({...p,history:[...p.history,p.current],current:$[y+1]})},[e]),s=o.useCallback(()=>{n(p=>{if(p.history.length===0)return p;const $=[...p.history],y=$.pop();return y===void 0?p:{...p,history:$,current:y}})},[]),c=o.useCallback(()=>{n(i0())},[]),u=o.useCallback(p=>{n($=>
5{const y=It($.answers),h=y.indexOf(p);return h===-1?$:{...$,current:p,history:y.slice(0,h)}})},[]),l=o.useMemo(()=>t0(t.current,t.answers,e),[e,t.answers,t.current]);return{session:t,canContinue:l,setAnswers:i,goNext:d,goBack:s,goTo:u,reset:c}},k4="sked-alina-setup-complete:",o0="sked-alina-setup-reopen",u1=e=>`${k4}${e}`,d0=e=>e===void 0?!1:localStorage.getItem(u1(e))==="true",I4=e=>{e!==void 0&&localStorage.setItem(u1(e),"true")},z4=()=>{const e=sessionStorage.getItem(o0)==="true";return e&&sessionStorage.removeItem(o0),e},T4=({color:e,className:t})=>r.jsx("svg",{className:t,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M8.67972 6.88962C8.67972 6.97415 8.67972 7.03685 8.67972 7.09957C8.67972 9.76823 8.67973 12.4369 8.67965 15.1055C8.67963 15.5167 8.52408 15.6736 8.11616 15.6738C7.60399 15.674 7.0918 15.6746 6.57964 15.6735C6.21035 15.6727 6.04733 15.5069 6.04732 15.1349C6.04723 12.4516 6.04728 9.76833 6.04728 7.08503V6.88962C5.98685 6.88962 5.93559 6.88962 5.88432 6.88962C5.52824 6.88962 5.17215 6.88976 4.81608 6.88951C4.61438 6.88937 4.43916 6.83669 4.34019 6.64086C4.24058 6.44377 4.30762 6.27685 4.42983 6.11413C5.28455 4.9762 6.13622 3.836 6.99119 2.69826C7.19013 2.43353 7.53914 2.43404 7.73826 2.69903C8.59908 3.84457 9.45824 4.99134 10.316 6.13922C10.4988 6.38399 10.4804 6.64492 10.2549 6.7928C10.1601 6.85499 10.0279 6.8815 9.9114 6.88537C9.56057 6.89703 9.20913 6.88962 8.85792 6.88962C8.80505 6.88962 8.75219 6.88962 8.67972 6.88962ZM10.0452 13.1029C9.85352 13.1021 9.70298 13.1722 9.6114 13.3451C9.5181 13.5213 9.55795 13.6859 9.67098 13.8368C10.5332 14.9876 11.3949 16.1388 12.2608 17.287C12.4754 17.5716 12.7929 17.5709 13.008 17.2857C13.8737 16.1375 14.7355 14.9864 15.5977 13.8355C15.7108 13.6846 15.7494 13.5195 15.6556 13.3437C15.5634 13.1711 15.4125 13.1018 15.2209 13.1028C14.8502 13.1048 14.4794 13.1034 14.1086 13.1034C14.0574 13.1034 14.0062 13.1034 13.9492 13.1034V12.8907C13.9492 10.2118 13.9493 7.53295 13.949 4.85407C13.949 4.48229 13.7855 4.31932 13.415 4.31922C12.893 4.31908 12.371 4.31908 11.849 4.31926C11.4779 4.31938 11.3168 4.48124 11.3168 4.85437C11.3167 7.53813 11.3168 10.2219 11.3168 12.9056C11.3168 12.9639 11.3168 13.0222 11.3168 13.1034C10.8821 13.1034 10.4636 13.1046 10.0452 13.1029Z",fill:e||"#4F4F55"})}),E4=({color:e,className:t})=>r.jsx("svg",{className:t,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M14.085 10.0694C16.2472 10.0694 18 11.8222 18 13.9844C18 16.1467 16.2472 17.8995 14.085 17.8995C11.9227 17.8995 10.1699 16.1467 10.1699 13.9844C10.1699 11.8222 11.9227 10.0694 14.085 10.0694ZM8.08984 10.504C8.52474 10.504 8.95974 10.9392 8.95996 11.3741V16.5948C8.95975 17.0297 8.52474 17.4649 8.08984 17.4649H2.87012C2.43522 17.4649 2.00021 17.0297 2 16.5948V11.3741C2.00022 10.9392 2.43522 10.504 2.87012 10.504H8.08984ZM9.25684 2.49225C9.60485 1.97029 10.3873 1.97029 10.7354 2.49225L13.9551 7.79889C14.39 8.32086 13.9547 9.10443 13.2588 9.10455H6.82031C6.12444 9.1044 5.68914 8.40783 6.03711 7.79889L9.25684 2.49225Z",fill:e||"#4F4F55"})}),s0=e=>!!e,l0=960,U4=({activeTab:e,onTabChange:t,zeroState:n,onSetupAlinaClick:a,searchQuery:i,onSearchChange:d,sortOption:s,typeFilter:c,onSortClick:u,onTypeFilterClick:l,onAddClick:p,onSortOptionChange:$,onTypeFilterChange:y,onAddItemTypeSelect:h,hasUnsavedChanges:f,configLoading:m,saving:C,onSave:v,sortAnchorEl:S,typeFilterAnchorEl:A,addMenuAnchor:_,onSortAnchorClose:U,onTypeFilterAnchorClose:O,onAddMenuAnchorClose:M,isAlinaEnabled:w,alinaToggleDisabled:k=!1,onAlinaToggle:B,officePhoneRoutingDev:F,onOfficePhoneRoutingDevChange:T})=>{const[I,J]=o.useState(1200),H=I<l0,q=o.useCallback(()=>{$("date-added-newest"),U()},[$,U]),L=o.useCallback(()=>{y("all"),O()},[y,O]),E=o.useCallback(P=>{h(P),M()},[h,M]),te=o.useCallback(P=>{$(P),U()},[$,U]),se=o.useCallback(P=>{y(P),O()},[y,O]),W=o.useMemo(()=>[...lc],[]);o.useCallback(P=>{T==null||T(P.target.value)},[T]);const ye=C3,G=n?[]:[r.jsx(J1,{tabs:W,value:e,setTab:t,className:"sked-test-AIReceptionist-Header-Tab"},"tabs"),ye,e==="knowledge"&&r.jsx(Pe,{title:"Sort",Icon:T4,onClick:u,active:s!=="date-added-newest",type:"sort",marginLeft:8,style:{height:27},className:"sked-test-AIReceptionist-Header-Button-Sort"},"sort"),e==="knowledge"&&r.jsx(Pe,{title:"Type",Icon:E4,onClick:l,active:c!=="all",type:"filter",marginLeft:8,style:{height:27},className:"sked-test-AIReceptionist-Header-Button-TypeFilter"},"type")].filter(s0),ne=a?r.jsx(Pe,{title:"Set Up Alina",onClick:a,color:"primary",marginRight:5,className:"sked-test-AIReceptionist-Header-Button-SetupAlina"},"setup-alina"):null,D=n?ne?[ne]:[]:[...ne?[ne]:[],e==="knowledge"&&r.jsx(Ze,{marginRight:"5px",className:"sked-test-AIReceptionist-Header-SearchInput-Search",children:r.jsx(Z1,{value:i,onChange:d,placeholder:"Search...",timeOut:0,justIcon:H,overlayExpand:!0})},"search"),e==="knowledge"&&r.jsx(Pe,{title:"Add",Icon:q1,onClick:p,marginRight:5,style:{height:27},className:"sked-test-AIReceptionist-Header-Button-Add"},"add"),e==="general"&&r.jsx(Pe,{borderSolid:!0,active:w,type:"hide",marginRight:5,style:{height:27},sx:{width:"fit-content",paddingLeft:"6px",paddingRight:"10px","& .MuiFormControl
5Label-root":{margin:0,paddingLeft:0},"& .MuiCheckbox-root":{padding:"2px",marginRight:"4px"}},children:r.jsx(st,{arrow:!0,title:"Enable or disable the AI Scheduling Assistant for this location.",children:r.jsx("span",{style:{display:"inline-flex",alignItems:"center"},children:r.jsx(X1,{checked:w,disabled:k,onChange:B,label:"Enabled"})})})},"alina-toggle"),e==="general"&&r.jsxs(pe,{display:"flex",alignItems:"center",marginRight:1,sx:{"& .sked-test-AIReceptionist-Header-Button-Save":{height:27}},children:[C&&r.jsx(gt,{size:18,style:{marginRight:"8px"}}),r.jsx(Q1,{title:C?"Saving":"Save",onClick:v,disabled:!f||m||C,className:"sked-test-AIReceptionist-Header-Button-Save"})]},"save-container")].filter(s0);return r.jsxs(r.Fragment,{children:[r.jsx(Y1,{title:"AI Scheduling Assistant",pageId:"ai-receptionist",leftIcons:G,rightIcons:D,getWidth:J,smallTabsWidth:l0}),r.jsx(Kt,{open:!!_,anchorEl:_,onClose:M,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},className:"sked-test-AIReceptionist-Header-DropdownMenu-Add",children:r.jsx(Ze,{minWidth:200,padding:1,children:cc.map(P=>r.jsxs(Vt,{style:{margin:"0"},onClick:()=>E(P.value),className:`sked-test-AIReceptionist-Header-DropdownMenu-Add-ListItem-${P.label||P.value}`,children:[r.jsx(w1,{children:j1.createElement(P.icon,{width:14,height:14,style:{fontSize:14}})}),P.label]},P.value))})}),r.jsx(Kt,{open:!!S,anchorEl:S,onClose:U,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},className:"sked-test-AIReceptionist-Header-DropdownMenu-Sort",children:r.jsxs(Ze,{minWidth:280,children:[r.jsx(Cl,{title:"Sort By",reset:q,resetDisabled:s==="date-added-newest",helpText:"Choose how to sort the knowledge items"}),r.jsx(Ze,{padding:1,paddingBottom:1,children:uc.map((P,re)=>r.jsxs(Vt,{onClick:()=>te(P.value),selected:s===P.value,className:`sked-test-AIReceptionist-Header-DropdownMenu-Sort-ListItem-${re+1}`,children:[r.jsx(vl,{checked:s===P.value,className:`sked-test-AIReceptionist-Header-DropdownMenu-Sort-RadioButton-${re+1}`}),r.jsx($l,{primary:P.label})]},P.value))})]})}),r.jsx(Kt,{open:!!A,anchorEl:A,onClose:O,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},className:"sked-test-AIReceptionist-Header-DropdownMenu-TypeFilter",children:r.jsxs(Ze,{minWidth:280,children:[r.jsx(Cl,{title:"Types Filter",reset:L,resetDisabled:c==="all",helpText:"Filter by knowledge item type"}),r.jsx(Ze,{padding:1,paddingBottom:1,children:[{value:"info",label:"Information"},{value:"question",label:"Questions"}].map((P,re)=>r.jsxs(Vt,{onClick:()=>se(P.value),selected:c===P.value,className:`sked-test-AIReceptionist-Header-DropdownMenu-TypeFilter-ListItem-${re+1}`,children:[r.jsx(vl,{checked:c===P.value,className:`sked-test-AIReceptionist-Header-DropdownMenu-TypeFilter-RadioButton-${re+1}`}),r.jsx($l,{primary:P.label})]},P.value))})]})})]})},p1=z("div")({padding:30,paddingTop:20,minHeight:100});z(p1)({display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",flex:1,boxSizing:"border-box"});z("div")({display:"flex",flexDirection:"column",alignItems:"center",width:"100%",padding:"20px 0",gap:20});z("div")({display:"flex",flexDirection:"column",alignItems:"center",width:"100%",maxWidth:720,gap:20});z("div")({display:"flex",gap:10,width:"100%",flexWrap:"wrap",justifyContent:"center"});z("div")({display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",gap:8,flex:"1 1 180px",minWidth:160});z("img")(({theme:e})=>({display:"block",width:"100%",height:"auto",borderRadius:8,border:`1px solid ${e.palette.gray[200]}`,boxSizing:"border-box"}));const h8=()=>{if(!it(N=>{const Y=N.login.features;return Y&&k1("AIChat",Y)}))return r.jsx(z1,{title:"AI Scheduling Assistant",children:r.jsx("p",{children:"This feature is not available."})});const t=it(N=>N.login.office),[n,a]=o.useState(X.general),[i,d]=o.useState("unifiedNumber"),s=T3({activeTab:n,officePhoneRoutingDev:void 0}),{items:c,loading:u,createItem:l,updateItem:p,deleteItem:$,deleteItems:y,refetch:h}
5=K3(),{searchQuery:f,setSearchQuery:m,sortOption:C,setSortOption:v,typeFilter:S,setTypeFilter:A,paginatedItems:_,pagination:U}=G3(c),O=it(N=>N.login.office.timezone),M=oc({enabled:n===X.conversations}),[w,k]=o.useState([]),[B,F]=o.useState(!1),[T,I]=o.useState(null),[J,H]=o.useState(!1),[q,L]=o.useState(null),[E,te]=o.useState(null),[se,W]=o.useState(null),[ye,G]=o.useState(null),[ne,D]=o.useState(!1),P=j4(t==null?void 0:t.phone),[re,fe]=o.useState(()=>d0(t==null?void 0:t.id));o.useEffect(()=>{fe(d0(t==null?void 0:t.id))},[t==null?void 0:t.id]),o.useEffect(()=>{z4()&&D(!0)},[]);const _e=o.useCallback(()=>{D(!0)},[]),le=o.useCallback(()=>{I4(t==null?void 0:t.id),fe(!0)},[t==null?void 0:t.id]),ae=o.useCallback(()=>{P.session.current==="goLive"&&le(),D(!1)},[le,P.session.current]),Ce=o.useCallback(()=>{le(),D(!1),a(X.knowledge)},[le]),Ne=!!s.phone.alinaPhone,we=re||Ne?void 0:_e;o.useEffect(()=>{n===X.knowledge&&h()},[n,h]);const je=o.useCallback(N=>{L(N.currentTarget)},[]),ke=o.useCallback(N=>{te(N.currentTarget)},[]),ie=o.useCallback(N=>{W(N.currentTarget)},[]),Ie=o.useCallback(()=>{L(null)},[]),ze=o.useCallback(()=>{te(null)},[]),Te=o.useCallback(()=>{W(null)},[]),Ee=o.useCallback(N=>{G(N),H(!0)},[]),Ue=N=>{I(N),F(!0)},Oe=async N=>{hl("Delete Knowledge Item","Are you sure you want to delete this knowledge item? This action cannot be undone.",async()=>{try{await $(N.id),await h()}catch{}},"danger","Delete")},Me=N=>{k(N)},Le=async N=>{hl("Delete Knowledge Items",`Are you sure you want to delete ${N.length} knowledge item(s)? This action cannot be undone.`,async()=>{try{await y(N),k([]),await h()}catch{}},"danger","Delete")},Fe=async N=>{try{await p(N),F(!1),I(null),await h()}catch{}},Re=async N=>{try{await l(N),H(!1),await h()}catch{}},De=async N=>{try{for(const Y of N)await l(Y);await h()}catch{}},Be=o.useCallback(()=>{F(!1),I(null)},[]),He=o.useCallback(()=>{H(!1),G(null)},[]),We=o.useMemo(()=>{if(n===X.knowledge||n===X.conversations)return{padding:0};if(n===X.general)return{overflowY:"scroll"}},[n]),Ge={...{},activeTab:n,onTabChange:a,searchQuery:f,onSearchChange:m,sortOption:C,typeFilter:S,onSortClick:je,onTypeFilterClick:ke,onAddClick:ie,onSortOptionChange:v,onTypeFilterChange:A,onAddItemTypeSelect:Ee,hasUnsavedChanges:s.actions.hasUnsavedChanges,configLoading:s.actions.configLoading,saving:s.actions.saving,onSave:s.actions.onSave,sortAnchorEl:q,typeFilterAnchorEl:E,addMenuAnchor:se,onSortAnchorClose:Ie,onTypeFilterAnchorClose:ze,onAddMenuAnchorClose:Te,isAlinaEnabled:s.actions.isAlinaEnabled,alinaToggleDisabled:s.actions.alinaToggleDisabled,onAlinaToggle:s.actions.onAlinaToggle};return r.jsxs(r.Fragment,{children:[r.jsx(I1,{}),r.jsxs(r.Fragment,{children:[r.jsx(U4,{...Ge,onSetupAlinaClick:we}),r.jsxs(p1,{style:We,children:[n===X.general&&r.jsx(u0,{style:{padding:"20px"},children:r.jsx(m3,{loading:s.loading,phone:s.phone,portals:s.portals,voice:s.voice,languages:s.languages})}),n===X.knowledge&&r.jsx(R3,{items:_,loading:u,selectedIds:w,paginationData:{...U,className:"sked-test-AIReceptionist-KnowledgeTable-Pagination"},hasSourceItems:c.length>0,onEdit:Ue,onDelete:Oe,onBulkSelect:Me,onBulkDelete:Le,onCreateMultiple:De}),n===X.conversations&&r.jsx(ac,{conversations:M,timezone:O})]})]}),r.jsx(xl,{open:B,onClose:Be,mode:"edit",item:T,onSave:Fe}),r.jsx(xl,{open:J,onClose:He,mode:"create",onSave:Re,initialType:ye||"info"}),r.jsx(w4,{open:ne,officeId:t==null?void 0:t.id,officePhone:(t==null?void 0:t.phone)??null,wizard:P,onExitConfirmed:ae,onComplete:Ce})]})};export{h8 as default};

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