var ci=Object.defineProperty;var gi=(e,t,n)=>t in e?ci(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var bt=(e,t,n)=>(gi(e,typeof t!="symbol"?t+"":t,n),n);import{o as c,b as g,i as _,d as be,j as k,K as v,N as mt,F as me,O as We,P as h,v as H,Q as Ae,k as oe,R as Re,s as J,q as le,m as Ma,f as j,S as dt,T as Sa,U as tt,c as Ce,V as hi,W as Bn,X as nn,Y as _i,B as ke,n as Ee,C as ht,Z as lt,l as Pe,r as an,_ as _t,$ as Ea,a0 as Aa,a1 as fi,a2 as Ta,a3 as Ue,a4 as mi,t as pi}from"./vue-chunks.9a4915e5.js";import{a as Da,d as $i,s as vi,c as yi}from"./library-chunks-1.ba23b3b2.js";import{c as Ia,p as Ci}from"./vue-3-linkify.8f393b2a.js";import{l as bi}from"./socket-io.bbbf255d.js";import{p as wi}from"./floating-vue.9132a23d.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="7fba6a8c-324d-4981-b6e5-83647391e496",e._sentryDebugIdIdentifier="sentry-dbid-7fba6a8c-324d-4981-b6e5-83647391e496")}catch{}})();(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))a(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const r of s.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&a(r)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerpolicy&&(s.referrerPolicy=i.referrerpolicy),i.crossorigin==="use-credentials"?s.credentials="include":i.crossorigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function a(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();function Li(e){return typeof e=="object"&&e!==null}function Hn(e,t){return e=Li(e)?e:Object.create(null),new Proxy(e,{get(n,a,i){return a==="key"?Reflect.get(n,a,i):Reflect.get(n,a,i)||Reflect.get(t,a,i)}})}function ki(e,t){return t.reduce((n,a)=>n==null?void 0:n[a],e)}function xi(e,t,n){return t.slice(0,-1).reduce((a,i)=>/^(__proto__)$/.test(i)?{}:a[i]=a[i]||{},e)[t[t.length-1]]=n,e}function Mi(e,t){return t.reduce((n,a)=>{const i=a.split(".");return xi(n,i,ki(e,i))},{})}function Un(e,{storage:t,serializer:n,key:a,debug:i}){try{const s=t==null?void 0:t.getItem(a);s&&e.$patch(n==null?void 0:n.deserialize(s))}catch(s){i&&console.error(s)}}function jn(e,{storage:t,serializer:n,key:a,paths:i,debug:s}){try{const r=Array.isArray(i)?Mi(e,i):e;t.setItem(a,n.serialize(r))}catch(r){s&&console.error(r)}}function Si(e={}){return t=>{const{auto:n=!1}=e,{options:{persist:a=n},store:i}=t;if(!a)return;const s=(Array.isArray(a)?a.map(r=>Hn(r,e)):[Hn(a,e)]).map(({storage:r=localStorage,beforeRestore:o=null,afterRestore:l=null,serializer:d={serialize:JSON.stringify,deserialize:JSON.parse},key:p=i.$id,paths:w=null,debug:R=!1})=>{var y;return{storage:r,beforeRestore:o,afterRestore:l,serializer:d,key:((y=e.key)!=null?y:C=>C)(p),paths:w,debug:R}});i.$persist=()=>{s.forEach(r=>{jn(i.$state,r)})},i.$hydrate=({runHooks:r=!0}={})=>{s.forEach(o=>{const{beforeRestore:l,afterRestore:d}=o;r&&(l==null||l(t)),Un(i,o),r&&(d==null||d(t))})},s.forEach(r=>{const{beforeRestore:o,afterRestore:l}=r;o==null||o(t),Un(i,r),l==null||l(t),i.$subscribe((d,p)=>{jn(p,r)},{detached:!0})})}}var Ei=Si();const Le=Da.create({baseURL:"https://prod-api.chatway.app/api/",headers:{"Content-Type":"application/json"}});Le.interceptors.request.use(function(e){return e},function(e){return Promise.reject(e)});Le.interceptors.response.use(function(e){return e.data},function(e){return Promise.reject(e)});class ft{constructor(){bt(this,"browser");bt(this,"version");bt(this,"OS");bt(this,"versionSearchString");this.browser=this.searchString(this.dataBrowser()),this.version=this.searchVersion(navigator.userAgent)||this.searchVersion(navigator.appVersion),this.OS=this.searchString(this.dataOS())}searchString(t){for(let n=0;n=I?P:""+Array(I+1-B.length).join(A)+P},X={s:D,z:function(P){var I=-P.utcOffset(),A=Math.abs(I),B=Math.floor(A/60),O=A%60;return(I<=0?"+":"-")+D(B,2,"0")+":"+D(O,2,"0")},m:function P(I,A){if(I.date()1)return P(U[0])}else{var q=I.name;ae[q]=I,O=q}return!B&&O&&(N=O),O||!B&&N},Y=function(P,I){if(V(P))return P.clone();var A=typeof I=="object"?I:{};return A.date=P,A.args=arguments,new se(A)},z=X;z.l=F,z.i=V,z.w=function(P,I){return Y(P,{locale:I.$L,utc:I.$u,x:I.$x,$offset:I.$offset})};var se=function(){function P(A){this.$L=F(A.locale,null,!0),this.parse(A),this.$x=this.$x||A.x||{},this[re]=!0}var I=P.prototype;return I.parse=function(A){this.$d=function(B){var O=B.date,Z=B.utc;if(O===null)return new Date(NaN);if(z.u(O))return new Date;if(O instanceof Date)return new Date(O);if(typeof O=="string"&&!/Z$/i.test(O)){var U=O.match(u);if(U){var q=U[2]-1||0,b=(U[7]||"0").substring(0,3);return Z?new Date(Date.UTC(U[1],q,U[3]||1,U[4]||0,U[5]||0,U[6]||0,b)):new Date(U[1],q,U[3]||1,U[4]||0,U[5]||0,U[6]||0,b)}}return new Date(O)}(A),this.init()},I.init=function(){var A=this.$d;this.$y=A.getFullYear(),this.$M=A.getMonth(),this.$D=A.getDate(),this.$W=A.getDay(),this.$H=A.getHours(),this.$m=A.getMinutes(),this.$s=A.getSeconds(),this.$ms=A.getMilliseconds()},I.$utils=function(){return z},I.isValid=function(){return this.$d.toString()!==T},I.isSame=function(A,B){var O=Y(A);return this.startOf(B)<=O&&O<=this.endOf(B)},I.isAfter=function(A,B){return Y(A)n.data.attributes.urls)}getLinkPreviewData(t){return Le.get("chatcontact/url/preview",t)}getLocation(){return Da.get("https://prod-api.chatway.app/ip-info")}updateVisitorStatus(t){return Le.patch(`chat-contacts/update/${t}`,{is_active:!0})}updatePageVisited(t){const n=new FormData;return n.append("page_visited[0][page]",t),n.append("page_visited[0][date]",`${et(new Date).format("YYYY-MM-DD")}`),Le.post("conversations/page-visited",n)}translateMessage(t,n="en"){const a=new FormData;return a.append("type","message"),a.append("message_ids[0]",t),a.append("target_language",n),Le.post("chatcontact/translate",a)}getChatData(t){const n=new FormData;return n.append("res_chtwy_cht",t.res_chtwy_cht),Le.post("pixel/chat/resume",n)}getTokenByConversationId(t,n){return Le.post(`/conversations/${t}/contact-access-token?widget_id=${n}`)}markAsVerified(t,n){return Le.post(`/chat-contacts/${t}/mark-as-verified-regular/`,n)}getLoggedInVisitorData(t,n,a){return a?Le.post("/pixel/wp/verify-logged-in-visitor",{widgetId:t,...a}):Le.post("pixel/verify-logged-in-visitor",{widgetId:t,...n})}downloadFile(t){return Le.post("/chatcontact/download/files",{conversation_message_id:t})}}var Zn;(function(e){e.fatal="fatal",e.error="error",e.warning="warning",e.log="log",e.info="info",e.debug="debug",e.critical="critical"})(Zn||(Zn={}));const Ai=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack||[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Ti=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,Di=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Ft="?",Ii="X-Sentry-Auth",Oi=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Fi(e){if(!e.stack)return null;const t=[],n=e.stack.split(` `);let a,i;for(let s=0;s!!n)[0]}function Pi(e){try{const t=Fi(e);if(t)return t}catch{}return{value:Fa(e),type:e&&e.name,stacktrace:{frames:[]}}}function Ni(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,e=>{const t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)})}class Vi{constructor(t){if(t&&t.dsn){const n=Oi.exec(t.dsn),a=n?n.slice(1):[],i=a[5].split("/"),s=i.slice(0,-1).join("/");this.apiUrl=a[0]+"://"+a[3]+(a[4]?":"+a[4]:"")+(s?"/"+s:"")+"/api/"+i.pop()+"/store/",this.authHeader="Sentry sentry_version=7,sentry_key="+a[1]+(a[2]?",sentry_secret="+a[2]:"")}this.environment=t&&t.environment}prepare(t){return{...this.getRequestBlank(),exception:{values:[Pi(t)]}}}report(t){this.send(this.prepare(t))}send(t){!this.apiUrl||!t||this.createRequest(t)}createRequest(t){const n=new XMLHttpRequest;n.open("POST",this.apiUrl,!0),n.setRequestHeader("Content-type","application/json"),n.setRequestHeader(Ii,this.authHeader||""),n.send(JSON.stringify(t))}getRequestBlank(){return{platform:"javascript",event_id:Ni(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}}function Gn(e,t){return Object.prototype.toString.call(t)==="[object RegExp]"?t.test(e):typeof t=="string"?e.indexOf(t)!==-1:!1}function Ri(){return window}class yn extends Vi{constructor(t,n=Ri()){super(t),this.options=t,this.window=n,this.destroyed=!1,this._state={};const{plugins:a=[],beforeSend:i=d=>d,beforeBreadcrumb:s=d=>d,blacklistUrls:r=[],ignoreErrors:o=[],release:l=void 0}=this.options||{};this.plugins=a.map(d=>new d(this)),this.beforeSend=i,this.beforeBreadcrumb=s,this.blacklistUrls=r,this.ignoreErrors=o,this.release=l}get state(){return this._state}clearState(){this._state={}}setTags(t){return this.setKeyState("tags",{...t}),this}setTag(t,n){return this.extendState({tags:{[t]:n}}),this}setExtra(t,n){return this.extendState({extra:{[t]:n}}),this}setExtras(t){return this.setKeyState("extra",{...t}),this}setUser(t){return this.setKeyState("user",{...t}),this}clone(){const t=new yn({...this.options,plugins:[]});return t.extendState(this.state),t}withScope(t){const n=this.clone();t(n),n.destroy(),this.setBreadcrumbs(void 0)}addBreadcrumb(t){this.extendState({breadcrumbs:[{timestamp:Date.now()/1e3,...this.beforeBreadcrumb(t)}]})}setBreadcrumbs(t){this.setKeyState("breadcrumbs",t)}captureMessage(t,n){this.send({...this.getRequestBlank(),message:t,level:n})}destroy(){this.destroyed=!0,this.plugins.forEach(t=>{t.destroy&&t.destroy()})}isIgnoredError(t){return this.ignoreErrors.length?this.getPossibleEventMessages(t).some(n=>this.ignoreErrors.some(a=>Gn(n,a))):!1}getRequestBlank(){return{request:{url:this.window.location.toString(),headers:{"User-Agent":this.window.navigator.userAgent}},...super.getRequestBlank(),sdk:{name:"micro-sentry.javascript.browser",version:"0.0.0"},...this.state}}send(t){this.destroyed||this.isDeniedUrl(t)||this.isIgnoredError(t)||(super.send(this.beforeSend({release:this.release,...t})),this.setBreadcrumbs(void 0))}getPossibleEventMessages(t){if(t.message)return[t.message];if(t.exception)try{const{type:n="",value:a=""}=t.exception.values&&t.exception.values[0]||{};return[`${a}`,`${n}: ${a}`]}catch{return[]}return[]}isDeniedUrl(t){if(!this.blacklistUrls.length)return!1;const n=this.getEventFilterUrl(t);return n?this.blacklistUrls.some(a=>Gn(n,a)):!1}getEventFilterUrl(t){try{if(t.exception){const n=t.exception.values&&t.exception.values[0].stacktrace&&t.exception.values[0].stacktrace.frames;return n&&n[n.length-1].filename||null}return null}catch{return null}}extendState(t){this._state=Object.keys(t).reduce((n,a)=>{const i=this._state[a],s=Array.isArray(i)?i:null,r=t[a],o=Array.isArray(r)?r:null;return{...n,[a]:s||o?[...s||[],...o||[]]:{...typeof i!="string"?i:{},...typeof r!="string"?r:{}}}},this._state)}setKeyState(t,n){this._state[t]=n}}const Bi=new yn({dsn:"https://749ca4f8780a9a8265c7715bdbd8d62b@o4505458601361408.ingest.sentry.io/4506229401976832",environment:"prodcution",blacklistUrls:["localhost","dev-widget.chatway.app"],ignoreErrors:["Failed to fetch","NetworkError when attempting to fetch resource.","Property description must be an object.","No error message","App container not found","JSON.parse: unexpected","Unexpected token","The string did not match the expected pattern.","Unauthenticated.","Blocked.",'Attempt to read property "id" on null']}),Hi={write_your_message:"Write your message...",team_here:"Our team is here for you",team_online:"Please add your email to get notified when we reply",away:"We are currently away",image_upload_error:"Oops! Couldn\u2019t upload the image, try again or refresh the browser",visit_page:"Visit page",update_email:"Please update your email to get notified when we reply",update_you_at:"Great! We'll update you at",typing:"Typing",typing_at:"is typing",click_set_email:"Click here to set email notifications",invalid_email:"Email is invalid",initiate_chat_with_details:"Initiate chat by sharing details",provide_details_notified:"Provide your details to get notified",form_details_shared:"Great! Thanks for sharing details",update_details:"Please update your details to get notified when we reply",name:"Name",email:"Email",phone_number:"Phone Number",start_chatting:"Start Chatting",submit:"Submit",input_required:"Input required",invalid_input:"Invalid input",input_too_long:"Input is too long",something_went_wrong:"Something went wrong. Try again",upload_your_file_here:"Drag & Drop to upload file",browse_file:"Browse file",or:"Or",you_can_upload_file_up_to_8_mb:"You can upload file up to 8 MB",the_file_must_not_be_greater_than_8_mb:"The file must not be greater than 8 MB",are_you_sure_you_want_to_send_this_file:"Are you sure you want to send this file?",yes:"Yes",cancel:"Cancel",please_select_valid_file_type:"Please select valid file type",message_wasnt_delivere:"Message wasn't delivered",resend_message:"Resend message",sent_on:"Sent on",received_on:"Received on",working_hour_message:"Hi, our agent will connect with you shortly.",none_working_hour_message:"Hi, thank you for messaging. Please write your question, and we will contact you during our working hours.",faq:"Frequently Asked Questions",chat:"Chat",ended_conversation:"This conversation has been ended",start_a_new_chat:"Start a new chat",welcome_back:"Welcome back \u{1F44B}",previous_chats:"Previous Chats",return_to_conversation:"Return to Conversation",online:"Online",faq_short:"FAQ",channels:"Channels",active:"Active",minutes_ago:"{x} minute(s) ago",hours_ago:"{x} hour(s) ago",days_ago:"{x} day(s) ago",months_ago:"{x} month(s) ago",years_ago:"{x} year(s) ago",seconds_ago:"{x} second(s) ago",just_now:"Just now",leave_a_message:"Leave a message",new_conversation_initiated:"New conversation initiated",copied:"Copied",consent:"Consent"},Ui={input_required:"Eingabe erforderlich",invalid_input:"Ung\xFCltige Eingabe",input_too_long:"Eingabe ist zu lang",something_went_wrong:"Etwas ist schiefgelaufen. Versuchen Sie es erneut.",upload_your_file_here:"Lade deine Datei hier hoch",browse_file:"Datei durchsuchen",or:"Oder",you_can_upload_file_up_to_8_mb:"Sie k\xF6nnen eine Datei bis zu 8 MB hochladen.",the_file_must_not_be_greater_than_8_mb:"Die Datei darf nicht gr\xF6\xDFer als 8 MB sein",are_you_sure_you_want_to_send_this_file:"Bist du sicher, dass du das Bild senden m\xF6chtest?",yes:"Ja",cancel:"Abbrechen",please_select_valid_file_type:"Bitte w\xE4hlen Sie einen g\xFCltigen Dateityp aus",message_wasnt_delivere:"Nachricht wurde nicht zugestellt.",resend_message:"Nachricht erneut senden",active:"Aktiv",minutes_ago:"{x} Minute(n) vor",hours_ago:"{x} Stunde(n) vor",days_ago:"{x} Tag(e) vor",months_ago:"{x} Monat(e) vor",years_ago:"{x} Jahr(e) vor",seconds_ago:"{x} Sekunde(n) vor",just_now:"Gerade eben"},ji={input_required:"Entrada requerida",invalid_input:"Entrada inv\xE1lida",input_too_long:"La entrada es demasiado larga",something_went_wrong:"Algo sali\xF3 mal. Int\xE9ntelo de nuevo.",upload_your_file_here:"Sube tu archivo aqu\xED",browse_file:"Explorar archivo",or:"O",you_can_upload_file_up_to_8_mb:"Puede cargar un archivo de hasta 8 MB.",the_file_must_not_be_greater_than_8_mb:"El archivo no debe ser mayor de 8 MB",are_you_sure_you_want_to_send_this_file:"\xBFEst\xE1s seguro/a de que quieres enviar la imagen?",yes:"S\xED",cancel:"Cancelar",please_select_valid_file_type:"Por favor, seleccione un tipo de archivo v\xE1lido",message_wasnt_delivere:"El mensaje no fue entregado.",resend_message:"Reenviar mensaje",active:"Activo",minutes_ago:"Hace {x} minuto(s)",hours_ago:"Hace {x} hora(s)",days_ago:"Hace {x} d\xEDa(s)",months_ago:"Hace {x} mes(es)",years_ago:"Hace {x} a\xF1o(s)",seconds_ago:"Hace {x} segundo(s)",just_now:"Justo ahora"},Zi={input_required:"Saisie requise",invalid_input:"Saisie invalid",input_too_long:"L'entr\xE9e est trop longue",something_went_wrong:"Quelque chose s'est mal pass\xE9. R\xE9essayez.",upload_your_file_here:"T\xE9l\xE9chargez votre fichier ici",browse_file:"Parcourir le fichier",or:"Ou",you_can_upload_file_up_to_8_mb:"Vous pouvez t\xE9l\xE9charger un fichier jusqu'\xE0 8 Mo.",the_file_must_not_be_greater_than_8_mb:"Le fichier ne doit pas d\xE9passer 8 Mo",are_you_sure_you_want_to_send_this_file:"Es-tu s\xFBr(e) de vouloir envoyer l'image?",yes:"Oui",cancel:"Annuler",please_select_valid_file_type:"Veuillez s\xE9lectionner un type de fichier valide",message_wasnt_delivere:"Le message n'a pas \xE9t\xE9 livr\xE9.",resend_message:"Renvoyer le message",active:"Actif",minutes_ago:"Il y a {x} minute(s)",hours_ago:"Il y a {x} heure(s)",days_ago:"Il y a {x} jour(s)",months_ago:"Il y a {x} mois",years_ago:"Il y a {x} an(s)",seconds_ago:"Il y a {x} seconde(s)",just_now:"\xC0 l'instant"},Gi={input_required:"\u5165\u529B\u304C\u5FC5\u8981\u3067\u3059",invalid_input:"\u7121\u52B9\u306A\u5165\u529B",input_too_long:"\u5165\u529B\u304C\u9577\u3059\u304E\u307E\u3059",something_went_wrong:"\u4F55\u304B\u304C\u3046\u307E\u304F\u3044\u304B\u306A\u304B\u3063\u305F\u3002\u3082\u3046\u4E00\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002",upload_your_file_here:"\u3053\u3053\u306B\u30D5\u30A1\u30A4\u30EB\u3092\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u3057\u3066\u304F\u3060\u3055\u3044",browse_file:"\u30D5\u30A1\u30A4\u30EB\u3092\u53C2\u7167\u3059\u308B",or:"\u307E\u305F\u306F",you_can_upload_file_up_to_8_mb:"8MB\u307E\u3067\u306E\u30D5\u30A1\u30A4\u30EB\u3092\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u3067\u304D\u307E\u3059.",the_file_must_not_be_greater_than_8_mb:"\u30D5\u30A1\u30A4\u30EB\u30B5\u30A4\u30BA\u306F8MB\u3092\u8D85\u3048\u3066\u306F\u3044\u3051\u307E\u305B\u3093",are_you_sure_you_want_to_send_this_file:"\u753B\u50CF\u3092\u9001\u4FE1\u3057\u3066\u3082\u3088\u308D\u3057\u3044\u3067\u3059\u304B\uFF1F",yes:"\u306F\u3044 ",cancel:"\u30AD\u30E3\u30F3\u30BB\u30EB",please_select_valid_file_type:"\u6709\u52B9\u306A\u30D5\u30A1\u30A4\u30EB\u30BF\u30A4\u30D7\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",message_wasnt_delivere:"\u30E1\u30C3\u30BB\u30FC\u30B8\u306F\u914D\u4FE1\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F.",resend_message:"\u30E1\u30C3\u30BB\u30FC\u30B8\u3092\u518D\u9001\u3059\u308B",active:"\u30A2\u30AF\u30C6\u30A3\u30D6",minutes_ago:"{x} \u5206\u524D",hours_ago:"{x} \u6642\u9593\u524D",days_ago:"{x} \u65E5\u524D",months_ago:"{x} \u304B\u6708\u524D",years_ago:"{x} \u5E74\u524D",seconds_ago:"{x} \u79D2\u524D",just_now:"\u305F\u3063\u305F\u4ECA"},qi={input_required:"\u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044F \u0432\u0432\u043E\u0434",invalid_input:"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434",input_too_long:"\u0412\u0432\u043E\u0434 \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u0434\u043B\u0438\u043D\u043D\u044B\u0439",something_went_wrong:"\u0427\u0442\u043E-\u0442\u043E \u043F\u043E\u0448\u043B\u043E \u043D\u0435 \u0442\u0430\u043A. \u041F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0441\u043D\u043E\u0432\u0430.",upload_your_file_here:"\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u0435 \u0432\u0430\u0448 \u0444\u0430\u0439\u043B \u0437\u0434\u0435\u0441\u044C",browse_file:"\u041E\u0431\u0437\u043E\u0440 \u0444\u0430\u0439\u043B\u0430",or:"\u0418\u043B\u0438",you_can_upload_file_up_to_8_mb:"\u0412\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0444\u0430\u0439\u043B \u0440\u0430\u0437\u043C\u0435\u0440\u043E\u043C \u0434\u043E 8 \u041C\u0411.",the_file_must_not_be_greater_than_8_mb:"\u0424\u0430\u0439\u043B \u043D\u0435 \u0434\u043E\u043B\u0436\u0435\u043D \u0431\u044B\u0442\u044C \u0431\u043E\u043B\u044C\u0448\u0435 8 \u041C\u0411",are_you_sure_you_want_to_send_this_file:"\u0412\u044B \u0443\u0432\u0435\u0440\u0435\u043D\u044B, \u0447\u0442\u043E \u0445\u043E\u0442\u0438\u0442\u0435 \u043E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u0438\u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435?",yes:"\u0414\u0430 ",cancel:"\u041E\u0442\u043C\u0435\u043D\u0430",please_select_valid_file_type:"\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0432\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0434\u043E\u043F\u0443\u0441\u0442\u0438\u043C\u044B\u0439 \u0442\u0438\u043F \u0444\u0430\u0439\u043B\u0430",message_wasnt_delivere:"\u0421\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435 \u043D\u0435 \u0431\u044B\u043B\u043E \u0434\u043E\u0441\u0442\u0430\u0432\u043B\u0435\u043D\u043E.",resend_message:"\u041F\u043E\u0432\u0442\u043E\u0440\u043D\u043E \u043E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435",active:"\u0410\u043A\u0442\u0438\u0432\u043D\u044B\u0439",minutes_ago:"{x} \u043C\u0438\u043D\u0443\u0442(\u044B) \u043D\u0430\u0437\u0430\u0434",hours_ago:"{x} \u0447\u0430\u0441(\u043E\u0432) \u043D\u0430\u0437\u0430\u0434",days_ago:"{x} \u0434\u0435\u043D\u044C(\u0434\u043D\u0435\u0439) \u043D\u0430\u0437\u0430\u0434",months_ago:"{x} \u043C\u0435\u0441\u044F\u0446(\u0435\u0432) \u043D\u0430\u0437\u0430\u0434",years_ago:"{x} \u0433\u043E\u0434(\u043B\u0435\u0442) \u043D\u0430\u0437\u0430\u0434",seconds_ago:"{x} \u0441\u0435\u043A\u0443\u043D\u0434(\u044B) \u043D\u0430\u0437\u0430\u0434",just_now:"\u041F\u0440\u044F\u043C\u043E \u0441\u0435\u0439\u0447\u0430\u0441"},Wi={input_required:"\u0625\u062F\u062E\u0627\u0644 \u0645\u0637\u0644\u0648\u0628",invalid_input:"\u0625\u062F\u062E\u0627\u0644 \u063A\u064A\u0631 \u0635\u0627\u0644\u062D",input_too_long:"\u0627\u0644\u0625\u062F\u062E\u0627\u0644 \u0637\u0648\u064A\u0644 \u062C\u062F\u064B\u0627",something_went_wrong:"\u062D\u062F\u062B \u062E\u0637\u0623. \u062D\u0627\u0648\u0644 \u0645\u0631\u0629 \u0623\u062E\u0631\u0649.",upload_your_file_here:"\u0642\u0645 \u0628\u062A\u062D\u0645\u064A\u0644 \u0645\u0644\u0641\u0643 \u0647\u0646\u0627",browse_file:"\u062A\u0635\u0641\u062D \u0627\u0644\u0645\u0644\u0641",or:"\u0623\u0648",you_can_upload_file_up_to_8_mb:"\u064A\u0645\u0643\u0646\u0643 \u062A\u062D\u0645\u064A\u0644 \u0645\u0644\u0641 \u0628\u062D\u062C\u0645 \u064A\u0635\u0644 \u0625\u0644\u0649 8 \u0645\u064A\u062C\u0627\u0628\u0627\u064A\u062A.",the_file_must_not_be_greater_than_8_mb:"\u064A\u062C\u0628 \u0623\u0644\u0627 \u064A\u0643\u0648\u0646 \u062D\u062C\u0645 \u0627\u0644\u0645\u0644\u0641 \u0623\u0643\u0628\u0631 \u0645\u0646 8 \u0645\u064A\u062C\u0627\u0628\u0627\u064A\u062A.",are_you_sure_you_want_to_send_this_file:"\u0647\u0644 \u0623\u0646\u062A \u0645\u062A\u0623\u0643\u062F \u0645\u0646 \u0623\u0646\u0643 \u062A\u0631\u064A\u062F \u0625\u0631\u0633\u0627\u0644 \u0627\u0644\u0635\u0648\u0631\u0629\u061F",yes:"\u0646\u0639\u0645 ",cancel:"\u0625\u0644\u063A\u0627\u0621",please_select_valid_file_type:"\u064A\u0631\u062C\u0649 \u0627\u062E\u062A\u064A\u0627\u0631 \u0646\u0648\u0639 \u0645\u0644\u0641 \u0635\u0627\u0644\u062D",message_wasnt_delivere:"\u0644\u0645 \u064A\u062A\u0645 \u062A\u0633\u0644\u064A\u0645 \u0627\u0644\u0631\u0633\u0627\u0644\u0629.",resend_message:"\u0625\u0639\u0627\u062F\u0629 \u0625\u0631\u0633\u0627\u0644 \u0627\u0644\u0631\u0633\u0627\u0644\u0629",active:"\u0646\u0634\u0637",minutes_ago:"\u0645\u0646\u0630 {x} \u062F\u0642\u064A\u0642\u0629",hours_ago:"\u0645\u0646\u0630 {x} \u0633\u0627\u0639\u0629",days_ago:"\u0645\u0646\u0630 {x} \u064A\u0648\u0645",months_ago:"\u0645\u0646\u0630 {x} \u0634\u0647\u0631",years_ago:"\u0645\u0646\u0630 {x} \u0633\u0646\u0629",seconds_ago:"\u0645\u0646\u0630 {x} \u062B\u0627\u0646\u064A\u0629",just_now:"\u0627\u0644\u0622\u0646"},zi={input_required:"\u0906\u0935\u0936\u094D\u092F\u0915 \u0907\u0928\u092A\u0941\u091F",invalid_input:"\u0905\u092E\u093E\u0928\u094D\u092F \u0907\u0928\u092A\u0941\u091F",input_too_long:"\u0907\u0928\u092A\u0941\u091F \u092C\u0939\u0941\u0924 \u0932\u092E\u094D\u092C\u093E \u0939\u0948",something_went_wrong:"\u0915\u0941\u091B \u0917\u0921\u093C\u092C\u0921\u093C \u0939\u094B \u0917\u0908 \u0939\u0948\u0964 \u092A\u0941\u0928\u0903 \u092A\u094D\u0930\u092F\u093E\u0938 \u0915\u0930\u0947\u0902\u0964",upload_your_file_here:"\u092F\u0939\u093E\u0901 \u0905\u092A\u0928\u0940 \u092B\u093C\u093E\u0907\u0932 \u0905\u092A\u0932\u094B\u0921 \u0915\u0930\u0947\u0902",browse_file:"\u092B\u093C\u093E\u0907\u0932 \u092C\u094D\u0930\u093E\u0909\u091C\u093C \u0915\u0930\u0947\u0902",or:"\u092F\u093E",you_can_upload_file_up_to_8_mb:"\u0906\u092A 8 \u090F\u092E\u092C\u0940 \u0924\u0915 \u0915\u0940 \u092B\u093C\u093E\u0907\u0932 \u0905\u092A\u0932\u094B\u0921 \u0915\u0930 \u0938\u0915\u0924\u0947 \u0939\u0948\u0902.",the_file_must_not_be_greater_than_8_mb:"\u092B\u093C\u093E\u0907\u0932 8 MB \u0938\u0947 \u092C\u0921\u093C\u0940 \u0928\u0939\u0940\u0902 \u0939\u094B\u0928\u0940 \u091A\u093E\u0939\u093F\u090F",are_you_sure_you_want_to_send_this_file:"\u0915\u094D\u092F\u093E \u0924\u0941\u092E \u092F\u0915\u0940\u0928 \u0939\u0948 \u0915\u093F \u0924\u0941\u092E \u091B\u0935\u093F \u092D\u0947\u091C\u0928\u093E \u091A\u093E\u0939\u0924\u0947 \u0939\u094B?",yes:"\u0939\u093E\u0901 ",cancel:"\u0930\u0926\u094D\u0926 \u0915\u0930\u0947\u0902",please_select_valid_file_type:"\u0915\u0943\u092A\u092F\u093E \u090F\u0915 \u0935\u0948\u0927 \u092B\u093C\u093E\u0907\u0932 \u092A\u094D\u0930\u0915\u093E\u0930 \u0915\u093E \u091A\u092F\u0928 \u0915\u0930\u0947\u0902",message_wasnt_delivere:"\u092E\u0948\u0938\u0947\u091C \u092A\u0939\u0941\u0901\u091A\u093E\u092F\u093E \u0928\u0939\u0940\u0902 \u0917\u092F\u093E.",resend_message:"\u092E\u0948\u0938\u0947\u091C \u092B\u093F\u0930 \u0938\u0947 \u092D\u0947\u091C\u0947\u0902",active:"\u0938\u0915\u094D\u0930\u093F\u092F",minutes_ago:"{x} \u092E\u093F\u0928\u091F \u092A\u0939\u0932\u0947",hours_ago:"{x} \u0918\u0902\u091F\u0947 \u092A\u0939\u0932\u0947",days_ago:"{x} \u0926\u093F\u0928 \u092A\u0939\u0932\u0947",months_ago:"{x} \u092E\u0939\u0940\u0928\u0947 \u092A\u0939\u0932\u0947",years_ago:"{x} \u0938\u093E\u0932 \u092A\u0939\u0932\u0947",seconds_ago:"{x} \u0938\u0947\u0915\u0902\u0921 \u092A\u0939\u0932\u0947",just_now:"\u0905\u092D\u0940"},Yi={input_required:"Input richiesto",invalid_input:"Input non valido",input_too_long:"L'input \xE8 troppo lungo",something_went_wrong:"Qualcosa \xE8 andato storto. Riprova.",upload_your_file_here:"Carica il tuo file qui",browse_file:"Sfoglia il file",or:"O",you_can_upload_file_up_to_8_mb:"Puoi caricare un file fino a 8 MB.",the_file_must_not_be_greater_than_8_mb:"Il file non deve essere pi\xF9 grande di 8 MB",are_you_sure_you_want_to_send_this_file:"Sei sicuro/a di voler inviare l'immagine?",yes:"S\xEC",cancel:"Annulla",please_select_valid_file_type:"Si prega di selezionare un tipo di file valido.",message_wasnt_delivere:"Il messaggio non \xE8 stato consegnato.",resend_message:"Rinviare il messaggio",active:"Attivo",minutes_ago:"{x} minuto/i fa",hours_ago:"{x} ora/e fa",days_ago:"{x} giorno/i fa",months_ago:"{x} mese/i fa",years_ago:"{x} anno/i fa",seconds_ago:"{x} secondo/i fa",just_now:"Proprio ora"},Ki={input_required:"Giri\u015F gerekli",invalid_input:"Ge\xE7ersiz giri\u015F",input_too_long:"Giri\u015F \xE7ok uzun",something_went_wrong:"Bir \u015Feyler yanl\u0131\u015F gitti. Tekrar deneyin.",upload_your_file_here:"Dosyan\u0131 buraya y\xFCkle",browse_file:"Dosyay\u0131 g\xF6zat",or:"Ya da",you_can_upload_file_up_to_8_mb:"8 MB'a kadar dosya y\xFCkleyebilirsiniz.",the_file_must_not_be_greater_than_8_mb:"Dosya 8 MB'dan b\xFCy\xFCk olmamal\u0131d\u0131r.",are_you_sure_you_want_to_send_this_file:"Resmi g\xF6ndermek istedi\u011Finden emin misin?",yes:"Evet",cancel:"\u0130ptal",please_select_valid_file_type:"L\xFCtfen ge\xE7erli bir dosya t\xFCr\xFC se\xE7in.",message_wasnt_delivere:"Mesaj teslim edilmedi.",resend_message:"Mesaj\u0131 yeniden g\xF6nder",active:"Aktif",minutes_ago:"{x} dakika \xF6nce",hours_ago:"{x} saat \xF6nce",days_ago:"{x} g\xFCn \xF6nce",months_ago:"{x} ay \xF6nce",years_ago:"{x} y\u0131l \xF6nce",seconds_ago:"{x} saniye \xF6nce",just_now:"\u015Eimdi"},Ji={input_required:"Entrada necess\xE1ria",invalid_input:"Entrada inv\xE1lida",input_too_long:"A entrada \xE9 muito longa",something_went_wrong:"Algo deu errado. Tente novamente.",upload_your_file_here:"Carregue seu arquivo aqui",browse_file:"Navegar pelo arquivo",or:"Ou",you_can_upload_file_up_to_8_mb:"Voc\xEA pode enviar um arquivo de at\xE9 8 MB.",the_file_must_not_be_greater_than_8_mb:"O arquivo n\xE3o deve ter mais de 8 MB",are_you_sure_you_want_to_send_this_file:"Tens a certeza de que desejas enviar a imagem?",yes:"Sim",cancel:"Cancelar",please_select_valid_file_type:"Por favor, selecione um tipo de arquivo v\xE1lido",message_wasnt_delivere:"A mensagem n\xE3o foi entregue.",resend_message:"Reenviar mensagem",active:"Ativo",minutes_ago:"H\xE1 {x} minuto(s)",hours_ago:"H\xE1 {x} hora(s)",days_ago:"H\xE1 {x} dia(s)",months_ago:"H\xE1 {x} m\xEAs(es)",years_ago:"H\xE1 {x} ano(s)",seconds_ago:"H\xE1 {x} segundo(s)",just_now:"Agora mesmo"},Xi={input_required:"\uC785\uB825\uC774 \uD544\uC694\uD569\uB2C8\uB2E4",invalid_input:"\uC720\uD6A8\uD558\uC9C0 \uC54A\uC740 \uC785\uB825",input_too_long:"\uC785\uB825\uC774 \uB108\uBB34 \uAE41\uB2C8\uB2E4",something_went_wrong:"\uBB38\uC81C\uAC00 \uBC1C\uC0DD\uD588\uC2B5\uB2C8\uB2E4. \uB2E4\uC2DC \uC2DC\uB3C4\uD558\uC138\uC694.",upload_your_file_here:"\uC5EC\uAE30\uC5D0 \uD30C\uC77C\uC744 \uC5C5\uB85C\uB4DC\uD558\uC138\uC694",browse_file:"\uD30C\uC77C \uCC3E\uC544\uBCF4\uAE30",or:"\uB610\uB294",you_can_upload_file_up_to_8_mb:"8MB\uAE4C\uC9C0 \uD30C\uC77C\uC744 \uC5C5\uB85C\uB4DC\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.",the_file_must_not_be_greater_than_8_mb:"\uD30C\uC77C \uD06C\uAE30\uB294 8MB\uB97C \uCD08\uACFC\uD574\uC11C\uB294 \uC548 \uB429\uB2C8\uB2E4",are_you_sure_you_want_to_send_this_file:"\uC774\uBBF8\uC9C0\uB97C \uBCF4\uB0B4\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?",yes:"\uB124",cancel:"\uCDE8\uC18C",please_select_valid_file_type:"\uC720\uD6A8\uD55C \uD30C\uC77C \uC720\uD615\uC744 \uC120\uD0DD\uD558\uC138\uC694",message_wasnt_delivere:"\uBA54\uC2DC\uC9C0\uAC00 \uC804\uC1A1\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4.",resend_message:"\uBA54\uC2DC\uC9C0 \uB2E4\uC2DC \uBCF4\uB0B4\uAE30",active:"\uD65C\uC131",minutes_ago:"{x} \uBD84 \uC804",hours_ago:"{x} \uC2DC\uAC04 \uC804",days_ago:"{x} \uC77C \uC804",months_ago:"{x} \uAC1C\uC6D4 \uC804",years_ago:"{x} \uB144 \uC804",seconds_ago:"{x} \uCD08 \uC804",just_now:"\uBC29\uAE08"},Qi={input_required:"Invoer vereist",invalid_input:"Ongeldige invoer",input_too_long:"Invoer is te lang",something_went_wrong:"Er is iets misgegaan. Probeer het opnieuw.",upload_your_file_here:"Upload je bestand hier",browse_file:"Bladeren in bestand",or:"Of",you_can_upload_file_up_to_8_mb:"U kunt een bestand uploaden tot 8 MB.",the_file_must_not_be_greater_than_8_mb:"Het bestand mag niet groter zijn dan 8 MB",are_you_sure_you_want_to_send_this_file:"Weet je zeker dat je de afbeelding wilt verzenden?",yes:"Ja",cancel:"Annuleren",please_select_valid_file_type:"Selecteer alstublieft een geldig bestandstype",message_wasnt_delivere:"Bericht is niet afgeleverd.",resend_message:"Bericht opnieuw verzenden",acitve:"Actief",minutes_ago:"{x} minuut(en) geleden",hours_ago:"{x} uur geleden",days_ago:"{x} dag(en) geleden",months_ago:"{x} maand(en) geleden",years_ago:"{x} jaar geleden",seconds_ago:"{x} seconde(n) geleden",just_now:"Zojuist"},es={input_required:"Inmatning kr\xE4vs",invalid_input:"Ogiltig inmatning",input_too_long:"Inmatningen \xE4r f\xF6r l\xE5ng",something_went_wrong:"N\xE5got gick fel. F\xF6rs\xF6k igen.",upload_your_file_here:"Ladda upp din fil h\xE4r",browse_file:"Bl\xE4ddra i filen",or:"Eller",you_can_upload_file_up_to_8_mb:"Du kan ladda upp en fil upp till 8 MB.",the_file_must_not_be_greater_than_8_mb:"Filen f\xE5r inte vara st\xF6rre \xE4n 8 MB",are_you_sure_you_want_to_send_this_file:"\xC4r du s\xE4ker p\xE5 att du vill skicka bilden?",yes:"Ja",cancel:"Avbryt",please_select_valid_file_type:"V\xE4nligen v\xE4lj en giltig filtyp",message_wasnt_delivere:"Meddelandet kunde inte levereras.",resend_message:"Skicka om meddelandet",active:"Aktiv",minutes_ago:"{x} minut(er) sedan",hours_ago:"{x} timme(r) sedan",days_ago:"{x} dag(ar) sedan",months_ago:"{x} m\xE5nad(er) sedan",years_ago:"{x} \xE5r sedan",seconds_ago:"{x} sekund(er) sedan",just_now:"Just nu"},ts={input_required:"Input p\xE5kr\xE6vet",invalid_input:"Ugyldig input",input_too_long:"Indtastningen er for lang",something_went_wrong:"Noget gik galt. Pr\xF8v igen.",upload_your_file_here:"Upload din fil her",browse_file:"Gennemse fil",or:"Eller",you_can_upload_file_up_to_8_mb:"Du kan uploade en fil op til 8 MB.",the_file_must_not_be_greater_than_8_mb:"Filen m\xE5 ikke v\xE6re st\xF8rre end 8 MB.",are_you_sure_you_want_to_send_this_file:"Er du sikker p\xE5, at du vil sende billedet?",yes:"Ja",cancel:"Annuller",please_select_valid_file_type:"V\xE6lg venligst en gyldig filtype",message_wasnt_delivere:"Beskeden blev ikke leveret.",resend_message:"Send beskeden igen",active:"Aktiv",minutes_ago:"{x} minut(ter) siden",hours_ago:"{x} time(r) siden",days_ago:"{x} dag(e) siden",months_ago:"{x} m\xE5ned(er) siden",years_ago:"{x} \xE5r siden",seconds_ago:"{x} sekund(er) siden",just_now:"Lige nu"},ns={input_required:"Inndata p\xE5krevd",invalid_input:"Ugyldig inndata",input_too_long:"Inndata er for lang",something_went_wrong:"Noe gikk galt. Pr\xF8v igjen.",upload_your_file_here:"Last opp filen din her",browse_file:"Bla gjennom filen",or:"Eller",you_can_upload_file_up_to_8_mb:"Du kan laste opp en fil p\xE5 opptil 8 MB.",the_file_must_not_be_greater_than_8_mb:"Filen kan ikke v\xE6re st\xF8rre enn 8 MB",are_you_sure_you_want_to_send_this_file:"Er du sikker p\xE5 at du vil sende bildet?",yes:"Ja",cancel:"Avbryt",please_select_valid_file_type:"Vennligst velg en gyldig filtype",message_wasnt_delivere:"Meldingen ble ikke levert.",resend_message:"Send meldingen p\xE5 nytt",active:"Aktiv",minutes_ago:"{x} minutt(er) siden",hours_ago:"{x} time(r) siden",days_ago:"{x} dag(er) siden",months_ago:"{x} m\xE5ned(er) siden",years_ago:"{x} \xE5r siden",seconds_ago:"{x} sekund(er) siden",just_now:"Akkurat n\xE5"},as={input_required:"Sy\xF6te vaaditaan",invalid_input:"Virheellinen sy\xF6te",input_too_long:"Sy\xF6te on liian pitk\xE4",something_went_wrong:"Jotain meni pieleen. Yrit\xE4 uudelleen.",upload_your_file_here:"Lataa tiedostosi t\xE4nne",browse_file:"Selaa tiedostoa",or:"Tai",you_can_upload_file_up_to_8_mb:"Voit ladata tiedoston, jonka koko on enint\xE4\xE4n 8 MB.",the_file_must_not_be_greater_than_8_mb:"Tiedoston koko ei saa olla suurempi kuin 8 MB",are_you_sure_you_want_to_send_this_file:"Oletko varma, ett\xE4 haluat l\xE4hett\xE4\xE4 kuvan?",yes:"Kyll\xE4",cancel:"Peruuta",please_select_valid_file_type:"Valitse kelvollinen tiedostotyyppi, kiitos",message_wasnt_delivere:"Viesti\xE4 ei toimitettu.",resend_message:"L\xE4het\xE4 viesti uudelleen",active:"Aktiivinen",minutes_ago:"{x} minuuttia sitten",hours_ago:"{x} tuntia sitten",days_ago:"{x} p\xE4iv\xE4\xE4 sitten",months_ago:"{x} kuukautta sitten",years_ago:"{x} vuotta sitten",seconds_ago:"{x} sekuntia sitten",just_now:"Juuri nyt"},is={input_required:"\u0391\u03C0\u03B1\u03B9\u03C4\u03B5\u03AF\u03C4\u03B1\u03B9 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2",invalid_input:"\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2",input_too_long:"\u0397 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03C0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03B7",something_went_wrong:"\u039A\u03AC\u03C4\u03B9 \u03C0\u03AE\u03B3\u03B5 \u03C3\u03C4\u03C1\u03B1\u03B2\u03AC. \u0394\u03BF\u03BA\u03B9\u03BC\u03AC\u03C3\u03C4\u03B5 \u03BE\u03B1\u03BD\u03AC.",upload_your_file_here:"\u0391\u03BD\u03B5\u03B2\u03AC\u03C3\u03C4\u03B5 \u03C4\u03BF \u03B1\u03C1\u03C7\u03B5\u03AF\u03BF \u03C3\u03B1\u03C2 \u03B5\u03B4\u03CE",browse_file:"\u03A0\u03B5\u03C1\u03B9\u03B7\u03B3\u03B7\u03B8\u03B5\u03AF\u03C4\u03B5 \u03C3\u03C4\u03BF \u03B1\u03C1\u03C7\u03B5\u03AF\u03BF",or:"\u0389",you_can_upload_file_up_to_8_mb:"\u039C\u03C0\u03BF\u03C1\u03B5\u03AF\u03C4\u03B5 \u03BD\u03B1 \u03B1\u03BD\u03B5\u03B2\u03AC\u03C3\u03B5\u03C4\u03B5 \u03AD\u03BD\u03B1 \u03B1\u03C1\u03C7\u03B5\u03AF\u03BF \u03BC\u03AD\u03C7\u03C1\u03B9 8 MB.",the_file_must_not_be_greater_than_8_mb:"\u03A4\u03BF \u03B1\u03C1\u03C7\u03B5\u03AF\u03BF \u03B4\u03B5\u03BD \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03BE\u03B5\u03C0\u03B5\u03C1\u03BD\u03AC \u03C4\u03B1 8 MB",are_you_sure_you_want_to_send_this_file:"\u0395\u03AF\u03C3\u03B1\u03B9 \u03C3\u03AF\u03B3\u03BF\u03C5\u03C1\u03BF\u03C2/\u03C3\u03AF\u03B3\u03BF\u03C5\u03C1\u03B7 \u03CC\u03C4\u03B9 \u03B8\u03AD\u03BB\u03B5\u03B9\u03C2 \u03BD\u03B1 \u03C3\u03C4\u03B5\u03AF\u03BB\u03B5\u03B9\u03C2 \u03C4\u03B7\u03BD \u03B5\u03B9\u03BA\u03CC\u03BD\u03B1;",yes:"\u039D\u03B1\u03B9",cancel:"\u0391\u03BA\u03CD\u03C1\u03C9\u03C3\u03B7",please_select_valid_file_type:"\u03A0\u03B1\u03C1\u03B1\u03BA\u03B1\u03BB\u03CE \u03B5\u03C0\u03B9\u03BB\u03AD\u03BE\u03C4\u03B5 \u03AD\u03BD\u03B1\u03BD \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF \u03C4\u03CD\u03C0\u03BF \u03B1\u03C1\u03C7\u03B5\u03AF\u03BF\u03C5",message_wasnt_delivere:"\u03A4\u03BF \u03BC\u03AE\u03BD\u03C5\u03BC\u03B1 \u03B4\u03B5\u03BD \u03C0\u03B1\u03C1\u03B1\u03B4\u03CC\u03B8\u03B7\u03BA\u03B5.",resend_message:"\u0395\u03C0\u03B1\u03BD\u03B1\u03C0\u03BF\u03C3\u03C4\u03BF\u03BB\u03AE \u03BC\u03B7\u03BD\u03CD\u03BC\u03B1\u03C4\u03BF\u03C2",active:"\u0395\u03BD\u03B5\u03C1\u03B3\u03CC\u03C2",minutes_ago:"\u03A0\u03C1\u03B9\u03BD \u03B1\u03C0\u03CC {x} \u03BB\u03B5\u03C0\u03C4\u03CC(\u03AC)",hours_ago:"\u03A0\u03C1\u03B9\u03BD \u03B1\u03C0\u03CC {x} \u03CE\u03C1\u03B1(\u03B5\u03C2)",days_ago:"\u03A0\u03C1\u03B9\u03BD \u03B1\u03C0\u03CC {x} \u03B7\u03BC\u03AD\u03C1\u03B1(\u03B5\u03C2)",months_ago:"\u03A0\u03C1\u03B9\u03BD \u03B1\u03C0\u03CC {x} \u03BC\u03AE\u03BD\u03B1(\u03B5\u03C2)",years_ago:"\u03A0\u03C1\u03B9\u03BD \u03B1\u03C0\u03CC {x} \u03C7\u03C1\u03CC\u03BD\u03BF(\u03B1)",seconds_ago:"\u03A0\u03C1\u03B9\u03BD \u03B1\u03C0\u03CC {x} \u03B4\u03B5\u03C5\u03C4\u03B5\u03C1\u03CC\u03BB\u03B5\u03C0\u03C4\u03BF(\u03B1)",just_now:"\u039C\u03CC\u03BB\u03B9\u03C2 \u03C4\u03CE\u03C1\u03B1"},ss={input_required:"\u05E0\u05D3\u05E8\u05E9 \u05E7\u05DC\u05D8",invalid_input:"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF",input_too_long:"\u05D4\u05E7\u05DC\u05D8 \u05D0\u05E8\u05D5\u05DA \u05DE\u05D3\u05D9",something_went_wrong:"\u05DE\u05E9\u05D4\u05D5 \u05D4\u05E9\u05EA\u05D1\u05E9. \u05E0\u05E1\u05D4 \u05E9\u05D5\u05D1",upload_your_file_here:"\u05D4\u05E2\u05DC\u05D4 \u05D0\u05EA \u05D4\u05E7\u05D5\u05D1\u05E5 \u05E9\u05DC\u05DA \u05DB\u05D0\u05DF",browse_file:"\u05E2\u05D9\u05D9\u05DF \u05D1\u05E7\u05D5\u05D1\u05E5",or:"\u05D0\u05D5",you_can_upload_file_up_to_8_mb:"\u05E0\u05D9\u05EA\u05DF \u05DC\u05D4\u05E2\u05DC\u05D5\u05EA \u05E7\u05D5\u05D1\u05E5 \u05D1\u05D2\u05D5\u05D3\u05DC \u05E9\u05DC \u05E2\u05D3 8 MB.",the_file_must_not_be_greater_than_8_mb:"\u05D4\u05E7\u05D5\u05D1\u05E5 \u05DC\u05D0 \u05D9\u05DB\u05D5\u05DC \u05DC\u05D4\u05D9\u05D5\u05EA \u05D2\u05D3\u05D5\u05DC \u05DE-8 \u05DE\u05D2\u05D4\u05BE\u05D1\u05D9\u05D9\u05D8",are_you_sure_you_want_to_send_this_file:"\u05D4\u05D0\u05DD \u05D0\u05EA\u05D4 \u05D1\u05D8\u05D5\u05D7 \u05E9\u05D1\u05E8\u05E6\u05D5\u05E0\u05DA \u05DC\u05E9\u05DC\u05D5\u05D7 \u05D0\u05EA \u05D4\u05EA\u05DE\u05D5\u05E0\u05D4?",yes:"\u05DB\u05DF ",cancel:"\u05D1\u05D9\u05D8\u05D5\u05DC",please_select_valid_file_type:"\u05D1\u05D7\u05E8 \u05E1\u05D5\u05D2 \u05E7\u05D5\u05D1\u05E5 \u05EA\u05E7\u05D9\u05DF",message_wasnt_delivere:"\u05D4\u05D4\u05D5\u05D3\u05E2\u05D4 \u05DC\u05D0 \u05E0\u05E9\u05DC\u05D7\u05D4.",resend_message:"\u05E9\u05DC\u05D7 \u05D4\u05D5\u05D3\u05E2\u05D4 \u05E9\u05D5\u05D1",active:"\u05E4\u05E2\u05D9\u05DC",minutes_ago:"\u05DC\u05E4\u05E0\u05D9 {x} \u05D3\u05E7\u05D5\u05EA",hours_ago:"\u05DC\u05E4\u05E0\u05D9 {x} \u05E9\u05E2\u05D5\u05EA",days_ago:"\u05DC\u05E4\u05E0\u05D9 {x} \u05D9\u05DE\u05D9\u05DD",months_ago:"\u05DC\u05E4\u05E0\u05D9 {x} \u05D7\u05D5\u05D3\u05E9\u05D9\u05DD",years_ago:"\u05DC\u05E4\u05E0\u05D9 {x} \u05E9\u05E0\u05D9\u05DD",seconds_ago:"\u05DC\u05E4\u05E0\u05D9 {x} \u05E9\u05E0\u05D9\u05D5\u05EA",just_now:"\u05D4\u05E8\u05D2\u05E2"},rs={input_required:"\u0987\u09A8\u09AA\u09C1\u099F \u09AA\u09CD\u09B0\u09AF\u09BC\u09CB\u099C",invalid_input:"\u0985\u09AE\u09BE\u09A8\u09CD\u09AF \u0987\u09A8\u09AA\u09C1\u099F",input_too_long:"\u0987\u09A8\u09AA\u09C1\u099F \u0996\u09C1\u09AC \u09A6\u09C0\u09B0\u09CD\u0998",something_went_wrong:"\u0995\u09BF\u099B\u09C1 \u09AD\u09C1\u09B2 \u09B9\u09DF\u09C7\u099B\u09C7\u0964 \u0986\u09AC\u09BE\u09B0 \u099A\u09C7\u09B7\u09CD\u099F\u09BE \u0995\u09B0\u09C1\u09A8\u0964",upload_your_file_here:"\u0986\u09AA\u09A8\u09BE\u09B0 \u09AB\u09BE\u0987\u09B2 \u098F\u0996\u09BE\u09A8\u09C7 \u0986\u09AA\u09B2\u09CB\u09A1 \u0995\u09B0\u09C1\u09A8",browse_file:"\u09AB\u09BE\u0987\u09B2 \u09AC\u09CD\u09B0\u09BE\u0989\u099C \u0995\u09B0\u09C1\u09A8",or:"\u0985\u09A5\u09AC\u09BE",you_can_upload_file_up_to_8_mb:"\u0986\u09AA\u09A8\u09BF 8 \u098F\u09AE\u09AC\u09BF \u09AA\u09B0\u09CD\u09AF\u09A8\u09CD\u09A4 \u09AB\u09BE\u0987\u09B2 \u0986\u09AA\u09B2\u09CB\u09A1 \u0995\u09B0\u09A4\u09C7 \u09AA\u09BE\u09B0\u09C7\u09A8.",the_file_must_not_be_greater_than_8_mb:"\u09AB\u09BE\u0987\u09B2 8 \u098F\u09AE\u09AC\u09BF\u09B0 \u09AC\u09DC \u09B9\u09A4\u09C7 \u09AA\u09BE\u09B0\u09AC\u09C7 \u09A8\u09BE",are_you_sure_you_want_to_send_this_file:"\u09A4\u09C1\u09AE\u09BF \u0995\u09BF \u09A8\u09BF\u09B6\u09CD\u099A\u09BF\u09A4 \u09AF\u09C7 \u09A4\u09C1\u09AE\u09BF \u099B\u09AC\u09BF \u09AA\u09BE\u09A0\u09BE\u09A4\u09C7 \u099A\u09BE\u0993?",yes:"\u09B9\u09CD\u09AF\u09BE\u0981 ",cancel:"\u09AC\u09BE\u09A4\u09BF\u09B2",please_select_valid_file_type:"\u09A6\u09AF\u09BC\u09BE \u0995\u09B0\u09C7 \u098F\u0995\u099F\u09BF \u09AC\u09C8\u09A7 \u09AB\u09BE\u0987\u09B2 \u099F\u09BE\u0987\u09AA \u09A8\u09BF\u09B0\u09CD\u09AC\u09BE\u099A\u09A8 \u0995\u09B0\u09C1\u09A8",message_wasnt_delivere:"\u09AC\u09BE\u09B0\u09CD\u09A4\u09BE \u09AA\u09CC\u0981\u099B\u09BE\u09A8\u09CB \u09B9\u09AF\u09BC\u09A8\u09BF.",resend_message:"\u09AE\u09C7\u09B8\u09C7\u099C \u09AA\u09C1\u09A8\u09B0\u09BE\u09AF\u09BC \u09AA\u09BE\u09A0\u09BE\u09A8",active:"\u09B8\u0995\u09CD\u09B0\u09BF\u09AF\u09BC",minutes_ago:"{x} \u09AE\u09BF\u09A8\u09BF\u099F \u0986\u0997\u09C7",hours_ago:"{x} \u0998\u09A8\u09CD\u099F\u09BE \u0986\u0997\u09C7",days_ago:"{x} \u09A6\u09BF\u09A8 \u0986\u0997\u09C7",months_ago:"{x} \u09AE\u09BE\u09B8 \u0986\u0997\u09C7",years_ago:"{x} \u09AC\u099B\u09B0 \u0986\u0997\u09C7",seconds_ago:"{x} \u09B8\u09C7\u0995\u09C7\u09A8\u09CD\u09A1 \u0986\u0997\u09C7",just_now:"\u098F\u0987 \u09AE\u09C1\u09B9\u09C2\u09B0\u09CD\u09A4\u09C7"},os={input_required:"\u0E15\u0E49\u0E2D\u0E07\u0E01\u0E32\u0E23\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25",invalid_input:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07",input_too_long:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E19\u0E33\u0E40\u0E02\u0E49\u0E32\u0E22\u0E32\u0E27\u0E40\u0E01\u0E34\u0E19\u0E44\u0E1B",something_went_wrong:"\u0E40\u0E01\u0E34\u0E14\u0E02\u0E49\u0E2D\u0E1C\u0E34\u0E14\u0E1E\u0E25\u0E32\u0E14 \u0E42\u0E1B\u0E23\u0E14\u0E25\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48",upload_your_file_here:"\u0E2D\u0E31\u0E1B\u0E42\u0E2B\u0E25\u0E14\u0E44\u0E1F\u0E25\u0E4C\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E17\u0E35\u0E48\u0E19\u0E35\u0E48",browse_file:"\u0E40\u0E23\u0E35\u0E22\u0E01\u0E14\u0E39\u0E44\u0E1F\u0E25\u0E4C",or:"\u0E2B\u0E23\u0E37\u0E2D",you_can_upload_file_up_to_8_mb:"\u0E04\u0E38\u0E13\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E2D\u0E31\u0E1B\u0E42\u0E2B\u0E25\u0E14\u0E44\u0E1F\u0E25\u0E4C\u0E44\u0E14\u0E49\u0E2A\u0E39\u0E07\u0E2A\u0E38\u0E14 8 MB.",the_file_must_not_be_greater_than_8_mb:"\u0E02\u0E19\u0E32\u0E14\u0E44\u0E1F\u0E25\u0E4C\u0E15\u0E49\u0E2D\u0E07\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19 8 MB",are_you_sure_you_want_to_send_this_file:"\u0E04\u0E38\u0E13\u0E41\u0E19\u0E48\u0E43\u0E08\u0E2B\u0E23\u0E37\u0E2D\u0E44\u0E21\u0E48\u0E17\u0E35\u0E48\u0E04\u0E38\u0E13\u0E15\u0E49\u0E2D\u0E07\u0E01\u0E32\u0E23\u0E2A\u0E48\u0E07\u0E23\u0E39\u0E1B\u0E20\u0E32\u0E1E?",yes:"\u0E43\u0E0A\u0E48 ",cancel:"\u0E22\u0E01\u0E40\u0E25\u0E34\u0E01",please_select_valid_file_type:"\u0E42\u0E1B\u0E23\u0E14\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E44\u0E1F\u0E25\u0E4C\u0E17\u0E35\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07",message_wasnt_delivere:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E44\u0E21\u0E48\u0E44\u0E14\u0E49\u0E16\u0E39\u0E01\u0E2A\u0E48\u0E07.",resend_message:"\u0E2A\u0E48\u0E07\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07",active:"\u0E43\u0E0A\u0E49\u0E07\u0E32\u0E19",minutes_ago:"{x} \u0E19\u0E32\u0E17\u0E35\u0E17\u0E35\u0E48\u0E41\u0E25\u0E49\u0E27",hours_ago:"{x} \u0E0A\u0E31\u0E48\u0E27\u0E42\u0E21\u0E07\u0E17\u0E35\u0E48\u0E41\u0E25\u0E49\u0E27",days_ago:"{x} \u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E41\u0E25\u0E49\u0E27",months_ago:"{x} \u0E40\u0E14\u0E37\u0E2D\u0E19\u0E17\u0E35\u0E48\u0E41\u0E25\u0E49\u0E27",years_ago:"{x} \u0E1B\u0E35\u0E17\u0E35\u0E48\u0E41\u0E25\u0E49\u0E27",seconds_ago:"{x} \u0E27\u0E34\u0E19\u0E32\u0E17\u0E35\u0E17\u0E35\u0E48\u0E41\u0E25\u0E49\u0E27",just_now:"\u0E40\u0E21\u0E37\u0E48\u0E2D\u0E01\u0E35\u0E49"},ds={input_required:"Y\xEAu c\u1EA7u nh\u1EADp li\u1EC7u",invalid_input:"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7",input_too_long:"\u0110\u1EA7u v\xE0o qu\xE1 d\xE0i",something_went_wrong:"C\xF3 l\u1ED7i x\u1EA3y ra. H\xE3y th\u1EED l\u1EA1i.",upload_your_file_here:"T\u1EA3i l\xEAn t\u1EC7p c\u1EE7a b\u1EA1n \u1EDF \u0111\xE2y",browse_file:"Duy\u1EC7t t\u1EC7p",or:"Ho\u1EB7c",you_can_upload_file_up_to_8_mb:"B\u1EA1n c\xF3 th\u1EC3 t\u1EA3i l\xEAn t\u1EC7p l\xEAn \u0111\u1EBFn 8 MB.",the_file_must_not_be_greater_than_8_mb:"K\xEDch th\u01B0\u1EDBc t\u1EC7p kh\xF4ng \u0111\u01B0\u1EE3c l\u1EDBn h\u01A1n 8 MB",are_you_sure_you_want_to_send_this_file:"B\u1EA1n c\xF3 ch\u1EAFc ch\u1EAFn mu\u1ED1n g\u1EEDi h\xECnh \u1EA3nh kh\xF4ng?",yes:"V\xE2ng",cancel:"H\u1EE7y b\u1ECF",please_select_valid_file_type:"Vui l\xF2ng ch\u1ECDn lo\u1EA1i t\u1EC7p h\u1EE3p l\u1EC7",message_wasnt_delivere:"Tin nh\u1EAFn kh\xF4ng \u0111\u01B0\u1EE3c g\u1EEDi.",resend_message:"G\u1EEDi l\u1EA1i tin nh\u1EAFn",active:"Ho\u1EA1t \u0111\u1ED9ng",minutes_ago:"{x} ph\xFAt tr\u01B0\u1EDBc",hours_ago:"{x} gi\u1EDD tr\u01B0\u1EDBc",days_ago:"{x} ng\xE0y tr\u01B0\u1EDBc",months_ago:"{x} th\xE1ng tr\u01B0\u1EDBc",years_ago:"{x} n\u0103m tr\u01B0\u1EDBc",seconds_ago:"{x} gi\xE2y tr\u01B0\u1EDBc",just_now:"V\u1EEBa r\u1ED3i"},ls={input_required:"Kinakailangang input",invalid_input:"Hindi wastong input",input_too_long:"Ang input ay masyadong mahaba",something_went_wrong:"May mali. Subukan muli.",upload_your_file_here:"I-upload ang iyong file dito",browse_file:"Mag-browse ng file",or:"O",you_can_upload_file_up_to_8_mb:"Maaring mag-upload ng file hanggang 8 MB.",the_file_must_not_be_greater_than_8_mb:"Ang file ay hindi dapat lalampas sa 8 MB",are_you_sure_you_want_to_send_this_file:"Sigurado ka bang nais mong ipadala ang larawan?",yes:"Oo",cancel:" kanselahin",please_select_valid_file_type:"Pumili ng wastong uri ng file, mangyaring",message_wasnt_delivere:"Hindi na-deliver ang mensahe.",resend_message:"Iresend ang mensahe",active:"Aktibo",minutes_ago:"{x} minuto ang nakalipas",hours_ago:"{x} oras ang nakalipas",days_ago:"{x} araw ang nakalipas",months_ago:"{x} buwan ang nakalipas",years_ago:"{x} taon ang nakalipas",seconds_ago:"{x} segundo ang nakalipas",just_now:"Ngayon lang"},us={input_required:"Input diperlukan",invalid_input:"Input tidak sah",input_too_long:"Input Terlalu Panjang",something_went_wrong:"Ada yang tidak kena. Cuba lagi.",upload_your_file_here:"Muat naik fail anda di sini",browse_file:"Semak fail",or:"Atau",you_can_upload_file_up_to_8_mb:"Anda boleh muat naik fail sehingga 8 MB.",the_file_must_not_be_greater_than_8_mb:"Fail tidak boleh melebihi 8 MB",are_you_sure_you_want_to_send_this_file:"Adakah anda pasti mahu menghantar gambar?",yes:"Ya",cancel:"Batal",please_select_valid_file_type:"Sila pilih jenis fail yang sah",message_wasnt_delivere:"Mesej tidak dihantar.",resend_message:"Hantar semula mesej",active:"Aktif",minutes_ago:"{x} minit yang lalu",hours_ago:"{x} jam yang lalu",days_ago:"{x} hari yang lalu",months_ago:"{x} bulan yang lalu",years_ago:"{x} tahun yang lalu",seconds_ago:"{x} saat yang lalu",just_now:"Baru sahaja"},cs={input_required:"Intrare necesar\u0103",invalid_input:"Intrare nevalid\u0103",input_too_long:"Intrarea este prea lung\u0103",something_went_wrong:"Ceva nu a mers bine. \xCEncearc\u0103 din nou.",upload_your_file_here:"\xCEnc\u0103rca\u021Bi fi\u0219ierul aici",browse_file:"R\u0103sfoi\u021Bi fi\u0219ierul",or:"Sau",you_can_upload_file_up_to_8_mb:"Pute\u021Bi \xEEnc\u0103rca un fi\u0219ier de p\xE2n\u0103 la 8 MB.",the_file_must_not_be_greater_than_8_mb:"Fi\u0219ierul nu trebuie s\u0103 dep\u0103\u0219easc\u0103 8 MB",are_you_sure_you_want_to_send_this_file:"E\u0219ti sigur c\u0103 vrei s\u0103 trimi\u021Bi imaginea?",yes:"Da",cancel:"Anulare",please_select_valid_file_type:"V\u0103 rug\u0103m s\u0103 selecta\u021Bi un tip de fi\u0219ier valid",message_wasnt_delivere:"Mesajul nu a fost livrat.",resend_message:"Retrimite mesajul",active:"Activ",minutes_ago:"{x} minute \xEEn urm\u0103",hours_ago:"{x} ore \xEEn urm\u0103",days_ago:"{x} zile \xEEn urm\u0103",months_ago:"{x} luni \xEEn urm\u0103",years_ago:"{x} ani \xEEn urm\u0103",seconds_ago:"{x} secunde \xEEn urm\u0103",just_now:"Chiar acum"},gs={input_required:"Wymagane dane wej\u015Bciowe",invalid_input:"Nieprawid\u0142owe dane wej\u015Bciowe",input_too_long:"Wej\u015Bcie jest za d\u0142ugie",something_went_wrong:"Co\u015B posz\u0142o nie tak. Spr\xF3buj ponownie.",upload_your_file_here:"Prze\u015Blij plik tutaj",browse_file:"Przegl\u0105daj plik",or:"Lub",you_can_upload_file_up_to_8_mb:"Mo\u017Cesz przes\u0142a\u0107 plik o wielko\u015Bci do 8 MB.",the_file_must_not_be_greater_than_8_mb:"Plik nie mo\u017Ce by\u0107 wi\u0119kszy ni\u017C 8 MB",are_you_sure_you_want_to_send_this_file:"Czy na pewno chcesz wys\u0142a\u0107 obraz?",yes:"Tak",cancel:"Anuluj",please_select_valid_file_type:"Prosz\u0119 wybra\u0107 prawid\u0142owy typ pliku",message_wasnt_delivere:"Wiadomo\u015B\u0107 nie zosta\u0142a dostarczona.",resend_message:"Wy\u015Blij wiadomo\u015B\u0107 ponownie",active:"Aktywny",minutes_ago:"{x} minut(y) temu",hours_ago:"{x} godzin(y) temu",days_ago:"{x} dni temu",months_ago:"{x} miesi\u0105ce(y) temu",years_ago:"{x} lat(a) temu",seconds_ago:"{x} sekund(y) temu",just_now:"W\u0142a\u015Bnie teraz"},hs={input_required:"Vy\u017Eadov\xE1n vstup",invalid_input:"Neplatn\xFD vstup",input_too_long:"Vstup je p\u0159\xEDli\u0161 dlouh\xFD",something_went_wrong:"N\u011Bco se pokazilo. Zkuste to znovu.",upload_your_file_here:"Nahrajte sv\u016Fj soubor sem",browse_file:"Proch\xE1zet soubor",or:"Nebo",you_can_upload_file_up_to_8_mb:"M\u016F\u017Eete nahr\xE1t soubor o velikosti a\u017E 8 MB.",the_file_must_not_be_greater_than_8_mb:"Soubor nesm\xED b\xFDt v\u011Bt\u0161\xED ne\u017E 8 MB",are_you_sure_you_want_to_send_this_file:"Jsi si jist\xFD, \u017Ee chce\u0161 poslat obr\xE1zek?",yes:"Ano",cancel:"Zru\u0161it",please_select_valid_file_type:"Vyberte pros\xEDm platn\xFD typ souboru",message_wasnt_delivere:"Zpr\xE1va nebyla doru\u010Dena.",resend_message:"Znovu odeslat zpr\xE1vu",active:"Aktivn\xED",minutes_ago:"P\u0159ed {x} minutami",hours_ago:"P\u0159ed {x} hodinami",days_ago:"P\u0159ed {x} dny",months_ago:"P\u0159ed {x} m\u011Bs\xEDci",years_ago:"P\u0159ed {x} lety",seconds_ago:"P\u0159ed {x} sekundami",just_now:"Pr\xE1v\u011B te\u010F"},_s={input_required:"\u041F\u043E\u0442\u0440\u0456\u0431\u0435\u043D \u0432\u0432\u0456\u0434",invalid_input:"\u041D\u0435\u0432\u0456\u0440\u043D\u0438\u0439 \u0432\u0432\u0456\u0434",input_too_long:"\u0412\u0432\u0435\u0434\u0435\u043D\u043D\u044F \u0437\u0430\u043D\u0430\u0434\u0442\u043E \u0434\u043E\u0432\u0433\u0435",something_went_wrong:"\u0429\u043E\u0441\u044C \u043F\u0456\u0448\u043B\u043E \u043D\u0435 \u0442\u0430\u043A. \u0421\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0437\u043D\u043E\u0432\u0443.",upload_your_file_here:"\u0417\u0430\u0432\u0430\u043D\u0442\u0430\u0436\u0442\u0435 \u0432\u0430\u0448 \u0444\u0430\u0439\u043B \u0441\u044E\u0434\u0438",browse_file:"\u041E\u0433\u043B\u044F\u0434 \u0444\u0430\u0439\u043B\u0443",or:"\u0410\u0431\u043E",you_can_upload_file_up_to_8_mb:"\u0412\u0438 \u043C\u043E\u0436\u0435\u0442\u0435 \u0437\u0430\u0432\u0430\u043D\u0442\u0430\u0436\u0438\u0442\u0438 \u0444\u0430\u0439\u043B \u0440\u043E\u0437\u043C\u0456\u0440\u043E\u043C \u0434\u043E 8 \u041C\u0411.",the_file_must_not_be_greater_than_8_mb:"\u0424\u0430\u0439\u043B \u043D\u0435 \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0431\u0443\u0442\u0438 \u0431\u0456\u043B\u044C\u0448\u0438\u0439 \u0437\u0430 8 \u041C\u0411",are_you_sure_you_want_to_send_this_file:"\u0422\u0438 \u0432\u043F\u0435\u0432\u043D\u0435\u043D\u0438\u0439, \u0449\u043E \u0445\u043E\u0447\u0435\u0448 \u0432\u0456\u0434\u043F\u0440\u0430\u0432\u0438\u0442\u0438 \u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u043D\u044F?",yes:"\u0422\u0430\u043A",cancel:"\u0421\u043A\u0430\u0441\u0443\u0432\u0430\u0442\u0438",please_select_valid_file_type:"\u0411\u0443\u0434\u044C \u043B\u0430\u0441\u043A\u0430, \u0432\u0438\u0431\u0435\u0440\u0456\u0442\u044C \u0434\u0456\u0439\u0441\u043D\u0438\u0439 \u0442\u0438\u043F \u0444\u0430\u0439\u043B\u0443",message_wasnt_delivere:"\u041F\u043E\u0432\u0456\u0434\u043E\u043C\u043B\u0435\u043D\u043D\u044F \u043D\u0435 \u0431\u0443\u043B\u043E \u0434\u043E\u0441\u0442\u0430\u0432\u043B\u0435\u043D\u043E.",resend_message:"\u0412\u0456\u0434\u043F\u0440\u0430\u0432\u0438\u0442\u0438 \u043F\u043E\u0432\u0456\u0434\u043E\u043C\u043B\u0435\u043D\u043D\u044F \u0437\u043D\u043E\u0432\u0443",active:"\u0410\u043A\u0442\u0438\u0432\u043D\u0438\u0439",minutes_ago:"{x} \u0445\u0432\u0438\u043B\u0438\u043D \u0442\u043E\u043C\u0443",hours_ago:"{x} \u0433\u043E\u0434\u0438\u043D \u0442\u043E\u043C\u0443",days_ago:"{x} \u0434\u043D\u0456\u0432 \u0442\u043E\u043C\u0443",months_ago:"{x} \u043C\u0456\u0441\u044F\u0446\u0456\u0432 \u0442\u043E\u043C\u0443",years_ago:"{x} \u0440\u043E\u043A\u0456\u0432 \u0442\u043E\u043C\u0443",seconds_ago:"{x} \u0441\u0435\u043A\u0443\u043D\u0434 \u0442\u043E\u043C\u0443",just_now:"\u0429\u043E\u0439\u043D\u043E"},sn={en:Hi,de:Ui,es:ji,fr:Zi,ja:Gi,ru:qi,ar:Wi,hi:zi,it:Yi,tr:Ki,"zh-CN":{input_required:"\u9700\u8981\u8F93\u5165",invalid_input:"\u65E0\u6548\u8F93\u5165",input_too_long:"\u8F93\u5165\u592A\u957F",something_went_wrong:"\u51FA\u4E86\u70B9\u95EE\u9898\uFF0C\u8BF7\u91CD\u8BD5\u3002",upload_your_file_here:"\u5728\u8FD9\u91CC\u4E0A\u4F20\u4F60\u7684\u6587\u4EF6",browse_file:"\u6D4F\u89C8\u6587\u4EF6",or:"\u6216\u8005",you_can_upload_file_up_to_8_mb:"\u60A8\u53EF\u4EE5\u4E0A\u4F20\u6700\u591A8MB\u7684\u6587\u4EF6.",the_file_must_not_be_greater_than_8_mb:"\u6587\u4EF6\u5927\u5C0F\u4E0D\u5F97\u8D85\u8FC78MB",are_you_sure_you_want_to_send_this_file:"\u4F60\u786E\u5B9A\u8981\u53D1\u9001\u8FD9\u5F20\u56FE\u7247\u5417\uFF1F",yes:"\u662F\u7684",cancel:"\u53D6\u6D88",please_select_valid_file_type:"\u8BF7\u9009\u62E9\u6709\u6548\u7684\u6587\u4EF6\u7C7B\u578B",message_wasnt_delivere:"\u6D88\u606F\u672A\u9001\u8FBE.",active:"\u6D3B\u8DC3",minutes_ago:"{x} \u5206\u949F\u524D",hours_ago:"{x} \u5C0F\u65F6\u524D",days_ago:"{x} \u5929\u524D",months_ago:"{x} \u4E2A\u6708\u524D",years_ago:"{x} \u5E74\u524D",seconds_ago:"{x} \u79D2\u524D",just_now:"\u521A\u521A"},pt:Ji,"zh-TW":{input_required:"\u9700\u8981\u8F38\u5165",invalid_input:"\u7121\u6548\u8F38\u5165",input_too_long:"\u8F38\u5165\u592A\u9577",something_went_wrong:"\u51FA\u4E86\u9EDE\u554F\u984C\uFF0C\u8ACB\u91CD\u8A66\u3002",upload_your_file_here:"\u5728\u8FD9\u91CC\u4E0A\u4F20\u4F60\u7684\u6587\u4EF6",browse_file:"\u6D4F\u89C8\u6587\u4EF6",or:"\u6216\u8005",you_can_upload_file_up_to_8_mb:"\u60A8\u53EF\u4EE5\u4E0A\u50B3\u6700\u591A8MB\u7684\u6A94\u6848.",the_file_must_not_be_greater_than_8_mb:"\u6587\u4EF6\u5927\u5C0F\u4E0D\u5F97\u8D85\u904E8MB",are_you_sure_you_want_to_send_this_file:"\u4F60\u78BA\u5B9A\u8981\u767C\u9001\u9019\u5F35\u5716\u7247\u55CE\uFF1F",yes:"\u662F\u7684 ",cancel:"\u53D6\u6D88",please_select_valid_file_type:"\u8ACB\u9078\u64C7\u6709\u6548\u7684\u6587\u4EF6\u985E\u578B",message_wasnt_delivere:"\u6D88\u606F\u672A\u9001\u9054.",resend_message:"\u91CD\u65B0\u767C\u9001\u6D88\u606F",active:"\u6D3B\u8E8D",minutes_ago:"{x} \u5206\u9418\u524D",hours_ago:"{x} \u5C0F\u6642\u524D",days_ago:"{x} \u5929\u524D",months_ago:"{x} \u500B\u6708\u524D",years_ago:"{x} \u5E74\u524D",seconds_ago:"{x} \u79D2\u524D",just_now:"\u525B\u525B"},ko:Xi,nl:Qi,sv:es,da:ts,no:ns,fi:as,el:is,he:ss,bn:rs,th:os,vi:ds,fil:ls,ms:us,ro:cs,pl:gs,cs:hs,uk:_s},Pa=e=>{const t=e.match(/#[0-9a-fA-F]{3,6}/g)||[];if(t.length===0)return"#388D8B";const n=t.map(o=>{const l=/^#?([a-f\d])([a-f\d])([a-f\d])$/i;o=o.replace(l,(p,w,R,y)=>w+w+R+R+y+y);const d=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(o);return d?{r:parseInt(d[1],16),g:parseInt(d[2],16),b:parseInt(d[3],16)}:{r:0,g:0,b:0}});let a=[];if(n.length===1)a=[1];else if(n.length===2)a=[.6,.4];else{a=[.5,.3];const o=.2/(n.length-2);for(let l=2;l",""":'"',"'":"'","'":"'"," ":" ","©":"\xA9","®":"\xAE","™":"\u2122","…":"\u2026","—":"\u2014","–":"\u2013","‘":"'","’":"'","“":'"',"”":'"',"•":"\u2022","°":"\xB0","±":"\xB1","×":"\xD7","÷":"\xF7","∞":"\u221E","≠":"\u2260","≤":"\u2264","≥":"\u2265","≈":"\u2248","≡":"\u2261","∑":"\u2211","∏":"\u220F","√":"\u221A","∫":"\u222B","α":"\u03B1","β":"\u03B2","γ":"\u03B3","δ":"\u03B4","ε":"\u03B5","ζ":"\u03B6","η":"\u03B7","θ":"\u03B8","ι":"\u03B9","κ":"\u03BA","λ":"\u03BB","μ":"\u03BC","ν":"\u03BD","ξ":"\u03BE","ο":"\u03BF","π":"\u03C0","ρ":"\u03C1","σ":"\u03C3","τ":"\u03C4","υ":"\u03C5","φ":"\u03C6","χ":"\u03C7","ψ":"\u03C8","ω":"\u03C9","Α":"\u0391","Β":"\u0392","Γ":"\u0393","Δ":"\u0394","Ε":"\u0395","Ζ":"\u0396","Η":"\u0397","Θ":"\u0398","Ι":"\u0399","Κ":"\u039A","Λ":"\u039B","Μ":"\u039C","Ν":"\u039D","Ξ":"\u039E","Ο":"\u039F","Π":"\u03A0","Ρ":"\u03A1","Σ":"\u03A3","Τ":"\u03A4","Υ":"\u03A5","Φ":"\u03A6","Χ":"\u03A7","Ψ":"\u03A8","Ω":"\u03A9"},fs=Object.keys(Na).sort((e,t)=>t.length-e.length),Zl=e=>{if(!e)return"";let t=e.replace(/&#(\d+);/g,(a,i)=>{const s=parseInt(i,10);return String.fromCodePoint(s)}).replace(/&#x([0-9a-fA-F]+);/g,(a,i)=>{const s=parseInt(i,16);return String.fromCodePoint(s)});const n=new RegExp(fs.map(a=>a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),"g");return t=t.replace(n,a=>Na[a]),t=t.replace(/<[^>]*>/g,""),t=t.replace(/\*\*([^*\n]+)\*\*/g,"$1").replace(/\*([^*\n]+)\*/g,"$1").replace(/__([^_\n]+)__/g,"$1").replace(/_([^_\n]+)_/g,"$1"),t},te={CONNECT:"widget.connect",DISCONNECT:"disconnect",TYPING_START:"typing.start",TYPING_STOP:"typing.stop",USER_TYPING_START:"user.typing.start",USER_TYPING_STOP:"user.typing.stop",AGENT_MESSAGE_RECEIVED:"agent.message.received",AGENT_STATUS_UPDATED:"agent.online.status.received",WIDGET_SEND_MESSAGE:"widget.message.sent",CREATE_CHAT:"create.chat",TOGGLE_READ_SENT:"toggle.read.sent",REFRESH_USER_CONVERSATION:"widget.conversation.refresh.sent",PROFILE_UPDATE:"widget.profile.update.sent",AGENT_READ_NOTIFICATION:"widget.message.read",EMAIL_WIDGET_MESSAGE:"create.widget.message",CONTACT_BLOCKED:"toggle.contact.blocked.received",CONVERSATION_DELETED:"agent.conversation.deleted.received",AGENT_DEACTIVATED:"agent.status.updated.received",CHAT_CONTACT_UPDATED_RECEIVED:"chat.contact.update.received",AGENT_CONVERSATION_MESSAGE_EDITED:"agent.conversation.message.edited",AGENT_CONVERSATION_MESSAGE_DELETED:"agent.conversation.message.deleted",CONVERSATION_ENDED:"widget.conversation.ended",CONVERSATION_REOPENED:"widget.conversation.reopened",CHAT_CONTACT_UPDATED:"update.chat.contact",LIVE_VISITOR_CONNECT:"live-visitor.connect",VISITOR_META_UPDATED:"visitor-meta.updated",AGENT_STARTED_CHAT:"agent.started.force-conversation",LIVE_VISITOR_ACTIVITY:"live-visitor.activity.tracking",EDIT_WIDGET_MESSAGE:"widget.message.edited",CUSTOM_LANG_TEXT_UPDATE:"custom.lang.text.updated",WIDGET_CONVERSATION_MESSAGE_EDITED:"widget.conversation.message.edited"},Rt=e=>e?e.replace(/[^\p{L}0-9\s]/gu,"").match(/(^\S\S?|\s\S)?/g).map(t=>t.trim()).join("").match(/(^\S|\S$)?/g).join("").toLocaleUpperCase():"",ce=function(e){const t="\u0591-\u07FF\u200F\u202B\u202E\uFB1D-\uFDFD\uFE70-\uFEFC";return new RegExp("^[^"+t+"]*?["+t+"]").test(e)},gn=()=>{let e=new Date().getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){const a=(e+Math.random()*16)%16|0;return e=Math.floor(e/16),(n=="x"?a:a&3|8).toString(16)})},rn=e=>(e=="zh"&&(e="zh-TW"),sn[e]?sn[e]:sn.en),on=(e,t="agent")=>{if(!e.length)return"";const a=e.filter(i=>t==="agent"?i.attributes.agent_id:!i.attributes.agent_id).reverse().find(i=>i.attributes.message_language);return(a==null?void 0:a.attributes.message_language)||""},ve=e=>{e.error&&(console.log(e,"response in sentry"),Bi.report({name:e.error.message,message:e.error.message}))},dn=e=>e?/[\p{L}0-9\s]/gu.test(e):!0,qn=e=>e?(e=e.toLowerCase(),/^(?:[A-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[A-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9]{2,}(?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])$/.test(e)):!0,ms=e=>e?/^[0-9()+-. ]{7,16}$/.test(e.split(" ").join("")):!0,Gl=()=>/(https?:\/\/[^\s]+)/g,He=(e,t)=>({message:e,validate:t}),ps=e=>e.trim()!=="",wt=e=>t=>e?ps(t):!0,Wn=(e,t=255)=>e?e.length<=t:!0,zn=(e,t=25)=>e?e.trim().split(/\s+/).filter(a=>a.length>0).length<=t:!0,Lt=(e,t)=>{const n={};return Object.keys(e).forEach(a=>{const i=e[a];Object.keys(i).forEach(s=>{const r=i[s];r.validate(t)||(n[a]||(n[a]=""),n[a]=r.message)})}),n},Va=e=>["image/jpeg","image/png","image/gif","image/webp","application/pdf","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","video/mp4","audio/mp3","audio/mpeg","text/plain","text/csv","application/vnd.openxmlformats-officedocument.presentationml.presentation"].some(n=>e.type.startsWith(n)),$s=e=>e?new RegExp("^(https?:\\/\\/)?([a-zA-Z0-9-_]+\\.)+[a-zA-Z]{2,6}(\\/[a-zA-Z0-9@:%._\\+~#=]*)*(\\?[a-zA-Z0-9&=_]*)?(\\#[a-zA-Z0-9-_]*)?$").test(e):!0,Yn=e=>{const t=/{"name":"[^"]+","url":"[^"]+?"}/g;return e.match(t)},ql=(e,t=!1)=>{const n=Se();return et(e).format(t?`MMM DD, ${n.timeFormat}`:n.timeFormat)},Bt=e=>{const t={"&":"&","<":"<",">":">",'"':""","'":"'"};return e.replace(/[&<>"']/g,n=>t[n])},vs=e=>{if(!e)return"#ffffff";let t,n,a;if(e.startsWith("#")){const s=e.slice(1);t=parseInt(s.slice(0,2),16),n=parseInt(s.slice(2,4),16),a=parseInt(s.slice(4,6),16)}else if(e.startsWith("rgb")){const s=e.match(/\d+/g);if(!s||s.length<3)return"#ffffff";t=parseInt(s[0]),n=parseInt(s[1]),a=parseInt(s[2])}return .299*t+.587*n+.114*a>150?"black":"white"},ys=e=>(e=e||"#0446DE",e.startsWith("linear-gradient")&&(e=Pa(e)),e),Cs=e=>(e=e||"#0446DE",e.startsWith("linear-gradient")&&(e=Pa(e)),`linear-gradient(180deg, ${e} 33.13%, rgba(4, 70, 222, 0.00) 53.68%), #F6F6F8`),bs=(e,t=1)=>{if(!e)return"";e=e.replace("#","");const n=parseInt(e.substring(0,2),16),a=parseInt(e.substring(2,4),16),i=parseInt(e.substring(4,6),16);return`rgb(${n} ${a} ${i} / ${t*100}%)`},ws=e=>e.sort((t,n)=>{if(t.attributes.is_ended!==n.attributes.is_ended)return t.attributes.is_ended?1:-1;const a=new Date(t.attributes.last_message_updated_at||0);return new Date(n.attributes.last_message_updated_at||0).getTime()-a.getTime()});var ie=(e=>(e.WIDGET_TOGGLE="widget.toggle",e.WIDGET_LOADED="widget.loaded",e.WIDGET_RELOAD="widget.reload",e.WIDGET_DESTROY="widget.destroy",e.WIDGET_DISABLE="widget.disable",e.MESSAGES_UNREAD="messages.unread",e.AGENT_STATUS="agent.status.change",e.LOCATION_CHANGE="location.change",e.AGENT_MESSAGE_RECEIVED="agent.messages.received",e.CONVERSATION_STARTED="visitor.conversation.started",e.LOAD_IMAGE="load.image",e.REMOVE_IMAGE="remove.image",e.PROFILE_DATA="profile.data",e.CHAT_HISTORY="chat.history",e.FOCUS_EVENT="focus.event",e.CUSTOM_DATA="custom.data",e.REMOVE_TOKEN="remove.token",e.CHAT_CONTACT_LOADED="chat.contact.loaded",e.CUSTOMER_DATA_LOADED="customer.data.loaded",e.SET_VISITOR_EMAIL="set.visitor.email",e.SET_CHATWAY_SETTINGS="set.chatway.settings",e.OPEN_CONTACT_CHANNEL="open.contact.channel",e.COPY_TO_CLIPBOARD="copy.to.clipboard",e))(ie||{});class fe{static dispatchEvent(t,n){switch(t){case"messages.unread":this.prepareEvent({type:"CHATWAY",action:"messages.unread",meta:n});break;case"widget.loaded":this.prepareEvent({type:"CHATWAY",action:"widget.loaded"});break;case"widget.reload":this.prepareEvent({type:"CHATWAY",action:"widget.reload"});break;case"widget.destroy":this.prepareEvent({type:"CHATWAY",action:"widget.destroy"});break;case"widget.toggle":this.prepareEvent({type:"CHATWAY",action:"widget.toggle"});break;case"agent.status.change":this.prepareEvent({type:"CHATWAY",action:"agent.status.change",meta:n});break;case"agent.messages.received":this.prepareEvent({type:"CHATWAY",action:"agent.messages.received",meta:n});break;case"visitor.conversation.started":this.prepareEvent({type:"CHATWAY",action:"visitor.conversation.started",meta:n});break;case"focus.event":this.prepareEvent({type:"CHATWAY",action:"focus.event"});break;case"load.image":this.prepareEvent({type:"CHATWAY",action:"load.image",meta:n});break;case"remove.image":this.prepareEvent({type:"CHATWAY",action:"remove.image"});break;case"custom.data":this.prepareEvent({type:"CHATWAY",action:"custom.data",meta:n});break;case"remove.token":this.prepareEvent({type:"CHATWAY",action:"remove.token",meta:n});break;case"chat.contact.loaded":this.prepareEvent({type:"CHATWAY",action:"chat.contact.loaded",meta:n});break;case"open.contact.channel":this.prepareEvent({type:"CHATWAY",action:"open.contact.channel",meta:n});break;case"copy.to.clipboard":this.prepareEvent({type:"CHATWAY",action:"copy.to.clipboard",meta:n});break;case"widget.disable":this.prepareEvent({type:"CHATWAY",action:"widget.disable",meta:n});break}}static prepareEvent(t){window.parent.postMessage(t,"*")}}const Kn=()=>{const e={Green:"#00A651",Aqua:"#00A99D",Sky:"#00AEEF",Indigo:"#2E3192",Red:"#ED145B",Gold:"#DEA900",Yellow:"#EACB2D",Flame:"#E25822",Pink:"#FF4081",Magenta:"#E91E63",Purple:"#9C27B0",Lavender:"#3F51B5",Blue:"#03A9F4",Turquoise:"#03CCB8",Teal:"#008080",Peach:"#FF927F",Salmon:"#FA8072",Orange:"#DD571C"},t=["Apple","Banana","Orange","Strawberry","Blueberry","Grape","Mango","Pineapple","Kiwi","Peach","Lemon","Lime","Watermelon","Raspberry","Blackberry","Cherry","Grapefruit","Pear","Papaya","Cranberry","Avocado","Pomegranate","Guava","Lychee","Coconut","Artichoke","Carrot","Broccoli","Spinach","Tomato","Potato","Cucumber","Lettuce","Cauliflower","Zucchini","Onion","Garlic","Bean","Kale","Radish","Celery","Yam","Mushroom","Cabbage","Mustard"],i=(l=>{for(let d=l.length-1;d>0;d--){const p=Math.floor(Math.random()*(d+1));[l[d],l[p]]=[l[p],l[d]]}return l})([...t])[Math.floor(Math.random()*t.length)],s=Math.floor(Math.random()*9e4)+1e4,r=Object.keys(e),o=r[Math.floor(Math.random()*r.length)];return{name:`${i} #${s}`,colorHex:e[o]}},Ls=e=>{const t=[...new Set(e.filter(Boolean))].map(i=>{const s=i.replace(/_/g," ");return{poppins:"Poppins:wght@400;600","open sans":"Open+Sans:wght@400;600",roboto:"Roboto:wght@400;500",lato:"Lato:wght@400;700",montserrat:"Montserrat:wght@400;600","source sans pro":"Source+Sans+Pro:wght@400;600",raleway:"Raleway:wght@400;600",ubuntu:"Ubuntu:wght@400;500",nunito:"Nunito:wght@400;600",oswald:"Oswald:wght@400;500",merriweather:"Merriweather:wght@400;700","playfair display":"Playfair+Display:wght@400;600",quicksand:"Quicksand:wght@400;600",dosis:"Dosis:wght@400;600","pt sans":"PT+Sans:wght@400;700","crimson text":"Crimson+Text:wght@400;600","fira sans":"Fira+Sans:wght@400;600","josefin sans":"Josefin+Sans:wght@400;600",muli:"Mulish:wght@400;600",karla:"Karla:wght@400;700","work sans":"Work+Sans:wght@400;600",cabin:"Cabin:wght@400;600",vollkorn:"Vollkorn:wght@400;600",arvo:"Arvo:wght@400;700",pacifico:"Pacifico",comfortaa:"Comfortaa:wght@400;600","noto sans":"Noto+Sans:wght@400;700","titillium web":"Titillium+Web:wght@400;600",asap:"Asap:wght@400;600","dancing script":"Dancing+Script:wght@400;700","amatic sc":"Amatic+SC:wght@400;700",yantramanav:"Yantramanav:wght@400;700",lobster:"Lobster",inconsolata:"Inconsolata:wght@400;700",rokkitt:"Rokkitt:wght@400;700",anton:"Anton","bebas neue":"Bebas+Neue",exo:"Exo:wght@400;600"}[s.toLowerCase()]||s.split(" ").map(o=>o.charAt(0).toUpperCase()+o.slice(1)).join("+")});if(t.length===0)return;const n=document.getElementById("google-font-loader");n&&n.remove();const a=document.createElement("link");return a.id="google-font-loader",a.rel="stylesheet",a.href=`https://fonts.googleapis.com/css2?family=${t.join("&family=")}&display=swap`,"fonts"in document?(document.head.appendChild(a),document.fonts.ready):new Promise(i=>{a.onload=()=>{i()},document.head.appendChild(a)})},Ra=e=>e?e.replace(/_/g," ").split(" ").map(n=>n.charAt(0).toUpperCase()+n.slice(1).toLowerCase()).join(" "):"Poppins, sans-serif",G=bi("https://chat.chatway.app",{autoConnect:!1}),Se=$i({id:"conversation",state:()=>({messages:[],olderConversations:[],agents:[],activeAgents:[],onlineAgent:void 0,uiFlags:{isConversationsLoading:!1,isMessagesLoading:!1,isMessageSending:!1,isImageUploading:!1,isLinkPreviewLoading:!1,isTyping:!1,isFetchingAgents:!1,isCreatingChat:!1,isGettingToken:!1,isConversationEnded:!1,isStartingNewChat:!1,isChatStarted:!1,isSurveySending:!1},isConsentGiven:!1,currentView:"chat",visitorId:"",roomId:"",widgetId:"",userId:"",current_page:1,total_page:1,errorMessage:"",newMessage:!1,isAgentMessage:!1,isAgentOnline:!1,isRefreshed:!1,typing:null,widgetData:null,isWidgetOpen:!1,isUpdatingVisitorStatus:!1,isNameUpdated:!1,showEmailInput:!1,userName:"",userEmail:"",userPhone:"",countryCode:"",pageVisited:[],isSocketConnected:!1,file:null,chatHistoryData:null,browserData:null,messageNotViewed:0,emailFocused:!1,widgetOpen:!1,customData:[],customFields:[],customerId:"",temporaryVisitorName:"",updatedBgColor:"#0446de",updatedTextColor:"#ffffff",activeState:"home",scrollToTop:!1,contactProfile:{form_submitted:!1},isSurveySelected:!1,fileMessageIdMapping:new Map,locationData:null,wpUserInfo:null,surveyData:null,selectedSurveyLang:[],isPageVisible:!1,isFormSubmitted:!1,isFormAutoSubmitted:!1,shopifyContact:null,selectedSubHeaderLang:[],subHeaderText:"",conversationListFromVerifyContact:0}),getters:{widgetLang(){const e=this.agents.filter(i=>i.type==="widget_langs");let t=navigator.language;t!="zh-TW"&&(t=t.split("-")[0]);const n=e==null?void 0:e.find(i=>i.id===t);if(n)return{...rn(t),...n==null?void 0:n.attributes};const a=e==null?void 0:e.find(i=>{var s;return(s=i.attributes)==null?void 0:s.is_default});return a?{...rn(a.id),...a.attributes}:rn("en")},contactFields(){return this.agents.filter(e=>e.type==="widget_contact_form").map(e=>({...e.attributes,id:e.id})).sort((e,t)=>e.order_id-t.order_id)},isContactFormEnabled(){var e;return((e=this.widgetData)==null?void 0:e.is_enabled_collect_contact_info)||!1},shouldSendContactFormBeforeTheFirstMessage(){var e;return((e=this.widgetData)==null?void 0:e.should_send_contact_form)==="after_visitor_opens_widget_first_time"},shouldSendContactFormAfterTheFirstMessage(){var e;return((e=this.widgetData)==null?void 0:e.should_send_contact_form)==="after_visitor_sends_first_message"},hasVisibleField(){return this.isContactFormEnabled&&this.contactFields.length>0},hasRequiredField(){return this.hasVisibleField&&this.shouldSendContactFormBeforeTheFirstMessage&&this.contactFields.some(e=>e.is_required)},hasRequiredFieldAndAfterSendsFirstMessage(){return this.hasVisibleField&&this.messages.length>0&&this.shouldSendContactFormAfterTheFirstMessage&&this.contactFields.some(e=>e.is_required)&&!this.isNameUpdated&&!this.isEmailAdded&&!this.isPhoneAdded&&!this.customFieldValues.length&&!this.isContactFormSubmitted},nameField(){return this.contactFields.find(e=>e.field_name=="name")},emailField(){return this.contactFields.find(e=>e.field_name=="email")},phoneField(){return this.contactFields.find(e=>e.field_name=="phone")},isRtl(){return ce(this.widgetLang.team_here)},isEmailAdded(){return!!this.userEmail},isPhoneAdded(){return!!this.userPhone},isMobile(){var e;return((e=this.widgetData)==null?void 0:e.isMobileDevice)||!1},selectedFaqLang(){const e=this.widgetLang.lang;return this.agents.filter(t=>t.type==="custom_lang_texts"&&t.attributes.model_type==="faq"&&t.attributes.lang===e)},faqArray(){return this.agents.filter(e=>e.type==="widget_faqs").map(e=>({id:e.id,...e.attributes})).sort((e,t)=>{var n,a;return((n=e.order_id)!=null?n:0)-((a=t.order_id)!=null?a:0)})},faqs(){return this.faqArray.map(e=>{var a,i;const t=(a=this.selectedFaqLang.find(s=>s.attributes.model_id==e.id&&s.attributes.content_type==="faq_question"))==null?void 0:a.attributes.text,n=(i=this.selectedFaqLang.find(s=>s.attributes.model_id==e.id&&s.attributes.content_type==="faq_answer"))==null?void 0:i.attributes.text;return{...e,question:t||e.question,answer:n||e.answer}})},isFaqEnabled(){var e;return((e=this.widgetData)==null?void 0:e.show_faq)!=0&&this.faqs.length>0},showFaqInNewTab(){var e;return((e=this.widgetData)==null?void 0:e.show_faq)==1},showFaqInCurrentTab(){var e;return((e=this.widgetData)==null?void 0:e.show_faq)==2},timeFormat(){var e;return((e=this.widgetData)==null?void 0:e.preferred_time_format)==="24-hour"?"HH:mm":"h:mm A"},channels(){return this.agents.filter(e=>e.type==="widget_channel"&&e.attributes.is_visible&&e.attributes.text&&e.attributes.value).filter(e=>this.isMobile?e.attributes.is_mobile:e.attributes.is_desktop).map(e=>({id:e.id,...e.attributes})).sort((e,t)=>e.order_id-t.order_id)},isChannelEnabled(){var e;return!!((e=this.widgetData)!=null&&e.show_channels)&&this.channels.length>0},unreadMessagesCount(){return this.olderConversations.reduce((e,t)=>e+t.attributes.unread_messages,0)},customFieldValues(){return this.customFields.map(e=>({...e.attributes}))},conversations(){return ws(this.olderConversations)},isWordPressVisitor(){var e;return((e=this.widgetData)==null?void 0:e.marketplace)==="wordpress"},openConversations(){return this.conversations.filter(e=>!e.attributes.is_ended)},previewText(){var e;return((e=this.widgetData)==null?void 0:e.previewText)||""},merketplace(){var e;return((e=this.widgetData)==null?void 0:e.marketplace)||""},token(){var e;return((e=this.widgetData)==null?void 0:e.token)||""},isSurveyEnabled(){var e;return((e=this.widgetData)==null?void 0:e.send_end_conversation_survey)||!1},hasSurveyResponseAsLastMessage(){var t,n;return((n=(t=this.messages[this.messages.length-1].attributes.message_meta)==null?void 0:t.survey_response)==null?void 0:n.length)>0},getVisitorPayload(){var e,t,n,a,i,s,r,o,l,d,p,w;return{widget_id:(e=this.widgetData)==null?void 0:e.widgetId,team_id:(t=this.widgetData)==null?void 0:t.team_id,last_open_conversation_id:this.roomId,host_location:`${(n=this.widgetData)==null?void 0:n.origin}${(a=this.widgetData)==null?void 0:a.path}`,contact_name:this.userName&&this.userName!==this.userEmail?this.userName:this.temporaryVisitorName?this.temporaryVisitorName:Kn().name,contact_email:this.userEmail,color:Kn().colorHex,country:((i=this.locationData)==null?void 0:i.country)||"",countryCode:(s=this.locationData)==null?void 0:s.iso_code,city:((r=this.locationData)==null?void 0:r.city)||"",marketplace_origin:(o=this.widgetData)==null?void 0:o.origin,marketplace_channel:(l=this.widgetData)==null?void 0:l.marketplace,browser_type:`${new ft().browser} ${new ft().version}`,language:window.navigator.language,operating_system:new ft().OS,ip:((d=this.locationData)==null?void 0:d.ip)||"",timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,page_visited:[{page:`${(p=this.widgetData)==null?void 0:p.origin}${(w=this.widgetData)==null?void 0:w.path}`,date:et(new Date).format("YYYY-MM-DD")}]}},chatwaySettings(){var e;return(e=this.widgetData)==null?void 0:e.chatwaySettings},isChatwaySettingsEmpty(){var n;if(!((n=this.chatwaySettings)!=null&&n.visitor))return!0;const{data:e,hmac:t}=this.chatwaySettings.visitor;return!(e!=null&&e.id)&&!(e!=null&&e.email)||!t},isWPChatwaySettingsEmpty(){var e,t;return this.wpUserInfo?!(((e=this.wpUserInfo)==null?void 0:e.emailId)&&((t=this.wpUserInfo)==null?void 0:t.userId)):!0},getWPSettings(){var e,t,n;return this.wpUserInfo?{visitor:{hmac:(e=this.wpUserInfo)==null?void 0:e.token,data:{id:(t=this.wpUserInfo)==null?void 0:t.userId,email:(n=this.wpUserInfo)==null?void 0:n.emailId}}}:null},isIdentityVerificationEnabled(){var e;return((e=this.widgetData)==null?void 0:e.is_enabled_identity_verification)||!1},isWordPressUser(){var e;return((e=this.widgetData)==null?void 0:e.marketplace)=="wordpress"},isPorUser(){var e;return((e=this.widgetData)==null?void 0:e.has_paid_access)||!1},isContactFormSubmitted(){var e,t;return((e=this.contactProfile)==null?void 0:e.form_submitted)||((t=this.contactProfile)==null?void 0:t.form_submitted)===null||this.isContactFormAutoSubmitted},isContactFormAutoSubmitted(){var e;return((e=this.contactProfile)==null?void 0:e.is_form_auto_submitted)||!1},activeConversations(){return this.conversations.filter(e=>!e.attributes.is_ended)},isSingleView(){var e;return!((e=this.widgetData)!=null&&e.is_open_home_on_first_click)&&!this.isFaqEnabled&&!this.isChannelEnabled&&!this.hasRequiredField&&(!this.conversations.length||this.conversations.length===1&&!this.conversations[0].attributes.is_ended)},nonConsentFields(){return this.contactFields.filter(e=>e.field_name!=="consent")},allNonConsentFieldsOptional(){return this.nonConsentFields.every(e=>!e.is_required)},consentField(){return this.contactFields.find(e=>e.field_name==="consent")},isConsentRequired(){var e;return!!((e=this.consentField)!=null&&e.is_required)}},actions:{setVisitorId(e){this.visitorId=e},setRoomId(e){this.roomId=e,this.updateLiveVisitorData()},setWidgetId(e){this.widgetId=e},setUserId(e){this.userId=e},setShowEmailInput(e){this.showEmailInput=e,this.newMessage=!0},setNameUpdated(e){this.isNameUpdated=this.userName?e:!1},setUserName(e){if(e==="remove"){this.userName="",this.setNameUpdated(!1);return}this.userName=e,this.updateLiveVisitorData(),this.setNameUpdated(!0)},setUserEmail(e){this.userEmail=e,this.userEmail&&setTimeout(()=>{this.updateLiveVisitorData()},1e3)},setUserPhone(e){this.userPhone=e},setCountryCode(e){this.countryCode=e},setCurrentView(e){this.currentView=e},addOlderConversation(e){this.olderConversations.unshift(e)},setToken(e){!this.widgetData||(this.widgetData.token=e)},setCustomValues(e){this.customFields=e.filter(t=>t.type==="customfield"&&this.contactFields.some(n=>n.field_label.toLowerCase()===t.attributes.name.toLowerCase()))},setChatwaySettings(e){!this.widgetData||(this.widgetData.chatwaySettings=e)},setContactProfile(e){!e||(this.contactProfile=e)},setConsentGiven(e){this.isConsentGiven=e},turnOffSocketEvents(){G.off(te.AGENT_MESSAGE_RECEIVED),G.off(te.AGENT_STATUS_UPDATED),G.off(te.USER_TYPING_STOP),G.off(te.USER_TYPING_START),G.off(te.EMAIL_WIDGET_MESSAGE),G.off(te.CHAT_CONTACT_UPDATED_RECEIVED),G.off(te.LIVE_VISITOR_CONNECT),G.off(te.VISITOR_META_UPDATED),G.off(te.AGENT_STARTED_CHAT),G.off(te.CHAT_CONTACT_UPDATED),G.off(te.LIVE_VISITOR_ACTIVITY),G.off(te.CUSTOM_LANG_TEXT_UPDATE)},initialization(){this.turnOffSocketEvents(),G.on(te.DISCONNECT,e=>{G.active||G.connect(),["ping timeout","transport error","transport close"].includes(e)&&this.getMessages(this.roomId),this.isSocketConnected=!1,console.log(`%cWidget Disconnected ${e} ${new Date}`,"color:red; font-size:16px")}),G.on("connect_error",()=>{G.active||G.connect(),this.isSocketConnected=!1}),G.on(te.USER_TYPING_START,e=>{e.conversation_id===this.roomId&&e.user_type!=="Visitor"&&(this.uiFlags.isTyping=!0,this.typing=e)}),G.on(te.CONTACT_BLOCKED,e=>{const{attributes:t}=e.data;t.blocked_at&&fe.dispatchEvent(ie.WIDGET_DESTROY)}),G.on(te.CONVERSATION_DELETED,e=>{this.olderConversations.length===1?fe.dispatchEvent(ie.WIDGET_RELOAD):(this.olderConversations=this.olderConversations.filter(t=>t.id!==e.conversation_id),this.roomId===e.conversation_id&&(this.uiFlags.isChatStarted=!1))}),G.on(te.USER_TYPING_STOP,e=>{e.conversation_id===this.roomId&&e.user_type!=="Visitor"&&(this.uiFlags.isTyping=!1,this.typing=null)}),G.on(te.AGENT_STATUS_UPDATED,e=>{var t;if(!e||e.error){ve(e);return}this.getAgents(e.data),e.data.id===((t=this.onlineAgent)==null?void 0:t.id)&&(this.onlineAgent=e.data)}),G.on(te.CONVERSATION_ENDED,e=>{if(!e||e.error){ve(e);return}e.data.attributes.conversation_id===this.roomId&&(this.uiFlags.isConversationEnded=e.included[0].attributes.is_ended),this.updateOlderConversation(e.data.attributes.conversation_id,e.included[0].attributes.is_ended)}),G.on(te.CONVERSATION_REOPENED,e=>{if(!e||e.error){ve(e);return}e.data.attributes.conversation_id===this.roomId&&(this.uiFlags.isConversationEnded=e.included[0].attributes.is_ended),this.updateOlderConversation(e.data.attributes.conversation_id,e.included[0].attributes.is_ended)}),G.on(te.EMAIL_WIDGET_MESSAGE,e=>{if(console.log(e,"SOCKET_EVENTS.EMAIL_WIDGET_MESSAGE response"),!e||e.error){ve(e);return}const t={type:"conversation-messages",id:e.data.id,attributes:{content:e.data.attributes.message_body,urls:e.data.attributes.message_urls,agent_id:null,name:null,...e.data.attributes}};this.updateMessage(t)}),G.on(te.AGENT_MESSAGE_RECEIVED,async e=>{var s,r,o,l;if(!e||e.error){ve(e);return}new Audio("https://files-cdn.chatway.app/assets/audio/incoming.wav").play();const n=(s=this.agents)==null?void 0:s.find(d=>d.id===e.data.attributes.message_sender.id);this.messages.length||(this.uiFlags.isChatStarted=!0,await this.getPrevConversationList());const a={type:"conversation-messages",id:e.data.id,attributes:{content:e.data.attributes.message_body,urls:e.data.attributes.message_urls,conversation_id:e.data.attributes.conversation_id,agent_id:e.data.attributes.message_sender.id,agent_name:e.data.attributes.message_sender.name,name:e.data.attributes.message_sender.name,agent_profile_pic_url:n==null?void 0:n.attributes.profile_photo_url,created_at:e.data.attributes.message_created_at,...e.data.attributes}};this.refreshConversation(a),((r=a.attributes)==null?void 0:r.conversation_id)===this.roomId&&!this.uiFlags.isStartingNewChat&&this.updateMessage(a);const i=(o=this.messages)==null?void 0:o.some(d=>d.attributes.agent_id===null);this.messages.length&&i&&(this.isAgentMessage=!0),this.onlineAgent=(l=this.agents)==null?void 0:l.find(d=>d.id===e.data.attributes.message_sender.id),this.isWidgetOpen&&e.data.attributes.conversation_id==this.roomId&&(this.messageNotViewed+=1);try{const d=this.olderConversations.find(p=>p.id===e.data.attributes.conversation_id);d&&(d.attributes.latest_message={content:e.data.attributes.message_body,created_at:e.data.attributes.message_created_at,agent_name:e.data.attributes.message_sender.name,agent_profile_photo_url:n==null?void 0:n.attributes.profile_photo_url,urls:e.data.attributes.message_urls})}catch(d){console.error("Error processing incoming message:",d)}}),G.on(te.CHAT_CONTACT_UPDATED_RECEIVED,e=>{if(console.log(e),!e||e.error){ve(e);return}this.setUserName(e.data.attributes.name),this.setUserEmail(e.data.attributes.email),this.setUserPhone(e.data.attributes.phone)}),G.on(te.AGENT_CONVERSATION_MESSAGE_EDITED,e=>{if(!e||e.error){ve(e);return}this.updateEditedMessage(e)}),G.on(te.WIDGET_CONVERSATION_MESSAGE_EDITED,e=>{if(!e||e.error){ve(e);return}this.updateEditedMessage(e)}),G.on(te.AGENT_CONVERSATION_MESSAGE_DELETED,e=>{if(!e||e.error){ve(e);return}const t={id:e.message_id,type:"delete"};this.updateMessage(t),this.refreshConversation()}),G.on(te.CHAT_CONTACT_UPDATED,e=>{var t;if(!e||e.error){ve(e);return}(t=e.included)!=null&&t.length&&this.setCustomValues(e.included)}),G.on(te.LIVE_VISITOR_ACTIVITY,e=>{if(!e||e.error){ve(e);return}e.track_live_visitor_activity?(this.widgetData.is_enable_live_visitor=!0,this.prepareLiveVisitor()):this.widgetData.is_enable_live_visitor=!1}),G.on(te.CUSTOM_LANG_TEXT_UPDATE,e=>{if(ve(e),!e||e.error)return;const{included:t}=e;!t.length||(this.selectedSurveyLang=t.filter(n=>n.attributes.model_type==="survey"&&n.attributes.lang===this.widgetLang.lang),this.selectedSubHeaderLang=t.filter(n=>n.attributes.model_type==="widget"&&n.attributes.type==="widget_sub_header"&&n.attributes.lang===this.widgetLang.lang),this.getSurveyData(),this.getSubHeaderText())})},updateOlderConversation(e,t){const n=this.olderConversations.find(a=>a.id===e);!n||(n.attributes.is_ended=t)},refreshConversation(e){G.emit(te.REFRESH_USER_CONVERSATION,{conversation_id:(e==null?void 0:e.attributes.conversation_id)||this.roomId},t=>{if(t.error){ve(t);return}if(e){const n=this.olderConversations.find(a=>a.id===e.attributes.conversation_id&&(!this.uiFlags.isChatStarted||!this.isWidgetOpen||a.id!==this.roomId||!this.isPageVisible));if(n&&(n.attributes.unread_messages=t.conversation.data.attributes.unread_messages),this.unreadMessagesCount){const a={agent:this.onlineAgent,message:e.attributes.content,message_html:e.attributes.content_html,type:e.attributes.content?"text":"attachment"};fe.dispatchEvent(ie.AGENT_MESSAGE_RECEIVED,JSON.stringify(a))}t.conversation.data.attributes.unread_messages&&e.attributes.conversation_id==this.roomId&&this.isPageVisible&&this.markMessagesAsRead()}fe.dispatchEvent(ie.MESSAGES_UNREAD,JSON.stringify({count:this.unreadMessagesCount}))})},agentEventListener(){G.on(te.AGENT_STATUS_UPDATED,e=>{var t;if(!e||e.error){ve(e);return}this.getAgents(e.data),e.data.id===((t=this.onlineAgent)==null?void 0:t.id)&&(this.onlineAgent=e.data)}),G.on(te.AGENT_DEACTIVATED,e=>{var t;if(!e||e.error){ve(e);return}this.getAgents(e.data),e.data.id===((t=this.onlineAgent)==null?void 0:t.id)&&(this.onlineAgent=e.data)})},async getEventData(e){var n;const t=JSON.parse(e.meta);switch(e.action){case ie.WIDGET_LOADED:if(this.widgetData)return;this.prepareWidgetData({...t,isChatInitialized:JSON.parse(t.isChatInitialized)});break;case ie.WIDGET_TOGGLE:this.isWidgetOpen=t.isOpen,this.widgetOpen=t.isOpen,this.unreadMessagesCount&&this.activeState==="chat"&&this.markMessagesAsRead(),t.isOpen&&this.isRefreshed&&(await this.updateVisitorStatus(),this.isRefreshed=!1),t.isOpen&&!((n=this.widgetData)!=null&&n.is_open_home_on_first_click)&&this.activeState!="chat"&&await this.openConversation();break;case ie.LOCATION_CHANGE:await this.updatePageVisited(`${t.origin}${t.path}`);break;case ie.SET_CHATWAY_SETTINGS:if(this.setChatwaySettings(t),this.isChatwaySettingsEmpty&&this.isWPChatwaySettingsEmpty)return;await this.getLoggedInVisitorData(),await this.markAsVerified(),this.getPrevConversationList();break;case ie.PROFILE_DATA:this.setUserEmail(t.email),this.setUserPhone(t.phone),t.name&&this.setUserName(t.name),t.country_dialing_code&&this.setCountryCode(t.country_dialing_code);break;case ie.CHAT_HISTORY:this.chatHistoryData=t,await this.getToken();break;case ie.CUSTOM_DATA:this.saveCustomData(t);break;case ie.CUSTOMER_DATA_LOADED:this.getConversations(t);break;case ie.SET_VISITOR_EMAIL:this.setVisitorInfo(t);break}},async prepareLiveVisitor(){var t,n;if(!((t=this.widgetData)!=null&&t.has_paid_access)||!((n=this.widgetData)!=null&&n.is_enable_live_visitor))return;G.disconnected&&G.connect(),await this.getLocation();const e=this.getVisitorPayload;this.temporaryVisitorName=e.contact_name,G.emit(te.LIVE_VISITOR_CONNECT,e),G.on(te.AGENT_STARTED_CHAT,async a=>{if(console.log(a,"AGENT_STARTED_CHAT"),!a||a.error){ve(a);return}const{access_token:i,conversation_id:s}=a;this.widgetData&&(this.widgetData.token=i);const r=JSON.stringify({token:i,isChatInitialized:!0,conversationId:s});fe.dispatchEvent(ie.CONVERSATION_STARTED,r),Le.defaults.headers.common.Authorization=`Bearer ${i}`,await this.verifyContact()})},async prepareWidgetData(e){this.widgetData=e,this.setWidgetId(e.widgetId),this.setUserId(e.team_id),this.browserData||(this.browserData=e==null?void 0:e.browserData),setTimeout(async()=>{await this.prepareLiveVisitor()},1500),e.token&&(Le.defaults.headers.common.Authorization=`Bearer ${e.token}`,this.handleSocketConnection()),this.updatedBgColor=ys(e["bg-color"]),this.updatedTextColor=vs(e["icon-color"]),document.documentElement.style.setProperty("--widget-color",e["bg-color"]),document.documentElement.style.setProperty("--icon-color",e["icon-color"]),document.documentElement.style.setProperty("--bg-color",this.updatedBgColor),document.documentElement.style.setProperty("--text-color",this.updatedTextColor),this.applyFontCustomization(e),this.wpUserInfo=e==null?void 0:e.wpUserInfo,this.agents=e.agents,this.getAgents(),this.merketplace=="shopify"&&this.token?this.uiFlags.isConversationsLoading=!0:(await this.getLoggedInVisitorData(),this.getPrevConversationList()),this.setSelectedSurveyLang(),this.setSelectedSubHeaderLang(),this.getSurveyData(),this.getSubHeaderText()},async applyFontCustomization(e){e.is_load_fonts_from_google!==!1&&await Ls([e.chat_font_type]);const t="chatway-font-styles";let n=document.getElementById(t);n||(n=document.createElement("style"),n.id=t,document.head.appendChild(n));const a=Ra(e.chat_font_type);document.documentElement.style.setProperty("--font-family",`"${a}", sans-serif`,"important"),n.textContent=` body, .chatway-widget-header, .new-chat-btn, .chat-field--container textarea, .messages, .chat-message, .contact-form button, .contact-form .form-group input, .button, .faq-answer p { font-family: "${a}", sans-serif !important; } `},async getPrevConversationList(){try{if(this.uiFlags.isConversationsLoading=!0,!this.token){this.uiFlags.isConversationsLoading=!1;return}const e=await new Fe().getPreviousConversations(this.widgetId,this.customerId,this.chatwaySettings,this.wpUserInfo);this.olderConversations=e.data;const t=this.processUnreadMessages(this.olderConversations);if(t){const n={...t};setTimeout(()=>{fe.dispatchEvent(ie.AGENT_MESSAGE_RECEIVED,JSON.stringify(n)),fe.dispatchEvent(ie.MESSAGES_UNREAD,JSON.stringify({count:this.unreadMessagesCount}))},2e3)}}catch(e){console.error("Failed to get previous conversation list:",e)}finally{this.uiFlags.isConversationsLoading=!1}},async getLoggedInVisitorData(){if(!(this.token||!this.widgetId||this.isChatwaySettingsEmpty&&this.isWPChatwaySettingsEmpty||!this.isIdentityVerificationEnabled&&!this.isPorUser&&!this.isWordPressUser))try{const e=await new Fe().getLoggedInVisitorData(this.widgetId,this.chatwaySettings,this.getWPSettings);if(!this.token&&e.access_token){this.setToken(e.access_token),this.setVisitorId(e.contact_id);const t=JSON.stringify({token:e.access_token,isChatInitialized:!0});fe.dispatchEvent(ie.CONVERSATION_STARTED,t),Le.defaults.headers.common.Authorization=`Bearer ${e.access_token}`,this.autoDisconnectAndConnectSocket(),this.handleSocketConnection()}}catch(e){console.error("Failed to get visitor data:",e)}},async markAsVerified(){var w,R,y,C,T,u,x,S,D,X,N,ae,re,V,F,Y,z,se,ge,P,I,A,B,O,Z;if(!this.visitorId||!this.isIdentityVerificationEnabled||!this.isPorUser||this.isChatwaySettingsEmpty)return;const e=JSON.parse((w=localStorage.getItem("chatway_settings_"+this.visitorId))!=null?w:"{}"),t=(C=(y=(R=this.chatwaySettings)==null?void 0:R.visitor)==null?void 0:y.data)==null?void 0:C.email,n=(x=(u=(T=this.chatwaySettings)==null?void 0:T.visitor)==null?void 0:u.data)==null?void 0:x.id,a=(D=(S=e==null?void 0:e.visitor)==null?void 0:S.data)==null?void 0:D.email,i=(N=(X=e==null?void 0:e.visitor)==null?void 0:X.data)==null?void 0:N.id;if(a&&t&&a!=t||i&&n&&i!=n){fe.dispatchEvent(ie.WIDGET_RELOAD);return}const s=(V=(re=(ae=this.chatwaySettings)==null?void 0:ae.customFields)==null?void 0:re.filter(U=>!["name","email","phone"].includes(U.name)))!=null?V:[],r=(z=(Y=(F=this.chatwaySettings)==null?void 0:F.tags)==null?void 0:Y.some(U=>{var q;return!((q=e==null?void 0:e.tags)!=null&&q.some(b=>b.name===U.name&&b.color===U.color))}))!=null?z:!1,o=s.some(U=>{var q;return!((q=e==null?void 0:e.customFields)!=null&&q.some(b=>b.name===U.name&&b.value===U.value))}),l=(ge=(se=this.chatwaySettings)==null?void 0:se.customFields)==null?void 0:ge.find(U=>U.name==="name"),d=(I=(P=this.chatwaySettings)==null?void 0:P.customFields)==null?void 0:I.find(U=>U.name==="phone"),p=l&&l.value!=this.userName||d&&d.value!=this.userPhone||t&&t!=this.userEmail;if(!(((B=(A=e==null?void 0:e.visitor)==null?void 0:A.data)==null?void 0:B.email)&&((Z=(O=e==null?void 0:e.visitor)==null?void 0:O.data)==null?void 0:Z.id)&&!r&&!o&&!p))try{await new Fe().markAsVerified(this.visitorId,this.chatwaySettings),l&&this.setUserName(l.value),d&&this.setUserPhone(d.value),t&&this.setUserEmail(t),localStorage.setItem("chatway_settings_"+this.visitorId,JSON.stringify(this.chatwaySettings))}catch(U){console.error("Failed to assign visitor data:",U)}},async getConversations(e){if(e.logged_in_customer_id&&(this.customerId=e.logged_in_customer_id,this.shopifyContact=e),!this.token&&e.access_token){this.setToken(e.access_token),this.setVisitorId(e.contact_id);const t=JSON.stringify({token:e.access_token,isChatInitialized:!0});fe.dispatchEvent(ie.CONVERSATION_STARTED,t),Le.defaults.headers.common.Authorization=`Bearer ${e.access_token}`,this.autoDisconnectAndConnectSocket(),this.handleSocketConnection()}!Object.keys(e).length&&!this.conversationListFromVerifyContact||Object.keys(e).length&&e.message==="Visitor is not logged in"&&!this.conversationListFromVerifyContact?this.uiFlags.isConversationsLoading=!1:await this.getPrevConversationList()},async resumeConversation(e){this.uiFlags.isMessagesLoading=!0;try{const{access_token:t}=await new Fe().getTokenByConversationId(e.id,this.widgetId);this.widgetData&&(this.widgetData.token=t,this.widgetData.isChatInitialized=!0);const n=e.attributes.contact;this.setRoomId(e.id),this.setVisitorId(e.attributes.contact_id),this.setUserName(n.name),this.setUserEmail(n.email),this.setUserPhone(n.phone),this.setCountryCode(n.country_dialing_code),this.setNameUpdated(n.is_name_updated);const a=JSON.stringify({token:t,isChatInitialized:!0});fe.dispatchEvent(ie.CONVERSATION_STARTED,a),this.uiFlags.isConversationEnded=e.attributes.is_ended,Le.defaults.headers.common.Authorization=`Bearer ${t}`,G.removeAllListeners(),this.autoDisconnectAndConnectSocket(),await this.handleSocketConnection(),this.initialization(),this.getMessagesByConversationId(e.id)}catch(t){console.error("Failed to resume conversation:",t),this.uiFlags.isMessagesLoading=!1}},setVisitorInfo(e){!e||(!this.userEmail&&(e==null?void 0:e.verified_email)&&this.setUserEmail(e.verified_email),!this.userPhone&&(e==null?void 0:e.phone)&&this.setUserPhone(e.phone),!this.userName&&((e==null?void 0:e.first_name)||(e==null?void 0:e.last_name))&&this.setUserName(((e==null?void 0:e.first_name)+" "+(e==null?void 0:e.last_name)).trim()))},async updatePageVisited(e){var a,i;const t=(a=this.widgetData)==null?void 0:a.isChatInitialized,n=(i=this.widgetData)==null?void 0:i.token;if(!this.pageVisited.length&&t&&n&&await this.verifyContact(),!(!this.pageVisited.length&&!t&&!n)&&!(this.pageVisited.length&&this.pageVisited[this.pageVisited.length-1].page===e))try{this.updateLiveVisitorData(),await new Fe().updatePageVisited(e),this.pageVisited.push({page:e,date:`${et(new Date).format("YYYY-MM-DD")}`})}catch{this.errorMessage="",this.isUpdatingVisitorStatus=!1}},async saveCustomData(e){var t,n;this.customData.push(e),!this.hasRequiredField&&!((t=this.widgetData)!=null&&t.token)&&!this.uiFlags.isGettingToken&&await this.getToken(),((n=this.widgetData)==null?void 0:n.token)&&this.customData.length&&(this.customData.forEach(a=>{fe.dispatchEvent(ie.CUSTOM_DATA,JSON.stringify(a))}),this.customData=[])},markMessagesAsRead(){var t;if(this.currentView!=="chat"||!this.uiFlags.isChatStarted||!this.isWidgetOpen)return;const e=(t=this.messages[this.messages.length-1])==null?void 0:t.id;G.emit(te.TOGGLE_READ_SENT,{conversation_id:this.roomId,message_id:e,team_id:this.userId},n=>{if(!n||n.error){ve(n);return}const a=this.olderConversations.find(i=>i.id===this.roomId);a&&(a.attributes.unread_messages=0),fe.dispatchEvent(ie.MESSAGES_UNREAD,JSON.stringify({count:this.unreadMessagesCount}))})},async updateVisitorStatus(){try{(await new Fe().updateVisitorStatus(this.visitorId)).data&&(this.isUpdatingVisitorStatus=!1)}catch{this.errorMessage="",this.isUpdatingVisitorStatus=!1}},async getLocation(){if(!this.locationData)try{const{data:e}=await new Fe().getLocation();return this.locationData=e.data,Promise.resolve(this.locationData)}catch{this.errorMessage=""}},async getAgents(e){var i,s;if(e){const r=(i=this.agents)==null?void 0:i.findIndex(o=>o.id===e.id);r===-1&&e.attributes.status!=="deactivated"?this.agents.push(e):this.agents[r]=e}const t=(s=this.agents)==null?void 0:s.find(r=>{var o;return((o=r.attributes.online_status)==null?void 0:o.toLowerCase())==="online"&&r.attributes.status!=="deactivated"});this.isAgentOnline=!!t;const n=this.agents.filter(r=>{var o;return((o=r.attributes.online_status)==null?void 0:o.toLowerCase())==="online"&&r.attributes.status!=="deactivated"});this.activeAgents=n;let a;n.length?a=n:a=[],fe.dispatchEvent(ie.AGENT_STATUS,JSON.stringify(a))},async verifyContact(){var e,t,n,a,i,s,r,o;try{const l=await new Fe().verifyContact();this.pageVisited=l.data.attributes.page_visited,this.setContactProfile(l.data.attributes.profile),this.setUserName(l.data.attributes.name),this.setUserEmail(l.data.attributes.email),this.setUserPhone(l.data.attributes.phone),this.setCountryCode(l.data.attributes.country_dialing_code),this.setNameUpdated(l.data.attributes.is_name_updated);const d=(e=l.included)==null?void 0:e.find(w=>w.type==="customfield"&&w.attributes.name==="consent");d?this.setConsentGiven(d.attributes.value==="Yes"):this.setConsentGiven(!1),this.conversationListFromVerifyContact=(n=(t=l.data.attributes.conversations)==null?void 0:t.length)!=null?n:0,l.data.attributes.conversations.length>1?this.openConversations.length&&this.setRoomId(this.openConversations[0].id):this.setRoomId(l.data.attributes.conversations[0]),this.setVisitorId(l.data.id),await this.markAsVerified(),this.isRefreshed=!0,(a=this.chatHistoryData)!=null&&a.res_chtwy_cht&&await this.getMessages(this.roomId),this.autoDisconnectAndConnectSocket(),this.handleSocketConnection(),l.data.attributes.conversations.length&&(this.refreshConversation(),await this.updatePageVisited(`${(i=this.widgetData)==null?void 0:i.origin}${(s=this.widgetData)==null?void 0:s.path}`)),(r=l.included)!=null&&r.length&&this.setCustomValues(l.included);const p=JSON.stringify({contactId:this.visitorId,isVerified:!!(l.data.attributes.verified_email||l.data.attributes.verified_id)});fe.dispatchEvent(ie.CHAT_CONTACT_LOADED,p),this.initialization()}catch(l){((o=l.response)==null?void 0:o.status)==401&&(this.widgetData&&(this.widgetData.token="",this.widgetData.isChatInitialized=!1,this.chatHistoryData=null),fe.dispatchEvent(ie.REMOVE_TOKEN)),console.log("error",l)}},async getToken(e){var n,a,i,s,r,o,l,d;this.uiFlags.isGettingToken=!0;let t;try{if((n=this.chatHistoryData)!=null&&n.res_chtwy_cht){const{data:y}=await new Fe().getChatData(this.chatHistoryData);t=y}else{const y=(a=this.widgetData)==null?void 0:a.browserData,C={origin:(i=this.widgetData)==null?void 0:i.origin,channel:(s=this.widgetData)==null?void 0:s.marketplace},{data:T}=await new Fe().getToken(y,this.widgetId,`${(r=this.widgetData)==null?void 0:r.origin}${(o=this.widgetData)==null?void 0:o.path}`,e,C,this.temporaryVisitorName,this.isFormAutoSubmitted,this.isFormSubmitted);t=T}const p=t.attributes.access_token;this.widgetData&&(this.widgetData.token=p,this.widgetData.isChatInitialized=!1);const w=JSON.stringify({token:p,isChatInitialized:!1,conversationId:this.roomId});fe.dispatchEvent(ie.CONVERSATION_STARTED,w),Le.defaults.headers.common.Authorization=`Bearer ${p}`,this.setUserName(t.attributes.name),this.setUserEmail(t.attributes.email),this.setUserPhone(t.attributes.phone),this.setCountryCode(t.attributes.phone),this.setNameUpdated(t.attributes.is_name_updated),this.setVisitorId(t.id),this.markAsVerified(),this.autoDisconnectAndConnectSocket(),await this.handleSocketConnection(),this.initialization(),this.uiFlags.isGettingToken=!1,(((l=this.chatHistoryData)==null?void 0:l.res_chtwy_cht)||e)&&await this.verifyContact();const R=JSON.stringify({contactId:this.visitorId});fe.dispatchEvent(ie.CHAT_CONTACT_LOADED,R)}catch(p){p&&((d=this.chatHistoryData)==null?void 0:d.res_chtwy_cht)&&(this.chatHistoryData=null,await this.getToken()),this.uiFlags.isGettingToken=!1,console.log("error",p)}},handleSocketConnection(){return new Promise((e,t)=>{const n={userId:this.userId,widget_id:this.widgetId,contact_id:this.visitorId};G.on("connect",()=>{G.emit(te.CONNECT,n,i=>{i.error&&(ve(i),t(i)),console.log("%cConnected to socket","color:blue; font-size:16px",n),this.prepareLiveVisitor(),e(i)});const a=this.olderConversations.map(i=>i.attributes.contact_id);a.length&&G.emit("widget.join.contacts",{contacts:a})})})},async sendFile(e,t,n){var s,r,o,l,d,p,w,R,y,C,T,u,x,S;const a=window.URL.createObjectURL(e),i=t||gn();if(this.file=e,!n){const D={id:i,type:"temp_message",isTemp:!0,isMessageFailed:!1,status:"sending",attributes:{content:null,urls:[{type:e.type,content:a,size:e.size,mime:e.type,original_file_name:e.name}],agent_id:null}};this.updateMessage(D)}!((s=this.widgetData)!=null&&s.isChatInitialized)&&!((r=this.widgetData)!=null&&r.token)&&!this.chatHistoryData&&await this.getToken();try{const D=await new Fe().uploadFiles([e]),X={contact_id:this.visitorId?this.visitorId:"",conversation_id:this.roomId?this.roomId:"",team_id:this.userId,widget_id:this.widgetId,ip:((o=this.browserData)==null?void 0:o.ip)||"",online_status:"online",origin_url:`${(l=this.widgetData)==null?void 0:l.origin}${(d=this.widgetData)==null?void 0:d.path}`,message:{urls:[{type:e.type,content:D[0],size:e.size,mime:e.type,original_file_name:e.name}]}};await this.sendMessage(X,i,n),this.errorMessage="",this.file=null,this.uiFlags.isImageUploading=!1}catch(D){const X=(p=this.messages)==null?void 0:p.find(N=>N.id===i);X&&(X.isMessageFailed=!0,X.isTemp=!1),console.log(D.response,"error"),this.errorMessage=(S=(x=(R=(w=D.response)==null?void 0:w.data)==null?void 0:R.message)!=null?x:(u=(T=(C=(y=D.response)==null?void 0:y.data)==null?void 0:C.errors)==null?void 0:T.file)==null?void 0:u[0])!=null?S:this.widgetLang.image_upload_error,this.uiFlags.isImageUploading=!1,this.newMessage=!0}},async sendMessage(e,t,n){var i,s,r;let a;if("content"in e.message){if(a={id:t,type:"temp_message",isTemp:!0,isMessageFailed:!1,status:"sending",attributes:{content:e.message.content,urls:null,agent_id:null,...e.message.parent_id&&{parent_id:e.message.parent_id}}},e.message.parent_id){const o=this.messages.find(l=>l.id===e.message.parent_id);o&&a.attributes&&(a.attributes={...a.attributes,parent_message_body:o.attributes.content,parent_message_urls:o.attributes.urls&&o.attributes.urls.length?o.attributes.urls:void 0})}n?this.updateMessage(a,t):this.updateMessage(a)}if(!((i=this.widgetData)!=null&&i.isChatInitialized)&&!((s=this.widgetData)!=null&&s.token)&&!this.chatHistoryData&&await this.getToken(),G.disconnected){const o=(r=this.messages)==null?void 0:r.find(l=>l.id===t);o&&(o.isMessageFailed=!0,o.isTemp=!1),ve({error:{message:"Socket disconnected"}});return}try{this.visitorId&&this.roomId&&!this.uiFlags.isStartingNewChat?G.emit(te.WIDGET_SEND_MESSAGE,e,async o=>{var p;if(o&&o.message&&o.message.data&&o.message.data.id&&this.fileMessageIdMapping.set(t,o.message.data.id),o.error){const w=(p=this.messages)==null?void 0:p.find(R=>R.id===t);w&&(w.isMessageFailed=!0,w.isTemp=!1),this.uiFlags.isMessageSending=!1,this.errorMessage=o.error.message,ve(o);return}const l={type:"conversation-messages",id:o.message.data.id,attributes:{content:o.message.data.attributes.message_body,urls:o.message.data.attributes.message_urls,agent_id:null,name:o.message.data.attributes.message_sender.name,created_at:o.message.data.attributes.message_created_at,...o.message.data.attributes}};this.updateMessage(l,t);const d=this.olderConversations.find(w=>w.id===e.conversation_id);d&&(d.attributes.latest_message=l.attributes),this.uiFlags.isMessageSending=!1,this.errorMessage=""}):(this.uiFlags.isCreatingChat=!0,this.uiFlags.isStartingNewChat=!1,G.emit(te.CREATE_CHAT,e,async o=>{var R,y;if(o.error){this.uiFlags.isCreatingChat=!1;const C=(R=this.messages)==null?void 0:R.find(T=>T.id===t);C&&(C.isMessageFailed=!0,C.isTemp=!1),this.uiFlags.isMessageSending=!1,this.errorMessage=o.error.message,ve(o);return}this.uiFlags.isConversationEnded=!1,this.isSocketConnected||(this.isSocketConnected=!0),this.setVisitorId(o.chat.data.attributes.contact.id),this.setRoomId(o.chat.data.attributes.latest_message.conversation_id),this.getMessages(o.chat.data.attributes.latest_message.conversation_id),this.addOlderConversation(o.chat.data);const l=JSON.stringify({token:(y=this.widgetData)==null?void 0:y.token,isChatInitialized:!0,conversationId:this.roomId});fe.dispatchEvent(ie.CONVERSATION_STARTED,l);const d=o.chat.data.attributes.latest_message.content,p=d!=null&&d.includes("New conversation initiated by:")?this.widgetLang.new_conversation_initiated:d,w={type:"conversation-messages",id:o.chat.data.id,attributes:{content:p,urls:o.chat.data.attributes.message_urls,agent_id:null,...o.chat.data.attributes}};this.updateMessage(w),this.uiFlags.isMessageSending=!1,this.errorMessage=""}))}catch{this.uiFlags.isMessageSending=!1}},async resendMessage(e){var a,i,s,r;if(e.attributes.urls&&["image","text","audio","video","application"].indexOf(e.attributes.urls[0].type)>-1){await this.sendFile(this.file,e.id,!0);return}const t={contact_id:this.visitorId,conversation_id:this.roomId,team_id:this.userId,widget_id:this.widgetId,online_status:"online",ip:((a=this.browserData)==null?void 0:a.ip)||"",origin_url:`${(i=this.widgetData)==null?void 0:i.origin}${(s=this.widgetData)==null?void 0:s.path}`,message:{type:"text",content:e.attributes.content}},n=(r=this.messages)==null?void 0:r.find(o=>o.id===e.id);n&&n.attributes.content&&await this.sendMessage(t,e.id,!0),n&&n.attributes.urls&&n.attributes.urls.length&&(t.message={urls:[{type:this.file.type,size:this.file.size,mime:this.file.type,original_file_name:this.file.name,content:e.attributes.urls[0].content}]},await this.sendMessage(t,e.id,!0))},async getMessages(e){var t,n,a,i;if(!this.uiFlags.isMessagesLoading){this.uiFlags.isMessagesLoading=!0,this.uiFlags.isChatStarted=!0;try{const s=await new Fe().getMessages(this.visitorId,this.widgetId,e,this.current_page);this.current_page===1?this.messages=s.data.reverse():this.messages=[...s.data.reverse(),...this.messages],this.total_page=((t=s.meta)==null?void 0:t.pagination.total_pages)||1;const r=(n=this.messages)==null?void 0:n.find(l=>l.attributes.agent_id);this.isAgentMessage=!!r;const o=(a=this.messages)==null?void 0:a.filter(l=>l.attributes.agent_id);o!=null&&o.length&&(this.onlineAgent=(i=this.agents)==null?void 0:i.find(l=>l.id===o[o.length-1].attributes.agent_id)),this.unreadMessagesCount&&this.activeState==="chat"&&this.markMessagesAsRead()}catch(s){console.log(s,"err")}finally{this.uiFlags.isConversationsLoading=!1,this.uiFlags.isMessagesLoading=!1,this.uiFlags.isCreatingChat=!1}}},async getMessagesByConversationId(e){var t,n,a,i;this.uiFlags.isMessagesLoading=!0,this.uiFlags.isChatStarted=!0;try{const s=await new Fe().getMessages(this.visitorId,this.widgetId,e);this.messages=s.data.reverse(),this.total_page=((t=s.meta)==null?void 0:t.pagination.total_pages)||1;const r=(n=this.messages)==null?void 0:n.find(l=>l.attributes.agent_id);this.isAgentMessage=!!r;const o=(a=this.messages)==null?void 0:a.filter(l=>l.attributes.agent_id);o!=null&&o.length&&(this.onlineAgent=(i=this.agents)==null?void 0:i.find(l=>l.id===o[o.length-1].attributes.agent_id)),this.unreadMessagesCount&&this.markMessagesAsRead()}catch(s){console.log(s,"err")}finally{this.uiFlags.isConversationsLoading=!1,this.uiFlags.isMessagesLoading=!1}},async getLinkPreview(e,t){this.uiFlags.isLinkPreviewLoading=!0;try{const n={params:{url:e}},{title:a,meta:i,is_valid:s,domain:r}=await new Fe().getLinkPreviewData(n),o={title:a.title,description:i.description,image:i.image,favicon:i.favicon,is_valid:s,url:e,domain:r};s&&this.updateLinkPreview(o,t),this.uiFlags.isLinkPreviewLoading=!1}catch{this.uiFlags.isLinkPreviewLoading=!1}},updateLinkPreview(e,t){var s;const n=(s=this.messages)==null?void 0:s.find(r=>r.id===t);if(!n)return;const a=n.attributes.message_link_previews||[];if(!a.find(r=>r.url===e.url)){a.push(e),n.attributes.message_link_previews=a;const r=n.attributes.apiResponses||[];r.push(e),n.attributes.apiResponses=r}},updateMessage(e,t){var s,r,o,l;if(t&&((s=e.attributes.urls)==null?void 0:s.length)){this.messages.map(d=>{d.id===t&&(d.attributes.urls=e.attributes.urls,d.isTemp=!1)});return}if(t){const d=(r=this.messages)==null?void 0:r.findIndex(p=>p.id===t);this.messages[d]=e;return}if(e.id&&!e.data&&e.type==="delete"){this.messages=this.messages.filter(d=>d.id!==e.id);return}if(!((o=this.messages)==null?void 0:o.find(d=>d.id===e.id)))this.messages=[...this.messages,e],this.newMessage=!0;else{const d=this.messages.findIndex(p=>p.id===e.id);this.messages[d]={...this.messages[d],...e}}if(!e.attributes.agent_id)return;const a=on(this.messages);let i=on(this.messages,"visitor");!i&&((l=e.attributes.translations)==null?void 0:l.length)&&(i=e.attributes.translations[0].language,this.messages[0].attributes.message_language=i),a&&a!=i&&e.attributes.translations&&e.attributes.translations.length&&Se().showTranslatedMessage(e.id)},updateEditedMessage(e){const t={type:"conversation-messages",id:e.data.id,attributes:{content:e.data.attributes.message_body,urls:e.data.attributes.message_urls,agent_id:e.data.attributes.message_sender.id,agent_name:e.data.attributes.message_sender.name,name:e.data.attributes.message_sender.name,agent_profile_pic_url:e.data.attributes.agent_profle_photo,...e.data.attributes}};this.refreshConversation(t),this.updateMessage(t)},updateProfile(e){return new Promise((t,n)=>{G.emit(te.PROFILE_UPDATE,e,a=>a.error?(ve(a),n(a)):(this.setUserName(a.profile.data.attributes.name),this.setUserEmail(a.profile.data.attributes.email),this.setUserPhone(a.profile.data.attributes.phone),this.setCountryCode(a.profile.data.attributes.country_dialing_code),this.setNameUpdated(a.profile.data.attributes.is_name_updated),t(a)))})},stopTyping(e){G.emit(te.TYPING_STOP,e,t=>{t.error&&ve(t)})},startTyping(e){G.emit(te.TYPING_START,e,t=>{t.error&&ve(t)})},createChat(){var t,n;const e={contact_id:this.visitorId,userId:this.userId,team_id:this.userId,widget_id:this.widgetId,origin_url:`${(t=this.widgetData)==null?void 0:t.origin}${(n=this.widgetData)==null?void 0:n.path}`,is_only_notify_agent:1};return new Promise((a,i)=>{G.emit(te.CREATE_CHAT,e,async s=>{var o;if(s.error)return this.errorMessage=s.error.message,ve(s),this.uiFlags.isCreatingChat=!1,i(s);this.setVisitorId(s.chat.data.attributes.contact_id),this.setRoomId(s.chat.data.id),this.addOlderConversation(s.chat.data),this.uiFlags.isStartingNewChat=!1;const r=JSON.stringify({token:(o=this.widgetData)==null?void 0:o.token,isChatInitialized:!0,conversationId:this.roomId});return this.uiFlags.isChatStarted=!0,fe.dispatchEvent(ie.CONVERSATION_STARTED,r),this.uiFlags.isCreatingChat=!1,this.errorMessage="",a(s)})})},async translateMessage(e){var a,i;const t=this.messages.find(s=>s.id==e);if(!t)return;t.attributes.isTranslating=!0;const n=(a=on(this.messages,"visitor"))!=null?a:navigator.language;try{const s=await new Fe().translateMessage(e,n);t.attributes.translations=(i=s.translated_text[e])==null?void 0:i.translations,t.attributes.isTranslated=!0}catch(s){console.log(s)}finally{t.attributes.isTranslating=!1}},showTranslatedMessage(e){const t=this.messages.find(n=>n.id==e);!t||(t.attributes.isTranslated=!0)},showOriginalMessage(e){const t=this.messages.find(n=>n.id==e);!t||(t.attributes.isTranslated=!1)},autoDisconnectAndConnectSocket(){var t;G.disconnect();const e=(t=this.widgetData)==null?void 0:t.token;G.io.opts.extraHeaders={Authorization:`Bearer ${e}`},G.connect()},updateLiveVisitorData(){var e,t;!((e=this.widgetData)!=null&&e.has_paid_access)||!((t=this.widgetData)!=null&&t.is_enable_live_visitor)||G.emit(te.VISITOR_META_UPDATED,this.getVisitorPayload)},sendSurveyResponse(e){this.uiFlags.isSurveySending=!0,e&&G.emit(te.WIDGET_SEND_MESSAGE,e,async t=>{if(t.error){this.errorMessage=t.error.message,this.uiFlags.isSurveySending=!1,ve(t);return}this.isSurveySelected=!0;const n={type:"conversation-messages",id:t.message.data.id,attributes:{content:t.message.data.attributes.message_body,urls:t.message.data.attributes.message_urls,agent_id:null,name:t.message.data.attributes.message_sender.name,created_at:t.message.data.attributes.message_created_at,meta:t.message.data.attributes.message_meta,...t.message.data.attributes}};this.updateMessage(n);const a=this.olderConversations.find(i=>i.id===e.conversation_id);a&&(a.attributes.latest_message=n.attributes),this.uiFlags.isSurveySending=!1,this.errorMessage=""})},submitUpdatedSurveyResponse(e){this.uiFlags.isSurveySending=!0,e&&G.emit(te.EDIT_WIDGET_MESSAGE,e,async t=>{if(t.error){this.errorMessage=t.error.message,this.uiFlags.isSurveySending=!1,ve(t);return}this.isSurveySelected=!0,this.errorMessage="",this.uiFlags.isSurveySending=!1})},setSelectedSurveyLang(){const e=this.widgetLang.lang;this.selectedSurveyLang=this.agents.filter(t=>t.type==="custom_lang_texts"&&t.attributes.model_type==="survey"&&t.attributes.lang===e)},setSelectedSubHeaderLang(){const e=this.widgetLang.lang;this.selectedSubHeaderLang=this.agents.filter(t=>t.type==="custom_lang_texts"&&t.attributes.model_type==="widget"&&t.attributes.type==="widget_sub_header"&&t.attributes.lang===e)},getSurveyData(){var r,o,l,d,p;const e=((r=this.agents.find(w=>w.type==="widget_survey"))==null?void 0:r.attributes)||{},t=(o=this.selectedSurveyLang.find(w=>w.attributes.content_type==="question"))==null?void 0:o.attributes.text,n=(l=this.selectedSurveyLang.find(w=>w.attributes.content_type==="response"))==null?void 0:l.attributes.text,a=(d=this.selectedSurveyLang.find(w=>w.attributes.content_type==="answer"))==null?void 0:d.attributes.text,i=(p=this.selectedSurveyLang.find(w=>w.attributes.content_type==="answer_type"))==null?void 0:p.attributes.text,s=typeof a=="string";this.surveyData={...e,question:t||e.question,automated_response:n||e.automated_response,answers:a&&s?JSON.parse(a):a&&!s?a:e.answer,answer_type:i||e.answer_type}},getSubHeaderText(){var n,a;const e=(n=this.widgetData)==null?void 0:n.sub_header,t=(a=this.selectedSubHeaderLang.find(i=>i.attributes.type==="widget_sub_header"))==null?void 0:a.attributes.text;this.subHeaderText=t||e},processUnreadMessages(e){var r;const t=e.filter(o=>o.attributes.unread_messages>0);if(t.length===0)return null;const n=t.filter(o=>!o.attributes.is_ended&&!o.attributes.is_resolved),a=n.length>0?n[0]:t[0],i=a.attributes.latest_message;return{agent:{type:"agents",id:i.agent.id,attributes:{online_status:i.agent.online_status,name:i.agent.name,team_id:i.agent.team_id,widget_id:a.attributes.widget.identifier,profile_photo_url:i.agent.profile.profile_photo_url,online_availability:i.agent.online_availability,visibility_hour_timezone:i.agent.visibility_hour_timezone}},message:i.content,message_html:((r=i.meta)==null?void 0:r.content_html)||null,type:i.content?"text":"attachment"}},async openConversation(){if(this.activeState="chat",!this.conversations.length)return;const e=this.conversations[0];if(!e.attributes.is_ended&&e.attributes.contact_id!==this.visitorId){await this.resumeConversation(e);return}try{this.roomId=e.id,this.visitorId=e.attributes.contact_id,this.uiFlags.isConversationEnded=e.attributes.is_ended,await this.getMessagesByConversationId(e.id)}catch(t){console.error("Failed to get messages by conversation id:",t)}}}}),ks="modulepreload",xs=function(e){return"/"+e},Jn={},je=function(t,n,a){return!n||n.length===0?t():Promise.all(n.map(i=>{if(i=xs(i),i in Jn)return;Jn[i]=!0;const s=i.endsWith(".css"),r=s?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${i}"]${r}`))return;const o=document.createElement("link");if(o.rel=s?"stylesheet":ks,s||(o.as="script",o.crossOrigin=""),o.href=i,document.head.appendChild(o),s)return new Promise((l,d)=>{o.addEventListener("load",l),o.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t())},Ht="/assets/loader.3bb1b94e.svg",de=(e,t)=>{const n=e.__vccOpts||e;for(const[a,i]of t)n[a]=i;return n},Ms={},Ss={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Es(e,t){return c(),g("svg",Ss,t[0]||(t[0]=[_("path",{d:"M18 6L6 18",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),_("path",{d:"M6 6L18 18",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))}const Cn=de(Ms,[["render",Es]]),Ba="/assets/send-1.15256df4.svg",As={key:0,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",style:{margin:"auto",background:"none",display:"block","shape-rendering":"auto"},width:"20px",height:"20px",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},hn=be({__name:"Loader",props:{isLoading:{type:Boolean}},setup(e){return(t,n)=>t.isLoading?(c(),g("svg",As,n[0]||(n[0]=[_("circle",{cx:"50",cy:"50",fill:"none",stroke:"#ffffff","stroke-width":"10",r:"35","stroke-dasharray":"164.93361431346415 56.97787143782138"},[_("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1s",values:"0 50 50;360 50 50",keyTimes:"0;1"})],-1)]))):k("",!0)}}),Ts={class:"relative"},Ds={class:"agent--profile--container"},Is={class:"agent--image--container"},Os=["src"],Fs={class:"agent--name"},Ps={key:0,class:"unread-message-count"},Ns=be({__name:"AgentList",setup(e){const t=Se(),n=v(()=>t.activeAgents.slice(0,5)),a=v(()=>{var s;return{color:(s=t.widgetData)==null?void 0:s.header_text_color}}),i=v(()=>{var s;return{border:`2px solid ${(s=t.widgetData)==null?void 0:s.avatar_border_color}`}});return(s,r)=>{const o=mt("tooltip");return c(),g("div",Ts,[_("div",Ds,[(c(!0),g(me,null,We(n.value,(l,d)=>(c(),g("div",{key:l.id,class:"agent--profile"},[_("div",null,[_("div",Is,[l.attributes.profile_photo_url?Ae((c(),g("img",{key:0,src:l.attributes.resized_profile_photo_url||l.attributes.profile_photo_url,alt:"",class:"agent--image",style:oe(i.value)},null,12,Os)),[[o,{content:l.attributes.name,container:!1},void 0,{bottom:!0}]]):Ae((c(),g("div",{key:1,class:"agent--initials",style:oe([i.value,a.value])},[Re(H(h(Rt)(l.attributes.name)),1)],4)),[[o,{content:l.attributes.name,triggers:["hover"],container:!1},void 0,{bottom:!0}]]),h(t).activeAgents.length>5&&d===4?Ae((c(),g("div",{key:2,class:"agent--initials more--agent",style:oe([i.value,a.value])},[Re(H(h(t).activeAgents.length-5),1)],4)),[[o,{content:`${h(t).activeAgents.length-5} more agent(s)`,triggers:["hover"],container:!1},void 0,{bottom:!0}]]):k("",!0)]),_("div",Fs,H(l.attributes.name),1)])]))),128))]),h(t).unreadMessagesCount&&h(t).isAgentOnline&&h(t).activeConversations.length===1?(c(),g("div",Ps,H(h(t).unreadMessagesCount),1)):k("",!0)])}}});const Vs=de(Ns,[["__scopeId","data-v-cd93cfc8"]]),Rs="/assets/chevron-left.c4d0df5a.svg",Ha="/assets/chevron-right.fd40ead8.svg",Bs="/assets/chevron-left-black.8ba4bae9.svg",Hs={},Us={width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function js(e,t){return c(),g("svg",Us,t[0]||(t[0]=[_("path",{d:"M9.99984 18.3334C14.6022 18.3334 18.3332 14.6025 18.3332 10.0001C18.3332 5.39771 14.6022 1.66675 9.99984 1.66675C5.39746 1.66675 1.6665 5.39771 1.6665 10.0001C1.6665 14.6025 5.39746 18.3334 9.99984 18.3334Z",stroke:"currentColor","stroke-width":"1.25","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),_("path",{d:"M7.5752 7.49999C7.77112 6.94304 8.15782 6.47341 8.66682 6.17426C9.17583 5.87512 9.77427 5.76577 10.3562 5.86558C10.9381 5.96539 11.4659 6.26792 11.8461 6.71959C12.2263 7.17126 12.4344 7.74292 12.4335 8.33332C12.4335 9.99999 9.93353 10.8333 9.93353 10.8333",stroke:"currentColor","stroke-width":"1.25","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),_("path",{d:"M10 14.1667H10.0083",stroke:"currentColor","stroke-width":"1.25","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))}const Zs=de(Hs,[["render",js]]),Gs={key:0},qs={class:"faq-header"},Ws=["onClick"],zs={key:0,class:"chevron-left-icon",src:Rs,alt:"icon"},Ys={key:1,class:"chevron-right-icon",src:Ha,alt:"icon"},Ks={class:"w-8 h-8 bg-grey100 rounded-md flex items-center justify-center"},Js={key:0,class:"chevron-right-icon",src:Ha,alt:"icon"},Xs={key:1,class:"chevron-left-icon",src:Bs,alt:"icon"},Qs=["innerHTML"],e1=be({__name:"Faqs",setup(e){const t=Se(),n=J(null),a=J("slide-left"),i=v(()=>t.isRtl),s=v(()=>t.showFaqInNewTab),r=v(()=>({background:"#E6E6F0",color:"#282D3E"})),o=d=>{a.value=i.value?"slide-left":"slide-right",n.value=d},l=()=>{a.value=i.value?"slide-right":"slide-left",n.value=null};return(d,p)=>(c(),g("div",{class:j(["faq-wrap",{rtl:i.value,"h-full":s.value}]),style:oe(s.value?"margin: 0.7rem 0.5rem":"margin: 0.7rem 0")},[le(Sa,{name:a.value,mode:"out-in"},{default:Ma(()=>[n.value?n.value?(c(),g("div",{key:1,class:j(["faq-selected",{rtl:i.value}])},[_("div",{class:"faq-selected-header",onClick:dt(l,["prevent"])},[_("div",Ks,[i.value?(c(),g("img",Js)):(c(),g("img",Xs))]),_("div",{class:j(["faq-selected-question",{rtl:h(ce)(n.value.question)}])},H(n.value.question),3)]),_("div",{style:oe([s.value?{maxHeight:"100vh",overflowY:"auto",paddingBottom:"300px !important"}:""]),class:j(["faq-answer text-left faq-answer text-sm leading-140",{"rtl text-right":h(ce)(n.value.answer)}]),innerHTML:n.value.answer},null,14,Qs)],2)):k("",!0):(c(),g("div",Gs,[_("div",qs,[_("div",{class:"help-icon-wrap",style:oe(r.value)},[le(Zs,{class:"help-icon"})],4),_("div",{class:j(["faq-header-text",{"rtl text-left":h(ce)(h(t).widgetLang.faq)}])},H(h(t).widgetLang.faq),3)]),_("div",{class:"faq-list",style:oe([s.value?{maxHeight:"100vh",overflowY:"auto",paddingBottom:"220px !important"}:""])},[(c(!0),g(me,null,We(h(t).faqs,w=>(c(),g("div",{key:w.id,class:"faq-item",onClick:dt(R=>o(w),["prevent"])},[_("div",{class:j(["faq-question",{rtl:h(ce)(w.question)}])},H(w.question),3),i.value?(c(),g("img",zs)):(c(),g("img",Ys))],8,Ws))),128))],4)]))]),_:1},8,["name"])],6))}});const Xn=de(e1,[["__scopeId","data-v-9425ca52"]]),Ua="/assets/copied.02ca081b.svg",ja="/assets/copy.4a1fad6b.svg",t1="/assets/external.5c27c24a.svg",n1={},a1={width:"56",height:"56",viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function i1(e,t){return c(),g("svg",a1,t[0]||(t[0]=[_("circle",{cx:"28",cy:"28",r:"28",fill:"currentColor"},null,-1),_("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M37.9602 18.0958C36.6666 16.7936 35.1273 15.7611 33.4318 15.0581C31.7362 14.355 29.918 13.9954 28.0824 14C20.3856 14 14.1198 20.2643 14.1167 27.9643C14.1167 30.4252 14.7591 32.8269 15.9802 34.9456L14 42.1805L21.4029 40.2376C23.4506 41.3523 25.7448 41.9368 28.0762 41.9378H28.0824C35.7778 41.9378 42.0436 35.6736 42.0467 27.9736C42.0519 26.1388 41.6935 24.3211 40.9921 22.6257C40.2907 20.9302 39.2602 19.3906 37.9602 18.0958ZM28.0824 39.5812H28.0778C25.9988 39.5814 23.9581 39.022 22.1698 37.9618L21.7467 37.7098L17.3538 38.8625L18.5251 34.58L18.2498 34.1414C17.0874 32.2909 16.4721 30.1495 16.4749 27.9643C16.478 21.5647 21.6844 16.3583 28.0871 16.3583C29.6119 16.3549 31.1223 16.6539 32.5308 17.2382C33.9393 17.8224 35.2179 18.6802 36.2927 19.7618C37.3732 20.8383 38.2296 22.1183 38.8125 23.5278C39.3953 24.9373 39.6931 26.4484 39.6884 27.9736C39.6853 34.3732 34.4789 39.5812 28.0824 39.5812Z",fill:"white"},null,-1),_("path",{d:"M32.063 29.7514C32.3835 29.8681 34.0977 30.7112 34.4477 30.887C34.7946 31.0612 35.0295 31.1499 35.1166 31.2961C35.2037 31.4423 35.2037 32.1407 34.9128 32.9559C34.6219 33.771 33.2282 34.5145 32.5577 34.6141C31.9557 34.7027 31.195 34.7416 30.3597 34.4756C29.8542 34.3139 29.2039 34.0992 28.3702 33.7399C24.8702 32.2279 22.5835 28.7045 22.4093 28.4712L22.4047 28.4651C22.2144 28.2103 20.9844 26.5638 20.9844 24.8607C20.9844 23.1434 21.885 22.3003 22.2055 21.9503C22.3224 21.8174 22.4656 21.7102 22.6259 21.6352C22.7862 21.5603 22.9603 21.5193 23.1373 21.5147C23.3598 21.5139 23.5823 21.5181 23.8046 21.5272C24.0193 21.5365 24.307 21.4463 24.5886 22.123C24.8795 22.8214 25.5779 24.5387 25.665 24.7145C25.7537 24.8887 25.8113 25.0925 25.6946 25.3259C25.5779 25.5592 25.5204 25.7039 25.3462 25.9076C25.1719 26.1114 24.9806 26.3634 24.8235 26.519C24.6477 26.6932 24.4657 26.8814 24.6695 27.2314C24.8733 27.5814 25.5733 28.7232 26.6108 29.6487C27.9439 30.8372 29.0686 31.2059 29.417 31.3801C29.7655 31.5543 29.9693 31.5263 30.173 31.293C30.3768 31.0596 31.0457 30.2741 31.279 29.9256C31.5124 29.5772 31.7442 29.6347 32.063 29.7514Z",fill:"white"},null,-1)]))}const s1=de(n1,[["render",i1]]),r1={},o1={width:"39",height:"39",viewBox:"0 0 39 39",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function d1(e,t){return c(),g("svg",o1,t[0]||(t[0]=[_("circle",{cx:"19.4395",cy:"19.4395",r:"19.4395",fill:"currentColor"},null,-1),_("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.60298 0H16.9194C18.351 0 19.5224 1.19321 19.5224 2.65158V14.5838C19.5224 16.0421 18.351 17.2354 16.9194 17.2354H7.4185L3.64418 20.4173C3.51402 20.5499 3.38388 20.5499 3.25372 20.5499H2.99344C2.73314 20.4173 2.60298 20.1521 2.60298 19.887V17.2354C1.17134 17.2354 0 16.0421 0 14.5838V2.65158C0 1.19321 1.17134 0 2.60298 0ZM2.60316 11.2696C2.60316 11.6673 2.86346 11.9325 3.25391 11.9325H4.5554C5.5966 11.9325 6.50764 11.0044 6.50764 9.94376C6.50764 8.88312 5.5966 7.95505 4.5554 7.95505C4.16496 7.95505 3.90465 7.68991 3.90465 7.29218C3.90465 6.89441 4.16496 6.62927 4.5554 6.62927H5.85689C6.24733 6.62927 6.50764 6.36411 6.50764 5.96637C6.50764 5.56863 6.24733 5.30347 5.85689 5.30347H4.5554C3.51421 5.30347 2.60316 6.23154 2.60316 7.29218C2.60316 8.35281 3.51421 9.28085 4.5554 9.28085C4.94585 9.28085 5.20613 9.54602 5.20613 9.94376C5.20613 10.3415 4.94585 10.6067 4.5554 10.6067H3.25391C2.86346 10.6067 2.60316 10.8718 2.60316 11.2696ZM14.9678 11.9325H13.6664C13.2759 11.9325 13.0156 11.6673 13.0156 11.2696C13.0156 10.8718 13.2759 10.6067 13.6664 10.6067H14.9678C15.3583 10.6067 15.6186 10.3415 15.6186 9.94376C15.6186 9.54602 15.3583 9.28085 14.9678 9.28085C13.9267 9.28085 13.0156 8.35281 13.0156 7.29218C13.0156 6.23154 13.9267 5.30347 14.9678 5.30347H16.2693C16.6598 5.30347 16.9201 5.56863 16.9201 5.96637C16.9201 6.36411 16.6598 6.62927 16.2693 6.62927H14.9678C14.5774 6.62927 14.3171 6.89441 14.3171 7.29218C14.3171 7.68991 14.5774 7.95505 14.9678 7.95505C16.009 7.95505 16.9201 8.88312 16.9201 9.94376C16.9201 11.0044 16.009 11.9325 14.9678 11.9325ZM10.4126 11.2697C10.4126 11.6674 10.6729 11.9326 11.0633 11.9326C11.4538 11.9326 11.7141 11.6674 11.8442 11.2697V5.96649C11.8442 5.70135 11.5839 5.43619 11.3236 5.30362C10.9332 5.30362 10.6729 5.43619 10.5427 5.70135L9.76186 7.15973L8.98094 5.70135C8.85081 5.43619 8.46034 5.17102 8.20006 5.30362C7.93977 5.43619 7.67946 5.70135 7.67946 5.96649V11.2697C7.67946 11.6674 7.93977 11.9326 8.33022 11.9326C8.72066 11.9326 8.98094 11.6674 8.98094 11.2697V8.75067L9.1111 8.88327C9.37138 9.28101 10.0221 9.28101 10.2825 8.88327L10.4126 8.75067V11.2697Z",transform:"translate(9.67801 10.4601)",fill:"white"},null,-1)]))}const l1=de(r1,[["render",d1]]),u1={width:"39",height:"39",viewBox:"0 0 39 39",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c1=be({__name:"Instagram",props:{style:{}},setup(e){return(t,n)=>{var a;return c(),g("svg",u1,[n[0]||(n[0]=tt('',1)),_("circle",{cx:"19.5",cy:"19.5",r:"19.5",fill:"url(#instagram)",style:oe({fill:(a=t.style)==null?void 0:a.color})},null,4),n[1]||(n[1]=_("path",{xmlns:"http://www.w3.org/2000/svg","fill-rule":"evenodd","clip-rule":"evenodd",d:"M18.3682 12.0225H14.7069L14.7072 12.0146H8.34406C7.68102 12.0146 7.37264 12.8369 7.87214 13.2729L12.3314 17.1655L12.3349 17.1575L14.2487 18.8409L15.5297 20.0303L15.8136 30.1568C15.8335 30.8679 16.7223 31.1766 17.1788 30.6311L18.1515 29.4688L18.1501 29.4639L23.0436 23.4746L23.042 23.4662L27.0348 18.6748L27.0342 18.6702L31.5963 13.1853C31.9852 12.7178 31.6527 12.0088 31.0446 12.0088H26.8826L26.8812 12.0117H22.4407C22.4384 12.0117 22.4361 12.0154 22.4339 12.0225H22.4305L22.4307 12.0166H18.3682V12.0225ZM22.144 22.3959L22.1417 22.3907L26.4497 17.1663L26.4485 17.1572C26.8174 16.7145 28.1257 14.9555 28.2462 14.748L26.9385 15.4023L26.9341 15.4013L22.3595 17.6036L22.3592 17.6022L18.7611 19.3095L18.7628 19.3125L18.5032 19.4318L18.2248 19.5631L17.9411 19.6897C17.6515 19.764 17.0784 20.0395 17.0784 20.5547C17.0784 21.0538 17.192 25.532 17.2547 27.9372C17.2572 28.0334 17.373 28.0799 17.442 28.0129L17.6881 27.7738L22.144 22.3959ZM26.5753 14.0135L26.5753 14.0117L27.625 13.4429H27.3214H14.6612L14.6611 13.445H10.3521L12.4872 15.351L12.487 15.3582L16.0313 18.4673C16.3197 18.7229 16.6615 18.7989 16.9921 18.6007L17.5635 18.2922L22.2794 16.0459L22.2799 16.048L26.5753 14.0135Z",fill:"white"},null,-1))])}}}),g1={},h1={width:"56",height:"56",viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function _1(e,t){return c(),g("svg",h1,t[0]||(t[0]=[tt('',3)]))}const f1=de(g1,[["render",_1]]),m1={width:"39",height:"39",viewBox:"0 0 39 39",fill:"none",xmlns:"http://www.w3.org/2000/svg"},p1=be({__name:"Telegram",props:{style:{}},setup(e){return(t,n)=>{var a;return c(),g("svg",m1,[n[0]||(n[0]=_("linearGradient",{id:"telegram",x1:"0.892",y1:"0.192",x2:"0.128",y2:"0.85",gradientUnits:"objectBoundingBox"},[_("stop",{offset:"0","stop-color":"#1D93D2"}),_("stop",{offset:"1","stop-color":"#38B0E3"})],-1)),_("circle",{cx:"19.4395",cy:"19.4395",r:"19.4395",fill:"url(#telegram)",style:oe({fill:(a=t.style)==null?void 0:a.color})},null,4),n[1]||(n[1]=_("path",{d:"M3.56917 -2.55497e-07L0 6.42978L7.5349 1.87535L3.56917 -2.55497e-07Z",transform:"translate(13.9704 24.6145)",fill:"#E0E0E0"},null,-1)),n[2]||(n[2]=_("path",{d:"M20.8862 0.133954C20.754 0 20.4897 0 20.2253 0L0.396574 8.03723C0.132191 8.17118 0 8.43909 0 8.707C0 8.97491 0.132191 9.24282 0.396574 9.37677L17.5814 17.414C17.7136 17.414 17.7136 17.414 17.8458 17.414C17.978 17.414 18.1102 17.414 18.1102 17.28C18.2424 17.1461 18.3746 17.0121 18.5068 16.7442L21.1506 0.669769C21.1506 0.535815 21.1506 0.267908 20.8862 0.133954Z",transform:"translate(7.36069 10.9512)",fill:"white"},null,-1)),n[3]||(n[3]=_("path",{d:"M13.8801 0L0 11.52V19.4233L3.70136 13.2614L13.8801 0Z",transform:"translate(13.9704 11.6208)",fill:"#F2F2F2"},null,-1))])}}}),$1={},v1={width:"39",height:"39",viewBox:"0 0 39 39",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function y1(e,t){return c(),g("svg",v1,t[0]||(t[0]=[tt('',6)]))}const C1=de($1,[["render",y1]]),b1={},w1={width:"39",height:"39",viewBox:"0 0 39 39",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function L1(e,t){return c(),g("svg",w1,t[0]||(t[0]=[_("circle",{cx:"19.4395",cy:"19.4395",r:"19.4395",fill:"currentColor"},null,-1),_("path",{d:"M17.3707 6.90938C15.0508 7.03077 13.0281 7.71242 11.3888 9.26248C9.73039 10.8312 8.97307 12.7455 9.18397 15.1172C8.27327 15.0052 7.44884 14.8838 6.61482 14.8184C6.32723 14.7904 5.99171 14.8278 5.74246 14.9585C4.93721 15.4067 4.16071 15.9016 3.24042 16.4619C3.41298 15.7242 3.51843 15.0705 3.71015 14.4449C3.85395 13.9874 3.78685 13.7353 3.35546 13.4364C0.584998 11.5222 -0.594125 8.65553 0.287821 5.69547C1.10266 2.95952 3.09663 1.30674 5.80957 0.447674C9.50991 -0.728879 13.68 0.475687 15.9232 3.33303C16.738 4.36952 17.2365 5.53673 17.3707 6.90938ZM6.69152 5.98494C6.71069 5.44336 6.23137 4.95779 5.65619 4.93912C5.07142 4.92044 4.5921 5.35932 4.57293 5.91958C4.55375 6.48918 5.00431 6.94673 5.58908 6.95607C6.18344 6.97474 6.67234 6.53587 6.69152 5.98494ZM12.2612 4.93912C11.686 4.94846 11.2067 5.42468 11.2163 5.96627C11.2259 6.52653 11.7052 6.9654 12.29 6.9654C12.8843 6.95607 13.3253 6.51719 13.3253 5.93825C13.3157 5.37799 12.846 4.92978 12.2612 4.93912Z",transform:"translate(7 9)",fill:"white"},null,-1),_("path",{d:"M12.48 13.2605C11.7418 12.943 11.0708 12.4668 10.3518 12.3921C9.63283 12.3174 8.88509 12.7189 8.13735 12.7936C5.8558 13.0177 3.8139 12.4014 2.13629 10.8887C-1.06556 8.00334 -0.605416 3.57726 3.09492 1.21482C6.38305 -0.886168 11.2146 -0.185839 13.5345 2.72753C15.5572 5.26739 15.3175 8.64764 12.8538 10.786C12.1349 11.4023 11.876 11.9158 12.3362 12.7282C12.4225 12.8776 12.432 13.0737 12.48 13.2605ZM4.11108 5.3701C4.58081 5.3701 4.96426 5.01527 4.98344 4.56706C5.00261 4.09084 4.60957 3.68932 4.12066 3.68932C3.63176 3.68932 3.22913 4.09084 3.2483 4.55772C3.26748 5.00593 3.65093 5.3701 4.11108 5.3701ZM9.5082 3.68932C9.05764 3.68932 8.6646 4.04415 8.64543 4.49236C8.62626 4.96858 9.00971 5.36077 9.48903 5.36077C9.95876 5.36077 10.3326 5.01527 10.3422 4.55772C10.371 4.09084 9.98752 3.68932 9.5082 3.68932Z",transform:"translate(17.1057 16.7395)",fill:"white"},null,-1)]))}const k1=de(b1,[["render",L1]]),x1={},M1={width:"39",height:"39",viewBox:"0 0 39 39",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function S1(e,t){return c(),g("svg",M1,t[0]||(t[0]=[_("circle",{cx:"19.4395",cy:"19.4395",r:"19.4395",fill:"currentColor"},null,-1),_("path",{d:"M19.3929 14.9176C17.752 14.7684 16.2602 14.3209 14.7684 13.7242C14.0226 13.4259 13.1275 13.7242 12.8292 14.4701L11.7849 16.2602C8.65222 14.6193 6.11623 11.9341 4.47529 8.95057L6.41458 7.90634C7.16046 7.60799 7.45881 6.71293 7.16046 5.96705C6.56375 4.47529 6.11623 2.83435 5.96705 1.34259C5.96705 0.596704 5.22117 0 4.47529 0H0.745882C0.298353 0 5.69062e-07 0.298352 5.69062e-07 0.745881C5.69062e-07 3.72941 0.596704 6.71293 1.93929 9.3981C3.87858 13.575 7.30964 16.8569 11.3374 18.7962C14.0226 20.1388 17.0061 20.7355 19.9896 20.7355C20.4371 20.7355 20.7355 20.4371 20.7355 19.9896V16.4094C20.7355 15.5143 20.1388 14.9176 19.3929 14.9176Z",transform:"translate(9.07179 9.07178)",fill:"white"},null,-1)]))}const E1=de(x1,[["render",S1]]),A1={},T1={width:"39",height:"39",viewBox:"0 0 39 39",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function D1(e,t){return c(),g("svg",T1,t[0]||(t[0]=[tt('',7)]))}const I1=de(A1,[["render",D1]]),O1={},F1={width:"56",height:"56",viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function P1(e,t){return c(),g("svg",F1,t[0]||(t[0]=[tt('',3)]))}const N1=de(O1,[["render",P1]]),V1={},R1={width:"56",height:"56",viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function B1(e,t){return c(),g("svg",R1,t[0]||(t[0]=[_("rect",{width:"56",height:"56",rx:"28",fill:"currentColor"},null,-1),_("path",{d:"M34.9869 23.5514C37.0531 25.0276 39.5843 25.8962 42.3181 25.8962V20.6382C41.8008 20.6383 41.2847 20.5844 40.7785 20.4772V24.616C38.0449 24.616 35.5141 23.7474 33.4473 22.2713V33.0012C33.4473 38.3689 29.0938 42.72 23.7237 42.72C21.72 42.72 19.8576 42.1145 18.3105 41.0761C20.0763 42.8806 22.5387 44 25.263 44C30.6334 44 34.9872 39.649 34.9872 34.2811V23.5514H34.9869ZM36.8862 18.2467C35.8303 17.0937 35.137 15.6036 34.9869 13.9563V13.28H33.528C33.8952 15.3738 35.1478 17.1626 36.8862 18.2467ZM21.7071 36.9571C21.1172 36.184 20.7983 35.2382 20.7998 34.2657C20.7998 31.8108 22.7911 29.8202 25.2478 29.8202C25.7056 29.8201 26.1607 29.8902 26.5971 30.0286V24.6531C26.0872 24.5833 25.5725 24.5536 25.0581 24.5645V28.7485C24.6215 28.6101 24.1662 28.5398 23.7082 28.5403C21.2515 28.5403 19.2603 30.5306 19.2603 32.9859C19.2603 34.7219 20.2556 36.225 21.7071 36.9571Z",fill:"#FF004F"},null,-1),_("path",{d:"M33.4531 22.2712C35.5198 23.7473 38.0507 24.6159 40.7843 24.6159V20.4771C39.2584 20.1523 37.9076 19.3553 36.8919 18.2467C35.1535 17.1625 33.9009 15.3737 33.5337 13.28H29.7013V34.2809C29.6927 36.7292 27.7048 38.7116 25.2533 38.7116C23.8087 38.7116 22.5253 38.0233 21.7125 36.9572C20.2611 36.225 19.2658 34.7218 19.2658 32.986C19.2658 30.5309 21.257 28.5404 23.7137 28.5404C24.1844 28.5404 24.6381 28.6136 25.0637 28.7486V24.5646C19.7879 24.6735 15.5449 28.9821 15.5449 34.281C15.5449 36.9262 16.6015 39.3241 18.3164 41.0763C19.8635 42.1145 21.7258 42.7201 23.7295 42.7201C29.0997 42.7201 33.4532 38.3688 33.4532 33.0012V22.2712H33.4531Z",fill:"black"},null,-1),_("path",{d:"M40.7788 20.4771V19.358C39.4029 19.3601 38.0539 18.9749 36.8865 18.2466C37.9199 19.3774 39.2807 20.1572 40.7788 20.4771ZM33.5283 13.28C33.4932 13.0799 33.4663 12.8785 33.4476 12.6763V12H28.1562V33.0011C28.1477 35.449 26.16 37.4314 23.7083 37.4314C22.9885 37.4314 22.3089 37.2606 21.7071 36.9572C22.5199 38.0233 23.8033 38.7114 25.2479 38.7114C27.6991 38.7114 29.6873 36.7292 29.6959 34.2809V13.28H33.5283ZM25.0584 24.5645V23.3732C24.6163 23.3128 24.1705 23.2825 23.7242 23.2827C18.3536 23.2826 14 27.6338 14 33.0011C14 36.366 15.711 39.3316 18.3111 41.076C16.5962 39.324 15.5396 36.9259 15.5396 34.2808C15.5396 28.982 19.7825 24.6735 25.0584 24.5645Z",fill:"#00F2EA"},null,-1)]))}const H1=de(V1,[["render",B1]]),U1={},j1={width:"56",height:"56",viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Z1(e,t){return c(),g("svg",j1,t[0]||(t[0]=[tt('',3)]))}const G1=de(U1,[["render",Z1]]),q1={},W1={width:"56",height:"56",viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function z1(e,t){return c(),g("svg",W1,t[0]||(t[0]=[tt('',3)]))}const Y1=de(q1,[["render",z1]]),K1={},J1={width:"56",height:"56",viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function X1(e,t){return c(),g("svg",J1,t[0]||(t[0]=[tt('',6)]))}const Q1=de(K1,[["render",X1]]),er=["src","alt"],tr=be({__name:"ChannelIcon",props:{channel:{}},setup(e){const t=e,n=v(()=>{var s;return(s=t.channel.name)==null?void 0:s.toLowerCase()}),a=v(()=>{if(t.channel.icon_color)return t.channel.icon_color;switch(n.value){case"whatsapp":return"#49E670";case"sms":return"#FF549C";case"line":return"#06C755";case"wechat":return"#2DC100";case"phone":return"#0209B1";case"email":return"#63A7FF";case"tiktok":return"#FFFFFF";case"discord":return"#5865F2";case"google_maps":return"#FFFFFF";case"waze":return"#32CDFE";case"facebook_messenger":return"#0365FE";case"custom":return"#282D3E";default:return""}}),i={whatsapp:s1,sms:l1,instagram:c1,facebook_messenger:f1,telegram:p1,line:C1,wechat:k1,phone:E1,custom:I1,email:N1,tiktok:H1,discord:G1,google_maps:Y1,waze:Q1};return(s,r)=>s.channel.custom_image_url?(c(),g("img",{key:0,src:s.channel.custom_image_url,style:oe({background:a.value}),alt:n.value},null,12,er)):(c(),Ce(hi(i[n.value]),{key:1,style:oe({color:a.value})},null,8,["style"]))}}),nr={},ar={width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function ir(e,t){return c(),g("svg",ar,t[0]||(t[0]=[_("path",{d:"M10.5 3H3.5V10H10.5V3Z",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),_("path",{d:"M21.5 3H14.5V10H21.5V3Z",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),_("path",{d:"M21.5 14H14.5V21H21.5V14Z",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),_("path",{d:"M10.5 14H3.5V21H10.5V14Z",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))}const Za=de(nr,[["render",ir]]),sr={class:"channels-wrap"},rr={class:"channel-header"},or=["onClick"],dr={class:"channel-content"},lr={key:0,class:"wechat-id"},ur=["onClick"],cr={key:0,src:Ua,alt:""},gr={key:1,src:ja,alt:""},hr={key:0,class:"icon-wrap"},_r=["onClick"],fr={key:0,src:Ua,alt:""},mr={key:1,src:ja,alt:""},pr=["src"],$r=be({__name:"ContactChanels",setup(e){const t=Se(),n=J(!1),a=J(!1),i=v(()=>t.channels),s=v(()=>({background:"#E6E6F0",color:"#282D3E"})),r=y=>{if(!y.value||y.name=="Wechat")return;let C=y.value,T=t.isMobile?"_self":"_blank";switch(y.name.toLowerCase()){case"whatsapp":C=t.isMobile?`https://wa.me/${o(y.value)}`:`https://web.whatsapp.com/send/?phone=${o(y.value)}`;break;case"sms":C=`sms:+${o(y.value)}`,T="_self";break;case"instagram":C=`https://ig.me/m/${d(y.value)}`;break;case"facebook_messenger":C=`https://m.me/${d(y.value)}`;break;case"telegram":C=`https://t.me/${d(y.value)}`;break;case"phone":C=`tel:+${o(y.value)}`,T="_self";break;case"line":C=y.value.startsWith("https://lin.ee")?y.value:`https://line.me/R/ti/p/${d(y.value)}`;break;case"email":C=`mailto:${y.value}?subject=${encodeURIComponent(y.preset_email_subject||"")}`,T="_self",R(y.value);break;case"tiktok":C=`https://www.tiktok.com/@${d(y.value).replace(/^@/,"")}`;break}T==="_self"?fe.dispatchEvent(ie.OPEN_CONTACT_CHANNEL,JSON.stringify({channelUrl:C,target:T})):window.open(C,T)},o=y=>l(y,"+").replace(/[ \-_]/g,""),l=(y,C)=>{const T=C.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),u=new RegExp(`^${T}+|${T}+$`,"g");return y.trim().replace(u,"")},d=y=>{if(y.startsWith("page.line.me")||y.startsWith("https://page.line.me"))return y;if(y.startsWith("http")||y.startsWith("www")||y.startsWith("line.me")||y.startsWith("t.me")||y.startsWith("m.me")||y.startsWith("ig.me")||y.startsWith("instagram.com")||y.startsWith("facebook.com")){const C=[/line\.me\/R\/ti\/p\/([^/]+)/,/ig\.me\/m\/([^/]+)/,/m\.me\/([^/]+)/,/t\.me\/([^/]+)/,/instagram\.com\/([^/?]+)/,/facebook\.com\/([^/?]+)/];for(const T of C){const u=y.match(T);if(u)return u[1]}return""}else return y},p=y=>y.name=="Wechat",w=y=>{fe.dispatchEvent(ie.COPY_TO_CLIPBOARD,JSON.stringify({text:y})),n.value=!0,setTimeout(()=>{n.value=!1},2e3)},R=y=>{fe.dispatchEvent(ie.COPY_TO_CLIPBOARD,JSON.stringify({text:y})),a.value=!0,setTimeout(()=>{a.value=!1},2e3)};return(y,C)=>(c(),g("div",sr,[_("div",rr,[_("div",{class:"help-icon-wrap",style:oe(s.value)},[le(Za,{class:"help-icon"})],4),_("div",{class:j(["channel-header-text",{rtl:h(ce)(h(t).widgetLang.channels)}])},H(h(t).widgetLang.channels),3)]),(c(!0),g(me,null,We(i.value,T=>(c(),g("div",{key:T.name,onClick:u=>r(T),class:"channel",style:oe(p(T)?"align-items: start;":"align-items: center;")},[_("div",dr,[le(tr,{class:"channel-image",channel:T},null,8,["channel"]),_("div",null,[_("div",{class:j(["channel-text",{"rtl text-left":h(ce)(T.text)}])},H(T.text),3),p(T)?(c(),g("div",lr,[_("span",null,[C[0]||(C[0]=Re(" ID: ")),_("span",{class:j({"rtl inline-block":h(ce)(T.value)})},H(T.value),3)]),_("button",{onClick:u=>w(T.value),class:"btn-copy",style:oe(n.value?"background: #27B83614;":"")},[n.value?(c(),g("img",cr)):(c(),g("img",gr))],12,ur)])):k("",!0)])]),p(T)?k("",!0):(c(),g("div",hr,[T.name=="Email"?(c(),g("button",{key:0,onClick:dt(u=>R(T.value),["stop"]),class:"btn-copy",style:oe(a.value?"background: #27B83614;":"")},[a.value?(c(),g("img",fr)):(c(),g("img",mr))],12,_r)):k("",!0),C[1]||(C[1]=_("img",{src:t1,alt:"external link"},null,-1))])),T.qr_code_url?(c(),g("img",{key:1,src:T.qr_code_url,class:"qr-code",alt:"qr-code"},null,8,pr)):k("",!0)],12,or))),128))]))}});const vr=de($r,[["__scopeId","data-v-d261830c"]]),yr="/assets/check-circle.b0e77818.svg",Cr="/assets/upload.9f18a830.svg",br=[["Afghanistan (\u202B\u0627\u0641\u063A\u0627\u0646\u0633\u062A\u0627\u0646\u202C\u200E)","af","93"],["Albania (Shqip\xEBri)","al","355"],["Algeria (\u202B\u0627\u0644\u062C\u0632\u0627\u0626\u0631\u202C\u200E)","dz","213"],["American Samoa","as","1",5,["684"]],["Andorra","ad","376"],["Angola","ao","244"],["Anguilla","ai","1",6,["264"]],["Antigua and Barbuda","ag","1",7,["268"]],["Argentina","ar","54"],["Armenia (\u0540\u0561\u0575\u0561\u057D\u057F\u0561\u0576)","am","374"],["Aruba","aw","297"],["Ascension Island","ac","247"],["Australia","au","61",0],["Austria (\xD6sterreich)","at","43"],["Azerbaijan (Az\u0259rbaycan)","az","994"],["Bahamas","bs","1",8,["242"]],["Bahrain (\u202B\u0627\u0644\u0628\u062D\u0631\u064A\u0646\u202C\u200E)","bh","973"],["Bangladesh (\u09AC\u09BE\u0982\u09B2\u09BE\u09A6\u09C7\u09B6)","bd","880"],["Barbados","bb","1",9,["246"]],["Belarus (\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u044C)","by","375"],["Belgium (Belgi\xEB)","be","32"],["Belize","bz","501"],["Benin (B\xE9nin)","bj","229"],["Bermuda","bm","1",10,["441"]],["Bhutan (\u0F60\u0F56\u0FB2\u0F74\u0F42)","bt","975"],["Bolivia","bo","591"],["Bosnia and Herzegovina (\u0411\u043E\u0441\u043D\u0430 \u0438 \u0425\u0435\u0440\u0446\u0435\u0433\u043E\u0432\u0438\u043D\u0430)","ba","387"],["Botswana","bw","267"],["Brazil (Brasil)","br","55"],["British Indian Ocean Territory","io","246"],["British Virgin Islands","vg","1",11,["284"]],["Brunei","bn","673"],["Bulgaria (\u0411\u044A\u043B\u0433\u0430\u0440\u0438\u044F)","bg","359"],["Burkina Faso","bf","226"],["Burundi (Uburundi)","bi","257"],["Cambodia (\u1780\u1798\u17D2\u1796\u17BB\u1787\u17B6)","kh","855"],["Cameroon (Cameroun)","cm","237"],["Canada","ca","1",1,["204","226","236","249","250","263","289","306","343","354","365","367","368","382","387","403","416","418","428","431","437","438","450","584","468","474","506","514","519","548","579","581","584","587","604","613","639","647","672","683","705","709","742","753","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde (Kabu Verdi)","cv","238"],["Caribbean Netherlands","bq","599",1,["3","4","7"]],["Cayman Islands","ky","1",12,["345"]],["Central African Republic (R\xE9publique centrafricaine)","cf","236"],["Chad (Tchad)","td","235"],["Chile","cl","56"],["China (\u4E2D\u56FD)","cn","86"],["Christmas Island","cx","61",2,["89164"]],["Cocos (Keeling) Islands","cc","61",1,["89162"]],["Colombia","co","57"],["Comoros (\u202B\u062C\u0632\u0631 \u0627\u0644\u0642\u0645\u0631\u202C\u200E)","km","269"],["Congo (DRC) (R\xE9publique d\xE9mocratique du Congo)","cd","243"],["Congo (Republic) (Congo-Brazzaville)","cg","242"],["Cook Islands","ck","682"],["Costa Rica","cr","506"],["C\xF4te d\u2019Ivoire","ci","225"],["Croatia (Hrvatska)","hr","385"],["Cuba","cu","53"],["Cura\xE7ao","cw","599",0],["Cyprus (\u039A\u03CD\u03C0\u03C1\u03BF\u03C2)","cy","357"],["Czech Republic (\u010Cesk\xE1 republika)","cz","420"],["Denmark (Danmark)","dk","45"],["Djibouti","dj","253"],["Dominica","dm","1",13,["767"]],["Dominican Republic (Rep\xFAblica Dominicana)","do","1",2,["809","829","849"]],["Ecuador","ec","593"],["Egypt (\u202B\u0645\u0635\u0631\u202C\u200E)","eg","20"],["El Salvador","sv","503"],["Equatorial Guinea (Guinea Ecuatorial)","gq","240"],["Eritrea","er","291"],["Estonia (Eesti)","ee","372"],["Eswatini","sz","268"],["Ethiopia","et","251"],["Falkland Islands (Islas Malvinas)","fk","500"],["Faroe Islands (F\xF8royar)","fo","298"],["Fiji","fj","679"],["Finland (Suomi)","fi","358",0],["France","fr","33"],["French Guiana (Guyane fran\xE7aise)","gf","594"],["French Polynesia (Polyn\xE9sie fran\xE7aise)","pf","689"],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia (\u10E1\u10D0\u10E5\u10D0\u10E0\u10D7\u10D5\u10D4\u10DA\u10DD)","ge","995"],["Germany (Deutschland)","de","49"],["Ghana (Gaana)","gh","233"],["Gibraltar","gi","350"],["Greece (\u0395\u03BB\u03BB\u03AC\u03B4\u03B1)","gr","30"],["Greenland (Kalaallit Nunaat)","gl","299"],["Grenada","gd","1",14,["473"]],["Guadeloupe","gp","590",0],["Guam","gu","1",15,["671"]],["Guatemala","gt","502"],["Guernsey","gg","44",1,["1481","7781","7839","7911"]],["Guinea (Guin\xE9e)","gn","224"],["Guinea-Bissau (Guin\xE9 Bissau)","gw","245"],["Guyana","gy","592"],["Haiti","ht","509"],["Honduras","hn","504"],["Hong Kong (\u9999\u6E2F)","hk","852"],["Hungary (Magyarorsz\xE1g)","hu","36"],["Iceland (\xCDsland)","is","354"],["India (\u092D\u093E\u0930\u0924)","in","91"],["Indonesia","id","62"],["Iran (\u202B\u0627\u06CC\u0631\u0627\u0646\u202C\u200E)","ir","98"],["Iraq (\u202B\u0627\u0644\u0639\u0631\u0627\u0642\u202C\u200E)","iq","964"],["Ireland","ie","353"],["Isle of Man","im","44",2,["1624","74576","7524","7924","7624"]],["Israel (\u202B\u05D9\u05E9\u05E8\u05D0\u05DC\u202C\u200E)","il","972"],["Italy (Italia)","it","39",0],["Jamaica","jm","1",4,["876","658"]],["Japan (\u65E5\u672C)","jp","81"],["Jersey","je","44",3,["1534","7509","7700","7797","7829","7937"]],["Jordan (\u202B\u0627\u0644\u0623\u0631\u062F\u0646\u202C\u200E)","jo","962"],["Kazakhstan (\u041A\u0430\u0437\u0430\u0445\u0441\u0442\u0430\u043D)","kz","7",1,["33","7"]],["Kenya","ke","254"],["Kiribati","ki","686"],["Kosovo","xk","383"],["Kuwait (\u202B\u0627\u0644\u0643\u0648\u064A\u062A\u202C\u200E)","kw","965"],["Kyrgyzstan (\u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D)","kg","996"],["Laos (\u0EA5\u0EB2\u0EA7)","la","856"],["Latvia (Latvija)","lv","371"],["Lebanon (\u202B\u0644\u0628\u0646\u0627\u0646\u202C\u200E)","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya (\u202B\u0644\u064A\u0628\u064A\u0627\u202C\u200E)","ly","218"],["Liechtenstein","li","423"],["Lithuania (Lietuva)","lt","370"],["Luxembourg","lu","352"],["Macau (\u6FB3\u9580)","mo","853"],["Madagascar (Madagasikara)","mg","261"],["Malawi","mw","265"],["Malaysia","my","60"],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596"],["Mauritania (\u202B\u0645\u0648\u0631\u064A\u062A\u0627\u0646\u064A\u0627\u202C\u200E)","mr","222"],["Mauritius (Moris)","mu","230"],["Mayotte","yt","262",1,["269","639"]],["Mexico (M\xE9xico)","mx","52"],["Micronesia","fm","691"],["Moldova (Republica Moldova)","md","373"],["Monaco","mc","377"],["Mongolia (\u041C\u043E\u043D\u0433\u043E\u043B)","mn","976"],["Montenegro (Crna Gora)","me","382"],["Montserrat","ms","1",16,["664"]],["Morocco (\u202B\u0627\u0644\u0645\u063A\u0631\u0628\u202C\u200E)","ma","212",0],["Mozambique (Mo\xE7ambique)","mz","258"],["Myanmar (Burma) (\u1019\u103C\u1014\u103A\u1019\u102C)","mm","95"],["Namibia (Namibi\xEB)","na","264"],["Nauru","nr","674"],["Nepal (\u0928\u0947\u092A\u093E\u0932)","np","977"],["Netherlands (Nederland)","nl","31"],["New Caledonia (Nouvelle-Cal\xE9donie)","nc","687"],["New Zealand","nz","64"],["Nicaragua","ni","505"],["Niger (Nijar)","ne","227"],["Nigeria","ng","234"],["Niue","nu","683"],["Norfolk Island","nf","672"],["North Korea (\uC870\uC120 \uBBFC\uC8FC\uC8FC\uC758 \uC778\uBBFC \uACF5\uD654\uAD6D)","kp","850"],["North Macedonia (\u0421\u0435\u0432\u0435\u0440\u043D\u0430 \u041C\u0430\u043A\u0435\u0434\u043E\u043D\u0438\u0458\u0430)","mk","389"],["Northern Mariana Islands","mp","1",17,["670"]],["Norway (Norge)","no","47",0],["Oman (\u202B\u0639\u064F\u0645\u0627\u0646\u202C\u200E)","om","968"],["Pakistan (\u202B\u067E\u0627\u06A9\u0633\u062A\u0627\u0646\u202C\u200E)","pk","92"],["Palau","pw","680"],["Palestine (\u202B\u0641\u0644\u0633\u0637\u064A\u0646\u202C\u200E)","ps","970"],["Panama (Panam\xE1)","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru (Per\xFA)","pe","51"],["Philippines","ph","63"],["Poland (Polska)","pl","48"],["Portugal","pt","351"],["Puerto Rico","pr","1",3,["787","939"]],["Qatar (\u202B\u0642\u0637\u0631\u202C\u200E)","qa","974"],["R\xE9union (La R\xE9union)","re","262",0],["Romania (Rom\xE2nia)","ro","40"],["Russia (\u0420\u043E\u0441\u0441\u0438\u044F)","ru","7",0],["Rwanda","rw","250"],["Saint Barth\xE9lemy","bl","590",1],["Saint Helena","sh","290"],["Saint Kitts and Nevis","kn","1",18,["869"]],["Saint Lucia","lc","1",19,["758"]],["Saint Martin (Saint-Martin (partie fran\xE7aise))","mf","590",2],["Saint Pierre and Miquelon (Saint-Pierre-et-Miquelon)","pm","508"],["Saint Vincent and the Grenadines","vc","1",20,["784"]],["Samoa","ws","685"],["San Marino","sm","378"],["S\xE3o Tom\xE9 and Pr\xEDncipe (S\xE3o Tom\xE9 e Pr\xEDncipe)","st","239"],["Saudi Arabia (\u202B\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0629\u202C\u200E)","sa","966"],["Senegal (S\xE9n\xE9gal)","sn","221"],["Serbia (\u0421\u0440\u0431\u0438\u0458\u0430)","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65"],["Sint Maarten","sx","1",21,["721"]],["Slovakia (Slovensko)","sk","421"],["Slovenia (Slovenija)","si","386"],["Solomon Islands","sb","677"],["Somalia (Soomaaliya)","so","252"],["South Africa","za","27"],["South Korea (\uB300\uD55C\uBBFC\uAD6D)","kr","82"],["South Sudan (\u202B\u062C\u0646\u0648\u0628 \u0627\u0644\u0633\u0648\u062F\u0627\u0646\u202C\u200E)","ss","211"],["Spain (Espa\xF1a)","es","34"],["Sri Lanka (\u0DC1\u0DCA\u200D\u0DBB\u0DD3 \u0DBD\u0D82\u0D9A\u0DCF\u0DC0)","lk","94"],["Sudan (\u202B\u0627\u0644\u0633\u0648\u062F\u0627\u0646\u202C\u200E)","sd","249"],["Suriname","sr","597"],["Svalbard and Jan Mayen","sj","47",1,["79"]],["Sweden (Sverige)","se","46"],["Switzerland (Schweiz)","ch","41"],["Syria (\u202B\u0633\u0648\u0631\u064A\u0627\u202C\u200E)","sy","963"],["Taiwan (\u53F0\u7063)","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand (\u0E44\u0E17\u0E22)","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tokelau","tk","690"],["Tonga","to","676"],["Trinidad and Tobago","tt","1",22,["868"]],["Tunisia (\u202B\u062A\u0648\u0646\u0633\u202C\u200E)","tn","216"],["Turkey (T\xFCrkiye)","tr","90"],["Turkmenistan","tm","993"],["Turks and Caicos Islands","tc","1",23,["649"]],["Tuvalu","tv","688"],["U.S. Virgin Islands","vi","1",24,["340"]],["Uganda","ug","256"],["Ukraine (\u0423\u043A\u0440\u0430\u0457\u043D\u0430)","ua","380"],["United Arab Emirates (\u202B\u0627\u0644\u0625\u0645\u0627\u0631\u0627\u062A \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0645\u062A\u062D\u062F\u0629\u202C\u200E)","ae","971"],["United Kingdom","gb","44",0],["United States","us","1",0],["Uruguay","uy","598"],["Uzbekistan (O\u02BBzbekiston)","uz","998"],["Vanuatu","vu","678"],["Vatican City (Citt\xE0 del Vaticano)","va","39",1,["06698"]],["Venezuela","ve","58"],["Vietnam (Vi\u1EC7t Nam)","vn","84"],["Wallis and Futuna (Wallis-et-Futuna)","wf","681"],["Western Sahara (\u202B\u0627\u0644\u0635\u062D\u0631\u0627\u0621 \u0627\u0644\u063A\u0631\u0628\u064A\u0629\u202C\u200E)","eh","212",1,["5288","5289"]],["Yemen (\u202B\u0627\u0644\u064A\u0645\u0646\u202C\u200E)","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"],["\xC5land Islands","ax","358",1,["18"]]],wr=br.map(([e,t,n,a=0,i=null])=>({name:e,iso2:t.toUpperCase(),dialCode:n,priority:a,areaCodes:i}));function Lr(){return fetch("https://ip2c.org/s").then(e=>e.text()).then(e=>{const t=(e||"").toString();if(!t||t[0]!=="1")throw new Error("unable to fetch the country");return t.substr(2,2)})}function kr(e,t){if(e.setSelectionRange)e.focus(),e.setSelectionRange(t,t);else if("createTextRange"in e&&typeof e.createTextRange=="function"){const n=e.createTextRange();n.collapse(!0),n.moveEnd("character",t),n.moveStart("character",t),n.select()}}const xr=[{name:"allCountries",type:Array,default:wr,description:"All countries that are used in libphonenumber-js, can be overridden by this prop",inDemo:!1},{name:"autoFormat",type:Boolean,default:!0,description:"Auto update the input to the formatted phone number when it's valid",inDemo:!0},{name:"customValidate",type:[Boolean,RegExp],default:!1,description:"Custom validation RegExp for input",inDemo:!1},{name:"defaultCountry",default:"",type:[String,Number],description:"Default country (by iso2 or dialCode), will override the country fetched from IP address of user",inDemo:!1},{name:"disabled",default:!1,type:Boolean,description:"Disable vue-tel-input, including the input & flag dropdown",inDemo:!1},{name:"autoDefaultCountry",default:!0,type:Boolean,description:"To fetch default country based on IP address of user",inDemo:!1},{name:"dropdownOptions",type:Object,description:"Options for dropdown, see below",inDemo:!1},{name:"dropdownOptions.disabled",default:!1,type:Boolean,description:"Disable dropdown",inDemo:!1},{name:"dropdownOptions.showDialCodeInList",default:!0,type:Boolean,description:"Show dial code in the dropdown list",inDemo:!0},{name:"dropdownOptions.showDialCodeInSelection",default:!1,type:Boolean,description:"Show dial code in the dropdown selection",inDemo:!0},{name:"dropdownOptions.showFlags",default:!0,type:Boolean,description:"Show flags in the dropdown selection and list",inDemo:!0},{name:"dropdownOptions.showSearchBox",default:!1,type:Boolean,description:"Show country search box",inDemo:!0},{name:"dropdownOptions.searchBoxPlaceholder",default:"",type:String,description:"Placeholder for the search box",inDemo:!1},{name:"dropdownOptions.tabindex",default:0,type:Number,description:"Native dropdown tabindex attribute",inDemo:!1},{name:"ignoredCountries",default:[],type:Array,description:"List of countries will NOT be shown on the dropdown",inDemo:!1},{name:"inputOptions",type:Object,description:"Options for input, see below",inDemo:!1},{name:"inputOptions.autocomplete",type:String,default:"on",description:"Native input autocomplete attribute",inDemo:!1},{name:"inputOptions.autofocus",type:Boolean,default:!1,description:"Native input autofocus attribute",inDemo:!1},{name:"inputOptions.aria-describedby",default:"",type:String,description:"Native input aria-describedby attribute",inDemo:!1},{name:"inputOptions.id",default:"",type:String,description:"Native input id attribute",inDemo:!1},{name:"inputOptions.maxlength",default:25,type:Number,description:"Native input maxlength attribute",inDemo:!1},{name:"inputOptions.name",default:"telephone",type:String,description:"Native input name attribute",inDemo:!1},{name:"inputOptions.showDialCode",default:!1,type:Boolean,description:"Show dial code in input",inDemo:!1},{name:"inputOptions.placeholder",default:"Enter a phone number",type:String,description:"Placeholder for the input",inDemo:!1},{name:"inputOptions.readonly",default:!1,type:Boolean,description:"Native input readonly attribute",inDemo:!1},{name:"inputOptions.required",default:!1,type:Boolean,description:"Native input required attribute",inDemo:!1},{name:"inputOptions.tabindex",default:0,type:Number,description:"Native input tabindex attribute",inDemo:!1},{name:"inputOptions.type",default:"tel",type:String,description:"Native input type attribute",inDemo:!1},{name:"inputOptions.styleClasses",default:"",type:[String,Array,Object],description:"Custom classes for the input",inDemo:!1},{name:"invalidMsg",default:"",type:String,description:"",inDemo:!1},{name:"mode",default:"auto",type:String,description:"Allowed values: 'auto' (Default set by phone), 'international' (Format number with the dial code i.e. + 61), 'national' (Format number without dial code i.e. 0321232)",inDemo:!0,options:["auto","national","international"]},{name:"onlyCountries",default:[],type:Array,description:"List of countries will be shown on the dropdown",inDemo:!1},{name:"preferredCountries",default:[],type:Array,description:"Preferred countries list, will be on top of the dropdown",inDemo:!1},{name:"styleClasses",default:"",type:[String,Array,Object],description:"Custom classes for the wrapper",inDemo:!1},{name:"validCharactersOnly",default:!1,type:Boolean,description:"Only allow valid characters in a phone number (will also verify in mounted, so phone number with invalid characters will be shown as an empty string)",inDemo:!1}],Mr=[...xr].reduce((e,t)=>{if(t.name.includes(".")){const[n,a]=t.name.split(".");e[n]?Object.assign(e[n],{[a]:t.default}):Object.assign(e,{[n]:{[a]:t.default}})}else Object.assign(e,{[t.name]:t.default});return e},{}),Qn={options:{...Mr}};function Ve(e){const t=Qn.options[e];return typeof t>"u"?Qn.options[e]:t}function kt(e){return e==null?void 0:e.toLowerCase()}function xt(e){return e==null?void 0:e.toUpperCase()}const Sr={version:4,country_calling_codes:{1:["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"],7:["RU","KZ"],20:["EG"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],36:["HU"],39:["IT","VA"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG","IM","JE"],45:["DK"],46:["SE"],47:["NO","SJ"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],53:["CU"],54:["AR"],55:["BR"],56:["CL"],57:["CO"],58:["VE"],60:["MY"],61:["AU","CC","CX"],62:["ID"],63:["PH"],64:["NZ"],65:["SG"],66:["TH"],81:["JP"],82:["KR"],84:["VN"],86:["CN"],90:["TR"],91:["IN"],92:["PK"],93:["AF"],94:["LK"],95:["MM"],98:["IR"],211:["SS"],212:["MA","EH"],213:["DZ"],216:["TN"],218:["LY"],220:["GM"],221:["SN"],222:["MR"],223:["ML"],224:["GN"],225:["CI"],226:["BF"],227:["NE"],228:["TG"],229:["BJ"],230:["MU"],231:["LR"],232:["SL"],233:["GH"],234:["NG"],235:["TD"],236:["CF"],237:["CM"],238:["CV"],239:["ST"],240:["GQ"],241:["GA"],242:["CG"],243:["CD"],244:["AO"],245:["GW"],246:["IO"],247:["AC"],248:["SC"],249:["SD"],250:["RW"],251:["ET"],252:["SO"],253:["DJ"],254:["KE"],255:["TZ"],256:["UG"],257:["BI"],258:["MZ"],260:["ZM"],261:["MG"],262:["RE","YT"],263:["ZW"],264:["NA"],265:["MW"],266:["LS"],267:["BW"],268:["SZ"],269:["KM"],290:["SH","TA"],291:["ER"],297:["AW"],298:["FO"],299:["GL"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],355:["AL"],356:["MT"],357:["CY"],358:["FI","AX"],359:["BG"],370:["LT"],371:["LV"],372:["EE"],373:["MD"],374:["AM"],375:["BY"],376:["AD"],377:["MC"],378:["SM"],380:["UA"],381:["RS"],382:["ME"],383:["XK"],385:["HR"],386:["SI"],387:["BA"],389:["MK"],420:["CZ"],421:["SK"],423:["LI"],500:["FK"],501:["BZ"],502:["GT"],503:["SV"],504:["HN"],505:["NI"],506:["CR"],507:["PA"],508:["PM"],509:["HT"],590:["GP","BL","MF"],591:["BO"],592:["GY"],593:["EC"],594:["GF"],595:["PY"],596:["MQ"],597:["SR"],598:["UY"],599:["CW","BQ"],670:["TL"],672:["NF"],673:["BN"],674:["NR"],675:["PG"],676:["TO"],677:["SB"],678:["VU"],679:["FJ"],680:["PW"],681:["WF"],682:["CK"],683:["NU"],685:["WS"],686:["KI"],687:["NC"],688:["TV"],689:["PF"],690:["TK"],691:["FM"],692:["MH"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],880:["BD"],886:["TW"],960:["MV"],961:["LB"],962:["JO"],963:["SY"],964:["IQ"],965:["KW"],966:["SA"],967:["YE"],968:["OM"],970:["PS"],971:["AE"],972:["IL"],973:["BH"],974:["QA"],975:["BT"],976:["MN"],977:["NP"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},countries:{AC:["247","00","(?:[01589]\\d|[46])\\d{4}",[5,6]],AD:["376","00","(?:1|6\\d)\\d{7}|[135-9]\\d{5}",[6,8,9],[["(\\d{3})(\\d{3})","$1 $2",["[135-9]"]],["(\\d{4})(\\d{4})","$1 $2",["1"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]]],AE:["971","00","(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",[5,6,7,8,9,10,11,12],[["(\\d{3})(\\d{2,9})","$1 $2",["60|8"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[236]|[479][2-8]"],"0$1"],["(\\d{3})(\\d)(\\d{5})","$1 $2 $3",["[479]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"]],"0"],AF:["93","00","[2-7]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],"0"],AG:["1","011","(?:268|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([457]\\d{6})$|1","268$1",0,"268"],AI:["1","011","(?:264|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2457]\\d{6})$|1","264$1",0,"264"],AL:["355","00","(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}",[6,7,8,9],[["(\\d{3})(\\d{3,4})","$1 $2",["80|9"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["4[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2358][2-5]|4"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["[23578]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["6"],"0$1"]],"0"],AM:["374","00","(?:[1-489]\\d|55|60|77)\\d{6}",[8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[89]0"],"0 $1"],["(\\d{3})(\\d{5})","$1 $2",["2|3[12]"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["1|47"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[3-9]"],"0$1"]],"0"],AO:["244","00","[29]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]]],AR:["54","00","(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}",[10,11],[["(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",1],["(\\d)(\\d{4})(\\d{2})(\\d{4})","$2 15-$3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",0,"$1 $2 $3-$4"],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1",0,"$1 $2 $3-$4"],["(\\d{3})(\\d{3})(\\d{5})","$1-$2-$3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 15-$3-$4",["9"],"0$1",0,"$1 $2 $3-$4"]],"0",0,"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?","9$1"],AS:["1","011","(?:[58]\\d\\d|684|900)\\d{7}",[10],0,"1",0,"([267]\\d{6})$|1","684$1",0,"684"],AT:["43","00","1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}",[4,5,6,7,8,9,10,11,12,13],[["(\\d)(\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],["(\\d{3})(\\d{2})","$1 $2",["517"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["5[079]"],"0$1"],["(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],["(\\d{4})(\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["5"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,7})","$1 $2 $3",["5"],"0$1"]],"0"],AU:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}",[5,6,7,8,9,10,12],[["(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|4"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],"0",0,"(183[12])|0",0,0,0,[["(?:(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|3(?:[0-3589]\\d|4[0-578]|6[1-9]|7[0-35-9])|7(?:[013-57-9]\\d|2[0-8]))\\d{3}|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]))|(?:6[0-8]|[78]\\d)\\d{3}|9(?:[02-9]\\d{3}|1(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79])))))\\d{3}",[9]],["4(?:(?:79|94)[01]|83[0-389])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[0-26-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,["163\\d{2,6}",[5,6,7,8,9]],["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],AW:["297","00","(?:[25-79]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[25-9]"]]]],AX:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}",[5,6,7,8,9,10,11,12],0,"0",0,0,0,0,"18",0,"00"],AZ:["994","00","365\\d{6}|(?:[124579]\\d|60|88)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[28]|2|365|46","1[28]|2|365[45]|46","1[28]|2|365(?:4|5[02])|46"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-9]"],"0$1"]],"0"],BA:["387","00","6\\d{8}|(?:[35689]\\d|49|70)\\d{6}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-3]|[7-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]|6[56]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6"],"0$1"]],"0"],BB:["1","011","(?:246|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","246$1",0,"246"],BD:["880","00","[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{4,6})","$1-$2",["31[5-8]|[459]1"],"0$1"],["(\\d{3})(\\d{3,7})","$1-$2",["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28|4[14])|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"],"0$1"],["(\\d{4})(\\d{3,6})","$1-$2",["[13-9]|22"],"0$1"],["(\\d)(\\d{7,8})","$1-$2",["2"],"0$1"]],"0"],BE:["32","00","4\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:80|9)0"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[239]|4[23]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[15-8]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4"],"0$1"]],"0"],BF:["226","00","[025-7]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[025-7]"]]]],BG:["359","00","00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",[6,7,8,9,12],[["(\\d)(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["43[1-6]|70[1-9]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:70|8)0"],"0$1"],["(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[1-7]|7"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[48]|9[08]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"]],"0"],BH:["973","00","[136-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[13679]|8[02-4679]"]]]],BI:["257","00","(?:[267]\\d|31)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]]],BJ:["229","00","[24-689]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-689]"]]]],BL:["590","00","590\\d{6}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:2[7-9]|3[3-7]|5[12]|87)\\d{4}"],["69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:395|76[018])\\d|475[0-5])\\d{4}"]]],BM:["1","011","(?:441|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","441$1",0,"441"],BN:["673","00","[2-578]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]]],BO:["591","00(?:1\\d)?","(?:[2-467]\\d\\d|8001)\\d{5}",[8,9],[["(\\d)(\\d{7})","$1 $2",["[23]|4[46]"]],["(\\d{8})","$1",["[67]"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["8"]]],"0",0,"0(1\\d)?"],BQ:["599","00","(?:[34]1|7\\d)\\d{5}",[7],0,0,0,0,0,0,"[347]"],BR:["55","00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","(?:[1-46-9]\\d\\d|5(?:[0-46-9]\\d|5[0-46-9]))\\d{8}|[1-9]\\d{9}|[3589]\\d{8}|[34]\\d{7}",[8,9,10,11],[["(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37)","4(?:02|37)0|[34]00"]],["(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)"],["(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)"]],"0",0,"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2"],BS:["1","011","(?:242|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([3-8]\\d{6})$|1","242$1",0,"242"],BT:["975","00","[17]\\d{7}|[2-8]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-68]|7[246]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|7"]]]],BW:["267","00","(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}",[7,8,10],[["(\\d{2})(\\d{5})","$1 $2",["90"]],["(\\d{3})(\\d{4})","$1 $2",["[24-6]|3[15-9]"]],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37]"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["8"]]]],BY:["375","810","(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3})","$1 $2",["800"],"8 $1"],["(\\d{3})(\\d{2})(\\d{2,4})","$1 $2 $3",["800"],"8 $1"],["(\\d{4})(\\d{2})(\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["1(?:[56]|7[467])|2[1-3]"],"8 0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-4]"],"8 0$1"],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["[89]"],"8 $1"]],"8",0,"0|80?",0,0,0,0,"8~10"],BZ:["501","00","(?:0800\\d|[2-8])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],["(\\d)(\\d{3})(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"]]]],CA:["1","011","(?:[2-8]\\d|90)\\d{8}|3\\d{6}",[7,10],0,"1",0,0,0,0,0,[["(?:2(?:04|[23]6|[48]9|50|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|73)|90[25])[2-9]\\d{6}",[10]],["",[10]],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",[10]],["900[2-9]\\d{6}",[10]],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:00|2[125-9]|33|44|66|77|88)|622)[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|94)[01]|83[0-389])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[0-26-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CD:["243","00","[189]\\d{8}|[1-68]\\d{6}",[7,9],[["(\\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{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]"],"0$1"]],"0"],CF:["236","00","(?:[27]\\d{3}|8776)\\d{4}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[278]"]]]],CG:["242","00","222\\d{6}|(?:0\\d|80)\\d{7}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02]"]]]],CH:["41","00","8\\d{11}|[2-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8[047]|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]|81"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["8"],"0$1"]],"0"],CI:["225","00","[02]\\d{9}",[10],[["(\\d{2})(\\d{2})(\\d)(\\d{5})","$1 $2 $3 $4",["2"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3 $4",["0"]]]],CK:["682","00","[2-578]\\d{4}",[5],[["(\\d{2})(\\d{3})","$1 $2",["[2-578]"]]]],CL:["56","(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0","12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}",[9,10,11],[["(\\d{5})(\\d{4})","$1 $2",["219","2196"],"($1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["44"]],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[1-36]"],"($1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9[2-9]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-9]|[1-9])"],"($1)"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{3})(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3 $4",["60"]]]],CM:["237","00","[26]\\d{8}|88\\d{6,7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["88"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]|88"]]]],CN:["86","00|1(?:[12]\\d|79)\\d\\d00","1[127]\\d{8,9}|2\\d{9}(?:\\d{2})?|[12]\\d{6,7}|86\\d{6}|(?:1[03-689]\\d|6)\\d{7,9}|(?:[3-579]\\d|8[0-57-9])\\d{6,9}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]","(?:10|2[0-57-9])(?:10|9[56])","10(?:10|9[56])|2[0-57-9](?:100|9[56])"],"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])","(?:60\\d\\d|9101)\\d{6}|(?:1\\d|3)\\d{9}",[10,11],[["(\\d{3})(\\d{7})","$1 $2",["6"],"($1)"],["(\\d{3})(\\d{7})","$1 $2",["3[0-357]|91"]],["(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1",0,"$1 $2 $3"]],"0",0,"0([3579]|4(?:[14]4|56))?"],CR:["506","00","(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}",[8,10],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[3-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[89]"]]],0,0,"(19(?:0[0-2468]|1[09]|20|66|77|99))"],CU:["53","119","[27]\\d{6,7}|[34]\\d{5,7}|63\\d{6}|(?:5|8\\d\\d)\\d{7}",[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|94)[01]|83[0-389])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[0-26-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CY:["357","00","(?:[279]\\d|[58]0)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[257-9]"]]]],CZ:["420","00","(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}",[9],[["(\\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{5})(\\d{6})","$1 $2",["15[0568]"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["15[1279]"],"0$1"],["(\\d{3})(\\d{8})","$1 $2",["18"],"0$1"],["(\\d{3})(\\d{2})(\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"],"0$1"],["(\\d{4})(\\d{2})(\\d{7})","$1 $2 $3",["15[279]"],"0$1"],["(\\d{3})(\\d{2})(\\d{8})","$1 $2 $3",["15"],"0$1"]],"0"],DJ:["253","00","(?:2\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27]"]]]],DK:["45","00","[2-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]]],DM:["1","011","(?:[58]\\d\\d|767|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","767$1",0,"767"],DO:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,0,0,0,"8001|8[024]9"],DZ:["213","00","(?:[1-4]|[5-79]\\d|80)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-8]"],"0$1"]],"0"],EC:["593","00","1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}",[8,9,10,11],[["(\\d)(\\d{3})(\\d{4})","$1 $2-$3",["[2-7]"],"(0$1)",0,"$1-$2-$3"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],"0"],EE:["372","00","8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]],["(\\d{4})(\\d{3,4})","$1 $2",["[45]|8(?:00|[1-49])","[45]|8(?:00[1-9]|[1-49])"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],EG:["20","00","[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}",[8,9,10],[["(\\d)(\\d{7,8})","$1 $2",["[23]"],"0$1"],["(\\d{2})(\\d{6,7})","$1 $2",["1[35]|[4-6]|8[2468]|9[235-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{8})","$1 $2",["1"],"0$1"]],"0"],EH:["212","00","[5-8]\\d{8}",[9],0,"0",0,0,0,0,"528[89]"],ER:["291","00","[178]\\d{6}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],"0"],ES:["34","00","[5-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-9]"]]]],ET:["251","00","(?:11|[2-579]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-579]"],"0$1"]],"0"],FI:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}",[5,6,7,8,9,10,11,12],[["(\\d)(\\d{4,9})","$1 $2",["[2568][1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"],["(\\d{3})(\\d{3,7})","$1 $2",["[12]00|[368]|70[07-9]"],"0$1"],["(\\d{2})(\\d{4,8})","$1 $2",["[1245]|7[135]"],"0$1"],["(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"]],"0",0,0,0,0,"1[03-79]|[2-9]",0,"00"],FJ:["679","0(?:0|52)","45\\d{5}|(?:0800\\d|[235-9])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|45"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]]],0,0,0,0,0,0,0,"00"],FK:["500","00","[2-7]\\d{4}",[5]],FM:["691","00","(?:[39]\\d\\d|820)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[389]"]]]],FO:["298","00","[2-9]\\d{5}",[6],[["(\\d{6})","$1",["[2-9]"]]],0,0,"(10(?:01|[12]0|88))"],FR:["33","00","[1-9]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],"0"],GA:["241","00","(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}",[7,8],[["(\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["11|[67]"],"0$1"]],0,0,"0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})","$1"],GB:["44","00","[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",[7,9,10],[["(\\d{3})(\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["845","8454","84546","845464"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["800"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["1(?:[2-69][02-9]|[78])"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[25]|7(?:0|6[02-9])","[25]|7(?:0|6(?:[03-9]|2[356]))"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[1389]"],"0$1"]],"0",0,0,0,0,0,[["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0235])|4(?:[0-5]\\d\\d|69[7-9]|70[0-79])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|50))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-2]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}",[9,10]],["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]],0," x"],GD:["1","011","(?:473|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","473$1",0,"473"],GE:["995","00","(?:[3-57]\\d\\d|800)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["32"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[57]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"]],"0"],GF:["594","00","[56]94\\d{6}|(?:80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[56]|9[47]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[89]"],"0$1"]],"0"],GG:["44","00","(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",[7,9,10],0,"0",0,"([25-9]\\d{5})$|0","1481$1",0,0,[["1481[25-9]\\d{5}",[10]],["7(?:(?:781|839)\\d|911[17])\\d{5}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]]],GH:["233","00","(?:[235]\\d{3}|800)\\d{5}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[235]"],"0$1"]],"0"],GI:["350","00","(?:[25]\\d|60)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["2"]]]],GL:["299","00","(?:19|[2-689]\\d|70)\\d{4}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-9]"]]]],GM:["220","00","[2-9]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],GN:["224","00","722\\d{6}|(?:3|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["3"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[67]"]]]],GP:["590","00","590\\d{6}|(?:69|80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[569]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["590(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)\\d{4}"],["69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:395|76[018])\\d|475[0-5])\\d{4}"]]],GQ:["240","00","222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],["(\\d{3})(\\d{6})","$1 $2",["[89]"]]]],GR:["30","00","5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}",[10,11,12],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["21|7"]],["(\\d{4})(\\d{6})","$1 $2",["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2689]"]],["(\\d{3})(\\d{3,4})(\\d{5})","$1 $2 $3",["8"]]]],GT:["502","00","80\\d{6}|(?:1\\d{3}|[2-7])\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1 $2",["[2-8]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],GU:["1","011","(?:[58]\\d\\d|671|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","671$1",0,"671"],GW:["245","00","[49]\\d{8}|4\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["40"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"]]]],GY:["592","001","(?:[2-8]\\d{3}|9008)\\d{3}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],HK:["852","00(?:30|5[09]|[126-9]?)","8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}",[5,6,7,8,9,11],[["(\\d{3})(\\d{2,5})","$1 $2",["900","9003"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{3})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],0,0,0,0,0,0,0,"00"],HN:["504","00","8\\d{10}|[237-9]\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]]],HR:["385","00","(?:[24-69]\\d|3[0-79])\\d{7}|80\\d{5,7}|[1-79]\\d{7}|6\\d{5,6}",[6,7,8,9],[["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["6[01]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{4})(\\d{3})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[67]"],"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-5]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],"0"],HT:["509","00","(?:[2-489]\\d|55)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-589]"]]]],HU:["36","00","[235-7]\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"06 $1"]],"06"],ID:["62","00[89]","(?:(?:00[1-9]|8\\d)\\d{4}|[1-36])\\d{6}|00\\d{10}|[1-9]\\d{8,10}|[2-9]\\d{7}",[7,8,9,10,11,12,13],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["15"]],["(\\d{2})(\\d{5,9})","$1 $2",["2[124]|[36]1"],"(0$1)"],["(\\d{3})(\\d{5,7})","$1 $2",["800"],"0$1"],["(\\d{3})(\\d{5,8})","$1 $2",["[2-79]"],"(0$1)"],["(\\d{3})(\\d{3,4})(\\d{3})","$1-$2-$3",["8[1-35-9]"],"0$1"],["(\\d{3})(\\d{6,8})","$1 $2",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["804"],"0$1"],["(\\d{3})(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1-$2-$3",["8"],"0$1"]],"0"],IE:["353","00","(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"],"(0$1)"],["(\\d{3})(\\d{5})","$1 $2",["[45]0"],"(0$1)"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["1"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2569]|4[1-69]|7[14]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["81"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[78]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["4"],"(0$1)"],["(\\d{2})(\\d)(\\d{3})(\\d{4})","$1 $2 $3 $4",["8"],"0$1"]],"0"],IL:["972","0(?:0|1[2-9])","1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}",[7,8,9,10,11,12],[["(\\d{4})(\\d{3})","$1-$2",["125"]],["(\\d{4})(\\d{2})(\\d{2})","$1-$2-$3",["121"]],["(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1-$2-$3",["12"]],["(\\d{4})(\\d{6})","$1-$2",["159"]],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3-$4",["1[7-9]"]],["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})","$1-$2 $3-$4",["15"]]],"0"],IM:["44","00","1624\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([25-8]\\d{5})$|0","1624$1",0,"74576|(?:16|7[56])24"],IN:["91","00","(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",[8,9,10,11,12,13],[["(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],0,1],["(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],0,1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-7]|80[2-46]","11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[14]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:2[14]|3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"],"0$1",1],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|28|3[129]|4[1-35689]|5[29]|6[02-5]|70)|807","1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]","1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|83)|73179|807(?:1|9[1-3])|(?:1552|6(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[124-6])\\d|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"],"0$1",1],["(\\d{5})(\\d{5})","$1 $2",["[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["1(?:6|8[06])","1(?:6|8[06]0)"],0,1],["(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],0,1]],"0"],IO:["246","00","3\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["3"]]]],IQ:["964","00","(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],IR:["98","00","[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",[4,5,6,7,10],[["(\\d{4,5})","$1",["96"],"0$1"],["(\\d{2})(\\d{4,5})","$1 $2",["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[1-8]"],"0$1"]],"0"],IS:["354","00|1(?:0(?:01|[12]0)|100)","(?:38\\d|[4-9])\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],0,0,0,0,0,0,0,"00"],IT:["39","00","0\\d{5,10}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?",[6,7,8,9,10,11],[["(\\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]"]],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]|14"]],["(\\d{2})(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["3"]]],0,0,0,0,0,0,[["0669[0-79]\\d{1,6}|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[1-356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}"],["3[1-9]\\d{8}|3[2-9]\\d{7}",[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]],0,0,0,["55\\d{8}",[10]],["84(?:[08]\\d{3}|[17])\\d{3}",[6,9]]]],JE:["44","00","1534\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([0-24-8]\\d{5})$|0","1534$1",0,0,[["1534[0-24-8]\\d{5}"],["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97[7-9]))\\d{5}"],["80(?:07(?:35|81)|8901)\\d{4}"],["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"],["701511\\d{4}"],0,["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}"],["56\\d{8}"]]],JM:["1","011","(?:[58]\\d\\d|658|900)\\d{7}",[10],0,"1",0,0,0,0,"658|876"],JO:["962","00","(?:(?:[2689]|7\\d)\\d|32|53)\\d{6}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],["(\\d{3})(\\d{5,6})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["70"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],JP:["81","010","00[1-9]\\d{6,14}|[257-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",[8,9,10,11,12,13,14,15,16,17],[["(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1"],["(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["[36]|4(?:2[09]|7[01])","[36]|4(?:2(?:0|9[02-69])|7(?:0[019]|1))"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"],"0$1"],["(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["[14]|[289][2-9]|5[3-9]|7[2-4679]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[257-9]"],"0$1"]],"0",0,"(000[259]\\d{6})$|(?:(?:003768)0?)|0","$1"],KE:["254","000","(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}",[7,8,9,10],[["(\\d{2})(\\d{5,7})","$1 $2",["[24-6]"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[17]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0"],KG:["996","00","8\\d{9}|[235-9]\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["3(?:1[346]|[24-79])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-79]|88"],"0$1"],["(\\d{3})(\\d{3})(\\d)(\\d{2,3})","$1 $2 $3 $4",["8"],"0$1"]],"0"],KH:["855","00[14-9]","1\\d{9}|[1-9]\\d{7,8}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],KI:["686","00","(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",[5,8],0,"0"],KM:["269","00","[3478]\\d{6}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]]],KN:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","869$1",0,"869"],KP:["850","00|99","85\\d{6}|(?:19\\d|[2-7])\\d{7}",[8,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"]],"0"],KR:["82","00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))","00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}",[5,6,8,9,10,11,12,13,14],[["(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1"],["(\\d{4})(\\d{4})","$1-$2",["1"]],["(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60|8"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1"]],"0",0,"0(8(?:[1-46-8]|5\\d\\d))?"],KW:["965","00","18\\d{5}|(?:[2569]\\d|41)\\d{6}",[7,8],[["(\\d{4})(\\d{3,4})","$1 $2",["[169]|2(?:[235]|4[1-35-9])|52"]],["(\\d{3})(\\d{5})","$1 $2",["[245]"]]]],KY:["1","011","(?:345|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","345$1",0,"345"],KZ:["7","810","(?:33622|8\\d{8})\\d{5}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"33|7",0,"8~10"],LA:["856","00","[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["30[013-9]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[23]"],"0$1"]],"0"],LB:["961","00","[27-9]\\d{7}|[13-9]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-7]|9[04-9])|8[02-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27-9]"]]],"0"],LC:["1","011","(?:[58]\\d\\d|758|900)\\d{7}",[10],0,"1",0,"([2-8]\\d{6})$|1","758$1",0,"758"],LI:["423","00","[68]\\d{8}|(?:[2378]\\d|90)\\d{5}",[7,9],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2379]|8(?:0[09]|7)","[2379]|8(?:0(?:02|9)|7)"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["69"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]],"0",0,"(1001)|0"],LK:["94","00","[1-9]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[1-689]"],"0$1"]],"0"],LR:["231","00","(?:[25]\\d|33|77|88)\\d{7}|(?:2\\d|[4-6])\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[4-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23578]"],"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]"],"(8-$1)",1],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"8 $1",1],["(\\d{2})(\\d{6})","$1 $2",["37|4(?:[15]|6[1-8])"],"(8-$1)",1],["(\\d{3})(\\d{5})","$1 $2",["[3-6]"],"(8-$1)",1]],"8",0,"[08]"],LU:["352","00","35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}",[4,5,6,7,8,9,10,11],[["(\\d{2})(\\d{3})","$1 $2",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20[2-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["2(?:[0367]|4[3-8])"]],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["2(?:[0367]|4[3-8])"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})","$1 $2 $3 $4",["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]]],0,0,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"],LV:["371","00","(?:[268]\\d|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[269]|8[01]"]]]],LY:["218","00","[2-9]\\d{8}",[9],[["(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],"0"],MA:["212","00","[5-8]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5[45]"],"0$1"],["(\\d{4})(\\d{5})","$1-$2",["5(?:2[2-489]|3[5-9]|9)|8(?:0[89]|92)","5(?:2(?:[2-49]|8[235-9])|3[5-9]|9)|8(?:0[89]|92)"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8"],"0$1"],["(\\d{3})(\\d{6})","$1-$2",["[5-7]"],"0$1"]],"0",0,0,0,0,0,[["5(?:2(?:[0-25-79]\\d|3[1-578]|4[02-46-8]|8[0235-7])|3(?:[0-47]\\d|5[02-9]|6[02-8]|8[014-9]|9[3-9])|(?:4[067]|5[03])\\d)\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[0167]\\d|2[0-2]|5[01]|8[0-3]))\\d{6}"],["80[0-7]\\d{6}"],["89\\d{7}"],0,0,0,0,["(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}"]]],MC:["377","00","(?:[3489]|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["4"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[389]"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["6"],"0$1"]],"0"],MD:["373","00","(?:[235-7]\\d|[89]0)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["22|3"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[25-7]"],"0$1"]],"0"],ME:["382","00","(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"0$1"]],"0"],MF:["590","00","590\\d{6}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)\\d{4}"],["69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:395|76[018])\\d|475[0-5])\\d{4}"]]],MG:["261","00","[23]\\d{8}",[9],[["(\\d{2})(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",["[23]"],"0$1"]],"0",0,"([24-9]\\d{6})$|0","20$1"],MH:["692","011","329\\d{4}|(?:[256]\\d|45)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1-$2",["[2-6]"]]],"1"],MK:["389","00","[2-578]\\d{7}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2|34[47]|4(?:[37]7|5[47]|64)"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[347]"],"0$1"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["[58]"],"0$1"]],"0"],ML:["223","00","[24-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]]],MM:["95","00","1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}",[6,7,8,9,10],[["(\\d)(\\d{2})(\\d{3})","$1 $2 $3",["16|2"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["[45]|6(?:0[23]|[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-6]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[4-7]|8[1-35]"],"0$1"],["(\\d)(\\d{3})(\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[137-9])"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["92"],"0$1"],["(\\d)(\\d{5})(\\d{4})","$1 $2 $3",["9"],"0$1"]],"0"],MN:["976","001","[12]\\d{7,9}|[5-9]\\d{7}",[8,9,10],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[12]1"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[5-9]"]],["(\\d{3})(\\d{5,6})","$1 $2",["[12]2[1-3]"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["[12](?:27|3[2-8]|4[2-68]|5[1-4689])","[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["[12]"],"0$1"]],"0"],MO:["853","00","0800\\d{3}|(?:28|[68]\\d)\\d{6}",[7,8],[["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{4})(\\d{4})","$1 $2",["[268]"]]]],MP:["1","011","[58]\\d{9}|(?:67|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","670$1",0,"670"],MQ:["596","00","596\\d{6}|(?:69|80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[569]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],MR:["222","00","(?:[2-4]\\d\\d|800)\\d{5}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-48]"]]]],MS:["1","011","(?:[58]\\d\\d|664|900)\\d{7}",[10],0,"1",0,"([34]\\d{6})$|1","664$1",0,"664"],MT:["356","00","3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2357-9]"]]]],MU:["230","0(?:0|[24-7]0|3[03])","(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[2-46]|8[013]"]],["(\\d{4})(\\d{4})","$1 $2",["[57]"]],["(\\d{5})(\\d{5})","$1 $2",["8"]]],0,0,0,0,0,0,0,"020"],MV:["960","0(?:0|19)","(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}",[7,10],[["(\\d{3})(\\d{4})","$1-$2",["[34679]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"]]],0,0,0,0,0,0,0,"00"],MW:["265","00","(?:[1289]\\d|31|77)\\d{7}|1\\d{6}",[7,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["1[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[137-9]"],"0$1"]],"0"],MX:["52","0[09]","1(?:(?:[27]2|44|87|99)[1-9]|65[0-689])\\d{7}|(?:1(?:[01]\\d|2[13-9]|[35][1-9]|4[0-35-9]|6[0-46-9]|7[013-9]|8[1-69]|9[1-8])|[2-9]\\d)\\d{8}",[10,11],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"],0,1],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 $3 $4",["1(?:33|5[56]|81)"],0,1],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 $3 $4",["1"],0,1]],"01",0,"0(?:[12]|4[45])|1",0,0,0,0,"00"],MY:["60","00","1\\d{8,9}|(?:3\\d|[4-9])\\d{7}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["[4-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1-$2 $3",["1(?:[02469]|[378][1-9]|53)|8","1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2 $3",["3"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3-$4",["1(?:[367]|80)"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2 $3",["15"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2 $3",["1"],"0$1"]],"0"],MZ:["258","00","(?:2|8\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2|8[2-79]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],NA:["264","00","[68]\\d{7,8}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["87"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],NC:["687","00","(?:050|[2-57-9]\\d\\d)\\d{3}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[02-57-9]"]]]],NE:["227","00","[027-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["08"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[089]|2[013]|7[047]"]]]],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","(?:[124-7]|9\\d{3})\\d{6}|[1-9]\\d{7}|[78]\\d{9,13}",[7,8,10,11,12,13,14],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["78"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]|9(?:0[3-9]|[1-9])"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[3-7]|8[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[78]"],"0$1"],["(\\d{3})(\\d{5})(\\d{5,6})","$1 $2 $3",["[78]"],"0$1"]],"0"],NI:["505","00","(?:1800|[25-8]\\d{3})\\d{4}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[125-8]"]]]],NL:["31","00","(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}",[5,6,7,8,9,10,11],[["(\\d{3})(\\d{4,7})","$1 $2",["[89]0"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["66"],"0$1"],["(\\d)(\\d{8})","$1 $2",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-578]|91"],"0$1"],["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3",["9"],"0$1"]],"0"],NO:["47","00","(?:0|[2-9]\\d{3})\\d{4}",[5,8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]"]]],0,0,0,0,0,"[02-689]|7[0-8]"],NP:["977","00","(?:1\\d|9)\\d{9}|[1-9]\\d{7}",[8,10,11],[["(\\d)(\\d{7})","$1-$2",["1[2-6]"],"0$1"],["(\\d{2})(\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-59]|[67][2-6])"],"0$1"],["(\\d{3})(\\d{7})","$1-$2",["9"]]],"0"],NR:["674","00","(?:444|(?:55|8\\d)\\d|666)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[4-68]"]]]],NU:["683","00","(?:[4-7]|888\\d)\\d{3}",[4,7],[["(\\d{3})(\\d{4})","$1 $2",["8"]]]],NZ:["64","0(?:0|161)","[1289]\\d{9}|50\\d{5}(?:\\d{2,3})?|[27-9]\\d{7,8}|(?:[34]\\d|6[0-35-9])\\d{6}|8\\d{4,6}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,8})","$1 $2",["8[1-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["50[036-8]|8|90","50(?:[0367]|88)|8|90"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["24|[346]|7[2-57-9]|9[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:10|74)|[589]"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1|2[028]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,5})","$1 $2 $3",["2(?:[169]|7[0-35-9])|7"],"0$1"]],"0",0,0,0,0,0,0,"00"],OM:["968","00","(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}",[7,8,9],[["(\\d{3})(\\d{4,6})","$1 $2",["[58]"]],["(\\d{2})(\\d{6})","$1 $2",["2"]],["(\\d{4})(\\d{4})","$1 $2",["[179]"]]]],PA:["507","00","(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}",[7,8,10,11],[["(\\d{3})(\\d{4})","$1-$2",["[1-57-9]"]],["(\\d{4})(\\d{4})","$1-$2",["[68]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]]],PE:["51","00|19(?:1[124]|77|90)00","(?:[14-8]|9\\d)\\d{7}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["80"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["1"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[4-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"]]],"0",0,0,0,0,0,0,"00"," Anexo "],PF:["689","00","4\\d{5}(?:\\d{2})?|8\\d{7,8}",[6,8,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["44"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4|8[7-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],PG:["675","00|140[1-3]","(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["18|[2-69]|85"]],["(\\d{4})(\\d{4})","$1 $2",["[78]"]]],0,0,0,0,0,0,0,"00"],PH:["63","00","(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}",[6,8,9,10,11,12,13],[["(\\d)(\\d{5})","$1 $2",["2"],"(0$1)"],["(\\d{4})(\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)"],["(\\d{5})(\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|8[2-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["1"]]],"0"],PK:["92","00","122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,7})","$1 $2 $3",["[89]0"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["1"]],["(\\d{3})(\\d{6,7})","$1 $2",["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])","9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"],"(0$1)"],["(\\d{2})(\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"],"(0$1)"],["(\\d{5})(\\d{5})","$1 $2",["58"],"(0$1)"],["(\\d{3})(\\d{7})","$1 $2",["3"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[24-9]"],"(0$1)"]],"0"],PL:["48","00","(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}",[6,7,8,9,10],[["(\\d{5})","$1",["19"]],["(\\d{3})(\\d{3})","$1 $2",["11|20|64"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1","(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["64"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[2-8]|[2-7]|8[1-79]|9[145]"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["8"]]]],PM:["508","00","[45]\\d{5}|(?:708|80\\d)\\d{6}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[45]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],PR:["1","011","(?:[589]\\d\\d|787)\\d{7}",[10],0,"1",0,0,0,0,"787|939"],PS:["970","00","[2489]2\\d{6}|(?:1\\d|5)\\d{8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2489]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["5"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],PT:["351","00","1693\\d{5}|(?:[26-9]\\d|30)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["2[12]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["16|[236-9]"]]]],PW:["680","01[12]","(?:[24-8]\\d\\d|345|900)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],PY:["595","00","59\\d{4,6}|9\\d{5,10}|(?:[2-46-8]\\d|5[0-8])\\d{4,7}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36]"],"(0$1)"],["(\\d{3})(\\d{4,5})","$1 $2",["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["87"]],["(\\d{3})(\\d{6})","$1 $2",["9(?:[5-79]|8[1-6])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["9"]]],"0"],QA:["974","00","800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}",[7,8,9,11],[["(\\d{3})(\\d{4})","$1 $2",["2[16]|8"]],["(\\d{4})(\\d{4})","$1 $2",["[3-7]"]]]],RE:["262","00","(?:26|[689]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2689]"],"0$1"]],"0",0,0,0,0,0,[["26(?:2\\d\\d|3(?:0\\d|1[0-6]))\\d{4}"],["69(?:2\\d\\d|3(?:[06][0-6]|1[013]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))\\d{4}"],["80\\d{7}"],["89[1-37-9]\\d{6}"],0,0,0,0,["9(?:399[0-3]|479[0-5]|76(?:2[27]|3[0-37]))\\d{4}"],["8(?:1[019]|2[0156]|84|90)\\d{6}"]]],RO:["40","00","(?:[2378]\\d|62|90)\\d{7}|[23]\\d{5}",[6,9],[["(\\d{3})(\\d{3})","$1 $2",["2[3-6]","2[3-6]\\d9"],"0$1"],["(\\d{2})(\\d{4})","$1 $2",["219|31"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23]1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[236-9]"],"0$1"]],"0",0,0,0,0,0,0,0," int "],RS:["381","00","38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}",[6,7,8,9,10,11,12],[["(\\d{3})(\\d{3,9})","$1 $2",["(?:2[389]|39)0|[7-9]"],"0$1"],["(\\d{2})(\\d{5,10})","$1 $2",["[1-36]"],"0$1"]],"0"],RU:["7","810","8\\d{13}|[347-9]\\d{9}",[10,14],[["(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"],"8 ($1)",1],["(\\d{5})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-68]|2[1-9])","7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))","7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[349]|8(?:[02-7]|1[1-8])"],"8 ($1)",1],["(\\d{4})(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3 $4",["8"],"8 ($1)"]],"8",0,0,0,0,"3[04-689]|[489]",0,"8~10"],RW:["250","00","(?:06|[27]\\d\\d|[89]00)\\d{6}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1"]],"0"],SA:["966","00","92\\d{7}|(?:[15]|8\\d)\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["9"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["81"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],"0"],SB:["677","0[01]","(?:[1-6]|[7-9]\\d\\d)\\d{4}",[5,7],[["(\\d{2})(\\d{5})","$1 $2",["7|8[4-9]|9(?:[1-8]|9[0-8])"]]]],SC:["248","010|0[0-2]","800\\d{4}|(?:[249]\\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],[["(\\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-8]|[1-9])"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]],["(\\d{4})(\\d{4})(\\d{3})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],SH:["290","00","(?:[256]\\d|8)\\d{3}",[4,5],0,0,0,0,0,0,"[256]"],SI:["386","00|10(?:22|66|88|99)","[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}",[5,6,7,8],[["(\\d{2})(\\d{3,6})","$1 $2",["8[09]|9"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["59|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37][01]|4[0139]|51|6"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-57]"],"(0$1)"]],"0",0,0,0,0,0,0,"00"],SJ:["47","00","0\\d{4}|(?:[489]\\d|79)\\d{6}",[5,8],0,0,0,0,0,0,"79"],SK:["421","00","[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}",[6,7,9],[["(\\d)(\\d{2})(\\d{3,4})","$1 $2 $3",["21"],"0$1"],["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["[3-5][1-8]1","[3-5][1-8]1[67]"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1/$2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1/$2 $3 $4",["[3-5]"],"0$1"]],"0"],SL:["232","00","(?:[237-9]\\d|66)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[236-9]"],"(0$1)"]],"0"],SM:["378","00","(?:0549|[5-7]\\d)\\d{6}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],["(\\d{4})(\\d{6})","$1 $2",["0"]]],0,0,"([89]\\d{5})$","0549$1"],SN:["221","00","(?:[378]\\d|93)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[379]"]]]],SO:["252","00","[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}",[6,7,8,9],[["(\\d{2})(\\d{4})","$1 $2",["8[125]"]],["(\\d{6})","$1",["[134]"]],["(\\d)(\\d{6})","$1 $2",["[15]|2[0-79]|3[0-46-8]|4[0-7]"]],["(\\d)(\\d{7})","$1 $2",["(?:2|90)4|[67]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[348]|64|79|90"]],["(\\d{2})(\\d{5,7})","$1 $2",["1|28|6[0-35-9]|77|9[2-9]"]]],"0"],SR:["597","00","(?:[2-5]|68|[78]\\d)\\d{5}",[6,7],[["(\\d{2})(\\d{2})(\\d{2})","$1-$2-$3",["56"]],["(\\d{3})(\\d{3})","$1-$2",["[2-5]"]],["(\\d{3})(\\d{4})","$1-$2",["[6-8]"]]]],SS:["211","00","[19]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[19]"],"0$1"]],"0"],ST:["239","00","(?:22|9\\d)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[29]"]]]],SV:["503","00","[267]\\d{7}|[89]00\\d{4}(?:\\d{4})?",[7,8,11],[["(\\d{3})(\\d{4})","$1 $2",["[89]"]],["(\\d{4})(\\d{4})","$1 $2",["[267]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[89]"]]]],SX:["1","011","7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"(5\\d{6})$|1","721$1",0,"721"],SY:["963","00","[1-39]\\d{8}|[1-5]\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-5]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"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|[69]\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2679]"]]],0,0,0,0,0,0,0,"00"],TG:["228","00","[279]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[279]"]]]],TH:["66","00[1-9]","(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}",[8,9,10,13],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[13-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],TJ:["992","810","[0-57-9]\\d{8}",[9],[["(\\d{6})(\\d)(\\d{2})","$1 $2 $3",["331","3317"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["44[02-479]|[34]7"]],["(\\d{4})(\\d)(\\d{4})","$1 $2 $3",["3[1-5]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[0-57-9]"]]],0,0,0,0,0,0,0,"8~10"],TK:["690","00","[2-47]\\d{3,6}",[4,5,6,7]],TL:["670","00","7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[2-489]|70"]],["(\\d{4})(\\d{4})","$1 $2",["7"]]]],TM:["993","810","[1-6]\\d{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",["6"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],TN:["216","00","[2-57-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]]],TO:["676","00","(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}",[5,7],[["(\\d{2})(\\d{3})","$1-$2",["[2-4]|50|6[09]|7[0-24-69]|8[05]"]],["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[5-9]"]]]],TR:["90","00","4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}",[7,10,12,13],[["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["512|8[01589]|90"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5(?:[0-59]|61)","5(?:[0-59]|61[06])","5(?:[0-59]|61[06]1)"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24][1-8]|3[1-9]"],"(0$1)",1],["(\\d{3})(\\d{3})(\\d{6,7})","$1 $2 $3",["80"],"0$1",1]],"0"],TT:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-46-8]\\d{6})$|1","868$1",0,"868"],TV:["688","00","(?:2|7\\d\\d|90)\\d{4}",[5,6,7],[["(\\d{2})(\\d{3})","$1 $2",["2"]],["(\\d{2})(\\d{4})","$1 $2",["90"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],TW:["886","0(?:0[25-79]|19)","[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}",[7,8,9,10,11],[["(\\d{2})(\\d)(\\d{4})","$1 $2 $3",["202"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[258]0"],"0$1"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-47-9])|7[1-9]","[23568]|4(?:0[2-48]|[1-47-9])|(?:400|7)[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,5})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,0,0,"#"],TZ:["255","00[056]","(?:[25-8]\\d|41|90)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[24]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["5"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[67]"],"0$1"]],"0"],UA:["380","00","[89]\\d{9}|[3-9]\\d{8}",[9,10],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]","6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])","3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|89|9[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0",0,0,0,0,0,0,"0~0"],UG:["256","00[057]","800\\d{6}|(?:[29]0|[347]\\d)\\d{7}",[9],[["(\\d{4})(\\d{5})","$1 $2",["202","2024"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[27-9]|4(?:6[45]|[7-9])"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[34]"],"0$1"]],"0"],US:["1","011","[2-9]\\d{9}|3\\d{6}",[10],[["(\\d{3})(\\d{4})","$1-$2",["310"],0,1],["(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",["[2-9]"],0,1,"$1-$2-$3"]],"1",0,0,0,0,0,[["(?:5056(?:[0-35-9]\\d|4[468])|73020\\d)\\d{4}|(?:4722|505[2-57-9]|983[289])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[149]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-57-9]|1[02-9]|2[013569]|3[0-24679]|4[167]|5[0-2]|6[0149]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-47-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|[34][016]|5[01679]|6[0-279]|78|8[0-29])|7(?:0[1-46-8]|1[2-9]|2[04-7]|3[1247]|4[037]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[068]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-389]|8[04-69]))[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}"]]],UY:["598","0(?:0|1[3-9]\\d)","0004\\d{2,9}|[1249]\\d{7}|(?:[49]\\d|80)\\d{5}",[6,7,8,9,10,11,12,13],[["(\\d{3})(\\d{3,4})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[49]0|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[124]"]],["(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3 $4",["0"]]],"0",0,0,0,0,0,0,"00"," int. "],UZ:["998","810","(?:20|33|[5-79]\\d|88)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-9]"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],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],0,0,0,0,0,0,"06698"],VC:["1","011","(?:[58]\\d\\d|784|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","784$1",0,"784"],VE:["58","00","[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}",[10],[["(\\d{3})(\\d{7})","$1-$2",["[24-689]"],"0$1"]],"0"],VG:["1","011","(?:284|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-578]\\d{6})$|1","284$1",0,"284"],VI:["1","011","[58]\\d{9}|(?:34|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","340$1",0,"340"],VN:["84","00","[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["80"],"0$1",1],["(\\d{4})(\\d{4,6})","$1 $2",["1"],0,1],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["6"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[357-9]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",1]],"0"],VU:["678","00","[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}",[5,7],[["(\\d{3})(\\d{4})","$1 $2",["[57-9]"]]]],WF:["681","00","(?:40|72)\\d{4}|8\\d{5}(?:\\d{3})?",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[478]"]],["(\\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","[23]\\d{7,8}|(?:4\\d\\d|[89]00)\\d{5}",[8,9],[["(\\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",["[23]"],"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","(?:80|9\\d)\\d{7}|(?:26|63)9\\d{6}",[9],0,"0",0,0,0,0,0,[["269(?:0[0-467]|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])\\d{4}"],["80\\d{7}"],0,0,0,0,0,["9(?:(?:39|47)8[01]|769\\d)\\d{4}"]]],ZA:["27","00","[1-79]\\d{8}|8\\d{4,9}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,4})","$1 $2",["8[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["8[1-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["860"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],ZM:["260","00","800\\d{6}|(?:21|63|[79]\\d)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[79]"],"0$1"]],"0"],ZW:["263","00","2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}",[5,6,7,8,9,10],[["(\\d{3})(\\d{3,5})","$1 $2",["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"],"0$1"],["(\\d)(\\d{3})(\\d{2,4})","$1 $2 $3",["[49]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["80"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2","2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)","2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["29[013-9]|39|54"],"0$1"],["(\\d{4})(\\d{3,5})","$1 $2",["(?:25|54)8","258|5483"],"0$1"]],"0"]},nonGeographic:{800:["800",0,"(?:00|[1-9]\\d)\\d{6}",[8],[["(\\d{4})(\\d{4})","$1 $2",["\\d"]]],0,0,0,0,0,0,[0,0,["(?:00|[1-9]\\d)\\d{6}"]]],808:["808",0,"[1-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,["[1-9]\\d{7}"]]],870:["870",0,"7\\d{11}|[35-7]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[35-7]"]]],0,0,0,0,0,0,[0,["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"]]],878:["878",0,"10\\d{10}",[12],[["(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["10\\d{10}"]]],881:["881",0,"6\\d{9}|[0-36-9]\\d{8}",[9,10],[["(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-37-9]"]],["(\\d)(\\d{3})(\\d{5,6})","$1 $2 $3",["6"]]],0,0,0,0,0,0,[0,["6\\d{9}|[0-36-9]\\d{8}"]]],882:["882",0,"[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?",[7,8,9,10,11,12],[["(\\d{2})(\\d{5})","$1 $2",["16|342"]],["(\\d{2})(\\d{6})","$1 $2",["49"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["1[36]|9"]],["(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["16"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|23|3(?:[15]|4[57])|4|51"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["34"]],["(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["[1-35]"]]],0,0,0,0,0,0,[0,["342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|50\\d{3})\\d{7}",[7,8,9,10,12]],0,0,0,0,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 Er(e,t){var n=Array.prototype.slice.call(t);return n.push(Sr),e.apply(this,n)}function _n(e){return _n=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},_n(e)}function ea(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Fr(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Mt(e,t){return Mt=Object.setPrototypeOf||function(n,a){return n.__proto__=a,n},Mt(e,t)}function St(e){return St=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},St(e)}var at=function(e){Dr(n,e);var t=Ir(n);function n(a){var i;return Tr(this,n),i=t.call(this,a),Object.setPrototypeOf(Ga(i),n.prototype),i.name=i.constructor.name,i}return Ar(n)}(fn(Error)),bn=2,Pr=17,Nr=3,Xe="0-9\uFF10-\uFF19\u0660-\u0669\u06F0-\u06F9",Vr="-\u2010-\u2015\u2212\u30FC\uFF0D",Rr="\uFF0F/",Br="\uFF0E.",Hr=" \xA0\xAD\u200B\u2060\u3000",Ur="()\uFF08\uFF09\uFF3B\uFF3D\\[\\]",jr="~\u2053\u223C\uFF5E",Ut="".concat(Vr).concat(Rr).concat(Br).concat(Hr).concat(Ur).concat(jr),wn="+\uFF0B";function ta(e,t){e=e.split("-"),t=t.split("-");for(var n=e[0].split("."),a=t[0].split("."),i=0;i<3;i++){var s=Number(n[i]),r=Number(a[i]);if(s>r)return 1;if(r>s)return-1;if(!isNaN(s)&&isNaN(r))return 1;if(isNaN(s)&&!isNaN(r))return-1}return e[1]&&t[1]?e[1]>t[1]?1:e[1]=bn&&so.test(e)}function oo(e){return ao.test(e)}var ra=new RegExp("(?:"+za()+")$","i");function lo(e){var t=e.search(ra);if(t<0)return{};for(var n=e.slice(0,t),a=e.match(ra),i=1;i=e.length?{done:!0}:{done:!1,value:e[a++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ho(e,t){if(e){if(typeof e=="string")return oa(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return oa(e,t)}}function oa(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[a++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mo(e,t){if(e){if(typeof e=="string")return la(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return la(e,t)}}function la(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);nr?"TOO_SHORT":i[i.length-1]=0?"IS_POSSIBLE":"INVALID_LENGTH"}function $o(e,t,n){if(t===void 0&&(t={}),n=new Be(n),t.v2){if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");n.selectNumberingPlan(e.countryCallingCode)}else{if(!e.phone)return!1;if(e.country){if(!n.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));n.country(e.country)}else{if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");n.selectNumberingPlan(e.countryCallingCode)}}if(n.possibleLengths())return Ka(e.phone||e.nationalNumber,n);if(e.countryCallingCode&&n.isNonGeographicCallingCode(e.countryCallingCode))return!0;throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}function Ka(e,t){switch(kn(e,t)){case"IS_POSSIBLE":return!0;default:return!1}}function it(e,t){return e=e||"",new RegExp("^(?:"+t+")$").test(e)}function vo(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=yo(e))||t&&e&&typeof e.length=="number"){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. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yo(e,t){if(e){if(typeof e=="string")return ua(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ua(e,t)}}function ua(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n=0}function ko(e){return e.replace(new RegExp("[".concat(Ut,"]+"),"g")," ").trim()}var xo=/(\$\d)/;function Mo(e,t,n){var a=n.useInternationalFormat,i=n.withNationalPrefix;n.carrierCode,n.metadata;var s=e.replace(new RegExp(t.pattern()),a?t.internationalFormat():i&&t.nationalPrefixFormattingRule()?t.format().replace(xo,t.nationalPrefixFormattingRule()):t.format());return a?ko(s):s}var So=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function Eo(e,t,n){var a=new Be(n);if(a.selectNumberingPlan(e,t),a.defaultIDDPrefix())return a.defaultIDDPrefix();if(So.test(a.IDDPrefix()))return a.IDDPrefix()}function Ao(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:"")}function To(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=Do(e))||t&&e&&typeof e.length=="number"){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. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Do(e,t){if(e){if(typeof e=="string")return ca(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ca(e,t)}}function ca(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n0){var s=i.leadingDigitsPatterns()[i.leadingDigitsPatterns().length-1];if(t.search(s)!==0)continue}if(it(t,i.pattern()))return i}}function un(e,t,n,a){return t?a(e,t,n):e}function Po(e,t,n,a,i){var s=Ln(a,i.metadata);if(s===n){var r=jt(e,t,"NATIONAL",i);return n==="1"?n+" "+r:r}var o=Eo(a,void 0,i.metadata);if(o)return"".concat(o," ").concat(n," ").concat(jt(e,null,"INTERNATIONAL",i))}function fa(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 ma(e){for(var t=1;t0&&r[1]==="0"))return e}}}function Go(e,t){if(e&&t.numberingPlan.nationalPrefixForParsing()){var n=new RegExp("^(?:"+t.numberingPlan.nationalPrefixForParsing()+")"),a=n.exec(e);if(a){var i,s,r=a.length-1,o=r>0&&a[r];if(t.nationalPrefixTransformRule()&&o)i=e.replace(n,t.nationalPrefixTransformRule()),r>1&&(s=a[1]);else{var l=a[0];i=e.slice(l.length),o&&(s=a[1])}var d;if(o){var p=e.indexOf(a[1]),w=e.slice(0,p);w===t.numberingPlan.nationalPrefix()&&(d=t.numberingPlan.nationalPrefix())}else d=a[0];return{nationalNumber:i,nationalPrefix:d,carrierCode:s}}}return{nationalNumber:e}}function pn(e,t){var n=Go(e,t),a=n.carrierCode,i=n.nationalNumber;if(i!==e){if(!qo(e,i,t))return{nationalNumber:e};if(t.possibleLengths()&&!Wo(i,t))return{nationalNumber:e}}return{nationalNumber:i,carrierCode:a}}function qo(e,t,n){return!(it(e,n.nationalNumberPattern())&&!it(t,n.nationalNumberPattern()))}function Wo(e,t){switch(kn(e,t)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}function zo(e,t,n,a){var i=t?Ln(t,a):n;if(e.indexOf(i)===0){a=new Be(a),a.selectNumberingPlan(t,n);var s=e.slice(i.length),r=pn(s,a),o=r.nationalNumber,l=pn(e,a),d=l.nationalNumber;if(!it(d,a.nationalNumberPattern())&&it(o,a.nationalNumberPattern())||kn(d,a)==="TOO_LONG")return{countryCallingCode:i,number:s}}return{number:e}}function Yo(e,t,n,a){if(!e)return{};var i;if(e[0]!=="+"){var s=Zo(e,t,n,a);if(s&&s!==e)i=!0,e="+"+s;else{if(t||n){var r=zo(e,t,n,a),o=r.countryCallingCode,l=r.number;if(o)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:o,number:l}}return{number:e}}}if(e[1]==="0")return{};a=new Be(a);for(var d=2;d-1<=Nr&&d<=e.length;){var p=e.slice(1,d);if(a.hasCallingCode(p))return a.selectNumberingPlan(p),{countryCallingCodeSource:i?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:p,number:e.slice(d)};d++}return{}}function Ko(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=Jo(e))||t&&e&&typeof e.length=="number"){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. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Jo(e,t){if(e){if(typeof e=="string")return $a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $a(e,t)}}function $a(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n0)return s[0]}function Qo(e,t){var n=t.nationalNumber,a=t.defaultCountry,i=t.metadata,s=i.getCountryCodesForCallingCode(e);if(s)return s.length===1?s[0]:Xo(n,{countries:s,defaultCountry:a,metadata:i.metadata})}var Ja="+",ed="[\\-\\.\\(\\)]?",va="(["+Xe+"]|"+ed+")",td="^\\"+Ja+va+"*["+Xe+"]"+va+"*$",nd=new RegExp(td,"g"),$n=Xe,ad="["+$n+"]+((\\-)*["+$n+"])*",id="a-zA-Z",sd="["+id+"]+((\\-)*["+$n+"])*",rd="^("+ad+"\\.)*"+sd+"\\.?$",od=new RegExp(rd,"g"),ya="tel:",vn=";phone-context=",dd=";isub=";function ld(e){var t=e.indexOf(vn);if(t<0)return null;var n=t+vn.length;if(n>=e.length)return"";var a=e.indexOf(";",n);return a>=0?e.substring(n,a):e.substring(n)}function ud(e){return e===null?!0:e.length===0?!1:nd.test(e)||od.test(e)}function cd(e,t){var n=t.extractFormattedPhoneNumber,a=ld(e);if(!ud(a))throw new at("NOT_A_NUMBER");var i;if(a===null)i=n(e)||"";else{i="",a.charAt(0)===Ja&&(i+=a);var s=e.indexOf(ya),r;s>=0?r=s+ya.length:r=0;var o=e.indexOf(vn);i+=e.substring(r,o)}var l=i.indexOf(dd);if(l>0&&(i=i.substring(0,l)),i!=="")return i}var gd=250,hd=new RegExp("["+wn+Xe+"]"),_d=new RegExp("[^"+Xe+"#]+$");function fd(e,t,n){if(t=t||{},n=new Be(n),t.defaultCountry&&!n.hasCountry(t.defaultCountry))throw t.v2?new at("INVALID_COUNTRY"):new Error("Unknown country: ".concat(t.defaultCountry));var a=pd(e,t.v2,t.extract),i=a.number,s=a.ext,r=a.error;if(!i){if(t.v2)throw r==="TOO_SHORT"?new at("TOO_SHORT"):new at("NOT_A_NUMBER");return{}}var o=vd(i,t.defaultCountry,t.defaultCallingCode,n),l=o.country,d=o.nationalNumber,p=o.countryCallingCode,w=o.countryCallingCodeSource,R=o.carrierCode;if(!n.hasSelectedNumberingPlan()){if(t.v2)throw new at("INVALID_COUNTRY");return{}}if(!d||d.lengthPr){if(t.v2)throw new at("TOO_LONG");return{}}if(t.v2){var y=new Bo(p,d,n.metadata);return l&&(y.country=l),R&&(y.carrierCode=R),s&&(y.ext=s),y.__countryCallingCodeSource=w,y}var C=(t.extended?n.hasSelectedNumberingPlan():l)?it(d,n.nationalNumberPattern()):!1;return t.extended?{country:l,countryCallingCode:p,carrierCode:R,valid:C,possible:C?!0:!!(t.extended===!0&&n.possibleLengths()&&Ka(d,n)),phone:d,ext:s}:C?$d(l,d,s):{}}function md(e,t,n){if(e){if(e.length>gd){if(n)throw new at("TOO_LONG");return}if(t===!1)return e;var a=e.search(hd);if(!(a<0))return e.slice(a).replace(_d,"")}}function pd(e,t,n){var a=cd(e,{extractFormattedPhoneNumber:function(s){return md(s,n,t)}});if(!a)return{};if(!ro(a))return oo(a)?{error:"TOO_SHORT"}:{};var i=lo(a);return i.ext?i:{number:a}}function $d(e,t,n){var a={country:e,phone:t};return n&&(a.ext=n),a}function vd(e,t,n,a){var i=Yo(da(e),t,n,a.metadata),s=i.countryCallingCodeSource,r=i.countryCallingCode,o=i.number,l;if(r)a.selectNumberingPlan(r);else if(o&&(t||n))a.selectNumberingPlan(t,n),t&&(l=t),r=n||Ln(t,a.metadata);else return{};if(!o)return{countryCallingCodeSource:s,countryCallingCode:r};var d=pn(da(o),a),p=d.nationalNumber,w=d.carrierCode,R=Qo(r,{nationalNumber:p,defaultCountry:t,metadata:a});return R&&(l=R,R==="001"||a.country(l)),{country:l,countryCallingCode:r,countryCallingCodeSource:s,nationalNumber:p,carrierCode:w}}function Ca(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 ba(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,a=new Array(t);nVe("allCountries")},autoFormat:{type:Boolean,default:()=>Ve("autoFormat")},customValidate:{type:[Boolean,RegExp],default:()=>Ve("customValidate")},defaultCountry:{type:[String,Number],default:()=>Ve("defaultCountry")},disabled:{type:Boolean,default:()=>Ve("disabled")},autoDefaultCountry:{type:Boolean,default:()=>Ve("autoDefaultCountry")},dropdownOptions:{type:Object,default:()=>Ve("dropdownOptions")},ignoredCountries:{type:Array,default:()=>Ve("ignoredCountries")},inputOptions:{type:Object,default:()=>Ve("inputOptions")},invalidMsg:{type:String,default:()=>Ve("invalidMsg")},mode:{type:String,default:()=>Ve("mode")},onlyCountries:{type:Array,default:()=>Ve("onlyCountries")},preferredCountries:{type:Array,default:()=>Ve("preferredCountries")},validCharactersOnly:{type:Boolean,default:()=>Ve("validCharactersOnly")},styleClasses:{type:[String,Array,Object],default:()=>Ve("styleClasses")}},{modelValue:{type:String},modelModifiers:{}}),emits:Bn(["blur","close","country-changed","enter","focus","on-input","open","space","validate"],["update:modelValue"]),setup(e,{expose:t,emit:n}){const a=nn(),i=nn(),s=nn(),r=n,o=e,l=_i(e,"modelValue");ke(l,(b,M)=>{re()?d.phone=b!=null?b:"":Ee(()=>{d.phone=M!=null?M:"",F()})});const d=ht({phone:"",activeCountryCode:void 0,open:!1,finishMounted:!1,selectedIndex:null,typeToFindInput:"",typeToFindTimer:void 0,dropdownOpenDirection:"below",parsedPlaceholder:o.inputOptions.placeholder,searchQuery:""});ke(()=>d.open,b=>{b?(q(),r("open")):r("close")});const p=v(()=>o.onlyCountries.length?o.allCountries.filter(({iso2:b})=>o.onlyCountries.some(M=>xt(M)===b)):o.ignoredCountries.length?o.allCountries.filter(({iso2:b})=>!o.ignoredCountries.includes(xt(b))&&!o.ignoredCountries.includes(kt(b))):o.allCountries),w=v(()=>S(d.activeCountryCode));ke(w,(b,M)=>{if(!b&&M!=null&&M.iso2){d.activeCountryCode=M.iso2;return}b!=null&&b.iso2&&r("country-changed",b)});const R=v(()=>{var b;const M=kt(o.mode);return M==="auto"?(b=d.phone)!=null&&b.startsWith("+")?"international":"national":["national","international","e.164","rfc3966","idd"].includes(M)?M:(console.error('Invalid value of prop "mode"'),"international")}),y=v(()=>{const b=[...x(o.preferredCountries).map(K=>({...K,preferred:!0})),...p.value];if(!o.dropdownOptions.showSearchBox)return b;const M=d.searchQuery.toLowerCase().replace(/[~`!@#$%^&*()+={}\[\];:\'\"<>.,\/\\\?-_]/g,"");return b.filter(K=>new RegExp(M,"i").test(K.name)||new RegExp(M,"i").test(K.iso2)||new RegExp(M,"i").test(K.dialCode))}),C=v(()=>{var b;const M=d.phone.startsWith("+")?cn(d.phone):cn(d.phone,d.activeCountryCode),K={country:M==null?void 0:M.country,countryCode:M==null?void 0:M.country,formatted:d.phone,valid:M==null?void 0:M.isValid(),possible:(b=M==null?void 0:M.isPossible)==null?void 0:b.call(M),nationalNumber:M==null?void 0:M.nationalNumber};return K.valid&&(K.formatted=M==null?void 0:M.format(xt(R.value))),M!=null&&M.country&&(o.ignoredCountries.length||o.onlyCountries.length)&&!S(M.country)&&(K.valid=!1,K.possible=!1,M.country=null),M?{...K,...M}:K});ke(()=>C.value.countryCode,b=>{b&&(d.activeCountryCode=b)}),ke(()=>C.value.valid,()=>{r("validate",C.value)}),ke(()=>C.value.formatted,b=>{!o.autoFormat||o.customValidate||(Y(b),Ee(()=>{b&&!l.value&&(d.phone=b)}))}),ke(()=>o.inputOptions.placeholder,T),lt(()=>{l.value&&(d.phone=l.value.trim()),ae(),u().then(()=>{var b;!d.phone&&(b=o.inputOptions)!=null&&b.showDialCode&&d.activeCountryCode&&(d.phone=`+${d.activeCountryCode}`),r("validate",C.value)}).catch(console.error).then(()=>{d.finishMounted=!0})});function T(){d.parsedPlaceholder=o.inputOptions.placeholder}function u(){return new Promise(b=>{var M;if(((M=d.phone)==null?void 0:M[0])==="+"){b();return}if(o.defaultCountry){if(typeof o.defaultCountry=="string"){N(o.defaultCountry),b();return}if(typeof o.defaultCountry=="number"){const Q=D(o.defaultCountry);if(Q){N(Q.iso2),b();return}}}const K=o.preferredCountries[0]||p.value[0];o.autoDefaultCountry?Lr().then(Q=>{N(Q||d.activeCountryCode)}).catch(Q=>{console.warn(Q),N(K)}).then(()=>{b()}):(N(K),b())})}function x(b=[]){return b.map(S).filter(Boolean)}function S(b=""){return p.value.find(M=>M.iso2===xt(b))}function D(b){return p.value.find(M=>Number(M.dialCode)===b)}function X(b,M){const K=d.selectedIndex===b,Q=b===o.preferredCountries.length-1,_e=o.preferredCountries.some(xe=>xt(xe)===M);return{highlighted:K,"last-preferred":Q,preferred:_e}}function N(b){var xe;var M,K,Q;let _e=b;if(typeof _e=="string"&&(_e=S(_e)),!!_e){if(((M=d.phone)==null?void 0:M[0])==="+"&&_e.iso2&&C.value.nationalNumber){d.activeCountryCode=_e.iso2,d.phone=(xe=(K=cn(C.value.nationalNumber,_e.iso2))==null?void 0:K.formatInternational())!=null?xe:"";return}if((Q=o.inputOptions)!=null&&Q.showDialCode&&_e){d.phone=`+${_e.dialCode}`,d.activeCountryCode=_e.iso2;return}d.activeCountryCode=_e.iso2,Y(d.phone)}}function ae(){const b=d.phone;if(o.validCharactersOnly){const M=d.phone.match(/[()\-+0-9\s]*/g);d.phone=M.join("")}if(o.customValidate&&o.customValidate instanceof RegExp){const M=d.phone.match(o.customValidate);d.phone=M.join("")}b!==d.phone&&Y(d.phone)}function re(){return o.validCharactersOnly&&!/^[()\-+0-9\s]*$/.test(d.phone)?!1:o.customValidate?V():!0}function V(){return o.customValidate instanceof RegExp?o.customValidate.test(d.phone):!1}function F(){var b;(b=s.value)==null||b.setCustomValidity(C.value.valid?"":o.invalidMsg),Y(d.phone)}function Y(b){l.value=b,r("on-input",b,C.value,s.value)}function z(b){r("blur",b)}function se(b){kr(s.value,d.phone.length),r("focus",b)}function ge(b){r("enter",b)}function P(b){r("space",b)}function I(){var b;(b=s.value)==null||b.focus()}function A(){var b;(b=s.value)==null||b.blur()}function B(){o.disabled||o.dropdownOptions.disabled||(d.searchQuery="",d.open=!d.open)}function O(){d.open=!1}function Z(b){if(b.keyCode===40){b.preventDefault(),d.open=!0,d.selectedIndex===null?d.selectedIndex=0:d.selectedIndex=Math.min(y.value.length-1,d.selectedIndex+1);const M=i.value.children[d.selectedIndex];M.focus(),M.offsetTop+M.clientHeight>i.value.scrollTop+i.value.clientHeight&&(i.value.scrollTop=M.offsetTop-i.value.clientHeight+M.clientHeight)}else if(b.keyCode===38){b.preventDefault(),d.open=!0,d.selectedIndex===null?d.selectedIndex=y.value.length-1:d.selectedIndex=Math.max(0,d.selectedIndex-1);const M=i.value.children[d.selectedIndex];M.focus(),M.offsetTop{d.typeToFindInput=""},700);const M=y.value.slice(o.preferredCountries.length).findIndex(K=>kt(K.name).startsWith(d.typeToFindInput));if(M>=0){d.selectedIndex=o.preferredCountries.length+M;const K=i.value.children[d.selectedIndex],Q=K.offsetTopi.value.scrollTop+i.value.clientHeight;(Q||_e)&&(i.value.scrollTop=K.offsetTop-i.value.clientHeight/2)}}}function U(){d.selectedIndex=y.value.map(b=>b.iso2).indexOf(d.activeCountryCode),d.open=!1}function q(){window.innerHeight-a.value.getBoundingClientRect().bottom>200?d.dropdownOpenDirection="below":d.dropdownOpenDirection="above"}return t({focus:I,blur:A}),(b,M)=>{const K=mt("click-outside");return c(),g("div",{ref_key:"refRoot",ref:a,class:j(["vue-tel-input",e.styleClasses,{disabled:e.disabled}])},[Ae((c(),g("div",{"aria-label":"Country Code Selector","aria-haspopup":"listbox","aria-expanded":d.open,role:"button",class:j(["vti__dropdown",{open:d.open,disabled:e.dropdownOptions.disabled}]),tabindex:e.dropdownOptions.tabindex,onKeydown:[Z,Pe(B,["space"]),Pe(U,["esc"]),Pe(U,["tab"])],onClick:B},[_("span",Fd,[e.dropdownOptions.showFlags?(c(),g("span",{key:0,class:j(["vti__flag",h(kt)(d.activeCountryCode)])},null,2)):k("",!0),e.dropdownOptions.showDialCodeInSelection?(c(),g("span",Pd," +"+H(w.value&&w.value.dialCode),1)):k("",!0),an(b.$slots,"arrow-icon",{open:d.open},()=>[_("span",Nd,H(d.open?"\u25B2":"\u25BC"),1)])]),d.open?(c(),g("ul",{key:0,ref_key:"refList",ref:i,class:j(["vti__dropdown-list",d.dropdownOpenDirection]),role:"listbox"},[e.dropdownOptions.showSearchBox?(c(),g("div",Vd,[an(b.$slots,"search-icon"),Ae(_("input",{class:j(["vti__input","vti__search_box"]),"aria-label":"Search by country name or country code",placeholder:e.dropdownOptions.searchBoxPlaceholder||(y.value.length?y.value[0].name:""),type:"text","onUpdate:modelValue":M[0]||(M[0]=Q=>d.searchQuery=Q),onClick:M[1]||(M[1]=dt(()=>{},["stop"]))},null,8,Rd),[[_t,d.searchQuery]])])):k("",!0),(c(!0),g(me,null,We(y.value,(Q,_e)=>(c(),g("li",{role:"option",class:j(["vti__dropdown-item",X(_e,Q.iso2)]),key:Q.iso2+(Q.preferred?"-preferred":""),tabindex:"-1",onClick:xe=>N(Q),onMousemove:xe=>d.selectedIndex=_e,"aria-selected":d.activeCountryCode===Q.iso2&&!Q.preferred},[e.dropdownOptions.showFlags?(c(),g("span",{key:0,class:j(["vti__flag",h(kt)(Q.iso2)])},null,2)):k("",!0),_("strong",null,H(Q.name),1),e.dropdownOptions.showDialCodeInList?(c(),g("span",Hd," +"+H(Q.dialCode),1)):k("",!0)],42,Bd))),128))],2)):k("",!0)],42,Od)),[[K,O]]),Ae(_("input",{"onUpdate:modelValue":M[2]||(M[2]=Q=>d.phone=Q),ref_key:"refInput",ref:s,type:e.inputOptions.type,autocomplete:e.inputOptions.autocomplete,autofocus:e.inputOptions.autofocus,class:j(["vti__input","vti__phone",e.inputOptions.styleClasses]),disabled:e.disabled,id:e.inputOptions.id,maxlength:e.inputOptions.maxlength,name:e.inputOptions.name,placeholder:d.parsedPlaceholder,readonly:e.inputOptions.readonly,required:e.inputOptions.required,tabindex:e.inputOptions.tabindex,value:l.value,"aria-describedby":e.inputOptions["aria-describedby"],onBlur:z,onFocus:se,onInput:F,onKeyup:[Pe(ge,["enter"]),Pe(P,["space"])]},null,42,Ud),[[Ea,d.phone]]),an(b.$slots,"icon-right")],2)}}});const Zd="/assets/chevron-up.b8aea55d.svg",Mn="/assets/chevron-down.fa6f2a56.svg",Gd="/assets/active-check.ac5b5f73.svg",qd={class:"input-field-text"},Wd={class:"o-combobox__container"},zd=["placeholder","disabled"],Yd={class:"error-message"},Kd=["onClick","onMouseover"],Jd={key:0,class:"selected-icon"},Xd={key:0,class:"no-options"},Qd=be({__name:"SearchableDropdown",props:{modelValue:{},items:{},bindLabel:{default:"name"},bindValue:{default:"id"},classes:{},placeholder:{default:"Select"},hasError:{type:Boolean},validationMessage:{},showPhoneCustomizedLabel:{type:Boolean},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean},listWidth:{}},emits:["update:modelValue","change:selectedItem"],setup(e,{emit:t}){const n=e,a=t,i=J(""),s=J(""),r=J(""),o=J(!1),l=J(""),d=J(null),p=J(null),w=J(""),R=v(()=>n.items.length>0&&typeof n.items[0]=="string"),y=v(()=>i.value?R.value?n.items.filter(V=>{var F;return V.toLowerCase().includes((F=i.value)==null?void 0:F.toLowerCase())}):n.items.filter(V=>{var F;return ae(V).toLowerCase().includes((F=i.value)==null?void 0:F.toLowerCase())}):n.items),C=()=>{n.disabled||(o.value=!o.value)},T=()=>{i.value=s.value,r.value=""},u=()=>{setTimeout(()=>{let V;R.value?V=n.items.find(F=>{var Y;return F.toLowerCase()===((Y=r.value)==null?void 0:Y.toLowerCase())}):V=n.items.find(F=>{var Y;return re(F).toLowerCase()===((Y=r.value)==null?void 0:Y.toLowerCase())}),V||(r.value="",a("update:modelValue",r.value),i.value="",s.value=""),o.value=!1},500)},x=()=>{o.value=!1},S=V=>{a("change:selectedItem",V),r.value=R.value?V:re(V),a("update:modelValue",r.value),s.value=n.showPhoneCustomizedLabel?D(V):ae(V),i.value="",o.value=!1},D=V=>{const F=n.items.find(Y=>Y.code===V.code);return F==null?void 0:F.customizedLabel},X=()=>{let V,F;return R.value?F=n.items.find(Y=>Y.toLowerCase()===n.modelValue.toLowerCase()):F=n.items.find(Y=>{var z;return re(Y).toLowerCase()===((z=n.modelValue)==null?void 0:z.toLowerCase())}),F&&(V=R.value?F:!R.value&&n.showPhoneCustomizedLabel?D(F):ae(F)),V},N=v(()=>{var F;return p.value&&((F=p.value)==null?void 0:F.getBoundingClientRect()).bottom+100>window.innerHeight?"up":"down"});ke(()=>[y.value,N.value],()=>{Ee(()=>{w.value=N.value==="up"?`translateY(-${p.value.offsetHeight+45}px`:"translateY(0)"})}),ke(()=>n.modelValue,V=>{r.value&&!n.readOnly||!n.items||(r.value=V,s.value=X())}),lt(()=>{r.value||!n.items||(r.value=n.modelValue,s.value=X())});function ae(V){const F=n.bindLabel.split(".");switch(F.length){case 1:return V[F[0]];case 2:return V[F[0]][F[1]];case 3:return V[F[0]][F[1]][F[2]];default:return V[n.bindLabel]}}function re(V){const F=n.bindValue.split(".");switch(F.length){case 1:return V[F[0]];case 2:return V[F[0]][F[1]];case 3:return V[F[0]][F[1]][F[2]];default:return V[n.bindLabel]}}return(V,F)=>{var z;const Y=mt("click-outside");return Ae((c(),g("div",{class:"o-combobox",ref_key:"dropdownClose",ref:d},[_("div",qd,[_("div",Wd,[V.disabled&&s.value==="None"?(c(),g("div",{key:0,class:j(`o-combobox__input ${V.classes}`)},F[3]||(F[3]=[_("div",{class:"input-placeholder"},null,-1)]),2)):Ae((c(),g("input",{key:1,class:j(["o-combobox__input",[o.value?"o-combobox__container__active":"",{error:V.hasError,"cursor-pointer":!o.value,rtl:h(ce)(s.value)},V.classes]]),type:"text",placeholder:V.placeholder,disabled:V.disabled,"onUpdate:modelValue":F[0]||(F[0]=se=>s.value=se),onInput:T,onFocusin:F[1]||(F[1]=se=>o.value=!0),onBlur:u},null,42,zd)),[[_t,s.value]]),o.value?(c(),g("img",{key:2,onClick:C,src:Zd,alt:"chevron-up",class:j(["chevron-icon",{disabled:V.disabled}])},null,2)):(c(),g("img",{key:3,onClick:dt(C,["prevent"]),src:Mn,alt:"chevron-down",class:j(["chevron-icon",{disabled:V.disabled}])},null,2))]),(c(!0),g(me,null,We(V.validationMessage,(se,ge)=>(c(),g("div",{key:ge},[_("span",Yd,H(se.$message),1)]))),128))]),o.value?(c(),g("ul",{key:0,style:oe({transform:w.value}),class:j([[y.value&&y.value.length>4?"scrollable":"",V.listWidth],"dropdown-list"]),ref_key:"dropdownRef",ref:p},[(c(!0),g(me,null,We(y.value,(se,ge)=>(c(),g("li",{class:j([l.value===(R.value?se:ae(se))||r.value===(R.value?se:re(se))?"selected":"","dropdown-item"]),key:ge,onClick:P=>S(se),onMouseover:P=>l.value=R.value?se:ae(se),onMouseleave:F[2]||(F[2]=P=>l.value="")},[Re(H(R.value?se:ae(se))+" ",1),r.value===(R.value?se:re(se))?(c(),g("span",Jd,F[4]||(F[4]=[_("img",{src:Gd,class:"check-icon","aria-hidden":"true",alt:"selected condition"},null,-1)]))):k("",!0)],42,Kd))),128)),(z=y.value)!=null&&z.length?k("",!0):(c(),g("li",Xd,"Not found"))],6)):k("",!0)])),[[Y,x]])}}});const e2=de(Qd,[["__scopeId","data-v-97a2841e"]]);var Xa={exports:{}};(function(e,t){(function(n,a){e.exports=a()})(Ia,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},a=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d/,s=/\d\d/,r=/\d\d?/,o=/\d*[^-_:/,()\s\d]+/,l={},d=function(u){return(u=+u)+(u>68?1900:2e3)},p=function(u){return function(x){this[u]=+x}},w=[/[+-]\d\d:?(\d\d)?|Z/,function(u){(this.zone||(this.zone={})).offset=function(x){if(!x||x==="Z")return 0;var S=x.match(/([+-]|\d\d)/g),D=60*S[1]+(+S[2]||0);return D===0?0:S[0]==="+"?-D:D}(u)}],R=function(u){var x=l[u];return x&&(x.indexOf?x:x.s.concat(x.f))},y=function(u,x){var S,D=l.meridiem;if(D){for(var X=1;X<=24;X+=1)if(u.indexOf(D(X,0,x))>-1){S=X>12;break}}else S=u===(x?"pm":"PM");return S},C={A:[o,function(u){this.afternoon=y(u,!1)}],a:[o,function(u){this.afternoon=y(u,!0)}],Q:[i,function(u){this.month=3*(u-1)+1}],S:[i,function(u){this.milliseconds=100*+u}],SS:[s,function(u){this.milliseconds=10*+u}],SSS:[/\d{3}/,function(u){this.milliseconds=+u}],s:[r,p("seconds")],ss:[r,p("seconds")],m:[r,p("minutes")],mm:[r,p("minutes")],H:[r,p("hours")],h:[r,p("hours")],HH:[r,p("hours")],hh:[r,p("hours")],D:[r,p("day")],DD:[s,p("day")],Do:[o,function(u){var x=l.ordinal,S=u.match(/\d+/);if(this.day=S[0],x)for(var D=1;D<=31;D+=1)x(D).replace(/\[|\]/g,"")===u&&(this.day=D)}],w:[r,p("week")],ww:[s,p("week")],M:[r,p("month")],MM:[s,p("month")],MMM:[o,function(u){var x=R("months"),S=(R("monthsShort")||x.map(function(D){return D.slice(0,3)})).indexOf(u)+1;if(S<1)throw new Error;this.month=S%12||S}],MMMM:[o,function(u){var x=R("months").indexOf(u)+1;if(x<1)throw new Error;this.month=x%12||x}],Y:[/[+-]?\d+/,p("year")],YY:[s,function(u){this.year=d(u)}],YYYY:[/\d{4}/,p("year")],Z:w,ZZ:w};function T(u){var x,S;x=u,S=l&&l.formats;for(var D=(u=x.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(Y,z,se){var ge=se&&se.toUpperCase();return z||S[se]||n[se]||S[ge].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(P,I,A){return I||A.slice(1)})})).match(a),X=D.length,N=0;N-1)return new Date((O==="X"?1e3:1)*B);var q=T(O)(B),b=q.year,M=q.month,K=q.day,Q=q.hours,_e=q.minutes,xe=q.seconds,ze=q.milliseconds,Oe=q.zone,pe=q.week,De=new Date,we=K||(b||M?1:De.getDate()),Ze=b||De.getFullYear(),Ne=0;b&&!M||(Ne=M>0?M-1:De.getMonth());var qe,Ye=Q||0,Te=_e||0,st=xe||0,nt=ze||0;return Oe?new Date(Date.UTC(Ze,Ne,we,Ye,Te,st,nt+60*Oe.offset*1e3)):Z?new Date(Date.UTC(Ze,Ne,we,Ye,Te,st,nt)):(qe=new Date(Ze,Ne,we,Ye,Te,st,nt),pe&&(qe=U(qe).week(pe).toDate()),qe)}catch{return new Date("")}}(ae,F,re,S),this.init(),ge&&ge!==!0&&(this.$L=this.locale(ge).$L),se&&ae!=this.format(F)&&(this.$d=new Date("")),l={}}else if(F instanceof Array)for(var P=F.length,I=1;I<=P;I+=1){V[1]=F[I-1];var A=S.apply(this,V);if(A.isValid()){this.$d=A.$d,this.$L=A.$L,this.init();break}I===P&&(this.$d=new Date(""))}else X.call(this,N)}}})})(Xa);const t2=Xa.exports,n2=["min","max","value","placeholder"],a2={key:1,class:"relative"},i2=["min","max","value","placeholder"],s2=be({__name:"CustomDateInput",props:{field:{},modelValue:{}},emits:["update:modelValue","keyUp"],setup(e,{emit:t}){et.extend(t2);const n=e,a=t,i=v(()=>{if(!(n.field.date_period==="past"||n.field.date_period==="both"))return et().add(1,"day").format("YYYY-MM-DD")}),s=v(()=>{if(!(n.field.date_period==="future"||n.field.date_period==="both"))return et().subtract(1,"day").format("YYYY-MM-DD")}),r=v(()=>typeof window<"u"&&window.navigator.userAgent.indexOf("Firefox")!==-1),o=d=>{a("update:modelValue",d.target.value)},l=d=>{a("keyUp",d.target.value)};return(d,p)=>r.value?(c(),g("input",{key:0,type:"date",min:i.value,max:s.value,value:d.modelValue,placeholder:d.field.date_format,onInput:p[0]||(p[0]=w=>o(w)),onChange:p[1]||(p[1]=w=>l(w)),onKeyup:p[2]||(p[2]=w=>l(w))},null,40,n2)):(c(),g("div",a2,[_("input",{type:"date",min:i.value,max:s.value,value:d.modelValue,placeholder:d.field.date_format,onInput:p[3]||(p[3]=w=>o(w)),onChange:p[4]||(p[4]=w=>l(w)),onKeyup:p[5]||(p[5]=w=>l(w)),style:{height:"36.4px"}},null,40,i2),p[6]||(p[6]=tt('',1))]))}});const r2=de(s2,[["__scopeId","data-v-26e7275e"]]),Qa={isTargetElementVisible:J(!0),setupTargetObserver(e){if(!e)return;const t={root:null,threshold:0},n=function(i){i.forEach(s=>{Qa.isTargetElementVisible.value=s.isIntersecting})},a=new IntersectionObserver(n,t);return a.observe(e),a}},o2={},d2={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function l2(e,t){return c(),g("svg",d2,t[0]||(t[0]=[_("path",{d:"M8 13.3335H14",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),_("path",{d:"M11 2.33316C11.2652 2.06794 11.6249 1.91895 12 1.91895C12.1857 1.91895 12.3696 1.95553 12.5412 2.0266C12.7128 2.09767 12.8687 2.20184 13 2.33316C13.1313 2.46448 13.2355 2.62038 13.3066 2.79196C13.3776 2.96354 13.4142 3.14744 13.4142 3.33316C13.4142 3.51888 13.3776 3.70277 13.3066 3.87435C13.2355 4.04594 13.1313 4.20184 13 4.33316L4.66667 12.6665L2 13.3332L2.66667 10.6665L11 2.33316Z",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))}const u2=de(o2,[["render",l2]]),c2={},g2={width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function h2(e,t){return c(),g("svg",g2,t[0]||(t[0]=[_("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M17.6842 13.1827C18.824 12.5785 19.6004 11.3799 19.6004 9.99999C19.6004 8.62008 18.824 7.4215 17.6842 6.81725C18.0629 5.58402 17.7644 4.18749 16.7886 3.21174C15.8129 2.23599 14.4164 1.93746 13.1831 2.31614C12.5789 1.17637 11.3803 0.399994 10.0004 0.399994C8.62047 0.399994 7.42189 1.17638 6.81764 2.31617C5.58442 1.9375 4.18791 2.23604 3.21217 3.21178C2.23642 4.18753 1.93789 5.58403 2.31655 6.81725C1.17678 7.4215 0.400391 8.62008 0.400391 9.99999C0.400391 11.3799 1.17678 12.5785 2.31656 13.1827C1.93787 14.416 2.23641 15.8125 3.21216 16.7882C4.18791 17.764 5.58443 18.0625 6.81765 17.6838C7.4219 18.8236 8.62048 19.6 10.0004 19.6C11.3803 19.6 12.5789 18.8236 13.1831 17.6838C14.4164 18.0625 15.8129 17.7639 16.7886 16.7882C17.7644 15.8125 18.0629 14.416 17.6842 13.1827ZM14.6283 7.82935C14.9206 7.42736 14.8317 6.86449 14.4297 6.57213C14.0278 6.27978 13.4649 6.36865 13.1725 6.77064L8.99202 12.5188L6.73679 10.2636C6.38531 9.91213 5.81547 9.91213 5.46399 10.2636C5.11252 10.6151 5.11252 11.1849 5.46399 11.5364L8.46399 14.5364C8.65011 14.7225 8.90838 14.8178 9.17079 14.7972C9.4332 14.7766 9.67344 14.6422 9.82825 14.4293L14.6283 7.82935Z",fill:"currentColor"},null,-1)]))}const _2=de(c2,[["render",h2]]),f2={key:0,class:"contact-info flex gap-3 relative"},m2={key:0,class:"w-10 h-10 p-2 flex justify-center items-center bg-verified-icon rounded-full"},p2={key:1},$2={class:"flex flex-col gap-2"},v2={class:"m-0"},y2={key:0},C2={key:1},b2={key:2},w2={class:"text-ellipsis inline-flex",style:{"max-width":"295px"}},L2={key:3},k2={key:1,class:"contact-form overflow-x-hidden"},x2={class:"pb-4"},M2={key:0},S2=["type","id","onUpdate:modelValue","onKeyup"],E2=["id","onUpdate:modelValue","onKeyup","onBlur"],A2=["id","onUpdate:modelValue","onKeyup"],T2={key:4,class:"position-relative"},D2={class:"input-wrapper"},I2=["onUpdate:modelValue","onKeyup"],O2=["id","onUpdate:modelValue","onKeyup"],F2={key:8,class:"file-container"},P2=["onClick"],N2={style:{display:"flex","align-items":"center",gap:"10px"}},V2={class:"file-name text-ellipsis",style:{"max-width":"165px"}},R2=["onChange"],B2={key:9,class:"input-field__helper"},H2={key:10,class:"consent-container"},U2=["id","onUpdate:modelValue","onChange","disabled"],j2=["innerHTML"],Z2={key:0,style:{color:"#ff4545"}},G2=["disabled"],q2={key:0,class:"icon",src:Ba,alt:"send"},W2={key:3,class:"flex justify-center"},z2=["disabled"],Y2=be({__name:"ContactForm",emits:["textareaFocus","isDropdownOpen"],setup(e,{emit:t}){const n=t,a=Se(),i=ht([]),s=ht({name:"",phone:"",email:""}),r=ht([]),o=ht({name:"",phone:"",email:""}),l=J(!1),d=J({}),p=J(!1),w=J(!1),R=J(""),y=J({}),C=J([]);let T=J(null);const u=J(null),x=v(()=>a.contactFields),S=v(()=>a.phoneField),D=v(()=>F.value.length||a.isNameUpdated||a.isEmailAdded||a.isPhoneAdded||C.value.some(m=>m.field_name==="consent")),X=v(()=>x.value.some(m=>m.is_required)),N=v(()=>a.widgetLang),ae=v(()=>a.widgetLang.invalid_input),re=v(()=>a.widgetLang.input_too_long),V=v(()=>a.messages.some(m=>!m.isMessageFailed)),F=v(()=>a.customFieldValues),Y=v(()=>r.filter(m=>m!==null&&m!==""&&m!==void 0).length>0),z=v(()=>a.shouldSendContactFormAfterTheFirstMessage),se=v(()=>{var m;return a.hasRequiredField&&!((m=a.widgetData)!=null&&m.token)}),ge=v(()=>{var m;return!a.hasRequiredField&&a.hasVisibleField&&!z.value&&!((m=a.widgetData)!=null&&m.token)}),P=v(()=>a.isContactFormSubmitted),I=v(()=>a.isContactFormAutoSubmitted||a.isFormAutoSubmitted),A=v(()=>a.activeState==="home"),B=v(()=>C.value.some(m=>m.field_name==="consent")),O=v(()=>{if(a.nonConsentFields.length===0&&a.consentField)return!1;const m=i.some(($,f)=>{const E=C.value[f];return E&&E.field_name!=="consent"&&$&&$.toString().trim()!==""});return a.allNonConsentFieldsOptional&&a.isConsentRequired&&!m}),Z=v(()=>C.value.length===1&&C.value[0].field_name==="consent"),U=m=>{qn(i[m])&&(r[m]="")},q=m=>{const $=d.value[`field${m}`];$&&$.click()},b=(m,$)=>{const f=m.target.files[0];if(f.size>8192e3){M($),r[$]=N.value.the_file_must_not_be_greater_than_8_mb;return}if(f){const E=C.value[$];r[$]="",C.value[$]={...E,file:f},i[$]=f}},M=m=>{Ee(()=>{const $=C.value[m];C.value[m]={...$,file:null},i[m]=""})},K=m=>{Ee(()=>{const $=C.value[m];if(!($!=null&&$.countryDialingCode)){C.value[m]={...$,phonePadding:"padding-none"};return}const f=$.countryDialingCode.replace("+","").length;C.value[m]={...$,phonePadding:`padding-${f}`}})},Q=(m,$)=>{Ee(()=>{const f=C.value[$];C.value[$]={...f,countryCode:m.iso2,countryDialingCode:`+${m.dialCode}`},K($)})},_e=m=>{[46,8,9,27,13].includes(m.keyCode)||m.keyCode===65&&(m.ctrlKey===!0||m.metaKey===!0)||m.keyCode>=35&&m.keyCode<=40||(m.shiftKey||(m.keyCode<48||m.keyCode>57)&&(m.keyCode<96||m.keyCode>105))&&m.preventDefault()},xe=(m,$,f,E)=>{const ee=C.value[E].countryDialingCode;Ee(()=>{var ue;const he=ee?ee.length:((ue=$.countryCallingCode)==null?void 0:ue.length)+1;if(!$.formatted){r[E]="",w.value=!1;return}if(m.includes("+")&&m.length<5&&m===$.formatted){i[E]="",o.phone="";return}w.value=!$.valid&&$.nationalNumber,w.value&&$.countryCode?r[E]=ae.value:(`+${$.countryCallingCode}${i[E]}`.split(" ").join("").length<16||i[E].includes("+"))&&(r[E]=""),i[E]=$.formatted.includes("+")?$.formatted.slice(he,$.formatted.length).trim():$.formatted.trim()}),we(f,E)},ze=async m=>{var $;p.value=!0;try{if(!(($=a.widgetData)!=null&&$.token))return"";const f=await new Fe().uploadFiles([m]);return JSON.stringify({name:m.name,url:f[0]})}catch(f){p.value=!1,console.error(f)}},Oe=async()=>{const m={};for(const[$,f]of C.value.entries())f.field_name==="file"&&i[$]&&(m[f.field_label]=i[$]&&typeof i[$]=="string"?i[$]:await ze(i[$])),f.field_name==="phone"&&!f.is_enabled_country_code_format&&!f.countryDialingCode&&i[$]&&(m.phone=i[$]),f.field_name==="name"&&(m.name=i[$]),f.field_name==="email"&&(m.email=i[$]),f.is_enabled_country_code_format&&f.countryDialingCode&&i[$]&&(m.phone=`${f.countryDialingCode}${i[$]}`),f.field_name==="date"&&i[$]&&(m[f.field_label]=et(i[$]).format(f.date_format==="mm/dd/yyyy"?"MM/DD/YYYY":"DD/MM/YYYY")),f.field_name==="consent"&&(m.consent=i[$]?"Yes":"No"),f.field_name!=="file"&&f.field_name!=="date"&&f.field_name!=="name"&&f.field_name!=="phone"&&f.field_name!=="email"&&f.field_name!=="consent"&&i[$]&&(m[f.field_label]=i[$]);return m},pe=async()=>{var he;if(a.isFormSubmitted=!1,a.errorMessage="",Y.value||Ze(),Y.value||p.value)return!1;if(!i.some(ue=>ue&&ue.toString().trim()!==""))return;const $=C.value.findIndex(ue=>ue.field_name==="consent"),f=$>=0&&i[$];a.setConsentGiven(f);const E=i.some((ue,Ge)=>{const W=C.value[Ge];return W&&W.field_name!=="consent"&&ue&&ue.toString().trim()!==""}),ee=a.nonConsentFields.length===0&&f;if(!(f&&!E&&!ee)&&!Dt.value){C.value.length&&(a.isFormSubmitted=!0),n("textareaFocus");try{if(se.value||ge.value){const ue=await Oe();if(Object.entries(ue).length===0){p.value=!1;return}p.value=!0,await a.getToken(ue),a.activeState==="home"&&(a.activeState="chat"),a.roomId||await a.createChat()}else{const ue=await Oe();if(Object.entries(ue).length===0){p.value=!1;return}p.value=!0;const Ge={...ue,user_id:a.visitorId,team_id:a.userId,is_form_auto_submitted:a.isFormAutoSubmitted,form_submitted:a.isFormSubmitted};await a.updateProfile(Ge),a.roomId||await a.createChat(),a.setConsentGiven(Ge.consent==="Yes"),l.value=!1}a.contactProfile.form_submitted=!0,p.value=!1}catch(ue){p.value=!1,a.errorMessage=(he=ue.error)!=null&&he.message?ue.error.message:N.value.something_went_wrong}}},De=(m,$)=>{if(!$)return m.is_required?`${m.field_label} is required`:"";const f=new Date($);if(!/^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])$/.test($))return"Please enter a valid date in DD-MM-YYYY format";if(m.date_period==="past"&&f>=new Date)return"Date must be in the past";if(m.date_period==="future"&&f{var E;const f=i[$];if(!(m.field_name==="file"&&!((E=a.widgetData)!=null&&E.token))){if(m.is_required&&(!f||f.length===0)){r[$]=`${m.field_label} is required`;return}else r[$]="";switch(m.field_name){case"name":{const ee={name:{requiredIf:He(f,wt(m.is_required)),name:He(ae.value,dn),maxLength:He(re.value,Wn)}},{name:he}=Lt(ee,f);r[$]=he}break;case"textarea":{const ee={name:{requiredIf:He(f,wt(m.is_required)),name:He(ae.value,dn),maxLength:He(re.value,()=>zn(f,2e3))}},{name:he}=Lt(ee,f);r[$]=he}break;case"text":{const ee={name:{requiredIf:He(f,wt(m.is_required)),name:He(ae.value,dn),maxLength:He(re.value,zn)}},{name:he}=Lt(ee,f);r[$]=he}break;case"email":{const ee={email:{requiredIf:He(f,wt(m.is_required)),isValidEmail:He(a.widgetLang.invalid_email,qn),maxLength:He(re.value,Wn)}},{email:he}=Lt(ee,f);r[$]=he}break;case"phone":{const ee={phone:{requiredIf:He(f,wt(m.is_required)),isValidPhone:He(ae.value,ue=>ms(!m.is_enabled_country_code_format&&!m.countryDialingCode?ue:m.is_enabled_country_code_format&&ue?`${m.countryDialingCode}${ue}`:ue))}},{phone:he}=Lt(ee,f);r[$]=he}break;case"date":r[$]=De(m,f);break;case"link":$s(f)||(r[$]="Invalid URL");break;case"number":isNaN(f)&&(r[$]="Must be a number"),(f==null?void 0:f.length)>50&&(r[$]=re.value);break;case"consent":m.is_required&&!f?r[$]=`${m.field_label} is required`:r[$]="";break}return null}},Ze=()=>{C.value.forEach((m,$)=>{we(m,$)})},Ne=()=>{var m;a.isNameUpdated&&a.userName&&(s.name=a.userName),a.userEmail&&(s.email=a.userEmail),a.userPhone&&(s.phone=a.userPhone),((m=S.value)==null?void 0:m.is_enabled_country_code_format)&&a.countryCode&&(R.value=a.countryCode),Ke(),l.value=!0},qe=()=>{fe.dispatchEvent(ie.FOCUS_EVENT)},Ye=()=>{window.addEventListener("message",function(m){m.data.type==="CHATWAY"&&a.isWidgetOpen&&a.hasRequiredField&&Ee(()=>{var $;($=d.value[`field${0}`])==null||$.focus()})})};ke(d,m=>{Object.keys(m).forEach($=>{const f=parseInt($.replace("field",""));m[$]&&!y.value[$]&&st(f)})},{deep:!0});const Te=m=>{const $=C.value[m];if(!($!=null&&$.is_enabled_country_code_format))return;const f=d.value[`field${m}`];if(f){const E=f.$el.querySelector(".vti__input"),ee=f.$el.querySelector(".vti__dropdown-list");if(E&&ee){const he=E.getBoundingClientRect();ee.style.position="fixed",ee.style.top=`${he.bottom-50}px`,ee.style.left=`${he.left-18}px`,ee.style.width=`${f.$el.clientWidth+6}px`,ee.style.zIndex=9999999}}},st=m=>{const $=C.value[m];if(!($!=null&&$.is_enabled_country_code_format))return;const f=d.value[`field${m}`];if(f){const E=f==null?void 0:f.$el.querySelector(".vti__dropdown");if(E){const ee=new MutationObserver(he=>{he.forEach(ue=>{ue.type==="attributes"&&ue.attributeName==="class"&&(E.classList.contains("open")?(n("isDropdownOpen",!0),Te(m),nt()):n("isDropdownOpen",!1))})});ee.observe(E,{attributes:!0}),y.value[`field${m}`]=ee}}},nt=()=>{const m=new MutationObserver($=>{$.forEach(f=>{if(f.type==="childList"){const E=document.querySelector(".vti__search_box");E&&(E.addEventListener("keydown",ee=>{ee.key===" "&&ee.stopPropagation()}),m.disconnect())}})});m.observe(document.body,{childList:!0,subtree:!0})},pt=()=>{Object.keys(d.value).forEach(m=>{var ee;const $=parseInt(m.replace("field","")),E=(ee=d.value[m].$el)==null?void 0:ee.querySelector(".vti__dropdown");E!=null&&E.classList.contains("open")&&Te($)})},$t=(m,$)=>{var E,ee;if(a.isWordPressVisitor&&!P.value){if(m.field_name==="name")return(E=a.wpUserInfo)==null?void 0:E.userName;if(m.field_name==="email")return(ee=a.wpUserInfo)==null?void 0:ee.emailId}if(!F.value)return"";const f=F.value.find(he=>he.name.toLowerCase()===m.field_label.toLowerCase());return m.field_name==="name"?f!=null&&f.value?f.value:a.userName&&a.isNameUpdated?a.userName:rt(m):m.field_name==="email"?f!=null&&f.value?f==null?void 0:f.value:a.userEmail?a.userEmail:rt(m):m.field_name==="phone"?f!=null&&f.value?f.value:a.userPhone?a.userPhone:rt(m):m.field_name==="file"?(C.value[$]=f!=null&&f.value?{...m,file:Yn(f.value)?JSON.parse(f.value):f.value}:m,f!=null&&f.value?f.value:""):m.field_name==="consent"?a.isConsentGiven:m.field_name==="date"?vt(m,f==null?void 0:f.value):(f==null?void 0:f.value)||""};function rt(m){var $;return P.value?"":a.isWordPressVisitor?ut(m):a.merketplace=="shopify"&&(($=a==null?void 0:a.shopifyContact)==null?void 0:$.logged_in_customer_id)?Wt(m):""}function ut(m){var $,f;switch(m.field_name){case"name":return($=a.wpUserInfo)==null?void 0:$.userName;case"email":return(f=a.wpUserInfo)==null?void 0:f.emailId;default:return""}}function Wt(m){const $=a.shopifyContact;switch(m.field_name){case"name":return($==null?void 0:$.first_name)||($==null?void 0:$.last_name)?`${($==null?void 0:$.first_name)||""} ${($==null?void 0:$.last_name)||""}`.trim():"";case"email":return $==null?void 0:$.verified_email;case"phone":return $==null?void 0:$.phone;default:return""}}const vt=(m,$)=>$?et($,"DD/MM/YYYY").format("YYYY-MM-DD"):"",Ke=()=>{C.value.forEach(($,f)=>{i[f]=$t($,f)});const m=C.value.findIndex($=>$.field_name==="consent");m!==-1&&(i[m]=a.isConsentGiven),At()};function At(){if(P.value)return;(zt()?yt():Tt())&&(a.isFormAutoSubmitted=!0)}function zt(){return Array.from(C.value).some(m=>m.is_required===1)}function yt(){return Array.from(C.value.entries()).every(([m,$])=>!$.is_required||$t($,m))}function Tt(){return Array.from(C.value.entries()).some(([m,$])=>$.field_name==="email"&&$t($,m))}const Dt=v(()=>!i.some(m=>typeof m=="string"?m.trim().length>0:m!=null));ke([()=>a.userName,()=>a.userEmail,()=>a.userPhone],()=>{Ke()}),ke(()=>[a.uiFlags.isConversationsLoading,a.isFormAutoSubmitted,a.isWidgetOpen],()=>{a.isWidgetOpen&&!a.uiFlags.isConversationsLoading&&a.isFormAutoSubmitted&&!P.value&&pe()});const Yt=v(()=>a.nonConsentFields.length===0&&a.consentField?!1:a.allNonConsentFieldsOptional&&a.isConsentRequired),It=v(()=>{const m=C.value.findIndex(E=>E.field_name==="consent"),$=m>=0&&i[m];if(a.nonConsentFields.length===0&&a.consentField)return!1;const f=i.some((E,ee)=>{const he=C.value[ee];return he&&he.field_name!=="consent"&&E&&E.toString().trim()!==""});return $&&!f});return lt(()=>{C.value=x.value,Ke(),window.addEventListener("resize",pt),a.isMobile||setTimeout(()=>{Ye()},100),T.value=Qa.setupTargetObserver(u.value)}),Aa(()=>{window.removeEventListener("resize",pt),Object.values(y.value).forEach(m=>{m.disconnect()}),T.value&&T.value.disconnect()}),(m,$)=>(c(),g("div",{ref_key:"VisitorFormRef",ref:u,class:j(["bots",{"p-4":P.value&&D.value&&!l.value}]),style:oe({padding:!h(a).isAgentOnline&&h(a).hasRequiredField?"0":""})},[_("div",{class:j(["email--requester",{rtl:h(a).isRtl}])},[P.value&&D.value&&!l.value?(c(),g("div",f2,[I.value?(c(),g("div",m2,[le(_2,{class:"widget-color"})])):(c(),g("div",p2,$[0]||($[0]=[_("img",{src:yr},null,-1)]))),_("div",$2,[_("span",v2,H(N.value.form_details_shared),1),h(a).isNameUpdated&&h(a).userName?(c(),g("p",y2,H(N.value.name)+": "+H(h(a).userName),1)):k("",!0),h(a).userPhone?(c(),g("p",C2,H(N.value.phone_number)+": "+H(h(a).userPhone),1)):k("",!0),h(a).userEmail?(c(),g("p",b2,H(N.value.email)+": "+H(h(a).userEmail),1)):k("",!0),(c(!0),g(me,null,We(F.value,(f,E)=>{var ee;return c(),g("p",{key:E},[Re(H(f.name)+": ",1),_("strong",w2,H(h(Yn)(f.value)?(ee=JSON.parse(f.value))==null?void 0:ee.name:f.value),1)])}),128)),B.value?(c(),g("p",L2,[Re(H(N.value.consent)+": ",1),_("strong",null,H(h(a).isConsentGiven?N.value.yes:N.value.no||"No"),1)])):k("",!0),_("button",{onClick:Ne,class:j(["edit-icon",{"edit-verified-record":I.value}])},[le(u2,{class:"widget-color"})],2)])])):(c(),g("div",k2,[_("div",x2,[A.value?k("",!0):(c(),g(me,{key:0},[h(a).isAgentOnline?(c(),g(me,{key:0},[P.value&&D.value?(c(),g("p",{key:0,class:j(["text-center px-4",{rtl:h(ce)(N.value.update_details)}])},H(N.value.update_details),3)):h(a).hasRequiredField&&h(a).isAgentOnline&&!V.value?(c(),g("p",{key:1,class:j(["text-center px-4",{rtl:h(ce)(N.value.initiate_chat_with_details)}])},H(N.value.initiate_chat_with_details),3)):Z.value?k("",!0):(c(),g("p",{key:2,class:j([h(a).isAgentOnline?"text-left pl-4 pb-3":"text-center px-4",{rtl:h(ce)(N.value.provide_details_notified)}])},H(N.value.provide_details_notified),3))],64)):k("",!0)],64)),h(a).isAgentOnline?k("",!0):(c(),g("p",{key:1,class:j(["text-sm text-left leading-140 pb-3",{"px-4":!A.value,"mt-0":A.value&&h(a).hasRequiredField,rtl:h(ce)(N.value.provide_details_notified)}])},H(N.value.leave_a_message)+" "+H(N.value.provide_details_notified),3)),(c(!0),g(me,null,We(C.value,(f,E)=>{var ee,he,ue,Ge;return c(),g("div",{key:f.id,class:j(["form-group",{"px-4":!A.value}])},[f.field_name!=="consent"&&(f.field_name!=="file"&&!((ee=h(a).widgetData)!=null&&ee.token)||((he=h(a).widgetData)==null?void 0:he.token))?(c(),g("label",{key:0,for:"contactEmail",class:j({rtl:h(ce)(f.field_label)})},[Re(H(f.field_label)+" ",1),f!=null&&f.is_required?(c(),g("span",M2,"*")):k("",!0)],2)):k("",!0),["name","text","link"].includes(f.field_name)?Ae((c(),g("input",{key:1,type:f.field_name==="name"||f.field_name==="link"?"text":f.field_name,id:f.id,ref_for:!0,ref:W=>d.value[`field${E}`]=W,"onUpdate:modelValue":W=>i[E]=W,class:j({error:o.name,rtl:h(ce)(s.name.charAt(0))}),onKeyup:[W=>we(f,E),Pe(qe,["esc"])],onKeypress:Pe(pe,["enter"])},null,42,S2)),[[Ea,i[E]]]):k("",!0),f.field_name==="email"?Ae((c(),g("input",{key:2,type:"email",id:f.id,ref_for:!0,ref:W=>d.value[`field${E}`]=W,"onUpdate:modelValue":W=>i[E]=W,class:j({error:o.name,rtl:h(ce)(s.name.charAt(0))}),onKeyup:[W=>U(E),Pe(qe,["esc"])],onBlur:W=>we(f,E),onKeypress:Pe(pe,["enter"])},null,42,E2)),[[_t,i[E]]]):k("",!0),f.field_name==="number"?Ae((c(),g("input",{key:3,type:"text",onKeydown:_e,id:f.id,ref_for:!0,ref:W=>d.value[`field${E}`]=W,"onUpdate:modelValue":W=>i[E]=W,onKeyup:[W=>we(f,E),Pe(qe,["esc"])],onKeypress:Pe(pe,["enter"])},null,40,A2)),[[_t,i[E]]]):k("",!0),f.field_name==="phone"?(c(),g("div",T2,[_("div",D2,[f.is_enabled_country_code_format?(c(),g("p",{key:0,class:j(["dial-country-code",{rtl:h(ce)(f.field_label)}])},H(f.countryDialingCode),3)):k("",!0),f.is_enabled_country_code_format?(c(),Ce(h(jd),{key:1,ref_for:!0,ref:W=>d.value[`field${E}`]=W,mode:"international",validCharactersOnly:!0,enabledCountryCode:!0,defaultCountry:f.country_dialing_code!=="none"&&!l.value?f==null?void 0:f.country_dialing_code:h(a).countryCode&&l.value?h(a).countryCode:"",invalidMsg:"invalid",styleClasses:`${w.value||o.phone?"error":""} ${f.phonePadding}`,dropdownOptions:{showFlags:!0,showDialCodeInList:!1,disabledDialCode:!1,disabled:!1,showSearchBox:!0,searchBoxPlaceholder:"Search for country"},inputOptions:{showDialCode:!0},modelValue:i[E],"onUpdate:modelValue":W=>i[E]=W,onOnInput:(W,Kt)=>xe(W,Kt,f,E),onCountryChanged:W=>Q(W,E)},null,8,["defaultCountry","styleClasses","modelValue","onUpdate:modelValue","onOnInput","onCountryChanged"])):Ae((c(),g("input",{key:2,type:"text",id:"contactPhone",ref_for:!0,ref:W=>d.value[`field${E}`]=W,"onUpdate:modelValue":W=>i[E]=W,class:j({error:r[E]}),onKeyup:[W=>we(f,E),Pe(qe,["esc"])],onKeypress:Pe(pe,["enter"])},null,42,I2)),[[_t,i[E]]])])])):k("",!0),f.field_name==="date"?(c(),Ce(r2,{key:5,field:f,modelValue:i[E],"onUpdate:modelValue":W=>i[E]=W,ref_for:!0,ref:W=>d.value[`field${E}`]=W,onKeyUp:W=>we(f,E)},null,8,["field","modelValue","onUpdate:modelValue","onKeyUp"])):k("",!0),f.field_name==="textarea"?Ae((c(),g("textarea",{key:6,id:`${f.field_name}_${E}`,"onUpdate:modelValue":W=>i[E]=W,class:j(["field-textarea",{error:o[E]}]),style:{height:"120px"},ref_for:!0,ref:W=>d.value[`field${E}`]=W,onKeyup:W=>we(f,E)},null,42,O2)),[[_t,i[E]]]):k("",!0),f.field_name==="dropdown"?(c(),Ce(e2,{key:7,items:f.options,bindValue:"value",bindLabel:"value",modelValue:i[E],"onUpdate:modelValue":[W=>i[E]=W,W=>we(f,E)],class:j(["mb-0",{rtl:h(ce)(f.field_label)}]),ref_for:!0,ref:W=>d.value[`field${E}`]=W},null,8,["items","modelValue","onUpdate:modelValue","class"])):k("",!0),f.field_name==="file"&&((ue=h(a).widgetData)==null?void 0:ue.token)?(c(),g("div",F2,[_("div",{class:"file-button",onClick:W=>q(E)},$[1]||($[1]=[_("img",{src:Cr,alt:"attachment",class:"file-icon"},null,-1),_("div",{class:"file-text"},"Choose file",-1)]),8,P2),_("div",N2,[_("span",V2,H(((Ge=f.file)==null?void 0:Ge.name)||""),1),f.file?(c(),Ce(Cn,{key:0,onClick:W=>M(E),style:{color:"#ff4545",width:"16px",cursor:"pointer"}},null,8,["onClick"])):k("",!0)]),_("input",{type:"file",class:"hidden-file-input",accept:"image/png, image/gif, image/jpeg, application/pdf, application/vnd.openxmlformats-officedocument.wordprocessingml.document, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, image/webp, video/mp4, audio/mp3, text/plain, text/csv, application/vnd.openxmlformats-officedocument.presentationml.presentation",ref_for:!0,ref:W=>d.value[`field${E}`]=W,onChange:W=>b(W,E)},null,40,R2)])):k("",!0),r[E]&&f.field_name!=="consent"?(c(),g("span",B2,H(r[E]),1)):k("",!0),f.field_name==="consent"?(c(),g("div",H2,[Ae(_("input",{type:"checkbox",id:`consent-${E}`,"onUpdate:modelValue":W=>i[E]=W,class:"consent-checkbox",onChange:W=>we(f,E),disabled:O.value&&f.is_required},null,40,U2),[[fi,i[E]]]),_("div",null,[_("p",{innerHTML:f.note,class:j([["consent-text",r[E]?"consent-required":"",{rtl:h(ce)(f.note)}],"inline"])},null,10,j2),(f==null?void 0:f.is_required)&&f.field_name==="consent"?(c(),g("span",Z2,"*")):k("",!0)])])):k("",!0)],2)}),128)),A.value?(c(),g("button",{key:2,onClick:pe,class:"start-chat-btn flex justify-between items-center rounded-lg",disabled:h(a).uiFlags.isGettingToken},[Re(H(X.value?N.value.start_chatting:h(a).isAgentOnline?N.value.start_a_new_chat:N.value.leave_a_message)+" ",1),le(hn,{"is-loading":p.value,class:"m-0"},null,8,["is-loading"]),p.value?k("",!0):(c(),g("img",q2))],8,G2)):(c(),g("div",W2,[_("button",{class:"mx-4",onClick:dt(pe,["prevent"]),disabled:p.value||Dt.value||Yt.value&&It.value},[le(hn,{isLoading:p.value,class:"m-0"},null,8,["isLoading"]),!D.value&&X.value?(c(),g(me,{key:0},[Re(H(N.value.start_chatting),1)],64)):(c(),g(me,{key:1},[Re(H(N.value.submit),1)],64))],8,z2)]))])]))],2)],6))}});const ei=de(Y2,[["__scopeId","data-v-b539c4b0"]]),K2=Object.freeze(Object.defineProperty({__proto__:null,default:ei},Symbol.toStringTag,{value:"Module"})),J2={},X2={width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Q2(e,t){return c(),g("svg",X2,t[0]||(t[0]=[_("path",{d:"M17.5 9.58336C17.5029 10.6832 17.2459 11.7683 16.75 12.75C16.162 13.9265 15.2581 14.916 14.1395 15.6078C13.021 16.2995 11.7319 16.6662 10.4167 16.6667C9.31678 16.6696 8.23176 16.4126 7.25 15.9167L2.5 17.5L4.08333 12.75C3.58744 11.7683 3.33047 10.6832 3.33333 9.58336C3.33384 8.26815 3.70051 6.97907 4.39227 5.86048C5.08402 4.7419 6.07355 3.838 7.25 3.25002C8.23176 2.75413 9.31678 2.49716 10.4167 2.50002H10.8333C12.5703 2.59585 14.2109 3.32899 15.4409 4.55907C16.671 5.78915 17.4042 7.42973 17.5 9.16669V9.58336Z",stroke:"currentColor","stroke-width":"1.25","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))}const e0=de(J2,[["render",Q2]]),t0="/assets/right-arrow.acfd9ef1.svg",n0=e=>e?e.startsWith("image/"):!1,a0=e=>e?e.startsWith("video/"):!1,i0=e=>e?e.startsWith("audio/"):!1,s0=e=>e?["text/plain","text/csv","text/markdown","text/html","application/xml","text/xml","application/json","application/pdf","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.ms-powerpoint","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/vnd.ms-word.document.macroEnabled.12","application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/vnd.ms-word.template.macroEnabled.12","application/vnd.oasis.opendocument.spreadsheet","application/vnd.ms-excel.sheet.macroEnabled.12","application/vnd.ms-excel.template.macroEnabled.12","application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/vnd.oasis.opendocument.text","application/vnd.oasis.opendocument.spreadsheet","application/vnd.oasis.opendocument.presentation","application/rtf","application/x-iwork-pages-sffpages","application/x-iwork-numbers-sffnumbers","application/x-iwork-keynote-sffkey","application/zip","application/x-rar-compressed","application/x-7z-compressed","application/postscript","application/vnd.ms-xpsdocument","application/x-latex","application/x-tex","application/acad","application/dxf","application/epub+zip","application/x-mobipocket-ebook"].includes(e):!1,r0=be({__name:"TimePast",props:{createdAt:{}},setup(e){const t=e,n=Se(),a=J("");let i;const s=()=>{if(!t.createdAt)return`${n.widgetLang.just_now}`;const r=new Date(t.createdAt);if(isNaN(r.getTime()))return`${n.widgetLang.just_now}`;const l=new Date().getTime()-r.getTime(),d=Math.floor(l/1e3),p=Math.floor(d/60),w=Math.floor(p/60),R=Math.floor(w/24);return R>0?`${n.widgetLang.days_ago.replace(/{x}/g,R.toString())}`:w>0?`${n.widgetLang.hours_ago.replace(/{x}/g,w.toString())}`:p>0?`${n.widgetLang.minutes_ago.replace(/{x}/g,p.toString())}`:d>0?`${n.widgetLang.seconds_ago.replace(/{x}/g,d.toString())}`:`${n.widgetLang.just_now}`};return lt(()=>{a.value=s(),i=setInterval(()=>{a.value=s()},3e4)}),Aa(()=>{i&&clearInterval(i)}),(r,o)=>(c(),g("span",null,H(a.value),1))}}),o0=e=>!window.markdownit||!e?e:window.markdownit("commonmark",{html:!1,linkify:!0}).renderInline(e).replace(//g," "),d0={},l0={xmlns:"http://www.w3.org/2000/svg",width:"21",height:"20",viewBox:"0 0 21 20",fill:"none"};function u0(e,t){return c(),g("svg",l0,t[0]||(t[0]=[_("path",{d:"M7.99967 11.6666L3.83301 7.49992L7.99967 3.33325",stroke:"currentColor","stroke-width":"1.25","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),_("path",{d:"M17.1663 16.6667V10.8333C17.1663 9.94928 16.8151 9.10143 16.19 8.47631C15.5649 7.85119 14.7171 7.5 13.833 7.5H3.83301",stroke:"currentColor","stroke-width":"1.25","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))}const c0=de(d0,[["render",u0]]),g0={class:"prev-chat-wrapper"},h0={class:"prev-chat-list"},_0={key:0,class:"list-img"},f0=["src"],m0={key:1},p0=["src"],$0={class:"list-body"},v0=["innerHTML"],y0={key:0},C0={key:1},b0={key:2},w0={key:3,class:"document-preview"},L0={key:4},k0={key:3},x0={key:0,class:"prev-chat-list-arrow"},M0={key:0,class:"unread-message-count"},S0={key:0,class:"new-chat-list w-full"},E0={key:0,class:"unread-message-count"},A0=be({__name:"ConversationListItem",props:{conversation:{}},emits:["click"],setup(e){const t=e,n=Se(),a=["/avatars/avatar.svg","/avatars/avatar1.svg","/avatars/avatar2.svg","/avatars/avatar3.svg","/avatars/avatar4.svg","/avatars/avatar5.svg","/avatars/avatar6.svg"],i=v(()=>t.conversation.attributes.latest_message.agent_resized_profile_photo_url||t.conversation.attributes.latest_message.agent_profile_photo_url),s=v(()=>{var y;return(y=t.conversation.attributes.latest_message)==null?void 0:y.agent_name}),r=v(()=>{var T;const y=(T=t.conversation.attributes.latest_message)==null?void 0:T.content;return(y!=null&&y.includes("New conversation initiated by:")?n.widgetLang.new_conversation_initiated:y)||""}),o=v(()=>o0(r.value)),l=v(()=>t.conversation.attributes.latest_message.urls),d=v(()=>{var C;return((C=t.conversation.attributes.latest_message)==null?void 0:C.created_at)||new Date().toISOString()}),p=v(()=>t.conversation.attributes.is_ended),w=v(()=>{var y,C;return(C=(y=t.conversation.attributes.latest_message.meta)==null?void 0:y.survey_response)!=null&&C.length?t.conversation.attributes.latest_message.meta.survey_response[0].question:null}),R=y=>{const C=`avatar_${y}`;let T=localStorage.getItem(C);if(!T){const u=a[Math.floor(Math.random()*a.length)];localStorage.setItem(C,u),T=u}return T};return(y,C)=>(c(),g("div",{class:"prev-chat-section",onClick:C[0]||(C[0]=T=>y.$emit("click"))},[_("div",g0,[_("div",h0,[p.value?(c(),g("div",_0,[i.value?(c(),g("img",{key:0,src:i.value},null,8,f0)):s.value?(c(),g("span",m0,H(h(Rt)(s.value)),1)):(c(),g("img",{key:2,src:R(y.conversation.id)},null,8,p0))])):k("",!0),_("div",$0,[r.value?(c(),g("p",{key:0,innerHTML:o.value,class:j({"rtl text-end":h(ce)(o.value)})},null,10,v0)):w.value?(c(),g("p",{key:1,class:j({"rtl text-end":h(ce)(w.value)})},H(w.value),3)):l.value&&l.value.length>0?(c(),g(me,{key:2},[h(n0)(l.value[0].mime)?(c(),g("p",y0,"[Image attachment]")):h(a0)(l.value[0].mime)?(c(),g("p",C0,"[Video attachment]")):h(i0)(l.value[0].mime)?(c(),g("p",b0,"[Audio attachment]")):h(s0)(l.value[0].mime)?(c(),g("p",w0,"[File attachment]")):(c(),g("p",L0,H(l.value[0].mime),1))],64)):k("",!0),_("span",null,H(s.value?s.value:""),1),s.value?(c(),g("span",k0,"\xA0.\xA0")):k("",!0),le(r0,{createdAt:d.value},null,8,["createdAt"])])]),p.value?(c(),g("div",x0,[y.conversation.attributes.unread_messages?(c(),g("div",M0,H(y.conversation.attributes.unread_messages),1)):k("",!0),C[1]||(C[1]=_("img",{src:t0,alt:"chevron"},null,-1))])):k("",!0)]),p.value?k("",!0):(c(),g("div",S0,[_("button",{type:"button",class:j(["new-chat-btn gap-2",{rtl:h(ce)(h(n).widgetLang.return_to_conversation)}])},[le(c0),Re(" "+H(h(n).widgetLang.return_to_conversation)+" \xA0 ",1),y.conversation.attributes.unread_messages&&!h(n).isAgentOnline||y.conversation.attributes.unread_messages&&h(n).activeConversations.length>1?(c(),g("div",E0,H(y.conversation.attributes.unread_messages),1)):k("",!0)],2)]))]))}});const ti=de(A0,[["__scopeId","data-v-406ae2e6"]]),T0={class:"previous-section"},D0={class:"header-content"},I0={class:"icon-wrap"},O0={key:0,class:"prev-chat-container bg-grey100 p-2 rounded-2xl mt-2"},F0=be({__name:"PreviousConversationList",emits:["resumeConversation"],setup(e,{emit:t}){const n=t,a=J(!0),i=Se(),s=v(()=>i.conversations.filter(l=>l.attributes.is_ended)),r=v(()=>i.widgetLang),o=l=>{n("resumeConversation",l)};return(l,d)=>(c(),g(me,null,[d[1]||(d[1]=_("div",{class:"h-px my-4 w-full bg-grey200"},null,-1)),_("div",T0,[_("div",{onClick:d[0]||(d[0]=p=>a.value=!a.value),class:"prev-chat-header",style:oe(a.value?"":"border-bottom: none")},[_("div",D0,[_("div",I0,[le(e0)]),_("p",{class:j({rtl:h(ce)(r.value.previous_chats)})},H(s.value.length)+" "+H(r.value.previous_chats),3)]),_("img",{src:Mn,class:"arrow-icon",style:oe(a.value?"transform: rotate(180deg)":""),alt:"chevron"},null,4)],4),a.value?(c(),g("div",O0,[(c(!0),g(me,null,We(s.value,(p,w)=>(c(),g(me,{key:p.id},[le(ti,{conversation:p,onClick:R=>o(p)},null,8,["conversation","onClick"]),_("div",{class:j([{hidden:w===s.value.length-1},"h-px my-4 w-full bg-grey200"])},null,2)],64))),128))])):k("",!0)])],64))}});const P0=de(F0,[["__scopeId","data-v-5dcbc5ca"]]),N0=be({__name:"ActiveConversation",emits:["resumeConversation"],setup(e,{emit:t}){const n=Se(),a=t,i=r=>{a("resumeConversation",r)},s=v(()=>n.conversations.filter(r=>!r.attributes.is_ended));return(r,o)=>(c(!0),g(me,null,We(s.value,(l,d)=>(c(),g(me,{key:l.id},[le(ti,{conversation:l,onClick:p=>i(l),class:"mt-2"},null,8,["conversation","onClick"]),_("div",{class:j([{hidden:d===s.value.length-1},"h-px my-4 w-full bg-grey200"])},null,2)],64))),128))}}),V0={class:"start-chat-container mx-4"},R0={class:"flex justify-between items-start"},B0={class:"overflow-y-auto h-full"},H0=["innerHTML"],U0=["disabled"],j0={key:0,class:"icon",src:Ba,alt:"send"},Z0={class:"px-4"},G0=be({__name:"StartConversation",setup(e){const t=Se(),n=v(()=>t.widgetLang),a=v(()=>{var T;return(T=t.widgetData)==null?void 0:T.is_welcome_text_enabled}),i=v(()=>Bt(t.previewText)),s=v(()=>t.showFaqInCurrentTab),r=v(()=>t.currentView),o=v(()=>t.hasRequiredField),l=v(()=>t.conversations),d=v(()=>{var T;return(T=l.value)==null?void 0:T.some(u=>!u.attributes.is_ended)}),p=v(()=>{var T;return(T=l.value)==null?void 0:T.find(u=>u.attributes.is_ended)}),w=v(()=>t.uiFlags.isConversationsLoading),R=()=>{t.uiFlags.isChatStarted=!0,t.uiFlags.isStartingNewChat=!0,t.uiFlags.isConversationEnded=!1,t.messages=[]},y=async()=>{var T;(T=t.widgetData)!=null&&T.token||await t.getToken(),R(),t.activeState="chat"},C=async T=>{if(t.activeState="chat",!T.attributes.is_ended&&T.attributes.contact_id!==t.visitorId){await t.resumeConversation(T);return}try{t.roomId=T.id,t.visitorId=T.attributes.contact_id,t.uiFlags.isConversationEnded=T.attributes.is_ended,await t.getMessagesByConversationId(T.id)}catch(u){console.error("Failed to get messages by conversation id:",u)}};return(T,u)=>{const x=mt("linkify");return c(),g(me,null,[r.value==="chat"?(c(),g(me,{key:0},[_("div",V0,[_("div",R0,[le(Vs),h(t).isAgentOnline?(c(),g("div",{key:0,class:j(["status-badge",{rtl:h(ce)(n.value.online)}])},[u[0]||(u[0]=_("div",{class:"status-dot"},null,-1)),Re(" "+H(n.value.online),1)],2)):k("",!0)]),_("div",B0,[d.value?k("",!0):(c(),g(me,{key:0},[a.value&&(i.value&&h(t).isAgentOnline||!h(t).isAgentOnline&&!o.value)?Ae((c(),g("div",{key:0,class:j(["text-base font-normal text-left mt-2 message",{rtl:h(ce)(i.value)}]),innerHTML:i.value},null,10,H0)),[[x,{target:"_blank"},"options"]]):k("",!0),!o.value||o.value&&l.value.length?(c(),g("button",{key:1,onClick:y,class:j(["start-chat-btn flex justify-between items-center rounded-lg",{"mt-3":a.value||h(t).isAgentOnline,rtl:h(ce)(h(t).isAgentOnline?n.value.start_a_new_chat:n.value.leave_a_message)}]),disabled:h(t).uiFlags.isGettingToken||w.value},[Re(H(h(t).isAgentOnline?n.value.start_a_new_chat:n.value.leave_a_message)+" ",1),le(hn,{"is-loading":h(t).uiFlags.isGettingToken,style:{margin:"0 10px 0"}},null,8,["is-loading"]),h(t).uiFlags.isGettingToken?k("",!0):(c(),g("img",j0))],10,U0)):k("",!0)],64)),d.value?(c(),Ce(N0,{key:1,onResumeConversation:C})):k("",!0),p.value?(c(),Ce(P0,{key:2,onResumeConversation:C})):k("",!0),o.value&&!l.value.length?(c(),Ce(ei,{key:3})):k("",!0)])]),_("div",Z0,[s.value?(c(),Ce(Xn,{key:0})):k("",!0)])],64)):k("",!0),r.value==="faqs"?(c(),Ce(Xn,{key:1,class:"mt-13 mx-4"})):k("",!0),r.value==="apps"?(c(),Ce(vr,{key:2})):k("",!0)],64)}}});const q0=de(G0,[["__scopeId","data-v-0af63af9"]]),W0={},z0={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"};function Y0(e,t){return c(),g("svg",z0,t[0]||(t[0]=[_("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),_("path",{d:"M9.08984 8.99996C9.32495 8.33163 9.789 7.76807 10.3998 7.40909C11.0106 7.05012 11.7287 6.9189 12.427 7.03867C13.1253 7.15844 13.7587 7.52148 14.2149 8.06349C14.6712 8.60549 14.9209 9.29148 14.9198 9.99996C14.9198 12 11.9198 13 11.9198 13",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),_("path",{d:"M12 17H12.01",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))}const K0=de(W0,[["render",Y0]]),J0={},X0={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"};function Q0(e,t){return c(),g("svg",X0,t[0]||(t[0]=[_("path",{d:"M21 15C21 15.5304 20.7893 16.0391 20.4142 16.4142C20.0391 16.7893 19.5304 17 19 17H7L3 21V5C3 4.46957 3.21071 3.96086 3.58579 3.58579C3.96086 3.21071 4.46957 3 5 3H19C19.5304 3 20.0391 3.21071 20.4142 3.58579C20.7893 3.96086 21 4.46957 21 5V15Z",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))}const e3=de(J0,[["render",Q0]]),t3={class:"navigation-buttons-wrap"},n3={class:"navigation-buttons"},a3=be({__name:"NaviagationButton",setup(e){const t=Se(),n=v(()=>t.currentView),a=v(()=>t.isFaqEnabled),i=v(()=>t.showFaqInNewTab),s=v(()=>t.isChannelEnabled),r=v(()=>t.widgetLang),o=v(()=>({background:bs(t.updatedBgColor,.04),color:"var(--bg-color)"})),l=d=>{t.setCurrentView(d)};return(d,p)=>(c(),g("div",t3,[_("div",n3,[_("button",{onClick:p[0]||(p[0]=w=>l("chat")),class:"button",style:oe([n.value=="chat"?o.value:""])},[le(e3,{class:"icon"}),_("span",{class:j(["leading-140",{rtl:h(ce)(r.value.chat)}])},H(r.value.chat),3)],4),a.value&&i.value?(c(),g("button",{key:0,onClick:p[1]||(p[1]=w=>l("faqs")),class:"button",style:oe([n.value=="faqs"?o.value:""])},[le(K0,{class:"icon"}),_("span",{class:j(["leading-140",{rtl:h(ce)(r.value.faq_short)}])},H(r.value.faq_short),3)],4)):k("",!0),s.value?(c(),g("button",{key:1,onClick:p[2]||(p[2]=w=>l("apps")),class:"button",style:oe([n.value=="apps"?o.value:""])},[le(Za,{class:"icon"}),_("span",{class:j(["leading-140",{rtl:h(ce)(r.value.channels)}])},H(r.value.channels),3)],4)):k("",!0)])]))}});const i3=de(a3,[["__scopeId","data-v-d51ff9b2"]]);function qt(){const{widgetData:e}=vi(Se()),t=v(()=>{var l,d;const r=(d=(l=e.value)==null?void 0:l.system_message_icon)!=null?d:"system-base";return["system-base","system-smile","system-robot","system-male","system-female"].includes(r)?`/images/${r}.png`:r}),n=v(()=>{var r;return{fontFamily:Ra((r=e.value)==null?void 0:r.chat_font_type)}}),a=v(()=>{var r;return{border:`2px solid ${(r=e.value)==null?void 0:r.avatar_border_color}`}}),i=v(()=>{var r;return{color:(r=e.value)==null?void 0:r.close_icon_color}}),s=v(()=>{var r;return(r=e.value)==null?void 0:r.company_logo_url});return{getSystemMessageIconPath:t,headerFontStyle:n,avatarBorderStyle:a,closeIconStyle:i,companyLogoUrl:s}}const s3={width:"131",height:"18",viewBox:"0 0 131 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r3=["opacity"],o3=["fill"],d3=["fill"],l3=["fill"],u3=["fill"],c3=["fill"],g3=["fill"],h3=["fill"],_3=["fill"],f3=["fill"],m3=["fill"],p3=["fill"],$3=["fill"],v3=["fill"],y3=["fill"],ni=be({__name:"AnimatedPoweredBy",setup(e){const t=J(!1),n=v(()=>({cursor:"pointer",transition:"transform 0.3s ease-in-out",transform:t.value?"scale(1.05)":"scale(1)"}));return(a,i)=>(c(),g("div",{style:oe(n.value),onMouseenter:i[0]||(i[0]=s=>t.value=!0),onMouseleave:i[1]||(i[1]=s=>t.value=!1)},[(c(),g("svg",s3,[_("g",{opacity:t.value?"1":"0.8"},[_("path",{d:"M5.93 7.57513C5.93 8.15513 5.73 8.63846 5.33 9.02513C4.93667 9.40513 4.33333 9.59513 3.52 9.59513H2.18V12.5051H1.27V5.53513H3.52C4.30667 5.53513 4.90333 5.72513 5.31 6.10513C5.72333 6.48513 5.93 6.97513 5.93 7.57513ZM3.52 8.84513C4.02667 8.84513 4.4 8.73513 4.64 8.51513C4.88 8.29513 5 7.98179 5 7.57513C5 6.71513 4.50667 6.28513 3.52 6.28513H2.18V8.84513H3.52ZM9.45102 12.5951C8.93768 12.5951 8.47102 12.4785 8.05102 12.2451C7.63768 12.0118 7.31102 11.6818 7.07102 11.2551C6.83768 10.8218 6.72102 10.3218 6.72102 9.75513C6.72102 9.19513 6.84102 8.70179 7.08102 8.27513C7.32768 7.84179 7.66102 7.51179 8.08102 7.28513C8.50102 7.05179 8.97102 6.93513 9.49102 6.93513C10.011 6.93513 10.481 7.05179 10.901 7.28513C11.321 7.51179 11.651 7.83846 11.891 8.26513C12.1377 8.69179 12.261 9.18846 12.261 9.75513C12.261 10.3218 12.1343 10.8218 11.881 11.2551C11.6343 11.6818 11.2977 12.0118 10.871 12.2451C10.4443 12.4785 9.97102 12.5951 9.45102 12.5951ZM9.45102 11.7951C9.77768 11.7951 10.0843 11.7185 10.371 11.5651C10.6577 11.4118 10.8877 11.1818 11.061 10.8751C11.241 10.5685 11.331 10.1951 11.331 9.75513C11.331 9.31513 11.2443 8.94179 11.071 8.63513C10.8977 8.32846 10.671 8.10179 10.391 7.95513C10.111 7.80179 9.80768 7.72513 9.48102 7.72513C9.14768 7.72513 8.84102 7.80179 8.56102 7.95513C8.28768 8.10179 8.06768 8.32846 7.90102 8.63513C7.73435 8.94179 7.65102 9.31513 7.65102 9.75513C7.65102 10.2018 7.73102 10.5785 7.89102 10.8851C8.05768 11.1918 8.27768 11.4218 8.55102 11.5751C8.82435 11.7218 9.12435 11.7951 9.45102 11.7951ZM20.7575 7.02513L19.0475 12.5051H18.1075L16.7875 8.15513L15.4675 12.5051H14.5275L12.8075 7.02513H13.7375L14.9975 11.6251L16.3575 7.02513H17.2875L18.6175 11.6351L19.8575 7.02513H20.7575ZM26.6606 9.55513C26.6606 9.72846 26.6506 9.91179 26.6306 10.1051H22.2506C22.284 10.6451 22.4673 11.0685 22.8006 11.3751C23.1406 11.6751 23.5506 11.8251 24.0306 11.8251C24.424 11.8251 24.7506 11.7351 25.0106 11.5551C25.2773 11.3685 25.464 11.1218 25.5706 10.8151H26.5506C26.404 11.3418 26.1106 11.7718 25.6706 12.1051C25.2306 12.4318 24.684 12.5951 24.0306 12.5951C23.5106 12.5951 23.044 12.4785 22.6306 12.2451C22.224 12.0118 21.904 11.6818 21.6706 11.2551C21.4373 10.8218 21.3206 10.3218 21.3206 9.75513C21.3206 9.18846 21.434 8.69179 21.6606 8.26513C21.8873 7.83846 22.204 7.51179 22.6106 7.28513C23.024 7.05179 23.4973 6.93513 24.0306 6.93513C24.5506 6.93513 25.0106 7.04846 25.4106 7.27513C25.8106 7.50179 26.1173 7.81513 26.3306 8.21513C26.5506 8.60846 26.6606 9.05513 26.6606 9.55513ZM25.7206 9.36513C25.7206 9.01846 25.644 8.72179 25.4906 8.47513C25.3373 8.22179 25.1273 8.03179 24.8606 7.90513C24.6006 7.77179 24.3106 7.70513 23.9906 7.70513C23.5306 7.70513 23.1373 7.85179 22.8106 8.14513C22.4906 8.43846 22.3073 8.84513 22.2606 9.36513H25.7206ZM28.7718 7.91513C28.9318 7.60179 29.1585 7.35846 29.4518 7.18513C29.7518 7.01179 30.1151 6.92513 30.5418 6.92513V7.86513H30.3018C29.2818 7.86513 28.7718 8.41846 28.7718 9.52513V12.5051H27.8618V7.02513H28.7718V7.91513ZM36.5923 9.55513C36.5923 9.72846 36.5823 9.91179 36.5623 10.1051H32.1823C32.2156 10.6451 32.3989 11.0685 32.7323 11.3751C33.0723 11.6751 33.4823 11.8251 33.9623 11.8251C34.3556 11.8251 34.6823 11.7351 34.9423 11.5551C35.2089 11.3685 35.3956 11.1218 35.5023 10.8151H36.4823C36.3356 11.3418 36.0423 11.7718 35.6023 12.1051C35.1623 12.4318 34.6156 12.5951 33.9623 12.5951C33.4423 12.5951 32.9756 12.4785 32.5623 12.2451C32.1556 12.0118 31.8356 11.6818 31.6023 11.2551C31.3689 10.8218 31.2523 10.3218 31.2523 9.75513C31.2523 9.18846 31.3656 8.69179 31.5923 8.26513C31.8189 7.83846 32.1356 7.51179 32.5423 7.28513C32.9556 7.05179 33.4289 6.93513 33.9623 6.93513C34.4823 6.93513 34.9423 7.04846 35.3423 7.27513C35.7423 7.50179 36.0489 7.81513 36.2623 8.21513C36.4823 8.60846 36.5923 9.05513 36.5923 9.55513ZM35.6523 9.36513C35.6523 9.01846 35.5756 8.72179 35.4223 8.47513C35.2689 8.22179 35.0589 8.03179 34.7923 7.90513C34.5323 7.77179 34.2423 7.70513 33.9223 7.70513C33.4623 7.70513 33.0689 7.85179 32.7423 8.14513C32.4223 8.43846 32.2389 8.84513 32.1923 9.36513H35.6523ZM37.4534 9.74513C37.4534 9.18513 37.5668 8.69513 37.7934 8.27513C38.0201 7.84846 38.3301 7.51846 38.7234 7.28513C39.1234 7.05179 39.5701 6.93513 40.0634 6.93513C40.4901 6.93513 40.8868 7.03513 41.2534 7.23513C41.6201 7.42846 41.9001 7.68513 42.0934 8.00513V5.10513H43.0134V12.5051H42.0934V11.4751C41.9134 11.8018 41.6468 12.0718 41.2934 12.2851C40.9401 12.4918 40.5268 12.5951 40.0534 12.5951C39.5668 12.5951 39.1234 12.4751 38.7234 12.2351C38.3301 11.9951 38.0201 11.6585 37.7934 11.2251C37.5668 10.7918 37.4534 10.2985 37.4534 9.74513ZM42.0934 9.75513C42.0934 9.34179 42.0101 8.98179 41.8434 8.67513C41.6768 8.36846 41.4501 8.13513 41.1634 7.97513C40.8834 7.80846 40.5734 7.72513 40.2334 7.72513C39.8934 7.72513 39.5834 7.80513 39.3034 7.96513C39.0234 8.12513 38.8001 8.35846 38.6334 8.66513C38.4668 8.97179 38.3834 9.33179 38.3834 9.74513C38.3834 10.1651 38.4668 10.5318 38.6334 10.8451C38.8001 11.1518 39.0234 11.3885 39.3034 11.5551C39.5834 11.7151 39.8934 11.7951 40.2334 11.7951C40.5734 11.7951 40.8834 11.7151 41.1634 11.5551C41.4501 11.3885 41.6768 11.1518 41.8434 10.8451C42.0101 10.5318 42.0934 10.1685 42.0934 9.75513ZM48.1273 8.04513C48.3139 7.71846 48.5873 7.45179 48.9473 7.24513C49.3073 7.03846 49.7173 6.93513 50.1773 6.93513C50.6706 6.93513 51.1139 7.05179 51.5073 7.28513C51.9006 7.51846 52.2106 7.84846 52.4373 8.27513C52.6639 8.69513 52.7773 9.18513 52.7773 9.74513C52.7773 10.2985 52.6639 10.7918 52.4373 11.2251C52.2106 11.6585 51.8973 11.9951 51.4973 12.2351C51.1039 12.4751 50.6639 12.5951 50.1773 12.5951C49.7039 12.5951 49.2873 12.4918 48.9273 12.2851C48.5739 12.0785 48.3073 11.8151 48.1273 11.4951V12.5051H47.2173V5.10513H48.1273V8.04513ZM51.8473 9.74513C51.8473 9.33179 51.7639 8.97179 51.5973 8.66513C51.4306 8.35846 51.2039 8.12513 50.9173 7.96513C50.6373 7.80513 50.3273 7.72513 49.9873 7.72513C49.6539 7.72513 49.3439 7.80846 49.0573 7.97513C48.7773 8.13513 48.5506 8.37179 48.3773 8.68513C48.2106 8.99179 48.1273 9.34846 48.1273 9.75513C48.1273 10.1685 48.2106 10.5318 48.3773 10.8451C48.5506 11.1518 48.7773 11.3885 49.0573 11.5551C49.3439 11.7151 49.6539 11.7951 49.9873 11.7951C50.3273 11.7951 50.6373 11.7151 50.9173 11.5551C51.2039 11.3885 51.4306 11.1518 51.5973 10.8451C51.7639 10.5318 51.8473 10.1651 51.8473 9.74513ZM58.6951 7.02513L55.3951 15.0851H54.4551L55.5351 12.4451L53.3251 7.02513H54.3351L56.0551 11.4651L57.7551 7.02513H58.6951Z",fill:t.value?"#0446DE":"#A5A5B8"},null,8,o3),_("path",{d:"M69.0382 17.0554L70.2693 14.9033L71.1614 16.3006C71.1614 16.3006 70.5947 16.1997 70.0784 16.4465C69.5622 16.6934 69.0382 17.0554 69.0382 17.0554Z",fill:t.value?"#0446DE":"#8B8BA0"},null,8,d3),_("path",{d:"M68.1559 16.0292C68.0588 15.8079 67.8583 15.6491 67.6207 15.6052L64.6932 15.0647C64.0018 14.9371 63.5 14.3341 63.5 13.631V4.89752C63.5 3.82232 64.0269 2.81537 64.9103 2.20242L66.8 0.891218C67.5465 0.373201 68.4668 0.169407 69.3622 0.323797L76.1145 1.48798C77.5131 1.72912 78.5349 2.94221 78.5349 4.36145V10.9775C78.5349 11.7607 78.2199 12.5109 77.6608 13.0593L75.2559 15.4179C74.344 16.3122 73.0461 16.6927 71.7956 16.4322L70.3985 16.1411C70.1494 16.0893 69.8913 16.171 69.7175 16.3568L69.13 16.9847C68.9512 17.1758 68.6352 17.1217 68.5301 16.8821L68.1559 16.0292Z",fill:t.value?"#0446DE":"#A5A5B8"},null,8,l3),_("path",{d:"M66.7055 3.25653C65.2375 2.95822 63.8646 4.0802 63.8646 5.57822V13.0388C63.8646 13.7416 64.366 14.3444 65.057 14.4724L67.9571 15.0095C68.1996 15.0544 68.4029 15.2188 68.4975 15.4464L68.7577 16.0723C68.8366 16.262 69.0886 16.3002 69.2201 16.1425L69.722 15.5404C69.8729 15.3594 70.102 15.2626 70.337 15.2804L72.643 15.455C73.8064 15.5432 74.7991 14.6229 74.7991 13.4561V6.09266C74.7991 5.39938 74.3108 4.80199 73.6314 4.66393L66.7055 3.25653Z",fill:t.value?"#0446DE":"#8B8BA0"},null,8,u3),i[2]||(i[2]=_("path",{d:"M66.5476 3.24955C65.6478 3.07505 64.8121 3.76426 64.8121 4.68081V12.3522C64.8121 13.0767 65.3442 13.6914 66.0613 13.7951L68.0507 14.0828C68.2929 14.1178 68.5014 14.2721 68.6057 14.4934L68.8853 15.0863C68.9626 15.2764 69.2139 15.3167 69.3468 15.1604L69.7679 14.6717C69.9304 14.4831 70.178 14.3905 70.4244 14.4261L73.1318 14.8177C74.0109 14.9449 74.7984 14.263 74.7984 13.3748V6.05199C74.7984 5.35382 74.3035 4.75365 73.6181 4.62073L66.5476 3.24955Z",fill:"white"},null,-1)),_("path",{d:"M71.7014 10.9538L67.493 10.216C67.1868 10.1624 66.9377 10.4073 67.0562 10.6947C67.4409 11.6283 68.5156 13.096 70.4195 12.6066C70.8115 12.5058 71.6983 11.9961 71.9481 11.3172C72.0106 11.1476 71.8795 10.985 71.7014 10.9538Z",fill:t.value?"#0446DE":"#A5A5B8"},null,8,c3),_("ellipse",{cx:"67.6371",cy:"7.4758",rx:"0.746159",ry:"1.27913",transform:"rotate(-4.90348 67.6371 7.4758)",fill:t.value?"#0446DE":"#A5A5B8"},null,8,g3),_("ellipse",{cx:"71.5804",cy:"8.20456",rx:"0.746159",ry:"1.27913",transform:"rotate(-4.90348 71.5804 8.20456)",fill:t.value?"#0446DE":"#A5A5B8"},null,8,h3),_("path",{d:"M84.8796 12.5181C84.206 12.5181 83.6112 12.3738 83.0951 12.0851C82.579 11.7877 82.1722 11.381 81.8748 10.8648C81.5861 10.3487 81.4418 9.7539 81.4418 9.08034C81.4418 8.40677 81.5861 7.81193 81.8748 7.29583C82.1722 6.77972 82.5746 6.37733 83.0819 6.08866C83.5981 5.79124 84.1885 5.64253 84.8533 5.64253C85.5007 5.64253 86.0867 5.79999 86.6116 6.1149C87.1365 6.42107 87.5257 6.86282 87.7794 7.44016L86.4148 7.96502C86.2748 7.67635 86.0605 7.44454 85.7718 7.26958C85.4832 7.09463 85.1551 7.00716 84.7877 7.00716C84.4291 7.00716 84.1098 7.09901 83.8299 7.28271C83.5499 7.45766 83.3313 7.70259 83.1738 8.0175C83.0163 8.32367 82.9376 8.67795 82.9376 9.08034C82.9376 9.48273 83.0163 9.84138 83.1738 10.1563C83.34 10.4625 83.5631 10.7074 83.843 10.8911C84.1317 11.066 84.4553 11.1535 84.814 11.1535C85.1814 11.1535 85.5094 11.0617 85.7981 10.878C86.0867 10.6855 86.3011 10.4275 86.441 10.1038L87.8056 10.6287C87.552 11.2235 87.1627 11.6871 86.6378 12.0195C86.1217 12.3519 85.5356 12.5181 84.8796 12.5181Z",fill:t.value?"#0446DE":"#A5A5B8"},null,8,_3),_("path",{d:"M88.6972 12.3607L88.6841 3.05762H90.1537L90.1668 12.3607H88.6972ZM93.1453 12.3607V9.00161L94.6149 8.60797V12.3607H93.1453ZM93.1453 9.00161C93.1453 8.47675 93.0841 8.07436 92.9616 7.79444C92.8392 7.50577 92.6686 7.30457 92.4499 7.19086C92.24 7.07714 91.995 7.02028 91.7151 7.02028C91.2165 7.01153 90.8316 7.17336 90.5604 7.50577C90.298 7.83818 90.1668 8.31492 90.1668 8.936H89.6026C89.6026 8.24494 89.7032 7.65448 89.9044 7.16461C90.1143 6.666 90.4073 6.28985 90.7835 6.03617C91.1596 5.77375 91.6058 5.64253 92.1219 5.64253C92.9092 5.64253 93.5215 5.88746 93.9589 6.37733C94.3962 6.85845 94.6149 7.60199 94.6149 8.60797L93.1453 9.00161Z",fill:t.value?"#0446DE":"#A5A5B8"},null,8,f3),_("path",{d:"M99.8166 12.3607L99.751 11.1273V8.98849C99.751 8.54236 99.7029 8.17059 99.6067 7.87317C99.5105 7.57575 99.3574 7.34831 99.1474 7.19086C98.9463 7.0334 98.6795 6.95467 98.347 6.95467C98.0409 6.95467 97.7697 7.02028 97.5335 7.15149C97.2973 7.28271 97.1005 7.4839 96.9431 7.75508L95.6047 7.28271C95.7534 6.99403 95.9458 6.72286 96.182 6.46918C96.4182 6.2155 96.7156 6.0143 97.0743 5.86559C97.4417 5.71689 97.8747 5.64253 98.3733 5.64253C99.0119 5.64253 99.5411 5.76062 99.961 5.99681C100.39 6.23299 100.709 6.5829 100.919 7.04652C101.129 7.51014 101.234 8.08311 101.234 8.76542L101.194 12.3607H99.8166ZM97.9534 12.5181C97.1661 12.5181 96.5538 12.3432 96.1164 11.9933C95.6878 11.6434 95.4735 11.1491 95.4735 10.5106C95.4735 9.82826 95.7009 9.30777 96.1558 8.94912C96.6194 8.59047 97.2623 8.41114 98.0846 8.41114H99.8429V9.53958H98.557C97.9709 9.53958 97.5598 9.62269 97.3236 9.78889C97.0874 9.94635 96.9693 10.1738 96.9693 10.4712C96.9693 10.7249 97.0699 10.9261 97.2711 11.0748C97.481 11.2147 97.7697 11.2847 98.1371 11.2847C98.4608 11.2847 98.7407 11.2104 98.9769 11.0617C99.2218 10.9042 99.4099 10.703 99.5411 10.4581C99.6811 10.2044 99.751 9.93323 99.751 9.64456H100.289C100.289 10.5368 100.097 11.241 99.7117 11.7571C99.3355 12.2645 98.7494 12.5181 97.9534 12.5181Z",fill:t.value?"#0446DE":"#A5A5B8"},null,8,m3),_("path",{d:"M105.071 12.5181C104.38 12.5181 103.85 12.3476 103.483 12.0064C103.124 11.6565 102.945 11.1579 102.945 10.5106V3.75305H104.401V10.235C104.401 10.5412 104.471 10.773 104.611 10.9305C104.76 11.0879 104.974 11.1666 105.254 11.1666C105.342 11.1666 105.438 11.1491 105.543 11.1142C105.648 11.0792 105.766 11.0136 105.897 10.9173L106.435 12.0326C106.208 12.1901 105.98 12.3082 105.753 12.3869C105.526 12.4744 105.298 12.5181 105.071 12.5181ZM101.856 7.05964V5.79999H106.173V7.05964H101.856Z",fill:t.value?"#0446DE":"#A5A5B8"},null,8,p3),_("path",{d:"M113.423 12.3607L115.615 5.79999H117.097L114.867 12.3607H113.423ZM109.028 12.3607L111.167 5.79999H112.466L110.353 12.3607H109.028ZM108.897 12.3607L106.666 5.79999H108.149L110.287 12.3607H108.897ZM113.41 12.3607L111.311 5.79999H112.61L114.749 12.3607H113.41Z",fill:t.value?"#0446DE":"#A5A5B8"},null,8,$3),_("path",{d:"M121.582 12.3607L121.516 11.1273V8.98849C121.516 8.54236 121.468 8.17059 121.372 7.87317C121.276 7.57575 121.122 7.34831 120.913 7.19086C120.711 7.0334 120.445 6.95467 120.112 6.95467C119.806 6.95467 119.535 7.02028 119.299 7.15149C119.062 7.28271 118.866 7.4839 118.708 7.75508L117.37 7.28271C117.518 6.99403 117.711 6.72286 117.947 6.46918C118.183 6.2155 118.481 6.0143 118.839 5.86559C119.207 5.71689 119.64 5.64253 120.138 5.64253C120.777 5.64253 121.306 5.76062 121.726 5.99681C122.155 6.23299 122.474 6.5829 122.684 7.04652C122.894 7.51014 122.999 8.08311 122.999 8.76542L122.959 12.3607H121.582ZM119.719 12.5181C118.931 12.5181 118.319 12.3432 117.882 11.9933C117.453 11.6434 117.239 11.1491 117.239 10.5106C117.239 9.82826 117.466 9.30777 117.921 8.94912C118.385 8.59047 119.027 8.41114 119.85 8.41114H121.608V9.53958H120.322C119.736 9.53958 119.325 9.62269 119.089 9.78889C118.853 9.94635 118.734 10.1738 118.734 10.4712C118.734 10.7249 118.835 10.9261 119.036 11.0748C119.246 11.2147 119.535 11.2847 119.902 11.2847C120.226 11.2847 120.506 11.2104 120.742 11.0617C120.987 10.9042 121.175 10.703 121.306 10.4581C121.446 10.2044 121.516 9.93323 121.516 9.64456H122.054C122.054 10.5368 121.862 11.241 121.477 11.7571C121.101 12.2645 120.515 12.5181 119.719 12.5181Z",fill:t.value?"#0446DE":"#A5A5B8"},null,8,v3),_("path",{d:"M125.12 15.1424C124.91 15.1424 124.674 15.1031 124.412 15.0243C124.158 14.9456 123.913 14.845 123.677 14.7225L124.228 13.5285C124.394 13.6072 124.547 13.6684 124.687 13.7122C124.827 13.7647 124.941 13.7909 125.028 13.7909C125.238 13.7909 125.413 13.7341 125.553 13.6203C125.702 13.5154 125.82 13.3579 125.908 13.148L126.682 11.3372L128.899 5.79999H130.5L127.456 13.0561C127.272 13.476 127.084 13.8434 126.892 14.1583C126.708 14.4732 126.476 14.7138 126.196 14.88C125.916 15.0549 125.558 15.1424 125.12 15.1424ZM126.288 12.3607L123.349 5.79999H124.95L127.233 11.3241L127.705 12.3607H126.288Z",fill:t.value?"#0446DE":"#A5A5B8"},null,8,y3)],8,r3)]))],36))}}),C3={key:0,class:"header--top"},b3={key:1,src:Ht,alt:""},w3={key:0,class:"flex flex-col pl-8 pr-4"},L3=["src"],k3={class:"z-1"},x3={key:0,class:"powered-by-section"},M3=["href"],S3=be({__name:"WidgetHome",props:{isSmallHeight:{type:Boolean}},setup(e){const t=e,n=Se(),{companyLogoUrl:a}=qt(),i=v(()=>{var x;return{color:(x=n.widgetData)==null?void 0:x.close_icon_color}}),s=v(()=>{var x;return{color:(x=n.widgetData)==null?void 0:x.header_text_color}}),r=v(()=>({fontSize:t.isSmallHeight?"24px !important":T.value,marginTop:t.isSmallHeight?"18px !important":"0"})),o=v(()=>{var x;return(x=n.widgetData)==null?void 0:x.is_removed_chatway_branding}),l=v(()=>n.currentView),d=v(()=>n.isFaqEnabled),p=v(()=>n.showFaqInNewTab),w=v(()=>n.isChannelEnabled),R=v(()=>{var x,S,D,X,N;return(x=n.widgetData)!=null&&x.origin.includes("https://")?(S=n.widgetData)==null?void 0:S.origin.slice(8):(D=n.widgetData)!=null&&D.origin.includes("http://")?(X=n.widgetData)==null?void 0:X.origin.slice(7):(N=n.widgetData)==null?void 0:N.origin}),y=v(()=>{var x,S;return((x=n.widgetData)==null?void 0:x.is_enabled_subheader)&&((S=n.widgetData)==null?void 0:S.sub_header.length)>0}),C=v(()=>{var x;return((x=n.widgetData)==null?void 0:x.hide_if_all_agents_offline)&&!(n!=null&&n.activeAgents.length)}),T=v(()=>{var x,S;switch((x=n.widgetData)==null?void 0:x.header_font_size){case"S":return"24px";case"M":return"26px";case"L":return"28px";case"XL":return"32px";case"XXL":return"36px";default:return`${(S=n.widgetData)==null?void 0:S.custom_header_font_size}px`}}),u=()=>{fe.dispatchEvent(ie.WIDGET_TOGGLE)};return ke(()=>C.value,()=>{C.value?fe.dispatchEvent(ie.WIDGET_DISABLE,!1):fe.dispatchEvent(ie.WIDGET_DISABLE,!0)}),(x,S)=>{var D;return c(),g(me,null,[_("div",{class:"close--btn",onClick:u},[le(Cn,{style:oe(i.value)},null,8,["style"])]),_("div",{class:"widget-header--bg",style:oe({background:h(Cs)(((D=h(n).widgetData)==null?void 0:D["bg-color"])||"")})},null,4),_("div",{class:j(["widget--header flex flex-col h-full overflow-y-auto",[{"widget--online--header":h(n).isAgentMessage&&h(n).onlineAgent&&!h(n).uiFlags.isFetchingAgents&&h(n).isAgentOnline}]])},[x.isSmallHeight?k("",!0):(c(),g("div",C3)),h(n).uiFlags.isFetchingAgents?(c(),g("img",b3)):k("",!0),h(n).uiFlags.isFetchingAgents?k("",!0):(c(),g(me,{key:2},[l.value==="chat"?(c(),g("div",w3,[h(a)&&!x.isSmallHeight?(c(),g("img",{key:0,src:h(a),alt:"logo",class:"w-11 h-11 rounded-full mt-6 mb-12 object-fit-cover"},null,8,L3)):k("",!0),h(n).isAgentOnline?(c(),g("p",{key:1,class:j(["mb-4 chatway-widget-header font-semibold",{rtl:h(n).isRtl,"mt-10":!h(a)}]),style:oe([s.value,r.value])},H(h(n).widgetLang.team_here),7)):(c(),g("p",{key:2,class:j(["agent--away--text text-left mb-4 chatway-widget-header",{rtl:h(n).isRtl,"mt-10":!h(a)}]),style:oe([s.value,r.value])},H(h(n).widgetLang.away),7)),y.value&&!x.isSmallHeight?(c(),g("p",{key:3,class:j(["text-sm mb-4 mx-0 mt-0 chatway-widget-header",{"rtl text-left":h(ce)(h(n).subHeaderText||"")}]),style:oe(s.value)},H(h(n).subHeaderText),7)):k("",!0)])):k("",!0),le(q0)],64))],2),_("div",k3,[o.value?k("",!0):(c(),g("div",x3,[_("a",{href:`https://chatway.app/?utm_source=powered&domain=${R.value}`,target:"_blank",class:""},[le(ni)],8,M3)])),d.value&&p.value||w.value?(c(),Ce(i3,{key:1})):k("",!0)])],64)}}});const E3=de(S3,[["__scopeId","data-v-97179447"]]),A3="/assets/send.64e5d357.svg";function T3(e){return{all:e=e||new Map,on:function(t,n){var a=e.get(t);a?a.push(n):e.set(t,[n])},off:function(t,n){var a=e.get(t);a&&(n?a.splice(a.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var a=e.get(t);a&&a.slice().map(function(i){i(n)}),(a=e.get("*"))&&a.slice().map(function(i){i(t,n)})}}}const Vt=T3(),D3={},I3={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"};function O3(e,t){return c(),g("svg",I3,t[0]||(t[0]=[_("path",{d:"M15 18L9 12L15 6",stroke:"#282D3E","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))}const F3=de(D3,[["render",O3]]),P3={class:"unread-count-wrap"},N3={key:0,class:"unread-message-count"},V3=be({__name:"BackToChat",setup(e){const t=Se(),n=async()=>{try{t.uiFlags.isChatStarted=!1,t.uiFlags.isStartingNewChat=!1,t.uiFlags.isMessagesLoading=!1,t.uiFlags.isConversationEnded=!1,t.isAgentMessage=!1,t.activeState="home",t.messages=[],t.current_page=1,t.total_page=1,t.setCurrentView("chat")}catch(a){console.error("Error fetching previous conversation list:",a)}};return(a,i)=>(c(),g("div",{onClick:n,class:"back--btn flex w-6 h-6"},[_("div",P3,[le(F3),h(t).unreadMessagesCount?(c(),g("div",N3,H(h(t).unreadMessagesCount),1)):k("",!0)])]))}}),R3={},B3={width:"400",height:"194",viewBox:"0 0 400 194",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function H3(e,t){return c(),g("svg",B3,t[0]||(t[0]=[tt('',2)]))}const U3=de(R3,[["render",H3]]),j3={class:"agent--profile--container flex items-center justify-center pt-3"},Z3={class:"flex justify-center relative"},G3=["src"],q3={class:"agent--name"},W3={class:"agent--profile inline-flex gap-2 items-center"},z3={class:"flex justify-center"},Y3=["src"],K3={class:"text-sm font-semibold m-0 leading-140"},J3={key:0,class:"agent--status flex items-center gap-1"},X3=["src"],Q3=["title"],el=be({__name:"ConversationHeader",setup(e){const t=Se(),{companyLogoUrl:n,avatarBorderStyle:a,headerFontStyle:i}=qt(),s=J(null),r=J(16),o=J(!1),l=J(null),d=v(()=>!t.uiFlags.isConversationsLoading&&!t.uiFlags.isMessagesLoading&&!t.uiFlags.isFetchingAgents),p=v(()=>t.customFieldValues),w=v(()=>p.value.length||t.isNameUpdated||t.isEmailAdded||t.isPhoneAdded),R=v(()=>w.value||t.isContactFormSubmitted),y=v(()=>t.isSingleView),C=v(()=>{var u,x;return((u=t.onlineAgent)==null?void 0:u.attributes.resized_profile_photo_url)||((x=t.onlineAgent)==null?void 0:x.attributes.profile_photo_url)}),T=async()=>{await Ee();let u=0;l.value=setInterval(()=>{const x=s.value;if(u+=1,u>20||r.value===12){clearInterval(l.value);return}if(x){x.style.fontSize=`${r.value}px`,x.style.fontSize=`${r.value}px`,x.style.webkitLineClamp="unset",x.style.overflow="visible";const S=47;x.scrollHeight>S&&r.value>=12&&(r.value=12,o.value=!0,x.style.webkitLineClamp="2",x.style.overflow="hidden"),clearInterval(l.value)}},500)};return ke(()=>[t.isAgentOnline,t.messages],()=>{t.onlineAgent||T()},{deep:!0}),lt(()=>{T()}),Ta(()=>{l.value&&clearInterval(l.value)}),(u,x)=>{var D,X,N,ae;const S=mt("tooltip");return c(),g(me,null,[d.value&&!h(t).isAgentMessage&&h(t).isAgentOnline?(c(),g(me,{key:0},[_("div",j3,[(c(!0),g(me,null,We(h(t).activeAgents.slice(0,5),(re,V)=>(c(),g("div",{key:re.id,class:"agent--profile"},[_("div",null,[_("div",Z3,[re.attributes.profile_photo_url?Ae((c(),g("img",{key:0,src:re.attributes.resized_profile_photo_url||re.attributes.profile_photo_url,alt:"",class:"agent--image flex-shrink-0",style:oe([h(a),{width:h(t).activeAgents.length>1?"36px":"48px",height:h(t).activeAgents.length>1?"36px":"48px"}])},null,12,G3)),[[S,{content:re.attributes.name,triggers:["hover"],container:!1},void 0,{bottom:!0}]]):Ae((c(),g("div",{key:1,class:"agent--initials",style:oe([h(a),h(i),{width:h(t).activeAgents.length>1?"36px":"48px",height:h(t).activeAgents.length>1?"36px":"48px"}])},[Re(H(h(Rt)(re.attributes.name)),1)],4)),[[S,{content:re.attributes.name,triggers:["hover"],container:!1},void 0,{bottom:!0}]]),_("div",{class:"w-2 h-2 rounded-full bg-positive-200 absolute bottom-0",style:oe([{right:h(t).activeAgents.length>1?"4px":"9px"}])},null,4),h(t).activeAgents.length>5&&V===4?Ae((c(),g("div",{key:2,class:"agent--initials more--agent",style:oe([h(a),h(i),{width:h(t).activeAgents.length>1?"36px":"48px",height:h(t).activeAgents.length>1?"36px":"48px"}])},[Re(H(h(t).activeAgents.length-5),1)],4)),[[S,{content:`${h(t).activeAgents.length-5} more agent(s)`,triggers:["hover"],container:!1},void 0,{bottom:!0}]]):k("",!0)]),_("div",q3,H(re.attributes.name),1)])]))),128))]),h(t).activeAgents.length>0?(c(),g("p",{key:0,class:j(["text-center text-base font-semibold leading-140 text-grey900",{rtl:h(t).isRtl}])},H(h(t).widgetLang.team_here),3)):k("",!0)],64)):k("",!0),!h(t).uiFlags.isFetchingAgents&&h(t).isAgentMessage&&h(t).onlineAgent&&h(t).isAgentOnline?(c(),g("div",{key:1,class:j(["agent--profile--container flex items-center",{"ml-8":!y.value}])},[_("div",W3,[_("div",z3,[(D=h(t).onlineAgent)!=null&&D.attributes.profile_photo_url?(c(),g("img",{key:0,src:C.value,alt:"",class:"agent--image rounded-full w-10 h-10"},null,8,Y3)):(c(),g("div",{key:1,class:"agent--initials w-10 h-10",style:oe([h(a),h(i)])},H(h(Rt)((X=h(t).onlineAgent)==null?void 0:X.attributes.name)),5))]),_("div",null,[_("p",K3,H((N=h(t).onlineAgent)==null?void 0:N.attributes.name),1),((ae=h(t).onlineAgent)==null?void 0:ae.attributes.online_status.toLowerCase())==="online"?(c(),g("div",J3,x[0]||(x[0]=[_("div",{class:"agent--status--icon"},null,-1),_("span",{class:"text-xs text-positive-200"},"ONLINE",-1)]))):k("",!0)])])],2)):k("",!0),!h(t).uiFlags.isFetchingAgents&&(!h(t).isAgentOnline||!h(t).isAgentOnline&&R.value)?(c(),g("div",{key:2,class:j(["flex items-center gap-2",{"ml-8":!y.value}])},[h(n)?(c(),g("img",{key:0,src:h(n),alt:"logo",class:"w-11 h-11 rounded-full object-fit-cover"},null,8,X3)):k("",!0),_("p",{class:j(["text-grey900 m-0 pr-4",{rtl:h(ce)(h(t).widgetLang.away)}]),title:h(t).widgetLang.away,ref_key:"headerTitleRef",ref:s,style:oe([{fontSize:`${r.value}px`},o.value?{textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical"}:{}])},H(h(t).widgetLang.away),15,Q3)],2)):k("",!0)],64)}}});const tl=de(el,[["__scopeId","data-v-ac53f8bb"]]),nl={class:"agent-chat-item"},al=["src"],il={class:"msg"},sl=["innerHTML"],rl=be({__name:"WelcomeMessage",setup(e){const t=Se(),{getSystemMessageIconPath:n}=qt(),a=v(()=>{var r;return(r=t.widgetData)==null?void 0:r.is_welcome_text_enabled}),i=v(()=>Bt(t.previewText)),s=v(()=>i.value?ce(i.value.charAt(0)):!1);return(r,o)=>{const l=mt("linkify");return a.value&&i.value?(c(),g("div",{key:0,class:j(["agent agent-msg px-4",{"agent-sm":h(t).isMobile}])},[_("div",nl,[_("img",{class:"profile--image",src:h(n)},null,8,al),_("div",il,[Ae(_("p",{innerHTML:i.value,class:j(["text",{rtl:s.value}])},null,10,sl),[[l,{target:"_blank"},"options"]])])])],2)):k("",!0)}}});const ol=de(rl,[["__scopeId","data-v-c46b6551"]]),dl={key:0,class:"ch-overlay"},ll={class:"w-full"},ul={key:0,src:Ht,alt:""},cl={key:0,class:"flex justify-center"},gl={key:0,class:"flex justify-center"},hl={class:"positive"},_l={key:1,class:"mt-6 bg-white border border-solid border-gray-200 contact-form-shadow rounded-2xl mx-4"},fl={key:1,class:"mt-6 bg-white border border-solid border-gray-200 contact-form-shadow rounded-2xl"},ml={key:3,class:"mt-6 bg-white border border-solid border-gray-200 contact-form-shadow rounded-2xl"},pl={key:2,class:"end-converstion"},$l={key:3,style:{padding:"1.5rem 0.5rem 1.5rem 0.5rem"}},vl={class:"bots"},yl={class:"thumbnail"},Cl=["src"],bl={key:0,class:"end-converstion"},wl={class:"chat-section"},Ll={class:"unread-counter"},kl={key:1},xl=["value","placeholder"],Ml={key:0,class:"flex"},Sl={key:1,class:"new-chat-section"},El={key:2,class:"powered-by-section"},Al=["href"],Tl=be({__name:"ChatView",setup(e){const t=Ue(()=>je(()=>import("./ErrorComponent.7b744abb.js"),["assets/ErrorComponent.7b744abb.js","assets/ErrorComponent.7bdb8757.css","assets/vue-chunks.9a4915e5.js","assets/library-chunks-1.ba23b3b2.js","assets/vue-3-linkify.8f393b2a.js","assets/socket-io.bbbf255d.js","assets/floating-vue.9132a23d.js"])),n=Ue(()=>je(()=>Promise.resolve().then(()=>K2),void 0)),a=Ue(()=>je(()=>import("./EmojiPicker.d13d0339.js"),["assets/EmojiPicker.d13d0339.js","assets/EmojiPicker.b97192cf.css","assets/vue-chunks.9a4915e5.js","assets/emoji.3338a276.js","assets/library-chunks-1.ba23b3b2.js","assets/vue-3-linkify.8f393b2a.js","assets/socket-io.bbbf255d.js","assets/floating-vue.9132a23d.js"])),i=Ue(()=>je(()=>import("./CustomFileUpload.19e1d86e.js"),["assets/CustomFileUpload.19e1d86e.js","assets/vue-chunks.9a4915e5.js","assets/library-chunks-1.ba23b3b2.js","assets/vue-3-linkify.8f393b2a.js","assets/socket-io.bbbf255d.js","assets/floating-vue.9132a23d.js"])),s=Ue(()=>je(()=>import("./ChatItem.028deeab.js"),["assets/ChatItem.028deeab.js","assets/ChatItem.1c299cc4.css","assets/download.0a863480.js","assets/floating-vue.9132a23d.js","assets/vue-chunks.9a4915e5.js","assets/library-chunks-1.ba23b3b2.js","assets/vue-3-linkify.8f393b2a.js","assets/socket-io.bbbf255d.js"])),r=Ue(()=>je(()=>import("./Modal.f5aff9cc.js"),["assets/Modal.f5aff9cc.js","assets/Modal.01c9ec22.css","assets/vue-chunks.9a4915e5.js","assets/dismiss.87bbbebf.js","assets/library-chunks-1.ba23b3b2.js","assets/vue-3-linkify.8f393b2a.js","assets/socket-io.bbbf255d.js","assets/floating-vue.9132a23d.js"])),o=Ue(()=>je(()=>import("./BotComponent.9a803ff0.js"),["assets/BotComponent.9a803ff0.js","assets/vue-chunks.9a4915e5.js","assets/library-chunks-1.ba23b3b2.js","assets/vue-3-linkify.8f393b2a.js","assets/socket-io.bbbf255d.js","assets/floating-vue.9132a23d.js"])),l=Ue(()=>je(()=>import("./BotResponse.53d761ad.js"),["assets/BotResponse.53d761ad.js","assets/BotResponse.e0ec59b2.css","assets/vue-chunks.9a4915e5.js","assets/library-chunks-1.ba23b3b2.js","assets/vue-3-linkify.8f393b2a.js","assets/socket-io.bbbf255d.js","assets/floating-vue.9132a23d.js"])),d=Ue(()=>je(()=>import("./TypingIndicator.7fe9c96d.js"),["assets/TypingIndicator.7fe9c96d.js","assets/TypingIndicator.9cb307b2.css","assets/vue-chunks.9a4915e5.js","assets/library-chunks-1.ba23b3b2.js","assets/vue-3-linkify.8f393b2a.js","assets/socket-io.bbbf255d.js","assets/floating-vue.9132a23d.js"])),p=Ue(()=>je(()=>import("./TypingIndicatorUp.b4fc8764.js"),["assets/TypingIndicatorUp.b4fc8764.js","assets/TypingIndicatorUp.b273a8fa.css","assets/vue-chunks.9a4915e5.js","assets/library-chunks-1.ba23b3b2.js","assets/vue-3-linkify.8f393b2a.js","assets/socket-io.bbbf255d.js","assets/floating-vue.9132a23d.js"])),w=Ue(()=>je(()=>import("./Loader.8366d95b.js"),["assets/Loader.8366d95b.js","assets/vue-chunks.9a4915e5.js","assets/library-chunks-1.ba23b3b2.js","assets/vue-3-linkify.8f393b2a.js","assets/socket-io.bbbf255d.js","assets/floating-vue.9132a23d.js"])),R=Ue(()=>je(()=>import("./SurveyForm.c1c87f11.js"),["assets/SurveyForm.c1c87f11.js","assets/SurveyForm.768d4acd.css","assets/floating-vue.9132a23d.js","assets/vue-chunks.9a4915e5.js","assets/library-chunks-1.ba23b3b2.js","assets/vue-3-linkify.8f393b2a.js","assets/socket-io.bbbf255d.js"])),y=Ue(()=>je(()=>import("./ReplyPreview.c1535161.js"),["assets/ReplyPreview.c1535161.js","assets/ReplyPreview.583a8202.css","assets/download.0a863480.js","assets/dismiss.87bbbebf.js","assets/vue-chunks.9a4915e5.js","assets/library-chunks-1.ba23b3b2.js","assets/vue-3-linkify.8f393b2a.js","assets/socket-io.bbbf255d.js","assets/floating-vue.9132a23d.js"])),{companyLogoUrl:C,getSystemMessageIconPath:T}=qt(),u=Se(),x=J(),S=ht({input:""}),D=J(null),X=J({meta:!1});let N=J(!1);const ae=J(!1),re=J(),V=J(!1),F=J(!0),Y=J(),z=J(!1),se=J(!1),ge=J(null),P=J(null),I=J(!1),A=J(!1),B=J(0),O=J(0),Z=J(0),U=J(0),q=J(!1),b=v(()=>ce(S.input.charAt(0))),M=v(()=>{var L;return(L=u.widgetData)==null?void 0:L.is_removed_chatway_branding}),K=v(()=>u.uiFlags.isCreatingChat),Q=v(()=>!$t.value||u.isNameUpdated||u.isEmailAdded||u.isPhoneAdded),_e=v(()=>u.messages.some(L=>!L.isMessageFailed&&!L.isTemp)),xe=v(()=>u.messages.some(L=>L.attributes.agent_id)),ze=v(()=>u.hasRequiredField),Oe=v(()=>u.hasVisibleField&&u.contactFields.some(L=>L.is_required)&&!u.messages.length),pe=v(()=>u.isFaqEnabled),De=v(()=>u.isChannelEnabled),we=v(()=>u.uiFlags.isMessagesLoading),Ze=v(()=>u.uiFlags.isConversationsLoading),Ne=v(()=>u.messages),qe=v(()=>u.currentView),Ye=v(()=>u.uiFlags.isChatStarted),Te=v(()=>u.widgetLang),st=v(()=>u.messageNotViewed),nt=v(()=>u.conversations),pt=v(()=>Ne.value.length&&Ne.value.every(L=>L.attributes.agent_id)&&u.isContactFormEnabled&&u.contactFields.some(L=>L.is_required)&&!u.isNameUpdated&&!u.isEmailAdded&&!u.isPhoneAdded&&!u.customFieldValues.length),$t=v(()=>u.contactFields.length),rt=v(()=>u.shouldSendContactFormAfterTheFirstMessage),ut=v(()=>u.hasVisibleField),Wt=v(()=>u.isSingleView),vt=v(()=>(u==null?void 0:u.uiFlags.isMessageSending)||u.uiFlags.isImageUploading),Ke=v(()=>u.uiFlags.isConversationEnded),At=v(()=>({name:u.userName||"Visitor",conversation_id:u.roomId,user_type:"Visitor",contact_id:u.visitorId,team_id:u.userId})),zt=v(()=>{var L,ne,ye,$e,Me;return(L=u.widgetData)!=null&&L.origin.includes("https://")?(ne=u.widgetData)==null?void 0:ne.origin.slice(8):(ye=u.widgetData)!=null&&ye.origin.includes("http://")?($e=u.widgetData)==null?void 0:$e.origin.slice(7):(Me=u.widgetData)==null?void 0:Me.origin}),yt=v(()=>{var L;return(L=nt.value)==null?void 0:L.some(ne=>ne.attributes.is_ended===!1)}),Tt=v(()=>{var L;return((L=u.widgetData)==null?void 0:L.has_paid_access)&&u.isSurveyEnabled&&Ke.value&&!u.hasSurveyResponseAsLastMessage}),Dt=v(()=>u.scrollToTop),Yt=v(()=>ut.value&&!rt.value&&!_e.value),It=v(()=>u.current_page===u.total_page),m=()=>{fe.dispatchEvent(ie.WIDGET_TOGGLE)},$=L=>{const ne=x.value.value,ye=ne.length;let $e=x.value.selectionStart;$e===void 0&&($e=0);const Me=ne.substr(0,$e),Ie=ne.substr($e,ye);S.input=Me+L+Ie,Ee().then(()=>{x.value.selectionStart=$e+L.length})},f=L=>{if(setTimeout(()=>{X.value.meta=!1},50),L&&(L.ctrlKey||L.metaKey||L.shiftKey)&&(X.value.meta=!0),X.value.meta&&L.key==="v"&&(X.value.meta=!1),Object.keys(X.value).length&&X.value.meta&&(L.keyCode==13||L.keyCode==10)){X.value={meta:!1},L.preventDefault();const{selectionStart:ne,selectionEnd:ye,value:$e}=L.target;S.input=$e.substring(0,ne)+` `+$e.substring(ye),Ee(()=>{L.target.selectionStart=L.target.selectionEnd=ne+1,x.value.scrollTop=x.value.scrollHeight});return}if(L&&!X.value.meta&&(L.keyCode==13||L.keyCode==10)){if(u.isMobile)return;L.preventDefault(),ee();return}},E=L=>{if(L.size>8192e3)return u.errorMessage=Te.value.the_file_must_not_be_greater_than_8_mb;L&&(u.sendFile(L),Je(),Ee(()=>{Qe()}))},ee=()=>{var ne,ye,$e,Me,Ie,Vn;if(!S.input.trim()||K.value||u.uiFlags.isGettingToken||Ne.value.length===1&&Ne.value[0].isTemp)return;if(P.value){let Ct=P.value.id;if(P.value.attributes.urls&&P.value.attributes.urls.length>0){const Rn=u.fileMessageIdMapping.get(Ct);Rn&&(Ct=Rn)}const tn={contact_id:u.visitorId,conversation_id:u.roomId,ip:((ne=u.browserData)==null?void 0:ne.ip)||"",team_id:u.userId,widget_id:u.widgetId,online_status:"online",origin_url:`${(ye=u.widgetData)==null?void 0:ye.origin}${($e=u.widgetData)==null?void 0:$e.path}`,message:{type:"text",content:Bt(S.input),parent_id:Ct}},ui=gn();u.sendMessage(tn,ui),P.value=null}else{const Ct={contact_id:u.visitorId,conversation_id:u.roomId,ip:((Me=u.browserData)==null?void 0:Me.ip)||"",team_id:u.userId,widget_id:u.widgetId,online_status:"online",origin_url:`${(Ie=u.widgetData)==null?void 0:Ie.origin}${(Vn=u.widgetData)==null?void 0:Vn.path}`,message:{type:"text",content:Bt(S.input)}},tn=gn();u.sendMessage(Ct,tn)}S.input="",ot();let L=x.value;L.style.height="40px",Ee(()=>{Qe()})},he=()=>{u.uiFlags.isChatStarted=!0,u.uiFlags.isStartingNewChat=!0,u.uiFlags.isConversationEnded=!1,ue(),oi(),Je()},ue=()=>{u.messages=[]},Ge=()=>{let L=x.value;if(L.style.height="auto",L.scrollHeight>230){L.style.height="230px";return}L.style.height=L.scrollHeight+"px"},W=L=>{if(Ge(),S.input=L.target.value,S.input.trim()&&!N.value){N.value=!0;const ne=At.value;u.startTyping(ne)}else!S.input.trim()&&N.value&&ot()},Kt=()=>{A.value=!1,N.value&&ot()},ot=()=>{N.value=!1;const L=At.value;u.stopTyping(L),On()},Qe=async()=>{!D.value||(await Ee(),u.messageNotViewed=0,setTimeout(()=>{const L=D.value;L&&(L.scrollTop=L.scrollHeight)},100))},Sn=L=>{L.data.type==="CHATWAY"&&u.widgetOpen&&L.data.action===ie.WIDGET_TOGGLE&&Je()};function ii(L){var ye,$e;if(((ye=L.clipboardData)==null?void 0:ye.files.length)==0)return;L.preventDefault();const ne=($e=L.clipboardData)==null?void 0:$e.files[0];!Va(ne)||(re.value=ne,ae.value||ct())}function En(){E(re.value),ct(),Je()}const ct=()=>{ae.value=!ae.value,Je()};function si(){ae.value&&En(),yt.value?yt.value?u.uiFlags.isStartingNewChat=!1:he():u.uiFlags.isStartingNewChat=!1}function ri(){S.input.length>25e3&&(S.input=S.input.slice(0,25e3))}function An(){ae.value?ct():P.value?Dn():fe.dispatchEvent(ie.FOCUS_EVENT)}const Je=()=>{Ee(()=>{u.isMobile||x.value&&x.value.focus()})},oi=()=>{S.input=""};function Ot(){var L,ne,ye;!D.value||(O.value=(L=D.value)==null?void 0:L.scrollHeight,Z.value=(ne=D.value)==null?void 0:ne.scrollTop,U.value=(ye=D.value)==null?void 0:ye.clientHeight,Math.floor(O.value-Z.value)-U.value<60?F.value=!0:F.value=!1)}const Tn=L=>{P.value=L,Je()},Dn=()=>{P.value=null,Je()},In=L=>{I.value=!0,ge.value&&ge.value!==L&&(ge.value=null),ge.value=ge.value===L?null:L},Jt=()=>{(u.unreadMessagesCount||u.messageNotViewed)&&u.markMessagesAsRead()},Xt=async L=>{var $e;if(q.value)return;q.value=!0;const ne=u.messages;let ye=ne.findIndex(Me=>Me.id===L);if(ye===-1){const Me=($e=[...u.fileMessageIdMapping.entries()].find(Ie=>Ie[1]===L))==null?void 0:$e[0];Me&&(ye=ne.findIndex(Ie=>Ie.id===Me))}if(!It.value&&ye===-1)return u.current_page+=1,await u.getMessages(u.roomId),q.value=!1,Xt(L);if(ye===-1)return u.errorMessage="Parent message not found",q.value=!1,Qe();await Ee(),setTimeout(()=>{const Me=document.querySelectorAll(".chat-section");if(!Me||ye>=Me.length)return;const Ie=Me[ye].querySelector(".messages");!Ie||(Ie.scrollIntoView({behavior:"smooth",block:"center"}),Ie.classList.add("highlight-message"),setTimeout(()=>{Ie.classList.remove("highlight-message")},2500),q.value=!1)},100)},On=()=>{document.visibilityState==="visible"?(u.isPageVisible=!0,Jt()):u.isPageVisible=!1,u.isPageVisible=document.visibilityState==="visible"},Fn=L=>{B.value=L.touches[0].clientY},Pn=L=>{if(document.activeElement!==x.value)return;const ne=L.touches[0].clientY;B.value-ne>10&&(x.value.blur(),A.value=!1)},Nn=async()=>{if(Ot(),u.isMobile&&document.activeElement===x.value&&(x.value.blur(),A.value=!1),u.uiFlags.isMessagesLoading||It.value||q.value)return;const L=D.value;!L||L.scrollTop<150&&(u.current_page+=1,await u.getMessages(u.roomId),Ee(()=>{const ne=L.scrollHeight-O.value;L.scrollTop=Z.value+ne,Ot()}))},Qt=L=>{!Ye.value||Ke.value||(re.value=L,ae.value||ct())};lt(()=>{u.isMobile&&(document.addEventListener("touchstart",Fn,{passive:!0}),document.addEventListener("touchmove",Pn,{passive:!0})),D.value&&D.value.addEventListener("scroll",Nn),Ot(),u.visitorId&&u.widgetId&&u.roomId&&(u.isSocketConnected||u.initialization()),Vt.on("fileDragged",Qt),u.isPageVisible=!0,Qe(),window.addEventListener("beforeunload",ot),window.addEventListener("pagehide",ot),window.addEventListener("visibilitychange",On),window.addEventListener("message",Sn)});const en=()=>{if(!D.value)return;const L=D.value;return L.scrollTop+L.clientHeight>=L.scrollHeight-1},di=async()=>{await Ee();const L=D.value;!L||(V.value=L.scrollTop+L.clientHeight0&&(u.messageNotViewed=0),Ot())},li=async()=>{!D.value||(await Ee(),setTimeout(()=>{const L=D.value;L.scrollTop=0},100))};return mi(()=>{en()&&u.messageNotViewed>0&&(u.messageNotViewed=0),u.newMessage&&!V.value&&(u.newMessage=!1,Qe()),Ke.value&&!I.value&&!u.isSurveySelected&&Qe(),u.newMessage&&!en()&&!V.value&&(u.newMessage=!1,Qe()),Vt.on("fileDragged",Qt)}),Ta(()=>{window.removeEventListener("message",Sn),Vt.off("fileDragged",Qt),window.removeEventListener("beforeunload",ot),window.removeEventListener("pagehide",ot),u.isSurveySelected=!1,u.isMobile&&(document.removeEventListener("touchstart",Fn),document.removeEventListener("touchmove",Pn)),D.value&&D.value.removeEventListener("scroll",Nn)}),ke(()=>[u.uiFlags.isLinkPreviewLoading,u.uiFlags.isMessagesLoading],async()=>{V.value||q.value||Qe()}),ke(S,()=>{clearTimeout(Y.value),Y.value=setTimeout(()=>{N.value&&ot()},4e3)}),ke(Dt,()=>{u.scrollToTop&&(li(),u.scrollToTop=!1)}),ke(()=>u.uiFlags.isTyping,L=>{V.value||L&&Qe()}),(L,ne)=>{var ye;return c(),g(me,null,[h(u).isAgentOnline||!h(u).isAgentOnline&&h(C)?(c(),g("div",dl,[le(U3)])):k("",!0),Wt.value?k("",!0):(c(),Ce(V3,{key:1})),_("div",{class:"close--btn",onClick:m},[le(Cn)]),_("div",{class:j(["relative flex items-center py-2 px-3",{"ch-header h-14":h(u).isAgentMessage||!h(u).isAgentOnline,"h-14":!h(u).isAgentOnline&&!h(C)}])},[_("div",ll,[h(u).uiFlags.isFetchingAgents?(c(),g("img",ul)):k("",!0),le(tl)])],2),_("div",{class:"body-section",onClick:Jt,ref_key:"chatView",ref:D,onScroll:di,style:oe([{overflow:`${z.value?"hidden":""}`}])},[qe.value=="chat"?(c(),g(me,{key:0},[Ze.value||we.value&&!Ne.value.length?(c(),g("div",cl,ne[3]||(ne[3]=[_("img",{src:Ht,alt:""},null,-1)]))):(c(),g(me,{key:1},[we.value?(c(),g("div",gl,ne[4]||(ne[4]=[_("img",{src:Ht,alt:"loader"},null,-1)]))):k("",!0),le(ol),_("div",hl,[Q.value?k("",!0):(c(),Ce(h(o),{key:0})),ut.value&&!rt.value&&!Ne.value.length?(c(),g("div",_l,[le(h(n),{onTextareaFocus:Je,onIsDropdownOpen:ne[0]||(ne[0]=$e=>z.value=$e)})])):k("",!0),(c(!0),g(me,null,We(Ne.value,($e,Me)=>(c(),g("div",{key:$e.id,ref_for:!0,ref_key:"chatView",ref:D,class:"chat-section"},[Oe.value?(c(),Ce(h(s),{key:0,message:$e,"active-message-id":ge.value,onToggleMenu:In,onReply:Tn,onScrollToParentMessage:Xt},null,8,["message","active-message-id"])):k("",!0),Me===0&&!$e.isTemp&&!$e.isMessageFailed&&h(u).hasVisibleField&&!rt.value||Me===0&&Yt.value?(c(),g("div",fl,[le(h(n),{onTextareaFocus:Je,onIsDropdownOpen:ne[1]||(ne[1]=Ie=>z.value=Ie)})])):k("",!0),Oe.value?k("",!0):(c(),Ce(h(s),{key:2,message:$e,"active-message-id":ge.value,onToggleMenu:In,onReply:Tn,onScrollToParentMessage:Xt},null,8,["message","active-message-id"])),Me===0&&ut.value&&rt.value&&_e.value?(c(),g("div",ml,[le(h(n),{onTextareaFocus:Je,onIsDropdownOpen:ne[2]||(ne[2]=Ie=>z.value=Ie)})])):k("",!0)]))),128)),Ke.value&&!Tt.value?(c(),g("div",pl,[_("p",null,H(Te.value.ended_conversation),1)])):k("",!0),Tt.value&&!h(u).hasSurveyResponseAsLastMessage?(c(),g("div",$l,[_("div",vl,[_("div",yl,[_("img",{src:h(T),alt:""},null,8,Cl)]),le(h(R))]),Ke.value?(c(),g("div",bl,[_("p",null,H(Te.value.ended_conversation),1)])):k("",!0)])):k("",!0),h(u).errorMessage.length?(c(),Ce(h(t),{key:4})):k("",!0),_("div",wl,[!xe.value&&(!ut.value&&Ne.value.length||ut.value&&Q.value)?(c(),Ce(h(l),{key:0})):k("",!0)]),st.value&&!F.value?(c(),g("button",{key:5,onClick:Qe,class:"scroll-to-bottom"},[_("span",Ll,H(st.value),1),ne[5]||(ne[5]=_("img",{src:Mn,alt:"scroll icon"},null,-1))])):k("",!0)]),Ye.value&&h(u).uiFlags.isTyping?(c(),Ce(h(d),{key:1})):k("",!0)],64))],64)):k("",!0)],36),Ye.value&&h(u).uiFlags.isTyping&&!F.value?(c(),Ce(h(p),{key:2})):k("",!0),_("div",{onClick:Jt,class:j(["footer-section",{rtl:h(u).isRtl}]),style:oe(Ye.value||!nt.value.length&&!pe.value&&!De.value?"background-color: #fff; padding: 0":"")},[P.value?(c(),Ce(h(y),{key:0,replyData:(ye=P.value)==null?void 0:ye.attributes,isRtl:b.value,onCancelReply:Dn},null,8,["replyData","isRtl"])):k("",!0),qe.value=="chat"&&Ye.value||!ze.value&&!nt.value.length&&!pe.value&&!De.value&&!Ze.value?(c(),g("div",kl,[!Ke.value&&!h(u).hasRequiredFieldAndAfterSendsFirstMessage&&!pt.value?(c(),g("div",{key:0,class:j(["chat-field--container",{"with-reply":P.value!==null,"active-chat-field-container":A.value}])},[_("textarea",{value:S.input,placeholder:Te.value.write_your_message,onInput:W,ref_key:"textarea",ref:x,class:j({rtl:b.value}),onKeydown:f,onPaste:ii,onKeyup:[Pe(si,["enter"]),Pe(An,["esc"]),ri],onBlur:Kt,maxlength:"25000",style:{"padding-top":"0"}},null,42,xl),_("div",{class:"ctas",style:oe({paddingBottom:`${M.value?"2.25rem":"inherit"}`})},[le(h(a),{onInsertEmoji:$,onClose:Je}),le(h(i),{onFileUploaded:E}),_("button",{type:"button",onClick:dt(ee,["prevent"]),class:j(["no--outline send--button",[S.input||vt.value?"active-send-button":""]])},[le(h(w),{isLoading:vt.value},null,8,["isLoading"]),vt.value?k("",!0):(c(),g("div",Ml,ne[6]||(ne[6]=[_("img",{src:A3},null,-1)])))],2)],4)],2)):se.value&&Ke.value||!yt.value&&!h(u).hasRequiredFieldAndAfterSendsFirstMessage?(c(),g("div",Sl,[_("button",{type:"button",class:j(["new-chat-btn active-start-chat",{rtl:h(ce)(h(u).isAgentOnline?Te.value.start_a_new_chat:Te.value.leave_a_message)}]),onClick:he},H(h(u).isAgentOnline?Te.value.start_a_new_chat:Te.value.leave_a_message),3)])):k("",!0)])):k("",!0),M.value?k("",!0):(c(),g("div",El,[_("a",{href:`https://chatway.app/?utm_source=powered&domain=${zt.value}`,target:"_blank",class:""},[le(ni)],8,Al)]))],6),ae.value?(c(),Ce(h(r),{key:3,closeModal:ae.value,alertModal:!0,"header-title":Te.value.are_you_sure_you_want_to_send_this_file,actionButtonTypeOneText:Te.value.cancel,actionButtonTypeTwoText:Te.value.yes,onActionButtonTypeOne:ct,onActionButtonTypeTwo:En,onCloseModal:ct,onKeyup:Pe(An,["esc"])},null,8,["closeModal","header-title","actionButtonTypeOneText","actionButtonTypeTwoText"])):k("",!0)],64)}}});const Dl=de(Tl,[["__scopeId","data-v-3bd83484"]]),Il={class:"chat--widget--container"},Ol={class:"widget--container"},Fl=be({__name:"HomeView",setup(e){const t=Ue(()=>je(()=>import("./ChatwayFileUploader.541a23f3.js"),["assets/ChatwayFileUploader.541a23f3.js","assets/ChatwayFileUploader.1d970771.css","assets/vue-chunks.9a4915e5.js","assets/library-chunks-1.ba23b3b2.js","assets/vue-3-linkify.8f393b2a.js","assets/socket-io.bbbf255d.js","assets/floating-vue.9132a23d.js"])),n=Se(),a=J(!1),i=J(!1),s=v(()=>n.nameField),r=v(()=>n.emailField),o=v(()=>n.phoneField),l=v(()=>{var S,D,X;return((S=s.value)==null?void 0:S.is_required)&&!n.isNameUpdated||((D=r.value)==null?void 0:D.is_required)&&!n.isEmailAdded||((X=o.value)==null?void 0:X.is_required)&&!n.isPhoneAdded}),d=v(()=>n.activeState),p=v(()=>{var S;return((S=n.widgetData)==null?void 0:S.hide_if_all_agents_offline)&&!(n!=null&&n.activeAgents.length)}),w=v(()=>n.isSingleView),R=S=>{var D;if(l.value||((D=S.dataTransfer)==null?void 0:D.types.includes("text/plain")))return!0;S.preventDefault(),a.value||(a.value=!0)},y=S=>{var X,N;if((X=S.dataTransfer)!=null&&X.types.includes("text/plain"))return!0;S.preventDefault();const D=(N=S.dataTransfer)==null?void 0:N.files;D&&D.length>0&&C(D[0])},C=S=>{Va(S)?(Vt.emit("fileDragged",S),setTimeout(()=>{T()},200)):(alert(n.widgetLang.please_select_valid_file_type),T())},T=()=>{a.value=!1},u=()=>{fe.dispatchEvent(ie.WIDGET_LOADED),window.addEventListener("message",function(S){S.data.type!=="CHATWAY"||!S.data.meta||n.getEventData(S.data)}),x()},x=()=>{const S=document.getElementsByClassName("chat--widget--container")[0].clientWidth,D=document.getElementsByClassName("chat--widget--container")[0].clientHeight;!D||!S||(i.value=D<601)};return ke(()=>p.value,()=>{p.value?fe.dispatchEvent(ie.WIDGET_DISABLE,!1):fe.dispatchEvent(ie.WIDGET_DISABLE,!0),setTimeout(()=>{x()},500)}),ke(()=>[n.conversations,n.widgetData,n.isSingleView,n.widgetData],()=>{var S;w.value?n.openConversation():n.activeState="home",(n.conversations.length>1||n.conversations.length===1&&n.conversations[0].attributes.is_ended||n.isFaqEnabled||n.isChannelEnabled)&&(n.activeState="home"),!w.value&&n.conversations.length&&!((S=n.widgetData)!=null&&S.is_open_home_on_first_click)&&n.openConversation()},{immediate:!0}),lt(()=>{u()}),(S,D)=>(c(),g("div",{style:{width:"100%",height:"100%"},onDragover:R,onDragleave:dt(T,["prevent"]),onDrop:y},[_("div",Il,[_("div",Ol,[d.value==="home"&&!w.value?(c(),Ce(E3,{key:0,isSmallHeight:i.value},null,8,["isSmallHeight"])):(c(),Ce(Dl,{key:1}))])]),le(Sa,{name:"modal-fade"},{default:Ma(()=>[a.value?(c(),Ce(h(t),{key:0,onStopDrag:T})):k("",!0)]),_:1})],32))}}),Pl={style:{width:"100%",height:"100%"}},Nl=be({__name:"App",setup(e){const t=Se();return lt(()=>{t.agentEventListener();const n=setInterval(()=>{var a;t.userId&&t.widgetId&&t.widgetData&&((a=t.widgetData)!=null&&a.token&&t.verifyContact(),clearInterval(n))},50)}),ke(()=>t.isSocketConnected,()=>{t.isSocketConnected&&t.userId&&t.initialization()},{deep:!0}),(n,a)=>(c(),g("div",Pl,[le(Fl)]))}});const ai=yi();ai.use(Ei);const Et=pi(Nl);Et.directive("click-outside",{beforeMount:(e,t)=>{e.clickOutsideEvent=n=>{e==n.target||e.contains(n.target)||t.value(n)},document.addEventListener("click",e.clickOutsideEvent)},unmounted:e=>{document.removeEventListener("click",e.clickOutsideEvent)}});Et.use(ai);Et.use(wi);Et.use(Ci);Et.mount("#app");export{Fe as C,ie as E,fe as W,de as _,je as a,qt as b,ce as c,Zl as d,Vt as e,Rt as f,on as g,gn as h,Va as i,ql as j,n0 as k,a0 as l,i0 as m,s0 as n,Gl as o,hn as p,Qa as q,o0 as r,Bt as s,Se as u};