const y={صفر:0,یک:1,دو:2,سه:3,چهار:4,پنج:5,شش:6,شیش:6,هفت:7,هشت:8,نه:9,ده:10,یازده:11,دوازده:12,سیزده:13,چهارده:14,پانزده:15,شانزده:16,هفده:17,هجده:18,نوزده:19,بیست:20,سی:30,چهل:40,پنجاه:50,شصت:60,هفتاد:70,هشتاد:80,نود:90},d={صد:100,یکصد:100,دویست:200,سیصد:300,چهارصد:400,پانصد:500,ششصد:600,هفتصد:700,هشتصد:800,نهصد:900},u={هزار:1e3,میلیون:1e6,بیلیون:1e9,میلیارد:1e9,تریلیون:1e12};[...Object.keys(y),...Object.keys(d),...Object.keys(u)];function g(p){if(!p)return;let t=p.toString();const c=t.length;if(t in{"0000000000":!0,1111111111:!0,2222222222:!0,3333333333:!0,4444444444:!0,5555555555:!0,6666666666:!0,7777777777:!0,8888888888:!0,9999999999:!0}||c<8||c>10||(t=("00"+t).substring(c+2-10),+t.substring(3,9)==0))return!1;const s=+t.substring(9);let o=0;for(let n=0;n<9;n++)o+=+t.substring(n,n+1)*(10-n);return o%=11,o<2&&s===o||o>=2&&s===11-o}const e="همراه اول",i="ایرانسل",a="رایتل",v={910:{base:"کشوری",province:[],type:["permanent","credit"],operator:e},914:{province:["آذربایجان شرقی","اردبیل","اصفهان"],base:"آذربایجان غربی",type:["permanent","credit"],operator:e},911:{province:["گلستان","گیلان"],base:"مازندران",type:["permanent","credit"],operator:e},912:{province:["البرز","زنجان","سمنان","قزوین","قم","برخی از شهرستان های استان مرکزی"],base:"تهران",type:["permanent"],operator:e},913:{province:["یزد","چهارمحال و بختیاری","کرمان"],base:"اصفهان",type:["permanent","credit"],operator:e},915:{province:["خراسان شمالی","خراسان جنوبی","سیستان و بلوچستان"],base:"خراسان رضوی",type:["permanent","credit"],operator:e},916:{province:["لرستان","فارس","اصفهان"],base:"خوزستان",type:["permanent","credit"],operator:e},917:{province:["بوشهر","کهگیلویه و بویر احمد","هرمزگان"],base:"فارس",type:["permanent","credit"],operator:e},918:{province:["کردستان","ایلام","همدان"],base:"کرمانشاه",type:["permanent","credit"],operator:e},919:{province:["البرز","سمنان","قم","قزوین","زنجان"],base:"تهران",type:["credit"],operator:e},990:{province:[],base:"کشوری",type:["credit"],operator:e},991:{province:[],base:"کشوری",type:["permanent","credit"],operator:e},992:{province:[],base:"کشوری",type:["credit"],operator:e},993:{province:[],base:"کشوری",type:["credit"],operator:e},994:{province:[],base:"کشوری",type:["credit"],operator:e},995:{province:[],base:"کشوری",type:["permanent","credit"],operator:e},996:{province:[],base:"کشوری",type:["permanent","credit"],operator:e}},m={932:{province:[],base:"کشوری",type:["credit"],operator:"تالیا"}},l={920:{province:[],base:"کشوری",type:["permanent"],operator:a},921:{province:[],base:"کشوری",type:["credit"],operator:a},922:{province:[],base:"کشوری",type:["credit"],operator:a},923:{province:[],base:"کشوری",type:["credit"],operator:a}},r={province:[],base:"کشوری",type:["permanent","credit"],operator:i},f={930:r,933:r,935:r,936:r,937:r,938:r,939:r,901:r,902:r,903:r,905:r,900:r,904:{province:[],base:"کشوری",model:"سیم‌کارت کودک",type:["credit"],operator:i},941:{province:[],base:"کشوری",model:"TD-LTE",type:["credit"],operator:i}},j={998:{province:[],base:"کشوری",type:["credit"],operator:"شاتل موبایل"}},k=[...Object.keys(v),...Object.keys(m),...Object.keys(l),...Object.keys(f),...Object.keys(j)],b=/^(\+98|98|0098|0)?9(\d{2})\d{7}$/;function O(p){const t=`${p}`.match(b);return t&&p.replace(t[1],"").slice(0,3)||""}function h(p){return b.test(p)&&k.includes(O(p))}export{h as N,g as j};
