diff --git a/assets/index-DNAGq3X1.js b/assets/index-DmV0sjkG.js similarity index 99% rename from assets/index-DNAGq3X1.js rename to assets/index-DmV0sjkG.js index b465a0b..f4c3238 100644 --- a/assets/index-DNAGq3X1.js +++ b/assets/index-DmV0sjkG.js @@ -42,7 +42,7 @@ Error generating stack: `+o.message+` `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(s){return s instanceof this?s:new this(s)}static concat(s,...u){const c=new this(s);return u.forEach(d=>c.set(d)),c}static accessor(s){const c=(this[Pc]=this[Pc]={accessors:{}}).accessors,d=this.prototype;function m(y){const E=Lr(y);c[E]||(Dm(d,y),c[E]=!0)}return k.isArray(s)?s.forEach(m):m(s),this}}Ge.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);k.reduceDescriptors(Ge.prototype,({value:i},s)=>{let u=s[0].toUpperCase()+s.slice(1);return{get:()=>i,set(c){this[u]=c}}});k.freezeMethods(Ge);function is(i,s){const u=this||zr,c=s||u,d=Ge.from(c.headers);let m=c.data;return k.forEach(i,function(E){m=E.call(u,m,d.normalize(),s?s.status:void 0)}),d.normalize(),m}function ef(i){return!!(i&&i.__CANCEL__)}function qn(i,s,u){X.call(this,i??"canceled",X.ERR_CANCELED,s,u),this.name="CanceledError"}k.inherits(qn,X,{__CANCEL__:!0});function tf(i,s,u){const c=u.config.validateStatus;!u.status||!c||c(u.status)?i(u):s(new X("Request failed with status code "+u.status,[X.ERR_BAD_REQUEST,X.ERR_BAD_RESPONSE][Math.floor(u.status/100)-4],u.config,u.request,u))}function zm(i){const s=/^([-+\w]{1,25})(:?\/\/|:)/.exec(i);return s&&s[1]||""}function Mm(i,s){i=i||10;const u=new Array(i),c=new Array(i);let d=0,m=0,y;return s=s!==void 0?s:1e3,function(A){const R=Date.now(),O=c[m];y||(y=R),u[d]=A,c[d]=R;let L=m,H=0;for(;L!==d;)H+=u[L++],L=L%i;if(d=(d+1)%i,d===m&&(m=(m+1)%i),R-y{u=O,d=null,m&&(clearTimeout(m),m=null),i.apply(null,R)};return[(...R)=>{const O=Date.now(),L=O-u;L>=c?y(R,O):(d=R,m||(m=setTimeout(()=>{m=null,y(d)},c-L)))},()=>d&&y(d)]}const Jl=(i,s,u=3)=>{let c=0;const d=Mm(50,250);return Bm(m=>{const y=m.loaded,E=m.lengthComputable?m.total:void 0,A=y-c,R=d(A),O=y<=E;c=y;const L={loaded:y,total:E,progress:E?y/E:void 0,bytes:A,rate:R||void 0,estimated:R&&E&&O?(E-y)/R:void 0,event:m,lengthComputable:E!=null,[s?"download":"upload"]:!0};i(L)},u)},Oc=(i,s)=>{const u=i!=null;return[c=>s[0]({lengthComputable:u,total:i,loaded:c}),s[1]]},Tc=i=>(...s)=>k.asap(()=>i(...s)),Um=Be.hasStandardBrowserEnv?((i,s)=>u=>(u=new URL(u,Be.origin),i.protocol===u.protocol&&i.host===u.host&&(s||i.port===u.port)))(new URL(Be.origin),Be.navigator&&/(msie|trident)/i.test(Be.navigator.userAgent)):()=>!0,Im=Be.hasStandardBrowserEnv?{write(i,s,u,c,d,m){const y=[i+"="+encodeURIComponent(s)];k.isNumber(u)&&y.push("expires="+new Date(u).toGMTString()),k.isString(c)&&y.push("path="+c),k.isString(d)&&y.push("domain="+d),m===!0&&y.push("secure"),document.cookie=y.join("; ")},read(i){const s=document.cookie.match(new RegExp("(^|;\\s*)("+i+")=([^;]*)"));return s?decodeURIComponent(s[3]):null},remove(i){this.write(i,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Hm(i){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(i)}function Vm(i,s){return s?i.replace(/\/?\/$/,"")+"/"+s.replace(/^\/+/,""):i}function nf(i,s){return i&&!Hm(s)?Vm(i,s):s}const Ac=i=>i instanceof Ge?{...i}:i;function gn(i,s){s=s||{};const u={};function c(R,O,L,H){return k.isPlainObject(R)&&k.isPlainObject(O)?k.merge.call({caseless:H},R,O):k.isPlainObject(O)?k.merge({},O):k.isArray(O)?O.slice():O}function d(R,O,L,H){if(k.isUndefined(O)){if(!k.isUndefined(R))return c(void 0,R,L,H)}else return c(R,O,L,H)}function m(R,O){if(!k.isUndefined(O))return c(void 0,O)}function y(R,O){if(k.isUndefined(O)){if(!k.isUndefined(R))return c(void 0,R)}else return c(void 0,O)}function E(R,O,L){if(L in s)return c(R,O);if(L in i)return c(void 0,R)}const A={url:m,method:m,data:m,baseURL:y,transformRequest:y,transformResponse:y,paramsSerializer:y,timeout:y,timeoutMessage:y,withCredentials:y,withXSRFToken:y,adapter:y,responseType:y,xsrfCookieName:y,xsrfHeaderName:y,onUploadProgress:y,onDownloadProgress:y,decompress:y,maxContentLength:y,maxBodyLength:y,beforeRedirect:y,transport:y,httpAgent:y,httpsAgent:y,cancelToken:y,socketPath:y,responseEncoding:y,validateStatus:E,headers:(R,O,L)=>d(Ac(R),Ac(O),L,!0)};return k.forEach(Object.keys(Object.assign({},i,s)),function(O){const L=A[O]||d,H=L(i[O],s[O],O);k.isUndefined(H)&&L!==E||(u[O]=H)}),u}const rf=i=>{const s=gn({},i);let{data:u,withXSRFToken:c,xsrfHeaderName:d,xsrfCookieName:m,headers:y,auth:E}=s;s.headers=y=Ge.from(y),s.url=Jc(nf(s.baseURL,s.url),i.params,i.paramsSerializer),E&&y.set("Authorization","Basic "+btoa((E.username||"")+":"+(E.password?unescape(encodeURIComponent(E.password)):"")));let A;if(k.isFormData(u)){if(Be.hasStandardBrowserEnv||Be.hasStandardBrowserWebWorkerEnv)y.setContentType(void 0);else if((A=y.getContentType())!==!1){const[R,...O]=A?A.split(";").map(L=>L.trim()).filter(Boolean):[];y.setContentType([R||"multipart/form-data",...O].join("; "))}}if(Be.hasStandardBrowserEnv&&(c&&k.isFunction(c)&&(c=c(s)),c||c!==!1&&Um(s.url))){const R=d&&m&&Im.read(m);R&&y.set(d,R)}return s},Wm=typeof XMLHttpRequest<"u",Qm=Wm&&function(i){return new Promise(function(u,c){const d=rf(i);let m=d.data;const y=Ge.from(d.headers).normalize();let{responseType:E,onUploadProgress:A,onDownloadProgress:R}=d,O,L,H,G,F;function D(){G&&G(),F&&F(),d.cancelToken&&d.cancelToken.unsubscribe(O),d.signal&&d.signal.removeEventListener("abort",O)}let _=new XMLHttpRequest;_.open(d.method.toUpperCase(),d.url,!0),_.timeout=d.timeout;function b(){if(!_)return;const oe=Ge.from("getAllResponseHeaders"in _&&_.getAllResponseHeaders()),ae={data:!E||E==="text"||E==="json"?_.responseText:_.response,status:_.status,statusText:_.statusText,headers:oe,config:i,request:_};tf(function(xe){u(xe),D()},function(xe){c(xe),D()},ae),_=null}"onloadend"in _?_.onloadend=b:_.onreadystatechange=function(){!_||_.readyState!==4||_.status===0&&!(_.responseURL&&_.responseURL.indexOf("file:")===0)||setTimeout(b)},_.onabort=function(){_&&(c(new X("Request aborted",X.ECONNABORTED,i,_)),_=null)},_.onerror=function(){c(new X("Network Error",X.ERR_NETWORK,i,_)),_=null},_.ontimeout=function(){let ue=d.timeout?"timeout of "+d.timeout+"ms exceeded":"timeout exceeded";const ae=d.transitional||$c;d.timeoutErrorMessage&&(ue=d.timeoutErrorMessage),c(new X(ue,ae.clarifyTimeoutError?X.ETIMEDOUT:X.ECONNABORTED,i,_)),_=null},m===void 0&&y.setContentType(null),"setRequestHeader"in _&&k.forEach(y.toJSON(),function(ue,ae){_.setRequestHeader(ae,ue)}),k.isUndefined(d.withCredentials)||(_.withCredentials=!!d.withCredentials),E&&E!=="json"&&(_.responseType=d.responseType),R&&([H,F]=Jl(R,!0),_.addEventListener("progress",H)),A&&_.upload&&([L,G]=Jl(A),_.upload.addEventListener("progress",L),_.upload.addEventListener("loadend",G)),(d.cancelToken||d.signal)&&(O=oe=>{_&&(c(!oe||oe.type?new qn(null,i,_):oe),_.abort(),_=null)},d.cancelToken&&d.cancelToken.subscribe(O),d.signal&&(d.signal.aborted?O():d.signal.addEventListener("abort",O)));const ee=zm(d.url);if(ee&&Be.protocols.indexOf(ee)===-1){c(new X("Unsupported protocol "+ee+":",X.ERR_BAD_REQUEST,i));return}_.send(m||null)})},qm=(i,s)=>{const{length:u}=i=i?i.filter(Boolean):[];if(s||u){let c=new AbortController,d;const m=function(R){if(!d){d=!0,E();const O=R instanceof Error?R:this.reason;c.abort(O instanceof X?O:new qn(O instanceof Error?O.message:O))}};let y=s&&setTimeout(()=>{y=null,m(new X(`timeout ${s} of ms exceeded`,X.ETIMEDOUT))},s);const E=()=>{i&&(y&&clearTimeout(y),y=null,i.forEach(R=>{R.unsubscribe?R.unsubscribe(m):R.removeEventListener("abort",m)}),i=null)};i.forEach(R=>R.addEventListener("abort",m));const{signal:A}=c;return A.unsubscribe=()=>k.asap(E),A}},Km=function*(i,s){let u=i.byteLength;if(u{const d=Ym(i,s);let m=0,y,E=A=>{y||(y=!0,c&&c(A))};return new ReadableStream({async pull(A){try{const{done:R,value:O}=await d.next();if(R){E(),A.close();return}let L=O.byteLength;if(u){let H=m+=L;u(H)}A.enqueue(new Uint8Array(O))}catch(R){throw E(R),R}},cancel(A){return E(A),d.return()}},{highWaterMark:2})},ro=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",lf=ro&&typeof ReadableStream=="function",Xm=ro&&(typeof TextEncoder=="function"?(i=>s=>i.encode(s))(new TextEncoder):async i=>new Uint8Array(await new Response(i).arrayBuffer())),of=(i,...s)=>{try{return!!i(...s)}catch{return!1}},Zm=lf&&of(()=>{let i=!1;const s=new Request(Be.origin,{body:new ReadableStream,method:"POST",get duplex(){return i=!0,"half"}}).headers.has("Content-Type");return i&&!s}),Lc=64*1024,ds=lf&&of(()=>k.isReadableStream(new Response("").body)),$l={stream:ds&&(i=>i.body)};ro&&(i=>{["text","arrayBuffer","blob","formData","stream"].forEach(s=>{!$l[s]&&($l[s]=k.isFunction(i[s])?u=>u[s]():(u,c)=>{throw new X(`Response type '${s}' is not supported`,X.ERR_NOT_SUPPORT,c)})})})(new Response);const Jm=async i=>{if(i==null)return 0;if(k.isBlob(i))return i.size;if(k.isSpecCompliantForm(i))return(await new Request(Be.origin,{method:"POST",body:i}).arrayBuffer()).byteLength;if(k.isArrayBufferView(i)||k.isArrayBuffer(i))return i.byteLength;if(k.isURLSearchParams(i)&&(i=i+""),k.isString(i))return(await Xm(i)).byteLength},$m=async(i,s)=>{const u=k.toFiniteNumber(i.getContentLength());return u??Jm(s)},bm=ro&&(async i=>{let{url:s,method:u,data:c,signal:d,cancelToken:m,timeout:y,onDownloadProgress:E,onUploadProgress:A,responseType:R,headers:O,withCredentials:L="same-origin",fetchOptions:H}=rf(i);R=R?(R+"").toLowerCase():"text";let G=qm([d,m&&m.toAbortSignal()],y),F;const D=G&&G.unsubscribe&&(()=>{G.unsubscribe()});let _;try{if(A&&Zm&&u!=="get"&&u!=="head"&&(_=await $m(O,c))!==0){let ae=new Request(s,{method:"POST",body:c,duplex:"half"}),me;if(k.isFormData(c)&&(me=ae.headers.get("content-type"))&&O.setContentType(me),ae.body){const[xe,Ae]=Oc(_,Jl(Tc(A)));c=_c(ae.body,Lc,xe,Ae)}}k.isString(L)||(L=L?"include":"omit");const b="credentials"in Request.prototype;F=new Request(s,{...H,signal:G,method:u.toUpperCase(),headers:O.normalize().toJSON(),body:c,duplex:"half",credentials:b?L:void 0});let ee=await fetch(F);const oe=ds&&(R==="stream"||R==="response");if(ds&&(E||oe&&D)){const ae={};["status","statusText","headers"].forEach(ut=>{ae[ut]=ee[ut]});const me=k.toFiniteNumber(ee.headers.get("content-length")),[xe,Ae]=E&&Oc(me,Jl(Tc(E),!0))||[];ee=new Response(_c(ee.body,Lc,xe,()=>{Ae&&Ae(),D&&D()}),ae)}R=R||"text";let ue=await $l[k.findKey($l,R)||"text"](ee,i);return!oe&&D&&D(),await new Promise((ae,me)=>{tf(ae,me,{data:ue,headers:Ge.from(ee.headers),status:ee.status,statusText:ee.statusText,config:i,request:F})})}catch(b){throw D&&D(),b&&b.name==="TypeError"&&/fetch/i.test(b.message)?Object.assign(new X("Network Error",X.ERR_NETWORK,i,F),{cause:b.cause||b}):X.from(b,b&&b.code,i,F)}}),ps={http:mm,xhr:Qm,fetch:bm};k.forEach(ps,(i,s)=>{if(i){try{Object.defineProperty(i,"name",{value:s})}catch{}Object.defineProperty(i,"adapterName",{value:s})}});const Fc=i=>`- ${i}`,eh=i=>k.isFunction(i)||i===null||i===!1,sf={getAdapter:i=>{i=k.isArray(i)?i:[i];const{length:s}=i;let u,c;const d={};for(let m=0;m`adapter ${E} `+(A===!1?"is not supported by the environment":"is not available in the build"));let y=s?m.length>1?`since : `+m.map(Fc).join(` `):" "+Fc(m[0]):"as no adapter specified";throw new X("There is no suitable adapter to dispatch the request "+y,"ERR_NOT_SUPPORT")}return c},adapters:ps};function ss(i){if(i.cancelToken&&i.cancelToken.throwIfRequested(),i.signal&&i.signal.aborted)throw new qn(null,i)}function Dc(i){return ss(i),i.headers=Ge.from(i.headers),i.data=is.call(i,i.transformRequest),["post","put","patch"].indexOf(i.method)!==-1&&i.headers.setContentType("application/x-www-form-urlencoded",!1),sf.getAdapter(i.adapter||zr.adapter)(i).then(function(c){return ss(i),c.data=is.call(i,i.transformResponse,c),c.headers=Ge.from(c.headers),c},function(c){return ef(c)||(ss(i),c&&c.response&&(c.response.data=is.call(i,i.transformResponse,c.response),c.response.headers=Ge.from(c.response.headers))),Promise.reject(c)})}const uf="1.7.9",lo={};["object","boolean","number","function","string","symbol"].forEach((i,s)=>{lo[i]=function(c){return typeof c===i||"a"+(s<1?"n ":" ")+i}});const zc={};lo.transitional=function(s,u,c){function d(m,y){return"[Axios v"+uf+"] Transitional option '"+m+"'"+y+(c?". "+c:"")}return(m,y,E)=>{if(s===!1)throw new X(d(y," has been removed"+(u?" in "+u:"")),X.ERR_DEPRECATED);return u&&!zc[y]&&(zc[y]=!0,console.warn(d(y," has been deprecated since v"+u+" and will be removed in the near future"))),s?s(m,y,E):!0}};lo.spelling=function(s){return(u,c)=>(console.warn(`${c} is likely a misspelling of ${s}`),!0)};function th(i,s,u){if(typeof i!="object")throw new X("options must be an object",X.ERR_BAD_OPTION_VALUE);const c=Object.keys(i);let d=c.length;for(;d-- >0;){const m=c[d],y=s[m];if(y){const E=i[m],A=E===void 0||y(E,m,i);if(A!==!0)throw new X("option "+m+" must be "+A,X.ERR_BAD_OPTION_VALUE);continue}if(u!==!0)throw new X("Unknown option "+m,X.ERR_BAD_OPTION)}}const Zl={assertOptions:th,validators:lo},Ct=Zl.validators;class vn{constructor(s){this.defaults=s,this.interceptors={request:new Rc,response:new Rc}}async request(s,u){try{return await this._request(s,u)}catch(c){if(c instanceof Error){let d={};Error.captureStackTrace?Error.captureStackTrace(d):d=new Error;const m=d.stack?d.stack.replace(/^.+\n/,""):"";try{c.stack?m&&!String(c.stack).endsWith(m.replace(/^.+\n.+\n/,""))&&(c.stack+=` -`+m):c.stack=m}catch{}}throw c}}_request(s,u){typeof s=="string"?(u=u||{},u.url=s):u=s||{},u=gn(this.defaults,u);const{transitional:c,paramsSerializer:d,headers:m}=u;c!==void 0&&Zl.assertOptions(c,{silentJSONParsing:Ct.transitional(Ct.boolean),forcedJSONParsing:Ct.transitional(Ct.boolean),clarifyTimeoutError:Ct.transitional(Ct.boolean)},!1),d!=null&&(k.isFunction(d)?u.paramsSerializer={serialize:d}:Zl.assertOptions(d,{encode:Ct.function,serialize:Ct.function},!0)),Zl.assertOptions(u,{baseUrl:Ct.spelling("baseURL"),withXsrfToken:Ct.spelling("withXSRFToken")},!0),u.method=(u.method||this.defaults.method||"get").toLowerCase();let y=m&&k.merge(m.common,m[u.method]);m&&k.forEach(["delete","get","head","post","put","patch","common"],F=>{delete m[F]}),u.headers=Ge.concat(y,m);const E=[];let A=!0;this.interceptors.request.forEach(function(D){typeof D.runWhen=="function"&&D.runWhen(u)===!1||(A=A&&D.synchronous,E.unshift(D.fulfilled,D.rejected))});const R=[];this.interceptors.response.forEach(function(D){R.push(D.fulfilled,D.rejected)});let O,L=0,H;if(!A){const F=[Dc.bind(this),void 0];for(F.unshift.apply(F,E),F.push.apply(F,R),H=F.length,O=Promise.resolve(u);L{if(!c._listeners)return;let m=c._listeners.length;for(;m-- >0;)c._listeners[m](d);c._listeners=null}),this.promise.then=d=>{let m;const y=new Promise(E=>{c.subscribe(E),m=E}).then(d);return y.cancel=function(){c.unsubscribe(m)},y},s(function(m,y,E){c.reason||(c.reason=new qn(m,y,E),u(c.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(s){if(this.reason){s(this.reason);return}this._listeners?this._listeners.push(s):this._listeners=[s]}unsubscribe(s){if(!this._listeners)return;const u=this._listeners.indexOf(s);u!==-1&&this._listeners.splice(u,1)}toAbortSignal(){const s=new AbortController,u=c=>{s.abort(c)};return this.subscribe(u),s.signal.unsubscribe=()=>this.unsubscribe(u),s.signal}static source(){let s;return{token:new xs(function(d){s=d}),cancel:s}}}function nh(i){return function(u){return i.apply(null,u)}}function rh(i){return k.isObject(i)&&i.isAxiosError===!0}const ms={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ms).forEach(([i,s])=>{ms[s]=i});function af(i){const s=new vn(i),u=Uc(vn.prototype.request,s);return k.extend(u,vn.prototype,s,{allOwnKeys:!0}),k.extend(u,s,null,{allOwnKeys:!0}),u.create=function(d){return af(gn(i,d))},u}const Ce=af(zr);Ce.Axios=vn;Ce.CanceledError=qn;Ce.CancelToken=xs;Ce.isCancel=ef;Ce.VERSION=uf;Ce.toFormData=no;Ce.AxiosError=X;Ce.Cancel=Ce.CanceledError;Ce.all=function(s){return Promise.all(s)};Ce.spread=nh;Ce.isAxiosError=rh;Ce.mergeConfig=gn;Ce.AxiosHeaders=Ge;Ce.formToJSON=i=>bc(k.isHTMLForm(i)?new FormData(i):i);Ce.getAdapter=sf.getAdapter;Ce.HttpStatusCode=ms;Ce.default=Ce;const lh="",us="+7(___)___-__-__",oh=()=>{const[i,s]=_r.useState(!1),[u,c]=_r.useState(()=>""),[d,m]=_r.useState(()=>""),[y,E]=_r.useState(()=>""),A=_r.useRef(null),R=H=>{const G=lh,F="ID кому присылать черз бота",D=`https://api.telegram.org/bot${G}/sendMessage`;Ce.post(D,{chat_id:F,text:H}).then(_=>{console.log("Message sent to Telegram:",_.data)}).catch(_=>{console.error("Failed to send message:",_)})},O=H=>{H.preventDefault();const{client:G,phoneNumber:F,comment:D}=H.target;if(!(G&&G.value&&typeof G.value=="string"&&G.value.trim())||!F){s(!0);return}i&&s(!1),R(` +`+m):c.stack=m}catch{}}throw c}}_request(s,u){typeof s=="string"?(u=u||{},u.url=s):u=s||{},u=gn(this.defaults,u);const{transitional:c,paramsSerializer:d,headers:m}=u;c!==void 0&&Zl.assertOptions(c,{silentJSONParsing:Ct.transitional(Ct.boolean),forcedJSONParsing:Ct.transitional(Ct.boolean),clarifyTimeoutError:Ct.transitional(Ct.boolean)},!1),d!=null&&(k.isFunction(d)?u.paramsSerializer={serialize:d}:Zl.assertOptions(d,{encode:Ct.function,serialize:Ct.function},!0)),Zl.assertOptions(u,{baseUrl:Ct.spelling("baseURL"),withXsrfToken:Ct.spelling("withXSRFToken")},!0),u.method=(u.method||this.defaults.method||"get").toLowerCase();let y=m&&k.merge(m.common,m[u.method]);m&&k.forEach(["delete","get","head","post","put","patch","common"],F=>{delete m[F]}),u.headers=Ge.concat(y,m);const E=[];let A=!0;this.interceptors.request.forEach(function(D){typeof D.runWhen=="function"&&D.runWhen(u)===!1||(A=A&&D.synchronous,E.unshift(D.fulfilled,D.rejected))});const R=[];this.interceptors.response.forEach(function(D){R.push(D.fulfilled,D.rejected)});let O,L=0,H;if(!A){const F=[Dc.bind(this),void 0];for(F.unshift.apply(F,E),F.push.apply(F,R),H=F.length,O=Promise.resolve(u);L{if(!c._listeners)return;let m=c._listeners.length;for(;m-- >0;)c._listeners[m](d);c._listeners=null}),this.promise.then=d=>{let m;const y=new Promise(E=>{c.subscribe(E),m=E}).then(d);return y.cancel=function(){c.unsubscribe(m)},y},s(function(m,y,E){c.reason||(c.reason=new qn(m,y,E),u(c.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(s){if(this.reason){s(this.reason);return}this._listeners?this._listeners.push(s):this._listeners=[s]}unsubscribe(s){if(!this._listeners)return;const u=this._listeners.indexOf(s);u!==-1&&this._listeners.splice(u,1)}toAbortSignal(){const s=new AbortController,u=c=>{s.abort(c)};return this.subscribe(u),s.signal.unsubscribe=()=>this.unsubscribe(u),s.signal}static source(){let s;return{token:new xs(function(d){s=d}),cancel:s}}}function nh(i){return function(u){return i.apply(null,u)}}function rh(i){return k.isObject(i)&&i.isAxiosError===!0}const ms={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ms).forEach(([i,s])=>{ms[s]=i});function af(i){const s=new vn(i),u=Uc(vn.prototype.request,s);return k.extend(u,vn.prototype,s,{allOwnKeys:!0}),k.extend(u,s,null,{allOwnKeys:!0}),u.create=function(d){return af(gn(i,d))},u}const Ce=af(zr);Ce.Axios=vn;Ce.CanceledError=qn;Ce.CancelToken=xs;Ce.isCancel=ef;Ce.VERSION=uf;Ce.toFormData=no;Ce.AxiosError=X;Ce.Cancel=Ce.CanceledError;Ce.all=function(s){return Promise.all(s)};Ce.spread=nh;Ce.isAxiosError=rh;Ce.mergeConfig=gn;Ce.AxiosHeaders=Ge;Ce.formToJSON=i=>bc(k.isHTMLForm(i)?new FormData(i):i);Ce.getAdapter=sf.getAdapter;Ce.HttpStatusCode=ms;Ce.default=Ce;const lh="7691475807:AAFNX2qTZAyY0HYIfh_JQOp3N8zxbJtijQA",us="+7(___)___-__-__",oh=()=>{const[i,s]=_r.useState(!1),[u,c]=_r.useState(()=>""),[d,m]=_r.useState(()=>""),[y,E]=_r.useState(()=>""),A=_r.useRef(null),R=H=>{const G=lh,F="ID кому присылать черз бота",D=`https://api.telegram.org/bot${G}/sendMessage`;Ce.post(D,{chat_id:F,text:H}).then(_=>{console.log("Message sent to Telegram:",_.data)}).catch(_=>{console.error("Failed to send message:",_)})},O=H=>{H.preventDefault();const{client:G,phoneNumber:F,comment:D}=H.target;if(!(G&&G.value&&typeof G.value=="string"&&G.value.trim())||!F){s(!0);return}i&&s(!1),R(` ФИО: ${G.value.trim()} Телефон: ${F.value} Комментарий: ${D.value} diff --git a/index.html b/index.html index 6b604d2..c745134 100644 --- a/index.html +++ b/index.html @@ -1107,7 +1107,7 @@ } Metatoria - +