From 39c730c6765ae9c94b69220862b806a27507cc3b Mon Sep 17 00:00:00 2001 From: Admin Date: Thu, 28 Aug 2025 14:07:11 +0700 Subject: [PATCH] version 1.4 --- .../assets/_commonjsHelpers-CqkleIqs.js | 1 + .../assets/app-C7VSS-q9.js | 1 + .../assets/contants-D9-9W2RY.js | 6 + .../assets/message.service-C0RCxylm.js | 1 + .../assets/popup-7ET7snnx.js | 181 ++++++++++++++++++ .../assets/popup.js | 1 + .../assets/style.css | 1 + .../background/background.js | 1 + .../content/content.js | 6 + .../content/inject-ui.js | 1 + .../icons/128.png | Bin 0 -> 35731 bytes .../icons/16.png | Bin 0 -> 566 bytes .../icons/32.png | Bin 0 -> 1515 bytes .../index.html | 18 ++ .../manifest.json | 37 ++++ .../vite.svg | 1 + 16 files changed, 256 insertions(+) create mode 100644 releases/auto-post-facebook-extensions_1.4/assets/_commonjsHelpers-CqkleIqs.js create mode 100644 releases/auto-post-facebook-extensions_1.4/assets/app-C7VSS-q9.js create mode 100644 releases/auto-post-facebook-extensions_1.4/assets/contants-D9-9W2RY.js create mode 100644 releases/auto-post-facebook-extensions_1.4/assets/message.service-C0RCxylm.js create mode 100644 releases/auto-post-facebook-extensions_1.4/assets/popup-7ET7snnx.js create mode 100644 releases/auto-post-facebook-extensions_1.4/assets/popup.js create mode 100644 releases/auto-post-facebook-extensions_1.4/assets/style.css create mode 100644 releases/auto-post-facebook-extensions_1.4/background/background.js create mode 100644 releases/auto-post-facebook-extensions_1.4/content/content.js create mode 100644 releases/auto-post-facebook-extensions_1.4/content/inject-ui.js create mode 100644 releases/auto-post-facebook-extensions_1.4/icons/128.png create mode 100644 releases/auto-post-facebook-extensions_1.4/icons/16.png create mode 100644 releases/auto-post-facebook-extensions_1.4/icons/32.png create mode 100644 releases/auto-post-facebook-extensions_1.4/index.html create mode 100644 releases/auto-post-facebook-extensions_1.4/manifest.json create mode 100644 releases/auto-post-facebook-extensions_1.4/vite.svg diff --git a/releases/auto-post-facebook-extensions_1.4/assets/_commonjsHelpers-CqkleIqs.js b/releases/auto-post-facebook-extensions_1.4/assets/_commonjsHelpers-CqkleIqs.js new file mode 100644 index 0000000..dbbfc19 --- /dev/null +++ b/releases/auto-post-facebook-extensions_1.4/assets/_commonjsHelpers-CqkleIqs.js @@ -0,0 +1 @@ +function e(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}export{e as g}; diff --git a/releases/auto-post-facebook-extensions_1.4/assets/app-C7VSS-q9.js b/releases/auto-post-facebook-extensions_1.4/assets/app-C7VSS-q9.js new file mode 100644 index 0000000..747c617 --- /dev/null +++ b/releases/auto-post-facebook-extensions_1.4/assets/app-C7VSS-q9.js @@ -0,0 +1 @@ +function a(e,r=[]){return Object.entries(e).reduce((t,[n,o])=>((o||r.includes(n))&&(t[n]=o),t),{})}function u(e){return new Promise(r=>setTimeout(r,e))}function s(e,r){const t=Math.floor(Math.random()*(r-e+1))+e;return u(t)}export{u as a,s as d,a as r}; diff --git a/releases/auto-post-facebook-extensions_1.4/assets/contants-D9-9W2RY.js b/releases/auto-post-facebook-extensions_1.4/assets/contants-D9-9W2RY.js new file mode 100644 index 0000000..f81c6fb --- /dev/null +++ b/releases/auto-post-facebook-extensions_1.4/assets/contants-D9-9W2RY.js @@ -0,0 +1,6 @@ +function Ne(e,t){return function(){return e.apply(t,arguments)}}const{toString:Qe}=Object.prototype,{getPrototypeOf:fe}=Object,{iterator:Z,toStringTag:Pe}=Symbol,G=(e=>t=>{const n=Qe.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),C=e=>(e=e.toLowerCase(),t=>G(t)===e),Y=e=>t=>typeof t===e,{isArray:D}=Array,q=Y("undefined");function M(e){return e!==null&&!q(e)&&e.constructor!==null&&!q(e.constructor)&&A(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const _e=C("ArrayBuffer");function et(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&_e(e.buffer),t}const tt=Y("string"),A=Y("function"),Fe=Y("number"),H=e=>e!==null&&typeof e=="object",nt=e=>e===!0||e===!1,V=e=>{if(G(e)!=="object")return!1;const t=fe(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Pe in e)&&!(Z in e)},rt=e=>{if(!H(e)||M(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},st=C("Date"),ot=C("File"),it=C("Blob"),at=C("FileList"),ct=e=>H(e)&&A(e.pipe),lt=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||A(e.append)&&((t=G(e))==="formdata"||t==="object"&&A(e.toString)&&e.toString()==="[object FormData]"))},ut=C("URLSearchParams"),[ft,dt,pt,ht]=["ReadableStream","Request","Response","Headers"].map(C),mt=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function z(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),D(e))for(r=0,s=e.length;r0;)if(s=n[r],t===s.toLowerCase())return s;return null}const U=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Le=e=>!q(e)&&e!==U;function oe(){const{caseless:e}=Le(this)&&this||{},t={},n=(r,s)=>{const o=e&&Ue(t,s)||s;V(t[o])&&V(r)?t[o]=oe(t[o],r):V(r)?t[o]=oe({},r):D(r)?t[o]=r.slice():t[o]=r};for(let r=0,s=arguments.length;r(z(t,(s,o)=>{n&&A(s)?e[o]=Ne(s,n):e[o]=s},{allOwnKeys:r}),e),wt=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),bt=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Et=(e,t,n,r)=>{let s,o,i;const c={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)i=s[o],(!r||r(i,e,t))&&!c[i]&&(t[i]=e[i],c[i]=!0);e=n!==!1&&fe(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},gt=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Rt=e=>{if(!e)return null;if(D(e))return e;let t=e.length;if(!Fe(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},St=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&fe(Uint8Array)),Ot=(e,t)=>{const r=(e&&e[Z]).call(e);let s;for(;(s=r.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},Tt=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},At=C("HTMLFormElement"),xt=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),me=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Ct=C("RegExp"),ke=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};z(n,(s,o)=>{let i;(i=t(s,o,e))!==!1&&(r[o]=i||s)}),Object.defineProperties(e,r)},Nt=e=>{ke(e,(t,n)=>{if(A(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(A(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Pt=(e,t)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return D(e)?r(e):r(String(e).split(t)),n},_t=()=>{},Ft=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Ut(e){return!!(e&&A(e.append)&&e[Pe]==="FormData"&&e[Z])}const Lt=e=>{const t=new Array(10),n=(r,s)=>{if(H(r)){if(t.indexOf(r)>=0)return;if(M(r))return r;if(!("toJSON"in r)){t[s]=r;const o=D(r)?[]:{};return z(r,(i,c)=>{const f=n(i,s+1);!q(f)&&(o[c]=f)}),t[s]=void 0,o}}return r};return n(e,0)},kt=C("AsyncFunction"),Bt=e=>e&&(H(e)||A(e))&&A(e.then)&&A(e.catch),Be=((e,t)=>e?setImmediate:t?((n,r)=>(U.addEventListener("message",({source:s,data:o})=>{s===U&&o===n&&r.length&&r.shift()()},!1),s=>{r.push(s),U.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",A(U.postMessage)),Dt=typeof queueMicrotask<"u"?queueMicrotask.bind(U):typeof process<"u"&&process.nextTick||Be,jt=e=>e!=null&&A(e[Z]),a={isArray:D,isArrayBuffer:_e,isBuffer:M,isFormData:lt,isArrayBufferView:et,isString:tt,isNumber:Fe,isBoolean:nt,isObject:H,isPlainObject:V,isEmptyObject:rt,isReadableStream:ft,isRequest:dt,isResponse:pt,isHeaders:ht,isUndefined:q,isDate:st,isFile:ot,isBlob:it,isRegExp:Ct,isFunction:A,isStream:ct,isURLSearchParams:ut,isTypedArray:St,isFileList:at,forEach:z,merge:oe,extend:yt,trim:mt,stripBOM:wt,inherits:bt,toFlatObject:Et,kindOf:G,kindOfTest:C,endsWith:gt,toArray:Rt,forEachEntry:Ot,matchAll:Tt,isHTMLForm:At,hasOwnProperty:me,hasOwnProp:me,reduceDescriptors:ke,freezeMethods:Nt,toObjectSet:Pt,toCamelCase:xt,noop:_t,toFiniteNumber:Ft,findKey:Ue,global:U,isContextDefined:Le,isSpecCompliantForm:Ut,toJSONObject:Lt,isAsyncFn:kt,isThenable:Bt,setImmediate:Be,asap:Dt,isIterable:jt};function m(e,t,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s,this.status=s.status?s.status:null)}a.inherits(m,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:a.toJSONObject(this.config),code:this.code,status:this.status}}});const De=m.prototype,je={};["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=>{je[e]={value:e}});Object.defineProperties(m,je);Object.defineProperty(De,"isAxiosError",{value:!0});m.from=(e,t,n,r,s,o)=>{const i=Object.create(De);return a.toFlatObject(e,i,function(f){return f!==Error.prototype},c=>c!=="isAxiosError"),m.call(i,e.message,t,n,r,s),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const It=null;function ie(e){return a.isPlainObject(e)||a.isArray(e)}function Ie(e){return a.endsWith(e,"[]")?e.slice(0,-2):e}function ye(e,t,n){return e?e.concat(t).map(function(s,o){return s=Ie(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function qt(e){return a.isArray(e)&&!e.some(ie)}const Mt=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function Q(e,t,n){if(!a.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=a.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,h){return!a.isUndefined(h[y])});const r=n.metaTokens,s=n.visitor||u,o=n.dots,i=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&a.isSpecCompliantForm(t);if(!a.isFunction(s))throw new TypeError("visitor must be a function");function l(p){if(p===null)return"";if(a.isDate(p))return p.toISOString();if(a.isBoolean(p))return p.toString();if(!f&&a.isBlob(p))throw new m("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(p)||a.isTypedArray(p)?f&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function u(p,y,h){let b=p;if(p&&!h&&typeof p=="object"){if(a.endsWith(y,"{}"))y=r?y:y.slice(0,-2),p=JSON.stringify(p);else if(a.isArray(p)&&qt(p)||(a.isFileList(p)||a.endsWith(y,"[]"))&&(b=a.toArray(p)))return y=Ie(y),b.forEach(function(S,P){!(a.isUndefined(S)||S===null)&&t.append(i===!0?ye([y],P,o):i===null?y:y+"[]",l(S))}),!1}return ie(p)?!0:(t.append(ye(h,y,o),l(p)),!1)}const d=[],w=Object.assign(Mt,{defaultVisitor:u,convertValue:l,isVisitable:ie});function g(p,y){if(!a.isUndefined(p)){if(d.indexOf(p)!==-1)throw Error("Circular reference detected in "+y.join("."));d.push(p),a.forEach(p,function(b,R){(!(a.isUndefined(b)||b===null)&&s.call(t,b,a.isString(R)?R.trim():R,y,w))===!0&&g(b,y?y.concat(R):[R])}),d.pop()}}if(!a.isObject(e))throw new TypeError("data must be an object");return g(e),t}function we(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function de(e,t){this._pairs=[],e&&Q(e,this,t)}const qe=de.prototype;qe.append=function(t,n){this._pairs.push([t,n])};qe.toString=function(t){const n=t?function(r){return t.call(this,r,we)}:we;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function Ht(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Me(e,t,n){if(!t)return e;const r=n&&n.encode||Ht;a.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let o;if(s?o=s(t,n):o=a.isURLSearchParams(t)?t.toString():new de(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class be{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){a.forEach(this.handlers,function(r){r!==null&&t(r)})}}const He={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},zt=typeof URLSearchParams<"u"?URLSearchParams:de,Jt=typeof FormData<"u"?FormData:null,$t=typeof Blob<"u"?Blob:null,Vt={isBrowser:!0,classes:{URLSearchParams:zt,FormData:Jt,Blob:$t},protocols:["http","https","file","blob","url","data"]},pe=typeof window<"u"&&typeof document<"u",ae=typeof navigator=="object"&&navigator||void 0,Wt=pe&&(!ae||["ReactNative","NativeScript","NS"].indexOf(ae.product)<0),vt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Kt=pe&&window.location.href||"http://localhost",Xt=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:pe,hasStandardBrowserEnv:Wt,hasStandardBrowserWebWorkerEnv:vt,navigator:ae,origin:Kt},Symbol.toStringTag,{value:"Module"})),O={...Xt,...Vt};function Zt(e,t){return Q(e,new O.classes.URLSearchParams,{visitor:function(n,r,s,o){return O.isNode&&a.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}function Gt(e){return a.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Yt(e){const t={},n=Object.keys(e);let r;const s=n.length;let o;for(r=0;r=n.length;return i=!i&&a.isArray(s)?s.length:i,f?(a.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!c):((!s[i]||!a.isObject(s[i]))&&(s[i]=[]),t(n,r,s[i],o)&&a.isArray(s[i])&&(s[i]=Yt(s[i])),!c)}if(a.isFormData(e)&&a.isFunction(e.entries)){const n={};return a.forEachEntry(e,(r,s)=>{t(Gt(r),s,n,0)}),n}return null}function Qt(e,t,n){if(a.isString(e))try{return(t||JSON.parse)(e),a.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const J={transitional:He,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=a.isObject(t);if(o&&a.isHTMLForm(t)&&(t=new FormData(t)),a.isFormData(t))return s?JSON.stringify(ze(t)):t;if(a.isArrayBuffer(t)||a.isBuffer(t)||a.isStream(t)||a.isFile(t)||a.isBlob(t)||a.isReadableStream(t))return t;if(a.isArrayBufferView(t))return t.buffer;if(a.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Zt(t,this.formSerializer).toString();if((c=a.isFileList(t))||r.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return Q(c?{"files[]":t}:t,f&&new f,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),Qt(t)):t}],transformResponse:[function(t){const n=this.transitional||J.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(a.isResponse(t)||a.isReadableStream(t))return t;if(t&&a.isString(t)&&(r&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(c){if(i)throw c.name==="SyntaxError"?m.from(c,m.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:O.classes.FormData,Blob:O.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};a.forEach(["delete","get","head","post","put","patch"],e=>{J.headers[e]={}});const en=a.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"]),tn=e=>{const t={};let n,r,s;return e&&e.split(` +`).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),r=i.substring(s+1).trim(),!(!n||t[n]&&en[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Ee=Symbol("internals");function I(e){return e&&String(e).trim().toLowerCase()}function W(e){return e===!1||e==null?e:a.isArray(e)?e.map(W):String(e)}function nn(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const rn=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ne(e,t,n,r,s){if(a.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!a.isString(t)){if(a.isString(r))return t.indexOf(r)!==-1;if(a.isRegExp(r))return r.test(t)}}function sn(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function on(e,t){const n=a.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,o,i){return this[r].call(this,t,s,o,i)},configurable:!0})})}let x=class{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function o(c,f,l){const u=I(f);if(!u)throw new Error("header name must be a non-empty string");const d=a.findKey(s,u);(!d||s[d]===void 0||l===!0||l===void 0&&s[d]!==!1)&&(s[d||f]=W(c))}const i=(c,f)=>a.forEach(c,(l,u)=>o(l,u,f));if(a.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(a.isString(t)&&(t=t.trim())&&!rn(t))i(tn(t),n);else if(a.isObject(t)&&a.isIterable(t)){let c={},f,l;for(const u of t){if(!a.isArray(u))throw TypeError("Object iterator must return a key-value pair");c[l=u[0]]=(f=c[l])?a.isArray(f)?[...f,u[1]]:[f,u[1]]:u[1]}i(c,n)}else t!=null&&o(n,t,r);return this}get(t,n){if(t=I(t),t){const r=a.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return nn(s);if(a.isFunction(n))return n.call(this,s,r);if(a.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=I(t),t){const r=a.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||ne(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function o(i){if(i=I(i),i){const c=a.findKey(r,i);c&&(!n||ne(r,r[c],c,n))&&(delete r[c],s=!0)}}return a.isArray(t)?t.forEach(o):o(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const o=n[r];(!t||ne(this,this[o],o,t,!0))&&(delete this[o],s=!0)}return s}normalize(t){const n=this,r={};return a.forEach(this,(s,o)=>{const i=a.findKey(r,o);if(i){n[i]=W(s),delete n[o];return}const c=t?sn(o):String(o).trim();c!==o&&delete n[o],n[c]=W(s),r[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return a.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&a.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` +`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[Ee]=this[Ee]={accessors:{}}).accessors,s=this.prototype;function o(i){const c=I(i);r[c]||(on(s,i),r[c]=!0)}return a.isArray(t)?t.forEach(o):o(t),this}};x.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);a.reduceDescriptors(x.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});a.freezeMethods(x);function re(e,t){const n=this||J,r=t||n,s=x.from(r.headers);let o=r.data;return a.forEach(e,function(c){o=c.call(n,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function Je(e){return!!(e&&e.__CANCEL__)}function j(e,t,n){m.call(this,e??"canceled",m.ERR_CANCELED,t,n),this.name="CanceledError"}a.inherits(j,m,{__CANCEL__:!0});function $e(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new m("Request failed with status code "+n.status,[m.ERR_BAD_REQUEST,m.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function an(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function cn(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,o=0,i;return t=t!==void 0?t:1e3,function(f){const l=Date.now(),u=r[o];i||(i=l),n[s]=f,r[s]=l;let d=o,w=0;for(;d!==s;)w+=n[d++],d=d%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),l-i{n=u,s=null,o&&(clearTimeout(o),o=null),e(...l)};return[(...l)=>{const u=Date.now(),d=u-n;d>=r?i(l,u):(s=l,o||(o=setTimeout(()=>{o=null,i(s)},r-d)))},()=>s&&i(s)]}const K=(e,t,n=3)=>{let r=0;const s=cn(50,250);return ln(o=>{const i=o.loaded,c=o.lengthComputable?o.total:void 0,f=i-r,l=s(f),u=i<=c;r=i;const d={loaded:i,total:c,progress:c?i/c:void 0,bytes:f,rate:l||void 0,estimated:l&&c&&u?(c-i)/l:void 0,event:o,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(d)},n)},ge=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Re=e=>(...t)=>a.asap(()=>e(...t)),un=O.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,O.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(O.origin),O.navigator&&/(msie|trident)/i.test(O.navigator.userAgent)):()=>!0,fn=O.hasStandardBrowserEnv?{write(e,t,n,r,s,o){const i=[e+"="+encodeURIComponent(t)];a.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),a.isString(r)&&i.push("path="+r),a.isString(s)&&i.push("domain="+s),o===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function dn(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function pn(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Ve(e,t,n){let r=!dn(t);return e&&(r||n==!1)?pn(e,t):t}const Se=e=>e instanceof x?{...e}:e;function k(e,t){t=t||{};const n={};function r(l,u,d,w){return a.isPlainObject(l)&&a.isPlainObject(u)?a.merge.call({caseless:w},l,u):a.isPlainObject(u)?a.merge({},u):a.isArray(u)?u.slice():u}function s(l,u,d,w){if(a.isUndefined(u)){if(!a.isUndefined(l))return r(void 0,l,d,w)}else return r(l,u,d,w)}function o(l,u){if(!a.isUndefined(u))return r(void 0,u)}function i(l,u){if(a.isUndefined(u)){if(!a.isUndefined(l))return r(void 0,l)}else return r(void 0,u)}function c(l,u,d){if(d in t)return r(l,u);if(d in e)return r(void 0,l)}const f={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:c,headers:(l,u,d)=>s(Se(l),Se(u),d,!0)};return a.forEach(Object.keys({...e,...t}),function(u){const d=f[u]||s,w=d(e[u],t[u],u);a.isUndefined(w)&&d!==c||(n[u]=w)}),n}const We=e=>{const t=k({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:o,headers:i,auth:c}=t;t.headers=i=x.from(i),t.url=Me(Ve(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&i.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let f;if(a.isFormData(n)){if(O.hasStandardBrowserEnv||O.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((f=i.getContentType())!==!1){const[l,...u]=f?f.split(";").map(d=>d.trim()).filter(Boolean):[];i.setContentType([l||"multipart/form-data",...u].join("; "))}}if(O.hasStandardBrowserEnv&&(r&&a.isFunction(r)&&(r=r(t)),r||r!==!1&&un(t.url))){const l=s&&o&&fn.read(o);l&&i.set(s,l)}return t},hn=typeof XMLHttpRequest<"u",mn=hn&&function(e){return new Promise(function(n,r){const s=We(e);let o=s.data;const i=x.from(s.headers).normalize();let{responseType:c,onUploadProgress:f,onDownloadProgress:l}=s,u,d,w,g,p;function y(){g&&g(),p&&p(),s.cancelToken&&s.cancelToken.unsubscribe(u),s.signal&&s.signal.removeEventListener("abort",u)}let h=new XMLHttpRequest;h.open(s.method.toUpperCase(),s.url,!0),h.timeout=s.timeout;function b(){if(!h)return;const S=x.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders()),T={data:!c||c==="text"||c==="json"?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:S,config:e,request:h};$e(function(F){n(F),y()},function(F){r(F),y()},T),h=null}"onloadend"in h?h.onloadend=b:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)||setTimeout(b)},h.onabort=function(){h&&(r(new m("Request aborted",m.ECONNABORTED,e,h)),h=null)},h.onerror=function(){r(new m("Network Error",m.ERR_NETWORK,e,h)),h=null},h.ontimeout=function(){let P=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const T=s.transitional||He;s.timeoutErrorMessage&&(P=s.timeoutErrorMessage),r(new m(P,T.clarifyTimeoutError?m.ETIMEDOUT:m.ECONNABORTED,e,h)),h=null},o===void 0&&i.setContentType(null),"setRequestHeader"in h&&a.forEach(i.toJSON(),function(P,T){h.setRequestHeader(T,P)}),a.isUndefined(s.withCredentials)||(h.withCredentials=!!s.withCredentials),c&&c!=="json"&&(h.responseType=s.responseType),l&&([w,p]=K(l,!0),h.addEventListener("progress",w)),f&&h.upload&&([d,g]=K(f),h.upload.addEventListener("progress",d),h.upload.addEventListener("loadend",g)),(s.cancelToken||s.signal)&&(u=S=>{h&&(r(!S||S.type?new j(null,e,h):S),h.abort(),h=null)},s.cancelToken&&s.cancelToken.subscribe(u),s.signal&&(s.signal.aborted?u():s.signal.addEventListener("abort",u)));const R=an(s.url);if(R&&O.protocols.indexOf(R)===-1){r(new m("Unsupported protocol "+R+":",m.ERR_BAD_REQUEST,e));return}h.send(o||null)})},yn=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,s;const o=function(l){if(!s){s=!0,c();const u=l instanceof Error?l:this.reason;r.abort(u instanceof m?u:new j(u instanceof Error?u.message:u))}};let i=t&&setTimeout(()=>{i=null,o(new m(`timeout ${t} of ms exceeded`,m.ETIMEDOUT))},t);const c=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(o):l.removeEventListener("abort",o)}),e=null)};e.forEach(l=>l.addEventListener("abort",o));const{signal:f}=r;return f.unsubscribe=()=>a.asap(c),f}},wn=function*(e,t){let n=e.byteLength;if(n{const s=bn(e,t);let o=0,i,c=f=>{i||(i=!0,r&&r(f))};return new ReadableStream({async pull(f){try{const{done:l,value:u}=await s.next();if(l){c(),f.close();return}let d=u.byteLength;if(n){let w=o+=d;n(w)}f.enqueue(new Uint8Array(u))}catch(l){throw c(l),l}},cancel(f){return c(f),s.return()}},{highWaterMark:2})},ee=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",ve=ee&&typeof ReadableStream=="function",gn=ee&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Ke=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Rn=ve&&Ke(()=>{let e=!1;const t=new Request(O.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Te=64*1024,ce=ve&&Ke(()=>a.isReadableStream(new Response("").body)),X={stream:ce&&(e=>e.body)};ee&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!X[t]&&(X[t]=a.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new m(`Response type '${t}' is not supported`,m.ERR_NOT_SUPPORT,r)})})})(new Response);const Sn=async e=>{if(e==null)return 0;if(a.isBlob(e))return e.size;if(a.isSpecCompliantForm(e))return(await new Request(O.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(a.isArrayBufferView(e)||a.isArrayBuffer(e))return e.byteLength;if(a.isURLSearchParams(e)&&(e=e+""),a.isString(e))return(await gn(e)).byteLength},On=async(e,t)=>{const n=a.toFiniteNumber(e.getContentLength());return n??Sn(t)},Tn=ee&&(async e=>{let{url:t,method:n,data:r,signal:s,cancelToken:o,timeout:i,onDownloadProgress:c,onUploadProgress:f,responseType:l,headers:u,withCredentials:d="same-origin",fetchOptions:w}=We(e);l=l?(l+"").toLowerCase():"text";let g=yn([s,o&&o.toAbortSignal()],i),p;const y=g&&g.unsubscribe&&(()=>{g.unsubscribe()});let h;try{if(f&&Rn&&n!=="get"&&n!=="head"&&(h=await On(u,r))!==0){let T=new Request(t,{method:"POST",body:r,duplex:"half"}),_;if(a.isFormData(r)&&(_=T.headers.get("content-type"))&&u.setContentType(_),T.body){const[F,$]=ge(h,K(Re(f)));r=Oe(T.body,Te,F,$)}}a.isString(d)||(d=d?"include":"omit");const b="credentials"in Request.prototype;p=new Request(t,{...w,signal:g,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:b?d:void 0});let R=await fetch(p,w);const S=ce&&(l==="stream"||l==="response");if(ce&&(c||S&&y)){const T={};["status","statusText","headers"].forEach(he=>{T[he]=R[he]});const _=a.toFiniteNumber(R.headers.get("content-length")),[F,$]=c&&ge(_,K(Re(c),!0))||[];R=new Response(Oe(R.body,Te,F,()=>{$&&$(),y&&y()}),T)}l=l||"text";let P=await X[a.findKey(X,l)||"text"](R,e);return!S&&y&&y(),await new Promise((T,_)=>{$e(T,_,{data:P,headers:x.from(R.headers),status:R.status,statusText:R.statusText,config:e,request:p})})}catch(b){throw y&&y(),b&&b.name==="TypeError"&&/Load failed|fetch/i.test(b.message)?Object.assign(new m("Network Error",m.ERR_NETWORK,e,p),{cause:b.cause||b}):m.from(b,b&&b.code,e,p)}}),le={http:It,xhr:mn,fetch:Tn};a.forEach(le,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Ae=e=>`- ${e}`,An=e=>a.isFunction(e)||e===null||e===!1,Xe={getAdapter:e=>{e=a.isArray(e)?e:[e];const{length:t}=e;let n,r;const s={};for(let o=0;o`adapter ${c} `+(f===!1?"is not supported by the environment":"is not available in the build"));let i=t?o.length>1?`since : +`+o.map(Ae).join(` +`):" "+Ae(o[0]):"as no adapter specified";throw new m("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:le};function se(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new j(null,e)}function xe(e){return se(e),e.headers=x.from(e.headers),e.data=re.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Xe.getAdapter(e.adapter||J.adapter)(e).then(function(r){return se(e),r.data=re.call(e,e.transformResponse,r),r.headers=x.from(r.headers),r},function(r){return Je(r)||(se(e),r&&r.response&&(r.response.data=re.call(e,e.transformResponse,r.response),r.response.headers=x.from(r.response.headers))),Promise.reject(r)})}const Ze="1.11.0",te={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{te[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Ce={};te.transitional=function(t,n,r){function s(o,i){return"[Axios v"+Ze+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,c)=>{if(t===!1)throw new m(s(i," has been removed"+(n?" in "+n:"")),m.ERR_DEPRECATED);return n&&!Ce[i]&&(Ce[i]=!0,console.warn(s(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,c):!0}};te.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function xn(e,t,n){if(typeof e!="object")throw new m("options must be an object",m.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const o=r[s],i=t[o];if(i){const c=e[o],f=c===void 0||i(c,o,e);if(f!==!0)throw new m("option "+o+" must be "+f,m.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new m("Unknown option "+o,m.ERR_BAD_OPTION)}}const v={assertOptions:xn,validators:te},N=v.validators;let L=class{constructor(t){this.defaults=t||{},this.interceptors={request:new be,response:new be}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const o=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=` +`+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=k(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&v.assertOptions(r,{silentJSONParsing:N.transitional(N.boolean),forcedJSONParsing:N.transitional(N.boolean),clarifyTimeoutError:N.transitional(N.boolean)},!1),s!=null&&(a.isFunction(s)?n.paramsSerializer={serialize:s}:v.assertOptions(s,{encode:N.function,serialize:N.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),v.assertOptions(n,{baseUrl:N.spelling("baseURL"),withXsrfToken:N.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&a.merge(o.common,o[n.method]);o&&a.forEach(["delete","get","head","post","put","patch","common"],p=>{delete o[p]}),n.headers=x.concat(i,o);const c=[];let f=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(n)===!1||(f=f&&y.synchronous,c.unshift(y.fulfilled,y.rejected))});const l=[];this.interceptors.response.forEach(function(y){l.push(y.fulfilled,y.rejected)});let u,d=0,w;if(!f){const p=[xe.bind(this),void 0];for(p.unshift(...c),p.push(...l),w=p.length,u=Promise.resolve(n);d{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](s);r._listeners=null}),this.promise.then=s=>{let o;const i=new Promise(c=>{r.subscribe(c),o=c}).then(s);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,c){r.reason||(r.reason=new j(o,i,c),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Ge(function(s){t=s}),cancel:t}}};function Nn(e){return function(n){return e.apply(null,n)}}function Pn(e){return a.isObject(e)&&e.isAxiosError===!0}const ue={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(ue).forEach(([e,t])=>{ue[t]=e});function Ye(e){const t=new L(e),n=Ne(L.prototype.request,t);return a.extend(n,L.prototype,t,{allOwnKeys:!0}),a.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return Ye(k(e,s))},n}const E=Ye(J);E.Axios=L;E.CanceledError=j;E.CancelToken=Cn;E.isCancel=Je;E.VERSION=Ze;E.toFormData=Q;E.AxiosError=m;E.Cancel=E.CanceledError;E.all=function(t){return Promise.all(t)};E.spread=Nn;E.isAxiosError=Pn;E.mergeConfig=k;E.AxiosHeaders=x;E.formToJSON=e=>ze(a.isHTMLForm(e)?new FormData(e):e);E.getAdapter=Xe.getAdapter;E.HttpStatusCode=ue;E.default=E;const{Axios:Ln,AxiosError:kn,CanceledError:Bn,isCancel:Dn,CancelToken:jn,VERSION:In,all:qn,Cancel:Mn,isAxiosError:Hn,spread:zn,toFormData:Jn,AxiosHeaders:$n,HttpStatusCode:Vn,formToJSON:Wn,getAdapter:vn,mergeConfig:Kn}=E,B=E.create({baseURL:"https://aitool.danielvu.com/auto-list/",headers:{"Content-Type":"application/json",Authorization:"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczovL2ludC5pcHN1cHBseS5jb20uYXUvYXBpL2xvZ2luIiwiaWF0IjoxNzIxNjA5MTEzLCJleHAiOjMyMzUzMzcxMTMsIm5iZiI6MTcyMTYwOTExMywianRpIjoiWHpCZkZPc0ZJUlFxaEZvaiIsInN1YiI6MSwicHJ2IjoiYzhlZTFmYzg5ZTc3NWVjNGM3Mzg2NjdlNWJlMTdhNTkwYjZkNDBmYyJ9.kFFEPpdmNUp-kn_G3cIIc26bivO6tbfcvkpG9I8Im7M"}});class _n{item_per_page=10;async index(t){const n={skip:0,limit:10,order:"updatedAt desc",where:{account:"prology_net",status:"Updated"}};return B({method:"POST",data:{urlAPI:"/api/ebay-listing/listing-get-list",filter:{...n,...t,where:{...n.where,...t?.where}}}})}async get(t){return B({method:"POST",data:{filter:{where:{account:"prology_net",condition:t.raw_condition,productModelCode:t.sku}},pageCurrent:"/ebaytools/listing-ebay",urlAPI:"/api/ebay-listing/get-image-listing"}})}async getProductOnLocalServer(t){return B({method:"GET",url:"products/"+t.id})}async saveProductOnLocalServer(t){return B({method:"POST",url:"products",data:t})}async sync(t){return B({url:"sync",method:"POST",data:t})}async getPublistedProducts(){return B({url:"data"})}async apiRequest(t,n){return new Promise((r,s)=>{const o="req_"+Date.now()+"_"+Math.random();function i(c){c.data.type==="API_RESPONSE"&&c.data.requestId===o&&(window.removeEventListener("message",i),c.data.error?s(c.data.error):r(c.data.payload))}window.addEventListener("message",i),window.postMessage({type:"API_REQUEST",requestId:o,payload:n,fn:t},"*")})}}const Xn=new _n;class Zn{static ID_EXTENSION="ex-root"}export{Zn as C,Xn as p}; diff --git a/releases/auto-post-facebook-extensions_1.4/assets/message.service-C0RCxylm.js b/releases/auto-post-facebook-extensions_1.4/assets/message.service-C0RCxylm.js new file mode 100644 index 0000000..4b256c7 --- /dev/null +++ b/releases/auto-post-facebook-extensions_1.4/assets/message.service-C0RCxylm.js @@ -0,0 +1 @@ +import{d as s,a as u}from"./app-C7VSS-q9.js";class p{base64ToFile(t,e,i){const n=t.includes(",")?t.split(",")[1]:t,o=atob(n),r=new ArrayBuffer(o.length),c=new Uint8Array(r);for(let d=0;d{let r=0,c=!1;const l=()=>{const d=document.evaluate(c&&n?n:t,document,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue;if(d instanceof HTMLElement){o(d);return}r++,r{const r=new FileReader;r.onloadend=()=>{typeof r.result=="string"?n(r.result.split(",")[1]):o("Không thể đọc dữ liệu ảnh")},r.onerror=o,r.readAsDataURL(i)})}getImageExtension(t){try{const i=new URL(t).pathname.match(/\.([a-zA-Z0-9]+)$/);return i?i[1].toLowerCase():null}catch{const n=t.split("?")[0].match(/\.([a-zA-Z0-9]+)$/);return n?n[1].toLowerCase():null}}imageLocalToBase64(t){return new Promise((e,i)=>{try{const n=chrome.runtime.getURL(`${t}`);fetch(n).then(o=>o.blob()).then(o=>{const r=new FileReader;r.onloadend=()=>e(r.result),r.onerror=i,r.readAsDataURL(o)}).catch(i)}catch(n){i(n)}})}scrollToElement(t,e="smooth"){t&&t.scrollIntoView({behavior:e,block:"center",inline:"nearest"})}getElementPointCoores(t){if(!t)return null;const e=t.getBoundingClientRect(),i=e.left+e.width/2,n=e.top+e.height/2;return{x:i,y:n}}setInputValue(t,e){t&&(t.value=e,t.dispatchEvent(new Event("input",{bubbles:!0})),t.dispatchEvent(new Event("change",{bubbles:!0})))}writeToInput=async(t,e)=>{let i;if(typeof e=="string"?i=await this.getElementByXPath(e):i=e,!i)throw new Error("Xpath is not found with value: "+t);this.scrollToElement(i),this.clickByPoint(i),this.setInputValue(i,t)};pressEnter(t){if(!t)throw new Error("Textarea not found:",t);t.focus(),["keydown","keypress","keyup"].forEach(e=>{t.dispatchEvent(new KeyboardEvent(e,{key:"Enter",code:"Enter",keyCode:13,which:13,bubbles:!0,cancelable:!0}))})}findNestedElement(t,e,i){const n=document.querySelector(t);if(!n)return null;const o=n.querySelectorAll(e);for(const r of o)if(r.innerText.trim().toLowerCase()===i.toLowerCase())return r;return null}findNestedIcElement(t,e,i){let n=null;if(typeof t=="string"){if(document.querySelector(t),!n)return null}else n=t;const o=n.querySelectorAll(e);for(const r of o)if(r.innerText.trim().toLowerCase().includes(i.toLowerCase()))return r;return null}findElInParent(t,e){return t&&t.parentElement?.querySelector(e)||null}waitForElement(t,e=100){return new Promise(i=>{const n=l=>l.offsetParent!==null&&(l.childElementCount>0||l.innerText.trim().length>0),o=()=>{const l=document.querySelector(t);l&&n(l)&&(r.disconnect(),clearInterval(c),i(l))},r=new MutationObserver(o);r.observe(document.body,{childList:!0,subtree:!0});const c=setInterval(o,e);o()})}}const a=new p;class f{sellingPath="https://www.facebook.com/marketplace/you/selling";marketPath="https://www.facebook.com/marketplace";createItem="https://www.facebook.com/marketplace/create/item";editItem="https://www.facebook.com/marketplace/edit";selectors={file__image_input:'input[type="file"]',next_btn:"/html/body/div[1]/div/div[1]/div/div[3]/div/div/div[1]/div[1]/div[1]/div/div[5]/div/div/div",update_btn:"/html/body/div[1]/div/div[1]/div/div[3]/div/div/div[1]/div[1]/div[1]/div/div[4]/div/div/div",publish_btn:"/html/body/div[1]/div/div[1]/div/div[3]/div/div/div[1]/div[1]/div[1]/div/div[4]/div[2]/div/div",option_btn:"/html/body/div[1]/div/div[1]/div/div[4]/div/div/div[1]/div/div[2]/div/div/div/div/div/div/div[3]/div/div/div/div/div[1]/div",option_btn_fallback:"/html/body/div[1]/div/div[1]/div/div[4]/div/div/div[1]/div/div[2]/div/div/div/div[3]/div[2]/div/div[2]/div[1]",close_btn_modal_feedback:"/html/body/div[1]/div/div[1]/div/div[4]/div/div/div[1]/div/div[2]/div/div/div/div[2]/div",images_container:"/html/body/div[1]/div/div[1]/div/div[3]/div/div/div[1]/div[1]/div[1]/div/div[2]/div[1]/div[2]/div/div/div[3]/div[2]/div",description_edit_input:"/html/body/div[1]/div/div[1]/div/div[3]/div/div/div[1]/div[1]/div[1]/div/div[3]/div[1]/div[2]/div/div/div[9]/div/div/div[2]/div/div/div/label/div/div/textarea",sku_edit_input:"/html/body/div[1]/div/div[1]/div/div[3]/div/div/div[1]/div[1]/div[1]/div/div[3]/div[1]/div[2]/div/div/div[9]/div/div/div[5]/div/div/div[1]/label/div/input",new_item_btn:"/html/body/div[1]/div/div[1]/div/div[3]/div/div/div[1]/div[1]/div[1]/div/div[3]/div[1]/div[2]/div/div/div[7]/a/div",item_for_sell:"/html/body/div[1]/div/div[1]/div/div[5]/div/div/div[3]/div[2]/div[2]/div/div/div[2]/div[1]/div/span/div/div/div[1]/div/div",market_container:'[aria-label="Marketplace"]',collection_marketplace:'[aria-label="Collection of your Marketplace items"]'};findInputByTitle(t,e="input"){const i=a.findNestedElement(this.selectors.market_container,"span",t);if(!i)throw new Error("Not found input by title: "+t);return a.findElInParent(i,e)}clearImages=async()=>{document.querySelectorAll('[aria-label="Remove"]').forEach(t=>t?.click())};uploadImages=async t=>{const e=new DataTransfer;for(const n of t.images){const o=await a.imageUrlToBase64(n),r=a.base64ToFile(o,t.sku,a.getImageExtension(n)||"jpg");e.items.add(r)}const i=document.querySelector(this.selectors.file__image_input);i?(i.files=e.files,i.dispatchEvent(new Event("change",{bubbles:!0}))):console.error("Không tìm thấy input[type='file']")};chooseSelect=async(t,e,i='[aria-label="Dropdown menu"]')=>{const n=a.findNestedElement(this.selectors.market_container,"span",e);a.scrollToElement(n),await s(500,600),n?.click(),await s(500,600);const o=a.findNestedElement(i,"span",t);if(await s(500,600),!o)throw new Error(`No child found with text "${t}"`);a.scrollToElement(o),await s(500,600),o.click(),await s(500,600)};chooseLocation=async t=>{const e=this.findInputByTitle("location");await a.writeToInput(t,e),await u(600);const i=document.querySelector('[role="listbox"]')?.querySelectorAll("li")||[],n=Array.from(i).find(o=>o.innerHTML.trim().toLowerCase().includes(t.toLowerCase()));if(!n)throw new Error(`No child found with text "${t}"`);a.scrollToElement(n),await u(400),a.clickByPoint(n)};writeTags=async t=>{const e=this.findInputByTitle("product tags","textarea");if(!e)throw new Error("Input is not found");a.scrollToElement(e),await u(500);for(const i of t)await a.writeToInput(i,e),await u(300),a.pressEnter(e)};clickNext=async()=>{const t=await a.getElementByXPath(this.selectors.next_btn);if(!t)throw new Error("Next button is not found");a.clickByPoint(t)};clickUpdate=async()=>{const t=await a.getElementByXPath(this.selectors.update_btn);if(!t)throw new Error("Next button is not found");a.clickByPoint(t)};clickPublist=async()=>{const t=await a.getElementByXPath(this.selectors.publish_btn);if(!t)throw new Error("Publist button is not found");a.clickByPoint(t)};handlePublist=async t=>{await s(600,1e3),await this.uploadImages(t),await s(600,1e3);const e=this.findInputByTitle("title");a.writeToInput(t.title,e),await s(600,1e3);const i=this.findInputByTitle("price");if(a.writeToInput(String(t.price),i),await s(600,1e3),await this.chooseSelect(t.category,"category"),await s(600,1e3),await this.chooseSelect(t.condition,"condition",'[aria-label="Select an option"]'),t.brand){await s(600,1e3);const r=this.findInputByTitle("brand");await a.writeToInput(t.brand,r)}await s(600,1e3);const n=this.findInputByTitle("description","textarea");await a.writeToInput(t.description,n),await s(600,1e3),await this.writeTags(t.tags),await s(600,1e3);const o=this.findInputByTitle("sku");return await a.writeToInput(t.sku,o),t?.location&&(await s(600,1e3),await this.chooseLocation(t.location)),await s(300,500),await this.clickNext(),!0};handleRePublist=async t=>{await a.waitForElement('[aria-label="Collection of your Marketplace items"]');const e=await this.getOptionEls(t);this.clickItemInList(e,"edit"),await u(1e3),await this.waitForPageReady(this.editItem,this.selectors.market_container),await s(1e3,2e3),await this.clearImages(),await s(600,1e3),await this.uploadImages(t),await s(600,1e3);const i=this.findInputByTitle("title");a.writeToInput(t.title,i),await s(600,1e3);const n=this.findInputByTitle("price");a.writeToInput(String(t.price),n),await s(600,1e3),await this.chooseSelect(t.category,"category"),await s(600,1e3),await this.chooseSelect(t.condition,"condition",'[aria-label="Select an option"]'),await s(600,1e3);const o=this.findInputByTitle("description","textarea");return await a.writeToInput(t.description,o),await s(600,1e3),await this.writeTags(t.tags),await s(600,1e3),t?.location&&(await s(600,1e3),await this.chooseLocation(t.location)),!0};async getInfo(){try{const e=Date.now(),i=await new Promise(o=>{chrome.storage.local.get("meCache",r=>{o(r.meCache?JSON.parse(r.meCache):null)})});if(i&&e-i.timestamp<72e5)return i.data;const n=await fetch("/me");if(!n.ok)throw new Error(`HTTP error! status: ${n.status}`);return chrome.storage.local.set({meCache:JSON.stringify({data:{url:n.url},timestamp:e})}),n}catch(e){return console.error("Failed to get /me:",e),null}}getProductContainer(){const t=document.querySelectorAll('[aria-label="Collection of your Marketplace items"] span > div > div'),e=Array.from(t).filter(i=>i.querySelector("span > div > div")&&i.classList.length>0);return e.length>0?e[0]:null}getProducts=async()=>{const t=this.getProductContainer();if(!t)throw new Error("List element has changed. Please connect to DEV");const e=await this.getInfo();return this.extractListings(t,e)};extractListings(t,e){return Array.from(t.children).map(n=>{const r=n.querySelector('span[dir="auto"], div[dir="auto"]')?.textContent?.trim()||"",c=document.querySelectorAll(`[aria-label="${r}"]`),l=Array.from(c).filter(m=>!m.querySelector("img"))[0],v=a.findNestedIcElement(l,"span","AU$")?.textContent?.match(/[\d,]+(?:\.\d+)?/),w=v?parseFloat(v[0].replace(/,/g,"")):0;return{title:r,price:w,el:t,url_info:e?.url}})}closeTab=async t=>{chrome.runtime.sendMessage({type:"close-tab",payload:t})};clickOptionOfProduct(t){const e=document.querySelector(`[aria-label="More options for ${t.title}"]`);if(!e)throw new Error(`Not found option buttin in product ${`[aria-label="More options for ${t.title}"]`}, ID: ${t.id}`);a.scrollToElement(e),e.click?.()}async getOptionEls(t){return this.clickOptionOfProduct(t),await u(2e3),Array.from(document.querySelectorAll('[role="menuitem"]'))}clickItemInList(t,e){const i=t.find(n=>n.textContent.toLocaleLowerCase().includes(e));if(!i)throw new Error(`Not found item ${e} in options list`);i.click?.()}getItemInList(t,e){const i=t.find(n=>n.textContent.toLocaleLowerCase().includes(e));if(!i)throw new Error(`Not found item ${e} in options list`);return i}handleDelete=async t=>{const e=await this.getOptionEls(t);this.clickItemInList(e,"delete"),await u(1e3),(await a.getElementByXPath(this.selectors.option_btn,{xpathFallback:this.selectors.option_btn_fallback}))?.click(),(await a.getElementByXPath(this.selectors.close_btn_modal_feedback))?.click(),chrome.runtime.sendMessage({type:"delete-done"})};waitForUrlContains(t,e=1e4){return new Promise((i,n)=>{const o=Date.now(),r=()=>{window.location.href.includes(t)?i():Date.now()-o>e?n(new Error("Timeout waiting for URL change")):setTimeout(r,500)};r()})}waitForPageReady(t,e,i=15e3){return new Promise((n,o)=>{const r=Date.now(),c=async()=>{window.location.href.includes(t)&&document.querySelector(e)?n():Date.now()-r>i?o(new Error("Timeout waiting for selling page ready")):setTimeout(c,500)};c()})}extractMarketplaceItemId(t){const e=t.match(/\/marketplace\/item\/(\d+)/);return e?e[1]:null}handleGetPublistID=async t=>{const i=(await g.getProducts()).find(c=>c.title==t.title&&c.price==t.price);if(!i)return;i.el;const n=await this.getOptionEls(t),o=this.getItemInList(n,"view listing"),r=this.extractMarketplaceItemId(o.href);return this.clickOptionOfProduct(t),r};async gotoPublist(){(await a.getElementByXPath(this.selectors.new_item_btn))?.click(),await s(400,800),(await a.getElementByXPath(this.selectors.item_for_sell))?.click()}async gotoSell(){document.querySelector('[href="/marketplace/you/selling/"]')?.click()}}const g=new f;class b{role;listeners;constructor(t){this.role=t,this.listeners=new Map,chrome.runtime.onMessage.addListener((e,i,n)=>{if(e?.type&&this.listeners.has(e.type))return this.listeners.get(e.type)(e.payload,i,n),!0})}on(t,e){this.listeners.set(t,e)}send(t,e,i){const n={from:this.role,to:t,type:e,payload:i};(this.role==="popup"||this.role==="content")&&chrome.runtime.sendMessage(n),this.role==="background"&&(t==="content"?chrome.tabs.query({active:!0,currentWindow:!0},o=>{o[0]?.id&&chrome.tabs.sendMessage(o[0].id,n,()=>{chrome.runtime.lastError&&console.warn("Không gửi được tới content script:",chrome.runtime.lastError.message)})}):t==="popup"&&chrome.runtime.sendMessage(n,()=>{chrome.runtime.lastError&&console.warn("Không gửi được tới popup:",chrome.runtime.lastError.message)}))}sendToTab(t,e,i){if(this.role!=="background")throw new Error("sendToTab chỉ được gọi từ background");const n={from:this.role,to:"content",type:e,payload:i};chrome.tabs.sendMessage(t,n,()=>{chrome.runtime.lastError&&console.warn(`Không gửi được tới content script ở tab ${t}:`,chrome.runtime.lastError.message)})}waitForMessage(t,e=3e4){return new Promise((i,n)=>{let o;const r=c=>{clearTimeout(o),this.off(t,r),i(c)};o=setTimeout(()=>{this.off(t,r),n(new Error(`Timeout khi chờ message: ${t}`))},e),this.on(t,r)})}off(t,e){this.listeners.get(t)===e&&this.listeners.delete(t)}}export{b as M,g as f,a as t}; diff --git a/releases/auto-post-facebook-extensions_1.4/assets/popup-7ET7snnx.js b/releases/auto-post-facebook-extensions_1.4/assets/popup-7ET7snnx.js new file mode 100644 index 0000000..3fc8fe0 --- /dev/null +++ b/releases/auto-post-facebook-extensions_1.4/assets/popup-7ET7snnx.js @@ -0,0 +1,181 @@ +import{g as Uh}from"./_commonjsHelpers-CqkleIqs.js";import{p as dn,C as Y1}from"./contants-D9-9W2RY.js";import{a as qb,r as Z1}from"./app-C7VSS-q9.js";function Q1(t,r){for(var s=0;si[l]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var Pf={exports:{}},Eo={};/** + * @license React + * react-jsx-runtime.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var vy;function X1(){if(vy)return Eo;vy=1;var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function s(i,l,c){var d=null;if(c!==void 0&&(d=""+c),l.key!==void 0&&(d=""+l.key),"key"in l){c={};for(var h in l)h!=="key"&&(c[h]=l[h])}else c=l;return l=c.ref,{$$typeof:t,type:i,key:d,ref:l!==void 0?l:null,props:c}}return Eo.Fragment=r,Eo.jsx=s,Eo.jsxs=s,Eo}var yy;function K1(){return yy||(yy=1,Pf.exports=X1()),Pf.exports}var y=K1(),xi=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(){}},os=typeof window>"u"||"Deno"in globalThis;function en(){}function $1(t,r){return typeof t=="function"?t(r):t}function ih(t){return typeof t=="number"&&t>=0&&t!==1/0}function Ib(t,r){return Math.max(t+(r||0)-Date.now(),0)}function Aa(t,r){return typeof t=="function"?t(r):t}function Un(t,r){return typeof t=="function"?t(r):t}function by(t,r){const{type:s="all",exact:i,fetchStatus:l,predicate:c,queryKey:d,stale:h}=t;if(d){if(i){if(r.queryHash!==Lh(d,r.options))return!1}else if(!jo(r.queryKey,d))return!1}if(s!=="all"){const m=r.isActive();if(s==="active"&&!m||s==="inactive"&&m)return!1}return!(typeof h=="boolean"&&r.isStale()!==h||l&&l!==r.state.fetchStatus||c&&!c(r))}function xy(t,r){const{exact:s,status:i,predicate:l,mutationKey:c}=t;if(c){if(!r.options.mutationKey)return!1;if(s){if(ls(r.options.mutationKey)!==ls(c))return!1}else if(!jo(r.options.mutationKey,c))return!1}return!(i&&r.state.status!==i||l&&!l(r))}function Lh(t,r){return(r?.queryKeyHashFn||ls)(t)}function ls(t){return JSON.stringify(t,(r,s)=>oh(s)?Object.keys(s).sort().reduce((i,l)=>(i[l]=s[l],i),{}):s)}function jo(t,r){return t===r?!0:typeof t!=typeof r?!1:t&&r&&typeof t=="object"&&typeof r=="object"?Object.keys(r).every(s=>jo(t[s],r[s])):!1}function Fb(t,r){if(t===r)return t;const s=Sy(t)&&Sy(r);if(s||oh(t)&&oh(r)){const i=s?t:Object.keys(t),l=i.length,c=s?r:Object.keys(r),d=c.length,h=s?[]:{},m=new Set(i);let p=0;for(let v=0;v{setTimeout(r,t)})}function lh(t,r,s){return typeof s.structuralSharing=="function"?s.structuralSharing(t,r):s.structuralSharing!==!1?Fb(t,r):r}function J1(t,r,s=0){const i=[...t,r];return s&&i.length>s?i.slice(1):i}function eE(t,r,s=0){const i=[r,...t];return s&&i.length>s?i.slice(0,-1):i}var Ph=Symbol();function Gb(t,r){return!t.queryFn&&r?.initialPromise?()=>r.initialPromise:!t.queryFn||t.queryFn===Ph?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}function Yb(t,r){return typeof t=="function"?t(...r):!!t}var tE=class extends xi{#t;#e;#n;constructor(){super(),this.#n=t=>{if(!os&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(t){this.#n=t,this.#e?.(),this.#e=t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()})}setFocused(t){this.#t!==t&&(this.#t=t,this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(r=>{r(t)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},Vh=new tE,nE=class extends xi{#t=!0;#e;#n;constructor(){super(),this.#n=t=>{if(!os&&window.addEventListener){const r=()=>t(!0),s=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",s)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(t){this.#n=t,this.#e?.(),this.#e=t(this.setOnline.bind(this))}setOnline(t){this.#t!==t&&(this.#t=t,this.listeners.forEach(s=>{s(t)}))}isOnline(){return this.#t}},Bc=new nE;function ch(){let t,r;const s=new Promise((l,c)=>{t=l,r=c});s.status="pending",s.catch(()=>{});function i(l){Object.assign(s,l),delete s.resolve,delete s.reject}return s.resolve=l=>{i({status:"fulfilled",value:l}),t(l)},s.reject=l=>{i({status:"rejected",reason:l}),r(l)},s}function rE(t){return Math.min(1e3*2**t,3e4)}function Zb(t){return(t??"online")==="online"?Bc.isOnline():!0}var Qb=class extends Error{constructor(t){super("CancelledError"),this.revert=t?.revert,this.silent=t?.silent}};function Xb(t){let r=!1,s=0,i;const l=ch(),c=()=>l.status!=="pending",d=_=>{c()||(w(new Qb(_)),t.abort?.())},h=()=>{r=!0},m=()=>{r=!1},p=()=>Vh.isFocused()&&(t.networkMode==="always"||Bc.isOnline())&&t.canRun(),v=()=>Zb(t.networkMode)&&t.canRun(),g=_=>{c()||(i?.(),l.resolve(_))},w=_=>{c()||(i?.(),l.reject(_))},E=()=>new Promise(_=>{i=R=>{(c()||p())&&_(R)},t.onPause?.()}).then(()=>{i=void 0,c()||t.onContinue?.()}),T=()=>{if(c())return;let _;const R=s===0?t.initialPromise:void 0;try{_=R??t.fn()}catch(D){_=Promise.reject(D)}Promise.resolve(_).then(g).catch(D=>{if(c())return;const N=t.retry??(os?0:3),z=t.retryDelay??rE,k=typeof z=="function"?z(s,D):z,U=N===!0||typeof N=="number"&&sp()?void 0:E()).then(()=>{r?w(D):T()})})};return{promise:l,status:()=>l.status,cancel:d,continue:()=>(i?.(),l),cancelRetry:h,continueRetry:m,canStart:v,start:()=>(v()?T():E().then(T),l)}}var aE=t=>setTimeout(t,0);function sE(){let t=[],r=0,s=h=>{h()},i=h=>{h()},l=aE;const c=h=>{r?t.push(h):l(()=>{s(h)})},d=()=>{const h=t;t=[],h.length&&l(()=>{i(()=>{h.forEach(m=>{s(m)})})})};return{batch:h=>{let m;r++;try{m=h()}finally{r--,r||d()}return m},batchCalls:h=>(...m)=>{c(()=>{h(...m)})},schedule:c,setNotifyFunction:h=>{s=h},setBatchNotifyFunction:h=>{i=h},setScheduler:h=>{l=h}}}var zt=sE(),Kb=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),ih(this.gcTime)&&(this.#t=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(os?1/0:300*1e3))}clearGcTimeout(){this.#t&&(clearTimeout(this.#t),this.#t=void 0)}},iE=class extends Kb{#t;#e;#n;#r;#a;#i;#o;constructor(t){super(),this.#o=!1,this.#i=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.#r=t.client,this.#n=this.#r.getQueryCache(),this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.#t=oE(this.options),this.state=t.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#a?.promise}setOptions(t){this.options={...this.#i,...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(t,r){const s=lh(this.state.data,t,this.options);return this.#s({data:s,type:"success",dataUpdatedAt:r?.updatedAt,manual:r?.manual}),s}setState(t,r){this.#s({type:"setState",state:t,setStateOptions:r})}cancel(t){const r=this.#a?.promise;return this.#a?.cancel(t),r?r.then(en).catch(en):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#t)}isActive(){return this.observers.some(t=>Un(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Ph||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Aa(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!Ib(this.state.dataUpdatedAt,t)}onFocus(){this.observers.find(r=>r.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(r=>r.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(this.#a&&(this.#o?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#s({type:"invalidate"})}async fetch(t,r){if(this.state.fetchStatus!=="idle"&&this.#a?.status()!=="rejected"){if(this.state.data!==void 0&&r?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(t&&this.setOptions(t),!this.options.queryFn){const h=this.observers.find(m=>m.options.queryFn);h&&this.setOptions(h.options)}const s=new AbortController,i=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(this.#o=!0,s.signal)})},l=()=>{const h=Gb(this.options,r),p=(()=>{const v={client:this.#r,queryKey:this.queryKey,meta:this.meta};return i(v),v})();return this.#o=!1,this.options.persister?this.options.persister(h,p,this):h(p)},d=(()=>{const h={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:l};return i(h),h})();this.options.behavior?.onFetch(d,this),this.#e=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==d.fetchOptions?.meta)&&this.#s({type:"fetch",meta:d.fetchOptions?.meta}),this.#a=Xb({initialPromise:r?.initialPromise,fn:d.fetchFn,abort:s.abort.bind(s),onFail:(h,m)=>{this.#s({type:"failed",failureCount:h,error:m})},onPause:()=>{this.#s({type:"pause"})},onContinue:()=>{this.#s({type:"continue"})},retry:d.options.retry,retryDelay:d.options.retryDelay,networkMode:d.options.networkMode,canRun:()=>!0});try{const h=await this.#a.start();if(h===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(h),this.#n.config.onSuccess?.(h,this),this.#n.config.onSettled?.(h,this.state.error,this),h}catch(h){if(h instanceof Qb){if(h.silent)return this.#a.promise;if(h.revert){if(this.setState({...this.#e,fetchStatus:"idle"}),this.state.data===void 0)throw h;return this.state.data}}throw this.#s({type:"error",error:h}),this.#n.config.onError?.(h,this),this.#n.config.onSettled?.(this.state.data,h,this),h}finally{this.scheduleGc()}}#s(t){const r=s=>{switch(t.type){case"failed":return{...s,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...$b(s.data,this.options),fetchMeta:t.meta??null};case"success":const i={...s,data:t.data,dataUpdateCount:s.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#e=t.manual?i:void 0,i;case"error":const l=t.error;return{...s,error:l,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:l,fetchStatus:"idle",status:"error"};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...t.state}}};this.state=r(this.state),zt.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:t})})}};function $b(t,r){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Zb(r.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function oE(t){const r=typeof t.initialData=="function"?t.initialData():t.initialData,s=r!==void 0,i=s?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:r,dataUpdateCount:0,dataUpdatedAt:s?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}var lE=class extends xi{constructor(t={}){super(),this.config=t,this.#t=new Map}#t;build(t,r,s){const i=r.queryKey,l=r.queryHash??Lh(i,r);let c=this.get(l);return c||(c=new iE({client:t,queryKey:i,queryHash:l,options:t.defaultQueryOptions(r),state:s,defaultOptions:t.getQueryDefaults(i)}),this.add(c)),c}add(t){this.#t.has(t.queryHash)||(this.#t.set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=this.#t.get(t.queryHash);r&&(t.destroy(),r===t&&this.#t.delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){zt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return this.#t.get(t)}getAll(){return[...this.#t.values()]}find(t){const r={exact:!0,...t};return this.getAll().find(s=>by(r,s))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(s=>by(t,s)):r}notify(t){zt.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){zt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){zt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},cE=class extends Kb{#t;#e;#n;constructor(t){super(),this.mutationId=t.mutationId,this.#e=t.mutationCache,this.#t=[],this.state=t.state||Wb(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){this.#t.includes(t)||(this.#t.push(t),this.clearGcTimeout(),this.#e.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.#t=this.#t.filter(r=>r!==t),this.scheduleGc(),this.#e.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#e.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(t){const r=()=>{this.#r({type:"continue"})};this.#n=Xb({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(l,c)=>{this.#r({type:"failed",failureCount:l,error:c})},onPause:()=>{this.#r({type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#e.canRun(this)});const s=this.state.status==="pending",i=!this.#n.canStart();try{if(s)r();else{this.#r({type:"pending",variables:t,isPaused:i}),await this.#e.config.onMutate?.(t,this);const c=await this.options.onMutate?.(t);c!==this.state.context&&this.#r({type:"pending",context:c,variables:t,isPaused:i})}const l=await this.#n.start();return await this.#e.config.onSuccess?.(l,t,this.state.context,this),await this.options.onSuccess?.(l,t,this.state.context),await this.#e.config.onSettled?.(l,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(l,null,t,this.state.context),this.#r({type:"success",data:l}),l}catch(l){try{throw await this.#e.config.onError?.(l,t,this.state.context,this),await this.options.onError?.(l,t,this.state.context),await this.#e.config.onSettled?.(void 0,l,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,l,t,this.state.context),l}finally{this.#r({type:"error",error:l})}}finally{this.#e.runNext(this)}}#r(t){const r=s=>{switch(t.type){case"failed":return{...s,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"pending":return{...s,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...s,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:t.error,failureCount:s.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=r(this.state),zt.batch(()=>{this.#t.forEach(s=>{s.onMutationUpdate(t)}),this.#e.notify({mutation:this,type:"updated",action:t})})}};function Wb(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var uE=class extends xi{constructor(t={}){super(),this.config=t,this.#t=new Set,this.#e=new Map,this.#n=0}#t;#e;#n;build(t,r,s){const i=new cE({mutationCache:this,mutationId:++this.#n,options:t.defaultMutationOptions(r),state:s});return this.add(i),i}add(t){this.#t.add(t);const r=wc(t);if(typeof r=="string"){const s=this.#e.get(r);s?s.push(t):this.#e.set(r,[t])}this.notify({type:"added",mutation:t})}remove(t){if(this.#t.delete(t)){const r=wc(t);if(typeof r=="string"){const s=this.#e.get(r);if(s)if(s.length>1){const i=s.indexOf(t);i!==-1&&s.splice(i,1)}else s[0]===t&&this.#e.delete(r)}}this.notify({type:"removed",mutation:t})}canRun(t){const r=wc(t);if(typeof r=="string"){const i=this.#e.get(r)?.find(l=>l.state.status==="pending");return!i||i===t}else return!0}runNext(t){const r=wc(t);return typeof r=="string"?this.#e.get(r)?.find(i=>i!==t&&i.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){zt.batch(()=>{this.#t.forEach(t=>{this.notify({type:"removed",mutation:t})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(t){const r={exact:!0,...t};return this.getAll().find(s=>xy(r,s))}findAll(t={}){return this.getAll().filter(r=>xy(t,r))}notify(t){zt.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>r.state.isPaused);return zt.batch(()=>Promise.all(t.map(r=>r.continue().catch(en))))}};function wc(t){return t.options.scope?.id}function _y(t){return{onFetch:(r,s)=>{const i=r.options,l=r.fetchOptions?.meta?.fetchMore?.direction,c=r.state.data?.pages||[],d=r.state.data?.pageParams||[];let h={pages:[],pageParams:[]},m=0;const p=async()=>{let v=!1;const g=T=>{Object.defineProperty(T,"signal",{enumerable:!0,get:()=>(r.signal.aborted?v=!0:r.signal.addEventListener("abort",()=>{v=!0}),r.signal)})},w=Gb(r.options,r.fetchOptions),E=async(T,_,R)=>{if(v)return Promise.reject();if(_==null&&T.pages.length)return Promise.resolve(T);const N=(()=>{const ee={client:r.client,queryKey:r.queryKey,pageParam:_,direction:R?"backward":"forward",meta:r.options.meta};return g(ee),ee})(),z=await w(N),{maxPages:k}=r.options,U=R?eE:J1;return{pages:U(T.pages,z,k),pageParams:U(T.pageParams,_,k)}};if(l&&c.length){const T=l==="backward",_=T?dE:Ey,R={pages:c,pageParams:d},D=_(i,R);h=await E(R,D,T)}else{const T=t??c.length;do{const _=m===0?d[0]??i.initialPageParam:Ey(i,h);if(m>0&&_==null)break;h=await E(h,_),m++}while(mr.options.persister?.(p,{client:r.client,queryKey:r.queryKey,meta:r.options.meta,signal:r.signal},s):r.fetchFn=p}}}function Ey(t,{pages:r,pageParams:s}){const i=r.length-1;return r.length>0?t.getNextPageParam(r[i],r,s[i],s):void 0}function dE(t,{pages:r,pageParams:s}){return r.length>0?t.getPreviousPageParam?.(r[0],r,s[0],s):void 0}var fE=class{#t;#e;#n;#r;#a;#i;#o;#s;constructor(t={}){this.#t=t.queryCache||new lE,this.#e=t.mutationCache||new uE,this.#n=t.defaultOptions||{},this.#r=new Map,this.#a=new Map,this.#i=0}mount(){this.#i++,this.#i===1&&(this.#o=Vh.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#s=Bc.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#i--,this.#i===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(t){return this.#t.findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return this.#e.findAll({...t,status:"pending"}).length}getQueryData(t){const r=this.defaultQueryOptions({queryKey:t});return this.#t.get(r.queryHash)?.state.data}ensureQueryData(t){const r=this.defaultQueryOptions(t),s=this.#t.build(this,r),i=s.state.data;return i===void 0?this.fetchQuery(t):(t.revalidateIfStale&&s.isStaleByTime(Aa(r.staleTime,s))&&this.prefetchQuery(r),Promise.resolve(i))}getQueriesData(t){return this.#t.findAll(t).map(({queryKey:r,state:s})=>{const i=s.data;return[r,i]})}setQueryData(t,r,s){const i=this.defaultQueryOptions({queryKey:t}),c=this.#t.get(i.queryHash)?.state.data,d=$1(r,c);if(d!==void 0)return this.#t.build(this,i).setData(d,{...s,manual:!0})}setQueriesData(t,r,s){return zt.batch(()=>this.#t.findAll(t).map(({queryKey:i})=>[i,this.setQueryData(i,r,s)]))}getQueryState(t){const r=this.defaultQueryOptions({queryKey:t});return this.#t.get(r.queryHash)?.state}removeQueries(t){const r=this.#t;zt.batch(()=>{r.findAll(t).forEach(s=>{r.remove(s)})})}resetQueries(t,r){const s=this.#t;return zt.batch(()=>(s.findAll(t).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...t},r)))}cancelQueries(t,r={}){const s={revert:!0,...r},i=zt.batch(()=>this.#t.findAll(t).map(l=>l.cancel(s)));return Promise.all(i).then(en).catch(en)}invalidateQueries(t,r={}){return zt.batch(()=>(this.#t.findAll(t).forEach(s=>{s.invalidate()}),t?.refetchType==="none"?Promise.resolve():this.refetchQueries({...t,type:t?.refetchType??t?.type??"active"},r)))}refetchQueries(t,r={}){const s={...r,cancelRefetch:r.cancelRefetch??!0},i=zt.batch(()=>this.#t.findAll(t).filter(l=>!l.isDisabled()&&!l.isStatic()).map(l=>{let c=l.fetch(void 0,s);return s.throwOnError||(c=c.catch(en)),l.state.fetchStatus==="paused"?Promise.resolve():c}));return Promise.all(i).then(en)}fetchQuery(t){const r=this.defaultQueryOptions(t);r.retry===void 0&&(r.retry=!1);const s=this.#t.build(this,r);return s.isStaleByTime(Aa(r.staleTime,s))?s.fetch(r):Promise.resolve(s.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(en).catch(en)}fetchInfiniteQuery(t){return t.behavior=_y(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(en).catch(en)}ensureInfiniteQueryData(t){return t.behavior=_y(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return Bc.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#n}setDefaultOptions(t){this.#n=t}setQueryDefaults(t,r){this.#r.set(ls(t),{queryKey:t,defaultOptions:r})}getQueryDefaults(t){const r=[...this.#r.values()],s={};return r.forEach(i=>{jo(t,i.queryKey)&&Object.assign(s,i.defaultOptions)}),s}setMutationDefaults(t,r){this.#a.set(ls(t),{mutationKey:t,defaultOptions:r})}getMutationDefaults(t){const r=[...this.#a.values()],s={};return r.forEach(i=>{jo(t,i.mutationKey)&&Object.assign(s,i.defaultOptions)}),s}defaultQueryOptions(t){if(t._defaulted)return t;const r={...this.#n.queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return r.queryHash||(r.queryHash=Lh(r.queryKey,r)),r.refetchOnReconnect===void 0&&(r.refetchOnReconnect=r.networkMode!=="always"),r.throwOnError===void 0&&(r.throwOnError=!!r.suspense),!r.networkMode&&r.persister&&(r.networkMode="offlineFirst"),r.queryFn===Ph&&(r.enabled=!1),r}defaultMutationOptions(t){return t?._defaulted?t:{...this.#n.mutations,...t?.mutationKey&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}},hE=class extends xi{constructor(t,r){super(),this.options=r,this.#t=t,this.#s=null,this.#o=ch(),this.bindMethods(),this.setOptions(r)}#t;#e=void 0;#n=void 0;#r=void 0;#a;#i;#o;#s;#p;#f;#h;#c;#u;#l;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),Cy(this.#e,this.options)?this.#d():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return uh(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return uh(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#x(),this.#S(),this.#e.removeObserver(this)}setOptions(t){const r=this.options,s=this.#e;if(this.options=this.#t.defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Un(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#w(),this.#e.setOptions(this.options),r._defaulted&&!Vc(this.options,r)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const i=this.hasListeners();i&&Ty(this.#e,s,this.options,r)&&this.#d(),this.updateResult(),i&&(this.#e!==s||Un(this.options.enabled,this.#e)!==Un(r.enabled,this.#e)||Aa(this.options.staleTime,this.#e)!==Aa(r.staleTime,this.#e))&&this.#g();const l=this.#v();i&&(this.#e!==s||Un(this.options.enabled,this.#e)!==Un(r.enabled,this.#e)||l!==this.#l)&&this.#y(l)}getOptimisticResult(t){const r=this.#t.getQueryCache().build(this.#t,t),s=this.createResult(r,t);return pE(this,s)&&(this.#r=s,this.#i=this.options,this.#a=this.#e.state),s}getCurrentResult(){return this.#r}trackResult(t,r){return new Proxy(t,{get:(s,i)=>(this.trackProp(i),r?.(i),i==="promise"&&!this.options.experimental_prefetchInRender&&this.#o.status==="pending"&&this.#o.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(s,i))})}trackProp(t){this.#m.add(t)}getCurrentQuery(){return this.#e}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const r=this.#t.defaultQueryOptions(t),s=this.#t.getQueryCache().build(this.#t,r);return s.fetch().then(()=>this.createResult(s,r))}fetch(t){return this.#d({...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#d(t){this.#w();let r=this.#e.fetch(this.options,t);return t?.throwOnError||(r=r.catch(en)),r}#g(){this.#x();const t=Aa(this.options.staleTime,this.#e);if(os||this.#r.isStale||!ih(t))return;const s=Ib(this.#r.dataUpdatedAt,t)+1;this.#c=setTimeout(()=>{this.#r.isStale||this.updateResult()},s)}#v(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#y(t){this.#S(),this.#l=t,!(os||Un(this.options.enabled,this.#e)===!1||!ih(this.#l)||this.#l===0)&&(this.#u=setInterval(()=>{(this.options.refetchIntervalInBackground||Vh.isFocused())&&this.#d()},this.#l))}#b(){this.#g(),this.#y(this.#v())}#x(){this.#c&&(clearTimeout(this.#c),this.#c=void 0)}#S(){this.#u&&(clearInterval(this.#u),this.#u=void 0)}createResult(t,r){const s=this.#e,i=this.options,l=this.#r,c=this.#a,d=this.#i,m=t!==s?t.state:this.#n,{state:p}=t;let v={...p},g=!1,w;if(r._optimisticResults){const V=this.hasListeners(),J=!V&&Cy(t,r),de=V&&Ty(t,s,r,i);(J||de)&&(v={...v,...$b(p.data,t.options)}),r._optimisticResults==="isRestoring"&&(v.fetchStatus="idle")}let{error:E,errorUpdatedAt:T,status:_}=v;w=v.data;let R=!1;if(r.placeholderData!==void 0&&w===void 0&&_==="pending"){let V;l?.isPlaceholderData&&r.placeholderData===d?.placeholderData?(V=l.data,R=!0):V=typeof r.placeholderData=="function"?r.placeholderData(this.#h?.state.data,this.#h):r.placeholderData,V!==void 0&&(_="success",w=lh(l?.data,V,r),g=!0)}if(r.select&&w!==void 0&&!R)if(l&&w===c?.data&&r.select===this.#p)w=this.#f;else try{this.#p=r.select,w=r.select(w),w=lh(l?.data,w,r),this.#f=w,this.#s=null}catch(V){this.#s=V}this.#s&&(E=this.#s,w=this.#f,T=Date.now(),_="error");const D=v.fetchStatus==="fetching",N=_==="pending",z=_==="error",k=N&&D,U=w!==void 0,P={status:_,fetchStatus:v.fetchStatus,isPending:N,isSuccess:_==="success",isError:z,isInitialLoading:k,isLoading:k,data:w,dataUpdatedAt:v.dataUpdatedAt,error:E,errorUpdatedAt:T,failureCount:v.fetchFailureCount,failureReason:v.fetchFailureReason,errorUpdateCount:v.errorUpdateCount,isFetched:v.dataUpdateCount>0||v.errorUpdateCount>0,isFetchedAfterMount:v.dataUpdateCount>m.dataUpdateCount||v.errorUpdateCount>m.errorUpdateCount,isFetching:D,isRefetching:D&&!N,isLoadingError:z&&!U,isPaused:v.fetchStatus==="paused",isPlaceholderData:g,isRefetchError:z&&U,isStale:Bh(t,r),refetch:this.refetch,promise:this.#o,isEnabled:Un(r.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const V=be=>{P.status==="error"?be.reject(P.error):P.data!==void 0&&be.resolve(P.data)},J=()=>{const be=this.#o=P.promise=ch();V(be)},de=this.#o;switch(de.status){case"pending":t.queryHash===s.queryHash&&V(de);break;case"fulfilled":(P.status==="error"||P.data!==de.value)&&J();break;case"rejected":(P.status!=="error"||P.error!==de.reason)&&J();break}}return P}updateResult(){const t=this.#r,r=this.createResult(this.#e,this.options);if(this.#a=this.#e.state,this.#i=this.options,this.#a.data!==void 0&&(this.#h=this.#e),Vc(r,t))return;this.#r=r;const s=()=>{if(!t)return!0;const{notifyOnChangeProps:i}=this.options,l=typeof i=="function"?i():i;if(l==="all"||!l&&!this.#m.size)return!0;const c=new Set(l??this.#m);return this.options.throwOnError&&c.add("error"),Object.keys(this.#r).some(d=>{const h=d;return this.#r[h]!==t[h]&&c.has(h)})};this.#_({listeners:s()})}#w(){const t=this.#t.getQueryCache().build(this.#t,this.options);if(t===this.#e)return;const r=this.#e;this.#e=t,this.#n=t.state,this.hasListeners()&&(r?.removeObserver(this),t.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#_(t){zt.batch(()=>{t.listeners&&this.listeners.forEach(r=>{r(this.#r)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function mE(t,r){return Un(r.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&r.retryOnMount===!1)}function Cy(t,r){return mE(t,r)||t.state.data!==void 0&&uh(t,r,r.refetchOnMount)}function uh(t,r,s){if(Un(r.enabled,t)!==!1&&Aa(r.staleTime,t)!=="static"){const i=typeof s=="function"?s(t):s;return i==="always"||i!==!1&&Bh(t,r)}return!1}function Ty(t,r,s,i){return(t!==r||Un(i.enabled,t)===!1)&&(!s.suspense||t.state.status!=="error")&&Bh(t,s)}function Bh(t,r){return Un(r.enabled,t)!==!1&&t.isStaleByTime(Aa(r.staleTime,t))}function pE(t,r){return!Vc(t.getCurrentResult(),r)}var gE=class extends xi{#t;#e=void 0;#n;#r;constructor(r,s){super(),this.#t=r,this.setOptions(s),this.bindMethods(),this.#a()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(r){const s=this.options;this.options=this.#t.defaultMutationOptions(r),Vc(this.options,s)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),s?.mutationKey&&this.options.mutationKey&&ls(s.mutationKey)!==ls(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(r){this.#a(),this.#i(r)}getCurrentResult(){return this.#e}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#a(),this.#i()}mutate(r,s){return this.#r=s,this.#n?.removeObserver(this),this.#n=this.#t.getMutationCache().build(this.#t,this.options),this.#n.addObserver(this),this.#n.execute(r)}#a(){const r=this.#n?.state??Wb();this.#e={...r,isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset}}#i(r){zt.batch(()=>{if(this.#r&&this.hasListeners()){const s=this.#e.variables,i=this.#e.context;r?.type==="success"?(this.#r.onSuccess?.(r.data,s,i),this.#r.onSettled?.(r.data,null,s,i)):r?.type==="error"&&(this.#r.onError?.(r.error,s,i),this.#r.onSettled?.(void 0,r.error,s,i))}this.listeners.forEach(s=>{s(this.#e)})})}},Vf={exports:{}},Ve={};/** + * @license React + * react.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Ay;function vE(){if(Ay)return Ve;Ay=1;var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),d=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),g=Symbol.iterator;function w(C){return C===null||typeof C!="object"?null:(C=g&&C[g]||C["@@iterator"],typeof C=="function"?C:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},T=Object.assign,_={};function R(C,K,le){this.props=C,this.context=K,this.refs=_,this.updater=le||E}R.prototype.isReactComponent={},R.prototype.setState=function(C,K){if(typeof C!="object"&&typeof C!="function"&&C!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,C,K,"setState")},R.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};function D(){}D.prototype=R.prototype;function N(C,K,le){this.props=C,this.context=K,this.refs=_,this.updater=le||E}var z=N.prototype=new D;z.constructor=N,T(z,R.prototype),z.isPureReactComponent=!0;var k=Array.isArray,U={H:null,A:null,T:null,S:null,V:null},ee=Object.prototype.hasOwnProperty;function P(C,K,le,Q,ae,xe){return le=xe.ref,{$$typeof:t,type:C,key:K,ref:le!==void 0?le:null,props:xe}}function V(C,K){return P(C.type,K,void 0,void 0,void 0,C.props)}function J(C){return typeof C=="object"&&C!==null&&C.$$typeof===t}function de(C){var K={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(le){return K[le]})}var be=/\/+/g;function ie(C,K){return typeof C=="object"&&C!==null&&C.key!=null?de(""+C.key):K.toString(36)}function se(){}function ce(C){switch(C.status){case"fulfilled":return C.value;case"rejected":throw C.reason;default:switch(typeof C.status=="string"?C.then(se,se):(C.status="pending",C.then(function(K){C.status==="pending"&&(C.status="fulfilled",C.value=K)},function(K){C.status==="pending"&&(C.status="rejected",C.reason=K)})),C.status){case"fulfilled":return C.value;case"rejected":throw C.reason}}throw C}function pe(C,K,le,Q,ae){var xe=typeof C;(xe==="undefined"||xe==="boolean")&&(C=null);var ge=!1;if(C===null)ge=!0;else switch(xe){case"bigint":case"string":case"number":ge=!0;break;case"object":switch(C.$$typeof){case t:case r:ge=!0;break;case v:return ge=C._init,pe(ge(C._payload),K,le,Q,ae)}}if(ge)return ae=ae(C),ge=Q===""?"."+ie(C,0):Q,k(ae)?(le="",ge!=null&&(le=ge.replace(be,"$&/")+"/"),pe(ae,K,le,"",function(Be){return Be})):ae!=null&&(J(ae)&&(ae=V(ae,le+(ae.key==null||C&&C.key===ae.key?"":(""+ae.key).replace(be,"$&/")+"/")+ge)),K.push(ae)),1;ge=0;var re=Q===""?".":Q+":";if(k(C))for(var fe=0;fe{const r=x.useContext(e0);if(!r)throw new Error("No QueryClient set, use QueryClientProvider to set one");return r},Dj=({client:t,children:r})=>(x.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),y.jsx(e0.Provider,{value:t,children:r})),n0=x.createContext(!1),yE=()=>x.useContext(n0);n0.Provider;function bE(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var xE=x.createContext(bE()),SE=()=>x.useContext(xE),wE=(t,r)=>{(t.suspense||t.throwOnError||t.experimental_prefetchInRender)&&(r.isReset()||(t.retryOnMount=!1))},_E=t=>{x.useEffect(()=>{t.clearReset()},[t])},EE=({result:t,errorResetBoundary:r,throwOnError:s,query:i,suspense:l})=>t.isError&&!r.isReset()&&!t.isFetching&&i&&(l&&t.data===void 0||Yb(s,[t.error,i])),CE=t=>{if(t.suspense){const r=i=>i==="static"?i:Math.max(i??1e3,1e3),s=t.staleTime;t.staleTime=typeof s=="function"?(...i)=>r(s(...i)):r(s),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3))}},TE=(t,r)=>t.isLoading&&t.isFetching&&!r,AE=(t,r)=>t?.suspense&&r.isPending,Oy=(t,r,s)=>r.fetchOptimistic(t).catch(()=>{s.clearReset()});function RE(t,r,s){const i=yE(),l=SE(),c=t0(),d=c.defaultQueryOptions(t);c.getDefaultOptions().queries?._experimental_beforeQuery?.(d),d._optimisticResults=i?"isRestoring":"optimistic",CE(d),wE(d,l),_E(l);const h=!c.getQueryCache().get(d.queryHash),[m]=x.useState(()=>new r(c,d)),p=m.getOptimisticResult(d),v=!i&&t.subscribed!==!1;if(x.useSyncExternalStore(x.useCallback(g=>{const w=v?m.subscribe(zt.batchCalls(g)):en;return m.updateResult(),w},[m,v]),()=>m.getCurrentResult(),()=>m.getCurrentResult()),x.useEffect(()=>{m.setOptions(d)},[d,m]),AE(d,p))throw Oy(d,m,l);if(EE({result:p,errorResetBoundary:l,throwOnError:d.throwOnError,query:c.getQueryCache().get(d.queryHash),suspense:d.suspense}))throw p.error;return c.getDefaultOptions().queries?._experimental_afterQuery?.(d,p),d.experimental_prefetchInRender&&!os&&TE(p,i)&&(h?Oy(d,m,l):c.getQueryCache().get(d.queryHash)?.promise)?.catch(en).finally(()=>{m.updateResult()}),d.notifyOnChangeProps?p:m.trackResult(p)}function dh(t,r){return RE(t,hE)}function fh(t,r){const s=t0(),[i]=x.useState(()=>new gE(s,t));x.useEffect(()=>{i.setOptions(t)},[i,t]);const l=x.useSyncExternalStore(x.useCallback(d=>i.subscribe(zt.batchCalls(d)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),c=x.useCallback((d,h)=>{i.mutate(d,h).catch(en)},[i]);if(l.error&&Yb(i.options.throwOnError,[l.error]))throw l.error;return{...l,mutate:c,mutateAsync:l.mutate}}const jj=new fE({defaultOptions:{queries:{staleTime:1e3*60,refetchOnWindowFocus:!1}}});var Bf={exports:{}},Co={},Hf={exports:{}},qf={};/** + * @license React + * scheduler.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var My;function OE(){return My||(My=1,(function(t){function r(O,Y){var B=O.length;O.push(Y);e:for(;0>>1,C=O[te];if(0>>1;tel(Q,B))ael(xe,Q)?(O[te]=xe,O[ae]=B,te=ae):(O[te]=Q,O[le]=B,te=le);else if(ael(xe,B))O[te]=xe,O[ae]=B,te=ae;else break e}}return Y}function l(O,Y){var B=O.sortIndex-Y.sortIndex;return B!==0?B:O.id-Y.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;t.unstable_now=function(){return c.now()}}else{var d=Date,h=d.now();t.unstable_now=function(){return d.now()-h}}var m=[],p=[],v=1,g=null,w=3,E=!1,T=!1,_=!1,R=!1,D=typeof setTimeout=="function"?setTimeout:null,N=typeof clearTimeout=="function"?clearTimeout:null,z=typeof setImmediate<"u"?setImmediate:null;function k(O){for(var Y=s(p);Y!==null;){if(Y.callback===null)i(p);else if(Y.startTime<=O)i(p),Y.sortIndex=Y.expirationTime,r(m,Y);else break;Y=s(p)}}function U(O){if(_=!1,k(O),!T)if(s(m)!==null)T=!0,ee||(ee=!0,ie());else{var Y=s(p);Y!==null&&pe(U,Y.startTime-O)}}var ee=!1,P=-1,V=5,J=-1;function de(){return R?!0:!(t.unstable_now()-JO&&de());){var te=g.callback;if(typeof te=="function"){g.callback=null,w=g.priorityLevel;var C=te(g.expirationTime<=O);if(O=t.unstable_now(),typeof C=="function"){g.callback=C,k(O),Y=!0;break t}g===s(m)&&i(m),k(O)}else i(m);g=s(m)}if(g!==null)Y=!0;else{var K=s(p);K!==null&&pe(U,K.startTime-O),Y=!1}}break e}finally{g=null,w=B,E=!1}Y=void 0}}finally{Y?ie():ee=!1}}}var ie;if(typeof z=="function")ie=function(){z(be)};else if(typeof MessageChannel<"u"){var se=new MessageChannel,ce=se.port2;se.port1.onmessage=be,ie=function(){ce.postMessage(null)}}else ie=function(){D(be,0)};function pe(O,Y){P=D(function(){O(t.unstable_now())},Y)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(O){O.callback=null},t.unstable_forceFrameRate=function(O){0>O||125te?(O.sortIndex=B,r(p,O),s(m)===null&&O===s(p)&&(_?(N(P),P=-1):_=!0,pe(U,B-te))):(O.sortIndex=C,r(m,O),T||E||(T=!0,ee||(ee=!0,ie()))),O},t.unstable_shouldYield=de,t.unstable_wrapCallback=function(O){var Y=w;return function(){var B=w;w=Y;try{return O.apply(this,arguments)}finally{w=B}}}})(qf)),qf}var Ny;function ME(){return Ny||(Ny=1,Hf.exports=OE()),Hf.exports}var If={exports:{}},Xt={};/** + * @license React + * react-dom.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Dy;function NE(){if(Dy)return Xt;Dy=1;var t=Hh();function r(m){var p="https://react.dev/errors/"+m;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(r){console.error(r)}}return t(),If.exports=NE(),If.exports}/** + * @license React + * react-dom-client.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var ky;function DE(){if(ky)return Co;ky=1;var t=ME(),r=Hh(),s=r0();function i(e){var n="https://react.dev/errors/"+e;if(1C||(e.current=te[C],te[C]=null,C--)}function Q(e,n){C++,te[C]=e.current,e.current=n}var ae=K(null),xe=K(null),ge=K(null),re=K(null);function fe(e,n){switch(Q(ge,n),Q(xe,e),Q(ae,null),n.nodeType){case 9:case 11:e=(e=n.documentElement)&&(e=e.namespaceURI)?Gv(e):0;break;default:if(e=n.tagName,n=n.namespaceURI)n=Gv(n),e=Yv(n,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}le(ae),Q(ae,e)}function Be(){le(ae),le(xe),le(ge)}function Le(e){e.memoizedState!==null&&Q(re,e);var n=ae.current,a=Yv(n,e.type);n!==a&&(Q(xe,e),Q(ae,a))}function He(e){xe.current===e&&(le(ae),le(xe)),re.current===e&&(le(re),bo._currentValue=B)}var Ie=Object.prototype.hasOwnProperty,Ct=t.unstable_scheduleCallback,Ut=t.unstable_cancelCallback,er=t.unstable_shouldYield,tr=t.unstable_requestPaint,pt=t.unstable_now,Ai=t.unstable_getCurrentPriorityLevel,$t=t.unstable_ImmediatePriority,M=t.unstable_UserBlockingPriority,I=t.unstable_NormalPriority,X=t.unstable_LowPriority,me=t.unstable_IdlePriority,he=t.log,ue=t.unstable_setDisableYieldValue,_e=null,ke=null;function Ye(e){if(typeof he=="function"&&ue(e),ke&&typeof ke.setStrictMode=="function")try{ke.setStrictMode(_e,e)}catch{}}var nt=Math.clz32?Math.clz32:nr,hn=Math.log,mn=Math.LN2;function nr(e){return e>>>=0,e===0?32:31-(hn(e)/mn|0)|0}var rr=256,ar=4194304;function Tn(e){var n=e&42;if(n!==0)return n;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function sr(e,n,a){var o=e.pendingLanes;if(o===0)return 0;var u=0,f=e.suspendedLanes,b=e.pingedLanes;e=e.warmLanes;var S=o&134217727;return S!==0?(o=S&~f,o!==0?u=Tn(o):(b&=S,b!==0?u=Tn(b):a||(a=S&~e,a!==0&&(u=Tn(a))))):(S=o&~f,S!==0?u=Tn(S):b!==0?u=Tn(b):a||(a=o&~e,a!==0&&(u=Tn(a)))),u===0?0:n!==0&&n!==u&&(n&f)===0&&(f=u&-u,a=n&-n,f>=a||f===32&&(a&4194048)!==0)?n:u}function Cr(e,n){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function ea(e,n){switch(e){case 1:case 2:case 4:case 8:case 64:return n+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Bn(){var e=rr;return rr<<=1,(rr&4194048)===0&&(rr=256),e}function ul(){var e=ar;return ar<<=1,(ar&62914560)===0&&(ar=4194304),e}function Ri(e){for(var n=[],a=0;31>a;a++)n.push(e);return n}function ta(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function dl(e,n,a,o,u,f){var b=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var S=e.entanglements,A=e.expirationTimes,q=e.hiddenUpdates;for(a=b&~a;0)":-1u||A[o]!==q[u]){var $=` +`+A[o].replace(" at new "," at ");return e.displayName&&$.includes("")&&($=$.replace("",e.displayName)),$}while(1<=o&&0<=u);break}}}finally{Du=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?_s(a):""}function Bw(e){switch(e.tag){case 26:case 27:case 5:return _s(e.type);case 16:return _s("Lazy");case 13:return _s("Suspense");case 19:return _s("SuspenseList");case 0:case 15:return ju(e.type,!1);case 11:return ju(e.type.render,!1);case 1:return ju(e.type,!0);case 31:return _s("Activity");default:return""}}function Vm(e){try{var n="";do n+=Bw(e),e=e.return;while(e);return n}catch(a){return` +Error generating stack: `+a.message+` +`+a.stack}}function An(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Bm(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function Hw(e){var n=Bm(e)?"checked":"value",a=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),o=""+e[n];if(!e.hasOwnProperty(n)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var u=a.get,f=a.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return u.call(this)},set:function(b){o=""+b,f.call(this,b)}}),Object.defineProperty(e,n,{enumerable:a.enumerable}),{getValue:function(){return o},setValue:function(b){o=""+b},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function ml(e){e._valueTracker||(e._valueTracker=Hw(e))}function Hm(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var a=n.getValue(),o="";return e&&(o=Bm(e)?e.checked?"true":"false":e.value),e=o,e!==a?(n.setValue(e),!0):!1}function pl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var qw=/[\n"\\]/g;function Rn(e){return e.replace(qw,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function ku(e,n,a,o,u,f,b,S){e.name="",b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.type=b:e.removeAttribute("type"),n!=null?b==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+An(n)):e.value!==""+An(n)&&(e.value=""+An(n)):b!=="submit"&&b!=="reset"||e.removeAttribute("value"),n!=null?zu(e,b,An(n)):a!=null?zu(e,b,An(a)):o!=null&&e.removeAttribute("value"),u==null&&f!=null&&(e.defaultChecked=!!f),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?e.name=""+An(S):e.removeAttribute("name")}function qm(e,n,a,o,u,f,b,S){if(f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.type=f),n!=null||a!=null){if(!(f!=="submit"&&f!=="reset"||n!=null))return;a=a!=null?""+An(a):"",n=n!=null?""+An(n):a,S||n===e.value||(e.value=n),e.defaultValue=n}o=o??u,o=typeof o!="function"&&typeof o!="symbol"&&!!o,e.checked=S?e.checked:!!o,e.defaultChecked=!!o,b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(e.name=b)}function zu(e,n,a){n==="number"&&pl(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Es(e,n,a,o){if(e=e.options,n){n={};for(var u=0;u"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Bu=!1;if(Rr)try{var Di={};Object.defineProperty(Di,"passive",{get:function(){Bu=!0}}),window.addEventListener("test",Di,Di),window.removeEventListener("test",Di,Di)}catch{Bu=!1}var na=null,Hu=null,vl=null;function Xm(){if(vl)return vl;var e,n=Hu,a=n.length,o,u="value"in na?na.value:na.textContent,f=u.length;for(e=0;e=zi),tp=" ",np=!1;function rp(e,n){switch(e){case"keyup":return g_.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ap(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Rs=!1;function y_(e,n){switch(e){case"compositionend":return ap(n);case"keypress":return n.which!==32?null:(np=!0,tp);case"textInput":return e=n.data,e===tp&&np?null:e;default:return null}}function b_(e,n){if(Rs)return e==="compositionend"||!Yu&&rp(e,n)?(e=Xm(),vl=Hu=na=null,Rs=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1=n)return{node:a,offset:n-e};e=o}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=fp(a)}}function mp(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?mp(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function pp(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var n=pl(e.document);n instanceof e.HTMLIFrameElement;){try{var a=typeof n.contentWindow.location.href=="string"}catch{a=!1}if(a)e=n.contentWindow;else break;n=pl(e.document)}return n}function Xu(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}var A_=Rr&&"documentMode"in document&&11>=document.documentMode,Os=null,Ku=null,Vi=null,$u=!1;function gp(e,n,a){var o=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;$u||Os==null||Os!==pl(o)||(o=Os,"selectionStart"in o&&Xu(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),Vi&&Pi(Vi,o)||(Vi=o,o=oc(Ku,"onSelect"),0>=b,u-=b,Mr=1<<32-nt(n)+u|a<f?f:8;var b=O.T,S={};O.T=S,Ud(e,!1,n,a);try{var A=u(),q=O.S;if(q!==null&&q(S,A),A!==null&&typeof A=="object"&&typeof A.then=="function"){var $=U_(A,o);eo(e,n,$,xn(e))}else eo(e,n,o,xn(e))}catch(ne){eo(e,n,{then:function(){},status:"rejected",reason:ne},xn())}finally{Y.p=f,O.T=b}}function H_(){}function kd(e,n,a,o){if(e.tag!==5)throw Error(i(476));var u=vg(e).queue;gg(e,u,n,B,a===null?H_:function(){return yg(e),a(o)})}function vg(e){var n=e.memoizedState;if(n!==null)return n;n={memoizedState:B,baseState:B,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:kr,lastRenderedState:B},next:null};var a={};return n.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:kr,lastRenderedState:a},next:null},e.memoizedState=n,e=e.alternate,e!==null&&(e.memoizedState=n),n}function yg(e){var n=vg(e).next.queue;eo(e,n,{},xn())}function zd(){return Qt(bo)}function bg(){return Rt().memoizedState}function xg(){return Rt().memoizedState}function q_(e){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var a=xn();e=sa(a);var o=ia(n,e,a);o!==null&&(Sn(o,n,a),Qi(o,n,a)),n={cache:dd()},e.payload=n;return}n=n.return}}function I_(e,n,a){var o=xn();a={lane:o,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null},Hl(e)?wg(n,a):(a=td(e,n,a,o),a!==null&&(Sn(a,e,o),_g(a,n,o)))}function Sg(e,n,a){var o=xn();eo(e,n,a,o)}function eo(e,n,a,o){var u={lane:o,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null};if(Hl(e))wg(n,u);else{var f=e.alternate;if(e.lanes===0&&(f===null||f.lanes===0)&&(f=n.lastRenderedReducer,f!==null))try{var b=n.lastRenderedState,S=f(b,a);if(u.hasEagerState=!0,u.eagerState=S,pn(S,b))return El(e,n,u,0),dt===null&&_l(),!1}catch{}finally{}if(a=td(e,n,u,o),a!==null)return Sn(a,e,o),_g(a,n,o),!0}return!1}function Ud(e,n,a,o){if(o={lane:2,revertLane:pf(),action:o,hasEagerState:!1,eagerState:null,next:null},Hl(e)){if(n)throw Error(i(479))}else n=td(e,a,o,2),n!==null&&Sn(n,e,2)}function Hl(e){var n=e.alternate;return e===Fe||n!==null&&n===Fe}function wg(e,n){Vs=zl=!0;var a=e.pending;a===null?n.next=n:(n.next=a.next,a.next=n),e.pending=n}function _g(e,n,a){if((a&4194048)!==0){var o=n.lanes;o&=e.pendingLanes,a|=o,n.lanes=a,yt(e,a)}}var ql={readContext:Qt,use:Ll,useCallback:St,useContext:St,useEffect:St,useImperativeHandle:St,useLayoutEffect:St,useInsertionEffect:St,useMemo:St,useReducer:St,useRef:St,useState:St,useDebugValue:St,useDeferredValue:St,useTransition:St,useSyncExternalStore:St,useId:St,useHostTransitionStatus:St,useFormState:St,useActionState:St,useOptimistic:St,useMemoCache:St,useCacheRefresh:St},Eg={readContext:Qt,use:Ll,useCallback:function(e,n){return sn().memoizedState=[e,n===void 0?null:n],e},useContext:Qt,useEffect:og,useImperativeHandle:function(e,n,a){a=a!=null?a.concat([e]):null,Bl(4194308,4,dg.bind(null,n,e),a)},useLayoutEffect:function(e,n){return Bl(4194308,4,e,n)},useInsertionEffect:function(e,n){Bl(4,2,e,n)},useMemo:function(e,n){var a=sn();n=n===void 0?null:n;var o=e();if(Wa){Ye(!0);try{e()}finally{Ye(!1)}}return a.memoizedState=[o,n],o},useReducer:function(e,n,a){var o=sn();if(a!==void 0){var u=a(n);if(Wa){Ye(!0);try{a(n)}finally{Ye(!1)}}}else u=n;return o.memoizedState=o.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},o.queue=e,e=e.dispatch=I_.bind(null,Fe,e),[o.memoizedState,e]},useRef:function(e){var n=sn();return e={current:e},n.memoizedState=e},useState:function(e){e=Md(e);var n=e.queue,a=Sg.bind(null,Fe,n);return n.dispatch=a,[e.memoizedState,a]},useDebugValue:Dd,useDeferredValue:function(e,n){var a=sn();return jd(a,e,n)},useTransition:function(){var e=Md(!1);return e=gg.bind(null,Fe,e.queue,!0,!1),sn().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,n,a){var o=Fe,u=sn();if(tt){if(a===void 0)throw Error(i(407));a=a()}else{if(a=n(),dt===null)throw Error(i(349));(We&124)!==0||Gp(o,n,a)}u.memoizedState=a;var f={value:a,getSnapshot:n};return u.queue=f,og(Zp.bind(null,o,f,e),[e]),o.flags|=2048,Hs(9,Vl(),Yp.bind(null,o,f,a,n),null),a},useId:function(){var e=sn(),n=dt.identifierPrefix;if(tt){var a=Nr,o=Mr;a=(o&~(1<<32-nt(o)-1)).toString(32)+a,n="«"+n+"R"+a,a=Ul++,0Me?(Ht=Re,Re=null):Ht=Re.sibling;var et=F(L,Re,H[Me],W);if(et===null){Re===null&&(Re=Ht);break}e&&Re&&et.alternate===null&&n(L,Re),j=f(et,j,Me),Ze===null?Ee=et:Ze.sibling=et,Ze=et,Re=Ht}if(Me===H.length)return a(L,Re),tt&&Ya(L,Me),Ee;if(Re===null){for(;MeMe?(Ht=Re,Re=null):Ht=Re.sibling;var _a=F(L,Re,et.value,W);if(_a===null){Re===null&&(Re=Ht);break}e&&Re&&_a.alternate===null&&n(L,Re),j=f(_a,j,Me),Ze===null?Ee=_a:Ze.sibling=_a,Ze=_a,Re=Ht}if(et.done)return a(L,Re),tt&&Ya(L,Me),Ee;if(Re===null){for(;!et.done;Me++,et=H.next())et=ne(L,et.value,W),et!==null&&(j=f(et,j,Me),Ze===null?Ee=et:Ze.sibling=et,Ze=et);return tt&&Ya(L,Me),Ee}for(Re=o(Re);!et.done;Me++,et=H.next())et=G(Re,L,Me,et.value,W),et!==null&&(e&&et.alternate!==null&&Re.delete(et.key===null?Me:et.key),j=f(et,j,Me),Ze===null?Ee=et:Ze.sibling=et,Ze=et);return e&&Re.forEach(function(G1){return n(L,G1)}),tt&&Ya(L,Me),Ee}function lt(L,j,H,W){if(typeof H=="object"&&H!==null&&H.type===T&&H.key===null&&(H=H.props.children),typeof H=="object"&&H!==null){switch(H.$$typeof){case w:e:{for(var Ee=H.key;j!==null;){if(j.key===Ee){if(Ee=H.type,Ee===T){if(j.tag===7){a(L,j.sibling),W=u(j,H.props.children),W.return=L,L=W;break e}}else if(j.elementType===Ee||typeof Ee=="object"&&Ee!==null&&Ee.$$typeof===V&&Tg(Ee)===j.type){a(L,j.sibling),W=u(j,H.props),no(W,H),W.return=L,L=W;break e}a(L,j);break}else n(L,j);j=j.sibling}H.type===T?(W=Fa(H.props.children,L.mode,W,H.key),W.return=L,L=W):(W=Tl(H.type,H.key,H.props,null,L.mode,W),no(W,H),W.return=L,L=W)}return b(L);case E:e:{for(Ee=H.key;j!==null;){if(j.key===Ee)if(j.tag===4&&j.stateNode.containerInfo===H.containerInfo&&j.stateNode.implementation===H.implementation){a(L,j.sibling),W=u(j,H.children||[]),W.return=L,L=W;break e}else{a(L,j);break}else n(L,j);j=j.sibling}W=ad(H,L.mode,W),W.return=L,L=W}return b(L);case V:return Ee=H._init,H=Ee(H._payload),lt(L,j,H,W)}if(pe(H))return je(L,j,H,W);if(ie(H)){if(Ee=ie(H),typeof Ee!="function")throw Error(i(150));return H=Ee.call(H),Oe(L,j,H,W)}if(typeof H.then=="function")return lt(L,j,Il(H),W);if(H.$$typeof===z)return lt(L,j,Ml(L,H),W);Fl(L,H)}return typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint"?(H=""+H,j!==null&&j.tag===6?(a(L,j.sibling),W=u(j,H),W.return=L,L=W):(a(L,j),W=rd(H,L.mode,W),W.return=L,L=W),b(L)):a(L,j)}return function(L,j,H,W){try{to=0;var Ee=lt(L,j,H,W);return qs=null,Ee}catch(Re){if(Re===Yi||Re===Dl)throw Re;var Ze=gn(29,Re,null,L.mode);return Ze.lanes=W,Ze.return=L,Ze}finally{}}}var Is=Ag(!0),Rg=Ag(!1),jn=K(null),or=null;function la(e){var n=e.alternate;Q(Dt,Dt.current&1),Q(jn,e),or===null&&(n===null||Ps.current!==null||n.memoizedState!==null)&&(or=e)}function Og(e){if(e.tag===22){if(Q(Dt,Dt.current),Q(jn,e),or===null){var n=e.alternate;n!==null&&n.memoizedState!==null&&(or=e)}}else ca()}function ca(){Q(Dt,Dt.current),Q(jn,jn.current)}function zr(e){le(jn),or===e&&(or=null),le(Dt)}var Dt=K(0);function Gl(e){for(var n=e;n!==null;){if(n.tag===13){var a=n.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||Af(a)))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}function Ld(e,n,a,o){n=e.memoizedState,a=a(o,n),a=a==null?n:v({},n,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Pd={enqueueSetState:function(e,n,a){e=e._reactInternals;var o=xn(),u=sa(o);u.payload=n,a!=null&&(u.callback=a),n=ia(e,u,o),n!==null&&(Sn(n,e,o),Qi(n,e,o))},enqueueReplaceState:function(e,n,a){e=e._reactInternals;var o=xn(),u=sa(o);u.tag=1,u.payload=n,a!=null&&(u.callback=a),n=ia(e,u,o),n!==null&&(Sn(n,e,o),Qi(n,e,o))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var a=xn(),o=sa(a);o.tag=2,n!=null&&(o.callback=n),n=ia(e,o,a),n!==null&&(Sn(n,e,a),Qi(n,e,a))}};function Mg(e,n,a,o,u,f,b){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,f,b):n.prototype&&n.prototype.isPureReactComponent?!Pi(a,o)||!Pi(u,f):!0}function Ng(e,n,a,o){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(a,o),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(a,o),n.state!==e&&Pd.enqueueReplaceState(n,n.state,null)}function Ja(e,n){var a=n;if("ref"in n){a={};for(var o in n)o!=="ref"&&(a[o]=n[o])}if(e=e.defaultProps){a===n&&(a=v({},a));for(var u in e)a[u]===void 0&&(a[u]=e[u])}return a}var Yl=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function Dg(e){Yl(e)}function jg(e){console.error(e)}function kg(e){Yl(e)}function Zl(e,n){try{var a=e.onUncaughtError;a(n.value,{componentStack:n.stack})}catch(o){setTimeout(function(){throw o})}}function zg(e,n,a){try{var o=e.onCaughtError;o(a.value,{componentStack:a.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function Vd(e,n,a){return a=sa(a),a.tag=3,a.payload={element:null},a.callback=function(){Zl(e,n)},a}function Ug(e){return e=sa(e),e.tag=3,e}function Lg(e,n,a,o){var u=a.type.getDerivedStateFromError;if(typeof u=="function"){var f=o.value;e.payload=function(){return u(f)},e.callback=function(){zg(n,a,o)}}var b=a.stateNode;b!==null&&typeof b.componentDidCatch=="function"&&(e.callback=function(){zg(n,a,o),typeof u!="function"&&(pa===null?pa=new Set([this]):pa.add(this));var S=o.stack;this.componentDidCatch(o.value,{componentStack:S!==null?S:""})})}function G_(e,n,a,o,u){if(a.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(n=a.alternate,n!==null&&Ii(n,a,u,!0),a=jn.current,a!==null){switch(a.tag){case 13:return or===null?uf():a.alternate===null&&vt===0&&(vt=3),a.flags&=-257,a.flags|=65536,a.lanes=u,o===md?a.flags|=16384:(n=a.updateQueue,n===null?a.updateQueue=new Set([o]):n.add(o),ff(e,o,u)),!1;case 22:return a.flags|=65536,o===md?a.flags|=16384:(n=a.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([o])},a.updateQueue=n):(a=n.retryQueue,a===null?n.retryQueue=new Set([o]):a.add(o)),ff(e,o,u)),!1}throw Error(i(435,a.tag))}return ff(e,o,u),uf(),!1}if(tt)return n=jn.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=u,o!==od&&(e=Error(i(422),{cause:o}),qi(On(e,a)))):(o!==od&&(n=Error(i(423),{cause:o}),qi(On(n,a))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,o=On(o,a),u=Vd(e.stateNode,o,u),vd(e,u),vt!==4&&(vt=2)),!1;var f=Error(i(520),{cause:o});if(f=On(f,a),co===null?co=[f]:co.push(f),vt!==4&&(vt=2),n===null)return!0;o=On(o,a),a=n;do{switch(a.tag){case 3:return a.flags|=65536,e=u&-u,a.lanes|=e,e=Vd(a.stateNode,o,e),vd(a,e),!1;case 1:if(n=a.type,f=a.stateNode,(a.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||f!==null&&typeof f.componentDidCatch=="function"&&(pa===null||!pa.has(f))))return a.flags|=65536,u&=-u,a.lanes|=u,u=Ug(u),Lg(u,e,a,o),vd(a,u),!1}a=a.return}while(a!==null);return!1}var Pg=Error(i(461)),Vt=!1;function It(e,n,a,o){n.child=e===null?Rg(n,null,a,o):Is(n,e.child,a,o)}function Vg(e,n,a,o,u){a=a.render;var f=n.ref;if("ref"in o){var b={};for(var S in o)S!=="ref"&&(b[S]=o[S])}else b=o;return Ka(n),o=wd(e,n,a,b,f,u),S=_d(),e!==null&&!Vt?(Ed(e,n,u),Ur(e,n,u)):(tt&&S&&sd(n),n.flags|=1,It(e,n,o,u),n.child)}function Bg(e,n,a,o,u){if(e===null){var f=a.type;return typeof f=="function"&&!nd(f)&&f.defaultProps===void 0&&a.compare===null?(n.tag=15,n.type=f,Hg(e,n,f,o,u)):(e=Tl(a.type,null,o,n,n.mode,u),e.ref=n.ref,e.return=n,n.child=e)}if(f=e.child,!Zd(e,u)){var b=f.memoizedProps;if(a=a.compare,a=a!==null?a:Pi,a(b,o)&&e.ref===n.ref)return Ur(e,n,u)}return n.flags|=1,e=Or(f,o),e.ref=n.ref,e.return=n,n.child=e}function Hg(e,n,a,o,u){if(e!==null){var f=e.memoizedProps;if(Pi(f,o)&&e.ref===n.ref)if(Vt=!1,n.pendingProps=o=f,Zd(e,u))(e.flags&131072)!==0&&(Vt=!0);else return n.lanes=e.lanes,Ur(e,n,u)}return Bd(e,n,a,o,u)}function qg(e,n,a){var o=n.pendingProps,u=o.children,f=e!==null?e.memoizedState:null;if(o.mode==="hidden"){if((n.flags&128)!==0){if(o=f!==null?f.baseLanes|a:a,e!==null){for(u=n.child=e.child,f=0;u!==null;)f=f|u.lanes|u.childLanes,u=u.sibling;n.childLanes=f&~o}else n.childLanes=0,n.child=null;return Ig(e,n,o,a)}if((a&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},e!==null&&Nl(n,f!==null?f.cachePool:null),f!==null?Hp(n,f):bd(),Og(n);else return n.lanes=n.childLanes=536870912,Ig(e,n,f!==null?f.baseLanes|a:a,a)}else f!==null?(Nl(n,f.cachePool),Hp(n,f),ca(),n.memoizedState=null):(e!==null&&Nl(n,null),bd(),ca());return It(e,n,u,a),n.child}function Ig(e,n,a,o){var u=hd();return u=u===null?null:{parent:Nt._currentValue,pool:u},n.memoizedState={baseLanes:a,cachePool:u},e!==null&&Nl(n,null),bd(),Og(n),e!==null&&Ii(e,n,o,!0),null}function Ql(e,n){var a=n.ref;if(a===null)e!==null&&e.ref!==null&&(n.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(i(284));(e===null||e.ref!==a)&&(n.flags|=4194816)}}function Bd(e,n,a,o,u){return Ka(n),a=wd(e,n,a,o,void 0,u),o=_d(),e!==null&&!Vt?(Ed(e,n,u),Ur(e,n,u)):(tt&&o&&sd(n),n.flags|=1,It(e,n,a,u),n.child)}function Fg(e,n,a,o,u,f){return Ka(n),n.updateQueue=null,a=Ip(n,o,a,u),qp(e),o=_d(),e!==null&&!Vt?(Ed(e,n,f),Ur(e,n,f)):(tt&&o&&sd(n),n.flags|=1,It(e,n,a,f),n.child)}function Gg(e,n,a,o,u){if(Ka(n),n.stateNode===null){var f=js,b=a.contextType;typeof b=="object"&&b!==null&&(f=Qt(b)),f=new a(o,f),n.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,f.updater=Pd,n.stateNode=f,f._reactInternals=n,f=n.stateNode,f.props=o,f.state=n.memoizedState,f.refs={},pd(n),b=a.contextType,f.context=typeof b=="object"&&b!==null?Qt(b):js,f.state=n.memoizedState,b=a.getDerivedStateFromProps,typeof b=="function"&&(Ld(n,a,b,o),f.state=n.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(b=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),b!==f.state&&Pd.enqueueReplaceState(f,f.state,null),Ki(n,o,f,u),Xi(),f.state=n.memoizedState),typeof f.componentDidMount=="function"&&(n.flags|=4194308),o=!0}else if(e===null){f=n.stateNode;var S=n.memoizedProps,A=Ja(a,S);f.props=A;var q=f.context,$=a.contextType;b=js,typeof $=="object"&&$!==null&&(b=Qt($));var ne=a.getDerivedStateFromProps;$=typeof ne=="function"||typeof f.getSnapshotBeforeUpdate=="function",S=n.pendingProps!==S,$||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(S||q!==b)&&Ng(n,f,o,b),aa=!1;var F=n.memoizedState;f.state=F,Ki(n,o,f,u),Xi(),q=n.memoizedState,S||F!==q||aa?(typeof ne=="function"&&(Ld(n,a,ne,o),q=n.memoizedState),(A=aa||Mg(n,a,A,o,F,q,b))?($||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount()),typeof f.componentDidMount=="function"&&(n.flags|=4194308)):(typeof f.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=o,n.memoizedState=q),f.props=o,f.state=q,f.context=b,o=A):(typeof f.componentDidMount=="function"&&(n.flags|=4194308),o=!1)}else{f=n.stateNode,gd(e,n),b=n.memoizedProps,$=Ja(a,b),f.props=$,ne=n.pendingProps,F=f.context,q=a.contextType,A=js,typeof q=="object"&&q!==null&&(A=Qt(q)),S=a.getDerivedStateFromProps,(q=typeof S=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(b!==ne||F!==A)&&Ng(n,f,o,A),aa=!1,F=n.memoizedState,f.state=F,Ki(n,o,f,u),Xi();var G=n.memoizedState;b!==ne||F!==G||aa||e!==null&&e.dependencies!==null&&Ol(e.dependencies)?(typeof S=="function"&&(Ld(n,a,S,o),G=n.memoizedState),($=aa||Mg(n,a,$,o,F,G,A)||e!==null&&e.dependencies!==null&&Ol(e.dependencies))?(q||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(o,G,A),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(o,G,A)),typeof f.componentDidUpdate=="function"&&(n.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof f.componentDidUpdate!="function"||b===e.memoizedProps&&F===e.memoizedState||(n.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&F===e.memoizedState||(n.flags|=1024),n.memoizedProps=o,n.memoizedState=G),f.props=o,f.state=G,f.context=A,o=$):(typeof f.componentDidUpdate!="function"||b===e.memoizedProps&&F===e.memoizedState||(n.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&F===e.memoizedState||(n.flags|=1024),o=!1)}return f=o,Ql(e,n),o=(n.flags&128)!==0,f||o?(f=n.stateNode,a=o&&typeof a.getDerivedStateFromError!="function"?null:f.render(),n.flags|=1,e!==null&&o?(n.child=Is(n,e.child,null,u),n.child=Is(n,null,a,u)):It(e,n,a,u),n.memoizedState=f.state,e=n.child):e=Ur(e,n,u),e}function Yg(e,n,a,o){return Hi(),n.flags|=256,It(e,n,a,o),n.child}var Hd={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function qd(e){return{baseLanes:e,cachePool:jp()}}function Id(e,n,a){return e=e!==null?e.childLanes&~a:0,n&&(e|=kn),e}function Zg(e,n,a){var o=n.pendingProps,u=!1,f=(n.flags&128)!==0,b;if((b=f)||(b=e!==null&&e.memoizedState===null?!1:(Dt.current&2)!==0),b&&(u=!0,n.flags&=-129),b=(n.flags&32)!==0,n.flags&=-33,e===null){if(tt){if(u?la(n):ca(),tt){var S=gt,A;if(A=S){e:{for(A=S,S=ir;A.nodeType!==8;){if(!S){S=null;break e}if(A=In(A.nextSibling),A===null){S=null;break e}}S=A}S!==null?(n.memoizedState={dehydrated:S,treeContext:Ga!==null?{id:Mr,overflow:Nr}:null,retryLane:536870912,hydrationErrors:null},A=gn(18,null,null,0),A.stateNode=S,A.return=n,n.child=A,Wt=n,gt=null,A=!0):A=!1}A||Qa(n)}if(S=n.memoizedState,S!==null&&(S=S.dehydrated,S!==null))return Af(S)?n.lanes=32:n.lanes=536870912,null;zr(n)}return S=o.children,o=o.fallback,u?(ca(),u=n.mode,S=Xl({mode:"hidden",children:S},u),o=Fa(o,u,a,null),S.return=n,o.return=n,S.sibling=o,n.child=S,u=n.child,u.memoizedState=qd(a),u.childLanes=Id(e,b,a),n.memoizedState=Hd,o):(la(n),Fd(n,S))}if(A=e.memoizedState,A!==null&&(S=A.dehydrated,S!==null)){if(f)n.flags&256?(la(n),n.flags&=-257,n=Gd(e,n,a)):n.memoizedState!==null?(ca(),n.child=e.child,n.flags|=128,n=null):(ca(),u=o.fallback,S=n.mode,o=Xl({mode:"visible",children:o.children},S),u=Fa(u,S,a,null),u.flags|=2,o.return=n,u.return=n,o.sibling=u,n.child=o,Is(n,e.child,null,a),o=n.child,o.memoizedState=qd(a),o.childLanes=Id(e,b,a),n.memoizedState=Hd,n=u);else if(la(n),Af(S)){if(b=S.nextSibling&&S.nextSibling.dataset,b)var q=b.dgst;b=q,o=Error(i(419)),o.stack="",o.digest=b,qi({value:o,source:null,stack:null}),n=Gd(e,n,a)}else if(Vt||Ii(e,n,a,!1),b=(a&e.childLanes)!==0,Vt||b){if(b=dt,b!==null&&(o=a&-a,o=(o&42)!==0?1:Tt(o),o=(o&(b.suspendedLanes|a))!==0?0:o,o!==0&&o!==A.retryLane))throw A.retryLane=o,Ds(e,o),Sn(b,e,o),Pg;S.data==="$?"||uf(),n=Gd(e,n,a)}else S.data==="$?"?(n.flags|=192,n.child=e.child,n=null):(e=A.treeContext,gt=In(S.nextSibling),Wt=n,tt=!0,Za=null,ir=!1,e!==null&&(Nn[Dn++]=Mr,Nn[Dn++]=Nr,Nn[Dn++]=Ga,Mr=e.id,Nr=e.overflow,Ga=n),n=Fd(n,o.children),n.flags|=4096);return n}return u?(ca(),u=o.fallback,S=n.mode,A=e.child,q=A.sibling,o=Or(A,{mode:"hidden",children:o.children}),o.subtreeFlags=A.subtreeFlags&65011712,q!==null?u=Or(q,u):(u=Fa(u,S,a,null),u.flags|=2),u.return=n,o.return=n,o.sibling=u,n.child=o,o=u,u=n.child,S=e.child.memoizedState,S===null?S=qd(a):(A=S.cachePool,A!==null?(q=Nt._currentValue,A=A.parent!==q?{parent:q,pool:q}:A):A=jp(),S={baseLanes:S.baseLanes|a,cachePool:A}),u.memoizedState=S,u.childLanes=Id(e,b,a),n.memoizedState=Hd,o):(la(n),a=e.child,e=a.sibling,a=Or(a,{mode:"visible",children:o.children}),a.return=n,a.sibling=null,e!==null&&(b=n.deletions,b===null?(n.deletions=[e],n.flags|=16):b.push(e)),n.child=a,n.memoizedState=null,a)}function Fd(e,n){return n=Xl({mode:"visible",children:n},e.mode),n.return=e,e.child=n}function Xl(e,n){return e=gn(22,e,null,n),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function Gd(e,n,a){return Is(n,e.child,null,a),e=Fd(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function Qg(e,n,a){e.lanes|=n;var o=e.alternate;o!==null&&(o.lanes|=n),cd(e.return,n,a)}function Yd(e,n,a,o,u){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:o,tail:a,tailMode:u}:(f.isBackwards=n,f.rendering=null,f.renderingStartTime=0,f.last=o,f.tail=a,f.tailMode=u)}function Xg(e,n,a){var o=n.pendingProps,u=o.revealOrder,f=o.tail;if(It(e,n,o.children,a),o=Dt.current,(o&2)!==0)o=o&1|2,n.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Qg(e,a,n);else if(e.tag===19)Qg(e,a,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}o&=1}switch(Q(Dt,o),u){case"forwards":for(a=n.child,u=null;a!==null;)e=a.alternate,e!==null&&Gl(e)===null&&(u=a),a=a.sibling;a=u,a===null?(u=n.child,n.child=null):(u=a.sibling,a.sibling=null),Yd(n,!1,u,a,f);break;case"backwards":for(a=null,u=n.child,n.child=null;u!==null;){if(e=u.alternate,e!==null&&Gl(e)===null){n.child=u;break}e=u.sibling,u.sibling=a,a=u,u=e}Yd(n,!0,a,null,f);break;case"together":Yd(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function Ur(e,n,a){if(e!==null&&(n.dependencies=e.dependencies),ma|=n.lanes,(a&n.childLanes)===0)if(e!==null){if(Ii(e,n,a,!1),(a&n.childLanes)===0)return null}else return null;if(e!==null&&n.child!==e.child)throw Error(i(153));if(n.child!==null){for(e=n.child,a=Or(e,e.pendingProps),n.child=a,a.return=n;e.sibling!==null;)e=e.sibling,a=a.sibling=Or(e,e.pendingProps),a.return=n;a.sibling=null}return n.child}function Zd(e,n){return(e.lanes&n)!==0?!0:(e=e.dependencies,!!(e!==null&&Ol(e)))}function Y_(e,n,a){switch(n.tag){case 3:fe(n,n.stateNode.containerInfo),ra(n,Nt,e.memoizedState.cache),Hi();break;case 27:case 5:Le(n);break;case 4:fe(n,n.stateNode.containerInfo);break;case 10:ra(n,n.type,n.memoizedProps.value);break;case 13:var o=n.memoizedState;if(o!==null)return o.dehydrated!==null?(la(n),n.flags|=128,null):(a&n.child.childLanes)!==0?Zg(e,n,a):(la(n),e=Ur(e,n,a),e!==null?e.sibling:null);la(n);break;case 19:var u=(e.flags&128)!==0;if(o=(a&n.childLanes)!==0,o||(Ii(e,n,a,!1),o=(a&n.childLanes)!==0),u){if(o)return Xg(e,n,a);n.flags|=128}if(u=n.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),Q(Dt,Dt.current),o)break;return null;case 22:case 23:return n.lanes=0,qg(e,n,a);case 24:ra(n,Nt,e.memoizedState.cache)}return Ur(e,n,a)}function Kg(e,n,a){if(e!==null)if(e.memoizedProps!==n.pendingProps)Vt=!0;else{if(!Zd(e,a)&&(n.flags&128)===0)return Vt=!1,Y_(e,n,a);Vt=(e.flags&131072)!==0}else Vt=!1,tt&&(n.flags&1048576)!==0&&Tp(n,Rl,n.index);switch(n.lanes=0,n.tag){case 16:e:{e=n.pendingProps;var o=n.elementType,u=o._init;if(o=u(o._payload),n.type=o,typeof o=="function")nd(o)?(e=Ja(o,e),n.tag=1,n=Gg(null,n,o,e,a)):(n.tag=0,n=Bd(null,n,o,e,a));else{if(o!=null){if(u=o.$$typeof,u===k){n.tag=11,n=Vg(null,n,o,e,a);break e}else if(u===P){n.tag=14,n=Bg(null,n,o,e,a);break e}}throw n=ce(o)||o,Error(i(306,n,""))}}return n;case 0:return Bd(e,n,n.type,n.pendingProps,a);case 1:return o=n.type,u=Ja(o,n.pendingProps),Gg(e,n,o,u,a);case 3:e:{if(fe(n,n.stateNode.containerInfo),e===null)throw Error(i(387));o=n.pendingProps;var f=n.memoizedState;u=f.element,gd(e,n),Ki(n,o,null,a);var b=n.memoizedState;if(o=b.cache,ra(n,Nt,o),o!==f.cache&&ud(n,[Nt],a,!0),Xi(),o=b.element,f.isDehydrated)if(f={element:o,isDehydrated:!1,cache:b.cache},n.updateQueue.baseState=f,n.memoizedState=f,n.flags&256){n=Yg(e,n,o,a);break e}else if(o!==u){u=On(Error(i(424)),n),qi(u),n=Yg(e,n,o,a);break e}else{switch(e=n.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(gt=In(e.firstChild),Wt=n,tt=!0,Za=null,ir=!0,a=Rg(n,null,o,a),n.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(Hi(),o===u){n=Ur(e,n,a);break e}It(e,n,o,a)}n=n.child}return n;case 26:return Ql(e,n),e===null?(a=ey(n.type,null,n.pendingProps,null))?n.memoizedState=a:tt||(a=n.type,e=n.pendingProps,o=cc(ge.current).createElement(a),o[xt]=n,o[ut]=e,Gt(o,a,e),Pt(o),n.stateNode=o):n.memoizedState=ey(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return Le(n),e===null&&tt&&(o=n.stateNode=$v(n.type,n.pendingProps,ge.current),Wt=n,ir=!0,u=gt,ya(n.type)?(Rf=u,gt=In(o.firstChild)):gt=u),It(e,n,n.pendingProps.children,a),Ql(e,n),e===null&&(n.flags|=4194304),n.child;case 5:return e===null&&tt&&((u=o=gt)&&(o=x1(o,n.type,n.pendingProps,ir),o!==null?(n.stateNode=o,Wt=n,gt=In(o.firstChild),ir=!1,u=!0):u=!1),u||Qa(n)),Le(n),u=n.type,f=n.pendingProps,b=e!==null?e.memoizedProps:null,o=f.children,Ef(u,f)?o=null:b!==null&&Ef(u,b)&&(n.flags|=32),n.memoizedState!==null&&(u=wd(e,n,P_,null,null,a),bo._currentValue=u),Ql(e,n),It(e,n,o,a),n.child;case 6:return e===null&&tt&&((e=a=gt)&&(a=S1(a,n.pendingProps,ir),a!==null?(n.stateNode=a,Wt=n,gt=null,e=!0):e=!1),e||Qa(n)),null;case 13:return Zg(e,n,a);case 4:return fe(n,n.stateNode.containerInfo),o=n.pendingProps,e===null?n.child=Is(n,null,o,a):It(e,n,o,a),n.child;case 11:return Vg(e,n,n.type,n.pendingProps,a);case 7:return It(e,n,n.pendingProps,a),n.child;case 8:return It(e,n,n.pendingProps.children,a),n.child;case 12:return It(e,n,n.pendingProps.children,a),n.child;case 10:return o=n.pendingProps,ra(n,n.type,o.value),It(e,n,o.children,a),n.child;case 9:return u=n.type._context,o=n.pendingProps.children,Ka(n),u=Qt(u),o=o(u),n.flags|=1,It(e,n,o,a),n.child;case 14:return Bg(e,n,n.type,n.pendingProps,a);case 15:return Hg(e,n,n.type,n.pendingProps,a);case 19:return Xg(e,n,a);case 31:return o=n.pendingProps,a=n.mode,o={mode:o.mode,children:o.children},e===null?(a=Xl(o,a),a.ref=n.ref,n.child=a,a.return=n,n=a):(a=Or(e.child,o),a.ref=n.ref,n.child=a,a.return=n,n=a),n;case 22:return qg(e,n,a);case 24:return Ka(n),o=Qt(Nt),e===null?(u=hd(),u===null&&(u=dt,f=dd(),u.pooledCache=f,f.refCount++,f!==null&&(u.pooledCacheLanes|=a),u=f),n.memoizedState={parent:o,cache:u},pd(n),ra(n,Nt,u)):((e.lanes&a)!==0&&(gd(e,n),Ki(n,null,null,a),Xi()),u=e.memoizedState,f=n.memoizedState,u.parent!==o?(u={parent:o,cache:o},n.memoizedState=u,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=u),ra(n,Nt,o)):(o=f.cache,ra(n,Nt,o),o!==u.cache&&ud(n,[Nt],a,!0))),It(e,n,n.pendingProps.children,a),n.child;case 29:throw n.pendingProps}throw Error(i(156,n.tag))}function Lr(e){e.flags|=4}function $g(e,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!sy(n)){if(n=jn.current,n!==null&&((We&4194048)===We?or!==null:(We&62914560)!==We&&(We&536870912)===0||n!==or))throw Zi=md,kp;e.flags|=8192}}function Kl(e,n){n!==null&&(e.flags|=4),e.flags&16384&&(n=e.tag!==22?ul():536870912,e.lanes|=n,Zs|=n)}function ro(e,n){if(!tt)switch(e.tailMode){case"hidden":n=e.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var o=null;a!==null;)a.alternate!==null&&(o=a),a=a.sibling;o===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function ht(e){var n=e.alternate!==null&&e.alternate.child===e.child,a=0,o=0;if(n)for(var u=e.child;u!==null;)a|=u.lanes|u.childLanes,o|=u.subtreeFlags&65011712,o|=u.flags&65011712,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)a|=u.lanes|u.childLanes,o|=u.subtreeFlags,o|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=o,e.childLanes=a,n}function Z_(e,n,a){var o=n.pendingProps;switch(id(n),n.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ht(n),null;case 1:return ht(n),null;case 3:return a=n.stateNode,o=null,e!==null&&(o=e.memoizedState.cache),n.memoizedState.cache!==o&&(n.flags|=2048),jr(Nt),Be(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Bi(n)?Lr(n):e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,Op())),ht(n),null;case 26:return a=n.memoizedState,e===null?(Lr(n),a!==null?(ht(n),$g(n,a)):(ht(n),n.flags&=-16777217)):a?a!==e.memoizedState?(Lr(n),ht(n),$g(n,a)):(ht(n),n.flags&=-16777217):(e.memoizedProps!==o&&Lr(n),ht(n),n.flags&=-16777217),null;case 27:He(n),a=ge.current;var u=n.type;if(e!==null&&n.stateNode!=null)e.memoizedProps!==o&&Lr(n);else{if(!o){if(n.stateNode===null)throw Error(i(166));return ht(n),null}e=ae.current,Bi(n)?Ap(n):(e=$v(u,o,a),n.stateNode=e,Lr(n))}return ht(n),null;case 5:if(He(n),a=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==o&&Lr(n);else{if(!o){if(n.stateNode===null)throw Error(i(166));return ht(n),null}if(e=ae.current,Bi(n))Ap(n);else{switch(u=cc(ge.current),e){case 1:e=u.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:e=u.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":e=u.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":e=u.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":e=u.createElement("div"),e.innerHTML=" + + + + + + + +
+ + diff --git a/releases/auto-post-facebook-extensions_1.4/manifest.json b/releases/auto-post-facebook-extensions_1.4/manifest.json new file mode 100644 index 0000000..814d8e1 --- /dev/null +++ b/releases/auto-post-facebook-extensions_1.4/manifest.json @@ -0,0 +1,37 @@ +{ + "manifest_version": 3, + "name": "Auto post facebook extensions", + "version": "1.4", + "action": { + "default_popup": "index.html", + "default_icon": { + "16": "icons/16.png", + "32": "icons/32.png", + "128": "icons/128.png" + } + }, + "background": { + "service_worker": "background/background.js", + "type": "module" + }, + "host_permissions": ["https://www.facebook.com/*"], + "content_scripts": [ + { + "matches": ["https://www.facebook.com/*"], + "js": ["content/content.js"], + "type": "module" + } + ], + "web_accessible_resources": [ + { + "resources": ["content/inject-ui.js", "assets/*"], + "matches": ["https://www.facebook.com/*"] + } + ], + "permissions": ["tabs", "activeTab", "scripting", "storage"], + "icons": { + "16": "icons/16.png", + "32": "icons/32.png", + "128": "icons/128.png" + } +} diff --git a/releases/auto-post-facebook-extensions_1.4/vite.svg b/releases/auto-post-facebook-extensions_1.4/vite.svg new file mode 100644 index 0000000..e7b8dfb --- /dev/null +++ b/releases/auto-post-facebook-extensions_1.4/vite.svg @@ -0,0 +1 @@ + \ No newline at end of file