1var Dt=t=>{throw TypeError(t)};var ot=(t,e,n)=>e.has(t)||Dt("Cannot "+n);var a=(t,e,n)=>(ot(t,e,"read from private field"),n?n.call(t):e.get(t)),v=(t,e,n)=>e.has(t)?Dt("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),f=(t,e,n,u)=>(ot(t,e,"write to private field"),u?u.call(t,n):e.set(t,n),n),S=(t,e,n)=>(ot(t,e,"access private method"),n);var Je=(t,e,n,u)=>({set _(r){f(t,e,r,n)},get _(){return a(t,e,u)}});import{g as Ln,r as w}from"../vendor-Cc9w-i99.js";var hn={exports:{}},it={};/** 2 * @license React 3 * react-jsx-runtime.production.js 4 * 5 * Copyright (c) Meta Platforms, Inc. and affiliates. 6 * 7 * This source code is licensed under the MIT license found in the 8 * LICENSE file in the root directory of this source tree. 9 */var Un=Symbol.for("react.transitional.element"),Nn=Symbol.for("react.fragment");function cn(t,e,n){var u=null;if(n!==void 0&&(u=""+n),e.key!==void 0&&(u=""+e.key),"key"in e){n={};for(var r in e)r!=="key"&&(n[r]=e[r])}else n=e;return e=n.ref,{$$typeof:Un,type:t,key:u,ref:e!==void 0?e:null,props:n}}it.Fragment=Nn;it.jsx=cn;it.jsxs=cn;hn.exports=it;var Qn=hn.exports,rr=(t,e=2)=>new Intl.NumberFormat("en-US",{minimumFractionDigits:0,maximumFractionDigits:e}).format(+t),sr=(t,e)=>{const r=1+(e==null||Number.isNaN(Number(e))?15:Number(e))/100;return(Number(t)||0)*r},ar=(t,e)=>!Number.isFinite(t)||!Number.isFinite(e)||t<=0||e<0||e>=t?"0":(Math.abs(t-e)/t*100).toFixed(0),ir=t=>{const e={"Ù ":"0","Ù¡":"1","Ù¢":"2","Ù£":"3","Ù¤":"4","Ù¥":"5","Ù¦":"6","Ù§":"7","Ù¨":"8","Ù©":"9","Ù«":".","â":"-"};return t.split("").map(n=>e[n]||n).join("")},or=async({id:t,target:e="body",type:n="script",snippet:u,url:r})=>new Promise((s,m)=>{if(document.getElementById(t))s(!0);else{let _;n!=="link"?(_=document.createElement(n),_.type="text/javascript",r?_.src=r:_.innerHTML=u||""):(_=document.createElement("link"),_.rel="stylesheet",r?_.href=r:_.innerHTML=u||""),_.id=t,_.onload=s,_.onerror=m,document[e].prepend(_)}}),lr=(t,e=2e3)=>{if(typeof window>"u")return;const n=()=>typeof window.requestIdleCallback=="function"?window.requestIdleCallback(()=>t(),{timeout:e}):window.setTimeout(t,1);document.readyState==="complete"?n():window.addEventListener("load",n,{once:!0})},hr=(t,e)=>{const n=document.getElementById(t);n&&n.scrollIntoView({behavior:"smooth",...e})},cr=()=>{window.scrollTo({top:0,behavior:"smooth"})},dr=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{const e=Math.random()*16|0;return(t=="x"?e:e&3|8).toString(16)}),mr=t=>typeof localStorage<"u"&&"localStorage"in window?localStorage.getItem(t):null,_r=(t,e)=>{typeof localStorage<"u"&&localStorage.setItem(t,e)},fr=t=>{typeof localStorage<"u"&&localStorage.removeItem(t)},br=({countryCode:t,locale:e})=>{try{return new Intl.DisplayNames([e],{type:"region"}).of(t.toUpperCase())||t}catch{return t}},pr=({currencyCode:t,locale:e})=>{try{return new Intl.DisplayNames([e],{type:"currency"}).of(t)||t}catch{return t}},gr=t=>!!(t&&/^[\u0621-\u064A\x20]+$/.test(t.trim())),yr=t=>{var e;return t&&((e=t==null?void 0:t.split("-"))==null?void 0:e[0])||"en"},vr=/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,wr=/^(?=.*[a-zA-Z])(?=.*\d).{8,}$/,Ar=/^(?=.*[a-zA-Z])/,Sr=/^(?=.*\d)/,dn={exports:{}},mn={exports:{}};(function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e={rotl:function(n,u){return n<<u|n>>>32-u},rotr:function(n,u){return n<<32-u|n>>>u},endian:function(n){if(n.constructor==Number)return e.rotl(n,8)&16711935|e.rotl(n,24)&4278255360;for(var u=0;u<n.length;u++)n[u]=e.endian(n[u]);return n},randomBytes:function(n){for(var u=[];n>0;n--)u.push(Math.floor(Math.random()*256));return u},bytesToWords:function(n){for(var u=[],r=0,s=0;r<n.length;r++,s+=8)u[s>>>5]|=n[r]<<24-s%32;return u},wordsToBytes:function(n){for(var u=[],r=0;r<n.length*32;r+=8)u.push(n[r>>>5]>>>24-r%32&255);return u},bytesToHex:function(n){for(var u=[],r=0;r<n.length;r++)u.push((n[r]>>>4).toString(16)),u.push((n[r]&15).toString(16));return u.join("")},hexToBytes:function(n){for(var u=[],r=0;r<n.length;r+=2)u.push(parseInt(n.substr(r,2),16));return u},bytesToBase64:function(n){for(var u=[],r=0;r<n.length;r+=3)for(var s=n[r]<<16|n[r+1]<<8|n[r+2],m=0;m<4;m++)r*8+m*6<=n.length*8?u.push(t.charAt(s>>>6*(3-m)&63)):u.push("=");return u.join("")},base64ToBytes:function(n){n=n.replace(/[^A-Z0-9+\/]/ig,"");for(var u=[],r=0,s=0;r<n.length;s=++r%4)s!=0&&u.push((t.indexOf(n.charAt(r-1))&Math.pow(2,-2*s+8)-1)<<s*2|t.indexOf(n.charAt(r))>>>6-s*2);return u}};mn.exports=e})();var Hn=mn.exports,ht={utf8:{stringToBytes:function(t){return ht.bin.stringToBytes(unescape(encodeURIComponent(t)))},bytesToString:function(t){return decodeURIComponent(escape(ht.bin.bytesToString(t)))}},bin:{stringToBytes:function(t){for(var e=[],n=0;n<t.length;n++)e.push(t.charCodeAt(n)&255);return e},bytesToString:function(t){for(var e=[],n=0;n<t.length;n++)e.push(String.fromCharCode(t[n]));return e.join("")}}},kt=ht;/*! 10 * Determine if an object is a Buffer 11 * 12 * @author Feross Aboukhadijeh <https://feross.org> 13 * @license MIT 14 */var $n=function(t){return t!=null&&(_n(t)||jn(t)||!!t._isBuffer)};function _n(t){return!!t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function jn(t){return typeof t.readFloatLE=="function"&&typeof t.slice=="function"&&_n(t.slice(0,0))}(function(){var t=Hn,e=kt.utf8,n=$n,u=kt.bin,r=function(s,m){s.constructor==String?m&&m.encoding==="binary"?s=u.stringToBytes(s):s=e.stringToBytes(s):n(s)?s=Array.prototype.slice.call(s,0):!Array.isArray(s)&&s.constructor!==Uint8Array&&(s=s.toString());for(var i=t.bytesToWords(s),_=s.length*8,h=1732584193,o=-271733879,l=-1732584194,c=271733878,d=0;d<i.length;d++)i[d]=(i[d]<<8|i[d]>>>24)&16711935|(i[d]<<24|i[d]>>>8)&4278255360;i[_>>>5]|=128<<_%32,i[(_+64>>>9<<4)+14]=_;for(var y=r._ff,g=r._gg,b=r._hh,A=r._ii,d=0;d<i.length;d+=16){var P=h,C=o,p=l,R=c;h=y(h,o,l,c,i[d+0],7,-680876936),c=y(c,h,o,l,i[d+1],12,-389564586),l=y(l,c,h,o,i[d+2],17,606105819),o=y(o,l,c,h,i[d+3],22,-1044525330),h=y(h,o,l,c,i[d+4],7,-176418897),c=y(c,h,o,l,i[d+5],12,1200080426),l=y(l,c,h,o,i[d+6],17,-1473231341),o=y(o,l,c,h,i[d+7],22,-45705983),h=y(h,o,l,c,i[d+8],7,1770035416),c=y(c,h,o,l,i[d+9],12,-1958414417),l=y(l,c,h,o,i[d+10],17,-42063),o=y(o,l,c,h,i[d+11],22,-1990404162),h=y(h,o,l,c,i[d+12],7,1804603682),c=y(c,h,o,l,i[d+13],12,-40341101),l=y(l,c,h,o,i[d+14],17,-1502002290),o=y(o,l,c,h,i[d+15],22,1236535329),h=g(h,o,l,c,i[d+1],5,-165796510),c=g(c,h,o,l,i[d+6],9,-1069501632),l=g(l,c,h,o,i[d+11],14,643717713),o=g(o,l,c,h,i[d+0],20,-373897302),h=g(h,o,l,c,i[d+5],5,-701558691),c=g(c,h,o,l,i[d+10],9,38016083),l=g(l,c,h,o,i[d+15],14,-660478335),o=g(o,l,c,h,i[d+4],20,-405537848),h=g(h,o,l,c,i[d+9],5,568446438),c=g(c,h,o,l,i[d+14],9,-1019803690),l=g(l,c,h,o,i[d+3],14,-187363961),o=g(o,l,c,h,i[d+8],20,1163531501),h=g(h,o,l,c,i[d+13],5,-1444681467),c=g(c,h,o,l,i[d+2],9,-51403784),l=g(l,c,h,o,i[d+7],14,1735328473),o=g(o,l,c,h,i[d+12],20,-1926607734),h=b(h,o,l,c,i[d+5],4,-378558),c=b(c,h,o,l,i[d+8],11,-2022574463),l=b(l,c,h,o,i[d+11],16,1839030562),o=b(o,l,c,h,i[d+14],23,-35309556),h=b(h,o,l,c,i[d+1],4,-1530992060),c=b(c,h,o,l,i[d+4],11,1272893353),l=b(l,c,h,o,i[d+7],16,-155497632),o=b(o,l,c,h,i[d+10],23,-1094730640),h=b(h,o,l,c,i[d+13],4,681279174),c=b(c,h,o,l,i[d+0],11,-358537222),l=b(l,c,h,o,i[d+3],16,-722521979),o=b(o,l,c,h,i[d+6],23,76029189),h=b(h,o,l,c,i[d+9],4,-640364487),c=b(c,h,o,l,i[d+12],11,-421815835),l=b(l,c,h,o,i[d+15],16,530742520),o=b(o,l,c,h,i[d+2],23,-995338651),h=A(h,o,l,c,i[d+0],6,-198630844),c=A(c,h,o,l,i[d+7],10,1126891415),l=A(l,c,h,o,i[d+14],15,-1416354905),o=A(o,l,c,h,i[d+5],21,-57434055),h=A(h,o,l,c,i[d+12],6,1700485571),c=A(c,h,o,l,i[d+3],10,-1894986606),l=A(l,c,h,o,i[d+10],15,-1051523),o=A(o,l,c,h,i[d+1],21,-2054922799),h=A(h,o,l,c,i[d+8],6,1873313359),c=A(c,h,o,l,i[d+15],10,-30611744),l=A(l,c,h,o,i[d+6],15,-1560198380),o=A(o,l,c,h,i[d+13],21,1309151649),h=A(h,o,l,c,i[d+4],6,-145523070),c=A(c,h,o,l,i[d+11],10,-1120210379),l=A(l,c,h,o,i[d+2],15,718787259),o=A(o,l,c,h,i[d+9],21,-343485551),h=h+P>>>0,o=o+C>>>0,l=l+p>>>0,c=c+R>>>0}return t.endian([h,o,l,c])};r._ff=function(s,m,i,_,h,o,l){var c=s+(m&i|~m&_)+(h>>>0)+l;return(c<<o|c>>>32-o)+m},r._gg=function(s,m,i,_,h,o,l){var c=s+(m&_|i&~_)+(h>>>0)+l;return(c<<o|c>>>32-o)+m},r._hh=function(s,m,i,_,h,o,l){var c=s+(m^i^_)+(h>>>0)+l;return(c<<o|c>>>32-o)+m},r._ii=function(s,m,i,_,h,o,l){var c=s+(i^(m|~_))+(h>>>0)+l;return(c<<o|c>>>32-o)+m},r._blocksize=16,r._digestsize=16,dn.exports=function(s,m){if(s==null)throw new Error("Illegal argument "+s);var i=t.wordsToBytes(r(s,m));return m&&m.asBytes?i:m&&m.asString?u.bytesToString(i):t.bytesToHex(i)}})();var Gn=dn.exports;const Kn=Ln(Gn);var Mr=t=>{const e=Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15);return`${Kn(t+e)}|${e}`},Cr=async t=>{if(!t||typeof crypto>"u")return"";const e=new TextEncoder().encode(t),n=await crypto.subtle.digest("SHA-256",e);return Array.from(new Uint8Array(n)).map(s=>s.toString(16).padStart(2,"0")).join("")},fn=t=>
14new Promise((e,n)=>{const u=new FileReader;u.readAsDataURL(t),u.onload=function(r){var s;const m=(s=r.target)==null?void 0:s.result;e(m)},u.onerror=n}),Vn=.95,Bt="image/jpeg",Fr=async(t,e,n)=>{if(!t.type.startsWith("image/"))return t;if(n)return qn(t,n);if(e>=t.size)return t;let r=await Lt(t);for(;r.size>e;)r=await Lt(r);return r},Wn=t=>`${t.replace(/\.[^./]+$/,"")}.jpg`,qn=async(t,{width:e,height:n})=>{const u=await fn(t),r=new Image;return r.src=u,new Promise((s,m)=>{r.onload=function(){const i=this,_=Math.min(i.width/e,i.height/n),h=e*_,o=n*_,l=document.createElement("canvas");l.width=e,l.height=n;const c=l.getContext("2d");c==null||c.drawImage(r,(i.width-h)/2,(i.height-o)/2,h,o,0,0,e,n),l.toBlob(d=>{if(!d)return m("Cannot create image from canvas");s(new File([d],Wn(t.name),{type:Bt}))},Bt,Vn)}})},Lt=async t=>{const e=await fn(t),n=new Image;return n.src=e,new Promise((u,r)=>{n.onload=function(){const s=this,m=s.width,i=s.height,_=.9,h=m*_,o=i*_,l=document.createElement("canvas");l.width=h,l.height=o;const c=l.getContext("2d");c==null||c.drawImage(n,0,0,h,o),l.toBlob(async d=>{if(!d)return r("Cannot create image from canvas");const y=new File([d],t.name,{type:t.type});u(y)},t.type)}})},Pr=t=>t<1e6?`${(t/1e3).toFixed(1)} KB`:`${(t/1e6).toFixed(1)} MB`,Ut={woff2:{format:"woff2",mime:"font/woff2"},woff:{format:"woff",mime:"font/woff"},opentype:{format:"opentype",mime:"font/otf"},otf:{format:"opentype",mime:"font/otf"},ttf:{format:"truetype",mime:"font/ttf"},truetype:{format:"truetype",mime:"font/ttf"},sfnt:{format:"truetype",mime:"font/ttf"}},Pt=(t,e)=>{if(t){for(const[n,u]of Object.entries(Ut))if(t.includes(n))return u}if(e){const n=e.split("?")[0].toLowerCase();for(const[u,r]of Object.entries(Ut))if(n.endsWith(`.${u}`))return r}return null},Nt=(t,e)=>t!=null&&t.startsWith("font/")||t==="application/x-font-ttf"||t==="application/x-font-opentype"?!0:!!Pt(void 0,e),Qt=(t,e)=>{var n;return((n=Pt(t,e))==null?void 0:n.format)??null},Yn=(t,e)=>{var n;return((n=Pt(t,e))==null?void 0:n.mime)??"font/ttf"},lt="sans-serif",Tr=t=>{const{font:e,bodyFont:n,scope:u,headingSelector:r}=t,s=e!=null&&e.url&&Nt(e.contentType,e.url)?e:null,m=n!=null&&n.url&&Nt(n.contentType,n.url)?n:null,i={fontFaceCss:"",fontFamily:void 0,displayFontFamily:void 0,bodyFontFamily:void 0,fontsToPreload:[]};if(!s&&!m)return i;const _=`${u}-display-font`,h=`${u}-body-font`,o=Qt(s==null?void 0:s.contentType,s==null?void 0:s.url),l=Qt(m==null?void 0:m.contentType,m==null?void 0:m.url),c=s&&o?`@font-face { 15 font-family: '${_}'; 16 src: url('${s.url}') format('${o}'); 17 font-display: swap; 18 }`:"",d=m&&l?`@font-face { 19 font-family: '${h}'; 20 src: url('${m.url}') format('${l}'); 21 font-display: swap; 22 }`:"",y=s&&o&&r?`${r} h1, 23 ${r} h2, 24 ${r} h3, 25 ${r} h4, 26 ${r} h5, 27 ${r} h6 { 28 font-family: '${_}', ${lt}; 29 }`:"",g=s&&o?`'${_}', ${lt}`:void 0,b=m&&l?`'${h}', ${lt}`:void 0,A=b??g,P=new Set,C=[];for(const p of[s,m])p&&!P.has(p.url)&&(P.add(p.url),C.push({url:p.url,contentType:Yn(p.contentType,p.url)}));return{fontFaceCss:[c,d,y].filter(Boolean).join(` 30`),fontFamily:A,displayFontFamily:g,bodyFontFamily:b,fontsToPreload:C}},bn=t=>{if(typeof t!="string")return"";let e=t.replace(" ","T").replace(/\//g,"-");const n=e==null?void 0:e.split("T")[0],[u,r,s]=(n==null?void 0:n.split("-"))||"";return u.length<=2&&(e=`${s}-${r}-${u}`),e},$=(t,e)=>{let n=(t==null?void 0:t.replace(" ","T"))||Date.now();typeof n=="string"&&(n=bn(n));try{const u=zn(n,"en",{...e,hour12:!1,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"});return new Date(`${u.date}T${u.time}`)}catch{return new Date}},zn=(t,e,n)=>{let u=typeof t=="string"?t==null?void 0:t.replace(" ","T"):t||Date.now();typeof u=="string"&&(u=bn(u));const s={numberingSystem:"latn",timeZone:typeof t=="string"&&t.length<=10?"UTC":"Asia/Riyadh",hourCycle:"h24",hour12:!0,year:"numeric",month:"long",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"},m=new Intl.DateTimeFormat(e,{...s,...n}).formatToParts(new Date(u));let i="",_="",h="",o="",l="",c="",d="",y="";for(const b of m)switch(b.type){case"year":i=b.value;break;case"month":_=b.value;break;case"day":h=b.value;break;case"hour":o=b.value;break;case"minute":l=b.value;break;case"second":c=b.value;break;case"dayPeriod":d=b.value;break;case"weekday":y=b.value;break}const g=`${o}:${l}${d?" "+d:""}`;return{year:i,month:_,day:h,weekday:y,date:`${i}-${_}-${h}`,hour:o,minute:l,second:c,time:g}},xr=t=>{const e=typeof t=="string"?$(t):t;return new Date(e.getFullYear(),e.getMonth(),1,0,0,0,0)},Er=t=>{const e=typeof t=="string"?$(t):t;return new Date(e.getFullYear(),e.getMonth()+1,0,23,59,59,999)},Rr=(t,e,n)=>{const r={numberingSystem:"latn",timeZone:typeof t=="string"&&t.length<=10?"UTC":"Asia/Riyadh",hourCycle:"h24",hour12:!0},s=typeof t=="string"?$(t,{timeZone:void 0}):typeof t=="number"?t*1e3:t;return new Intl.DateTimeFormat(e,{...r,...n}).format(s)};function Or(t,e){const n=Math.min(Math.max(0,0),6),u=typeof t=="string"?$(t):t,r=u.getDay(),s=(r<n?7:0)+r-n;return u.setDate(u.getDate()-s),u.setHours(0,0,0,0),u}function Ir(t,e){const n=Math.min(Math.max(0,0),6),u=typeof t=="string"?$(t):t,r=u.getDay(),s=6-((r<n?7:0)+r-n);return u.setDate(u.getDate()+s),u.setHours(23,59,59,999),u}var Dr=[{name:{en:"Saudi Arabia",ar:"Ø§ÙØ³Ø¹ÙØ¯ÙØ©"}
30,code:"SA",dial_code:"966",mobile_starts_with:["5"],phone_number_lengths:[9]},{name:{en:"United Arab Emirates",ar:"Ø§ÙØ¥Ù
ارات Ø§ÙØ¹Ø±Ø¨ÙØ© اÙÙ
ØªØØ¯Ø©"},code:"AE",dial_code:"971",mobile_starts_with:["5"],phone_number_lengths:[9]},{name:{en:"Kuwait",ar:"اÙÙÙÙØª"},code:"KW",dial_code:"965",mobile_starts_with:["4","5","6","9"],phone_number_lengths:[8]},{name:{en:"Qatar",ar:"ÙØ·Ø±"},code:"QA",dial_code:"974",mobile_starts_with:["3","5","6","7"],phone_number_lengths:[8]},{name:{en:"Bahrain",ar:"Ø§ÙØ¨ØØ±ÙÙ"},code:"BH",dial_code:"973",mobile_starts_with:["3","6","7"],phone_number_lengths:[8]},{name:{en:"Oman",ar:"عÙ
اÙ"},code:"OM",dial_code:"968",mobile_starts_with:["9"],phone_number_lengths:[8]},{name:{en:"Egypt",ar:"Ù
صر"},code:"EG",dial_code:"20",mobile_starts_with:["1"],phone_number_lengths:[8,10]},{name:{en:"Jordan",ar:"Ø§ÙØ£Ø±Ø¯Ù"},code:"JO",dial_code:"962",mobile_starts_with:["7"],phone_number_lengths:[9]},{name:{en:"Lebanon",ar:"ÙØ¨ÙاÙ"},code:"LB",dial_code:"961",mobile_starts_with:["3","7","8"],phone_number_lengths:[7,8]},{name:{en:"Syrian Arab Republic",ar:"Ø³ÙØ±Ùا"},code:"SY",dial_code:"963",mobile_starts_with:["9"],phone_number_lengths:[9]},{name:{en:"Iraq",ar:"Ø§ÙØ¹Ø±Ø§Ù"},code:"IQ",dial_code:"964",mobile_starts_with:["7"],phone_number_lengths:[10]},{name:{en:"Palestine",ar:"ÙÙØ³Ø·ÙÙ"},code:"PS",dial_code:"970",mobile_starts_with:["5"],phone_number_lengths:[9]},{name:{en:"Yemen",ar:"اÙÙÙ
Ù"},code:"YE",dial_code:"967",mobile_starts_with:["7"],phone_number_lengths:[9]},{name:{en:"Sudan",ar:"Ø§ÙØ³ÙداÙ"},code:"SD",dial_code:"249",mobile_starts_with:["9"],phone_number_lengths:[9]},{name:{en:"Morocco",ar:"اÙÙ
غرب"},code:"MA",dial_code:"212",mobile_starts_with:["6","7"],phone_number_lengths:[9]},{name:{en:"Algeria",ar:"Ø§ÙØ¬Ø²Ø§Ø¦Ø±"},code:"DZ",dial_code:"213",mobile_starts_with:["5","6","7"],phone_number_lengths:[9]},{name:{en:"Tunisia",ar:"تÙÙØ³"},code:"TN",dial_code:"216",mobile_starts_with:["2","4","5","9"],phone_number_lengths:[8]},{name:{en:"Libyan Arab Jamahiriya",ar:"ÙÙØ¨Ùا"},code:"LY",dial_code:"218",mobile_starts_with:["9"],phone_number_lengths:[9]},{name:{en:"Afghanistan",ar:"Ø£ÙØºØ§ÙستاÙ"},code:"AF",dial_code:"93",mobile_starts_with:["7"],phone_number_lengths:[9]},{name:{en:"Albania",ar:"Ø£ÙØ¨Ø§ÙÙØ§"},code:"AL",dial_code:"355",mobile_starts_with:["6"],phone_number_lengths:[9]},{name:{en:"American Samoa",ar:"ساÙ
ÙØ§ Ø§ÙØ£Ù
رÙÙÙØ©"},code:"AS",dial_code:"1684",mobile_starts_with:["684733","684258"],phone_number_lengths:[10]},{name:{en:"Andorra",ar:"Ø£ÙØ¯Ùرا"},code:"AD",dial_code:"376",mobile_starts_with:["3","4","6"],phone_number_lengths:[6]},{name:{en:"Angola",ar:"Ø£ÙØºÙÙØ§"},code:"AO",dial_code:"244",mobile_starts_with:["9"],phone_number_lengths:[9]},{name:{en:"Anguilla",ar:"Ø£ÙØºÙÙÙØ§"},code:"AI",dial_code:"1264",mobile_starts_with:["2645","2647"],phone_number_lengths:[10]},{name:{en:"Antigua and Barbuda",ar:"Ø£ÙØªÙØºÙØ§ ÙØ¨Ø§Ø±Ø¨Ùدا"},code:"AG",dial_code:"1268",mobile_starts_with:["2687"],phone_number_lengths:[10]},{name:{en:"Argentina",ar:"Ø§ÙØ£Ø±Ø¬ÙتÙÙ"},code:"AR",dial_code:"54",mobile_starts_with:["1","2","3"],phone_number_lengths:[8,9,10,11,12]},{name:{en:"Armenia",ar:"أرÙ
ÙÙÙØ§"},code:"AM",dial_code:"374",mobile_starts_with:["3","4","5","7","9"],phone_number_lengths:[8]},{name:{en:"Aruba",ar:"Ø£Ø±ÙØ¨Ø§"},code:"AW",dial_code:"297",mobile_starts_with:["5","6","7","9"],phone_number_lengths:[7]},{name:{en:"Australia",ar:"أستراÙÙØ§"},code:"AU",dial_code:"61",mobile_starts_with:["4"],phone_number_lengths:[9]},{name:{en:"Austria",ar:"اÙÙÙ
سا"},code:"AT",dial_code:"43",mobile_starts_with:["6"],phone_number_lengths:[10,11,12,13,14]},{name:{en:"Azerbaijan",ar:"Ø£Ø°Ø±Ø¨ÙØ¬Ø§Ù"},code:"AZ",dial_code:"994",mobile_starts_with:["4","5","6","7"],phone_number_lengths:[9]},{name:{en:"Bahamas",ar:"Ø¨Ø§ÙØ§Ù
اس"},code:"BS",dial_code:"1242",mobile_starts_with:["242"],phone_number_lengths:[10]},{name:{en:"Bangladesh",ar:"Ø¨ÙØºÙØ§Ø¯ÙØ´"},code:"BD",dial_code:"880",mobile_starts_with:["1"],phone_number_lengths:[8,9,10]},{name:{en:"Barbados",ar:"Ø¨Ø§Ø±Ø¨Ø§Ø¯ÙØ³"},code:"BB",dial_code:"1246",mobile_starts_with:["246"],phone_number_lengths:[10]},{name:{en:"Belarus",ar:"بÙÙØ§Ø±Ùس"},code:"BY",dial_code:"375",mobile_starts_with:["25","29","33","44"],phone_number_lengths:[9]},{name:{en:"Belgium",ar:"Ø¨ÙØ¬ÙÙØ§"},code:"BE",dial_code:"32",mobile_starts_with:["4","3"],phone_number_lengths:[8,9]},{name:{en:"Belize",ar:"بÙÙØ²"},code:"BZ",dial_code:"501",mobile_starts_with:["6"],phone_number_lengths:[7]},{name:{en:"Benin",ar:"بÙÙÙ"},code:"BJ",dial_code:"229",mobile_starts_with:["4","6","9"],phone_number_lengths:[8]},{name:{en:"Bermuda",ar:"برÙ
ÙØ¯Ø§"},code:"BM",dial_code:"1441",mobile_starts_with:["4413","4415","4417"],phone_number_lengths:[10]},{name:{en:"Bhutan",ar:"Ø¨ÙØªØ§Ù"},code:"BT",dial_code:"975",mobile_starts_with:["17"],phone_number_lengths:[8]},{name:{en:"Bolivia, Plurinational State of bolivia",ar:"بÙÙÙÙÙØ§"},code:"BO",dial_code:"591",mobile_starts_with:["6","7"],phone_number_lengths:[8]},{name:{en:"Bosnia and Herzegovina",ar:"Ø§ÙØ¨ÙØ³ÙØ© ÙØ§ÙÙØ±Ø³Ù"}
30,code:"BA",dial_code:"387",mobile_starts_with:["6"],phone_number_lengths:[8]},{name:{en:"Botswana",ar:"Ø¨ÙØªØ³ÙØ§ÙØ§"},code:"BW",dial_code:"267",mobile_starts_with:["71","72","73","74","75","76"],phone_number_lengths:[8]},{name:{en:"Brazil",ar:"Ø§ÙØ¨Ø±Ø§Ø²ÙÙ"},code:"BR",dial_code:"55",mobile_starts_with:["119","129","139","149","159","169","179","189","199","219","229","249","279","289","319","329","339","349","359","379","389","419","429","439","449","459","469","479","489","499","519","539","549","559","619","629","639","649","659","669","679","689","699","719","739","749","759","779","799","819","829","839","849","859","869","879","889","899","919","929","939","949","959","969","979","989","999"],phone_number_lengths:[10,11]},{name:{en:"Brunei Darussalam",ar:"برÙÙØ§Ù"},code:"BN",dial_code:"673",mobile_starts_with:["7","8"],phone_number_lengths:[7]},{name:{en:"Bulgaria",ar:"Ø¨ÙØºØ§Ø±Ùا"},code:"BG",dial_code:"359",mobile_starts_with:["87","88","89","98","99","43"],phone_number_lengths:[8,9]},{name:{en:"Burkina Faso",ar:"Ø¨ÙØ±ÙÙÙØ§ ÙØ§Ø³Ù"},code:"BF",dial_code:"226",mobile_starts_with:["6","7"],phone_number_lengths:[8]},{name:{en:"Burundi",ar:"Ø¨ÙØ±ÙÙØ¯Ù"},code:"BI",dial_code:"257",mobile_starts_with:["7","29"],phone_number_lengths:[8]},{name:{en:"Cambodia",ar:"ÙÙ
Ø¨ÙØ¯Ùا"},code:"KH",dial_code:"855",mobile_starts_with:["1","6","7","8","9"],phone_number_lengths:[8,9]},{name:{en:"Cameroon",ar:"اÙÙØ§Ù
ÙØ±ÙÙ"},code:"CM",dial_code:"237",mobile_starts_with:["6"],phone_number_lengths:[9]},{name:{en:"Canada",ar:"ÙÙØ¯Ø§"},code:"CA",dial_code:"1",mobile_starts_with:["204","226","236","249","250","289","306","343","365","367","403","416","418","431","437","438","450","506","514","519","548","579","581","587","600","604","613","639","647","672","705","709","778","780","807","819","825","867","873","902","905"],phone_number_lengths:[10]},{name:{en:"Cape Verde",ar:"Ø§ÙØ±Ø£Ø³ Ø§ÙØ£Ø®Ø¶Ø±"},code:"CV",dial_code:"238",mobile_starts_with:["5","9"],phone_number_lengths:[7]},{name:{en:"Cayman Islands",ar:"جزر ÙØ§ÙÙ
اÙ"},code:"KY",dial_code:"345",mobile_starts_with:["345"],phone_number_lengths:[10]},{name:{en:"Central African Republic",ar:"جÙ
ÙÙØ±ÙØ© Ø£ÙØ±ÙÙÙØ§ اÙÙØ³Ø·Ù"},code:"CF",dial_code:"236",mobile_starts_with:["7"],phone_number_lengths:[8]},{name:{en:"Chad",ar:"تشاد"},code:"TD",dial_code:"235",mobile_starts_with:["6","7","9"],phone_number_lengths:[8]},{name:{en:"Chile",ar:"تشÙÙÙ"},code:"CL",dial_code:"56",mobile_starts_with:["9"],phone_number_lengths:[9]},{name:{en:"China",ar:"Ø§ÙØµÙÙ"},code:"CN",dial_code:"86",mobile_starts_with:["13","14","15","17","18","19","16"],phone_number_lengths:[11]},{name:{en:"Colombia",ar:"ÙÙÙÙÙ
Ø¨ÙØ§"},code:"CO",dial_code:"57",mobile_starts_with:["3"],phone_number_lengths:[10]},{name:{en:"Comoros",ar:"جزر اÙÙÙ
ر"},code:"KM",dial_code:"269",mobile_starts_with:["3","76"],phone_number_lengths:[7]},{name:{en:"Congo",ar:"جÙ
ÙÙØ±ÙØ© اÙÙÙÙØºÙ"},code:"CG",dial_code:"242",mobile_starts_with:["0"],phone_number_lengths:[9]},{name:{en:"Congo, The Democratic Republic of the Congo",ar:"جÙ
ÙÙØ±ÙØ© اÙÙÙÙØºÙ Ø§ÙØ¯ÙÙ
ÙØ±Ø§Ø·ÙØ©"},code:"CD",dial_code:"243",mobile_starts_with:["8","9"],phone_number_lengths:[9]},{name:{en:"Cook Islands",ar:"جزر ÙÙÙ"},code:"CK",dial_code:"682",mobile_starts_with:["5","7"],phone_number_lengths:[5]},{name:{en:"Costa Rica",ar:"ÙÙØ³ØªØ§Ø±ÙÙØ§"},code:"CR",dial_code:"506",mobile_starts_with:["5","6","7","8"],phone_number_lengths:[8]},{name:{en:"Cote d'Ivoire",ar:"ساØÙ Ø§ÙØ¹Ø§Ø¬"},code:"CI",dial_code:"225",mobile_starts_with:["0","4","5","6","7","8"],phone_number_lengths:[9,10]},{name:{en:"Croatia",ar:"ÙØ±ÙØ§ØªÙØ§"},code:"HR",dial_code:"385",mobile_starts_with:["9"],phone_number_lengths:[8,9]},{name:{en:"Cuba",ar:"ÙÙØ¨Ø§"},code:"CU",dial_code:"53",mobile_starts_with:["5"],phone_number_lengths:[8]},{name:{en:"Cyprus",ar:"ÙØ¨Ø±Øµ"},code:"CY",dial_code:"357",mobile_starts_with:["9"],phone_number_lengths:[8]},{name:{en:"Czech Republic",ar:"جÙ
ÙÙØ±ÙØ© Ø§ÙØªØ´ÙÙ"},code:"CZ",dial_code:"420",mobile_starts_with:["6","7"],phone_number_lengths:[9]},{name:{en:"Denmark",ar:"Ø§ÙØ¯ÙÙ
ارÙ"},code:"DK",dial_code:"45",mobile_starts_with:["2","30","31","40","41","42","50","51","52","53","60","61","71","81","91","92","93"],phone_number_lengths:[8]},{name:{en:"Djibouti",ar:"Ø¬ÙØ¨ÙتÙ"},code:"DJ",dial_code:"253",mobile_starts_with:["77"],phone_number_lengths:[8]},{name:{en:"Dominica",ar:"دÙÙ
ÙÙÙÙØ§"},code:"DM",dial_code:"1767",mobile_starts_with:["767"],phone_number_lengths:[10]},{name:{en:"Dominican Republic",ar:"جÙ
ÙÙØ±ÙØ© Ø§ÙØ¯ÙÙ
ÙÙÙÙØ§Ù"},code:"DO",dial_code:"1849",mobile_starts_with:["809","829","849"],phone_number_lengths:[10]},{name:{en:"Ecuador",ar:"Ø§ÙØ¥ÙÙØ§Ø¯Ùر"},code:"EC",dial_code:"593",mobile_starts_with:["9"],phone_number_lengths:[9]},{name:{en:"El Salvador",ar:"Ø§ÙØ³ÙÙØ§Ø¯Ùر"},code:"SV",dial_code:"503",mobile_starts_with:["7"],phone_number_lengths:[8]},{name:{en:"Equatorial Guinea",ar:"غÙÙÙØ§ Ø§ÙØ§Ø³ØªÙØ§Ø¦ÙØ©"}
30,code:"GQ",dial_code:"240",mobile_starts_with:["222","551"],phone_number_lengths:[9]},{name:{en:"Eritrea",ar:"Ø¥Ø±ÙØªØ±Ùا"},code:"ER",dial_code:"291",mobile_starts_with:["1","7","8"],phone_number_lengths:[7]},{name:{en:"Estonia",ar:"إستÙÙÙØ§"},code:"EE",dial_code:"372",mobile_starts_with:["5","81","82","83"],phone_number_lengths:[7,8]},{name:{en:"Ethiopia",ar:"إثÙÙØ¨Ùا"},code:"ET",dial_code:"251",mobile_starts_with:["9"],phone_number_lengths:[9]},{name:{en:"Falkland Islands (Malvinas)",ar:"جزر ÙÙÙÙØ§Ùد"},code:"FK",dial_code:"500",mobile_starts_with:["5","6"],phone_number_lengths:[5]},{name:{en:"Faroe Islands",ar:"جزر ÙØ§Ø±Ù"},code:"FO",dial_code:"298",mobile_starts_with:[],phone_number_lengths:[6]},{name:{en:"Fiji",ar:"ÙÙØ¬Ù"},code:"FJ",dial_code:"679",mobile_starts_with:["2","7","8","9"],phone_number_lengths:[7]},{name:{en:"Finland",ar:"ÙÙÙÙØ¯Ø§"},code:"FI",dial_code:"358",mobile_starts_with:["4","5"],phone_number_lengths:[9,10]},{name:{en:"France",ar:"ÙØ±Ùسا"},code:"FR",dial_code:"33",mobile_starts_with:["6","7"],phone_number_lengths:[9]},{name:{en:"French Guiana",ar:"غÙÙØ§Ùا اÙÙØ±ÙØ³ÙØ©"},code:"GF",dial_code:"594",mobile_starts_with:["694"],phone_number_lengths:[9]},{name:{en:"French Polynesia",ar:"بÙÙÙÙØ²Ùا اÙÙØ±ÙØ³ÙØ©"},code:"PF",dial_code:"689",mobile_starts_with:["8"],phone_number_lengths:[8]},{name:{en:"Gabon",ar:"Ø§ÙØºØ§Ø¨ÙÙ"},code:"GA",dial_code:"241",mobile_starts_with:["2","3","4","5","6","7"],phone_number_lengths:[7]},{name:{en:"Gambia",ar:"غاÙ
Ø¨ÙØ§"},code:"GM",dial_code:"220",mobile_starts_with:["7","9"],phone_number_lengths:[7]},{name:{en:"Georgia",ar:"Ø¬ÙØ±Ø¬Ùا"},code:"GE",dial_code:"995",mobile_starts_with:["5","7"],phone_number_lengths:[9]},{name:{en:"Germany",ar:"Ø£ÙÙ
اÙÙØ§"},code:"DE",dial_code:"49",mobile_starts_with:["15","16","17"],phone_number_lengths:[10,11]},{name:{en:"Ghana",ar:"ØºØ§ÙØ§"},code:"GH",dial_code:"233",mobile_starts_with:["2","5"],phone_number_lengths:[9]},{name:{en:"Gibraltar",ar:"جب٠طارÙ"},code:"GI",dial_code:"350",mobile_starts_with:["5"],phone_number_lengths:[8]},{name:{en:"Greece",ar:"اÙÙÙÙØ§Ù"},code:"GR",dial_code:"30",mobile_starts_with:["6"],phone_number_lengths:[10]},{name:{en:"Greenland",ar:"جرÙÙÙØ§Ùد"},code:"GL",dial_code:"299",mobile_starts_with:["2","4","5"],phone_number_lengths:[6]},{name:{en:"Grenada",ar:"غرÙÙØ§Ø¯Ø§"},code:"GD",dial_code:"1473",mobile_starts_with:["473"],phone_number_lengths:[10]},{name:{en:"Guam",ar:"ØºÙØ§Ù
"},code:"GU",dial_code:"1671",mobile_starts_with:["671"],phone_number_lengths:[10]},{name:{en:"Guatemala",ar:"ØºÙØ§ØªÙÙ
Ø§ÙØ§"},code:"GT",dial_code:"502",mobile_starts_with:["3","4","5"],phone_number_lengths:[8]},{name:{en:"Guinea",ar:"غÙÙÙØ§"},code:"GN",dial_code:"224",mobile_starts_with:["6"],phone_number_lengths:[9]},{name:{en:"Guinea-Bissau",ar:"غÙÙÙØ§ Ø¨ÙØ³Ø§Ù"},code:"GW",dial_code:"245",mobile_starts_with:["5","6","7"],phone_number_lengths:[7]},{name:{en:"Guyana",ar:"ØºÙØ§Ùا"},code:"GY",dial_code:"592",mobile_starts_with:["6"],phone_number_lengths:[7]},{name:{en:"Haiti",ar:"ÙØ§ÙتÙ"},code:"HT",dial_code:"509",mobile_starts_with:["3","4"],phone_number_lengths:[8]},{name:{en:"Holy See (Vatican City State)",ar:"اÙÙØ§ØªÙÙØ§Ù"},code:"VA",dial_code:"379"},{name:{en:"Honduras",ar:"ÙÙØ¯Ùراس"},code:"HN",dial_code:"504",mobile_starts_with:["3","7","8","9"],phone_number_lengths:[8]},{name:{en:"Hong Kong",ar:"ÙÙÙØº ÙÙÙØº"},code:"HK",dial_code:"852",mobile_starts_with:["4","5","6","70","71","72","73","81","82","83","84","85","86","87","88","89","9"],phone_number_lengths:[8]},{name:{en:"Hungary",ar:"اÙÙ
جر"},code:"HU",dial_code:"36",mobile_starts_with:["20","30","31","50","70"],phone_number_lengths:[9]},{name:{en:"Iceland",ar:"Ø¢ÙØ³ÙÙØ¯Ø§"},code:"IS",dial_code:"354",mobile_starts_with:["6","7","8"],phone_number_lengths:[7]},{name:{en:"India",ar:"اÙÙÙØ¯"},code:"IN",dial_code:"91",mobile_starts_with:["6","7","8","9"],phone_number_lengths:[10]},{name:{en:"Indonesia",ar:"Ø¥ÙØ¯ÙÙÙØ³Ùا"},code:"ID",dial_code:"62",mobile_starts_with:["8"],phone_number_lengths:[9,10,11,12]}
30,{name:{en:"Iran, Islamic Republic of Persian Gulf",ar:"Ø¥ÙØ±Ø§Ù"},code:"IR",dial_code:"98",mobile_starts_with:["9"],phone_number_lengths:[10]},{name:{en:"Ireland",ar:"Ø£ÙØ±ÙÙØ¯Ø§"},code:"IE",dial_code:"353",mobile_starts_with:["82","83","84","85","86","87","88","89"],phone_number_lengths:[9]},{name:{en:"Israel",ar:"إسرائÙÙ"},code:"IL",dial_code:"972",mobile_starts_with:["5"],phone_number_lengths:[9]},{name:{en:"Italy",ar:"Ø¥ÙØ·Ø§ÙÙØ§"},code:"IT",dial_code:"39",mobile_starts_with:["3"],phone_number_lengths:[9,10]},{name:{en:"Jamaica",ar:"جاÙ
اÙÙØ§"},code:"JM",dial_code:"1876",mobile_starts_with:["876"],phone_number_lengths:[10]},{name:{en:"Japan",ar:"اÙÙØ§Ø¨Ø§Ù"},code:"JP",dial_code:"81",mobile_starts_with:["70","80","90"],phone_number_lengths:[10]},{name:{en:"Kazakhstan",ar:"ÙØ§Ø²Ø§Ø®Ø³ØªØ§Ù"},code:"KZ",dial_code:"7",mobile_starts_with:["70","74","77"],phone_number_lengths:[10]},{name:{en:"Kenya",ar:"ÙÙÙÙØ§"},code:"KE",dial_code:"254",mobile_starts_with:["7","1"],phone_number_lengths:[9]},{name:{en:"Kiribati",ar:"ÙÙØ±ÙباتÙ"},code:"KI",dial_code:"686",mobile_starts_with:["9","30"],phone_number_lengths:[5]},{name:{en:"Korea, Democratic People's Republic of Korea",ar:"ÙÙØ±Ùا Ø§ÙØ´Ù
اÙÙØ©"},code:"KP",dial_code:"850"},{name:{en:"Korea, Republic of South Korea",ar:"ÙÙØ±Ùا Ø§ÙØ¬ÙÙØ¨ÙØ©"},code:"KR",dial_code:"82",mobile_starts_with:["1"],phone_number_lengths:[9,10]},{name:{en:"Kosovo",ar:"ÙÙØ³ÙÙÙ"},code:"XK",dial_code:"383",mobile_starts_with:["4","3"],phone_number_lengths:[8]},{name:{en:"Kyrgyzstan",ar:"ÙÙØ±ØºÙزستاÙ"},code:"KG",dial_code:"996",mobile_starts_with:["5","7","8","9"],phone_number_lengths:[9]},{name:{en:"Laos",ar:"ÙØ§Ùس"},code:"LA",dial_code:"856",mobile_starts_with:["20"],phone_number_lengths:[10]},{name:{en:"Latvia",ar:"ÙØ§ØªÙÙØ§"},code:"LV",dial_code:"371",mobile_starts_with:["2"],phone_number_lengths:[8]},{name:{en:"Lesotho",ar:"ÙÙØ³ÙتÙ"},code:"LS",dial_code:"266",mobile_starts_with:["5","6"],phone_number_lengths:[8]},{name:{en:"Liberia",ar:"ÙÙØ¨ÙØ±ÙØ§"},code:"LR",dial_code:"231",mobile_starts_with:["4","5","6","7"],phone_number_lengths:[7,8]},{name:{en:"Liechtenstein",ar:"ÙÙØ®ØªÙشتاÙÙ"},code:"LI",dial_code:"423",mobile_starts_with:["7"],phone_number_lengths:[7]},{name:{en:"Lithuania",ar:"ÙÙØªÙاÙÙØ§"},code:"LT",dial_code:"370",mobile_starts_with:["6"],phone_number_lengths:[8]},{name:{en:"Luxembourg",ar:"ÙÙÙØ³Ù
Ø¨ÙØ±Øº"},code:"LU",dial_code:"352",mobile_starts_with:["6"],phone_number_lengths:[9]},{name:{en:"Macao",ar:"Ù
Ø§ÙØ§Ù"},code:"MO",dial_code:"853",mobile_starts_with:["6"],phone_number_lengths:[8]},{name:{en:"Macedonia",ar:"Ù
ÙØ¯ÙÙÙØ§"},code:"MK",dial_code:"389",mobile_starts_with:["7"],phone_number_lengths:[8]},{name:{en:"Madagascar",ar:"Ù
Ø¯ØºØ´ÙØ±"},code:"MG",dial_code:"261",mobile_starts_with:["3"],phone_number_lengths:[9]},{name:{en:"Malawi",ar:"Ù
Ø§ÙØ§ÙÙ"},code:"MW",dial_code:"265",mobile_starts_with:["77","88","99"],phone_number_lengths:[9]},{name:{en:"Malaysia",ar:"Ù
اÙÙØ²Ùا"},code:"MY",dial_code:"60",mobile_starts_with:["1","6"],phone_number_lengths:[8,9,10]},{name:{en:"Maldives",ar:"جزر اÙÙ
Ø§ÙØ¯ÙÙ"},code:"MV",dial_code:"960",mobile_starts_with:["7","9"],phone_number_lengths:[7]},{name:{en:"Mali",ar:"Ù
اÙÙ"},code:"ML",dial_code:"223",mobile_starts_with:["6","7"],phone_number_lengths:[8]},{name:{en:"Malta",ar:"Ù
Ø§ÙØ·Ø§"},code:"MT",dial_code:"356",mobile_starts_with:["7","9"],phone_number_lengths:[8]},{name:{en:"Marshall Islands",ar:"جزر Ù
ارشاÙ"},code:"MH",dial_code:"692",mobile_starts_with:[],phone_number_lengths:[7]},{name:{en:"Martinique",ar:"Ù
ارتÙÙÙÙ"},code:"MQ",dial_code:"596",mobile_starts_with:["696"],phone_number_lengths:[9]},{name:{en:"Mauritania",ar:"Ù
ÙØ±ÙتاÙÙØ§"},code:"MR",dial_code:"222",mobile_starts_with:[],phone_number_lengths:[8]},{name:{en:"Mauritius",ar:"Ù
ÙØ±ÙØ´ÙÙØ³"},code:"MU",dial_code:"230",mobile_starts_with:["5"],phone_number_lengths:[8]},{name:{en:"Mayotte",ar:"Ù
اÙÙØª"},code:"YT",dial_code:"262",mobile_starts_with:["639"],phone_number_lengths:[9]},{name:{en:"Mexico",ar:"اÙÙ
ÙØ³ÙÙ"},code:"MX",dial_code:"52",mobile_starts_with:[""],phone_number_lengths:[10,11]},{name:{en:"Micronesia, Federated States of Micronesia",ar:"ÙÙØ§Ùات Ù
ÙÙØ±ÙÙÙØ³Ùا اÙÙ
ØªØØ¯Ø©"},code:"FM",dial_code:"691",mobile_starts_with:[],phone_number_lengths:[7]},{name:{en:"Moldova",ar:"Ù
ÙÙØ¯ÙÙØ§"},code:"MD",dial_code:"373",mobile_starts_with:["6","7"],phone_number_lengths:[8]},{name:{en:"Monaco",ar:"Ù
ÙÙØ§ÙÙ"},code:"MC",dial_code:"377",mobile_starts_with:["4","6"],phone_number_lengths:[8,9]},{name:{en:"Mongolia",ar:"Ù
ÙØºÙÙÙØ§"},code:"MN",dial_code:"976",mobile_starts_with:["5","8","9"],phone_number_lengths:[8]},{name:{en:"Montenegro",ar:"Ø§ÙØ¬Ø¨Ù Ø§ÙØ£Ø³Ùد"}
30,code:"ME",dial_code:"382",mobile_starts_with:["6"],phone_number_lengths:[8]},{name:{en:"Montserrat",ar:"Ù
ÙÙØªØ³Ø±Ø§Øª"},code:"MS",dial_code:"1664",mobile_starts_with:["664"],phone_number_lengths:[10]},{name:{en:"Mozambique",ar:"Ù
ÙØ²Ù
بÙÙ"},code:"MZ",dial_code:"258",mobile_starts_with:["8"],phone_number_lengths:[9]},{name:{en:"Myanmar",ar:"Ù
ÙØ§ÙÙ
ار"},code:"MM",dial_code:"95",mobile_starts_with:["9"],phone_number_lengths:[8,9,10]},{name:{en:"Namibia",ar:"ÙØ§Ù
ÙØ¨Ùا"},code:"NA",dial_code:"264",mobile_starts_with:["60","81","82","85"],phone_number_lengths:[9]},{name:{en:"Nauru",ar:"ÙØ§ÙرÙ"},code:"NR",dial_code:"674",mobile_starts_with:["555"],phone_number_lengths:[7]},{name:{en:"Nepal",ar:"ÙÙØ¨Ø§Ù"},code:"NP",dial_code:"977",mobile_starts_with:["97","98"],phone_number_lengths:[10]},{name:{en:"Netherlands",ar:"ÙÙÙÙØ¯Ø§"},code:"NL",dial_code:"31",mobile_starts_with:["6"],phone_number_lengths:[9]},{name:{en:"New Caledonia",ar:"ÙØ§ÙÙØ¯ÙÙÙØ§ Ø§ÙØ¬Ø¯Ùدة"},code:"NC",dial_code:"687",mobile_starts_with:["7","8","9"],phone_number_lengths:[6]},{name:{en:"New Zealand",ar:"ÙÙÙØ²ÙÙÙØ¯Ø§"},code:"NZ",dial_code:"64",mobile_starts_with:["2"],phone_number_lengths:[8,9,10]},{name:{en:"Nicaragua",ar:"ÙÙÙØ§Ø±Ø§ØºÙا"},code:"NI",dial_code:"505",mobile_starts_with:["8"],phone_number_lengths:[8]},{name:{en:"Niger",ar:"اÙÙÙØ¬Ø±"},code:"NE",dial_code:"227",mobile_starts_with:["9"],phone_number_lengths:[8]},{name:{en:"Nigeria",ar:"ÙÙØ¬ÙØ±ÙØ§"},code:"NG",dial_code:"234",mobile_starts_with:["70","80","81","90","91"],phone_number_lengths:[10]},{name:{en:"Niue",ar:"ÙÙÙÙÙ"},code:"NU",dial_code:"683",mobile_starts_with:[],phone_number_lengths:[4]},{name:{en:"Norfolk Island",ar:"Ø¬Ø²ÙØ±Ø© ÙÙØ±ÙÙÙÙ"},code:"NF",dial_code:"672",mobile_starts_with:["5","8"],phone_number_lengths:[5]},{name:{en:"Northern Mariana Islands",ar:"جزر Ù
Ø§Ø±ÙØ§Ùا Ø§ÙØ´Ù
اÙÙØ©"},code:"MP",dial_code:"1670",mobile_starts_with:["670"],phone_number_lengths:[10]},{name:{en:"Norway",ar:"اÙÙØ±ÙÙØ¬"},code:"NO",dial_code:"47",mobile_starts_with:["4","9"],phone_number_lengths:[8]},{name:{en:"Pakistan",ar:"Ø¨Ø§ÙØ³ØªØ§Ù"},code:"PK",dial_code:"92",mobile_starts_with:["3"],phone_number_lengths:[10]},{name:{en:"Palau",ar:"Ø¨Ø§ÙØ§Ù"},code:"PW",dial_code:"680",mobile_starts_with:[],phone_number_lengths:[7]},{name:{en:"Panama",ar:"بÙÙ
ا"},code:"PA",dial_code:"507",mobile_starts_with:["6"],phone_number_lengths:[8]},{name:{en:"Papua New Guinea",ar:"Ø¨Ø§Ø¨ÙØ§ غÙÙÙØ§ Ø§ÙØ¬Ø¯Ùدة"},code:"PG",dial_code:"675",mobile_starts_with:["7"],phone_number_lengths:[8]},{name:{en:"Paraguay",ar:"Ø¨Ø§Ø±Ø§ØºÙØ§Ù"},code:"PY",dial_code:"595",mobile_starts_with:["9"],phone_number_lengths:[9]},{name:{en:"Peru",ar:"Ø¨ÙØ±Ù"},code:"PE",dial_code:"51",mobile_starts_with:["9"],phone_number_lengths:[9]},{name:{en:"Philippines",ar:"اÙÙÙØ¨ÙÙ"},code:"PH",dial_code:"63",mobile_starts_with:["9"],phone_number_lengths:[10]},{name:{en:"Poland",ar:"بÙÙÙØ¯Ø§"},code:"PL",dial_code:"48",mobile_starts_with:["4","5","6","7","8"],phone_number_lengths:[9]},{name:{en:"Portugal",ar:"Ø§ÙØ¨Ø±ØªØºØ§Ù"},code:"PT",dial_code:"351",mobile_starts_with:["9"],phone_number_lengths:[9]},{name:{en:"Puerto Rico",ar:"Ø¨ÙØ±ØªÙرÙÙÙ"},code:"PR",dial_code:"1939",mobile_starts_with:["787","939"],phone_number_lengths:[10]},{name:{en:"Romania",ar:"رÙÙ
اÙÙØ§"},code:"RO",dial_code:"40",mobile_starts_with:["7"],phone_number_lengths:[9]},{name:{en:"Russia",ar:"Ø±ÙØ³Ùا"},code:"RU",dial_code:"7",mobile_starts_with:["9","495","498","499"],phone_number_lengths:[10]},{name:{en:"Rwanda",ar:"Ø±ÙØ§Ùدا"},code:"RW",dial_code:"250",mobile_starts_with:["7"],phone_number_lengths:[9]},{name:{en:"Reunion",ar:"ÙØ§ رÙÙÙÙÙÙ"},code:"RE",dial_code:"262",mobile_starts_with:["692","693"],phone_number_lengths:[9]},{name:{en:"Saint Helena, Ascension and Tristan Da Cunha",ar:"Ø³Ø§ÙØª ÙÙÙØ§ÙØ© ÙØ£Ø³ÙÙØ´ÙÙ ÙØªØ±Ùستا٠دا ÙÙÙØ§"},code:"SH",dial_code:"290",mobile_starts_with:[],phone_number_lengths:[4]},{name:{en:"Saint Kitts and Nevis",ar:"Ø³Ø§ÙØª ÙÙØªØ³ ÙÙÙÙÙØ³"},code:"KN",dial_code:"1869",mobile_starts_with:["869"],phone_number_lengths:[10]},{name:{en:"Saint Lucia",ar:"Ø³Ø§ÙØª ÙÙØ³Ùا"},code:"LC",dial_code:"1758",mobile_starts_with:["758"],phone_number_lengths:[10]},{name:{en:"Saint Pierre and Miquelon",ar:"سا٠بÙÙØ± ÙÙ
ÙÙÙÙÙ"},code:"PM",dial_code:"508",mobile_starts_with:["55","41"],phone_number_lengths:[6]},{name:{en:"Saint Vincent and the Grenadines",ar:"Ø³Ø§ÙØª ÙÙÙØ³Ùت ÙØ§ÙغرÙÙØ§Ø¯ÙÙ"},code:"VC",dial_code:"1784",mobile_starts_with:["784"],phone_number_lengths:[10]},{name:{en:"Samoa",ar:"ساÙ
ÙØ§"},code:"WS",dial_code:"685",mobile_starts_with:["7"],phone_number_lengths:[7]},{name:{en:"San Marino",ar:"سا٠Ù
ارÙÙÙ"},code:"SM",dial_code:"378",mobile_starts_with:["3","6"],phone_number_lengths:[10]},{name:{en:"Sao Tome and Principe",ar:"سا٠تÙÙ
Ù ÙØ¨Ø±ÙÙØ³Ùب"}
30,code:"ST",dial_code:"239",mobile_starts_with:["98","99"],phone_number_lengths:[7]},{name:{en:"Senegal",ar:"Ø§ÙØ³ÙغاÙ"},code:"SN",dial_code:"221",mobile_starts_with:["7"],phone_number_lengths:[9]},{name:{en:"Serbia",ar:"ØµØ±Ø¨ÙØ§"},code:"RS",dial_code:"381",mobile_starts_with:["6"],phone_number_lengths:[8,9]},{name:{en:"Seychelles",ar:"Ø³ÙØ´Ù"},code:"SC",dial_code:"248",mobile_starts_with:["2"],phone_number_lengths:[7]},{name:{en:"Sierra Leone",ar:"Ø³ÙØ±Ø§ÙÙÙÙ"},code:"SL",dial_code:"232",mobile_starts_with:["21","25","30","33","34","40","44","50","55","76","77","78","79","88"],phone_number_lengths:[8]},{name:{en:"Singapore",ar:"Ø³ÙØºØ§ÙÙØ±Ø©"},code:"SG",dial_code:"65",mobile_starts_with:["8","9"],phone_number_lengths:[8]},{name:{en:"Slovakia",ar:"سÙÙÙØ§ÙÙØ§"},code:"SK",dial_code:"421",mobile_starts_with:["9"],phone_number_lengths:[9]},{name:{en:"Slovenia",ar:"سÙÙÙÙÙÙØ§"},code:"SI",dial_code:"386",mobile_starts_with:["3","4","5","6","7"],phone_number_lengths:[8]},{name:{en:"Solomon Islands",ar:"جزر سÙÙÙ
اÙ"},code:"SB",dial_code:"677",mobile_starts_with:["7","8"],phone_number_lengths:[7]},{name:{en:"Somalia",ar:"Ø§ÙØµÙÙ
اÙ"},code:"SO",dial_code:"252",mobile_starts_with:["61","62","63","65","66","68","69","71","90"],phone_number_lengths:[9]},{name:{en:"South Africa",ar:"جÙÙØ¨ Ø£ÙØ±ÙÙÙØ§"},code:"ZA",dial_code:"27",mobile_starts_with:["1","2","3","4","5","6","7","8"],phone_number_lengths:[9]},{name:{en:"South Sudan",ar:"جÙÙØ¨ Ø§ÙØ³ÙداÙ"},code:"SS",dial_code:"211",mobile_starts_with:["9"],phone_number_lengths:[9]},{name:{en:"Spain",ar:"إسباÙÙØ§"},code:"ES",dial_code:"34",mobile_starts_with:["6","7"],phone_number_lengths:[9]},{name:{en:"Sri Lanka",ar:"سرÙÙØ§ÙÙØ§"},code:"LK",dial_code:"94",mobile_starts_with:["7"],phone_number_lengths:[9]},{name:{en:"Suriname",ar:"Ø³ÙØ±ÙÙØ§Ù
"},code:"SR",dial_code:"597",mobile_starts_with:["6","7","8"],phone_number_lengths:[7]},{name:{en:"Svalbard and Jan Mayen",ar:"Ø³ÙØ§Ùبارد ÙÙØ§Ù Ù
اÙÙ"},code:"SJ",dial_code:"47",mobile_starts_with:["79"],phone_number_lengths:[8]},{name:{en:"Swaziland",ar:"Ø¥Ø³ÙØ§ØªÙÙÙ"},code:"SZ",dial_code:"268"},{name:{en:"Sweden",ar:"Ø§ÙØ³ÙÙØ¯"},code:"SE",dial_code:"46",mobile_starts_with:["7"],phone_number_lengths:[9]},{name:{en:"Switzerland",ar:"سÙÙØ³Ø±Ø§"},code:"CH",dial_code:"41",mobile_starts_with:["74","75","76","77","78","79"],phone_number_lengths:[9]},{name:{en:"Taiwan",ar:"تاÙÙØ§Ù"},code:"TW",dial_code:"886",mobile_starts_with:["9"],phone_number_lengths:[9]},{name:{en:"Tajikistan",ar:"طاجÙÙØ³ØªØ§Ù"},code:"TJ",dial_code:"992",mobile_starts_with:["9"],phone_number_lengths:[9]},{name:{en:"Tanzania, United Republic of Tanzania",ar:"ØªÙØ²Ø§ÙÙØ§"},code:"TZ",dial_code:"255",mobile_starts_with:["7","6"],phone_number_lengths:[9]},{name:{en:"Thailand",ar:"تاÙÙØ§Ùد"},code:"TH",dial_code:"66",mobile_starts_with:["6","8","9"],phone_number_lengths:[9]},{name:{en:"Timor-Leste",ar:"تÙÙ
ÙØ± Ø§ÙØ´Ø±ÙÙØ©"},code:"TL",dial_code:"670",mobile_starts_with:["7"],phone_number_lengths:[8]},{name:{en:"Togo",ar:"ØªÙØºÙ"},code:"TG",dial_code:"228",mobile_starts_with:["9"],phone_number_lengths:[8]},{name:{en:"Tonga",ar:"تÙÙØºØ§"},code:"TO",dial_code:"676",mobile_starts_with:[],phone_number_lengths:[5]},{name:{en:"Trinidad and Tobago",ar:"ترÙÙÙØ¯Ø§Ø¯ ÙØªÙباغÙ"},code:"TT",dial_code:"1868",mobile_starts_with:["868"],phone_number_lengths:[10]},{name:{en:"Turkey",ar:"ترÙÙØ§"},code:"TR",dial_code:"90",mobile_starts_with:["5"],phone_number_lengths:[10]},{name:{en:"Turkmenistan",ar:"ترÙÙ
Ø§ÙØ³ØªØ§Ù"},code:"TM",dial_code:"993",mobile_starts_with:["6"],phone_number_lengths:[8]},{name:{en:"Turks and Caicos Islands",ar:"جزر ØªÙØ±Ùس ÙÙØ§ÙÙÙØ³"},code:"TC",dial_code:"1649",mobile_starts_with:["6492","6493","6494"],phone_number_lengths:[10]},{name:{en:"Tuvalu",ar:"تÙÙØ§ÙÙ"},code:"TV",dial_code:"688",mobile_starts_with:[],phone_number_lengths:[5]},{name:{en:"Uganda",ar:"Ø£ÙØºÙدا"},code:"UG",dial_code:"256",mobile_starts_with:["7"],phone_number_lengths:[9]},{name:{en:"Ukraine",ar:"Ø£ÙÙØ±Ø§ÙÙØ§"},code:"UA",dial_code:"380",mobile_starts_with:["39","50","63","66","67","68","73","9"],phone_number_lengths:[9]},{name:{en:"United Kingdom",ar:"اÙÙ
Ù
ÙÙØ© اÙÙ
ØªØØ¯Ø©"},code:"GB",dial_code:"44",mobile_starts_with:["7"],phone_number_lengths:[10]},{name:{en:"United States",ar:"اÙÙÙØ§Ùات اÙÙ
ØªØØ¯Ø©"},code:"US",dial_code:"1",mobile_starts_with:["201","202","203","205","206","207","208","209","210","212","213","214","215","216","217","218","219","220","223","224","225","227","228","229","231","234","239","240","248","251","252","253","254","256","260","262","267","269","270","272","274","276","278","281","283","301","302","303","304","305","307","308","309","310","312","313","314","315","316","317","318","319","320","321","323","325","327","330","331","332","334","336","337","339","341","346","347","351","352","360","361","364","369","380","385","386","401","402","404","405","406","407","408","409","410","412","413","414","415","417","419","423","424","425","430","432","434","435","440","441","442","443","445","447","458","463","464","469","470","475","478","479","480","484","501","502","503","504","505","507","508","509","510","512","513","515","516","517","518","520","530","531","534","539","540","541","551","557","559","561","562","563","564","567","570","571","572","573","574","575","580","582","585","586","601","602","603","605","606","607","608","609","610","612","614","615","616","617","618","619","620","623","626","627","628","629","630","631","636","640","641","646","650","651","657","659","660","661","662","667","669","678","679","680","681","682","689","701","702","703","704","706","707","708","712","713","714","715","716","717","718","719","720","724","725","726","727","730","731","732","734","737","740","743","747","752","754","757","760","762","763","764","765","769","770","772","773","774","775","779","781","785","786","787","801","802","803","804","805","806","808","810","812","813","814","815","816","817","818","820","828","830","831","832","835","838","840","843","845","847","848","850","854","856","857","858","859","860","862","863","864","865","870","872","878","901","903","904","906","907","908","909","910","912","913","914","915","916","917","918","919","920","925","927","928","929","931","934","935","936","937","938","939","940","941","945","947","949","951","952","954","956","957","959","970","971","972","973","975","978","979","980","984","985","986","989","888","800","833","844","855","866","877","279"],phone_number_lengths:[10]},{name:{en:"Uruguay",ar:"Ø§ÙØ£ÙØ±ÙØºÙاÙ"},code:"UY",dial_code:"598",mobile_starts_with:["9"],phone_number_lengths:[8]},{name:{en:"Uzbekistan",ar:"Ø£ÙØ²Ø¨ÙستاÙ"},code:"UZ",dial_code:"998",mobile_starts_with:["9","88","33"],phone_number_lengths:[9]},{name:{en:"Vanuatu",ar:"ÙØ§ÙÙØ§ØªÙ"},code:"VU",dial_code:"678",mobile_starts_with:["5","7"],phone_number_lengths:[7]},{name:{en:"Venezuela, Bolivarian Republic of Venezuela",ar:"ÙÙØ²ÙÙÙØ§"},code:"VE",dial_code:"58",mobile_starts_with:["4"],phone_number_lengths:[10]},{name:{en:"Vietnam",ar:"ÙÙØªÙاÙ
"},code:"VN",dial_code:"84",mobile_starts_with:["8","9","3","7","5"],phone_number_lengths:[9]},{name:{en:"Virgin Islands, British",ar:"جزر Ø§ÙØ¹Ø°Ø±Ø§Ø¡ Ø§ÙØ¨Ø±ÙطاÙÙØ©"}
30,code:"VG",dial_code:"1284",mobile_starts_with:["284"],phone_number_lengths:[10]},{name:{en:"Virgin Islands, U.S.",ar:"جزر Ø§ÙØ¹Ø°Ø±Ø§Ø¡ Ø§ÙØ£Ù
رÙÙÙØ©"},code:"VI",dial_code:"1340",mobile_starts_with:["340"],phone_number_lengths:[10]},{name:{en:"Zambia",ar:"زاÙ
Ø¨ÙØ§"},code:"ZM",dial_code:"260",mobile_starts_with:["9","7"],phone_number_lengths:[9]},{name:{en:"Zimbabwe",ar:"زÙÙ
بابÙÙ"},code:"ZW",dial_code:"263",mobile_starts_with:["71","73","77"],phone_number_lengths:[9]}],kr=t=>window.btoa(encodeURIComponent(t)),Br=t=>{try{return decodeURIComponent(window.atob(t))}catch{return""}},Zn=t=>{try{return JSON.parse(t)}catch{return t}},pn=({name:t,value:e,expiration:n=1,path:u="/",domain:r})=>{let s="";if(n>0){const i=new Date().getTime()+86400*Number(n)*1e3;s=`;expires=${new Date(i).toUTCString()}`}else s=`;expires=${new Date(0).toUTCString()}`;let m=`${t}=${e};path=${u}`+s;r&&(m+=`;domain=${r}`),document.cookie=m},Jn=t=>{Xn(t.name,t.domain),pn(t)},gn=t=>{if(typeof document<"u"){const e=t+"=",n=document.cookie.split(";");for(let u=0;u<n.length;u++){let r=n[u];for(;r.charAt(0)===" ";)r=r.substring(1,r.length);if(r.indexOf(e)===0)return r.substring(e.length,r.length)}}return null},Xn=(t,e)=>{pn({name:t,value:"",expiration:0,domain:e})},Xe={},eu=()=>`#${Math.floor(Math.random()*16777215).toString(16)}`,Lr=t=>{if(Xe[t])return Xe[t];const e=gn("color"),n=Zn(e||"");if(n){const r=n[t];if(r)return Xe[t]=r,r}const u=eu();return Xe[t]=u,Jn({name:"color",value:JSON.stringify({[t]:u})}),u},Fe=t=>{let e=0,n=0,u=0;t.length===4?(e=parseInt("0x"+t[1]+t[1]),n=parseInt("0x"+t[2]+t[2]),u=parseInt("0x"+t[3]+t[3])):t.length===7&&(e=parseInt("0x"+t[1]+t[2]),n=parseInt("0x"+t[3]+t[4]),u=parseInt("0x"+t[5]+t[6])),e/=255,n/=255,u/=255;const r=Math.min(e,n,u),s=Math.max(e,n,u),m=s-r;let i=0,_=0,h=0;return m===0?i=0:s===e?i=(n-u)/m%6:s===n?i=(u-e)/m+2:i=(e-n)/m+4,i=Math.round(i*60),i<0&&(i+=360),h=(s+r)/2,_=m===0?0:m/(1-Math.abs(2*h-1)),_=+(_*100).toFixed(1),h=+(h*100).toFixed(1),{h:i,s:_,l:h}},F=(t,e,n)=>`${Math.round(t)} ${Math.round(e)}% ${Math.round(n)}%`,tu=t=>{const{l:e}=Fe(t);return e>50?"light":"dark"},nu=t=>{const{h:e,s:n}=Fe(t),u=Fe(t).l,r={100:Math.min(u+19,94),200:Math.min(u+14,89),300:Math.min(u+9,83),400:Math.min(u+4,77),500:u,600:Math.max(u-6,8),700:Math.max(u-11,8),800:Math.max(u-16,8),900:Math.max(u-21,8)},s={100:n,200:n,300:n,400:n,500:n,600:Math.max(n-8,0),700:Math.max(n-8,0),800:Math.max(n-8,0),900:Math.max(n-8,0)};return{100:F(e,s[100],r[100]),200:F(e,s[200],r[200]),300:F(e,s[300],r[300]),400:F(e,s[400],r[400]),500:F(e,s[500],r[500]),600:F(e,s[600],r[600]),700:F(e,s[700],r[700]),800:F(e,s[800],r[800]),900:F(e,s[900],r[900])}},uu=t=>tu(t)==="light"?"0 0% 0%":"0 0% 100%",et=(t,e,n)=>{const u=nu(e);let r="";if(n){const s=Fe(n);r=F(s.h,s.s,s.l)}else r=uu(e);return{[`--color-${t}-100`]:u[100],[`--color-${t}-200`]:u[200],[`--color-${t}-300`]:u[300],[`--color-${t}-400`]:u[400],[`--color-${t}-500`]:u[500],[`--color-${t}-600`]:u[600],[`--color-${t}-700`]:u[700],[`--color-${t}-800`]:u[800],[`--color-${t}-900`]:u[900],[`--color-${t}-contrast`]:r}},ru=t=>{const{h:e,s:n,l:u}=Fe(t),r=u>50,s=Math.max(n-1,0),m=i=>r?Math.max(u-i,20):Math.min(u+i,100);return{"--color-text-primary":F(e,n,u),"--color-text-secondary":F(e,s,m(24)),"--color-text-tertiary":F(e,s,m(55)),"--color-text-disabled":"0 0% 30%","--color-text-link":"var(--color-primary-500)"}},su=t=>{const{h:e,s:n,l:u}=Fe(t),s=u>50?{body:F(e,n,u),level1:F(e,n,Math.max(u-11,0)),level2:F(e,n,Math.max(u-22,0)),level3:F(e,n,Math.max(u-33,0)),level4:F(e,n,Math.max(u-44,0)),contrast:"0 0% 0%"}:{body:F(e,n,u),level1:F(e,n,Math.min(u+11,100)),level2:F(e,n,Math.min(u+22,100)),level3:F(e,n,Math.min(u+33,100)),level4:F(e,n,Math.min(u+44,100)),contrast:"0 0% 100%"};return{"--bg-body":s.body,"--bg-body-level-1":s.level1,"--bg-body-level-2":s.level2,"--bg-body-level-3":s.level3,"--bg-body-level-4":s.level4,"--bg-body-contrast":s.contrast}},au=t=>{if(!t)return"";const{h:e,s:n,l:u}=Fe(t);return u>50?{"--input-bg":F(e,n,u),"--input-bg-hover":F(e,n,Math.max(u-5,0)),"--input-bg-disabled":F(e,n,Math.max(u-20,0)),"--input-border-primary":"var(--bg-body-level-1)","--input-border":"var(--bg-body-level-1)","--input-border-focus":"0 0% 0%","--input-popover-bg":F(e,n,Math.max(u-5,0))}:{"--input-bg":F(e,n,u),"--input-bg-hover":F(e,n,Math.min(u+5,100)),"--input-bg-disabled":F(e,n,Math.min(u+20,100)),"--input-border-primary":"var(--bg-body-level-1)","--input-border":"var(--bg-body-level-1)","--input-border-focus":"0 0% 100%","--input-popover-bg":F(e,n,Math.min(u+5,100))}},Ur=()=>{const t=getComputedStyle(document.documentElement),e=(r,s=1)=>{const m=t.getPropertyValue(r).trim();return m?`hsl(${m} / ${s})`:void 0},u=(r=>t.getPropertyValue(r).trim()||void 0)("--radius-S")??"8px";
30return{colorAction:e("--color-action-500"),colorBackground:e("--bg-body"),colorBorder:e("--bg-body-level-1"),colorDisabled:e("--color-text-disabled"),colorError:e("--color-error-500"),colorFormBackground:e("--input-bg"),colorFormBorder:e("--bg-body-level-1"),colorInverse:e("--color-action-contrast"),colorOutline:e("--input-border-focus",.4),focusOutlineWidth:"2px",colorPrimary:e("--color-text-primary"),colorSecondary:e("--color-text-secondary"),colorSuccess:e("--color-success-500"),borderRadius:[u,u]}},Nr=t=>({...t.primary&&et("primary",t.primary,t.primaryContrast),...t.secondary&&et("secondary",t.secondary),...t.tertiary&&et("tertiary",t.tertiary),...t.action&&et("action",t.action),...t.textPrimary&&ru(t.textPrimary),...t.body&&su(t.body),...t.body&&au(t.body)}),Qr=({date:t,interval:e="second",value:n})=>{let u=t;if(u instanceof Date||(u=$(u)),!(u!=null&&u.getTime()))return;const r=new Date(u),s=function(){r.getDate()!=u.getDate()&&r.setDate(0)};switch(String(e).toLowerCase()){case"year":r.setFullYear(r.getFullYear()+n),s();break;case"quarter":r.setMonth(r.getMonth()+3*n),s();break;case"month":r.setMonth(r.getMonth()+n),s();break;case"week":r.setDate(r.getDate()+7*n);break;case"day":r.setDate(r.getDate()+n);break;case"hour":r.setTime(r.getTime()+n*36e5);break;case"minute":r.setTime(r.getTime()+n*6e4);break;default:r.setTime(r.getTime()+n*1e3);break}return r},Hr=(t,e)=>t>e,$r=(t,e)=>t<e,jr=(t,e)=>{const n=typeof t=="string"?$(t):t,u=typeof e=="string"?$(e):e;return n.getFullYear()===u.getFullYear()&&n.getMonth()===u.getMonth()&&n.getDate()===u.getDate()},Gr=(t,e)=>{const n=new Date(t*1e3),u=new Date(e*1e3);return n.getFullYear()===u.getFullYear()&&n.getMonth()===u.getMonth()&&n.getDate()===u.getDate()},Kr=(t,e)=>{const n=typeof t=="string"?$(t):t,u=typeof e=="string"?$(e):e;return n.getFullYear()===u.getFullYear()&&n.getMonth()===u.getMonth()},Vr=(t,e)=>{const n=new Date(t*1e3),u=new Date(e*1e3);return n.getFullYear()===u.getFullYear()&&n.getMonth()===u.getMonth()},Wr=(t,e)=>{const n=new Date(t*1e3),u=new Date(e*1e3);return n.getFullYear()===u.getFullYear()},qr=(t,e)=>{const n=typeof t=="string"?$(t):t,u=typeof e=="string"?$(e):e;return n.getTime()===u.getTime()},Yr=t=>{const e=typeof t=="string"?$(t):t;return e.setHours(0,0,0,0),e},zr=t=>{const e=typeof t=="string"?$(t):t;return e.setHours(23,59,59,999),e},iu=({from:t,to:e,units:n=["year","month","day","hour","minute","second"],includeZero:u})=>{const s=((e||new Date).getTime()-t.getTime())/1e3;let m=0,i=0,_=0,h=0,o=0,l=0;const c=n.includes("year");c&&(m=Math.floor(s/(365*24*60*60)));const d=n.includes("month");d&&(i=Math.floor(c?s%(365*24*60*60)/(30*24*60*60):s/(30*24*60*60)));const y=n.includes("day");y&&(_=Math.floor(!c&&!d?s/(24*60*60):s%(30*24*60*60)/(24*60*60)));const g=n.includes("hour");g&&(h=Math.floor(!c&&!d&&!y?s/(60*60):s%(24*60*60)/(60*60)));const b=n.includes("minute");b&&(o=Math.floor(!c&&!d&&!y&&!g?s/60:s%(60*60)/60)),n.includes("second")&&(l=Math.floor(!c&&!d&&!y&&!g&&!b?s:s%60));const P={year:m,month:i,day:_,hour:h,minute:o,second:l};if(u)return P;const C={};for(const p of n)P[p]>0&&(C[p]=P[p]);return C},Zr=({from:t,to:e,locale:n="en",units:u=["year","month","day","hour","minute","second"],options:r,delimiter:s=" "})=>{const m=new Intl.RelativeTimeFormat(n,r),i=n.startsWith("ar"),_=[],h=iu({from:t,to:e,units:u}),o=Object.keys(h),l=o[o.length-1];let c=0;for(const d of o){const y=Number(h[d]),g=m.format(-y,d),b=i?c>0:d!==l;let A=g;if(b){const P=g.split(" ");A=i?P.slice(1).join(" "):P.slice(0,-1).join(" "),_.push(A)}else _.push(g);c++}return _.join(s)},Qe=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},pe,se,Te,Jt,ou=(Jt=class extends Qe{constructor(){super();v(this,pe);v(this,se);v(this,Te);f(this,Te,e=>{if(typeof window<"u"&&window.addEventListener){const n=()=>e();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){a(this,se)||this.setEventListener(a(this,Te))}onUnsubscribe(){var e;this.hasListeners()||((e=a(this,se))==null||e.call(this),f(this,se,void 0))}setEventListener(e){var n;f(this,Te,e),(n=a(this,se))==null||n.call(this),f(this,se,e(u=>{typeof u=="boolean"?this.setFocused(u):this.onFocus()}))}setFocused(e){a(this,pe)!==e&&(f(this,pe,e),this.onFocus())}onFocus(){const e=this.isFocused();
30this.listeners.forEach(n=>{n(e)})}isFocused(){var e;return typeof a(this,pe)=="boolean"?a(this,pe):((e=globalThis.document)==null?void 0:e.visibilityState)!=="hidden"}},pe=new WeakMap,se=new WeakMap,Te=new WeakMap,Jt),Tt=new ou,lu={setTimeout:(t,e)=>setTimeout(t,e),clearTimeout:t=>clearTimeout(t),setInterval:(t,e)=>setInterval(t,e),clearInterval:t=>clearInterval(t)},ae,Ft,Xt,hu=(Xt=class{constructor(){v(this,ae,lu);v(this,Ft,!1)}setTimeoutProvider(t){f(this,ae,t)}setTimeout(t,e){return a(this,ae).setTimeout(t,e)}clearTimeout(t){a(this,ae).clearTimeout(t)}setInterval(t,e){return a(this,ae).setInterval(t,e)}clearInterval(t){a(this,ae).clearInterval(t)}},ae=new WeakMap,Ft=new WeakMap,Xt),be=new hu;function cu(t){setTimeout(t,0)}var du=typeof window>"u"||"Deno"in globalThis;function U(){}function mu(t,e){return typeof t=="function"?t(e):t}function ct(t){return typeof t=="number"&&t>=0&&t!==1/0}function yn(t,e){return Math.max(t+(e||0)-Date.now(),0)}function _e(t,e){return typeof t=="function"?t(e):t}function K(t,e){return typeof t=="function"?t(e):t}function Ht(t,e){const{type:n="all",exact:u,fetchStatus:r,predicate:s,queryKey:m,stale:i}=t;if(m){if(u){if(e.queryHash!==xt(m,e.options))return!1}else if(!$e(e.queryKey,m))return!1}if(n!=="all"){const _=e.isActive();if(n==="active"&&!_||n==="inactive"&&_)return!1}return!(typeof i=="boolean"&&e.isStale()!==i||r&&r!==e.state.fetchStatus||s&&!s(e))}function $t(t,e){const{exact:n,status:u,predicate:r,mutationKey:s}=t;if(s){if(!e.options.mutationKey)return!1;if(n){if(Pe(e.options.mutationKey)!==Pe(s))return!1}else if(!$e(e.options.mutationKey,s))return!1}return!(u&&e.state.status!==u||r&&!r(e))}function xt(t,e){return((e==null?void 0:e.queryKeyHashFn)||Pe)(t)}function Pe(t){return JSON.stringify(t,(e,n)=>dt(n)?Object.keys(n).sort().reduce((u,r)=>(u[r]=n[r],u),{}):n)}function $e(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?Object.keys(e).every(n=>$e(t[n],e[n])):!1}var _u=Object.prototype.hasOwnProperty;function vn(t,e,n=0){if(t===e)return t;if(n>500)return e;const u=jt(t)&&jt(e);if(!u&&!(dt(t)&&dt(e)))return e;const s=(u?t:Object.keys(t)).length,m=u?e:Object.keys(e),i=m.length,_=u?new Array(i):{};let h=0;for(let o=0;o<i;o++){const l=u?o:m[o],c=t[l],d=e[l];if(c===d){_[l]=c,(u?o<s:_u.call(t,l))&&h++;continue}if(c===null||d===null||typeof c!="object"||typeof d!="object"){_[l]=d;continue}const y=vn(c,d,n+1);_[l]=y,y===c&&h++}return s===i&&h===s?t:_}function rt(t,e){if(!e||Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(t[n]!==e[n])return!1;return!0}function jt(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function dt(t){if(!Gt(t))return!1;const e=t.constructor;if(e===void 0)return!0;const n=e.prototype;return!(!Gt(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function Gt(t){return Object.prototype.toString.call(t)==="[object Object]"}function fu(t){return new Promise(e=>{be.setTimeout(e,t)})}function mt(t,e,n){return typeof n.structuralSharing=="function"?n.structuralSharing(t,e):n.structuralSharing!==!1?vn(t,e):e}function Jr(t){return t}function bu(t,e,n=0){const u=[...t,e];return n&&u.length>n?u.slice(1):u}function pu(t,e,n=0){const u=[e,...t];return n&&u.length>n?u.slice(0,-1):u}var Et=Symbol();function wn(t,e){return!t.queryFn&&(e!=null&&e.initialPromise)?()=>e.initialPromise:!t.queryFn||t.queryFn===Et?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}function Rt(t,e){return typeof t=="function"?t(...e):!!t}function gu(t,e,n){let u=!1,r;return Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(r??(r=e()),u||(u=!0,r.aborted?n():r.addEventListener("abort",n,{once:!0})),r)}),t}var je=(()=>{let t=()=>du;return{isServer(){return t()},setIsServer(e){t=e}}})();function _t(){let t,e;const n=new Promise((r,s)=>{t=r,e=s});n.status="pending",n.catch(()=>{});function u(r){Object.assign(n,r),delete n.resolve,delete n.reject}return n.resolve=r=>{u({status:"fulfilled",value:r}),t(r)},n.reject=r=>{u({status:"rejected",reason:r}),e(r)},n}var yu=cu;function vu(){let t=[],e=0,n=i=>{i()},u=i=>{i()},r=yu;const s=i=>{e?t.push(i):r(()=>{n(i)})},m=()=>{const i=t;t=[],i.length&&r(()=>{u(()=>
30{i.forEach(_=>{n(_)})})})};return{batch:i=>{let _;e++;try{_=i()}finally{e--,e||m()}return _},batchCalls:i=>(..._)=>{s(()=>{i(..._)})},schedule:s,setNotifyFunction:i=>{n=i},setBatchNotifyFunction:i=>{u=i},setScheduler:i=>{r=i}}}var O=vu(),xe,ie,Ee,en,wu=(en=class extends Qe{constructor(){super();v(this,xe,!0);v(this,ie);v(this,Ee);f(this,Ee,e=>{if(typeof window<"u"&&window.addEventListener){const n=()=>e(!0),u=()=>e(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",u,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",u)}}})}onSubscribe(){a(this,ie)||this.setEventListener(a(this,Ee))}onUnsubscribe(){var e;this.hasListeners()||((e=a(this,ie))==null||e.call(this),f(this,ie,void 0))}setEventListener(e){var n;f(this,Ee,e),(n=a(this,ie))==null||n.call(this),f(this,ie,e(this.setOnline.bind(this)))}setOnline(e){a(this,xe)!==e&&(f(this,xe,e),this.listeners.forEach(u=>{u(e)}))}isOnline(){return a(this,xe)}},xe=new WeakMap,ie=new WeakMap,Ee=new WeakMap,en),st=new wu;function Au(t){return Math.min(1e3*2**t,3e4)}function An(t){return(t??"online")==="online"?st.isOnline():!0}var ft=class extends Error{constructor(t){super("CancelledError"),this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}};function Sn(t){let e=!1,n=0,u;const r=_t(),s=()=>r.status!=="pending",m=g=>{var b;if(!s()){const A=new ft(g);c(A),(b=t.onCancel)==null||b.call(t,A)}},i=()=>{e=!0},_=()=>{e=!1},h=()=>Tt.isFocused()&&(t.networkMode==="always"||st.isOnline())&&t.canRun(),o=()=>An(t.networkMode)&&t.canRun(),l=g=>{s()||(u==null||u(),r.resolve(g))},c=g=>{s()||(u==null||u(),r.reject(g))},d=()=>new Promise(g=>{var b;u=A=>{(s()||h())&&g(A)},(b=t.onPause)==null||b.call(t)}).then(()=>{var g;u=void 0,s()||(g=t.onContinue)==null||g.call(t)}),y=()=>{if(s())return;let g;const b=n===0?t.initialPromise:void 0;try{g=b??t.fn()}catch(A){g=Promise.reject(A)}Promise.resolve(g).then(l).catch(A=>{var N;if(s())return;const P=t.retry??(je.isServer()?0:3),C=t.retryDelay??Au,p=typeof C=="function"?C(n,A):C,R=P===!0||typeof P=="number"&&n<P||typeof P=="function"&&P(n,A);if(e||!R){c(A);return}n++,(N=t.onFail)==null||N.call(t,n,A),fu(p).then(()=>h()?void 0:d()).then(()=>{e?c(A):y()})})};return{promise:r,status:()=>r.status,cancel:m,continue:()=>(u==null||u(),r),cancelRetry:i,continueRetry:_,canStart:o,start:()=>(o()?y():d().then(y),r)}}var ge,tn,Mn=(tn=class{constructor(){v(this,ge)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),ct(this.gcTime)&&f(this,ge,be.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(je.isServer()?1/0:5*60*1e3))}clearGcTimeout(){a(this,ge)!==void 0&&(be.clearTimeout(a(this,ge)),f(this,ge,void 0))}},ge=new WeakMap,tn),ye,Re,G,ve,D,Ge,we,j,Cn,z,nn,Su=(nn=class extends Mn{constructor(e){super();v(this,j);v(this,ye);v(this,Re);v(this,G);v(this,ve);v(this,D);v(this,Ge);v(this,we);f(this,we,!1),f(this,Ge,e.defaultOptions),this.setOptions(e.options),this.observers=[],f(this,ve,e.client),f(this,G,a(this,ve).getQueryCache()),this.queryKey=e.queryKey,this.queryHash=e.queryHash,f(this,ye,Vt(this.options)),this.state=e.state??a(this,ye),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return(e=a(this,D))==null?void 0:e.promise}setOptions(e){if(this.options={...a(this,Ge),...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=Vt(this.options);n.data!==void 0&&(this.setState(Kt(n.data,n.dataUpdatedAt)),f(this,ye,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&a(this,G).remove(this)}setData(e,n){const u=mt(this.state.data,e,this.options);return S(this,j,z).call(this,{data:u,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),u}setState(e,n){S(this,j,z).call(this,{type:"setState",state:e,setStateOptions:n})}cancel(e){var u,r;const n=(u=a(this,D))==null?void 0:u.promise;return(r=a(this,D))==null||r.cancel(e),n?n.then(U).catch(U):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return a(this,ye)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>K(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Et||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdate
30Count>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>_e(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!yn(this.state.dataUpdatedAt,e)}onFocus(){var n;const e=this.observers.find(u=>u.shouldFetchOnWindowFocus());e==null||e.refetch({cancelRefetch:!1}),(n=a(this,D))==null||n.continue()}onOnline(){var n;const e=this.observers.find(u=>u.shouldFetchOnReconnect());e==null||e.refetch({cancelRefetch:!1}),(n=a(this,D))==null||n.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),a(this,G).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(n=>n!==e),this.observers.length||(a(this,D)&&(a(this,we)||S(this,j,Cn).call(this)?a(this,D).cancel({revert:!0}):a(this,D).cancelRetry()),this.scheduleGc()),a(this,G).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||S(this,j,z).call(this,{type:"invalidate"})}async fetch(e,n){var _,h,o,l,c,d,y,g,b,A,P,C;if(this.state.fetchStatus!=="idle"&&((_=a(this,D))==null?void 0:_.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(a(this,D))return a(this,D).continueRetry(),a(this,D).promise}if(e&&this.setOptions(e),!this.options.queryFn){const p=this.observers.find(R=>R.options.queryFn);p&&this.setOptions(p.options)}const u=new AbortController,r=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>(f(this,we,!0),u.signal)})},s=()=>{const p=wn(this.options,n),N=(()=>{const ne={client:a(this,ve),queryKey:this.queryKey,meta:this.meta};return r(ne),ne})();return f(this,we,!1),this.options.persister?this.options.persister(p,N,this):p(N)},i=(()=>{const p={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:a(this,ve),state:this.state,fetchFn:s};return r(p),p})();(h=this.options.behavior)==null||h.onFetch(i,this),f(this,Re,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((o=i.fetchOptions)==null?void 0:o.meta))&&S(this,j,z).call(this,{type:"fetch",meta:(l=i.fetchOptions)==null?void 0:l.meta}),f(this,D,Sn({initialPromise:n==null?void 0:n.initialPromise,fn:i.fetchFn,onCancel:p=>{p instanceof ft&&p.revert&&this.setState({...a(this,Re),fetchStatus:"idle"}),u.abort()},onFail:(p,R)=>{S(this,j,z).call(this,{type:"failed",failureCount:p,error:R})},onPause:()=>{S(this,j,z).call(this,{type:"pause"})},onContinue:()=>{S(this,j,z).call(this,{type:"continue"})},retry:i.options.retry,retryDelay:i.options.retryDelay,networkMode:i.options.networkMode,canRun:()=>!0}));try{const p=await a(this,D).start();if(p===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(p),(d=(c=a(this,G).config).onSuccess)==null||d.call(c,p,this),(g=(y=a(this,G).config).onSettled)==null||g.call(y,p,this.state.error,this),p}catch(p){if(p instanceof ft){if(p.silent)return a(this,D).promise;if(p.revert){if(this.state.data===void 0)throw p;return this.state.data}}throw S(this,j,z).call(this,{type:"error",error:p}),(A=(b=a(this,G).config).onError)==null||A.call(b,p,this),(C=(P=a(this,G).config).onSettled)==null||C.call(P,this.state.data,p,this),p}finally{this.scheduleGc()}}},ye=new WeakMap,Re=new WeakMap,G=new WeakMap,ve=new WeakMap,D=new WeakMap,Ge=new WeakMap,we=new WeakMap,j=new WeakSet,Cn=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},z=function(e){const n=u=>{switch(e.type){case"failed":return{...u,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...u,fetchStatus:"paused"};case"continue":return{...u,fetchStatus:"fetching"};case"fetch":return{...u,...Fn(u.data,this.options),fetchMeta:e.meta??null};case"success":const r={...u,...Kt(e.data,e.dataUpdatedAt),dataUpdateCount:u.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return f(this,Re,e.manual?r:void 0),r;case"error":const s=e.error;
vendor: 9,989 bytes, line 30
30return{...u,error:s,errorUpdateCount:u.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:u.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...u,isInvalidated:!0};case"setState":return{...u,...e.state}}};this.state=n(this.state),O.batch(()=>{this.observers.forEach(u=>{u.onQueryUpdate()}),a(this,G).notify({query:this,type:"updated",action:e})})},nn);function Fn(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:An(e.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function Kt(t,e){return{data:t,dataUpdatedAt:e??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Vt(t){const e=typeof t.initialData=="function"?t.initialData():t.initialData,n=e!==void 0,u=n?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:n?u??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Q,M,Ke,L,Ae,Oe,Z,oe,Ve,Ie,De,Se,Me,le,ke,T,He,bt,pt,gt,yt,vt,wt,At,Tn,un,Pn=(un=class extends Qe{constructor(e,n){super();v(this,T);v(this,Q);v(this,M);v(this,Ke);v(this,L);v(this,Ae);v(this,Oe);v(this,Z);v(this,oe);v(this,Ve);v(this,Ie);v(this,De);v(this,Se);v(this,Me);v(this,le);v(this,ke,new Set);this.options=n,f(this,Q,e),f(this,oe,null),f(this,Z,_t()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(a(this,M).addObserver(this),Wt(a(this,M),this.options)?S(this,T,He).call(this):this.updateResult(),S(this,T,yt).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return St(a(this,M),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return St(a(this,M),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,S(this,T,vt).call(this),S(this,T,wt).call(this),a(this,M).removeObserver(this)}setOptions(e){const n=this.options,u=a(this,M);if(this.options=a(this,Q).defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof K(this.options.enabled,a(this,M))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");S(this,T,At).call(this),a(this,M).setOptions(this.options),n._defaulted&&!rt(this.options,n)&&a(this,Q).getQueryCache().notify({type:"observerOptionsUpdated",query:a(this,M),observer:this});const r=this.hasListeners();r&&qt(a(this,M),u,this.options,n)&&S(this,T,He).call(this),this.updateResult(),r&&(a(this,M)!==u||K(this.options.enabled,a(this,M))!==K(n.enabled,a(this,M))||_e(this.options.staleTime,a(this,M))!==_e(n.staleTime,a(this,M)))&&S(this,T,bt).call(this);const s=S(this,T,pt).call(this);r&&(a(this,M)!==u||K(this.options.enabled,a(this,M))!==K(n.enabled,a(this,M))||s!==a(this,le))&&S(this,T,gt).call(this,s)}getOptimisticResult(e){const n=a(this,Q).getQueryCache().build(a(this,Q),e),u=this.createResult(n,e);return Cu(this,u)&&(f(this,L,u),f(this,Oe,this.options),f(this,Ae,a(this,M).state)),u}getCurrentResult(){return a(this,L)}trackResult(e,n){return new Proxy(e,{get:(u,r)=>(this.trackProp(r),n==null||n(r),r==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&a(this,Z).status==="pending"&&a(this,Z).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(u,r))})}trackProp(e){a(this,ke).add(e)}getCurrentQuery(){return a(this,M)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const n=a(this,Q).defaultQueryOptions(e),u=a(this,Q).getQueryCache().build(a(this,Q),n);return u.fetch().then(()=>this.createResult(u,n))}fetch(e){return S(this,T,He).call(this,{...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),a(this,L)))}createResult(e,n){var I;const u=a(this,M),r=this.options,s=a(this,L),m=a(this,Ae),i=a(this,Oe),h=e!==u?e.state:a(this,Ke),{state:o}=e;let l={...o},c=!1,d;if(n._optimisticResults){const B=this.hasListeners(),ue=!B&&Wt(e,n),Ye=B&&qt(e,u,n,r);(ue||Ye)&&(l={...l,...Fn(o.data,e.options)}),n._optimisticResults==="isRestoring"&&(l.fetchStatus="idle")}let{error:y,errorUpdatedAt:g,status:b}=l;d=l.data;let A=!1;if(n.placeholderData!==void 0&&d===void 0&&b==="pending"){let B;s!=null&&s.isPlaceholderData&&n.placeholderData===(i==null?void 0:i.placeholderData)?(B=s.data,A=!0):B=typeof n.placeholderData=="function"?n.placeholderData((I=a(this,De))==null?void 0:I.state.data,a(this,De)):n.placeholderData,B!==void 0&&(b="success",d=mt(s==null?void 0:s.data,B,n),c=!0)}if(n.select&&d!==void 0&&!A)if(s&&d===(m==null?void 0:m.data)&&n.select===a(this,Ve))d=a(this,Ie);else try{f(this,Ve,n.select),d=n.select(d),d=mt(s==null?void 0:s.data,d,n),f(this,Ie,d),f(this,oe,null)}catch(B){f(this,oe,B)}a(this,oe)&&(y=a(this,oe),d=a(this,Ie),g=Date.now(),b="error");const P=l.fetchStatus==="fetching",C=b==="pending",p=b==="error",R=C&&P,N=d!==void 0,x={status:b,fetchStatus:l.fetchStatus,isPending:C,isSuccess:b==="success",isError:p,isInitialLoading:R,isLoading:R,data:d,dataUpdatedAt:l.dataUpdatedAt,error:y,errorUpdatedAt:g,failureCount:l.fetchFailureCount,failureReason:l.fetchFailureReason,errorUpdateCount:l.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:l.dataUpdateCount>h.dataUpdateCount||l.errorUpdateCount>h.errorUpdateCount,isFetching:P,isRefetching:P&&!C,isLoadingError:p&&!N,isPaused:l.fetchStatus==="paused",isPlaceholderData:c,isRefetchError:p&&N,isStale:Ot(e,n),refetch:this.refetch,promise:a(this,Z),isEnabled:K(n.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const B=x.data!==void 0,ue=x.status==="error"&&!B,Ye=Ze=>{ue?Ze.reject(x.error):B&&Ze.resolve(x.data)},It=()=>{const Ze=f(this,Z,x.promise=_t());Ye(Ze)},ze=a(this,Z);switch(ze.status){case"pending":e.queryHash===u.queryHash&&Ye(ze);break;case"fulfilled":(ue||x.data!==ze.value)&&It();break;case"rejected":(!ue||x.error!==ze.reason)&&It();break}}return x}updateResult(){const e=a(this,L),n=this.createResult(a(this,M),this.options);if(f(this,Ae,a(this,M).state),f(this,Oe,this.options),a(this,Ae).data!==void 0&&f(this,De,a(this,M)),rt(n,e))return;f(this,L,n);const u=()=>{if(!e)return!0;const{notifyOnChangeProps:r}=this.options,s=typeof r=="function"?r():r;if(s==="all"||!s&&!a(this,ke).size)return!0;const m=new Set(s??a(this,ke));return this.options.throwOnError&&m.add("error"),Object.keys(a(this,L)).some(i=>{const _=i;return a(this,L)[_]!==e[_]&&m.has(_)})};S(this,T,Tn).call(this,{listeners:u()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&S(this,T,yt).call(this)}},Q=new WeakMap,M=new WeakMap,Ke=new WeakMap,L=new WeakMap,Ae=new WeakMap,Oe=new WeakMap,Z=new WeakMap,oe=new WeakMap,Ve=new WeakMap,Ie=new WeakMap,De=new WeakMap,Se=new WeakMap,Me=new WeakMap,le=new WeakMap,ke=new WeakMap,T=new WeakSet,He=function(e){S(this,T,At).call(this);let n=a(this,M).fetch(this.options,e);return e!=null&&e.throwOnError||(n=n.catch(U)),n},bt=function(){S(this,T,vt).call(this);const e=_e(this.options.staleTime,a(this,M));if(je.isServer()||a(this,L).isStale||!ct(e))return;const u=yn(a(this,L).dataUpdatedAt,e)+1;f(this,Se,be.setTimeout(()=>{a(this,L).isStale||this.updateResult()},u))},pt=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(a(this,M)):this.options.refetchInterval)??!1},gt=function(e){S(this,T,wt).call(this),f(this,le,e),!(je.isServer()||K(this.options.enabled,a(this,M))===!1||!ct(a(this,le))||a(this,le)===0)&&f(this,Me,be.setInterval(()=>{(this.options.refetchIntervalInBackground||Tt.isFocused())&&S(this,T,He).call(this)},a(this,le)))},yt=function(){S(this,T,bt).call(this),S(this,T,gt).call(this,S(this,T,pt).call(this))},vt=function(){a(this,Se)!==void 0&&(be.clearTimeout(a(this,Se)),f(this,Se,void 0))},wt=function(){a(this,Me)!==void 0&&(be.clearInterval(a(this,Me)),f(this,Me,void 0))},At=function(){const e=a(this,Q).getQueryCache().build(a(this,Q),this.options);if(e===a(this,M))return;const n=a(this,M);f(this,M,e),f(this,Ke,e.state),this.hasListeners()&&(n==null||n.removeObserver(this),e.addObserver(this))},Tn=function(e){O.batch(()=>{e.listeners&&this.listeners.forEach(n=>{n(a(this,L))}),a(this,Q).getQueryCache().notify({query:a(this,M),type:"observerResultsUpdated"})})},un);function Mu(t,e){return K(e.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&e.retryOnMount===!1)}function Wt(t,e){return Mu(t,e)||t.state.data!==void 0&&St(t,e,e.refetchOnMount)}function St(t,e,n){if(K(e.enabled,t)!==!1&&_e(e.staleTime,t)!=="static"){const u=typeof n=="function"?n(t):n;return u==="always"||u!==!1&&Ot(t,e)}return!1}function qt(t,e,n,u){return(t!==e||K(u.enabled,t)===!1)&&(!n.suspense||t.state.status!=="error")&&Ot(t,n)}function Ot(t,e){return K(e.enabled,t)!==!1&&t.isStaleByTime(_e(e.staleTime,t))}function Cu(t,e){return!rt(t.getCurrentResult(),e)}function at(t){return{onFetch:(e,n)=>{var o,l,c,d,y;const u=e.options,r=(c=(l=(o=e.fetchOptions)==null?void 0:o.meta)==null?void 0:l.fetchMore)==null?void 0:c.direction,s=((d=e.state.data)==null?void 0:d.pages)||[],m=((y=e.state.data)==null?void 0:y.pageParams)||[];let i={pages:[],pageParams:[]},_=0;const h=async()=>{let g=!1;const b=C=>{gu(C,()=>e.signal,()=>g=!0)},A=wn(e.options,e.fetchOptions),P=async(C,p,R)=>{if(g)return Promise.reject();if(p==null&&C.pages.length)return Promise.resolve(C);const ne=(()=>{const ue={client:e.client,queryKey:e.queryKey,pageParam:p,direction:R?"backward":"forward",meta:e.options.meta};return b(ue),ue})(),x=await A(ne),{maxPages:I}=e.options,B=R?pu:bu;return{pages:B(C.pages,x,I),pageParams:B(C.pageParams,p,I)}};if(r&&s.length){const C=r==="backward",p=C?xn:Mt,R={pages:s,pageParams:m},N=p(u,R);i=await P(R,N,C)}else{const C=t??s.length;do{const p=_===0?m[0]??u.initialPageParam:Mt(u,i);if(_>0&&p==null)break;
30i=await P(i,p),_++}while(_<C)}return i};e.options.persister?e.fetchFn=()=>{var g,b;return(b=(g=e.options).persister)==null?void 0:b.call(g,h,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},n)}:e.fetchFn=h}}}function Mt(t,{pages:e,pageParams:n}){const u=e.length-1;return e.length>0?t.getNextPageParam(e[u],e,n[u],n):void 0}function xn(t,{pages:e,pageParams:n}){var u;return e.length>0?(u=t.getPreviousPageParam)==null?void 0:u.call(t,e[0],e,n[0],n):void 0}function Fu(t,e){return e?Mt(t,e)!=null:!1}function Pu(t,e){return!e||!t.getPreviousPageParam?!1:xn(t,e)!=null}var Tu=class extends Pn{constructor(t,e){super(t,e)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(t){super.setOptions({...t,behavior:at()})}getOptimisticResult(t){return t.behavior=at(),super.getOptimisticResult(t)}fetchNextPage(t){return this.fetch({...t,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(t){return this.fetch({...t,meta:{fetchMore:{direction:"backward"}}})}createResult(t,e){var y,g;const{state:n}=t,u=super.createResult(t,e),{isFetching:r,isRefetching:s,isError:m,isRefetchError:i}=u,_=(g=(y=n.fetchMeta)==null?void 0:y.fetchMore)==null?void 0:g.direction,h=m&&_==="forward",o=r&&_==="forward",l=m&&_==="backward",c=r&&_==="backward";return{...u,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:Fu(e,n.data),hasPreviousPage:Pu(e,n.data),isFetchNextPageError:h,isFetchingNextPage:o,isFetchPreviousPageError:l,isFetchingPreviousPage:c,isRefetchError:i&&!h&&!l,isRefetching:s&&!o&&!c}}},We,W,k,Ce,q,re,rn,xu=(rn=class extends Mn{constructor(e){super();v(this,q);v(this,We);v(this,W);v(this,k);v(this,Ce);f(this,We,e.client),this.mutationId=e.mutationId,f(this,k,e.mutationCache),f(this,W,[]),this.state=e.state||En(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){a(this,W).includes(e)||(a(this,W).push(e),this.clearGcTimeout(),a(this,k).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){f(this,W,a(this,W).filter(n=>n!==e)),this.scheduleGc(),a(this,k).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){a(this,W).length||(this.state.status==="pending"?this.scheduleGc():a(this,k).remove(this))}continue(){var e;return((e=a(this,Ce))==null?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var m,i,_,h,o,l,c,d,y,g,b,A,P,C,p,R,N,ne;const n=()=>{S(this,q,re).call(this,{type:"continue"})},u={client:a(this,We),meta:this.options.meta,mutationKey:this.options.mutationKey};f(this,Ce,Sn({fn:()=>this.options.mutationFn?this.options.mutationFn(e,u):Promise.reject(new Error("No mutationFn found")),onFail:(x,I)=>{S(this,q,re).call(this,{type:"failed",failureCount:x,error:I})},onPause:()=>{S(this,q,re).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>a(this,k).canRun(this)}));const r=this.state.status==="pending",s=!a(this,Ce).canStart();try{if(r)n();else{S(this,q,re).call(this,{type:"pending",variables:e,isPaused:s}),a(this,k).config.onMutate&&await a(this,k).config.onMutate(e,this,u);const I=await((i=(m=this.options).onMutate)==null?void 0:i.call(m,e,u));I!==this.state.context&&S(this,q,re).call(this,{type:"pending",context:I,variables:e,isPaused:s})}const x=await a(this,Ce).start();return await((h=(_=a(this,k).config).onSuccess)==null?void 0:h.call(_,x,e,this.state.context,this,u)),await((l=(o=this.options).onSuccess)==null?void 0:l.call(o,x,e,this.state.context,u)),await((d=(c=a(this,k).config).onSettled)==null?void 0:d.call(c,x,null,this.state.variables,this.state.context,this,u)),await((g=(y=this.options).onSettled)==null?void 0:g.call(y,x,null,e,this.state.context,u)),S(this,q,re).call(this,{type:"success",data:x}),x}catch(x){try{await((A=(b=a(this,k).config).onError)==null?void 0:A.call(b,x,e,this.state.context,this,u))}catch(I){Promise.reject(I)}try{await((C=(P=this.options).onError)==null?void 0:C.call(P,x,e,this.state.context,u))}catch(I){Promise.reject(I)}try{await((R=(p=a(this,k).config).onSettled)==null?void 0:R.call(p,void 0,x,this.state.variables,this.state.context,this,u))}catch(I){Promise.reject(I)}try{await((ne=(N=this.options).onSettled)==null?void 0:ne.call(N,void 0,x,e,this.state.context,u))}catch(I){Promise.reject(I)}throw S(this,q,re).call(this,{type:"error",error:x}),x}finally{a(this,k).runNext(this)}}},We=new WeakMap,W=new WeakMap,k=new WeakMap,Ce=new WeakMap,q=new WeakSet,re=function(e){const n=u=>{switch(e.type){case"failed":return{...u,failureCount:e.failureCount,failureReason:e.error};
30case"pause":return{...u,isPaused:!0};case"continue":return{...u,isPaused:!1};case"pending":return{...u,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...u,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...u,data:void 0,error:e.error,failureCount:u.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=n(this.state),O.batch(()=>{a(this,W).forEach(u=>{u.onMutationUpdate(e)}),a(this,k).notify({mutation:this,type:"updated",action:e})})},rn);function En(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var J,V,qe,sn,Eu=(sn=class extends Qe{constructor(e={}){super();v(this,J);v(this,V);v(this,qe);this.config=e,f(this,J,new Set),f(this,V,new Map),f(this,qe,0)}build(e,n,u){const r=new xu({client:e,mutationCache:this,mutationId:++Je(this,qe)._,options:e.defaultMutationOptions(n),state:u});return this.add(r),r}add(e){a(this,J).add(e);const n=tt(e);if(typeof n=="string"){const u=a(this,V).get(n);u?u.push(e):a(this,V).set(n,[e])}this.notify({type:"added",mutation:e})}remove(e){if(a(this,J).delete(e)){const n=tt(e);if(typeof n=="string"){const u=a(this,V).get(n);if(u)if(u.length>1){const r=u.indexOf(e);r!==-1&&u.splice(r,1)}else u[0]===e&&a(this,V).delete(n)}}this.notify({type:"removed",mutation:e})}canRun(e){const n=tt(e);if(typeof n=="string"){const u=a(this,V).get(n),r=u==null?void 0:u.find(s=>s.state.status==="pending");return!r||r===e}else return!0}runNext(e){var u;const n=tt(e);if(typeof n=="string"){const r=(u=a(this,V).get(n))==null?void 0:u.find(s=>s!==e&&s.state.isPaused);return(r==null?void 0:r.continue())??Promise.resolve()}else return Promise.resolve()}clear(){O.batch(()=>{a(this,J).forEach(e=>{this.notify({type:"removed",mutation:e})}),a(this,J).clear(),a(this,V).clear()})}getAll(){return Array.from(a(this,J))}find(e){const n={exact:!0,...e};return this.getAll().find(u=>$t(n,u))}findAll(e={}){return this.getAll().filter(n=>$t(e,n))}notify(e){O.batch(()=>{this.listeners.forEach(n=>{n(e)})})}resumePausedMutations(){const e=this.getAll().filter(n=>n.state.isPaused);return O.batch(()=>Promise.all(e.map(n=>n.continue().catch(U))))}},J=new WeakMap,V=new WeakMap,qe=new WeakMap,sn);function tt(t){var e;return(e=t.options.scope)==null?void 0:e.id}var X,he,H,ee,te,ut,Ct,an,Ru=(an=class extends Qe{constructor(e,n){super();v(this,te);v(this,X);v(this,he);v(this,H);v(this,ee);f(this,X,e),this.setOptions(n),this.bindMethods(),S(this,te,ut).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){var u;const n=this.options;this.options=a(this,X).defaultMutationOptions(e),rt(this.options,n)||a(this,X).getMutationCache().notify({type:"observerOptionsUpdated",mutation:a(this,H),observer:this}),n!=null&&n.mutationKey&&this.options.mutationKey&&Pe(n.mutationKey)!==Pe(this.options.mutationKey)?this.reset():((u=a(this,H))==null?void 0:u.state.status)==="pending"&&a(this,H).setOptions(this.options)}onUnsubscribe(){var e;this.hasListeners()||(e=a(this,H))==null||e.removeObserver(this)}onMutationUpdate(e){S(this,te,ut).call(this),S(this,te,Ct).call(this,e)}getCurrentResult(){return a(this,he)}reset(){var e;(e=a(this,H))==null||e.removeObserver(this),f(this,H,void 0),S(this,te,ut).call(this),S(this,te,Ct).call(this)}mutate(e,n){var u;return f(this,ee,n),(u=a(this,H))==null||u.removeObserver(this),f(this,H,a(this,X).getMutationCache().build(a(this,X),this.options)),a(this,H).addObserver(this),a(this,H).execute(e)}},X=new WeakMap,he=new WeakMap,H=new WeakMap,ee=new WeakMap,te=new WeakSet,ut=function(){var n;const e=((n=a(this,H))==null?void 0:n.state)??En();f(this,he,{...e,isPending:e.status==="pending",isSuccess:e.status==="success",isError:e.status==="error",isIdle:e.status==="idle",mutate:this.mutate,reset:this.reset})},Ct=function(e){O.batch(()=>{var n,u,r,s,m,i,_,h;if(a(this,ee)&&this.hasListeners()){const o=a(this,he).variables,l=a(this,he).context,c={client:a(this,X),meta:this.options.meta,mutationKey:this.options.mutationKey};if((e==null?void 0:e.type)==="success"){try{(u=(n=a(this,ee)).onSuccess)==null||u.call(n,e.data,o,l,c)}catch(d){Promise.reject(d)}try{(s=(r=a(this,ee)).onSettled)==null||s.call(r,e.data,null,o,l,c)}catch(d){Promise.reject(d)}}else if((e==null?void 0:e.type)==="error"){try{(i=(m=a(this,ee)).onError)==null||i.call(m,e.error,o,l,c)}catch(d){Promise.reject(d)}try{(h=(_=a(this,ee)).onSettled)==null||h.call(_,void 0,e.error,o,l,c)}catch(d){Promise.reject(d)}}}
vendor: 6,385 bytes, line 30
30this.listeners.forEach(o=>{o(a(this,he))})})},an),Y,on,Ou=(on=class extends Qe{constructor(e={}){super();v(this,Y);this.config=e,f(this,Y,new Map)}build(e,n,u){const r=n.queryKey,s=n.queryHash??xt(r,n);let m=this.get(s);return m||(m=new Su({client:e,queryKey:r,queryHash:s,options:e.defaultQueryOptions(n),state:u,defaultOptions:e.getQueryDefaults(r)}),this.add(m)),m}add(e){a(this,Y).has(e.queryHash)||(a(this,Y).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const n=a(this,Y).get(e.queryHash);n&&(e.destroy(),n===e&&a(this,Y).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){O.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return a(this,Y).get(e)}getAll(){return[...a(this,Y).values()]}find(e){const n={exact:!0,...e};return this.getAll().find(u=>Ht(n,u))}findAll(e={}){const n=this.getAll();return Object.keys(e).length>0?n.filter(u=>Ht(e,u)):n}notify(e){O.batch(()=>{this.listeners.forEach(n=>{n(e)})})}onFocus(){O.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){O.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Y=new WeakMap,on),E,ce,de,Be,Le,me,Ue,Ne,ln,Xr=(ln=class{constructor(t={}){v(this,E);v(this,ce);v(this,de);v(this,Be);v(this,Le);v(this,me);v(this,Ue);v(this,Ne);f(this,E,t.queryCache||new Ou),f(this,ce,t.mutationCache||new Eu),f(this,de,t.defaultOptions||{}),f(this,Be,new Map),f(this,Le,new Map),f(this,me,0)}mount(){Je(this,me)._++,a(this,me)===1&&(f(this,Ue,Tt.subscribe(async t=>{t&&(await this.resumePausedMutations(),a(this,E).onFocus())})),f(this,Ne,st.subscribe(async t=>{t&&(await this.resumePausedMutations(),a(this,E).onOnline())})))}unmount(){var t,e;Je(this,me)._--,a(this,me)===0&&((t=a(this,Ue))==null||t.call(this),f(this,Ue,void 0),(e=a(this,Ne))==null||e.call(this),f(this,Ne,void 0))}isFetching(t){return a(this,E).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return a(this,ce).findAll({...t,status:"pending"}).length}getQueryData(t){var n;const e=this.defaultQueryOptions({queryKey:t});return(n=a(this,E).get(e.queryHash))==null?void 0:n.state.data}ensureQueryData(t){const e=this.defaultQueryOptions(t),n=a(this,E).build(this,e),u=n.state.data;return u===void 0?this.fetchQuery(t):(t.revalidateIfStale&&n.isStaleByTime(_e(e.staleTime,n))&&this.prefetchQuery(e),Promise.resolve(u))}getQueriesData(t){return a(this,E).findAll(t).map(({queryKey:e,state:n})=>{const u=n.data;return[e,u]})}setQueryData(t,e,n){const u=this.defaultQueryOptions({queryKey:t}),r=a(this,E).get(u.queryHash),s=r==null?void 0:r.state.data,m=mu(e,s);if(m!==void 0)return a(this,E).build(this,u).setData(m,{...n,manual:!0})}setQueriesData(t,e,n){return O.batch(()=>a(this,E).findAll(t).map(({queryKey:u})=>[u,this.setQueryData(u,e,n)]))}getQueryState(t){var n;const e=this.defaultQueryOptions({queryKey:t});return(n=a(this,E).get(e.queryHash))==null?void 0:n.state}removeQueries(t){const e=a(this,E);O.batch(()=>{e.findAll(t).forEach(n=>{e.remove(n)})})}resetQueries(t,e){const n=a(this,E);return O.batch(()=>(n.findAll(t).forEach(u=>{u.reset()}),this.refetchQueries({type:"active",...t},e)))}cancelQueries(t,e={}){const n={revert:!0,...e},u=O.batch(()=>a(this,E).findAll(t).map(r=>r.cancel(n)));return Promise.all(u).then(U).catch(U)}invalidateQueries(t,e={}){return O.batch(()=>(a(this,E).findAll(t).forEach(n=>{n.invalidate()}),(t==null?void 0:t.refetchType)==="none"?Promise.resolve():this.refetchQueries({...t,type:(t==null?void 0:t.refetchType)??(t==null?void 0:t.type)??"active"},e)))}refetchQueries(t,e={}){const n={...e,cancelRefetch:e.cancelRefetch??!0},u=O.batch(()=>a(this,E).findAll(t).filter(r=>!r.isDisabled()&&!r.isStatic()).map(r=>{let s=r.fetch(void 0,n);return n.throwOnError||(s=s.catch(U)),r.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(u).then(U)}fetchQuery(t){const e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);const n=a(this,E).build(this,e);return n.isStaleByTime(_e(e.staleTime,n))?n.fetch(e):Promise.resolve(n.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(U).catch(U)}fetchInfiniteQuery(t){return t.behavior=at(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(U).catch(U)}ensureInfiniteQueryData(t){return t.behavior=at(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return st.isOnline()?a(this,ce).resumePausedMutations():Promise.resolve()}getQueryCache(){return a(this,E)}getMutationCache(){return a(this,ce)}getDefaultOptions(){return a(this,de)}setDefaultOptions(t){f(this,de,t)}setQueryDefaults(t,e){a(this,Be).set(Pe(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...a(this,Be).values()],n={};return e.forEach(u=>{$e(t,u.queryKey)&&Object.assign(n,u.defaultOptions)}),n}setMutationDefaults(t,e){a(this,Le).set(Pe(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...a(this,Le).values()],n={};return e.forEach(u=>{$e(t,u.mutationKey)&&Object.assign(n,u.defaultOptions)}),n}defaultQueryOptions(t){if(t._defaulted)return t;const e={...a(this,de).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=xt(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===Et&&(e.enabled=!1),e}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...a(this,de).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){a(this,E).clear(),a(this,ce).clear()}},E=new WeakMap,ce=new WeakMap,de=new WeakMap,Be=new WeakMap,Le=new WeakMap,me=new WeakMap,Ue=new WeakMap,Ne=new WeakMap,ln),Rn=w.createContext(void 0),On=t=>{const e=w.useContext(Rn);if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},es=({client:t,children:e})=>(w.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),Qn.jsx(Rn.Provider,{value:t,children:e})),In=w.createContext(!1),Iu=()=>w.useContext(In);In.Provider;function Du(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var ku=w.createContext(Du()),Bu=()=>w.useContext(ku),Lu=(t,e,n)=>{const u=n!=null&&n.state.error&&typeof t.throwOnError=="function"?Rt(t.throwOnError,[n.state.error,n]):t.throwOnError;(t.suspense||t.experimental_prefetchInRender||u)&&(e.isReset()||(t.retryOn
30Mount=!1))},Uu=t=>{w.useEffect(()=>{t.clearReset()},[t])},Nu=({result:t,errorResetBoundary:e,throwOnError:n,query:u,suspense:r})=>t.isError&&!e.isReset()&&!t.isFetching&&u&&(r&&t.data===void 0||Rt(n,[t.error,u])),Qu=t=>{if(t.suspense){const n=r=>r==="static"?r:Math.max(r??1e3,1e3),u=t.staleTime;t.staleTime=typeof u=="function"?(...r)=>n(u(...r)):n(u),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3))}},Hu=(t,e)=>t.isLoading&&t.isFetching&&!e,$u=(t,e)=>(t==null?void 0:t.suspense)&&e.isPending,Yt=(t,e,n)=>e.fetchOptimistic(t).catch(()=>{n.clearReset()});function Dn(t,e,n){var c,d,y,g;const u=Iu(),r=Bu(),s=On(),m=s.defaultQueryOptions(t);(d=(c=s.getDefaultOptions().queries)==null?void 0:c._experimental_beforeQuery)==null||d.call(c,m);const i=s.getQueryCache().get(m.queryHash);m._optimisticResults=u?"isRestoring":"optimistic",Qu(m),Lu(m,r,i),Uu(r);const _=!s.getQueryCache().get(m.queryHash),[h]=w.useState(()=>new e(s,m)),o=h.getOptimisticResult(m),l=!u&&t.subscribed!==!1;if(w.useSyncExternalStore(w.useCallback(b=>{const A=l?h.subscribe(O.batchCalls(b)):U;return h.updateResult(),A},[h,l]),()=>h.getCurrentResult(),()=>h.getCurrentResult()),w.useEffect(()=>{h.setOptions(m)},[m,h]),$u(m,o))throw Yt(m,h,r);if(Nu({result:o,errorResetBoundary:r,throwOnError:m.throwOnError,query:i,suspense:m.suspense}))throw o.error;if((g=(y=s.getDefaultOptions().queries)==null?void 0:y._experimental_afterQuery)==null||g.call(y,m,o),m.experimental_prefetchInRender&&!je.isServer()&&Hu(o,u)){const b=_?Yt(m,h,r):i==null?void 0:i.promise;b==null||b.catch(U).finally(()=>{h.updateResult()})}return m.notifyOnChangeProps?o:h.trackResult(o)}function ts(t,e){return Dn(t,Pn)}function ns(t,e){const n=On(),[u]=w.useState(()=>new Ru(n,t));w.useEffect(()=>{u.setOptions(t)},[u,t]);const r=w.useSyncExternalStore(w.useCallback(m=>u.subscribe(O.batchCalls(m)),[u]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),s=w.useCallback((m,i)=>{u.mutate(m,i).catch(U)},[u]);if(r.error&&Rt(u.options.throwOnError,[r.error]))throw r.error;return{...r,mutate:s,mutateAsync:r.mutate}}function us(t,e){return Dn(t,Tu)}var rs=({onShow:t})=>{const e=w.useRef(t);w.useEffect(()=>{e.current=t}),w.useEffect(()=>{const n=u=>{u.persisted&&e.current()};return window.addEventListener("pageshow",n),()=>window.removeEventListener("pageshow",n)},[])},ss=({width:t=0,height:e=0}={})=>{const[n,u]=w.useState(()=>({width:typeof window<"u"?window.innerWidth:0,height:typeof window<"u"?window.innerHeight:0}));return w.useEffect(()=>{const r=()=>{u(s=>{const m={width:window.innerWidth,height:window.innerHeight};return s.width===m.width&&s.height===m.height?s:m})};return r(),window.addEventListener("resize",r,{capture:!1,passive:!0}),()=>{window.removeEventListener("resize",r)}},[]),{width:n.width,height:n.height,isLessWidth:n.width<=t,isLessHeight:n.height<=e}},as=()=>{const[t,e]=w.useState(()=>({x:0,y:0,width:0,height:0,toUp:!1,toDown:!1,diffY:0}));return w.useEffect(()=>{const n=()=>{e(u=>{const{scrollX:r,scrollY:s,innerWidth:m,innerHeight:i}=window;return u.x!==r||u.y!==s?{x:r,y:s,width:m,height:i,toUp:s<u.y,toDown:u.y<s,diffY:s-u.y}:u})};return n(),window.addEventListener("scroll",n,{capture:!1,passive:!0}),()=>{window.removeEventListener("scroll",n)}},[]),t},ju=()=>()=>{},kn=()=>"SSR",Gu=()=>typeof navigator>"u"?kn():navigator.userAgent,Ku=()=>{const t=w.useSyncExternalStore(ju,Gu,kn),e=w.useMemo(()=>!!t.match(/SSR/i),[t]),n=w.useMemo(()=>!!t.match(/Android/i),[t]),u=w.useMemo(()=>!!t.match(/iPhone|iPad|iPod|Mobile/i),[t]),r=w.useMemo(()=>!!t.match(/Mac/i),[t]),s=w.useMemo(()=>!!t.match(/Opera Mini/i),[t]),m=w.useMemo(()=>!!t.match(/IEMobile/i),[t]),i=w.useMemo(()=>!!t.match(/Safari/i)&&t.indexOf("Chrome")<=-1,[t]),_=w.useMemo(()=>!!gn("webview_mode")||!!t.match(/WBKWebView/i),[t]),h=w.useMemo(()=>n||u||s||m||_,[n,u,s,m,_]),o=w.useMemo(()=>!h,[h]);return{userAgent:t,isSSR:e,isAndroid:n,isIOS:u,isMac:r,isOpera:s,isWindowsMobile:m,isSafari:i,isMobile:h,isDesktop:o,isWebView:_}},Vu=Object.defineProperty,Wu=Object.defineProperties,qu=Object.getOwnPropertyDescriptors,zt=Object.getOwnPropertySymbols,Yu=Object.prototype.hasOwnProperty,zu=Object.prototype.propertyIsEnumerable,Zt=(t,e,n)=>e in t?Vu(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Zu=(t,e)=>{for(var n in e||(e={}))Yu.call(e,n)&&Zt(t,n,e[n]);if(zt)for(var n of zt(e))zu.call(e,n)&&Zt(t,n,e[n]);return t},Ju=(t,e)=>Wu(t,qu(e)),Xu=()=>()=>{},Bn={cookieEnabled:!1,onLine:!1,screen:{width:0,height:0,availWi
30dth:0,availHeight:0,colorDepth:0,pixelDepth:0},window:{innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0,devicePixelRatio:1}},er=()=>Bn,tr=()=>typeof window>"u"||typeof navigator>"u"?Bn:{cookieEnabled:navigator.cookieEnabled,onLine:navigator.onLine,screen:{width:screen.width,height:screen.height,availWidth:screen.availWidth,availHeight:screen.availHeight,colorDepth:screen.colorDepth,pixelDepth:screen.pixelDepth},window:{innerWidth:window.innerWidth,innerHeight:window.innerHeight,outerWidth:window.outerWidth,outerHeight:window.outerHeight,devicePixelRatio:window.devicePixelRatio}},is=()=>{const{isMobile:t,isDesktop:e,isAndroid:n,isIOS:u,isMac:r,isSafari:s,isWebView:m,isSSR:i}=Ku(),[_]=w.useState(()=>{let o;return()=>o??(o=tr())}),h=w.useSyncExternalStore(Xu,_,er);return w.useMemo(()=>Ju(Zu({},h),{isMobile:t,isDesktop:e,isAndroid:n,isIOS:u,isMac:r,isSafari:s,isWebView:m,isSSR:i}),[h,t,e,n,u,r,s,m,i])},fe={},nt=t=>Date.now()+t*1e3,os=({id:t,initialSeconds:e=60})=>{const[n,u]=w.useState(()=>nt(e)),[r,s]=w.useState(e),m=d=>{clearInterval(fe[t]),u(nt(d)),s(d),l()},i=d=>{clearInterval(fe[t]),u(nt(d)),s(d),l()},_=()=>{clearInterval(fe[t]),u(nt(e)),s(e),l()},h=()=>{clearInterval(fe[t]),s(0)},o=w.useCallback(()=>{s(d=>(d<=1&&clearInterval(fe[t]),d<=1?0:d-1))},[t]),l=w.useCallback(()=>{fe[t]=setInterval(o,1e3)},[o,t]);w.useEffect(()=>(l(),()=>clearInterval(fe[t])),[l]);const c=w.useMemo(()=>{const d=n-Date.now();return{days:Math.floor(d/(1e3*60*60*24)),hours:Math.floor(d%(1e3*60*60*24)/(1e3*60*60)),minutes:Math.floor(d%(1e3*60*60)/(1e3*60)),seconds:Math.floor(d%(1e3*60)/1e3)}},[r,n]);return{timer:c,isTimeUp:c.days<=0&&c.hours<=0&&c.minutes<=0&&c.seconds<=0,count:r,reset:_,set:m,setSeconds:i,stop:h}},ls=()=>{const t=w.useRef(null),e=(n,u=500)=>{t.current!==null&&window.clearTimeout(t.current),t.current=window.setTimeout(()=>{t.current=null,n()},u)};return w.useEffect(()=>()=>{t.current!==null&&window.clearTimeout(t.current)},[]),{debounce:e}},hs=(t={})=>{const[e,n]=w.useState(!1),u=w.useRef(null);return w.useEffect(()=>{const r=u.current;if(!r)return;const s=new IntersectionObserver(([m])=>{const i=m.isIntersecting;n(i),t.triggerOnce&&i&&s.unobserve(r)},t);return s.observe(r),()=>{s.unobserve(r)}},[]),[u,e]};export{Kr as $,On as A,Jr as B,Dr as C,es as D,rr as E,bn as F,vr as G,os as H,Qr as I,Xn as J,ls as K,Ur as L,pr as M,Br as N,jr as O,$r as P,Xr as Q,kr as R,Hr as S,hr as T,iu as U,zn as V,$ as W,rs as X,cr as Y,Zr as Z,ar as _,Nr as a,ss as a0,ir as a1,hs as a2,as as a3,br as a4,Yr as a5,zr as a6,Or as a7,Ir as a8,Wr as a9,Vr as aa,Gr as ab,Lr as ac,Er as ad,xr as ae,qr as af,gr as ag,wr as ah,Ar as ai,Sr as aj,Tr as b,Yn as c,Pr as d,Rr as e,fn as f,yr as g,mr as h,Zn as i,Qn as j,sr as k,or as l,Cr as m,gn as n,dr as o,fr as p,lr as q,Fr as r,_r as s,is as t,Ku as u,Mr as v,Jn as w,ts as x,ns as y,us as z};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.