PageSourceSearch

https://saydi.ai/_next/static/chunks/353eqdz3u8sy2.js

js saydi.ai collected 2026-10-02 13:16:47 UTC 38,660 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,81949,e=>{"use strict";let t,r,n,o;var i,s,a,l,u=e.i(47167);function c(e,t){return function(){return e.apply(t,arguments)}}let{toString:f}=Object.prototype,{getPrototypeOf:d}=Object,{iterator:h,toStringTag:p}=Symbol,m=(t=Object.create(null),e=>{let r=f.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())}),E=e=>(e=e.toLowerCase(),t=>m(t)===e),g=e=>t=>typeof t===e,{isArray:b}=Array,y=g("undefined");function w(e){return null!==e&&!y(e)&&null!==e.constructor&&!y(e.constructor)&&R(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}let S=E("ArrayBuffer"),O=g("string"),R=g("function"),T=g("number"),A=e=>null!==e&&"object"==typeof e,_=e=>{if("object"!==m(e))return!1;let t=d(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(p in e)&&!(h in e)},v=E("Date"),C=E("File"),N=E("Blob"),U=E("FileList"),j=E("URLSearchParams"),[x,k,P,B]=["ReadableStream","Request","Response","Headers"].map(E);function F(e,t,{allOwnKeys:r=!1}={}){let n,o;if(null!=e)if("object"!=typeof e&&(e=[e]),b(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{let o;if(w(e))return;let i=r?Object.getOwnPropertyNames(e):Object.keys(e),s=i.length;for(n=0;n<s;n++)o=i[n],t.call(null,e[o],o,e)}}function L(e,t){let r;if(w(e))return null;t=t.toLowerCase();let n=Object.keys(e),o=n.length;for(;o-- >0;)if(t===(r=n[o]).toLowerCase())return r;return null}let D="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:e.g,I=e=>!y(e)&&e!==D,K=(r="u">typeof Uint8Array&&d(Uint8Array),e=>r&&e instanceof r),q=E("HTMLFormElement"),M=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),$=E("RegExp"),W=(e,t)=>{let r=Object.getOwnPropertyDescriptors(e),n={};F(r,(r,o)=>{let i;!1!==(i=t(r,o,e))&&(n[o]=i||r)}),Object.defineProperties(e,n)},z=E("AsyncFunction"),H=(i="function"==typeof setImmediate,s=R(D.postMessage),i?setImmediate:s?(a=`axios@${Math.random()}`,l=[],D.addEventListener("message",({source:e,data:t})=>{e===D&&t===a&&l.length&&l.shift()()},!1),e=>{l.push(e),D.postMessage(a,"*")}):e=>setTimeout(e)),G="u">typeof queueMicrotask?queueMicrotask.bind(D):void 0!==u.default&&u.default.nextTick||H,J={isArray:b,isArrayBuffer:S,isBuffer:w,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||R(e.append)&&("formdata"===(t=m(e))||"object"===t&&R(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){return"u">typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&S(e.buffer)},isString:O,isNumber:T,isBoolean:e=>!0===e||!1===e,isObject:A,isPlainObject:_,isEmptyObject:e=>{if(!A(e)||w(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:x,isRequest:k,isResponse:P,isHeaders:B,isUndefined:y,isDate:v,isFile:C,isBlob:N,isRegExp:$,isFunction:R,isStream:e=>A(e)&&R(e.pipe),isURLSearchParams:j,isTypedArray:K,isFileList:U,forEach:F,merge:function e(){let{caseless:t,skipUndefined:r}=I(this)&&this||{},n={},o=(o,i)=>{let s=t&&L(n,i)||i;_(n[s])&&_(o)?n[s]=e(n[s],o):_(o)?n[s]=e({},o):b(o)?n[s]=o.slice():r&&y(o)||(n[s]=o)};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&F(arguments[e],o);return n},extend:(e,t,r,{allOwnKeys:n}={})=>(F(t,(t,n)=>{r&&R(t)?e[n]=c(t,r):e[n]=t},{allOwnKeys:n}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let o,i,s,a={};if(t=t||{},null==e)return t;do{for(i=(o=Object.getOwnPropertyNames(e)).length;i-- >0;)s=o[i],(!n||n(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=!1!==r&&d(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype)return t},kindOf:m,kindOfTest:E,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;let n=e.indexOf(t,r);return -1!==n&&n===r},toArray:e=>{if(!e)return null;if(b(e))return e;let t=e.length;if(!T(t))return null;let r=Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>
1{let r,n=(e&&e[h]).call(e);for(;(r=n.next())&&!r.done;){let n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let r,n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:q,hasOwnProperty:M,hasOwnProp:M,reduceDescriptors:W,freezeMethods:e=>{W(e,(t,r)=>{if(R(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;if(R(e[r])){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},toObjectSet:(e,t)=>{let r={};return(b(e)?e:String(e).split(t)).forEach(e=>{r[e]=!0}),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e*=1)?e:t,findKey:L,global:D,isContextDefined:I,isSpecCompliantForm:function(e){return!!(e&&R(e.append)&&"FormData"===e[p]&&e[h])},toJSONObject:e=>{let t=Array(10),r=(e,n)=>{if(A(e)){if(t.indexOf(e)>=0)return;if(w(e))return e;if(!("toJSON"in e)){t[n]=e;let o=b(e)?[]:{};return F(e,(e,t)=>{let i=r(e,n+1);y(i)||(o[t]=i)}),t[n]=void 0,o}}return e};return r(e,0)},isAsyncFn:z,isThenable:e=>e&&(A(e)||R(e))&&R(e.then)&&R(e.catch),setImmediate:H,asap:G,isIterable:e=>null!=e&&R(e[h])};var V=e.i(67034);function Y(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}J.inherits(Y,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:J.toJSONObject(this.config),code:this.code,status:this.status}}});let X=Y.prototype,Q={};function Z(e){return J.isPlainObject(e)||J.isArray(e)}function ee(e){return J.endsWith(e,"[]")?e.slice(0,-2):e}function et(e,t,r){return e?e.concat(t).map(function(e,t){return e=ee(e),!r&&t?"["+e+"]":e}).join(r?".":""):t}["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Q[e]={value:e}}),Object.defineProperties(Y,Q),Object.defineProperty(X,"isAxiosError",{value:!0}),Y.from=(e,t,r,n,o,i)=>{let s=Object.create(X);J.toFlatObject(e,s,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e);let a=e&&e.message?e.message:"Error",l=null==t&&e?e.code:t;return Y.call(s,a,l,r,n,o),e&&null==s.cause&&Object.defineProperty(s,"cause",{value:e,configurable:!0}),s.name=e&&e.name||"Error",i&&Object.assign(s,i),s};let er=J.toFlatObject(J,{},null,function(e){return/^is[A-Z]/.test(e)}),en=function(e,t,r){if(!J.isObject(e))throw TypeError("target must be an object");t=t||new FormData;let n=(r=J.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!J.isUndefined(t[e])})).metaTokens,o=r.visitor||u,i=r.dots,s=r.indexes,a=(r.Blob||"u">typeof Blob&&Blob)&&J.isSpecCompliantForm(t);if(!J.isFunction(o))throw TypeError("visitor must be a function");function l(e){if(null===e)return"";if(J.isDate(e))return e.toISOString();if(J.isBoolean(e))return e.toString();if(!a&&J.isBlob(e))throw new Y("Blob is not supported. Use a Buffer instead.");return J.isArrayBuffer(e)||J.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):V.Buffer.from(e):e}function u(e,r,o){let a=e;if(e&&!o&&"object"==typeof e)if(J.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else{var u;if(J.isArray(e)&&(u=e,J.isArray(u)&&!u.some(Z))||(J.isFileList(e)||J.endsWith(r,"[]"))&&(a=J.toArray(e)))return r=ee(r),a.forEach(function(e,n){J.isUndefined(e)||null===e||t.append(!0===s?et([r],n,i):null===s?r:r+"[]",l(e))}),!1}return!!Z(e)||(t.append(et(o,r,i),l(e)),!1)}let c=[],f=Object.assign(er,{defaultVisitor:u,convertValue:l,isVisitable:Z});if(!J.isObject(e))throw TypeError("data must be an object");return!function e(r,n){if(!J.isUndefined(r)){if(-1!==c.indexOf(r))throw Error("Circular reference detected in "+n.join("."));c.push(r),J.forEach(r,function(r,i){!0===(!(J.isUndefined(r)||null===r)&&o.call(t,r,J.isString(i)?i.trim():i,n,f))&&e(r,n?n.concat(i):[i])}),c.pop()}}(e),t};
1function eo(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function ei(e,t){this._pairs=[],e&&en(e,this,t)}let es=ei.prototype;function ea(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function el(e,t,r){let n;if(!t)return e;let o=r&&r.encode||ea;J.isFunction(r)&&(r={serialize:r});let i=r&&r.serialize;if(n=i?i(t,r):J.isURLSearchParams(t)?t.toString():new ei(t,r).toString(o)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e}es.append=function(e,t){this._pairs.push([e,t])},es.toString=function(e){let t=e?function(t){return e.call(this,t,eo)}:eo;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};let eu=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){J.forEach(this.handlers,function(t){null!==t&&e(t)})}},ec={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ef="u">typeof URLSearchParams?URLSearchParams:ei,ed="u">typeof FormData?FormData:null,eh="u">typeof Blob?Blob:null,ep="u">typeof window&&"u">typeof document,em="object"==typeof navigator&&navigator||void 0,eE=ep&&(!em||0>["ReactNative","NativeScript","NS"].indexOf(em.product)),eg="u">typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,eb=ep&&window.location.href||"http://localhost";e.s(["hasBrowserEnv",0,ep,"hasStandardBrowserEnv",0,eE,"hasStandardBrowserWebWorkerEnv",0,eg,"navigator",0,em,"origin",0,eb],57536);let ey={...e.i(57536),isBrowser:!0,classes:{URLSearchParams:ef,FormData:ed,Blob:eh},protocols:["http","https","file","blob","url","data"]},ew=function(e){if(J.isFormData(e)&&J.isFunction(e.entries)){let t={};return J.forEachEntry(e,(e,r)=>{!function e(t,r,n,o){let i=t[o++];if("__proto__"===i)return!0;let s=Number.isFinite(+i),a=o>=t.length;return(i=!i&&J.isArray(n)?n.length:i,a)?J.hasOwnProp(n,i)?n[i]=[n[i],r]:n[i]=r:(n[i]&&J.isObject(n[i])||(n[i]=[]),e(t,r,n[i],o)&&J.isArray(n[i])&&(n[i]=function(e){let t,r,n={},o=Object.keys(e),i=o.length;for(t=0;t<i;t++)n[r=o[t]]=e[r];return n}(n[i]))),!s}(J.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0]),r,t,0)}),t}return null},eS={transitional:ec,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){let r,n=t.getContentType()||"",o=n.indexOf("application/json")>-1,i=J.isObject(e);if(i&&J.isHTMLForm(e)&&(e=new FormData(e)),J.isFormData(e))return o?JSON.stringify(ew(e)):e;if(J.isArrayBuffer(e)||J.isBuffer(e)||J.isStream(e)||J.isFile(e)||J.isBlob(e)||J.isReadableStream(e))return e;if(J.isArrayBufferView(e))return e.buffer;if(J.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1){var s,a;return(s=e,a=this.formSerializer,en(s,new ey.classes.URLSearchParams,{visitor:function(e,t,r,n){return ey.isNode&&J.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)},...a})).toString()}if((r=J.isFileList(e))||n.indexOf("multipart/form-data")>-1){let t=this.env&&this.env.FormData;return en(r?{"files[]":e}:e,t&&new t,this.formSerializer)}}if(i||o){t.setContentType("application/json",!1);var l=e;if(J.isString(l))try{return(0,JSON.parse)(l),J.trim(l)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(l)}return e}],transformResponse:[function(e){let t=this.transitional||eS.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(J.isResponse(e)||J.isReadableStream(e))return e;if(e&&J.isString(e)&&(r&&!this.responseType||n)){let r=t&&t.silentJSONParsing;try{return JSON.parse(e,this.parseReviver)}catch(e){if(!r&&n){if("SyntaxError"===e.name)throw Y.from(e,Y.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ey.classes.FormData,Blob:ey.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};J.forEach(["delete","get","head","post","put","patch"],e=>{eS.headers[e]={}});let eO=J.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),eR=Symbol("internals");function eT(e){return e&&String(e).trim().toLowerCase()}function eA(e){return!1===e||null==e?e:J.isArray(e)?e.map(eA):String(e)}function e_(e,t,r,n,o){if(J.isFunction(n))return n.call(this,t,r);if(o&&(t=r),J.isString(t)){if(J.isString(n))return -1!==t.indexOf(n);if(J.isRegExp(n))return n.test(t)}}class ev{constructor(e){e&&this.set(e)}set(e,t,r){let n=this;function o(e,t,r){let o=eT(t);if(!o)throw Error("header name must be a non-empty string");let i=J.findKey(n,o);i&&void 0!==n[i]&&!0!==r&&(void 0!==r||!1===n[i])||(n[i||t]=eA(e))}let i=(e,t)=>J.forEach(e,(e,r)=>o(e,r,t));if(J.isPlainObject(e)||e instanceof this.constructor)i(e,t);else{let n;if(J.isString(e)&&(e=e.trim())&&(n=e,!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim()))){var s;let r,n,o,a;i((a={},(s=e)&&s.split("\n").forEach(function(e){o=e.indexOf(":"),r=e.substring(0,o).trim().toLowerCase(),n=e.substring(o+1).trim(),!r||a[r]&&eO[r]||("set-cookie"===r?a[r]?a[r].push(n):a[r]=[n]:a[r]=a[r]?a[r]+", "+n:n)}),a),t)}else if(J.isObject(e)&&J.isIterable(e)){let r={},n,o;for(let t of e){if(!J.isArray(t))throw TypeError("Object iterator must return a key-value pair");r[o=t[0]]=(n=r[o])?J.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}i(r,t)}else null!=e&&o(t,e,r)}return this}get(e,t){if(e=eT(e)){let r=J.findKey(this,e);if(r){let e=this[r];if(!t)return e;if(!0===t){let t,r=Object.create(null),n=/([^\s,;
1=]+)\s*(?:=\s*([^,;]+))?/g;for(;t=n.exec(e);)r[t[1]]=t[2];return r}if(J.isFunction(t))return t.call(this,e,r);if(J.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=eT(e)){let r=J.findKey(this,e);return!!(r&&void 0!==this[r]&&(!t||e_(this,this[r],r,t)))}return!1}delete(e,t){let r=this,n=!1;function o(e){if(e=eT(e)){let o=J.findKey(r,e);o&&(!t||e_(r,r[o],o,t))&&(delete r[o],n=!0)}}return J.isArray(e)?e.forEach(o):o(e),n}clear(e){let t=Object.keys(this),r=t.length,n=!1;for(;r--;){let o=t[r];(!e||e_(this,this[o],o,e,!0))&&(delete this[o],n=!0)}return n}normalize(e){let t=this,r={};return J.forEach(this,(n,o)=>{let i=J.findKey(r,o);if(i){t[i]=eA(n),delete t[o];return}let s=e?o.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r):String(o).trim();s!==o&&delete t[o],t[s]=eA(n),r[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return J.forEach(this,(r,n)=>{null!=r&&!1!==r&&(t[n]=e&&J.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let r=new this(e);return t.forEach(e=>r.set(e)),r}static accessor(e){let t=(this[eR]=this[eR]={accessors:{}}).accessors,r=this.prototype;function n(e){let n=eT(e);if(!t[n]){let o;o=J.toCamelCase(" "+e),["get","set","has"].forEach(t=>{Object.defineProperty(r,t+o,{value:function(r,n,o){return this[t].call(this,e,r,n,o)},configurable:!0})}),t[n]=!0}}return J.isArray(e)?e.forEach(n):n(e),this}}function eC(e,t){let r=this||eS,n=t||r,o=ev.from(n.headers),i=n.data;return J.forEach(e,function(e){i=e.call(r,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function eN(e){return!!(e&&e.__CANCEL__)}function eU(e,t,r){Y.call(this,null==e?"canceled":e,Y.ERR_CANCELED,t,r),this.name="CanceledError"}function ej(e,t,r){let n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new Y("Request failed with status code "+r.status,[Y.ERR_BAD_REQUEST,Y.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}ev.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),J.reduceDescriptors(ev.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}}),J.freezeMethods(ev),J.inherits(eU,Y,{__CANCEL__:!0});let ex=function(e,t){let r,n=Array(e=e||10),o=Array(e),i=0,s=0;return t=void 0!==t?t:1e3,function(a){let l=Date.now(),u=o[s];r||(r=l),n[i]=a,o[i]=l;let c=s,f=0;for(;c!==i;)f+=n[c++],c%=e;if((i=(i+1)%e)===s&&(s=(s+1)%e),l-r<t)return;let d=u&&l-u;return d?Math.round(1e3*f/d):void 0}},ek=function(e,t){let r,n,o=0,i=1e3/t,s=(t,i=Date.now())=>{o=i,r=null,n&&(clearTimeout(n),n=null),e(...t)};return[(...e)=>{let t=Date.now(),a=t-o;a>=i?s(e,t):(r=e,n||(n=setTimeout(()=>{n=null,s(r)},i-a)))},()=>r&&s(r)]},eP=(e,t,r=3)=>{let n=0,o=ex(50,250);return ek(r=>{let i=r.loaded,s=r.lengthComputable?r.total:void 0,a=i-n,l=o(a);n=i,e({loaded:i,total:s,progress:s?i/s:void 0,bytes:a,rate:l||void 0,estimated:l&&s&&i<=s?(s-i)/l:void 0,event:r,lengthComputable:null!=s,[t?"download":"upload"]:!0})},r)},eB=(e,t)=>{let r=null!=e;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},eF=e=>(...t)=>J.asap(()=>e(...t)),eL=ey.hasStandardBrowserEnv?(n=new URL(ey.origin),o=ey.navigator&&/(msie|trident)/i.test(ey.navigator.userAgent),e=>(e=new URL(e,ey.origin),n.protocol===e.protocol&&n.host===e.host&&(o||n.port===e.port))):()=>!0,eD=ey.hasStandardBrowserEnv?{write(e,t,r,n,o,i,s){if("u"<typeof document)return;let a=[`${e}=${encodeURIComponent(t)}`];J.isNumber(r)&&a.push(`expires=${new Date(r).toUTCString()}`),J.isString(n)&&a.push(`path=${n}`),J.isString(o)&&a.push(`domain=${o}`),!0===i&&a.push("secure"),J.isString(s)&&a.push(`SameSite=${s}`),document.cookie=a.join("; ")},read(e){if("u"<typeof document)return null;let t=document.cookie.match(RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function eI(e,t,r){let n=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(n||!1==r)?t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e:t}let eK=e=>e instanceof ev?{...e}:e;function eq(e,t){t=t||{};let r={};function n(e,t,r,n){return J.isPlainObject(e)&&J.isPlainObject(t)?J.merge.call({caseless:n},e,t):J.isPlainObject(t)?J.merge({},t):J.isArray(t)?t.slice():t}function o(e,t,r,o){return J.isUndefined(t)?J.isUndefined(e)?void 0:n(void 0,e,r,o):n(e,t,r,o)}function i(e,t){if(!J.isUndefined(t))return n(void 0,t)}function s(e,t){return J.isUndefined(t)?J.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function a(r,o,i){return i in t?n(r,o):i in e?n(void 0,r):void 0}let l={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(e,t,r)=>o(eK(e),eK(t),r,!0)};return J.forEach(Object.keys({...e,...t}),function(n){let i=l[n]||o,s=i(e[n],t[n],n);J.isUndefined(s)&&i!==a||(r[n]=s)}),r}let eM=e=>{let t=eq({},e),{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:i,headers:s,auth:a}=t;if(t.headers=s=ev.from(s),t.url=el(eI(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),J.isFormData(r)){if(ey.hasStandardBrowserEnv||ey.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(J.isFunction(r.getHeaders)){let e=r.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,r])=>{t.includes(e.toLowerCase())&&s.set(e,r)})}}if(ey.hasStandardBrowserEnv&&(n&&J.isFunction(n)&&(n=n(t)),n||!1!==n&&eL(t.url))){let e=o&&i&&eD.read(i);e&&s.set(o,e)}return t},e$="u">typeof XMLHttpRequest&&function(e){return new Promise(function(t,r){var n;let o,i,s,a,l,u,c=eM(e),f=c.data,d=ev.from(c.headers).normalize(),{responseType:h,onUploadProgress:p,onDownloadProgress:m}=c;function E(){a&&a(),l&&l(),c.cancelToken&&c.cancelToken.unsubscribe(o),c.signal&&c.signal.removeEventListener("abort",o)}let g=new XMLHttpRequest;function b(){if(!g)return;let n=ev.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders());ej(function(e){t(e),E()},function(e){r(e),E()},{data:h&&"text"!==h&&"json"!==h?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:n,config:e,request:g}),g=null}g.open(c.method.toUpperCase(),c.url,!0),g.timeout=c.timeout,"onloadend"in g?g.onloadend=b:g.onreadystatechange=function(){!g||4!==g.readyState||(0!==g.status||g.responseURL&&0===g.responseURL.indexOf("file:"))&&setTimeout(b)},g.onabort=function(){g&&(r(new Y("Request aborted",Y.ECONNABORTED,e,g)),g=null)},g.onerror=function(t){let n=new Y(t&&t.message?t.message:"Network Error",Y.ERR_NETWORK,e,g);n.event=t||null,r(n),g=null},g.ontimeout=function(){let t=c.timeout?"timeout of "+c.timeout+"ms exceeded":"timeout exceeded",n=c.transitional||ec;c.timeoutErrorMessage&&(t=c.timeoutErrorMessage),r(new Y(t,n.clarifyTimeoutError?Y.ETIMEDOUT:Y.ECONNABORTED,e,g)),g=null},void 0===f&&d.setContentType(null),"setRequestHeader"in g&&J.forEach(d.toJSON(),function(e,t){g.setRequestHeader(t,e)}),J.isUndefined(c.withCredentials)||(g.withCredentials=!!c.withCredentials),h&&"json"!==h&&(g.responseType=c.responseType),m&&([s,l]=eP(m,!0),g.addEventListener("progress",s)),p&&g.upload&&([i,a]=eP(p),g.upload.addEventListener("progress",i),g.upload.addEventListener("loadend",a)),(c.cancelToken||c.signal)&&(o=t=>{g&&(r(!t||t.type?new eU(null,e,g):t),g.abort(),g=null)},c.cancelToken&&c.cancelToken.subscribe(o),c.signal&&(c.signal.aborted?o():c.signal.addEventListener("abort",o))
1);let y=(n=c.url,(u=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n))&&u[1]||"");y&&-1===ey.protocols.indexOf(y)?r(new Y("Unsupported protocol "+y+":",Y.ERR_BAD_REQUEST,e)):g.send(f||null)})},eW=function*(e,t){let r,n=e.byteLength;if(!t||n<t)return void(yield e);let o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},ez=async function*(e,t){for await(let r of eH(e))yield*eW(r,t)},eH=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);let t=e.getReader();try{for(;;){let{done:e,value:r}=await t.read();if(e)break;yield r}}finally{await t.cancel()}},eG=(e,t,r,n)=>{let o,i=ez(e,t),s=0,a=e=>{!o&&(o=!0,n&&n(e))};return new ReadableStream({async pull(e){try{let{done:t,value:n}=await i.next();if(t){a(),e.close();return}let o=n.byteLength;if(r){let e=s+=o;r(e)}e.enqueue(new Uint8Array(n))}catch(e){throw a(e),e}},cancel:e=>(a(e),i.return())},{highWaterMark:2})},{isFunction:eJ}=J,eV=(({Request:e,Response:t})=>({Request:e,Response:t}))(J.global),{ReadableStream:eY,TextEncoder:eX}=J.global,eQ=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},eZ=e=>{let t,{fetch:r,Request:n,Response:o}=e=J.merge.call({skipUndefined:!0},eV,e),i=r?eJ(r):"function"==typeof fetch,s=eJ(n),a=eJ(o);if(!i)return!1;let l=i&&eJ(eY),u=i&&("function"==typeof eX?(t=new eX,e=>t.encode(e)):async e=>new Uint8Array(await new n(e).arrayBuffer())),c=s&&l&&eQ(()=>{let e=!1,t=new n(ey.origin,{body:new eY,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),f=a&&l&&eQ(()=>J.isReadableStream(new o("").body)),d={stream:f&&(e=>e.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{d[e]||(d[e]=(t,r)=>{let n=t&&t[e];if(n)return n.call(t);throw new Y(`Response type '${e}' is not supported`,Y.ERR_NOT_SUPPORT,r)})});let h=async e=>{if(null==e)return 0;if(J.isBlob(e))return e.size;if(J.isSpecCompliantForm(e)){let t=new n(ey.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return J.isArrayBufferView(e)||J.isArrayBuffer(e)?e.byteLength:(J.isURLSearchParams(e)&&(e+=""),J.isString(e))?(await u(e)).byteLength:void 0},p=async(e,t)=>{let r=J.toFiniteNumber(e.getContentLength());return null==r?h(t):r};return async e=>{let t,{url:i,method:a,data:l,signal:u,cancelToken:h,timeout:m,onDownloadProgress:E,onUploadProgress:g,responseType:b,headers:y,withCredentials:w="same-origin",fetchOptions:S}=eM(e),O=r||fetch;b=b?(b+"").toLowerCase():"text";let R=((e,t)=>{let{length:r}=e=e?e.filter(Boolean):[];if(t||r){let r,n=new AbortController,o=function(e){if(!r){r=!0,s();let t=e instanceof Error?e:this.reason;n.abort(t instanceof Y?t:new eU(t instanceof Error?t.message:t))}},i=t&&setTimeout(()=>{i=null,o(new Y(`timeout ${t} of ms exceeded`,Y.ETIMEDOUT))},t),s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>e.addEventListener("abort",o));let{signal:a}=n;return a.unsubscribe=()=>J.asap(s),a}})([u,h&&h.toAbortSignal()],m),T=null,A=R&&R.unsubscribe&&(()=>{R.unsubscribe()});try{if(g&&c&&"get"!==a&&"head"!==a&&0!==(t=await p(y,l))){let e,r=new n(i,{method:"POST",body:l,duplex:"half"});if(J.isFormData(l)&&(e=r.headers.get("content-type"))&&y.setContentType(e),r.body){let[e,n]=eB(t,eP(eF(g)));l=eG(r.body,65536,e,n)}}J.isString(w)||(w=w?"include":"omit");let r=s&&"credentials"in n.prototype,u={...S,signal:R,method:a.toUpperCase(),headers:y.normalize().toJSON(),body:l,duplex:"half",credentials:r?w:void 0};T=s&&new n(i,u);let h=await (s?O(T,S):O(i,u)),m=f&&("stream"===b||"response"===b);if(f&&(E||m&&A)){let e={};["status","statusText","headers"].forEach(t=>{e[t]=h[t]});let t=J.toFiniteNumber(h.headers.get("content-length")),[r,n]=E&&eB(t,eP(eF(E),!0))||[];h=new o(eG(h.body,65536,r,()=>{n&&n(),A&&A()}),e)}b=b||"text";let _=await d[J.findKey(d,b)||"text"](h,e);return!m&&A&&A(),await new Promise((t,r)=>{ej(t,r,{data:_,headers:ev.from(h.headers),status:h.status,statusText:h.statusText,config:e,request:T})})}catch(t){if(A&&A(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new Y("Network Error",Y.ERR_NETWORK,e,T),{cause:t.cause||t});throw Y.from(t,t&&t.code,e,T)}}},e0=new Map,e1=e=>{let t=e&&e.env||{},{fetch:r,Request:n,Response:o}=t,i=[n,o,r],s=i.length,a,l,u=e0;for(;s--;)a=i[s],void 0===(l=u.get(a))&&u.set(a,l=s?new Map:eZ(t)),u=l;return l};e1();let e2={http:null,xhr:e$,fetch:{get:e1}};J.forEach(e2,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});let e4=e=>`- ${e}`,e5=e=>J.isFunction(e)||null===e||!1===e,e3=function(e,t){let r,n,{length:o}=e=J.isArray(e)?e:[e],i={};for(let s=0;s<o;s++){let o;if(n=r=e[s],!e5(r)&&void 0===(n=e2[(o=String(r)).toLowerCase()]))throw new Y(`Unknown adapter '${o}'`);if(n&&(J.isFunction(n)||(n=n.get(t))))break;i[o||"#"+s]=n}if(!n){let e=Object.entries(i).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new Y("There is no suitable adapter to dispatch the request "+(o?e.length>
11?"since :\n"+e.map(e4).join("\n"):" "+e4(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return n};function e7(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new eU(null,e)}function e6(e){return e7(e),e.headers=ev.from(e.headers),e.data=eC.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),e3(e.adapter||eS.adapter,e)(e).then(function(t){return e7(e),t.data=eC.call(e,e.transformResponse,t),t.headers=ev.from(t.headers),t},function(t){return!eN(t)&&(e7(e),t&&t.response&&(t.response.data=eC.call(e,e.transformResponse,t.response),t.response.headers=ev.from(t.response.headers))),Promise.reject(t)})}let e8="1.13.2",e9={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{e9[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});let te={};e9.transitional=function(e,t,r){function n(e,t){return"[Axios v"+e8+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,o,i)=>{if(!1===e)throw new Y(n(o," has been removed"+(t?" in "+t:"")),Y.ERR_DEPRECATED);return t&&!te[o]&&(te[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,o,i)}},e9.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};let tt=function(e,t,r){if("object"!=typeof e)throw new Y("options must be an object",Y.ERR_BAD_OPTION_VALUE);let n=Object.keys(e),o=n.length;for(;o-- >0;){let i=n[o],s=t[i];if(s){let t=e[i],r=void 0===t||s(t,i,e);if(!0!==r)throw new Y("option "+i+" must be "+r,Y.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new Y("Unknown option "+i,Y.ERR_BAD_OPTION)}};class tr{constructor(e){this.defaults=e||{},this.interceptors={request:new eu,response:new eu}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let r=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?r&&!String(e.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+r):e.stack=r}catch(e){}}throw e}}_request(e,t){let r,n;"string"==typeof e?(t=t||{}).url=e:t=e||{};let{transitional:o,paramsSerializer:i,headers:s}=t=eq(this.defaults,t);void 0!==o&&tt(o,{silentJSONParsing:e9.transitional(e9.boolean),forcedJSONParsing:e9.transitional(e9.boolean),clarifyTimeoutError:e9.transitional(e9.boolean)},!1),null!=i&&(J.isFunction(i)?t.paramsSerializer={serialize:i}:tt(i,{encode:e9.function,serialize:e9.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),tt(t,{baseUrl:e9.spelling("baseURL"),withXsrfToken:e9.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=s&&J.merge(s.common,s[t.method]);s&&J.forEach(["delete","get","head","post","put","patch","common"],e=>{delete s[e]}),t.headers=ev.concat(a,s);let l=[],u=!0;this.interceptors.request.forEach(function(e){("function"!=typeof e.runWhen||!1!==e.runWhen(t))&&(u=u&&e.synchronous,l.unshift(e.fulfilled,e.rejected))});let c=[];this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let f=0;if(!u){let e=[e6.bind(this),void 0];for(e.unshift(...l),e.push(...c),n=e.length,r=Promise.resolve(t);f<n;)r=r.then(e[f++],e[f++]);return r}n=l.length;let d=t;for(;f<n;){let e=l[f++],t=l[f++];try{d=e(d)}catch(e){t.call(this,e);break}}try{r=e6.call(this,d)}catch(e){return Promise.reject(e)}for(f=0,n=c.length;f<n;)r=r.then(c[f++],c[f++]);return r}getUri(e){return el(eI((e=eq(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}J.forEach(["delete","get","head","options"],function(e){tr.prototype[e]=function(t,r){return this.request(eq(r||{},{method:e,url:t,data:(r||{}).data}))}}),J.forEach(["post","put","patch"],function(e){function t(t){return function(r,n,o){return this.request(eq(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}tr.prototype[e]=t(),tr.prototype[e+"Form"]=t(!0)});class tn{constructor(e){let t;if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});const r=this;this.promise.then(e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null}),this.promise.then=e=>{let t,n=new Promise(e=>{r.subscribe(e),t=e}).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e(function(e,n,o){r.reason||(r.reason=new eU(e,n,o),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}
1subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new tn(function(t){e=t}),cancel:e}}}let to={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(to).forEach(([e,t])=>{to[t]=e});let ti=function e(t){let r=new tr(t),n=c(tr.prototype.request,r);return J.extend(n,tr.prototype,r,{allOwnKeys:!0}),J.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(eq(t,r))},n}(eS);ti.Axios=tr,ti.CanceledError=eU,ti.CancelToken=tn,ti.isCancel=eN,ti.VERSION=e8,ti.toFormData=en,ti.AxiosError=Y,ti.Cancel=ti.CanceledError,ti.all=function(e){return Promise.all(e)},ti.spread=function(e){return function(t){return e.apply(null,t)}},ti.isAxiosError=function(e){return J.isObject(e)&&!0===e.isAxiosError},ti.mergeConfig=eq,ti.AxiosHeaders=ev,ti.formToJSON=e=>ew(J.isHTMLForm(e)?new FormData(e):e),ti.getAdapter=e3,ti.HttpStatusCode=to,ti.default=ti,e.s(["default",0,ti],81949)},70579,e=>{"use strict";e.s(["VERSION",0,{V1:"api/v1",V2:"api/v2",V3:"api/v3"}])},44215,e=>{"use strict";var t=e.i(47167),r=e.i(81949),n=e.i(70579),o=e.i(54879),i=e.i(20977);let s="https://api.saydi.ai",a=(e=s)=>{let r=t.default.env.NEXT_PUBLIC_MOCK_WS_URL;return r?r.replace(/\/$/,""):e.replace("https://","wss://").replace("http://","ws://")},l=r.default.create({baseURL:s,headers:{"Content-Type":"application/json"}}),u=()=>"v2"===i.storageManager.get(o.STORAGE_KEYS.AUTH_SOURCE),c=e=>{let t=window.localStorage.getItem(e);if(!t)return null;try{let e=JSON.parse(t);return"string"==typeof e?e:t}catch{return t}},f="saydi:access-token-changed",d=e=>{e?(window.localStorage.setItem(o.STORAGE_KEYS.ACCESS_TOKEN_WEB,e),u()?window.localStorage.setItem(o.STORAGE_KEYS.ACCESS_TOKEN,e):window.localStorage.removeItem(o.STORAGE_KEYS.ACCESS_TOKEN)):(window.localStorage.removeItem(o.STORAGE_KEYS.ACCESS_TOKEN_WEB),window.localStorage.removeItem(o.STORAGE_KEYS.ACCESS_TOKEN)),window.dispatchEvent(new Event(f))},h=()=>c(o.STORAGE_KEYS.ACCESS_TOKEN_WEB)||c(o.STORAGE_KEYS.ACCESS_TOKEN),p=e=>{if(e){window.localStorage.setItem(o.STORAGE_KEYS.REFRESH_TOKEN_WEB,e),u()?window.localStorage.setItem(o.STORAGE_KEYS.REFRESH_TOKEN,e):window.localStorage.removeItem(o.STORAGE_KEYS.REFRESH_TOKEN);return}window.localStorage.removeItem(o.STORAGE_KEYS.REFRESH_TOKEN_WEB),window.localStorage.removeItem(o.STORAGE_KEYS.REFRESH_TOKEN)};l.interceptors.request.use(e=>{let t=h();return t&&(e.headers.Authorization=`Bearer ${t}`),e},e=>Promise.reject(e));let m=["/console","/history","/new-console"],E=()=>{d(null),p(null),i.storageManager.remove(o.STORAGE_KEYS.USER),i.storageManager.remove(o.STORAGE_KEYS.USER_WEB),m.some(e=>window.location.pathname.startsWith(e))&&(window.location.href="/login-new")},g=null,b=async()=>
1{if(g)return g;let e=c(o.STORAGE_KEYS.REFRESH_TOKEN_WEB)||c(o.STORAGE_KEYS.REFRESH_TOKEN);return e?g=(async()=>{try{let{data:t}=await r.default.post(`${s}/${n.VERSION.V3}/auth/refresh`,{refresh_token:e});if(!t.access_token)throw Error("No access token returned from refresh endpoint");return d(t.access_token),t.refresh_token&&p(t.refresh_token),t.access_token}catch(e){return console.error("Token refresh failed",e),E(),null}finally{g=null}})():(E(),null)};l.interceptors.response.use(e=>e,async e=>{let t=e.config;if(!t||t._retry)return Promise.reject(e);if(e.response?.status===401){if(t.url?.includes("/auth/refresh"))return Promise.reject(e);t._retry=!0;let r=h(),n=t.headers?.Authorization?.toString(),o=n?.replace(/^Bearer\s+/i,"");if(r&&o&&r!==o)return t.headers||(t.headers={}),t.headers.Authorization=`Bearer ${r}`,l(t);let i=await b();if(i)return t.headers||(t.headers={}),t.headers.Authorization=`Bearer ${i}`,l(t)}return Promise.reject(e)}),e.s(["ACCESS_TOKEN_CHANGED_EVENT",0,f,"BASE_URL",0,s,"apiClient",0,l,"buildMultiTranslateWebSocketUri",0,({token:e,resumeSessionId:t,baseUrl:r=s})=>{let n=a(r),o=new URLSearchParams({token:e??""});return t&&o.set("resume_session_id",t),`${n}/api/v3/ws/multi-translate?${o.toString()}`},"buildNotificationWebSocketUri",0,({token:e,baseUrl:t=s})=>{let r=t.replace("https://","wss://").replace("http://","ws://");return`${r}/api/v3/ws/notifications?token=${encodeURIComponent(e??"")}`},"buildTranslateWebSocketUri",0,({token:e,feature:t,sessionId:r,teamspaceId:n,baseUrl:o=s,apiVersion:i})=>{let l=a(o),u=i??"v3",c=void 0!==r&&r.length>0?"v3"===u?`&resume_session_id=${encodeURIComponent(r)}`:`&session_id=${encodeURIComponent(r)}`:"",f=null!=n&&n.length>0?`&teamspace_id=${encodeURIComponent(n)}`:"";return`${l}/api/${u}/ws/translate?token=${e}&feature=${t}${c}${f}`},"getAccessToken",0,h,"getWebSocketBaseUrl",0,a,"refreshAccessToken",0,b,"setAccessToken",0,d])}]);

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.