Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
/*! * |-----------------------------------| * UPCAT EXTENSION * |-------------..
Decoded Output download
<? /*!
* |-----------------------------------|
* UPCAT EXTENSION
* |-----------------------------------|
* version: v1.1.10
* description: Use A.I. to enhance your job search on Upwork with personalized proposals and real-time alerts.
* author: CodeSpikeX
* homepage: https://codespikex.com/
* license: GPL-3.0
*/
(function(){"use strict";var oa=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Se={},la={get exports(){return Se},set exports(t){Se=t}};const ua=t=>typeof crypto<"u"&&typeof crypto.getRandomValues=="function"?()=>{const e=crypto.getRandomValues(new Uint8Array(1))[0];return(e>=t?e%t:e).toString(t)}:()=>Math.floor(Math.random()*t).toString(t),ar=(t=7,e=!1)=>Array.from({length:t},ua(e?16:36)).join("");la.exports=ar,Se.default=ar;var ca=()=>`uid::${Se(7)}`,fa=(t,e=["endpointName","fingerprint"])=>typeof t=="object"&&t!==null&&e.every(n=>n in t),da=t=>{try{const e=JSON.parse(t);return fa(e)?e:null}catch{return null}},ma=()=>{let t=[];return{add:(...e)=>{t=[...t,...e]},remove:e=>{t=typeof e=="string"?t.filter(n=>n.message.transactionId!==e):t.filter(n=>!e.includes(n))},entries:()=>t}},Ke=class{static toBackground(t,e){return t.postMessage(e)}static toExtensionContext(t,e){return t.postMessage(e)}},ha=Object.defineProperty,ga=Object.defineProperties,pa=Object.getOwnPropertyDescriptors,or=Object.getOwnPropertySymbols,ya=Object.prototype.hasOwnProperty,wa=Object.prototype.propertyIsEnumerable,lr=(t,e,n)=>e in t?ha(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,de=(t,e)=>{for(var n in e||(e={}))ya.call(e,n)&&lr(t,n,e[n]);if(or)for(var n of or(e))wa.call(e,n)&&lr(t,n,e[n]);return t},ln=(t,e)=>ga(t,pa(e)),ba=/^((?:background$)|devtools|popup|options|content-script|window)(?:@(\d+)(?:\.(\d+))?)?$/,un=t=>{const[,e,n,r]=t.match(ba)||[];return{context:e,tabId:+n,frameId:r?+r:void 0}},xt=({context:t,tabId:e,frameId:n})=>["background","popup","options"].includes(t)?t:`${t}@${e}${n?`.${n}`:""}`;const va=[{property:"name",enumerable:!1},{property:"message",enumerable:!1},{property:"stack",enumerable:!1},{property:"code",enumerable:!0}],cn=Symbol(".toJSON was called"),Aa=t=>{t[cn]=!0;const e=t.toJSON();return delete t[cn],e},ur=({from:t,seen:e,to_:n,forceEnumerable:r,maxDepth:s,depth:i})=>{const a=n||(Array.isArray(t)?[]:{});if(e.push(t),i>=s)return a;if(typeof t.toJSON=="function"&&t[cn]!==!0)return Aa(t);for(const[o,l]of Object.entries(t)){if(typeof Buffer=="function"&&Buffer.isBuffer(l)){a[o]="[object Buffer]";continue}if(l!==null&&typeof l=="object"&&typeof l.pipe=="function"){a[o]="[object Stream]";continue}if(typeof l!="function"){if(!l||typeof l!="object"){a[o]=l;continue}if(!e.includes(t[o])){i++,a[o]=ur({from:t[o],seen:[...e],forceEnumerable:r,maxDepth:s,depth:i});continue}a[o]="[Circular]"}}for(const{property:o,enumerable:l}of va)typeof t[o]=="string"&&Object.defineProperty(a,o,{value:t[o],enumerable:r?!0:l,configurable:!0,writable:!0});return a};function Ta(t,e={}){const{maxDepth:n=Number.POSITIVE_INFINITY}=e;return typeof t=="object"&&t!==null?ur({from:t,seen:[],forceEnumerable:!0,maxDepth:n,depth:0}):typeof t=="function"?`[Function: ${t.name||"anonymous"}]`:t}let cr=()=>({events:{},emit(t,...e){(this.events[t]||[]).forEach(n=>n(...e))},on(t,e){return(this.events[t]=this.events[t]||[]).push(e),()=>this.events[t]=(this.events[t]||[]).filter(n=>n!==e)}});var Sa=(t,e,n)=>{const r=Se(),s=new Map,i=new Map,a=o=>{if(o.destination.context===t&&!o.destination.frameId&&!o.destination.tabId){n==null||n(o);const{transactionId:l,messageID:u,messageType:f}=o,g=()=>{const c=s.get(l);if(c){const{err:h,data:b}=o;if(h){const y=h,x=self[y.name],E=new(typeof x=="function"?x:Error)(y.message);for(const A in y)E[A]=y[A];c.reject(E)}else c.resolve(b);s.delete(l)}},d=async()=>{let c,h,b=!1;try{const y=i.get(u);if(typeof y=="function")c=await y({sender:Object.assign({},o.origin),id:u,data:o.data,timestamp:o.timestamp});else throw b=!0,new Error(`[webext-bridge] No handler registered in '${t}' to accept messages with id '${u}'`)}catch(y){h=y}finally{if(h&&(o.err=Ta(h)),a(ln(de({},o),{messageType:"reply",data:c,origin:{context:t,tabId:null},destination:Object.assign({},o.origin),hops:[]})),h&&!b)throw c}};switch(f){case"reply":return g();case"message":return d()}}return o.hops.push(`${t}::${r}`),e(o)};return{handleMessage:a,endTransaction:o=>{const l=s.get(o);l==null||l.reject("Transaction was ended before it could complete"),s.delete(o)},sendMessage:(o,l,u="background")=>{const f=typeof u=="string"?un(u):u,g="Bridge#sendMessage ->";if(!f.context)throw new TypeError(`${g} Destination must be any one of known destinations`);return new Promise((d,c)=>{const h={messageID:o,data:l,destination:f,messageType:"message",transactionId:Se(),origin:{context:t,tabId:null},hops:[],timestamp:Date.now()};s.set(h.transactionId,{resolve:d,reject:c});try{a(h)}catch(b){s.delete(h.transactionId),c(b)}})},onMessage:(o,l)=>(i.set(o,l),()=>i.delete(o))}},Fe=class{constructor(t,e){this.endpointRuntime=t,this.streamInfo=e,this.emitter=cr(),this.isClosed=!1,this.handleStreamClose=()=>{this.isClosed||(this.isClosed=!0,this.emitter.emit("closed",!0),this.emitter.events={})},Fe.initDone||(t.onMessage("__crx_bridge_stream_transfer__",n=>{const{streamId:r,streamTransfer:s,action:i}=n.data,a=Fe.openStreams.get(r);a&&!a.isClosed&&(i==="transfer"&&a.emitter.emit("message",s),i==="close"&&(Fe.openStreams.delete(r),a.handleStreamClose()))}),Fe.initDone=!0),Fe.openStreams.set(this.streamInfo.streamId,this)}get info(){return this.streamInfo}send(t){if(this.isClosed)throw new Error("Attempting to send a message over closed stream. Use stream.onClose(<callback>) to keep an eye on stream status");return this.endpointRuntime.sendMessage("__crx_bridge_stream_transfer__",{streamId:this.streamInfo.streamId,streamTransfer:t,action:"transfer"},Object.assign({},this.streamInfo.endpoint))}close(t){const e=[];t&&e.push(this.send(t)),this.handleStreamClose();const n=this.endpointRuntime.sendMessage("__crx_bridge_stream_transfer__",{streamId:this.streamInfo.streamId,streamTransfer:null,action:"close"},Object.assign({},this.streamInfo.endpoint));return e.push(n),Promise.all(e)}onMessage(t){return this.getDisposable("message",t)}onClose(t){return this.getDisposable("closed",t)}getDisposable(t,e){const n=this.emitter.on(t,e);return Object.assign(n,{dispose:n,close:n})}},Ot=Fe;Ot.initDone=!1,Ot.openStreams=new Map;var xa=t=>{const e=new Map,n=new Map,r=cr();t.onMessage("__crx_bridge_stream_open__",a=>new Promise(o=>{const{sender:l,data:u}=a,{channel:f}=u;let g=!1,d=()=>{};const c=()=>{const h=n.get(f);typeof h=="function"?(h(new Ot(t,ln(de({},u),{endpoint:l}))),g&&d(),o(!0)):g||(g=!0,d=r.on("did-change-stream-callbacks",c))};c()}));async function s(a,o){if(e.has(a))throw new Error("webext-bridge: A Stream is already open at this channel");const l=typeof o=="string"?un(o):o,u={streamId:Se(),channel:a,endpoint:l},f=new Ot(t,u);return f.onClose(()=>e.delete(a)),await t.sendMessage("__crx_bridge_stream_open__",u,l),e.set(a,f),f}function i(a,o){if(n.has(a))throw new Error("webext-bridge: This channel has already been claimed. Stream allows only one-on-one communication");n.set(a,o),r.emit("did-change-stream-callbacks")}return{openStream:s,onOpenStreamChannel:i}},fn={},Oa={get exports(){return fn},set exports(t){fn=t}};(function(t,e){(function(n,r){r(t)})(typeof globalThis<"u"?globalThis:typeof self<"u"?self:oa,function(n){if(typeof globalThis!="object"||typeof chrome!="object"||!chrome||!chrome.runtime||!chrome.runtime.id)throw new Error("This script should only be loaded in a browser extension.");if(typeof globalThis.browser>"u"||Object.getPrototypeOf(globalThis.browser)!==Object.prototype){const r="The message port closed before a response was received.",s="Returning a Promise is the preferred way to send a reply from an onMessage/onMessageExternal listener, as the sendResponse will be removed from the specs (See https://developer.mozilla.org/docs/Mozilla/Add-ons/WebExtensions/API/runtime/onMessage)",i=a=>{const o={alarms:{clear:{minArgs:0,maxArgs:1},clearAll:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getAll:{minArgs:0,maxArgs:0}},bookmarks:{create:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},getChildren:{minArgs:1,maxArgs:1},getRecent:{minArgs:1,maxArgs:1},getSubTree:{minArgs:1,maxArgs:1},getTree:{minArgs:0,maxArgs:0},move:{minArgs:2,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeTree:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}},browserAction:{disable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},enable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},getBadgeBackgroundColor:{minArgs:1,maxArgs:1},getBadgeText:{minArgs:1,maxArgs:1},getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},openPopup:{minArgs:0,maxArgs:0},setBadgeBackgroundColor:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setBadgeText:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},browsingData:{remove:{minArgs:2,maxArgs:2},removeCache:{minArgs:1,maxArgs:1},removeCookies:{minArgs:1,maxArgs:1},removeDownloads:{minArgs:1,maxArgs:1},removeFormData:{minArgs:1,maxArgs:1},removeHistory:{minArgs:1,maxArgs:1},removeLocalStorage:{minArgs:1,maxArgs:1},removePasswords:{minArgs:1,maxArgs:1},removePluginData:{minArgs:1,maxArgs:1},settings:{minArgs:0,maxArgs:0}},commands:{getAll:{minArgs:0,maxArgs:0}},contextMenus:{remove:{minArgs:1,maxArgs:1},removeAll:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},cookies:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:1,maxArgs:1},getAllCookieStores:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},devtools:{inspectedWindow:{eval:{minArgs:1,maxArgs:2,singleCallbackArg:!1}},panels:{create:{minArgs:3,maxArgs:3,singleCallbackArg:!0},elements:{createSidebarPane:{minArgs:1,maxArgs:1}}}},downloads:{cancel:{minArgs:1,maxArgs:1},download:{minArgs:1,maxArgs:1},erase:{minArgs:1,maxArgs:1},getFileIcon:{minArgs:1,maxArgs:2},open:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},pause:{minArgs:1,maxArgs:1},removeFile:{minArgs:1,maxArgs:1},resume:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},extension:{isAllowedFileSchemeAccess:{minArgs:0,maxArgs:0},isAllowedIncognitoAccess:{minArgs:0,maxArgs:0}},history:{addUrl:{minArgs:1,maxArgs:1},deleteAll:{minArgs:0,maxArgs:0},deleteRange:{minArgs:1,maxArgs:1},deleteUrl:{minArgs:1,maxArgs:1},getVisits:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1}},i18n:{detectLanguage:{minArgs:1,maxArgs:1},getAcceptLanguages:{minArgs:0,maxArgs:0}},identity:{launchWebAuthFlow:{minArgs:1,maxArgs:1}},idle:{queryState:{minArgs:1,maxArgs:1}},management:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},getSelf:{minArgs:0,maxArgs:0},setEnabled:{minArgs:2,maxArgs:2},uninstallSelf:{minArgs:0,maxArgs:1}},notifications:{clear:{minArgs:1,maxArgs:1},create:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:0},getPermissionLevel:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},pageAction:{getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},hide:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},permissions:{contains:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},request:{minArgs:1,maxArgs:1}},runtime:{getBackgroundPage:{minArgs:0,maxArgs:0},getPlatformInfo:{minArgs:0,maxArgs:0},openOptionsPage:{minArgs:0,maxArgs:0},requestUpdateCheck:{minArgs:0,maxArgs:0},sendMessage:{minArgs:1,maxArgs:3},sendNativeMessage:{minArgs:2,maxArgs:2},setUninstallURL:{minArgs:1,maxArgs:1}},sessions:{getDevices:{minArgs:0,maxArgs:1},getRecentlyClosed:{minArgs:0,maxArgs:1},restore:{minArgs:0,maxArgs:1}},storage:{local:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},managed:{get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1}},sync:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}}},tabs:{captureVisibleTab:{minArgs:0,maxArgs:2},create:{minArgs:1,maxArgs:1},detectLanguage:{minArgs:0,maxArgs:1},discard:{minArgs:0,maxArgs:1},duplicate:{minArgs:1,maxArgs:1},executeScript:{minArgs:1,maxArgs:2},get:{minArgs:1,maxArgs:1},getCurrent:{minArgs:0,maxArgs:0},getZoom:{minArgs:0,maxArgs:1},getZoomSettings:{minArgs:0,maxArgs:1},goBack:{minArgs:0,maxArgs:1},goForward:{minArgs:0,maxArgs:1},highlight:{minArgs:1,maxArgs:1},insertCSS:{minArgs:1,maxArgs:2},move:{minArgs:2,maxArgs:2},query:{minArgs:1,maxArgs:1},reload:{minArgs:0,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeCSS:{minArgs:1,maxArgs:2},sendMessage:{minArgs:2,maxArgs:3},setZoom:{minArgs:1,maxArgs:2},setZoomSettings:{minArgs:1,maxArgs:2},update:{minArgs:1,maxArgs:2}},topSites:{get:{minArgs:0,maxArgs:0}},webNavigation:{getAllFrames:{minArgs:1,maxArgs:1},getFrame:{minArgs:1,maxArgs:1}},webRequest:{handlerBehaviorChanged:{minArgs:0,maxArgs:0}},windows:{create:{minArgs:0,maxArgs:1},get:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:1},getCurrent:{minArgs:0,maxArgs:1},getLastFocused:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}}};if(Object.keys(o).length===0)throw new Error("api-metadata.json has not been included in browser-polyfill");class l extends WeakMap{constructor(w,M=void 0){super(M),this.createItem=w}get(w){return this.has(w)||this.set(w,this.createItem(w)),super.get(w)}}const u=p=>p&&typeof p=="object"&&typeof p.then=="function",f=(p,w)=>(...M)=>{a.runtime.lastError?p.reject(new Error(a.runtime.lastError.message)):w.singleCallbackArg||M.length<=1&&w.singleCallbackArg!==!1?p.resolve(M[0]):p.resolve(M)},g=p=>p==1?"argument":"arguments",d=(p,w)=>function(k,...j){if(j.length<w.minArgs)throw new Error(`Expected at least ${w.minArgs} ${g(w.minArgs)} for ${p}(), got ${j.length}`);if(j.length>w.maxArgs)throw new Error(`Expected at most ${w.maxArgs} ${g(w.maxArgs)} for ${p}(), got ${j.length}`);return new Promise((H,Y)=>{if(w.fallbackToNoCallback)try{k[p](...j,f({resolve:H,reject:Y},w))}catch(T){console.warn(`${p} API method doesn't seem to support the callback parameter, falling back to call it without a callback: `,T),k[p](...j),w.fallbackToNoCallback=!1,w.noCallback=!0,H()}else w.noCallback?(k[p](...j),H()):k[p](...j,f({resolve:H,reject:Y},w))})},c=(p,w,M)=>new Proxy(w,{apply(k,j,H){return M.call(j,p,...H)}});let h=Function.call.bind(Object.prototype.hasOwnProperty);const b=(p,w={},M={})=>{let k=Object.create(null),j={has(Y,T){return T in p||T in k},get(Y,T,K){if(T in k)return k[T];if(!(T in p))return;let R=p[T];if(typeof R=="function")if(typeof w[T]=="function")R=c(p,p[T],w[T]);else if(h(M,T)){let Ye=d(T,M[T]);R=c(p,p[T],Ye)}else R=R.bind(p);else if(typeof R=="object"&&R!==null&&(h(w,T)||h(M,T)))R=b(R,w[T],M[T]);else if(h(M,"*"))R=b(R,w[T],M["*"]);else return Object.defineProperty(k,T,{configurable:!0,enumerable:!0,get(){return p[T]},set(Ye){p[T]=Ye}}),R;return k[T]=R,R},set(Y,T,K,R){return T in k?k[T]=K:p[T]=K,!0},defineProperty(Y,T,K){return Reflect.defineProperty(k,T,K)},deleteProperty(Y,T){return Reflect.deleteProperty(k,T)}},H=Object.create(p);return new Proxy(H,j)},y=p=>({addListener(w,M,...k){w.addListener(p.get(M),...k)},hasListener(w,M){return w.hasListener(p.get(M))},removeListener(w,M){w.removeListener(p.get(M))}}),x=new l(p=>typeof p!="function"?p:function(M){const k=b(M,{},{getContent:{minArgs:0,maxArgs:0}});p(k)});let E=!1;const A=new l(p=>typeof p!="function"?p:function(M,k,j){let H=!1,Y,T=new Promise(St=>{Y=function(oe){E||(console.warn(s,new Error().stack),E=!0),H=!0,St(oe)}}),K;try{K=p(M,k,Y)}catch(St){K=Promise.reject(St)}const R=K!==!0&&u(K);if(K!==!0&&!R&&!H)return!1;const Ye=St=>{St.then(oe=>{j(oe)},oe=>{let ir;oe&&(oe instanceof Error||typeof oe.message=="string")?ir=oe.message:ir="An unexpected error occurred",j({__mozWebExtensionPolyfillReject__:!0,message:ir})}).catch(oe=>{console.error("Failed to send onMessage rejected reply",oe)})};return Ye(R?K:T),!0}),U=({reject:p,resolve:w},M)=>{a.runtime.lastError?a.runtime.lastError.message===r?w():p(new Error(a.runtime.lastError.message)):M&&M.__mozWebExtensionPolyfillReject__?p(new Error(M.message)):w(M)},J=(p,w,M,...k)=>{if(k.length<w.minArgs)throw new Error(`Expected at least ${w.minArgs} ${g(w.minArgs)} for ${p}(), got ${k.length}`);if(k.length>w.maxArgs)throw new Error(`Expected at most ${w.maxArgs} ${g(w.maxArgs)} for ${p}(), got ${k.length}`);return new Promise((j,H)=>{const Y=U.bind(null,{resolve:j,reject:H});k.push(Y),M.sendMessage(...k)})},Je={devtools:{network:{onRequestFinished:y(x)}},runtime:{onMessage:y(A),onMessageExternal:y(A),sendMessage:J.bind(null,"sendMessage",{minArgs:1,maxArgs:3})},tabs:{sendMessage:J.bind(null,"sendMessage",{minArgs:2,maxArgs:3})}},ae={clear:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}};return o.privacy={network:{"*":ae},services:{"*":ae},websites:{"*":ae}},b(a,Je,o)};n.exports=i(chrome)}else n.exports=globalThis.browser})})(Oa);const Ea=fn;var Qe=ma(),W=new Map,$e=new Map,Et=new Map,fr=(t,e)=>($e.set(t,($e.get(t)||new Set).add(e)),()=>{const n=$e.get(t);n!=null&&n.delete(e)&&(n==null?void 0:n.size)===0&&$e.delete(t)}),dr=(t,e)=>{Et.set(t,(Et.get(t)||new Set).add(e))},xe=t=>({withFingerprint:e=>{const n=s=>({and:()=>s}),r={aboutIncomingMessage:s=>{const i=W.get(t);return Ke.toExtensionContext(i.port,{status:"incoming",message:s}),n(r)},aboutSuccessfulDelivery:s=>{const i=W.get(t);return Ke.toExtensionContext(i.port,{status:"delivered",receipt:s}),n(r)},aboutMessageUndeliverability:(s,i)=>{const a=W.get(t);return(a==null?void 0:a.fingerprint)===e&&Ke.toExtensionContext(a.port,{status:"undeliverable",resolvedDestination:s,message:i}),n(r)},whenDeliverableTo:s=>{const i=()=>{const a=W.get(t);if((a==null?void 0:a.fingerprint)===e&&W.has(s))return Ke.toExtensionContext(a.port,{status:"deliverable",deliverableTo:s}),!0};if(!i()){const a=fr(s,i);dr(e,a)}return n(r)},aboutSessionEnded:s=>{const i=W.get(t);return(i==null?void 0:i.fingerprint)===e&&Ke.toExtensionContext(i.port,{status:"terminated",fingerprint:s}),n(r)}};return r}}),Ma=ca(),Mt=Sa("background",t=>{if(t.origin.context==="background"&&["content-script","devtools "].includes(t.destination.context)&&!t.destination.tabId)throw new TypeError("When sending messages from background page, use @tabId syntax to target specific tab");const e=xt(de(de({},t.origin),t.origin.context==="window"&&{context:"content-script"})),n=xt(ln(de(de({},t.destination),t.destination.context==="window"&&{context:"content-script"}),{tabId:t.destination.tabId||t.origin.tabId}));t.destination.tabId=null,t.destination.frameId=null;const r=W.get(n),s=W.get(e),i=()=>{xe(n).withFingerprint(r.fingerprint).aboutIncomingMessage(t);const a={message:t,to:r.fingerprint,from:{endpointId:e,fingerprint:s==null?void 0:s.fingerprint}};t.messageType==="message"&&Qe.add(a),t.messageType==="reply"&&Qe.remove(t.messageID),s&&xe(e).withFingerprint(s.fingerprint).aboutSuccessfulDelivery(a)};r!=null&&r.port?i():t.messageType==="message"&&(t.origin.context==="background"?fr(n,i):s&&xe(e).withFingerprint(s.fingerprint).aboutMessageUndeliverability(n,t).and().whenDeliverableTo(n))},t=>{const e=xt(de(de({},t.origin),t.origin.context==="window"&&{context:"content-script"})),n=W.get(e),r={message:t,to:Ma,from:{endpointId:e,fingerprint:n.fingerprint}};xe(e).withFingerprint(n.fingerprint).aboutSuccessfulDelivery(r)});Ea.runtime.onConnect.addListener(t=>{var e;const n=da(t.name);if(!n)return;n.endpointName||(n.endpointName=xt({context:"content-script",tabId:t.sender.tab.id,frameId:t.sender.frameId}));const{tabId:r,frameId:s}=un(n.endpointName);W.set(n.endpointName,{fingerprint:n.fingerprint,port:t}),(e=$e.get(n.endpointName))==null||e.forEach(i=>i()),$e.delete(n.endpointName),dr(n.fingerprint,()=>{const i=Qe.entries().filter(a=>a.to===n.fingerprint);Qe.remove(i),i.forEach(a=>{a.from.endpointId==="background"?Mt.endTransaction(a.message.transactionId):xe(a.from.endpointId).withFingerprint(a.from.fingerprint).aboutSessionEnded(n.fingerprint)})}),t.onDisconnect.addListener(()=>{var i,a;((i=W.get(n.endpointName))==null?void 0:i.fingerprint)===n.fingerprint&&W.delete(n.endpointName),(a=Et.get(n.fingerprint))==null||a.forEach(o=>o()),Et.delete(n.fingerprint)}),t.onMessage.addListener(i=>{var a,o;if(i.type==="sync"){const l=[...W.values()].map(f=>f.fingerprint),u=i.pendingResponses.filter(f=>l.includes(f.to));Qe.add(...u),i.pendingResponses.filter(f=>!l.includes(f.to)).forEach(f=>xe(n.endpointName).withFingerprint(n.fingerprint).aboutSessionEnded(f.to)),i.pendingDeliveries.forEach(f=>xe(n.endpointName).withFingerprint(n.fingerprint).whenDeliverableTo(f));return}i.type==="deliver"&&((o=(a=i.message)==null?void 0:a.origin)!=null&&o.context)&&(i.message.origin.tabId=r,i.message.origin.frameId=s,Mt.handleMessage(i.message))})});var{sendMessage:mr,onMessage:It}=Mt,{openStream:Wd,onOpenStreamChannel:Ia}=xa(Mt);It("alert-add",({data:t})=>{const e=new Date().setMinutes(new Date().getMinutes()+t.scrape_interval);chrome.alarms.create(`job.alarm:${t.id}`,{periodInMinutes:t.scrape_interval,when:e})}),It("alert-delete",async({data:t})=>{await chrome.alarms.clear(`job.alarm:${t.id}`)});function ka(t,e){const n=Object.create(null),r=t.split(",");for(let s=0;s<r.length;s++)n[r[s]]=!0;return e?s=>!!n[s.toLowerCase()]:s=>!!n[s]}const Na={},Xe=()=>{},_a=()=>!1,Da=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},Ca=Object.prototype.hasOwnProperty,kt=(t,e)=>Ca.call(t,e),z=Array.isArray,et=t=>Nt(t)==="[object Map]",Fa=t=>Nt(t)==="[object Set]",Re=t=>typeof t=="function",$a=t=>typeof t=="string",dn=t=>typeof t=="symbol",Pe=t=>t!==null&&typeof t=="object",Ra=t=>Pe(t)&&Re(t.then)&&Re(t.catch),Pa=Object.prototype.toString,Nt=t=>Pa.call(t),ja=t=>Nt(t).slice(8,-1),Va=t=>Nt(t)==="[object Object]",mn=t=>$a(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,tt=(t,e)=>!Object.is(t,e),La=t=>{const e=parseFloat(t);return isNaN(e)?t:e};let Ua;function Wa(t,e=Ua){e&&e.active&&e.effects.push(t)}const hn=t=>{const e=new Set(t);return e.w=0,e.n=0,e},hr=t=>(t.w&me)>0,gr=t=>(t.n&me)>0,Za=({deps:t})=>{if(t.length)for(let e=0;e<t.length;e++)t[e].w|=me},Ha=t=>{const{deps:e}=t;if(e.length){let n=0;for(let r=0;r<e.length;r++){const s=e[r];hr(s)&&!gr(s)?s.delete(t):e[n++]=s,s.w&=~me,s.n&=~me}e.length=n}},gn=new WeakMap;let nt=0,me=1;const pn=30;let Q;const Oe=Symbol(""),yn=Symbol("");class pr{constructor(e,n=null,r){this.fn=e,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,Wa(this,r)}run(){if(!this.active)return this.fn();let e=Q,n=he;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=Q,Q=this,he=!0,me=1<<++nt,nt<=pn?Za(this):yr(this),this.fn()}finally{nt<=pn&&Ha(this),me=1<<--nt,Q=this.parent,he=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Q===this?this.deferStop=!0:this.active&&(yr(this),this.onStop&&this.onStop(),this.active=!1)}}function yr(t){const{deps:e}=t;if(e.length){for(let n=0;n<e.length;n++)e[n].delete(t);e.length=0}}let he=!0;const wr=[];function za(){wr.push(he),he=!1}function qa(){const t=wr.pop();he=t===void 0?!0:t}function X(t,e,n){if(he&&Q){let r=gn.get(t);r||gn.set(t,r=new Map);let s=r.get(n);s||r.set(n,s=hn()),br(s)}}function br(t,e){let n=!1;nt<=pn?gr(t)||(t.n|=me,n=!hr(t)):n=!t.has(Q),n&&(t.add(Q),Q.deps.push(t))}function ge(t,e,n,r,s,i){const a=gn.get(t);if(!a)return;let o=[];if(e==="clear")o=[...a.values()];else if(n==="length"&&z(t)){const l=La(r);a.forEach((u,f)=>{(f==="length"||f>=l)&&o.push(u)})}else switch(n!==void 0&&o.push(a.get(n)),e){case"add":z(t)?mn(n)&&o.push(a.get("length")):(o.push(a.get(Oe)),et(t)&&o.push(a.get(yn)));break;case"delete":z(t)||(o.push(a.get(Oe)),et(t)&&o.push(a.get(yn)));break;case"set":et(t)&&o.push(a.get(Oe));break}if(o.length===1)o[0]&&wn(o[0]);else{const l=[];for(const u of o)u&&l.push(...u);wn(hn(l))}}function wn(t,e){const n=z(t)?t:[...t];for(const r of n)r.computed&&vr(r);for(const r of n)r.computed||vr(r)}function vr(t,e){(t!==Q||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}const Ba=ka("__proto__,__v_isRef,__isVue"),Ar=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(dn)),Ga=Sr(),Ja=Sr(!0),Tr=Ya();function Ya(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...n){const r=N(this);for(let i=0,a=this.length;i<a;i++)X(r,"get",i+"");const s=r[e](...n);return s===-1||s===!1?r[e](...n.map(N)):s}}),["push","pop","shift","unshift","splice"].forEach(e=>{t[e]=function(...n){za();const r=N(this)[e].apply(this,n);return qa(),r}}),t}function Sr(t=!1,e=!1){return function(r,s,i){if(s==="__v_isReactive")return!t;if(s==="__v_isReadonly")return t;if(s==="__v_isShallow")return e;if(s==="__v_raw"&&i===(t?e?mo:Nr:e?fo:kr).get(r))return r;const a=z(r);if(!t&&a&&kt(Tr,s))return Reflect.get(Tr,s,i);const o=Reflect.get(r,s,i);return(dn(s)?Ar.has(s):Ba(s))||(t||X(r,"get",s),e)?o:ie(o)?a&&mn(s)?o:o.value:Pe(o)?t?_r(o):vn(o):o}}const Ka=Qa();function Qa(t=!1){return function(n,r,s,i){let a=n[r];if(rt(a)&&ie(a)&&!ie(s))return!1;if(!t&&(!jt(s)&&!rt(s)&&(a=N(a),s=N(s)),!z(n)&&ie(a)&&!ie(s)))return a.value=s,!0;const o=z(n)&&mn(r)?Number(r)<n.length:kt(n,r),l=Reflect.set(n,r,s,i);return n===N(i)&&(o?tt(s,a)&&ge(n,"set",r,s):ge(n,"add",r,s)),l}}function Xa(t,e){const n=kt(t,e);t[e];const r=Reflect.deleteProperty(t,e);return r&&n&&ge(t,"delete",e,void 0),r}function eo(t,e){const n=Reflect.has(t,e);return(!dn(e)||!Ar.has(e))&&X(t,"has",e),n}function to(t){return X(t,"iterate",z(t)?"length":Oe),Reflect.ownKeys(t)}const no={get:Ga,set:Ka,deleteProperty:Xa,has:eo,ownKeys:to},ro={get:Ja,set(t,e){return!0},deleteProperty(t,e){return!0}},bn=t=>t,_t=t=>Reflect.getPrototypeOf(t);function Dt(t,e,n=!1,r=!1){t=t.__v_raw;const s=N(t),i=N(e);n||(e!==i&&X(s,"get",e),X(s,"get",i));const{has:a}=_t(s),o=r?bn:n?An:st;if(a.call(s,e))return o(t.get(e));if(a.call(s,i))return o(t.get(i));t!==s&&t.get(e)}function Ct(t,e=!1){const n=this.__v_raw,r=N(n),s=N(t);return e||(t!==s&&X(r,"has",t),X(r,"has",s)),t===s?n.has(t):n.has(t)||n.has(s)}function Ft(t,e=!1){return t=t.__v_raw,!e&&X(N(t),"iterate",Oe),Reflect.get(t,"size",t)}function xr(t){t=N(t);const e=N(this);return _t(e).has.call(e,t)||(e.add(t),ge(e,"add",t,t)),this}function Or(t,e){e=N(e);const n=N(this),{has:r,get:s}=_t(n);let i=r.call(n,t);i||(t=N(t),i=r.call(n,t));const a=s.call(n,t);return n.set(t,e),i?tt(e,a)&&ge(n,"set",t,e):ge(n,"add",t,e),this}function Er(t){const e=N(this),{has:n,get:r}=_t(e);let s=n.call(e,t);s||(t=N(t),s=n.call(e,t)),r&&r.call(e,t);const i=e.delete(t);return s&&ge(e,"delete",t,void 0),i}function Mr(){const t=N(this),e=t.size!==0,n=t.clear();return e&&ge(t,"clear",void 0,void 0),n}function $t(t,e){return function(r,s){const i=this,a=i.__v_raw,o=N(a),l=e?bn:t?An:st;return!t&&X(o,"iterate",Oe),a.forEach((u,f)=>r.call(s,l(u),l(f),i))}}function Rt(t,e,n){return function(...r){const s=this.__v_raw,i=N(s),a=et(i),o=t==="entries"||t===Symbol.iterator&&a,l=t==="keys"&&a,u=s[t](...r),f=n?bn:e?An:st;return!e&&X(i,"iterate",l?yn:Oe),{next(){const{value:g,done:d}=u.next();return d?{value:g,done:d}:{value:o?[f(g[0]),f(g[1])]:f(g),done:d}},[Symbol.iterator](){return this}}}}function pe(t){return function(...e){return t==="delete"?!1:this}}function so(){const t={get(i){return Dt(this,i)},get size(){return Ft(this)},has:Ct,add:xr,set:Or,delete:Er,clear:Mr,forEach:$t(!1,!1)},e={get(i){return Dt(this,i,!1,!0)},get size(){return Ft(this)},has:Ct,add:xr,set:Or,delete:Er,clear:Mr,forEach:$t(!1,!0)},n={get(i){return Dt(this,i,!0)},get size(){return Ft(this,!0)},has(i){return Ct.call(this,i,!0)},add:pe("add"),set:pe("set"),delete:pe("delete"),clear:pe("clear"),forEach:$t(!0,!1)},r={get(i){return Dt(this,i,!0,!0)},get size(){return Ft(this,!0)},has(i){return Ct.call(this,i,!0)},add:pe("add"),set:pe("set"),delete:pe("delete"),clear:pe("clear"),forEach:$t(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{t[i]=Rt(i,!1,!1),n[i]=Rt(i,!0,!1),e[i]=Rt(i,!1,!0),r[i]=Rt(i,!0,!0)}),[t,n,e,r]}const[io,ao,oo,lo]=so();function Ir(t,e){const n=e?t?lo:oo:t?ao:io;return(r,s,i)=>s==="__v_isReactive"?!t:s==="__v_isReadonly"?t:s==="__v_raw"?r:Reflect.get(kt(n,s)&&s in r?n:r,s,i)}const uo={get:Ir(!1,!1)},co={get:Ir(!0,!1)},kr=new WeakMap,fo=new WeakMap,Nr=new WeakMap,mo=new WeakMap;function ho(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function go(t){return t.__v_skip||!Object.isExtensible(t)?0:ho(ja(t))}function vn(t){return rt(t)?t:Dr(t,!1,no,uo,kr)}function _r(t){return Dr(t,!0,ro,co,Nr)}function Dr(t,e,n,r,s){if(!Pe(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const i=s.get(t);if(i)return i;const a=go(t);if(a===0)return t;const o=new Proxy(t,a===2?r:n);return s.set(t,o),o}function Pt(t){return rt(t)?Pt(t.__v_raw):!!(t&&t.__v_isReactive)}function rt(t){return!!(t&&t.__v_isReadonly)}function jt(t){return!!(t&&t.__v_isShallow)}function N(t){const e=t&&t.__v_raw;return e?N(e):t}const st=t=>Pe(t)?vn(t):t,An=t=>Pe(t)?_r(t):t;function Cr(t){he&&Q&&(t=N(t),br(t.dep||(t.dep=hn())))}function Fr(t,e){t=N(t),t.dep&&wn(t.dep)}function ie(t){return!!(t&&t.__v_isRef===!0)}function Tn(t){return po(t,!1)}function po(t,e){return ie(t)?t:new yo(t,e)}class yo{constructor(e,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?e:N(e),this._value=n?e:st(e)}get value(){return Cr(this),this._value}set value(e){const n=this.__v_isShallow||jt(e)||rt(e);e=n?e:N(e),tt(e,this._rawValue)&&(this._rawValue=e,this._value=n?e:st(e),Fr(this))}}function le(t){return ie(t)?t.value:t}var $r;class wo{constructor(e,n,r,s){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[$r]=!1,this._dirty=!0,this.effect=new pr(e,()=>{this._dirty||(this._dirty=!0,Fr(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=r}get value(){const e=N(this);return Cr(e),(e._dirty||!e._cacheable)&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}$r="__v_isReadonly";function bo(t,e,n=!1){let r,s;const i=Re(t);return i?(r=t,s=Xe):(r=t.get,s=t.set),new wo(r,s,i||!s,n)}function je(t,e,n,r){let s;try{s=r?t(...r):t()}catch(i){Rr(i,e,n)}return s}function Vt(t,e,n,r){if(Re(t)){const i=je(t,e,n,r);return i&&Ra(i)&&i.catch(a=>{Rr(a,e,n)}),i}const s=[];for(let i=0;i<t.length;i++)s.push(Vt(t[i],e,n,r));return s}function Rr(t,e,n,r=!0){const s=e?e.vnode:null;if(e){let i=e.parent;const a=e.proxy,o=n;for(;i;){const u=i.ec;if(u){for(let f=0;f<u.length;f++)if(u[f](t,a,o)===!1)return}i=i.parent}const l=e.appContext.config.errorHandler;if(l){je(l,null,10,[t,a,o]);return}}vo(t,n,s,r)}function vo(t,e,n,r=!0){console.error(t)}let Lt=!1,Sn=!1;const ee=[];let ye=0;const Ve=[];let ue=null,Ee=0;const Pr=Promise.resolve();let xn=null;function it(t){const e=xn||Pr;return t?e.then(this?t.bind(this):t):e}function Ao(t){let e=ye+1,n=ee.length;for(;e<n;){const r=e+n>>>1;at(ee[r])<t?e=r+1:n=r}return e}function To(t){(!ee.length||!ee.includes(t,Lt&&t.allowRecurse?ye+1:ye))&&(t.id==null?ee.push(t):ee.splice(Ao(t.id),0,t),jr())}function jr(){!Lt&&!Sn&&(Sn=!0,xn=Pr.then(Vr))}function So(t){z(t)?Ve.push(...t):(!ue||!ue.includes(t,t.allowRecurse?Ee+1:Ee))&&Ve.push(t),jr()}function xo(t){if(Ve.length){const e=[...new Set(Ve)];if(Ve.length=0,ue){ue.push(...e);return}for(ue=e,ue.sort((n,r)=>at(n)-at(r)),Ee=0;Ee<ue.length;Ee++)ue[Ee]();ue=null,Ee=0}}const at=t=>t.id==null?1/0:t.id,Oo=(t,e)=>{const n=at(t)-at(e);if(n===0){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return n};function Vr(t){Sn=!1,Lt=!0,ee.sort(Oo);const e=Xe;try{for(ye=0;ye<ee.length;ye++){const n=ee[ye];n&&n.active!==!1&&je(n,null,14)}}finally{ye=0,ee.length=0,xo(),Lt=!1,xn=null,(ee.length||Ve.length)&&Vr()}}function Eo(t,e){e&&e.pendingBranch?z(t)?e.effects.push(...t):e.effects.push(t):So(t)}function Zd(t,e,n=!1){}const Ut={};function On(t,e,n){return Mo(t,e,n)}function Mo(t,e,{immediate:n,deep:r,flush:s,onTrack:i,onTrigger:a}=Na){const o=ko;let l,u=!1,f=!1;if(ie(t)?(l=()=>t.value,u=jt(t)):Pt(t)?(l=()=>t,r=!0):z(t)?(f=!0,u=t.some(A=>Pt(A)||jt(A)),l=()=>t.map(A=>{if(ie(A))return A.value;if(Pt(A))return Le(A);if(Re(A))return je(A,o,2)})):Re(t)?e?l=()=>je(t,o,2):l=()=>{if(!(o&&o.isUnmounted))return g&&g(),Vt(t,o,3,[d])}:l=Xe,e&&r){const A=l;l=()=>Le(A())}let g,d=A=>{g=x.onStop=()=>{je(A,o,4)}},c;if(Ur)if(d=Xe,e?n&&Vt(e,o,3,[l(),f?[]:void 0,d]):l(),s==="sync"){const A=_o();c=A.__watcherHandles||(A.__watcherHandles=[])}else return Xe;let h=f?new Array(t.length).fill(Ut):Ut;const b=()=>{if(x.active)if(e){const A=x.run();(r||u||(f?A.some((U,J)=>tt(U,h[J])):tt(A,h)))&&(g&&g(),Vt(e,o,3,[A,h===Ut?void 0:f&&h[0]===Ut?[]:h,d]),h=A)}else x.run()};b.allowRecurse=!!e;let y;s==="sync"?y=b:s==="post"?y=()=>Lr(b,o&&o.suspense):(b.pre=!0,o&&(b.id=o.uid),y=()=>To(b));const x=new pr(l,y);e?n?b():h=x.run():s==="post"?Lr(x.run.bind(x),o&&o.suspense):x.run();const E=()=>{x.stop(),o&&o.scope&&Da(o.scope.effects,x)};return c&&c.push(E),E}function Le(t,e){if(!Pe(t)||t.__v_skip||(e=e||new Set,e.has(t)))return t;if(e.add(t),ie(t))Le(t.value,e);else if(z(t))for(let n=0;n<t.length;n++)Le(t[n],e);else if(Fa(t)||et(t))t.forEach(n=>{Le(n,e)});else if(Va(t))for(const n in t)Le(t[n],e);return t}function Io(){return{app:null,config:{isNativeTag:_a,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}const Lr=Eo;Io();let ko=null,Ur=!1;const No=(t,e)=>bo(t,e,Ur),_o=()=>void 0;var Wr;typeof window<"u"&&((Wr=window==null?void 0:window.navigator)!=null&&Wr.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Do(t,e){function n(...r){t(()=>e.apply(this,r),{fn:e,thisArg:this,args:r})}return n}const Zr=t=>t();function Co(t=Zr){const e=Tn(!0);function n(){e.value=!1}function r(){e.value=!0}return{isActive:e,pause:n,resume:r,eventFilter:(...i)=>{e.value&&t(...i)}}}var Hr=Object.getOwnPropertySymbols,Fo=Object.prototype.hasOwnProperty,$o=Object.prototype.propertyIsEnumerable,Ro=(t,e)=>{var n={};for(var r in t)Fo.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Hr)for(var r of Hr(t))e.indexOf(r)<0&&$o.call(t,r)&&(n[r]=t[r]);return n};function Po(t,e,n={}){const r=n,{eventFilter:s=Zr}=r,i=Ro(r,["eventFilter"]);return On(t,Do(s,e),i)}var jo=Object.defineProperty,Vo=Object.defineProperties,Lo=Object.getOwnPropertyDescriptors,Wt=Object.getOwnPropertySymbols,zr=Object.prototype.hasOwnProperty,qr=Object.prototype.propertyIsEnumerable,Br=(t,e,n)=>e in t?jo(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Uo=(t,e)=>{for(var n in e||(e={}))zr.call(e,n)&&Br(t,n,e[n]);if(Wt)for(var n of Wt(e))qr.call(e,n)&&Br(t,n,e[n]);return t},Wo=(t,e)=>Vo(t,Lo(e)),Zo=(t,e)=>{var n={};for(var r in t)zr.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Wt)for(var r of Wt(t))e.indexOf(r)<0&&qr.call(t,r)&&(n[r]=t[r]);return n};function Gr(t,e,n={}){const r=n,{eventFilter:s}=r,i=Zo(r,["eventFilter"]),{eventFilter:a,pause:o,resume:l,isActive:u}=Co(s);return{stop:Po(t,e,Wo(Uo({},i),{eventFilter:a})),pause:o,resume:l,isActive:u}}var Ho=typeof global=="object"&&global&&global.Object===Object&&global;const Jr=Ho;var zo=typeof self=="object"&&self&&self.Object===Object&&self,qo=Jr||zo||Function("return this")();const we=qo;var Bo=we.Symbol;const Ue=Bo;var Yr=Object.prototype,Go=Yr.hasOwnProperty,Jo=Yr.toString,ot=Ue?Ue.toStringTag:void 0;function Yo(t){var e=Go.call(t,ot),n=t[ot];try{t[ot]=void 0;var r=!0}catch{}var s=Jo.call(t);return r&&(e?t[ot]=n:delete t[ot]),s}var Ko=Object.prototype,Qo=Ko.toString;function Xo(t){return Qo.call(t)}var el="[object Null]",tl="[object Undefined]",Kr=Ue?Ue.toStringTag:void 0;function Me(t){return t==null?t===void 0?tl:el:Kr&&Kr in Object(t)?Yo(t):Xo(t)}function lt(t){return t!=null&&typeof t=="object"}var nl="[object Symbol]";function Qr(t){return typeof t=="symbol"||lt(t)&&Me(t)==nl}function rl(t,e){for(var n=-1,r=t==null?0:t.length,s=Array(r);++n<r;)s[n]=e(t[n],n,t);return s}var sl=Array.isArray;const En=sl;var il=1/0,Xr=Ue?Ue.prototype:void 0,es=Xr?Xr.toString:void 0;function Mn(t){if(typeof t=="string")return t;if(En(t))return rl(t,Mn)+"";if(Qr(t))return es?es.call(t):"";var e=t+"";return e=="0"&&1/t==-il?"-0":e}var al=/\s/;function ol(t){for(var e=t.length;e--&&al.test(t.charAt(e)););return e}var ll=/^\s+/;function ts(t){return t&&t.slice(0,ol(t)+1).replace(ll,"")}function Zt(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var ns=0/0,ul=/^[-+]0x[0-9a-f]+$/i,cl=/^0b[01]+$/i,fl=/^0o[0-7]+$/i,dl=parseInt;function ml(t){if(typeof t=="number")return t;if(Qr(t))return ns;if(Zt(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=Zt(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=ts(t);var n=cl.test(t);return n||fl.test(t)?dl(t.slice(2),n?2:8):ul.test(t)?ns:+t}var hl="[object AsyncFunction]",gl="[object Function]",pl="[object GeneratorFunction]",yl="[object Proxy]";function rs(t){if(!Zt(t))return!1;var e=Me(t);return e==gl||e==pl||e==hl||e==yl}var wl=we["__core-js_shared__"];const In=wl;var ss=function(){var t=/[^.]+$/.exec(In&&In.keys&&In.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function bl(t){return!!ss&&ss in t}var vl=Function.prototype,Al=vl.toString;function Ie(t){if(t!=null){try{return Al.call(t)}catch{}try{return t+""}catch{}}return""}var Tl=/[\^$.*+?()[\]{}|]/g,Sl=/^\[object .+?Constructor\]$/,xl=Function.prototype,Ol=Object.prototype,El=xl.toString,Ml=Ol.hasOwnProperty,Il=RegExp("^"+El.call(Ml).replace(Tl,"\$&").replace(/hasOwnProperty|(function).*?(?=\\()| for .+?(?=\\])/g,"$1.*?")+"$");function kl(t){if(!Zt(t)||bl(t))return!1;var e=rs(t)?Il:Sl;return e.test(Ie(t))}function Nl(t,e){return t==null?void 0:t[e]}function ut(t,e){var n=Nl(t,e);return kl(n)?n:void 0}var _l=ut(we,"WeakMap");const kn=_l;function Dl(t,e,n,r){for(var s=t.length,i=n+(r?1:-1);r?i--:++i<s;)if(e(t[i],i,t))return i;return-1}function Cl(t){return t!==t}function Fl(t,e,n){for(var r=n-1,s=t.length;++r<s;)if(t[r]===e)return r;return-1}function is(t,e,n){return e===e?Fl(t,e,n):Dl(t,Cl,n)}var $l=9007199254740991;function as(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=$l}function Rl(t){return t!=null&&as(t.length)&&!rs(t)}var Pl=Object.prototype;function os(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||Pl;return t===n}var jl="[object Arguments]";function ls(t){return lt(t)&&Me(t)==jl}var us=Object.prototype,Vl=us.hasOwnProperty,Ll=us.propertyIsEnumerable,Ul=ls(function(){return arguments}())?ls:function(t){return lt(t)&&Vl.call(t,"callee")&&!Ll.call(t,"callee")};const Wl=Ul;function Zl(){return!1}var cs=typeof exports=="object"&&exports&&!exports.nodeType&&exports,fs=cs&&typeof module=="object"&&module&&!module.nodeType&&module,Hl=fs&&fs.exports===cs,ds=Hl?we.Buffer:void 0,zl=ds?ds.isBuffer:void 0,ql=zl||Zl;const Bl=ql;var Gl="[object Arguments]",Jl="[object Array]",Yl="[object Boolean]",Kl="[object Date]",Ql="[object Error]",Xl="[object Function]",eu="[object Map]",tu="[object Number]",nu="[object Object]",ru="[object RegExp]",su="[object Set]",iu="[object String]",au="[object WeakMap]",ou="[object ArrayBuffer]",lu="[object DataView]",uu="[object Float32Array]",cu="[object Float64Array]",fu="[object Int8Array]",du="[object Int16Array]",mu="[object Int32Array]",hu="[object Uint8Array]",gu="[object Uint8ClampedArray]",pu="[object Uint16Array]",yu="[object Uint32Array]",_={};_[uu]=_[cu]=_[fu]=_[du]=_[mu]=_[hu]=_[gu]=_[pu]=_[yu]=!0,_[Gl]=_[Jl]=_[ou]=_[Yl]=_[lu]=_[Kl]=_[Ql]=_[Xl]=_[eu]=_[tu]=_[nu]=_[ru]=_[su]=_[iu]=_[au]=!1;function wu(t){return lt(t)&&as(t.length)&&!!_[Me(t)]}function bu(t){return function(e){return t(e)}}var ms=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ct=ms&&typeof module=="object"&&module&&!module.nodeType&&module,vu=ct&&ct.exports===ms,Nn=vu&&Jr.process,Au=function(){try{var t=ct&&ct.require&&ct.require("util").types;return t||Nn&&Nn.binding&&Nn.binding("util")}catch{}}();const hs=Au;var gs=hs&&hs.isTypedArray,Tu=gs?bu(gs):wu;const Su=Tu;function xu(t,e){return function(n){return t(e(n))}}var Ou=xu(Object.keys,Object);const Eu=Ou;var Mu=Object.prototype,Iu=Mu.hasOwnProperty;function ku(t){if(!os(t))return Eu(t);var e=[];for(var n in Object(t))Iu.call(t,n)&&n!="constructor"&&e.push(n);return e}var Nu=ut(we,"Map");const _n=Nu;function _u(t){return t==null?"":Mn(t)}function Du(t,e,n){var r=-1,s=t.length;e<0&&(e=-e>s?0:s+e),n=n>s?s:n,n<0&&(n+=s),s=e>n?0:n-e>>>0,e>>>=0;for(var i=Array(s);++r<s;)i[r]=t[r+e];return i}function Cu(t,e,n){var r=t.length;return n=n===void 0?r:n,!e&&n>=r?t:Du(t,e,n)}var Fu="\ud800-\udfff",$u="\u0300-\u036f",Ru="\ufe20-\ufe2f",Pu="\u20d0-\u20ff",ju=$u+Ru+Pu,Vu="\ufe0e\ufe0f",Lu="\u200d",Uu=RegExp("["+Lu+Fu+ju+Vu+"]");function Wu(t){return Uu.test(t)}function Zu(t){return t.split("")}var ps="\ud800-\udfff",Hu="\u0300-\u036f",zu="\ufe20-\ufe2f",qu="\u20d0-\u20ff",Bu=Hu+zu+qu,Gu="\ufe0e\ufe0f",Ju="["+ps+"]",Dn="["+Bu+"]",Cn="\ud83c[\udffb-\udfff]",Yu="(?:"+Dn+"|"+Cn+")",ys="[^"+ps+"]",ws="(?:\ud83c[\udde6-\uddff]){2}",bs="[\ud800-\udbff][\udc00-\udfff]",Ku="\u200d",vs=Yu+"?",As="["+Gu+"]?",Qu="(?:"+Ku+"(?:"+[ys,ws,bs].join("|")+")"+As+vs+")*",Xu=As+vs+Qu,ec="(?:"+[ys+Dn+"?",Dn,ws,bs,Ju].join("|")+")",tc=RegExp(Cn+"(?="+Cn+")|"+ec+Xu,"g");function nc(t){return t.match(tc)||[]}function Ts(t){return Wu(t)?nc(t):Zu(t)}var rc=ut(we,"DataView");const Fn=rc;var sc=ut(we,"Promise");const $n=sc;var ic=ut(we,"Set");const Rn=ic;var Ss="[object Map]",ac="[object Object]",xs="[object Promise]",Os="[object Set]",Es="[object WeakMap]",Ms="[object DataView]",oc=Ie(Fn),lc=Ie(_n),uc=Ie($n),cc=Ie(Rn),fc=Ie(kn),ke=Me;(Fn&&ke(new Fn(new ArrayBuffer(1)))!=Ms||_n&&ke(new _n)!=Ss||$n&&ke($n.resolve())!=xs||Rn&&ke(new Rn)!=Os||kn&&ke(new kn)!=Es)&&(ke=function(t){var e=Me(t),n=e==ac?t.constructor:void 0,r=n?Ie(n):"";if(r)switch(r){case oc:return Ms;case lc:return Ss;case uc:return xs;case cc:return Os;case fc:return Es}return e});const dc=ke;var mc="[object String]";function Ht(t){return typeof t=="string"||!En(t)&<(t)&&Me(t)==mc}var hc="[object Map]",gc="[object Set]",pc=Object.prototype,yc=pc.hasOwnProperty;function wc(t){if(t==null)return!0;if(Rl(t)&&(En(t)||typeof t=="string"||typeof t.splice=="function"||Bl(t)||Su(t)||Wl(t)))return!t.length;var e=dc(t);if(e==hc||e==gc)return!t.size;if(os(t))return!ku(t).length;for(var n in t)if(yc.call(t,n))return!1;return!0}function Is(t){return t===null}function bc(t,e){for(var n=t.length;n--&&is(e,t[n],0)>-1;);return n}function vc(t,e){for(var n=-1,r=t.length;++n<r&&is(e,t[n],0)>-1;);return n}function Ac(t,e,n){if(t=_u(t),t&&(n||e===void 0))return ts(t);if(!t||!(e=Mn(e)))return t;var r=Ts(t),s=Ts(e),i=vc(r,s),a=bc(r,s)+1;return Cu(r,i,a).join("")}function Tc(t,e,{transform:n,listen:r,onInit:s}={}){var g;const i=vn(new Map(e));i.read=f,i.write=l;const{pause:a,resume:o}=Gr(i,l,{deep:!0,flush:"post"});function l(){const d=Array.from(i.entries());return chrome.storage.local.set({[t]:JSON.stringify(d)})}function u(d){const c=typeof n=="function"?d.map(n):d;i.clear();for(const[h,b]of c)i.set(h,b)}async function f(d){a();const c=await chrome.storage.local.get([t]);if(c&&Ht(c[t])){const h=JSON.parse(c[t]);u(h)}await it(),o(),await it(),d==null||d(i)}return r&&((g=chrome==null?void 0:chrome.runtime)!=null&&g.id)&&chrome.storage.onChanged.addListener(d=>{if(t in d&&d[t].newValue){a();const c=JSON.parse(d[t].newValue);u(c),o()}}),f(s),i}function Sc({listen:t=!1,onInit:e}={}){return Tc("alerts",[],{listen:t,onInit:e})}function xc({listen:t=!1,...e}={}){return new Promise(n=>Sc({listen:t,onInit:n,...e}))}function ks(t,e,{asJson:n=!0,transform:r,listen:s,onInit:i}={}){var g;const a=Tn(e);a.read=f,a.write=u;const{pause:o,resume:l}=Gr(a,u,{deep:!0,flush:"post"});function u(){const d=le(a);return chrome.storage.local.set({[t]:n?JSON.stringify(d):d})}async function f(d){o();const c=await chrome.storage.local.get([t]);if(c&&Ht(c[t])){const h=n?JSON.parse(c[t]):c[t];a.value=typeof r=="function"?r(h):h}await it(),l(),await it(),d==null||d(a)}return s&&((g=chrome==null?void 0:chrome.runtime)!=null&&g.id)&&chrome.storage.onChanged.addListener(d=>{if(t in d&&d[t].newValue&&Ht(d[t].newValue)){o();const c=d[t].newValue,h=n?JSON.parse(c):c;a.value=typeof r=="function"?r(h):h,it(l)}}),f(i),a}function Oc({listen:t=!1,...e}={}){return ks("jobs",[],{listen:t,...e})}function Ns({listen:t=!1,...e}={}){return new Promise(n=>Oc({listen:t,onInit:n,...e}))}const _s=[{label:"Accounting & Consulting",value:"531770282584862721",options:[{label:"All - Accounting & Consulting",value:"531770282584862721"},{label:"Accounting & Bookkeeping",value:"531770282601639943"},{label:"Financial Planning",value:"531770282601639945"},{label:"Management Consulting & Analysis",value:"531770282601639944"},{label:"Other - Accounting & Consulting",value:"531770282601639947"},{label:"Personal & Professional Coaching",value:"1534904461833879552"},{label:"Recruiting & Human Resources",value:"531770282601639946"}]},{label:"Admin Support",value:"531770282580668416",options:[{label:"All - Admin Support",value:"531770282580668416"},{label:"Data Entry & Transcription Services",value:"531770282584862724"},{label:"Market Research & Product Reviews",value:"531770282584862726"},{label:"Project Management",value:"531770282584862728"},{label:"Virtual Assistance",value:"531770282584862725"}]},{label:"Customer Service",value:"531770282580668417",options:[{label:"All - Customer Service",value:"531770282580668417"},{label:"Community Management & Tagging",value:"1484275072572772352"},{label:"Customer Service & Tech Support",value:"531770282584862730"}]},{label:"Data Science & Analytics",value:"531770282580668420",options:[{label:"All - Data Science & Analytics",value:"531770282580668420"},{label:"AI & Machine Learning",value:"531770282593251329"},{label:"Data Analysis & Testing",value:"531770282593251330"},{label:"Data Design & Visualization",value:"531770282589057039"},{label:"Data Extraction/ETL",value:"531770282593251331"},{label:"Data Mining & Management",value:"531770282589057038"}]},{label:"Design & Creative",value:"531770282580668421",options:[{label:"All - Design & Creative",value:"531770282580668421"},{label:"Art & Illustration",value:"531770282593251335"},{label:"Audio & Music Production",value:"531770282593251341"},{label:"Branding & Logo Design",value:"1044578476142100480"},{label:"Graphic, Editorial & Presentation Design",value:"531770282593251334"},{label:"NFT, AR/VR & Game Art",value:"1356688560628174848"},{label:"Performing Arts",value:"1356688565288046592"},{label:"Photography",value:"531770282593251340"},{label:"Product Design",value:"531770282601639953"},{label:"Video & Animation",value:"1356688570056970240"}]},{label:"Engineering & Architecture",value:"531770282584862722",options:[{label:"All - Engineering & Architecture",value:"531770282584862722"},{label:"3D Modeling & CAD",value:"531770282601639948"},{label:"Building & Landscape Architecture",value:"531770282601639949"},{label:"Chemical Engineering",value:"531770282605834240"},{label:"Civil & Structural Engineering",value:"531770282601639950"},{label:"Contract Manufacturing",value:"531770282605834241"},{label:"Electrical & Electronic Engineering",value:"531770282601639951"},{label:"Energy & Mechanical Engineering",value:"531770282601639952"},{label:"Interior & Trade Show Design",value:"531770282605834242"},{label:"Physical Sciences",value:"1301900647896092672"}]},{label:"IT & Networking",value:"531770282580668419",options:[{label:"All - IT & Networking",value:"531770282580668419"},{label:"Database Management & Administration",value:"531770282589057033"},{label:"DevOps & Solution Architecture",value:"531770282589057037"},{label:"ERP/CRM Software",value:"531770282589057034"},{label:"Information Security & Compliance",value:"531770282589057036"},{label:"Network & System Administration",value:"531770282589057035"}]},{label:"Legal",value:"531770282584862723",options:[{label:"All - Legal",value:"531770282584862723"},{label:"Corporate & Contract Law",value:"531770282605834246"},{label:"Finance & Tax Law",value:"531770283696353280"},{label:"International & Immigration Law",value:"1484275156546932736"},{label:"Public Law",value:"1484275408410693632"}]},{label:"Sales & Marketing",value:"531770282580668422",options:[{label:"All - Sales & Marketing",value:"531770282580668422"},{label:"Digital Marketing",value:"531770282597445636"},{label:"Lead Generation & Telemarketing",value:"531770282597445634"},{label:"Marketing, PR & Brand Strategy",value:"531770282593251343"}]},{label:"Translation",value:"531770282584862720",options:[{label:"All - Translation",value:"531770282584862720"},{label:"Language Tutoring & Interpretation",value:"1534904461842268160"},{label:"Translation & Localization Services",value:"531770282601639939"}]},{label:"Web, Mobile & Software Dev",value:"531770282580668418",options:[{label:"All - Web, Mobile & Software Dev",value:"531770282580668418"},{label:"Blockchain, NFT & Cryptocurrency",value:"1517518458442309632"},{label:"Desktop Application Development",value:"531770282589057025"},{label:"Ecommerce Development",value:"531770282589057026"},{label:"Game Design & Development",value:"531770282589057027"},{label:"Mobile Development",value:"531770282589057024"},{label:"Other - Software Development",value:"531770282589057032"},{label:"Product Management",value:"531770282589057030"},{label:"QA Testing",value:"531770282589057031"},{label:"Scripts & Utilities",value:"531770282589057028"},{label:"Web & Mobile Design",value:"531770282589057029"},{label:"Web Development",value:"531770282584862733"}]},{label:"Writing",value:"531770282580668423",options:[{label:"All - Writing",value:"531770282580668423"},{label:"Content Writing",value:"1301900640421842944"},{label:"Editing & Proofreading Services",value:"531770282597445644"},{label:"Professional & Business Writing",value:"531770282597445646"},{label:"Sales & Marketing Copywriting",value:"1534904462131675136"}]}];function Ec(t,e){if(e.append("page","1"),e.append("per_page","10"),e.append("sort","recency"),t.include_keywords.length>0&&e.append("or_terms",t.include_keywords.map(Ac).filter(n=>!wc(n)).map(n=>`"${n}"`).join(",")),t.experience_level!=="Any"&&e.append("contractor_tier",Mc(t.experience_level)),t.pricing!=="Any"&&e.append("t",Ic(t.pricing)),t.payment_method!=="Any"&&e.append("payment_verified","1"),t.locations.length>0&&e.append("location",t.locations.join(",")),t.connects_to_apply!=="Any"&&e.append("connect_price",t.connects_to_apply),t.include_keywords.length>0&&e.append("keywords",t.include_keywords.join(",")),t.categories.length>0){const n=t.categories.filter(s=>_s.findIndex(i=>i.value===s)!==-1).filter(s=>!Is(s)),r=t.categories.filter(s=>!n.includes(s)).map(s=>{const i=_s.find(a=>a.options.findIndex(o=>o.value===s)!==-1);return i&&n.includes(i.value)?null:s}).filter(s=>!Is(s));n.length&&e.append("category2_uid",n.join(",")),r.length&&e.append("subcategory2_uid",r.join(","))}t.occupations.length&&e.append("occupation_uid",t.occupations.join(",")),e.append("q","")}function Mc(t){switch(t){case"Entry Level":return"1";case"Intermediate":return"2";case"Expert":return"3";default:return""}}function Ic(t){switch(t){case"Hourly":return"0";case"Fixed":return"1";default:return""}}class Ne extends Error{}class kc extends Ne{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class Nc extends Ne{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class _c extends Ne{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class ft extends Ne{}class Ds extends Ne{constructor(e){super(`Invalid unit ${e}`)}}class q extends Ne{}class be extends Ne{constructor(){super("Zone is an abstract class")}}const m="numeric",te="short",Z="long",Pn={year:m,month:m,day:m},Cs={year:m,month:te,day:m},Dc={year:m,month:te,day:m,weekday:te},Fs={year:m,month:Z,day:m},$s={year:m,month:Z,day:m,weekday:Z},Rs={hour:m,minute:m},Ps={hour:m,minute:m,second:m},js={hour:m,minute:m,second:m,timeZoneName:te},Vs={hour:m,minute:m,second:m,timeZoneName:Z},Ls={hour:m,minute:m,hourCycle:"h23"},Us={hour:m,minute:m,second:m,hourCycle:"h23"},Ws={hour:m,minute:m,second:m,hourCycle:"h23",timeZoneName:te},Zs={hour:m,minute:m,second:m,hourCycle:"h23",timeZoneName:Z},Hs={year:m,month:m,day:m,hour:m,minute:m},zs={year:m,month:m,day:m,hour:m,minute:m,second:m},qs={year:m,month:te,day:m,hour:m,minute:m},Bs={year:m,month:te,day:m,hour:m,minute:m,second:m},Cc={year:m,month:te,day:m,weekday:te,hour:m,minute:m},Gs={year:m,month:Z,day:m,hour:m,minute:m,timeZoneName:te},Js={year:m,month:Z,day:m,hour:m,minute:m,second:m,timeZoneName:te},Ys={year:m,month:Z,day:m,weekday:Z,hour:m,minute:m,timeZoneName:Z},Ks={year:m,month:Z,day:m,weekday:Z,hour:m,minute:m,second:m,timeZoneName:Z};class dt{get type(){throw new be}get name(){throw new be}get ianaName(){return this.name}get isUniversal(){throw new be}offsetName(e,n){throw new be}formatOffset(e,n){throw new be}offset(e){throw new be}equals(e){throw new be}get isValid(){throw new be}}let jn=null;class zt extends dt{static get instance(){return jn===null&&(jn=new zt),jn}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:n,locale:r}){return li(e,n,r)}formatOffset(e,n){return pt(this.offset(e),n)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}let qt={};function Fc(t){return qt[t]||(qt[t]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),qt[t]}const $c={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function Rc(t,e){const n=t.format(e).replace(//g,""),r=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,s,i,a,o,l,u,f]=r;return[a,s,i,o,l,u,f]}function Pc(t,e){const n=t.formatToParts(e),r=[];for(let s=0;s<n.length;s++){const{type:i,value:a}=n[s],o=$c[i];i==="era"?r[o]=a:S(o)||(r[o]=parseInt(a,10))}return r}let Bt={};class ce extends dt{static create(e){return Bt[e]||(Bt[e]=new ce(e)),Bt[e]}static resetCache(){Bt={},qt={}}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch{return!1}}constructor(e){super(),this.zoneName=e,this.valid=ce.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:n,locale:r}){return li(e,n,r,this.name)}formatOffset(e,n){return pt(this.offset(e),n)}offset(e){const n=new Date(e);if(isNaN(n))return NaN;const r=Fc(this.name);let[s,i,a,o,l,u,f]=r.formatToParts?Pc(r,n):Rc(r,n);o==="BC"&&(s=-Math.abs(s)+1);const d=qn({year:s,month:i,day:a,hour:l===24?0:l,minute:u,second:f,millisecond:0});let c=+n;const h=c%1e3;return c-=h>=0?h:1e3+h,(d-c)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let Qs={};function jc(t,e={}){const n=JSON.stringify([t,e]);let r=Qs[n];return r||(r=new Intl.ListFormat(t,e),Qs[n]=r),r}let Vn={};function Ln(t,e={}){const n=JSON.stringify([t,e]);let r=Vn[n];return r||(r=new Intl.DateTimeFormat(t,e),Vn[n]=r),r}let Un={};function Vc(t,e={}){const n=JSON.stringify([t,e]);let r=Un[n];return r||(r=new Intl.NumberFormat(t,e),Un[n]=r),r}let Wn={};function Lc(t,e={}){const{base:n,...r}=e,s=JSON.stringify([t,r]);let i=Wn[s];return i||(i=new Intl.RelativeTimeFormat(t,e),Wn[s]=i),i}let mt=null;function Uc(){return mt||(mt=new Intl.DateTimeFormat().resolvedOptions().locale,mt)}function Wc(t){const e=t.indexOf("-u-");if(e===-1)return[t];{let n;const r=t.substring(0,e);try{n=Ln(t).resolvedOptions()}catch{n=Ln(r).resolvedOptions()}const{numberingSystem:s,calendar:i}=n;return[r,s,i]}}function Zc(t,e,n){return(n||e)&&(t+="-u",n&&(t+=`-ca-${n}`),e&&(t+=`-nu-${e}`)),t}function Hc(t){const e=[];for(let n=1;n<=12;n++){const r=v.utc(2016,n,1);e.push(t(r))}return e}function zc(t){const e=[];for(let n=1;n<=7;n++){const r=v.utc(2016,11,13+n);e.push(t(r))}return e}function Gt(t,e,n,r,s){const i=t.listingMode(n);return i==="error"?null:i==="en"?r(e):s(e)}function qc(t){return t.numberingSystem&&t.numberingSystem!=="latn"?!1:t.numberingSystem==="latn"||!t.locale||t.locale.startsWith("en")||new Intl.DateTimeFormat(t.intl).resolvedOptions().numberingSystem==="latn"}class Bc{constructor(e,n,r){this.padTo=r.padTo||0,this.floor=r.floor||!1;const{padTo:s,floor:i,...a}=r;if(!n||Object.keys(a).length>0){const o={useGrouping:!1,...r};r.padTo>0&&(o.minimumIntegerDigits=r.padTo),this.inf=Vc(e,o)}}format(e){if(this.inf){const n=this.floor?Math.floor(e):e;return this.inf.format(n)}else{const n=this.floor?Math.floor(e):zn(e,3);return $(n,this.padTo)}}}class Gc{constructor(e,n,r){this.opts=r;let s;if(e.zone.isUniversal){const a=-1*(e.offset/60),o=a>=0?`Etc/GMT+${a}`:`Etc/GMT${a}`;e.offset!==0&&ce.create(o).valid?(s=o,this.dt=e):(s="UTC",r.timeZoneName?this.dt=e:this.dt=e.offset===0?e:v.fromMillis(e.ts+e.offset*60*1e3))}else e.zone.type==="system"?this.dt=e:(this.dt=e,s=e.zone.name);const i={...this.opts};s&&(i.timeZone=s),this.dtf=Ln(n,i)}format(){return this.dtf.format(this.dt.toJSDate())}formatToParts(){return this.dtf.formatToParts(this.dt.toJSDate())}resolvedOptions(){return this.dtf.resolvedOptions()}}class Jc{constructor(e,n,r){this.opts={style:"long",...r},!n&&ai()&&(this.rtf=Lc(e,r))}format(e,n){return this.rtf?this.rtf.format(e,n):mf(n,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,n){return this.rtf?this.rtf.formatToParts(e,n):[]}}class D{static fromOpts(e){return D.create(e.locale,e.numberingSystem,e.outputCalendar,e.defaultToEN)}static create(e,n,r,s=!1){const i=e||F.defaultLocale,a=i||(s?"en-US":Uc()),o=n||F.defaultNumberingSystem,l=r||F.defaultOutputCalendar;return new D(a,o,l,i)}static resetCache(){mt=null,Vn={},Un={},Wn={}}static fromObject({locale:e,numberingSystem:n,outputCalendar:r}={}){return D.create(e,n,r)}constructor(e,n,r,s){const[i,a,o]=Wc(e);this.locale=i,this.numberingSystem=n||a||null,this.outputCalendar=r||o||null,this.intl=Zc(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=s,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=qc(this)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),n=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&n?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:D.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,n=!1,r=!0){return Gt(this,e,r,fi,()=>{const s=n?{month:e,day:"numeric"}:{month:e},i=n?"format":"standalone";return this.monthsCache[i][e]||(this.monthsCache[i][e]=Hc(a=>this.extract(a,s,"month"))),this.monthsCache[i][e]})}weekdays(e,n=!1,r=!0){return Gt(this,e,r,hi,()=>{const s=n?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},i=n?"format":"standalone";return this.weekdaysCache[i][e]||(this.weekdaysCache[i][e]=zc(a=>this.extract(a,s,"weekday"))),this.weekdaysCache[i][e]})}meridiems(e=!0){return Gt(this,void 0,e,()=>gi,()=>{if(!this.meridiemCache){const n={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[v.utc(2016,11,13,9),v.utc(2016,11,13,19)].map(r=>this.extract(r,n,"dayperiod"))}return this.meridiemCache})}eras(e,n=!0){return Gt(this,e,n,pi,()=>{const r={era:e};return this.eraCache[e]||(this.eraCache[e]=[v.utc(-40,1,1),v.utc(2017,1,1)].map(s=>this.extract(s,r,"era"))),this.eraCache[e]})}extract(e,n,r){const s=this.dtFormatter(e,n),i=s.formatToParts(),a=i.find(o=>o.type.toLowerCase()===r);return a?a.value:null}numberFormatter(e={}){return new Bc(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,n={}){return new Gc(e,this.intl,n)}relFormatter(e={}){return new Jc(this.intl,this.isEnglish(),e)}listFormatter(e={}){return jc(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}}let Zn=null;class V extends dt{static get utcInstance(){return Zn===null&&(Zn=new V(0)),Zn}static instance(e){return e===0?V.utcInstance:new V(e)}static parseSpecifier(e){if(e){const n=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new V(Qt(n[1],n[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${pt(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${pt(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,n){return pt(this.fixed,n)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}}class Yc extends dt{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function ve(t,e){if(S(t)||t===null)return e;if(t instanceof dt)return t;if(Kc(t)){const n=t.toLowerCase();return n==="default"?e:n==="local"||n==="system"?zt.instance:n==="utc"||n==="gmt"?V.utcInstance:V.parseSpecifier(n)||ce.create(t)}else return _e(t)?V.instance(t):typeof t=="object"&&t.offset&&typeof t.offset=="number"?t:new Yc(t)}let Xs=()=>Date.now(),ei="system",ti=null,ni=null,ri=null,si=60,ii;class F{static get now(){return Xs}static set now(e){Xs=e}static set defaultZone(e){ei=e}static get defaultZone(){return ve(ei,zt.instance)}static get defaultLocale(){return ti}static set defaultLocale(e){ti=e}static get defaultNumberingSystem(){return ni}static set defaultNumberingSystem(e){ni=e}static get defaultOutputCalendar(){return ri}static set defaultOutputCalendar(e){ri=e}static get twoDigitCutoffYear(){return si}static set twoDigitCutoffYear(e){si=e%100}static get throwOnInvalid(){return ii}static set throwOnInvalid(e){ii=e}static resetCaches(){D.resetCache(),ce.resetCache()}}function S(t){return typeof t>"u"}function _e(t){return typeof t=="number"}function Jt(t){return typeof t=="number"&&t%1===0}function Kc(t){return typeof t=="string"}function Qc(t){return Object.prototype.toString.call(t)==="[object Date]"}function ai(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function Xc(t){return Array.isArray(t)?t:[t]}function oi(t,e,n){if(t.length!==0)return t.reduce((r,s)=>{const i=[e(s),s];return r&&n(r[0],i[0])===r[0]?r:i},null)[1]}function ef(t,e){return e.reduce((n,r)=>(n[r]=t[r],n),{})}function We(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function fe(t,e,n){return Jt(t)&&t>=e&&t<=n}function tf(t,e){return t-e*Math.floor(t/e)}function $(t,e=2){const n=t<0;let r;return n?r="-"+(""+-t).padStart(e,"0"):r=(""+t).padStart(e,"0"),r}function Ae(t){if(!(S(t)||t===null||t===""))return parseInt(t,10)}function De(t){if(!(S(t)||t===null||t===""))return parseFloat(t)}function Hn(t){if(!(S(t)||t===null||t==="")){const e=parseFloat("0."+t)*1e3;return Math.floor(e)}}function zn(t,e,n=!1){const r=10**e;return(n?Math.trunc:Math.round)(t*r)/r}function ht(t){return t%4===0&&(t%100!==0||t%400===0)}function gt(t){return ht(t)?366:365}function Yt(t,e){const n=tf(e-1,12)+1,r=t+(e-n)/12;return n===2?ht(r)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function qn(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(e.getUTCFullYear()-1900)),+e}function Kt(t){const e=(t+Math.floor(t/4)-Math.floor(t/100)+Math.floor(t/400))%7,n=t-1,r=(n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400))%7;return e===4||r===3?53:52}function Bn(t){return t>99?t:t>F.twoDigitCutoffYear?1900+t:2e3+t}function li(t,e,n,r=null){const s=new Date(t),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(i.timeZone=r);const a={timeZoneName:e,...i},o=new Intl.DateTimeFormat(n,a).formatToParts(s).find(l=>l.type.toLowerCase()==="timezonename");return o?o.value:null}function Qt(t,e){let n=parseInt(t,10);Number.isNaN(n)&&(n=0);const r=parseInt(e,10)||0,s=n<0||Object.is(n,-0)?-r:r;return n*60+s}function ui(t){const e=Number(t);if(typeof t=="boolean"||t===""||Number.isNaN(e))throw new q(`Invalid unit value ${t}`);return e}function Xt(t,e){const n={};for(const r in t)if(We(t,r)){const s=t[r];if(s==null)continue;n[e(r)]=ui(s)}return n}function pt(t,e){const n=Math.trunc(Math.abs(t/60)),r=Math.trunc(Math.abs(t%60)),s=t>=0?"+":"-";switch(e){case"short":return`${s}${$(n,2)}:${$(r,2)}`;case"narrow":return`${s}${n}${r>0?`:${r}`:""}`;case"techie":return`${s}${$(n,2)}${$(r,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function en(t){return ef(t,["hour","minute","second","millisecond"])}const nf=["January","February","March","April","May","June","July","August","September","October","November","December"],ci=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],rf=["J","F","M","A","M","J","J","A","S","O","N","D"];function fi(t){switch(t){case"narrow":return[...rf];case"short":return[...ci];case"long":return[...nf];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const di=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],mi=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],sf=["M","T","W","T","F","S","S"];function hi(t){switch(t){case"narrow":return[...sf];case"short":return[...mi];case"long":return[...di];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const gi=["AM","PM"],af=["Before Christ","Anno Domini"],of=["BC","AD"],lf=["B","A"];function pi(t){switch(t){case"narrow":return[...lf];case"short":return[...of];case"long":return[...af];default:return null}}function uf(t){return gi[t.hour<12?0:1]}function cf(t,e){return hi(e)[t.weekday-1]}function ff(t,e){return fi(e)[t.month-1]}function df(t,e){return pi(e)[t.year<0?0:1]}function mf(t,e,n="always",r=!1){const s={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},i=["hours","minutes","seconds"].indexOf(t)===-1;if(n==="auto"&&i){const g=t==="days";switch(e){case 1:return g?"tomorrow":`next ${s[t][0]}`;case-1:return g?"yesterday":`last ${s[t][0]}`;case 0:return g?"today":`this ${s[t][0]}`}}const a=Object.is(e,-0)||e<0,o=Math.abs(e),l=o===1,u=s[t],f=r?l?u[1]:u[2]||u[1]:l?s[t][0]:t;return a?`${o} ${f} ago`:`in ${o} ${f}`}function yi(t,e){let n="";for(const r of t)r.literal?n+=r.val:n+=e(r.val);return n}const hf={D:Pn,DD:Cs,DDD:Fs,DDDD:$s,t:Rs,tt:Ps,ttt:js,tttt:Vs,T:Ls,TT:Us,TTT:Ws,TTTT:Zs,f:Hs,ff:qs,fff:Gs,ffff:Ys,F:zs,FF:Bs,FFF:Js,FFFF:Ks};class L{static create(e,n={}){return new L(e,n)}static parseFormat(e){let n=null,r="",s=!1;const i=[];for(let a=0;a<e.length;a++){const o=e.charAt(a);o==="'"?(r.length>0&&i.push({literal:s,val:r}),n=null,r="",s=!s):s||o===n?r+=o:(r.length>0&&i.push({literal:!1,val:r}),r=o,n=o)}return r.length>0&&i.push({literal:s,val:r}),i}static macroTokenToFormatOpts(e){return hf[e]}constructor(e,n){this.opts=n,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,n){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...n}).format()}formatDateTime(e,n={}){return this.loc.dtFormatter(e,{...this.opts,...n}).format()}formatDateTimeParts(e,n={}){return this.loc.dtFormatter(e,{...this.opts,...n}).formatToParts()}resolvedOptions(e,n={}){return this.loc.dtFormatter(e,{...this.opts,...n}).resolvedOptions()}num(e,n=0){if(this.opts.forceSimple)return $(e,n);const r={...this.opts};return n>0&&(r.padTo=n),this.loc.numberFormatter(r).format(e)}formatDateTimeFromString(e,n){const r=this.loc.listingMode()==="en",s=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",i=(c,h)=>this.loc.extract(e,c,h),a=c=>e.isOffsetFixed&&e.offset===0&&c.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,c.format):"",o=()=>r?uf(e):i({hour:"numeric",hourCycle:"h12"},"dayperiod"),l=(c,h)=>r?ff(e,c):i(h?{month:c}:{month:c,day:"numeric"},"month"),u=(c,h)=>r?cf(e,c):i(h?{weekday:c}:{weekday:c,month:"long",day:"numeric"},"weekday"),f=c=>{const h=L.macroTokenToFormatOpts(c);return h?this.formatWithSystemDefault(e,h):c},g=c=>r?df(e,c):i({era:c},"era"),d=c=>{switch(c){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return a({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return a({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return a({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return o();case"d":return s?i({day:"numeric"},"day"):this.num(e.day);case"dd":return s?i({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return u("short",!0);case"cccc":return u("long",!0);case"ccccc":return u("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return u("short",!1);case"EEEE":return u("long",!1);case"EEEEE":return u("narrow",!1);case"L":return s?i({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return s?i({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return s?i({month:"numeric"},"month"):this.num(e.month);case"MM":return s?i({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return s?i({year:"numeric"},"year"):this.num(e.year);case"yy":return s?i({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return s?i({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return s?i({year:"numeric"},"year"):this.num(e.year,6);case"G":return g("short");case"GG":return g("long");case"GGGGG":return g("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return f(c)}};return yi(L.parseFormat(n),d)}formatDurationFromString(e,n){const r=l=>{switch(l[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},s=l=>u=>{const f=r(u);return f?this.num(l.get(f),u.length):u},i=L.parseFormat(n),a=i.reduce((l,{literal:u,val:f})=>u?l:l.concat(f),[]),o=e.shiftTo(...a.map(r).filter(l=>l));return yi(i,s(o))}}class ne{constructor(e,n){this.reason=e,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const wi=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function Ze(...t){const e=t.reduce((n,r)=>n+r.source,"");return RegExp(`^${e}$`)}function He(...t){return e=>t.reduce(([n,r,s],i)=>{const[a,o,l]=i(e,s);return[{...n,...a},o||r,l]},[{},null,1]).slice(0,2)}function ze(t,...e){if(t==null)return[null,null];for(const[n,r]of e){const s=n.exec(t);if(s)return r(s)}return[null,null]}function bi(...t){return(e,n)=>{const r={};let s;for(s=0;s<t.length;s++)r[t[s]]=Ae(e[n+s]);return[r,null,n+s]}}const vi=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,gf=`(?:${vi.source}?(?:\[(${wi.source})\])?)?`,Gn=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,Ai=RegExp(`${Gn.source}${gf}`),Jn=RegExp(`(?:T${Ai.source})?`),pf=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,yf=/(\d{4})-?W(\d\d)(?:-?(\d))?/,wf=/(\d{4})-?(\d{3})/,bf=bi("weekYear","weekNumber","weekDay"),vf=bi("year","ordinal"),Af=/(\d{4})-(\d\d)-(\d\d)/,Ti=RegExp(`${Gn.source} ?(?:${vi.source}|(${wi.source}))?`),Tf=RegExp(`(?: ${Ti.source})?`);function qe(t,e,n){const r=t[e];return S(r)?n:Ae(r)}function Sf(t,e){return[{year:qe(t,e),month:qe(t,e+1,1),day:qe(t,e+2,1)},null,e+3]}function Be(t,e){return[{hours:qe(t,e,0),minutes:qe(t,e+1,0),seconds:qe(t,e+2,0),milliseconds:Hn(t[e+3])},null,e+4]}function yt(t,e){const n=!t[e]&&!t[e+1],r=Qt(t[e+1],t[e+2]),s=n?null:V.instance(r);return[{},s,e+3]}function wt(t,e){const n=t[e]?ce.create(t[e]):null;return[{},n,e+1]}const xf=RegExp(`^T?${Gn.source}$`),Of=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function Ef(t){const[e,n,r,s,i,a,o,l,u]=t,f=e[0]==="-",g=l&&l[0]==="-",d=(c,h=!1)=>c!==void 0&&(h||c&&f)?-c:c;return[{years:d(De(n)),months:d(De(r)),weeks:d(De(s)),days:d(De(i)),hours:d(De(a)),minutes:d(De(o)),seconds:d(De(l),l==="-0"),milliseconds:d(Hn(u),g)}]}const Mf={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Yn(t,e,n,r,s,i,a){const o={year:e.length===2?Bn(Ae(e)):Ae(e),month:ci.indexOf(n)+1,day:Ae(r),hour:Ae(s),minute:Ae(i)};return a&&(o.second=Ae(a)),t&&(o.weekday=t.length>3?di.indexOf(t)+1:mi.indexOf(t)+1),o}const If=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function kf(t){const[,e,n,r,s,i,a,o,l,u,f,g]=t,d=Yn(e,s,r,n,i,a,o);let c;return l?c=Mf[l]:u?c=0:c=Qt(f,g),[d,new V(c)]}function Nf(t){return t.replace(/\([^)]*\)|[
]/g," ").replace(/(\s\s+)/g," ").trim()}const _f=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Df=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,Cf=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Si(t){const[,e,n,r,s,i,a,o]=t;return[Yn(e,s,r,n,i,a,o),V.utcInstance]}function Ff(t){const[,e,n,r,s,i,a,o]=t;return[Yn(e,o,n,r,s,i,a),V.utcInstance]}const $f=Ze(pf,Jn),Rf=Ze(yf,Jn),Pf=Ze(wf,Jn),jf=Ze(Ai),xi=He(Sf,Be,yt,wt),Vf=He(bf,Be,yt,wt),Lf=He(vf,Be,yt,wt),Uf=He(Be,yt,wt);function Wf(t){return ze(t,[$f,xi],[Rf,Vf],[Pf,Lf],[jf,Uf])}function Zf(t){return ze(Nf(t),[If,kf])}function Hf(t){return ze(t,[_f,Si],[Df,Si],[Cf,Ff])}function zf(t){return ze(t,[Of,Ef])}const qf=He(Be);function Bf(t){return ze(t,[xf,qf])}const Gf=Ze(Af,Tf),Jf=Ze(Ti),Yf=He(Be,yt,wt);function Kf(t){return ze(t,[Gf,xi],[Jf,Yf])}const Qf="Invalid Duration",Oi={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},Xf={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...Oi},B=146097/400,Ge=146097/4800,ed={years:{quarters:4,months:12,weeks:B/7,days:B,hours:B*24,minutes:B*24*60,seconds:B*24*60*60,milliseconds:B*24*60*60*1e3},quarters:{months:3,weeks:B/28,days:B/4,hours:B*24/4,minutes:B*24*60/4,seconds:B*24*60*60/4,milliseconds:B*24*60*60*1e3/4},months:{weeks:Ge/7,days:Ge,hours:Ge*24,minutes:Ge*24*60,seconds:Ge*24*60*60,milliseconds:Ge*24*60*60*1e3},...Oi},Ce=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],td=Ce.slice(0).reverse();function Te(t,e,n=!1){const r={values:n?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy,matrix:e.matrix||t.matrix};return new O(r)}function nd(t){return t<0?Math.floor(t):Math.ceil(t)}function Ei(t,e,n,r,s){const i=t[s][n],a=e[n]/i,o=Math.sign(a)===Math.sign(r[s]),l=!o&&r[s]!==0&&Math.abs(a)<=1?nd(a):Math.trunc(a);r[s]+=l,e[n]-=l*i}function rd(t,e){td.reduce((n,r)=>S(e[r])?n:(n&&Ei(t,e,n,e,r),r),null)}function sd(t){const e={};for(const[n,r]of Object.entries(t))r!==0&&(e[n]=r);return e}class O{constructor(e){const n=e.conversionAccuracy==="longterm"||!1;let r=n?ed:Xf;e.matrix&&(r=e.matrix),this.values=e.values,this.loc=e.loc||D.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=r,this.isLuxonDuration=!0}static fromMillis(e,n){return O.fromObject({milliseconds:e},n)}static fromObject(e,n={}){if(e==null||typeof e!="object")throw new q(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new O({values:Xt(e,O.normalizeUnit),loc:D.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(e){if(_e(e))return O.fromMillis(e);if(O.isDuration(e))return e;if(typeof e=="object")return O.fromObject(e);throw new q(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,n){const[r]=zf(e);return r?O.fromObject(r,n):O.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,n){const[r]=Bf(e);return r?O.fromObject(r,n):O.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,n=null){if(!e)throw new q("need to specify a reason the Duration is invalid");const r=e instanceof ne?e:new ne(e,n);if(F.throwOnInvalid)throw new _c(r);return new O({invalid:r})}static normalizeUnit(e){const n={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!n)throw new Ds(e);return n}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,n={}){const r={...n,floor:n.round!==!1&&n.floor!==!1};return this.isValid?L.create(this.loc,r).formatDurationFromString(this,e):Qf}toHuman(e={}){const n=Ce.map(r=>{const s=this.values[r];return S(s)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:r.slice(0,-1)}).format(s)}).filter(r=>r);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(n)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=zn(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const n=this.toMillis();if(n<0||n>=864e5)return null;e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e};const r=this.shiftTo("hours","minutes","seconds","milliseconds");let s=e.format==="basic"?"hhmm":"hh:mm";(!e.suppressSeconds||r.seconds!==0||r.milliseconds!==0)&&(s+=e.format==="basic"?"ss":":ss",(!e.suppressMilliseconds||r.milliseconds!==0)&&(s+=".SSS"));let i=r.toFormat(s);return e.includePrefix&&(i="T"+i),i}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){return this.as("milliseconds")}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const n=O.fromDurationLike(e),r={};for(const s of Ce)(We(n.values,s)||We(this.values,s))&&(r[s]=n.get(s)+this.get(s));return Te(this,{values:r},!0)}minus(e){if(!this.isValid)return this;const n=O.fromDurationLike(e);return this.plus(n.negate())}mapUnits(e){if(!this.isValid)return this;const n={};for(const r of Object.keys(this.values))n[r]=ui(e(this.values[r],r));return Te(this,{values:n},!0)}get(e){return this[O.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const n={...this.values,...Xt(e,O.normalizeUnit)};return Te(this,{values:n})}reconfigure({locale:e,numberingSystem:n,conversionAccuracy:r,matrix:s}={}){const a={loc:this.loc.clone({locale:e,numberingSystem:n}),matrix:s,conversionAccuracy:r};return Te(this,a)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return rd(this.matrix,e),Te(this,{values:e},!0)}rescale(){if(!this.isValid)return this;const e=sd(this.normalize().shiftToAll().toObject());return Te(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(a=>O.normalizeUnit(a));const n={},r={},s=this.toObject();let i;for(const a of Ce)if(e.indexOf(a)>=0){i=a;let o=0;for(const u in r)o+=this.matrix[u][a]*r[u],r[u]=0;_e(s[a])&&(o+=s[a]);const l=Math.trunc(o);n[a]=l,r[a]=(o*1e3-l*1e3)/1e3;for(const u in s)Ce.indexOf(u)>Ce.indexOf(a)&&Ei(this.matrix,s,u,n,a)}else _e(s[a])&&(r[a]=s[a]);for(const a in r)r[a]!==0&&(n[i]+=a===i?r[a]:r[a]/this.matrix[i][a]);return Te(this,{values:n},!0).normalize()}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const n of Object.keys(this.values))e[n]=this.values[n]===0?0:-this.values[n];return Te(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function n(r,s){return r===void 0||r===0?s===void 0||s===0:r===s}for(const r of Ce)if(!n(this.values[r],e.values[r]))return!1;return!0}}const bt="Invalid Interval";function id(t,e){return!t||!t.isValid?C.invalid("missing or invalid start"):!e||!e.isValid?C.invalid("missing or invalid end"):e<t?C.invalid("end before start",`The end of an interval must be after its start, but you had start=${t.toISO()} and end=${e.toISO()}`):null}class C{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,n=null){if(!e)throw new q("need to specify a reason the Interval is invalid");const r=e instanceof ne?e:new ne(e,n);if(F.throwOnInvalid)throw new Nc(r);return new C({invalid:r})}static fromDateTimes(e,n){const r=Tt(e),s=Tt(n),i=id(r,s);return i??new C({start:r,end:s})}static after(e,n){const r=O.fromDurationLike(n),s=Tt(e);return C.fromDateTimes(s,s.plus(r))}static before(e,n){const r=O.fromDurationLike(n),s=Tt(e);return C.fromDateTimes(s.minus(r),s)}static fromISO(e,n){const[r,s]=(e||"").split("/",2);if(r&&s){let i,a;try{i=v.fromISO(r,n),a=i.isValid}catch{a=!1}let o,l;try{o=v.fromISO(s,n),l=o.isValid}catch{l=!1}if(a&&l)return C.fromDateTimes(i,o);if(a){const u=O.fromISO(s,n);if(u.isValid)return C.after(i,u)}else if(l){const u=O.fromISO(r,n);if(u.isValid)return C.before(o,u)}}return C.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds"){if(!this.isValid)return NaN;const n=this.start.startOf(e),r=this.end.startOf(e);return Math.floor(r.diff(n,e).get(e))+1}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:n}={}){return this.isValid?C.fromDateTimes(e||this.s,n||this.e):this}splitAt(...e){if(!this.isValid)return[];const n=e.map(Tt).filter(a=>this.contains(a)).sort(),r=[];let{s}=this,i=0;for(;s<this.e;){const a=n[i]||this.e,o=+a>+this.e?this.e:a;r.push(C.fromDateTimes(s,o)),s=o,i+=1}return r}splitBy(e){const n=O.fromDurationLike(e);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s:r}=this,s=1,i;const a=[];for(;r<this.e;){const o=this.start.plus(n.mapUnits(l=>l*s));i=+o>+this.e?this.e:o,a.push(C.fromDateTimes(r,i)),r=i,s+=1}return a}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return this.isValid?+this.e==+e.s:!1}abutsEnd(e){return this.isValid?+e.e==+this.s:!1}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const n=this.s>e.s?this.s:e.s,r=this.e<e.e?this.e:e.e;return n>=r?null:C.fromDateTimes(n,r)}union(e){if(!this.isValid)return this;const n=this.s<e.s?this.s:e.s,r=this.e>e.e?this.e:e.e;return C.fromDateTimes(n,r)}static merge(e){const[n,r]=e.sort((s,i)=>s.s-i.s).reduce(([s,i],a)=>i?i.overlaps(a)||i.abutsStart(a)?[s,i.union(a)]:[s.concat([i]),a]:[s,a],[[],null]);return r&&n.push(r),n}static xor(e){let n=null,r=0;const s=[],i=e.map(l=>[{time:l.s,type:"s"},{time:l.e,type:"e"}]),a=Array.prototype.concat(...i),o=a.sort((l,u)=>l.time-u.time);for(const l of o)r+=l.type==="s"?1:-1,r===1?n=l.time:(n&&+n!=+l.time&&s.push(C.fromDateTimes(n,l.time)),n=null);return C.merge(s)}difference(...e){return C.xor([this].concat(e)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} ${this.e.toISO()})`:bt}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:bt}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:bt}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:bt}toFormat(e,{separator:n=" "}={}){return this.isValid?`${this.s.toFormat(e)}${n}${this.e.toFormat(e)}`:bt}toDuration(e,n){return this.isValid?this.e.diff(this.s,e,n):O.invalid(this.invalidReason)}mapEndpoints(e){return C.fromDateTimes(e(this.s),e(this.e))}}class tn{static hasDST(e=F.defaultZone){const n=v.now().setZone(e).set({month:12});return!e.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(e){return ce.isValidZone(e)}static normalizeZone(e){return ve(e,F.defaultZone)}static months(e="long",{locale:n=null,numberingSystem:r=null,locObj:s=null,outputCalendar:i="gregory"}={}){return(s||D.create(n,r,i)).months(e)}static monthsFormat(e="long",{locale:n=null,numberingSystem:r=null,locObj:s=null,outputCalendar:i="gregory"}={}){return(s||D.create(n,r,i)).months(e,!0)}static weekdays(e="long",{locale:n=null,numberingSystem:r=null,locObj:s=null}={}){return(s||D.create(n,r,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:n=null,numberingSystem:r=null,locObj:s=null}={}){return(s||D.create(n,r,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return D.create(e).meridiems()}static eras(e="short",{locale:n=null}={}){return D.create(n,null,"gregory").eras(e)}static features(){return{relative:ai()}}}function Mi(t,e){const n=s=>s.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=n(e)-n(t);return Math.floor(O.fromMillis(r).as("days"))}function ad(t,e,n){const r=[["years",(o,l)=>l.year-o.year],["quarters",(o,l)=>l.quarter-o.quarter+(l.year-o.year)*4],["months",(o,l)=>l.month-o.month+(l.year-o.year)*12],["weeks",(o,l)=>{const u=Mi(o,l);return(u-u%7)/7}],["days",Mi]],s={};let i,a;for(const[o,l]of r)if(n.indexOf(o)>=0){i=o;let u=l(t,e);a=t.plus({[o]:u}),a>e?(t=t.plus({[o]:u-1}),u-=1):t=a,s[o]=u}return[t,s,a,i]}function od(t,e,n,r){let[s,i,a,o]=ad(t,e,n);const l=e-s,u=n.filter(g=>["hours","minutes","seconds","milliseconds"].indexOf(g)>=0);u.length===0&&(a<e&&(a=s.plus({[o]:1})),a!==s&&(i[o]=(i[o]||0)+l/(a-s)));const f=O.fromObject(i,r);return u.length>0?O.fromMillis(l,r).shiftTo(...u).plus(f):f}const Kn={arab:"[-]",arabext:"[-]",bali:"[-]",beng:"[-]",deva:"[-]",fullwide:"[-]",gujr:"[-]",hanidec:"[|||||||||]",khmr:"[-]",knda:"[-]",laoo:"[-]",limb:"[-]",mlym:"[-]",mong:"[-]",mymr:"[-]",orya:"[-]",tamldec:"[-]",telu:"[-]",thai:"[-]",tibt:"[-]",latn:"\d"},Ii={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},ld=Kn.hanidec.replace(/[\[|\]]/g,"").split("");function ud(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let n=0;n<t.length;n++){const r=t.charCodeAt(n);if(t[n].search(Kn.hanidec)!==-1)e+=ld.indexOf(t[n]);else for(const s in Ii){const[i,a]=Ii[s];r>=i&&r<=a&&(e+=r-i)}}return parseInt(e,10)}else return e}function re({numberingSystem:t},e=""){return new RegExp(`${Kn[t||"latn"]}${e}`)}const cd="missing Intl.DateTimeFormat.formatToParts support";function I(t,e=n=>n){return{regex:t,deser:([n])=>e(ud(n))}}const ki=`[ ${String.fromCharCode(160)}]`,Ni=new RegExp(ki,"g");function fd(t){return t.replace(/\./g,"\.?").replace(Ni,ki)}function _i(t){return t.replace(/\./g,"").replace(Ni," ").toLowerCase()}function se(t,e){return t===null?null:{regex:RegExp(t.map(fd).join("|")),deser:([n])=>t.findIndex(r=>_i(n)===_i(r))+e}}function Di(t,e){return{regex:t,deser:([,n,r])=>Qt(n,r),groups:e}}function Qn(t){return{regex:t,deser:([e])=>e}}function dd(t){return t.replace(/[\-\[\]{}()*+?.,\\^$|#\s]/g,"\$&")}function md(t,e){const n=re(e),r=re(e,"{2}"),s=re(e,"{3}"),i=re(e,"{4}"),a=re(e,"{6}"),o=re(e,"{1,2}"),l=re(e,"{1,3}"),u=re(e,"{1,6}"),f=re(e,"{1,9}"),g=re(e,"{2,4}"),d=re(e,"{4,6}"),c=y=>({regex:RegExp(dd(y.val)),deser:([x])=>x,literal:!0}),b=(y=>{if(t.literal)return c(y);switch(y.val){case"G":return se(e.eras("short",!1),0);case"GG":return se(e.eras("long",!1),0);case"y":return I(u);case"yy":return I(g,Bn);case"yyyy":return I(i);case"yyyyy":return I(d);case"yyyyyy":return I(a);case"M":return I(o);case"MM":return I(r);case"MMM":return se(e.months("short",!0,!1),1);case"MMMM":return se(e.months("long",!0,!1),1);case"L":return I(o);case"LL":return I(r);case"LLL":return se(e.months("short",!1,!1),1);case"LLLL":return se(e.months("long",!1,!1),1);case"d":return I(o);case"dd":return I(r);case"o":return I(l);case"ooo":return I(s);case"HH":return I(r);case"H":return I(o);case"hh":return I(r);case"h":return I(o);case"mm":return I(r);case"m":return I(o);case"q":return I(o);case"qq":return I(r);case"s":return I(o);case"ss":return I(r);case"S":return I(l);case"SSS":return I(s);case"u":return Qn(f);case"uu":return Qn(o);case"uuu":return I(n);case"a":return se(e.meridiems(),0);case"kkkk":return I(i);case"kk":return I(g,Bn);case"W":return I(o);case"WW":return I(r);case"E":case"c":return I(n);case"EEE":return se(e.weekdays("short",!1,!1),1);case"EEEE":return se(e.weekdays("long",!1,!1),1);case"ccc":return se(e.weekdays("short",!0,!1),1);case"cccc":return se(e.weekdays("long",!0,!1),1);case"Z":case"ZZ":return Di(new RegExp(`([+-]${o.source})(?::(${r.source}))?`),2);case"ZZZ":return Di(new RegExp(`([+-]${o.source})(${r.source})?`),2);case"z":return Qn(/[a-z_+-/]{1,256}?/i);default:return c(y)}})(t)||{invalidReason:cd};return b.token=t,b}const hd={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function gd(t,e,n){const{type:r,value:s}=t;if(r==="literal")return{literal:!0,val:s};const i=n[r];let a=hd[r];if(typeof a=="object"&&(a=a[i]),a)return{literal:!1,val:a}}function pd(t){return[`^${t.map(n=>n.regex).reduce((n,r)=>`${n}(${r.source})`,"")}$`,t]}function yd(t,e,n){const r=t.match(e);if(r){const s={};let i=1;for(const a in n)if(We(n,a)){const o=n[a],l=o.groups?o.groups+1:1;!o.literal&&o.token&&(s[o.token.val[0]]=o.deser(r.slice(i,i+l))),i+=l}return[r,s]}else return[r,{}]}function wd(t){const e=i=>{switch(i){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let n=null,r;return S(t.z)||(n=ce.create(t.z)),S(t.Z)||(n||(n=new V(t.Z)),r=t.Z),S(t.q)||(t.M=(t.q-1)*3+1),S(t.h)||(t.h<12&&t.a===1?t.h+=12:t.h===12&&t.a===0&&(t.h=0)),t.G===0&&t.y&&(t.y=-t.y),S(t.u)||(t.S=Hn(t.u)),[Object.keys(t).reduce((i,a)=>{const o=e(a);return o&&(i[o]=t[a]),i},{}),n,r]}let Xn=null;function bd(){return Xn||(Xn=v.fromMillis(1555555555555)),Xn}function vd(t,e){if(t.literal)return t;const n=L.macroTokenToFormatOpts(t.val),r=$i(n,e);return r==null||r.includes(void 0)?t:r}function Ci(t,e){return Array.prototype.concat(...t.map(n=>vd(n,e)))}function Fi(t,e,n){const r=Ci(L.parseFormat(n),t),s=r.map(a=>md(a,t)),i=s.find(a=>a.invalidReason);if(i)return{input:e,tokens:r,invalidReason:i.invalidReason};{const[a,o]=pd(s),l=RegExp(a,"i"),[u,f]=yd(e,l,o),[g,d,c]=f?wd(f):[null,null,void 0];if(We(f,"a")&&We(f,"H"))throw new ft("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:r,regex:l,rawMatches:u,matches:f,result:g,zone:d,specificOffset:c}}}function Ad(t,e,n){const{result:r,zone:s,specificOffset:i,invalidReason:a}=Fi(t,e,n);return[r,s,i,a]}function $i(t,e){return t?L.create(e,t).formatDateTimeParts(bd()).map(s=>gd(s,e,t)):null}const Ri=[0,31,59,90,120,151,181,212,243,273,304,334],Pi=[0,31,60,91,121,152,182,213,244,274,305,335];function G(t,e){return new ne("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function ji(t,e,n){const r=new Date(Date.UTC(t,e-1,n));t<100&&t>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);const s=r.getUTCDay();return s===0?7:s}function Vi(t,e,n){return n+(ht(t)?Pi:Ri)[e-1]}function Li(t,e){const n=ht(t)?Pi:Ri,r=n.findIndex(i=>i<e),s=e-n[r];return{month:r+1,day:s}}function er(t){const{year:e,month:n,day:r}=t,s=Vi(e,n,r),i=ji(e,n,r);let a=Math.floor((s-i+10)/7),o;return a<1?(o=e-1,a=Kt(o)):a>Kt(e)?(o=e+1,a=1):o=e,{weekYear:o,weekNumber:a,weekday:i,...en(t)}}function Ui(t){const{weekYear:e,weekNumber:n,weekday:r}=t,s=ji(e,1,4),i=gt(e);let a=n*7+r-s-3,o;a<1?(o=e-1,a+=gt(o)):a>i?(o=e+1,a-=gt(e)):o=e;const{month:l,day:u}=Li(o,a);return{year:o,month:l,day:u,...en(t)}}function tr(t){const{year:e,month:n,day:r}=t,s=Vi(e,n,r);return{year:e,ordinal:s,...en(t)}}function Wi(t){const{year:e,ordinal:n}=t,{month:r,day:s}=Li(e,n);return{year:e,month:r,day:s,...en(t)}}function Td(t){const e=Jt(t.weekYear),n=fe(t.weekNumber,1,Kt(t.weekYear)),r=fe(t.weekday,1,7);return e?n?r?!1:G("weekday",t.weekday):G("week",t.week):G("weekYear",t.weekYear)}function Sd(t){const e=Jt(t.year),n=fe(t.ordinal,1,gt(t.year));return e?n?!1:G("ordinal",t.ordinal):G("year",t.year)}function Zi(t){const e=Jt(t.year),n=fe(t.month,1,12),r=fe(t.day,1,Yt(t.year,t.month));return e?n?r?!1:G("day",t.day):G("month",t.month):G("year",t.year)}function Hi(t){const{hour:e,minute:n,second:r,millisecond:s}=t,i=fe(e,0,23)||e===24&&n===0&&r===0&&s===0,a=fe(n,0,59),o=fe(r,0,59),l=fe(s,0,999);return i?a?o?l?!1:G("millisecond",s):G("second",r):G("minute",n):G("hour",e)}const nr="Invalid DateTime",zi=864e13;function nn(t){return new ne("unsupported zone",`the zone "${t.name}" is not supported`)}function rr(t){return t.weekData===null&&(t.weekData=er(t.c)),t.weekData}function vt(t,e){const n={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new v({...n,...e,old:n})}function qi(t,e,n){let r=t-e*60*1e3;const s=n.offset(r);if(e===s)return[r,e];r-=(s-e)*60*1e3;const i=n.offset(r);return s===i?[r,s]:[t-Math.min(s,i)*60*1e3,Math.max(s,i)]}function Bi(t,e){t+=e*60*1e3;const n=new Date(t);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function rn(t,e,n){return qi(qn(t),e,n)}function Gi(t,e){const n=t.o,r=t.c.year+Math.trunc(e.years),s=t.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,i={...t.c,year:r,month:s,day:Math.min(t.c.day,Yt(r,s))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},a=O.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),o=qn(i);let[l,u]=qi(o,n,t.zone);return a!==0&&(l+=a,u=t.zone.offset(l)),{ts:l,o:u}}function At(t,e,n,r,s,i){const{setZone:a,zone:o}=n;if(t&&Object.keys(t).length!==0){const l=e||o,u=v.fromObject(t,{...n,zone:l,specificOffset:i});return a?u:u.setZone(o)}else return v.invalid(new ne("unparsable",`the input "${s}" can't be parsed as ${r}`))}function sn(t,e,n=!0){return t.isValid?L.create(D.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(t,e):null}function sr(t,e){const n=t.c.year>9999||t.c.year<0;let r="";return n&&t.c.year>=0&&(r+="+"),r+=$(t.c.year,n?6:4),e?(r+="-",r+=$(t.c.month),r+="-",r+=$(t.c.day)):(r+=$(t.c.month),r+=$(t.c.day)),r}function Ji(t,e,n,r,s,i){let a=$(t.c.hour);return e?(a+=":",a+=$(t.c.minute),(t.c.second!==0||!n)&&(a+=":")):a+=$(t.c.minute),(t.c.second!==0||!n)&&(a+=$(t.c.second),(t.c.millisecond!==0||!r)&&(a+=".",a+=$(t.c.millisecond,3))),s&&(t.isOffsetFixed&&t.offset===0&&!i?a+="Z":t.o<0?(a+="-",a+=$(Math.trunc(-t.o/60)),a+=":",a+=$(Math.trunc(-t.o%60))):(a+="+",a+=$(Math.trunc(t.o/60)),a+=":",a+=$(Math.trunc(t.o%60)))),i&&(a+="["+t.zone.ianaName+"]"),a}const Yi={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},xd={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Od={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Ki=["year","month","day","hour","minute","second","millisecond"],Ed=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],Md=["year","ordinal","hour","minute","second","millisecond"];function Qi(t){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new Ds(t);return e}function Xi(t,e){const n=ve(e.zone,F.defaultZone),r=D.fromObject(e),s=F.now();let i,a;if(S(t.year))i=s;else{for(const u of Ki)S(t[u])&&(t[u]=Yi[u]);const o=Zi(t)||Hi(t);if(o)return v.invalid(o);const l=n.offset(s);[i,a]=rn(t,l,n)}return new v({ts:i,zone:n,loc:r,o:a})}function ea(t,e,n){const r=S(n.round)?!0:n.round,s=(a,o)=>(a=zn(a,r||n.calendary?0:2,!0),e.loc.clone(n).relFormatter(n).format(a,o)),i=a=>n.calendary?e.hasSame(t,a)?0:e.startOf(a).diff(t.startOf(a),a).get(a):e.diff(t,a).get(a);if(n.unit)return s(i(n.unit),n.unit);for(const a of n.units){const o=i(a);if(Math.abs(o)>=1)return s(o,a)}return s(t>e?-0:0,n.units[n.units.length-1])}function ta(t){let e={},n;return t.length>0&&typeof t[t.length-1]=="object"?(e=t[t.length-1],n=Array.from(t).slice(0,t.length-1)):n=Array.from(t),[e,n]}class v{constructor(e){const n=e.zone||F.defaultZone;let r=e.invalid||(Number.isNaN(e.ts)?new ne("invalid input"):null)||(n.isValid?null:nn(n));this.ts=S(e.ts)?F.now():e.ts;let s=null,i=null;if(!r)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(n))[s,i]=[e.old.c,e.old.o];else{const o=n.offset(this.ts);s=Bi(this.ts,o),r=Number.isNaN(s.year)?new ne("invalid input"):null,s=r?null:s,i=r?null:o}this._zone=n,this.loc=e.loc||D.create(),this.invalid=r,this.weekData=null,this.c=s,this.o=i,this.isLuxonDateTime=!0}static now(){return new v({})}static local(){const[e,n]=ta(arguments),[r,s,i,a,o,l,u]=n;return Xi({year:r,month:s,day:i,hour:a,minute:o,second:l,millisecond:u},e)}static utc(){const[e,n]=ta(arguments),[r,s,i,a,o,l,u]=n;return e.zone=V.utcInstance,Xi({year:r,month:s,day:i,hour:a,minute:o,second:l,millisecond:u},e)}static fromJSDate(e,n={}){const r=Qc(e)?e.valueOf():NaN;if(Number.isNaN(r))return v.invalid("invalid input");const s=ve(n.zone,F.defaultZone);return s.isValid?new v({ts:r,zone:s,loc:D.fromObject(n)}):v.invalid(nn(s))}static fromMillis(e,n={}){if(_e(e))return e<-zi||e>zi?v.invalid("Timestamp out of range"):new v({ts:e,zone:ve(n.zone,F.defaultZone),loc:D.fromObject(n)});throw new q(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,n={}){if(_e(e))return new v({ts:e*1e3,zone:ve(n.zone,F.defaultZone),loc:D.fromObject(n)});throw new q("fromSeconds requires a numerical input")}static fromObject(e,n={}){e=e||{};const r=ve(n.zone,F.defaultZone);if(!r.isValid)return v.invalid(nn(r));const s=F.now(),i=S(n.specificOffset)?r.offset(s):n.specificOffset,a=Xt(e,Qi),o=!S(a.ordinal),l=!S(a.year),u=!S(a.month)||!S(a.day),f=l||u,g=a.weekYear||a.weekNumber,d=D.fromObject(n);if((f||o)&&g)throw new ft("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(u&&o)throw new ft("Can't mix ordinal dates with month/day");const c=g||a.weekday&&!f;let h,b,y=Bi(s,i);c?(h=Ed,b=xd,y=er(y)):o?(h=Md,b=Od,y=tr(y)):(h=Ki,b=Yi);let x=!1;for(const p of h){const w=a[p];S(w)?x?a[p]=b[p]:a[p]=y[p]:x=!0}const E=c?Td(a):o?Sd(a):Zi(a),A=E||Hi(a);if(A)return v.invalid(A);const U=c?Ui(a):o?Wi(a):a,[J,Je]=rn(U,i,r),ae=new v({ts:J,zone:r,o:Je,loc:d});return a.weekday&&f&&e.weekday!==ae.weekday?v.invalid("mismatched weekday",`you can't specify both a weekday of ${a.weekday} and a date of ${ae.toISO()}`):ae}static fromISO(e,n={}){const[r,s]=Wf(e);return At(r,s,n,"ISO 8601",e)}static fromRFC2822(e,n={}){const[r,s]=Zf(e);return At(r,s,n,"RFC 2822",e)}static fromHTTP(e,n={}){const[r,s]=Hf(e);return At(r,s,n,"HTTP",n)}static fromFormat(e,n,r={}){if(S(e)||S(n))throw new q("fromFormat requires an input string and a format");const{locale:s=null,numberingSystem:i=null}=r,a=D.fromOpts({locale:s,numberingSystem:i,defaultToEN:!0}),[o,l,u,f]=Ad(a,e,n);return f?v.invalid(f):At(o,l,r,`format ${n}`,e,u)}static fromString(e,n,r={}){return v.fromFormat(e,n,r)}static fromSQL(e,n={}){const[r,s]=Kf(e);return At(r,s,n,"SQL",e)}static invalid(e,n=null){if(!e)throw new q("need to specify a reason the DateTime is invalid");const r=e instanceof ne?e:new ne(e,n);if(F.throwOnInvalid)throw new kc(r);return new v({invalid:r})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,n={}){const r=$i(e,D.fromObject(n));return r?r.map(s=>s?s.val:null).join(""):null}static expandFormat(e,n={}){return Ci(L.parseFormat(e),D.fromObject(n)).map(s=>s.val).join("")}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?rr(this).weekYear:NaN}get weekNumber(){return this.isValid?rr(this).weekNumber:NaN}get weekday(){return this.isValid?rr(this).weekday:NaN}get ordinal(){return this.isValid?tr(this.c).ordinal:NaN}get monthShort(){return this.isValid?tn.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?tn.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?tn.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?tn.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}get isInLeapYear(){return ht(this.year)}get daysInMonth(){return Yt(this.year,this.month)}get daysInYear(){return this.isValid?gt(this.year):NaN}get weeksInWeekYear(){return this.isValid?Kt(this.weekYear):NaN}resolvedLocaleOptions(e={}){const{locale:n,numberingSystem:r,calendar:s}=L.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:n,numberingSystem:r,outputCalendar:s}}toUTC(e=0,n={}){return this.setZone(V.instance(e),n)}toLocal(){return this.setZone(F.defaultZone)}setZone(e,{keepLocalTime:n=!1,keepCalendarTime:r=!1}={}){if(e=ve(e,F.defaultZone),e.equals(this.zone))return this;if(e.isValid){let s=this.ts;if(n||r){const i=e.offset(this.ts),a=this.toObject();[s]=rn(a,i,e)}return vt(this,{ts:s,zone:e})}else return v.invalid(nn(e))}reconfigure({locale:e,numberingSystem:n,outputCalendar:r}={}){const s=this.loc.clone({locale:e,numberingSystem:n,outputCalendar:r});return vt(this,{loc:s})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const n=Xt(e,Qi),r=!S(n.weekYear)||!S(n.weekNumber)||!S(n.weekday),s=!S(n.ordinal),i=!S(n.year),a=!S(n.month)||!S(n.day),o=i||a,l=n.weekYear||n.weekNumber;if((o||s)&&l)throw new ft("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(a&&s)throw new ft("Can't mix ordinal dates with month/day");let u;r?u=Ui({...er(this.c),...n}):S(n.ordinal)?(u={...this.toObject(),...n},S(n.day)&&(u.day=Math.min(Yt(u.year,u.month),u.day))):u=Wi({...tr(this.c),...n});const[f,g]=rn(u,this.o,this.zone);return vt(this,{ts:f,o:g})}plus(e){if(!this.isValid)return this;const n=O.fromDurationLike(e);return vt(this,Gi(this,n))}minus(e){if(!this.isValid)return this;const n=O.fromDurationLike(e).negate();return vt(this,Gi(this,n))}startOf(e){if(!this.isValid)return this;const n={},r=O.normalizeUnit(e);switch(r){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0;break}if(r==="weeks"&&(n.weekday=1),r==="quarters"){const s=Math.ceil(this.month/3);n.month=(s-1)*3+1}return this.set(n)}endOf(e){return this.isValid?this.plus({[e]:1}).startOf(e).minus(1):this}toFormat(e,n={}){return this.isValid?L.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this,e):nr}toLocaleString(e=Pn,n={}){return this.isValid?L.create(this.loc.clone(n),e).formatDateTime(this):nr}toLocaleParts(e={}){return this.isValid?L.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:n=!1,suppressMilliseconds:r=!1,includeOffset:s=!0,extendedZone:i=!1}={}){if(!this.isValid)return null;const a=e==="extended";let o=sr(this,a);return o+="T",o+=Ji(this,a,n,r,s,i),o}toISODate({format:e="extended"}={}){return this.isValid?sr(this,e==="extended"):null}toISOWeekDate(){return sn(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:n=!1,includeOffset:r=!0,includePrefix:s=!1,extendedZone:i=!1,format:a="extended"}={}){return this.isValid?(s?"T":"")+Ji(this,a==="extended",n,e,r,i):null}toRFC2822(){return sn(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return sn(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?sr(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:n=!1,includeOffsetSpace:r=!0}={}){let s="HH:mm:ss.SSS";return(n||e)&&(r&&(s+=" "),n?s+="z":e&&(s+="ZZ")),sn(this,s,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():nr}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const n={...this.c};return e.includeConfig&&(n.outputCalendar=this.outputCalendar,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,n="milliseconds",r={}){if(!this.isValid||!e.isValid)return O.invalid("created by diffing an invalid DateTime");const s={locale:this.locale,numberingSystem:this.numberingSystem,...r},i=Xc(n).map(O.normalizeUnit),a=e.valueOf()>this.valueOf(),o=a?this:e,l=a?e:this,u=od(o,l,i,s);return a?u.negate():u}diffNow(e="milliseconds",n={}){return this.diff(v.now(),e,n)}until(e){return this.isValid?C.fromDateTimes(this,e):this}hasSame(e,n){if(!this.isValid)return!1;const r=e.valueOf(),s=this.setZone(e.zone,{keepLocalTime:!0});return s.startOf(n)<=r&&r<=s.endOf(n)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const n=e.base||v.fromObject({},{zone:this.zone}),r=e.padding?this<n?-e.padding:e.padding:0;let s=["years","months","days","hours","minutes","seconds"],i=e.unit;return Array.isArray(e.unit)&&(s=e.unit,i=void 0),ea(n,this.plus(r),{...e,numeric:"always",units:s,unit:i})}toRelativeCalendar(e={}){return this.isValid?ea(e.base||v.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(v.isDateTime))throw new q("min requires all arguments be DateTimes");return oi(e,n=>n.valueOf(),Math.min)}static max(...e){if(!e.every(v.isDateTime))throw new q("max requires all arguments be DateTimes");return oi(e,n=>n.valueOf(),Math.max)}static fromFormatExplain(e,n,r={}){const{locale:s=null,numberingSystem:i=null}=r,a=D.fromOpts({locale:s,numberingSystem:i,defaultToEN:!0});return Fi(a,e,n)}static fromStringExplain(e,n,r={}){return v.fromFormatExplain(e,n,r)}static get DATE_SHORT(){return Pn}static get DATE_MED(){return Cs}static get DATE_MED_WITH_WEEKDAY(){return Dc}static get DATE_FULL(){return Fs}static get DATE_HUGE(){return $s}static get TIME_SIMPLE(){return Rs}static get TIME_WITH_SECONDS(){return Ps}static get TIME_WITH_SHORT_OFFSET(){return js}static get TIME_WITH_LONG_OFFSET(){return Vs}static get TIME_24_SIMPLE(){return Ls}static get TIME_24_WITH_SECONDS(){return Us}static get TIME_24_WITH_SHORT_OFFSET(){return Ws}static get TIME_24_WITH_LONG_OFFSET(){return Zs}static get DATETIME_SHORT(){return Hs}static get DATETIME_SHORT_WITH_SECONDS(){return zs}static get DATETIME_MED(){return qs}static get DATETIME_MED_WITH_SECONDS(){return Bs}static get DATETIME_MED_WITH_WEEKDAY(){return Cc}static get DATETIME_FULL(){return Gs}static get DATETIME_FULL_WITH_SECONDS(){return Js}static get DATETIME_HUGE(){return Ys}static get DATETIME_HUGE_WITH_SECONDS(){return Ks}}function Tt(t){if(v.isDateTime(t))return t;if(t&&t.valueOf&&_e(t.valueOf()))return v.fromJSDate(t);if(t&&typeof t=="object")return v.fromObject(t);throw new q(`Unknown datetime argument: ${t}, of type ${typeof t}`)}chrome.alarms.onAlarm.addListener(async t=>{var u;if(!t.name.startsWith("job.alarm:"))return;const e=await xc(),n=t.name.split(":")[1],r=e.get(n);if(!r){await chrome.alarms.clear(t.name);return}if(r.status==="Inactive")return;const s=new URL("https://www.upwork.com/ab/jobs/search/url");Ec(r,s.searchParams);const i=await fetch(s.toString(),{headers:{accept:"application/json, text/plain, */*","x-requested-with":"XMLHttpRequest","x-upwork-accept-language":"en-US"},referrer:"https://www.upwork.com/nx/jobs/search/?sort=recency",referrerPolicy:"origin-when-cross-origin",method:"GET",mode:"cors",credentials:"include"}).then(f=>f.json());if(i.error){chrome.notifications.create("upwork.login.required",{type:"basic",title:"Upwork Login Required",message:"To filter and search jobs, you need to login to Upwork.",iconUrl:chrome.runtime.getURL("images/icon-128.png")});return}const a=await Ns(),o=new Date;let l=(((u=i==null?void 0:i.searchResults)==null?void 0:u.jobs)??[]).map(f=>Id(f,r.id)).filter(f=>le(a).findIndex(g=>g.uid===f.uid)===-1).filter(f=>C.fromDateTimes(new Date(f.postedOn),o).count("days")<3);if(l.length>0){const f=l.length;l.unshift(...le(a)),l=l.sort((d,c)=>c.postedOn-d.postedOn),a.value=l;const g=f===1?"job":"jobs";chrome.notifications.create(`notification.job.${r.id}`,{type:"basic",title:"New Jobs",isClickable:!0,message:`You have ${f} new ${g} for \`${r.name}\`.`,iconUrl:chrome.runtime.getURL("images/icon-128.png")})}}),chrome.notifications.onClicked.addListener(t=>{t.startsWith("notification.job.")&&(chrome.runtime.openOptionsPage(),setTimeout(()=>{mr("goto-route","history","options")},500))});function Id(t,e){return{cipher:t.ciphertext,uid:t.uid,title:t.title,description:t.description,engagement:t.engagement,duration:t.duration,tier:t.tier,postedOn:ml(t.jobTs),type:t.type===2?"Hourly":"Fixed-price",attrs:t.attrs.map(n=>n.prettyName),connects:t.connectPrice,amount:t.amount,scrapedOn:Date.now(),alertId:e}}let an;const kd=new Uint8Array(16);function Nd(){if(!an&&(an=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!an))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return an(kd)}const P=[];for(let t=0;t<256;++t)P.push((t+256).toString(16).slice(1));function _d(t,e=0){return(P[t[e+0]]+P[t[e+1]]+P[t[e+2]]+P[t[e+3]]+"-"+P[t[e+4]]+P[t[e+5]]+"-"+P[t[e+6]]+P[t[e+7]]+"-"+P[t[e+8]]+P[t[e+9]]+"-"+P[t[e+10]]+P[t[e+11]]+P[t[e+12]]+P[t[e+13]]+P[t[e+14]]+P[t[e+15]]).toLowerCase()}const na={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Dd(t,e,n){if(na.randomUUID&&!e&&!t)return na.randomUUID();t=t||{};const r=t.random||(t.rng||Nd)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,e){n=n||0;for(let s=0;s<16;++s)e[n+s]=r[s];return e}return _d(r)}async function ra(){const t=await fetch("https://chat.openai.com/api/auth/session");if(t.status===403)throw new Error("CLOUDFLARE");const e=await t.json().catch(()=>({}));if(!e.accessToken)throw new Error("UNAUTHORIZED");return e}function Cd({listen:t=!1,...e}={}){return ks("chatgpt_session",void 0,{listen:t,...e})}function Fd(t){return{error:["UNAUTHORIZED","CLOUDFLARE"].includes(t.message)?t.message:"UNAUTHORIZED"}}function $d(t){let e,n,r,s,i,a,o;return l(),{feed:u,reset:l};function l(){e=!0,n="",r=0,s=-1,i=void 0,a=void 0,o=""}function u(g){n=n?n+g:g,e&&Rd(n)&&(n=n.slice(sa.length)),e=!1;const d=n.length;let c=0,h=!1;for(;c<d;){h&&(n[c]===`
`&&++c,h=!1);let b=-1,y=s,x;for(let E=r;b<0&&E<d;++E)x=n[E],x===":"&&y<0?y=E-c:x==="
"?(h=!0,b=E-c):x===`
`&&(b=E-c);if(b<0){r=d-c,s=y;break}else r=0,s=-1;f(n,c,y,b),c+=b+1}c===d?n="":c>0&&(n=n.slice(c))}function f(g,d,c,h){if(h===0){o.length>0&&(t({type:"event",id:i,event:a||void 0,data:o.slice(0,-1)}),o="",i=void 0),a=void 0;return}const b=c<0,y=g.slice(d,d+(b?h:c));let x=0;b?x=h:g[d+c+1]===" "?x=c+2:x=c+1;const E=d+x,A=h-x,U=g.slice(E,E+A).toString();if(y==="data")o+=U?"".concat(U,`
`):`
`;else if(y==="event")a=U;else if(y==="id"&&!U.includes(""))i=U;else if(y==="retry"){const J=parseInt(U,10);Number.isNaN(J)||t({type:"reconnect-interval",value:J})}}}const sa=[239,187,191];function Rd(t){return sa.every((e,n)=>t.charCodeAt(n)===e)}async function*Pd(t){const e=t.getReader();try{for(;;){const{done:n,value:r}=await e.read();if(n)return;yield r}}finally{e.releaseLock()}}function jd(t,e){const{onMessage:n,...r}=e;return new Promise((s,i)=>{fetch(t,r).then(async a=>{if(a.status===403)throw new Error("CLOUDFARE");if(a.status>=400)throw new Error("UNAUTHORIZED");if(a.status===429)throw new Error("RATE_LIMIT");const o=$d(l=>{l.type==="event"&&(n(l.data),l.data==="[DONE]"&&s())});for await(const l of Pd(a.body)){const u=new TextDecoder().decode(l);o.feed(u)}}).catch(i)})}Ia("chatgpt-message",t=>{const e=Tn(!0),n=Cd({listen:!0}),r=No(()=>!le(e)&&ia(le(n)));let s=new AbortController,i=null;On(e,d=>{setTimeout(()=>t.send({type:"chatgpt.authenticating",data:d}),0)},{immediate:!0,flush:"post",deep:!0}),On(n,d=>{le(e)||(ia(d)?t.send({type:"chatgpt.session",data:d}):Vd(d)?t.send({type:"cloudfare.error"}):t.send({type:"chatgpt.auth"}))},{deep:!0,flush:"post"}),t.onMessage(d=>{switch(d.type){case"chatgpt.ask":return g(d.data);case"chatgpt.abort":s.abort("ABORTED");break}}),ra().catch(Fd).then(d=>{e.value=!1,n.value=d});function a(){return t.send({type:"chatgpt.result",data:null})}function o(){return t.send({type:"chatgpt.auth"})}function l(d){return t.send({type:"chatgpt.error",error:d})}function u(){return t.send({type:"cloudfare.error"})}async function f(d){try{const b=(await fetch("https://chat.openai.com/backend-api/models",{method:"GET",headers:{"Content-Type":"application/json",Authorization:`Bearer ${d}`},credentials:"include"}).then(y=>y.ok?y.json():Promise.reject(y.statusText))).models[0];i=b==null?void 0:b.slug}catch(c){console.error(c)}}async function g(d){if(!le(r))return a(),o();s.abort(),s=new AbortController;const c=s,{accessToken:h}=le(n);i||await f(h);const b={action:"next",messages:[{id:Dd(),role:"user",content:{content_type:"text",parts:d.parts}}],model:i??"text-davinci-002-render",parent_message_id:d.parent_message_id};d.conversation_id&&(b.conversation_id=d.conversation_id);let y;function x(E){return fetch(`https://chat.openai.com/backend-api/conversation/${E}`,{method:"PATCH",headers:{"Content-Type":"application/json",Authorization:`Bearer ${h}`},body:JSON.stringify({is_visible:!1}),credentials:"include"}).catch(()=>!1)}await jd("https://chat.openai.com/backend-api/conversation",{method:"POST",signal:c.signal,headers:{"Content-Type":"application/json",Authorization:`Bearer ${h}`},body:JSON.stringify(b),onMessage(E){var J,Je,ae;if(E==="[DONE]")return Ht(y)&&x(y),t.send({type:"chatgpt.result",data:null});if(!Ld(E))return;const A=JSON.parse(E),U=(ae=(Je=(J=A.message)==null?void 0:J.content)==null?void 0:Je.parts)==null?void 0:ae[0];U&&(y=A.conversation_id??y,t.send({type:"chatgpt.result",data:{text:U,conversation_id:A.conversation_id,message_id:A.message.id}}))}}).catch(E=>{if(a(),y&&x(y),!(E.name==="AbortError"||c.signal.aborted)){if(E.message==="UNAUTHORIZED")return o();if(E.message==="CLOUDFARE")return u();if(E.message==="RATE_LIMIT")return l("RATE_LIMIT");console.log(E)}})}});function ia(t){return t&&t.accessToken!==void 0}function Vd(t){return t&&t.error==="CLOUDFLARE"}function Ld(t){try{return JSON.parse(t),!0}catch{return!1}}It("chatgpt-session",()=>ra().catch(t=>({error:["UNAUTHORIZED","CLOUDFLARE"].includes(t.message)?t.message:"UNAUTHORIZED"})));const on="cron.jobs.clear";async function Ud(){const t=await chrome.alarms.get(on),e=6,n=e*60;if((t==null?void 0:t.name)!==on||(t==null?void 0:t.periodInMinutes)!==n){const r=new Date,s=r.setHours(r.getHours()+e);await chrome.alarms.create(on,{periodInMinutes:n,when:s})}}Ud(),chrome.alarms.onAlarm.addListener(async t=>{if(t.name!==on)return;const e=await Ns(),n=new Date;e.value=le(e).filter(r=>C.fromDateTimes(new Date(r.postedOn),n).count("days")<3)}),It("open-option-ui",({data:t})=>{chrome.runtime.openOptionsPage(),t&&setTimeout(()=>{mr("goto-route",t,"options")},500)});const aa=["dev","development"].includes("production".toLowerCase());chrome.action.onClicked.addListener(()=>{chrome.runtime.openOptionsPage()}),chrome.runtime.onMessageExternal.addListener((t,e)=>{const n=new URL(aa?"http://localhost:3000/":"https://upcat.app/");new URL(e.url).origin===n.origin&&t.type==="open-options-ui"&&chrome.runtime.openOptionsPage()}),chrome.runtime.onInstalled.addListener(t=>{if(t.reason==="install"){const e=aa?"http://localhost:3000/install-success":"https://upcat.app/install-success";return chrome.tabs.create({url:e,active:!0})}})})();
?>
Did this file decode correctly?
Original Code
/*!
* |-----------------------------------|
* UPCAT EXTENSION
* |-----------------------------------|
* version: v1.1.10
* description: Use A.I. to enhance your job search on Upwork with personalized proposals and real-time alerts.
* author: CodeSpikeX
* homepage: https://codespikex.com/
* license: GPL-3.0
*/
(function(){"use strict";var oa=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Se={},la={get exports(){return Se},set exports(t){Se=t}};const ua=t=>typeof crypto<"u"&&typeof crypto.getRandomValues=="function"?()=>{const e=crypto.getRandomValues(new Uint8Array(1))[0];return(e>=t?e%t:e).toString(t)}:()=>Math.floor(Math.random()*t).toString(t),ar=(t=7,e=!1)=>Array.from({length:t},ua(e?16:36)).join("");la.exports=ar,Se.default=ar;var ca=()=>`uid::${Se(7)}`,fa=(t,e=["endpointName","fingerprint"])=>typeof t=="object"&&t!==null&&e.every(n=>n in t),da=t=>{try{const e=JSON.parse(t);return fa(e)?e:null}catch{return null}},ma=()=>{let t=[];return{add:(...e)=>{t=[...t,...e]},remove:e=>{t=typeof e=="string"?t.filter(n=>n.message.transactionId!==e):t.filter(n=>!e.includes(n))},entries:()=>t}},Ke=class{static toBackground(t,e){return t.postMessage(e)}static toExtensionContext(t,e){return t.postMessage(e)}},ha=Object.defineProperty,ga=Object.defineProperties,pa=Object.getOwnPropertyDescriptors,or=Object.getOwnPropertySymbols,ya=Object.prototype.hasOwnProperty,wa=Object.prototype.propertyIsEnumerable,lr=(t,e,n)=>e in t?ha(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,de=(t,e)=>{for(var n in e||(e={}))ya.call(e,n)&&lr(t,n,e[n]);if(or)for(var n of or(e))wa.call(e,n)&&lr(t,n,e[n]);return t},ln=(t,e)=>ga(t,pa(e)),ba=/^((?:background$)|devtools|popup|options|content-script|window)(?:@(\d+)(?:\.(\d+))?)?$/,un=t=>{const[,e,n,r]=t.match(ba)||[];return{context:e,tabId:+n,frameId:r?+r:void 0}},xt=({context:t,tabId:e,frameId:n})=>["background","popup","options"].includes(t)?t:`${t}@${e}${n?`.${n}`:""}`;const va=[{property:"name",enumerable:!1},{property:"message",enumerable:!1},{property:"stack",enumerable:!1},{property:"code",enumerable:!0}],cn=Symbol(".toJSON was called"),Aa=t=>{t[cn]=!0;const e=t.toJSON();return delete t[cn],e},ur=({from:t,seen:e,to_:n,forceEnumerable:r,maxDepth:s,depth:i})=>{const a=n||(Array.isArray(t)?[]:{});if(e.push(t),i>=s)return a;if(typeof t.toJSON=="function"&&t[cn]!==!0)return Aa(t);for(const[o,l]of Object.entries(t)){if(typeof Buffer=="function"&&Buffer.isBuffer(l)){a[o]="[object Buffer]";continue}if(l!==null&&typeof l=="object"&&typeof l.pipe=="function"){a[o]="[object Stream]";continue}if(typeof l!="function"){if(!l||typeof l!="object"){a[o]=l;continue}if(!e.includes(t[o])){i++,a[o]=ur({from:t[o],seen:[...e],forceEnumerable:r,maxDepth:s,depth:i});continue}a[o]="[Circular]"}}for(const{property:o,enumerable:l}of va)typeof t[o]=="string"&&Object.defineProperty(a,o,{value:t[o],enumerable:r?!0:l,configurable:!0,writable:!0});return a};function Ta(t,e={}){const{maxDepth:n=Number.POSITIVE_INFINITY}=e;return typeof t=="object"&&t!==null?ur({from:t,seen:[],forceEnumerable:!0,maxDepth:n,depth:0}):typeof t=="function"?`[Function: ${t.name||"anonymous"}]`:t}let cr=()=>({events:{},emit(t,...e){(this.events[t]||[]).forEach(n=>n(...e))},on(t,e){return(this.events[t]=this.events[t]||[]).push(e),()=>this.events[t]=(this.events[t]||[]).filter(n=>n!==e)}});var Sa=(t,e,n)=>{const r=Se(),s=new Map,i=new Map,a=o=>{if(o.destination.context===t&&!o.destination.frameId&&!o.destination.tabId){n==null||n(o);const{transactionId:l,messageID:u,messageType:f}=o,g=()=>{const c=s.get(l);if(c){const{err:h,data:b}=o;if(h){const y=h,x=self[y.name],E=new(typeof x=="function"?x:Error)(y.message);for(const A in y)E[A]=y[A];c.reject(E)}else c.resolve(b);s.delete(l)}},d=async()=>{let c,h,b=!1;try{const y=i.get(u);if(typeof y=="function")c=await y({sender:Object.assign({},o.origin),id:u,data:o.data,timestamp:o.timestamp});else throw b=!0,new Error(`[webext-bridge] No handler registered in '${t}' to accept messages with id '${u}'`)}catch(y){h=y}finally{if(h&&(o.err=Ta(h)),a(ln(de({},o),{messageType:"reply",data:c,origin:{context:t,tabId:null},destination:Object.assign({},o.origin),hops:[]})),h&&!b)throw c}};switch(f){case"reply":return g();case"message":return d()}}return o.hops.push(`${t}::${r}`),e(o)};return{handleMessage:a,endTransaction:o=>{const l=s.get(o);l==null||l.reject("Transaction was ended before it could complete"),s.delete(o)},sendMessage:(o,l,u="background")=>{const f=typeof u=="string"?un(u):u,g="Bridge#sendMessage ->";if(!f.context)throw new TypeError(`${g} Destination must be any one of known destinations`);return new Promise((d,c)=>{const h={messageID:o,data:l,destination:f,messageType:"message",transactionId:Se(),origin:{context:t,tabId:null},hops:[],timestamp:Date.now()};s.set(h.transactionId,{resolve:d,reject:c});try{a(h)}catch(b){s.delete(h.transactionId),c(b)}})},onMessage:(o,l)=>(i.set(o,l),()=>i.delete(o))}},Fe=class{constructor(t,e){this.endpointRuntime=t,this.streamInfo=e,this.emitter=cr(),this.isClosed=!1,this.handleStreamClose=()=>{this.isClosed||(this.isClosed=!0,this.emitter.emit("closed",!0),this.emitter.events={})},Fe.initDone||(t.onMessage("__crx_bridge_stream_transfer__",n=>{const{streamId:r,streamTransfer:s,action:i}=n.data,a=Fe.openStreams.get(r);a&&!a.isClosed&&(i==="transfer"&&a.emitter.emit("message",s),i==="close"&&(Fe.openStreams.delete(r),a.handleStreamClose()))}),Fe.initDone=!0),Fe.openStreams.set(this.streamInfo.streamId,this)}get info(){return this.streamInfo}send(t){if(this.isClosed)throw new Error("Attempting to send a message over closed stream. Use stream.onClose(<callback>) to keep an eye on stream status");return this.endpointRuntime.sendMessage("__crx_bridge_stream_transfer__",{streamId:this.streamInfo.streamId,streamTransfer:t,action:"transfer"},Object.assign({},this.streamInfo.endpoint))}close(t){const e=[];t&&e.push(this.send(t)),this.handleStreamClose();const n=this.endpointRuntime.sendMessage("__crx_bridge_stream_transfer__",{streamId:this.streamInfo.streamId,streamTransfer:null,action:"close"},Object.assign({},this.streamInfo.endpoint));return e.push(n),Promise.all(e)}onMessage(t){return this.getDisposable("message",t)}onClose(t){return this.getDisposable("closed",t)}getDisposable(t,e){const n=this.emitter.on(t,e);return Object.assign(n,{dispose:n,close:n})}},Ot=Fe;Ot.initDone=!1,Ot.openStreams=new Map;var xa=t=>{const e=new Map,n=new Map,r=cr();t.onMessage("__crx_bridge_stream_open__",a=>new Promise(o=>{const{sender:l,data:u}=a,{channel:f}=u;let g=!1,d=()=>{};const c=()=>{const h=n.get(f);typeof h=="function"?(h(new Ot(t,ln(de({},u),{endpoint:l}))),g&&d(),o(!0)):g||(g=!0,d=r.on("did-change-stream-callbacks",c))};c()}));async function s(a,o){if(e.has(a))throw new Error("webext-bridge: A Stream is already open at this channel");const l=typeof o=="string"?un(o):o,u={streamId:Se(),channel:a,endpoint:l},f=new Ot(t,u);return f.onClose(()=>e.delete(a)),await t.sendMessage("__crx_bridge_stream_open__",u,l),e.set(a,f),f}function i(a,o){if(n.has(a))throw new Error("webext-bridge: This channel has already been claimed. Stream allows only one-on-one communication");n.set(a,o),r.emit("did-change-stream-callbacks")}return{openStream:s,onOpenStreamChannel:i}},fn={},Oa={get exports(){return fn},set exports(t){fn=t}};(function(t,e){(function(n,r){r(t)})(typeof globalThis<"u"?globalThis:typeof self<"u"?self:oa,function(n){if(typeof globalThis!="object"||typeof chrome!="object"||!chrome||!chrome.runtime||!chrome.runtime.id)throw new Error("This script should only be loaded in a browser extension.");if(typeof globalThis.browser>"u"||Object.getPrototypeOf(globalThis.browser)!==Object.prototype){const r="The message port closed before a response was received.",s="Returning a Promise is the preferred way to send a reply from an onMessage/onMessageExternal listener, as the sendResponse will be removed from the specs (See https://developer.mozilla.org/docs/Mozilla/Add-ons/WebExtensions/API/runtime/onMessage)",i=a=>{const o={alarms:{clear:{minArgs:0,maxArgs:1},clearAll:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getAll:{minArgs:0,maxArgs:0}},bookmarks:{create:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},getChildren:{minArgs:1,maxArgs:1},getRecent:{minArgs:1,maxArgs:1},getSubTree:{minArgs:1,maxArgs:1},getTree:{minArgs:0,maxArgs:0},move:{minArgs:2,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeTree:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}},browserAction:{disable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},enable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},getBadgeBackgroundColor:{minArgs:1,maxArgs:1},getBadgeText:{minArgs:1,maxArgs:1},getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},openPopup:{minArgs:0,maxArgs:0},setBadgeBackgroundColor:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setBadgeText:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},browsingData:{remove:{minArgs:2,maxArgs:2},removeCache:{minArgs:1,maxArgs:1},removeCookies:{minArgs:1,maxArgs:1},removeDownloads:{minArgs:1,maxArgs:1},removeFormData:{minArgs:1,maxArgs:1},removeHistory:{minArgs:1,maxArgs:1},removeLocalStorage:{minArgs:1,maxArgs:1},removePasswords:{minArgs:1,maxArgs:1},removePluginData:{minArgs:1,maxArgs:1},settings:{minArgs:0,maxArgs:0}},commands:{getAll:{minArgs:0,maxArgs:0}},contextMenus:{remove:{minArgs:1,maxArgs:1},removeAll:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},cookies:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:1,maxArgs:1},getAllCookieStores:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},devtools:{inspectedWindow:{eval:{minArgs:1,maxArgs:2,singleCallbackArg:!1}},panels:{create:{minArgs:3,maxArgs:3,singleCallbackArg:!0},elements:{createSidebarPane:{minArgs:1,maxArgs:1}}}},downloads:{cancel:{minArgs:1,maxArgs:1},download:{minArgs:1,maxArgs:1},erase:{minArgs:1,maxArgs:1},getFileIcon:{minArgs:1,maxArgs:2},open:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},pause:{minArgs:1,maxArgs:1},removeFile:{minArgs:1,maxArgs:1},resume:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},extension:{isAllowedFileSchemeAccess:{minArgs:0,maxArgs:0},isAllowedIncognitoAccess:{minArgs:0,maxArgs:0}},history:{addUrl:{minArgs:1,maxArgs:1},deleteAll:{minArgs:0,maxArgs:0},deleteRange:{minArgs:1,maxArgs:1},deleteUrl:{minArgs:1,maxArgs:1},getVisits:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1}},i18n:{detectLanguage:{minArgs:1,maxArgs:1},getAcceptLanguages:{minArgs:0,maxArgs:0}},identity:{launchWebAuthFlow:{minArgs:1,maxArgs:1}},idle:{queryState:{minArgs:1,maxArgs:1}},management:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},getSelf:{minArgs:0,maxArgs:0},setEnabled:{minArgs:2,maxArgs:2},uninstallSelf:{minArgs:0,maxArgs:1}},notifications:{clear:{minArgs:1,maxArgs:1},create:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:0},getPermissionLevel:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},pageAction:{getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},hide:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},permissions:{contains:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},request:{minArgs:1,maxArgs:1}},runtime:{getBackgroundPage:{minArgs:0,maxArgs:0},getPlatformInfo:{minArgs:0,maxArgs:0},openOptionsPage:{minArgs:0,maxArgs:0},requestUpdateCheck:{minArgs:0,maxArgs:0},sendMessage:{minArgs:1,maxArgs:3},sendNativeMessage:{minArgs:2,maxArgs:2},setUninstallURL:{minArgs:1,maxArgs:1}},sessions:{getDevices:{minArgs:0,maxArgs:1},getRecentlyClosed:{minArgs:0,maxArgs:1},restore:{minArgs:0,maxArgs:1}},storage:{local:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},managed:{get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1}},sync:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}}},tabs:{captureVisibleTab:{minArgs:0,maxArgs:2},create:{minArgs:1,maxArgs:1},detectLanguage:{minArgs:0,maxArgs:1},discard:{minArgs:0,maxArgs:1},duplicate:{minArgs:1,maxArgs:1},executeScript:{minArgs:1,maxArgs:2},get:{minArgs:1,maxArgs:1},getCurrent:{minArgs:0,maxArgs:0},getZoom:{minArgs:0,maxArgs:1},getZoomSettings:{minArgs:0,maxArgs:1},goBack:{minArgs:0,maxArgs:1},goForward:{minArgs:0,maxArgs:1},highlight:{minArgs:1,maxArgs:1},insertCSS:{minArgs:1,maxArgs:2},move:{minArgs:2,maxArgs:2},query:{minArgs:1,maxArgs:1},reload:{minArgs:0,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeCSS:{minArgs:1,maxArgs:2},sendMessage:{minArgs:2,maxArgs:3},setZoom:{minArgs:1,maxArgs:2},setZoomSettings:{minArgs:1,maxArgs:2},update:{minArgs:1,maxArgs:2}},topSites:{get:{minArgs:0,maxArgs:0}},webNavigation:{getAllFrames:{minArgs:1,maxArgs:1},getFrame:{minArgs:1,maxArgs:1}},webRequest:{handlerBehaviorChanged:{minArgs:0,maxArgs:0}},windows:{create:{minArgs:0,maxArgs:1},get:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:1},getCurrent:{minArgs:0,maxArgs:1},getLastFocused:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}}};if(Object.keys(o).length===0)throw new Error("api-metadata.json has not been included in browser-polyfill");class l extends WeakMap{constructor(w,M=void 0){super(M),this.createItem=w}get(w){return this.has(w)||this.set(w,this.createItem(w)),super.get(w)}}const u=p=>p&&typeof p=="object"&&typeof p.then=="function",f=(p,w)=>(...M)=>{a.runtime.lastError?p.reject(new Error(a.runtime.lastError.message)):w.singleCallbackArg||M.length<=1&&w.singleCallbackArg!==!1?p.resolve(M[0]):p.resolve(M)},g=p=>p==1?"argument":"arguments",d=(p,w)=>function(k,...j){if(j.length<w.minArgs)throw new Error(`Expected at least ${w.minArgs} ${g(w.minArgs)} for ${p}(), got ${j.length}`);if(j.length>w.maxArgs)throw new Error(`Expected at most ${w.maxArgs} ${g(w.maxArgs)} for ${p}(), got ${j.length}`);return new Promise((H,Y)=>{if(w.fallbackToNoCallback)try{k[p](...j,f({resolve:H,reject:Y},w))}catch(T){console.warn(`${p} API method doesn't seem to support the callback parameter, falling back to call it without a callback: `,T),k[p](...j),w.fallbackToNoCallback=!1,w.noCallback=!0,H()}else w.noCallback?(k[p](...j),H()):k[p](...j,f({resolve:H,reject:Y},w))})},c=(p,w,M)=>new Proxy(w,{apply(k,j,H){return M.call(j,p,...H)}});let h=Function.call.bind(Object.prototype.hasOwnProperty);const b=(p,w={},M={})=>{let k=Object.create(null),j={has(Y,T){return T in p||T in k},get(Y,T,K){if(T in k)return k[T];if(!(T in p))return;let R=p[T];if(typeof R=="function")if(typeof w[T]=="function")R=c(p,p[T],w[T]);else if(h(M,T)){let Ye=d(T,M[T]);R=c(p,p[T],Ye)}else R=R.bind(p);else if(typeof R=="object"&&R!==null&&(h(w,T)||h(M,T)))R=b(R,w[T],M[T]);else if(h(M,"*"))R=b(R,w[T],M["*"]);else return Object.defineProperty(k,T,{configurable:!0,enumerable:!0,get(){return p[T]},set(Ye){p[T]=Ye}}),R;return k[T]=R,R},set(Y,T,K,R){return T in k?k[T]=K:p[T]=K,!0},defineProperty(Y,T,K){return Reflect.defineProperty(k,T,K)},deleteProperty(Y,T){return Reflect.deleteProperty(k,T)}},H=Object.create(p);return new Proxy(H,j)},y=p=>({addListener(w,M,...k){w.addListener(p.get(M),...k)},hasListener(w,M){return w.hasListener(p.get(M))},removeListener(w,M){w.removeListener(p.get(M))}}),x=new l(p=>typeof p!="function"?p:function(M){const k=b(M,{},{getContent:{minArgs:0,maxArgs:0}});p(k)});let E=!1;const A=new l(p=>typeof p!="function"?p:function(M,k,j){let H=!1,Y,T=new Promise(St=>{Y=function(oe){E||(console.warn(s,new Error().stack),E=!0),H=!0,St(oe)}}),K;try{K=p(M,k,Y)}catch(St){K=Promise.reject(St)}const R=K!==!0&&u(K);if(K!==!0&&!R&&!H)return!1;const Ye=St=>{St.then(oe=>{j(oe)},oe=>{let ir;oe&&(oe instanceof Error||typeof oe.message=="string")?ir=oe.message:ir="An unexpected error occurred",j({__mozWebExtensionPolyfillReject__:!0,message:ir})}).catch(oe=>{console.error("Failed to send onMessage rejected reply",oe)})};return Ye(R?K:T),!0}),U=({reject:p,resolve:w},M)=>{a.runtime.lastError?a.runtime.lastError.message===r?w():p(new Error(a.runtime.lastError.message)):M&&M.__mozWebExtensionPolyfillReject__?p(new Error(M.message)):w(M)},J=(p,w,M,...k)=>{if(k.length<w.minArgs)throw new Error(`Expected at least ${w.minArgs} ${g(w.minArgs)} for ${p}(), got ${k.length}`);if(k.length>w.maxArgs)throw new Error(`Expected at most ${w.maxArgs} ${g(w.maxArgs)} for ${p}(), got ${k.length}`);return new Promise((j,H)=>{const Y=U.bind(null,{resolve:j,reject:H});k.push(Y),M.sendMessage(...k)})},Je={devtools:{network:{onRequestFinished:y(x)}},runtime:{onMessage:y(A),onMessageExternal:y(A),sendMessage:J.bind(null,"sendMessage",{minArgs:1,maxArgs:3})},tabs:{sendMessage:J.bind(null,"sendMessage",{minArgs:2,maxArgs:3})}},ae={clear:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}};return o.privacy={network:{"*":ae},services:{"*":ae},websites:{"*":ae}},b(a,Je,o)};n.exports=i(chrome)}else n.exports=globalThis.browser})})(Oa);const Ea=fn;var Qe=ma(),W=new Map,$e=new Map,Et=new Map,fr=(t,e)=>($e.set(t,($e.get(t)||new Set).add(e)),()=>{const n=$e.get(t);n!=null&&n.delete(e)&&(n==null?void 0:n.size)===0&&$e.delete(t)}),dr=(t,e)=>{Et.set(t,(Et.get(t)||new Set).add(e))},xe=t=>({withFingerprint:e=>{const n=s=>({and:()=>s}),r={aboutIncomingMessage:s=>{const i=W.get(t);return Ke.toExtensionContext(i.port,{status:"incoming",message:s}),n(r)},aboutSuccessfulDelivery:s=>{const i=W.get(t);return Ke.toExtensionContext(i.port,{status:"delivered",receipt:s}),n(r)},aboutMessageUndeliverability:(s,i)=>{const a=W.get(t);return(a==null?void 0:a.fingerprint)===e&&Ke.toExtensionContext(a.port,{status:"undeliverable",resolvedDestination:s,message:i}),n(r)},whenDeliverableTo:s=>{const i=()=>{const a=W.get(t);if((a==null?void 0:a.fingerprint)===e&&W.has(s))return Ke.toExtensionContext(a.port,{status:"deliverable",deliverableTo:s}),!0};if(!i()){const a=fr(s,i);dr(e,a)}return n(r)},aboutSessionEnded:s=>{const i=W.get(t);return(i==null?void 0:i.fingerprint)===e&&Ke.toExtensionContext(i.port,{status:"terminated",fingerprint:s}),n(r)}};return r}}),Ma=ca(),Mt=Sa("background",t=>{if(t.origin.context==="background"&&["content-script","devtools "].includes(t.destination.context)&&!t.destination.tabId)throw new TypeError("When sending messages from background page, use @tabId syntax to target specific tab");const e=xt(de(de({},t.origin),t.origin.context==="window"&&{context:"content-script"})),n=xt(ln(de(de({},t.destination),t.destination.context==="window"&&{context:"content-script"}),{tabId:t.destination.tabId||t.origin.tabId}));t.destination.tabId=null,t.destination.frameId=null;const r=W.get(n),s=W.get(e),i=()=>{xe(n).withFingerprint(r.fingerprint).aboutIncomingMessage(t);const a={message:t,to:r.fingerprint,from:{endpointId:e,fingerprint:s==null?void 0:s.fingerprint}};t.messageType==="message"&&Qe.add(a),t.messageType==="reply"&&Qe.remove(t.messageID),s&&xe(e).withFingerprint(s.fingerprint).aboutSuccessfulDelivery(a)};r!=null&&r.port?i():t.messageType==="message"&&(t.origin.context==="background"?fr(n,i):s&&xe(e).withFingerprint(s.fingerprint).aboutMessageUndeliverability(n,t).and().whenDeliverableTo(n))},t=>{const e=xt(de(de({},t.origin),t.origin.context==="window"&&{context:"content-script"})),n=W.get(e),r={message:t,to:Ma,from:{endpointId:e,fingerprint:n.fingerprint}};xe(e).withFingerprint(n.fingerprint).aboutSuccessfulDelivery(r)});Ea.runtime.onConnect.addListener(t=>{var e;const n=da(t.name);if(!n)return;n.endpointName||(n.endpointName=xt({context:"content-script",tabId:t.sender.tab.id,frameId:t.sender.frameId}));const{tabId:r,frameId:s}=un(n.endpointName);W.set(n.endpointName,{fingerprint:n.fingerprint,port:t}),(e=$e.get(n.endpointName))==null||e.forEach(i=>i()),$e.delete(n.endpointName),dr(n.fingerprint,()=>{const i=Qe.entries().filter(a=>a.to===n.fingerprint);Qe.remove(i),i.forEach(a=>{a.from.endpointId==="background"?Mt.endTransaction(a.message.transactionId):xe(a.from.endpointId).withFingerprint(a.from.fingerprint).aboutSessionEnded(n.fingerprint)})}),t.onDisconnect.addListener(()=>{var i,a;((i=W.get(n.endpointName))==null?void 0:i.fingerprint)===n.fingerprint&&W.delete(n.endpointName),(a=Et.get(n.fingerprint))==null||a.forEach(o=>o()),Et.delete(n.fingerprint)}),t.onMessage.addListener(i=>{var a,o;if(i.type==="sync"){const l=[...W.values()].map(f=>f.fingerprint),u=i.pendingResponses.filter(f=>l.includes(f.to));Qe.add(...u),i.pendingResponses.filter(f=>!l.includes(f.to)).forEach(f=>xe(n.endpointName).withFingerprint(n.fingerprint).aboutSessionEnded(f.to)),i.pendingDeliveries.forEach(f=>xe(n.endpointName).withFingerprint(n.fingerprint).whenDeliverableTo(f));return}i.type==="deliver"&&((o=(a=i.message)==null?void 0:a.origin)!=null&&o.context)&&(i.message.origin.tabId=r,i.message.origin.frameId=s,Mt.handleMessage(i.message))})});var{sendMessage:mr,onMessage:It}=Mt,{openStream:Wd,onOpenStreamChannel:Ia}=xa(Mt);It("alert-add",({data:t})=>{const e=new Date().setMinutes(new Date().getMinutes()+t.scrape_interval);chrome.alarms.create(`job.alarm:${t.id}`,{periodInMinutes:t.scrape_interval,when:e})}),It("alert-delete",async({data:t})=>{await chrome.alarms.clear(`job.alarm:${t.id}`)});function ka(t,e){const n=Object.create(null),r=t.split(",");for(let s=0;s<r.length;s++)n[r[s]]=!0;return e?s=>!!n[s.toLowerCase()]:s=>!!n[s]}const Na={},Xe=()=>{},_a=()=>!1,Da=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},Ca=Object.prototype.hasOwnProperty,kt=(t,e)=>Ca.call(t,e),z=Array.isArray,et=t=>Nt(t)==="[object Map]",Fa=t=>Nt(t)==="[object Set]",Re=t=>typeof t=="function",$a=t=>typeof t=="string",dn=t=>typeof t=="symbol",Pe=t=>t!==null&&typeof t=="object",Ra=t=>Pe(t)&&Re(t.then)&&Re(t.catch),Pa=Object.prototype.toString,Nt=t=>Pa.call(t),ja=t=>Nt(t).slice(8,-1),Va=t=>Nt(t)==="[object Object]",mn=t=>$a(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,tt=(t,e)=>!Object.is(t,e),La=t=>{const e=parseFloat(t);return isNaN(e)?t:e};let Ua;function Wa(t,e=Ua){e&&e.active&&e.effects.push(t)}const hn=t=>{const e=new Set(t);return e.w=0,e.n=0,e},hr=t=>(t.w&me)>0,gr=t=>(t.n&me)>0,Za=({deps:t})=>{if(t.length)for(let e=0;e<t.length;e++)t[e].w|=me},Ha=t=>{const{deps:e}=t;if(e.length){let n=0;for(let r=0;r<e.length;r++){const s=e[r];hr(s)&&!gr(s)?s.delete(t):e[n++]=s,s.w&=~me,s.n&=~me}e.length=n}},gn=new WeakMap;let nt=0,me=1;const pn=30;let Q;const Oe=Symbol(""),yn=Symbol("");class pr{constructor(e,n=null,r){this.fn=e,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,Wa(this,r)}run(){if(!this.active)return this.fn();let e=Q,n=he;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=Q,Q=this,he=!0,me=1<<++nt,nt<=pn?Za(this):yr(this),this.fn()}finally{nt<=pn&&Ha(this),me=1<<--nt,Q=this.parent,he=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Q===this?this.deferStop=!0:this.active&&(yr(this),this.onStop&&this.onStop(),this.active=!1)}}function yr(t){const{deps:e}=t;if(e.length){for(let n=0;n<e.length;n++)e[n].delete(t);e.length=0}}let he=!0;const wr=[];function za(){wr.push(he),he=!1}function qa(){const t=wr.pop();he=t===void 0?!0:t}function X(t,e,n){if(he&&Q){let r=gn.get(t);r||gn.set(t,r=new Map);let s=r.get(n);s||r.set(n,s=hn()),br(s)}}function br(t,e){let n=!1;nt<=pn?gr(t)||(t.n|=me,n=!hr(t)):n=!t.has(Q),n&&(t.add(Q),Q.deps.push(t))}function ge(t,e,n,r,s,i){const a=gn.get(t);if(!a)return;let o=[];if(e==="clear")o=[...a.values()];else if(n==="length"&&z(t)){const l=La(r);a.forEach((u,f)=>{(f==="length"||f>=l)&&o.push(u)})}else switch(n!==void 0&&o.push(a.get(n)),e){case"add":z(t)?mn(n)&&o.push(a.get("length")):(o.push(a.get(Oe)),et(t)&&o.push(a.get(yn)));break;case"delete":z(t)||(o.push(a.get(Oe)),et(t)&&o.push(a.get(yn)));break;case"set":et(t)&&o.push(a.get(Oe));break}if(o.length===1)o[0]&&wn(o[0]);else{const l=[];for(const u of o)u&&l.push(...u);wn(hn(l))}}function wn(t,e){const n=z(t)?t:[...t];for(const r of n)r.computed&&vr(r);for(const r of n)r.computed||vr(r)}function vr(t,e){(t!==Q||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}const Ba=ka("__proto__,__v_isRef,__isVue"),Ar=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(dn)),Ga=Sr(),Ja=Sr(!0),Tr=Ya();function Ya(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...n){const r=N(this);for(let i=0,a=this.length;i<a;i++)X(r,"get",i+"");const s=r[e](...n);return s===-1||s===!1?r[e](...n.map(N)):s}}),["push","pop","shift","unshift","splice"].forEach(e=>{t[e]=function(...n){za();const r=N(this)[e].apply(this,n);return qa(),r}}),t}function Sr(t=!1,e=!1){return function(r,s,i){if(s==="__v_isReactive")return!t;if(s==="__v_isReadonly")return t;if(s==="__v_isShallow")return e;if(s==="__v_raw"&&i===(t?e?mo:Nr:e?fo:kr).get(r))return r;const a=z(r);if(!t&&a&&kt(Tr,s))return Reflect.get(Tr,s,i);const o=Reflect.get(r,s,i);return(dn(s)?Ar.has(s):Ba(s))||(t||X(r,"get",s),e)?o:ie(o)?a&&mn(s)?o:o.value:Pe(o)?t?_r(o):vn(o):o}}const Ka=Qa();function Qa(t=!1){return function(n,r,s,i){let a=n[r];if(rt(a)&&ie(a)&&!ie(s))return!1;if(!t&&(!jt(s)&&!rt(s)&&(a=N(a),s=N(s)),!z(n)&&ie(a)&&!ie(s)))return a.value=s,!0;const o=z(n)&&mn(r)?Number(r)<n.length:kt(n,r),l=Reflect.set(n,r,s,i);return n===N(i)&&(o?tt(s,a)&&ge(n,"set",r,s):ge(n,"add",r,s)),l}}function Xa(t,e){const n=kt(t,e);t[e];const r=Reflect.deleteProperty(t,e);return r&&n&&ge(t,"delete",e,void 0),r}function eo(t,e){const n=Reflect.has(t,e);return(!dn(e)||!Ar.has(e))&&X(t,"has",e),n}function to(t){return X(t,"iterate",z(t)?"length":Oe),Reflect.ownKeys(t)}const no={get:Ga,set:Ka,deleteProperty:Xa,has:eo,ownKeys:to},ro={get:Ja,set(t,e){return!0},deleteProperty(t,e){return!0}},bn=t=>t,_t=t=>Reflect.getPrototypeOf(t);function Dt(t,e,n=!1,r=!1){t=t.__v_raw;const s=N(t),i=N(e);n||(e!==i&&X(s,"get",e),X(s,"get",i));const{has:a}=_t(s),o=r?bn:n?An:st;if(a.call(s,e))return o(t.get(e));if(a.call(s,i))return o(t.get(i));t!==s&&t.get(e)}function Ct(t,e=!1){const n=this.__v_raw,r=N(n),s=N(t);return e||(t!==s&&X(r,"has",t),X(r,"has",s)),t===s?n.has(t):n.has(t)||n.has(s)}function Ft(t,e=!1){return t=t.__v_raw,!e&&X(N(t),"iterate",Oe),Reflect.get(t,"size",t)}function xr(t){t=N(t);const e=N(this);return _t(e).has.call(e,t)||(e.add(t),ge(e,"add",t,t)),this}function Or(t,e){e=N(e);const n=N(this),{has:r,get:s}=_t(n);let i=r.call(n,t);i||(t=N(t),i=r.call(n,t));const a=s.call(n,t);return n.set(t,e),i?tt(e,a)&&ge(n,"set",t,e):ge(n,"add",t,e),this}function Er(t){const e=N(this),{has:n,get:r}=_t(e);let s=n.call(e,t);s||(t=N(t),s=n.call(e,t)),r&&r.call(e,t);const i=e.delete(t);return s&&ge(e,"delete",t,void 0),i}function Mr(){const t=N(this),e=t.size!==0,n=t.clear();return e&&ge(t,"clear",void 0,void 0),n}function $t(t,e){return function(r,s){const i=this,a=i.__v_raw,o=N(a),l=e?bn:t?An:st;return!t&&X(o,"iterate",Oe),a.forEach((u,f)=>r.call(s,l(u),l(f),i))}}function Rt(t,e,n){return function(...r){const s=this.__v_raw,i=N(s),a=et(i),o=t==="entries"||t===Symbol.iterator&&a,l=t==="keys"&&a,u=s[t](...r),f=n?bn:e?An:st;return!e&&X(i,"iterate",l?yn:Oe),{next(){const{value:g,done:d}=u.next();return d?{value:g,done:d}:{value:o?[f(g[0]),f(g[1])]:f(g),done:d}},[Symbol.iterator](){return this}}}}function pe(t){return function(...e){return t==="delete"?!1:this}}function so(){const t={get(i){return Dt(this,i)},get size(){return Ft(this)},has:Ct,add:xr,set:Or,delete:Er,clear:Mr,forEach:$t(!1,!1)},e={get(i){return Dt(this,i,!1,!0)},get size(){return Ft(this)},has:Ct,add:xr,set:Or,delete:Er,clear:Mr,forEach:$t(!1,!0)},n={get(i){return Dt(this,i,!0)},get size(){return Ft(this,!0)},has(i){return Ct.call(this,i,!0)},add:pe("add"),set:pe("set"),delete:pe("delete"),clear:pe("clear"),forEach:$t(!0,!1)},r={get(i){return Dt(this,i,!0,!0)},get size(){return Ft(this,!0)},has(i){return Ct.call(this,i,!0)},add:pe("add"),set:pe("set"),delete:pe("delete"),clear:pe("clear"),forEach:$t(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{t[i]=Rt(i,!1,!1),n[i]=Rt(i,!0,!1),e[i]=Rt(i,!1,!0),r[i]=Rt(i,!0,!0)}),[t,n,e,r]}const[io,ao,oo,lo]=so();function Ir(t,e){const n=e?t?lo:oo:t?ao:io;return(r,s,i)=>s==="__v_isReactive"?!t:s==="__v_isReadonly"?t:s==="__v_raw"?r:Reflect.get(kt(n,s)&&s in r?n:r,s,i)}const uo={get:Ir(!1,!1)},co={get:Ir(!0,!1)},kr=new WeakMap,fo=new WeakMap,Nr=new WeakMap,mo=new WeakMap;function ho(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function go(t){return t.__v_skip||!Object.isExtensible(t)?0:ho(ja(t))}function vn(t){return rt(t)?t:Dr(t,!1,no,uo,kr)}function _r(t){return Dr(t,!0,ro,co,Nr)}function Dr(t,e,n,r,s){if(!Pe(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const i=s.get(t);if(i)return i;const a=go(t);if(a===0)return t;const o=new Proxy(t,a===2?r:n);return s.set(t,o),o}function Pt(t){return rt(t)?Pt(t.__v_raw):!!(t&&t.__v_isReactive)}function rt(t){return!!(t&&t.__v_isReadonly)}function jt(t){return!!(t&&t.__v_isShallow)}function N(t){const e=t&&t.__v_raw;return e?N(e):t}const st=t=>Pe(t)?vn(t):t,An=t=>Pe(t)?_r(t):t;function Cr(t){he&&Q&&(t=N(t),br(t.dep||(t.dep=hn())))}function Fr(t,e){t=N(t),t.dep&&wn(t.dep)}function ie(t){return!!(t&&t.__v_isRef===!0)}function Tn(t){return po(t,!1)}function po(t,e){return ie(t)?t:new yo(t,e)}class yo{constructor(e,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?e:N(e),this._value=n?e:st(e)}get value(){return Cr(this),this._value}set value(e){const n=this.__v_isShallow||jt(e)||rt(e);e=n?e:N(e),tt(e,this._rawValue)&&(this._rawValue=e,this._value=n?e:st(e),Fr(this))}}function le(t){return ie(t)?t.value:t}var $r;class wo{constructor(e,n,r,s){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[$r]=!1,this._dirty=!0,this.effect=new pr(e,()=>{this._dirty||(this._dirty=!0,Fr(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=r}get value(){const e=N(this);return Cr(e),(e._dirty||!e._cacheable)&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}$r="__v_isReadonly";function bo(t,e,n=!1){let r,s;const i=Re(t);return i?(r=t,s=Xe):(r=t.get,s=t.set),new wo(r,s,i||!s,n)}function je(t,e,n,r){let s;try{s=r?t(...r):t()}catch(i){Rr(i,e,n)}return s}function Vt(t,e,n,r){if(Re(t)){const i=je(t,e,n,r);return i&&Ra(i)&&i.catch(a=>{Rr(a,e,n)}),i}const s=[];for(let i=0;i<t.length;i++)s.push(Vt(t[i],e,n,r));return s}function Rr(t,e,n,r=!0){const s=e?e.vnode:null;if(e){let i=e.parent;const a=e.proxy,o=n;for(;i;){const u=i.ec;if(u){for(let f=0;f<u.length;f++)if(u[f](t,a,o)===!1)return}i=i.parent}const l=e.appContext.config.errorHandler;if(l){je(l,null,10,[t,a,o]);return}}vo(t,n,s,r)}function vo(t,e,n,r=!0){console.error(t)}let Lt=!1,Sn=!1;const ee=[];let ye=0;const Ve=[];let ue=null,Ee=0;const Pr=Promise.resolve();let xn=null;function it(t){const e=xn||Pr;return t?e.then(this?t.bind(this):t):e}function Ao(t){let e=ye+1,n=ee.length;for(;e<n;){const r=e+n>>>1;at(ee[r])<t?e=r+1:n=r}return e}function To(t){(!ee.length||!ee.includes(t,Lt&&t.allowRecurse?ye+1:ye))&&(t.id==null?ee.push(t):ee.splice(Ao(t.id),0,t),jr())}function jr(){!Lt&&!Sn&&(Sn=!0,xn=Pr.then(Vr))}function So(t){z(t)?Ve.push(...t):(!ue||!ue.includes(t,t.allowRecurse?Ee+1:Ee))&&Ve.push(t),jr()}function xo(t){if(Ve.length){const e=[...new Set(Ve)];if(Ve.length=0,ue){ue.push(...e);return}for(ue=e,ue.sort((n,r)=>at(n)-at(r)),Ee=0;Ee<ue.length;Ee++)ue[Ee]();ue=null,Ee=0}}const at=t=>t.id==null?1/0:t.id,Oo=(t,e)=>{const n=at(t)-at(e);if(n===0){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return n};function Vr(t){Sn=!1,Lt=!0,ee.sort(Oo);const e=Xe;try{for(ye=0;ye<ee.length;ye++){const n=ee[ye];n&&n.active!==!1&&je(n,null,14)}}finally{ye=0,ee.length=0,xo(),Lt=!1,xn=null,(ee.length||Ve.length)&&Vr()}}function Eo(t,e){e&&e.pendingBranch?z(t)?e.effects.push(...t):e.effects.push(t):So(t)}function Zd(t,e,n=!1){}const Ut={};function On(t,e,n){return Mo(t,e,n)}function Mo(t,e,{immediate:n,deep:r,flush:s,onTrack:i,onTrigger:a}=Na){const o=ko;let l,u=!1,f=!1;if(ie(t)?(l=()=>t.value,u=jt(t)):Pt(t)?(l=()=>t,r=!0):z(t)?(f=!0,u=t.some(A=>Pt(A)||jt(A)),l=()=>t.map(A=>{if(ie(A))return A.value;if(Pt(A))return Le(A);if(Re(A))return je(A,o,2)})):Re(t)?e?l=()=>je(t,o,2):l=()=>{if(!(o&&o.isUnmounted))return g&&g(),Vt(t,o,3,[d])}:l=Xe,e&&r){const A=l;l=()=>Le(A())}let g,d=A=>{g=x.onStop=()=>{je(A,o,4)}},c;if(Ur)if(d=Xe,e?n&&Vt(e,o,3,[l(),f?[]:void 0,d]):l(),s==="sync"){const A=_o();c=A.__watcherHandles||(A.__watcherHandles=[])}else return Xe;let h=f?new Array(t.length).fill(Ut):Ut;const b=()=>{if(x.active)if(e){const A=x.run();(r||u||(f?A.some((U,J)=>tt(U,h[J])):tt(A,h)))&&(g&&g(),Vt(e,o,3,[A,h===Ut?void 0:f&&h[0]===Ut?[]:h,d]),h=A)}else x.run()};b.allowRecurse=!!e;let y;s==="sync"?y=b:s==="post"?y=()=>Lr(b,o&&o.suspense):(b.pre=!0,o&&(b.id=o.uid),y=()=>To(b));const x=new pr(l,y);e?n?b():h=x.run():s==="post"?Lr(x.run.bind(x),o&&o.suspense):x.run();const E=()=>{x.stop(),o&&o.scope&&Da(o.scope.effects,x)};return c&&c.push(E),E}function Le(t,e){if(!Pe(t)||t.__v_skip||(e=e||new Set,e.has(t)))return t;if(e.add(t),ie(t))Le(t.value,e);else if(z(t))for(let n=0;n<t.length;n++)Le(t[n],e);else if(Fa(t)||et(t))t.forEach(n=>{Le(n,e)});else if(Va(t))for(const n in t)Le(t[n],e);return t}function Io(){return{app:null,config:{isNativeTag:_a,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}const Lr=Eo;Io();let ko=null,Ur=!1;const No=(t,e)=>bo(t,e,Ur),_o=()=>void 0;var Wr;typeof window<"u"&&((Wr=window==null?void 0:window.navigator)!=null&&Wr.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Do(t,e){function n(...r){t(()=>e.apply(this,r),{fn:e,thisArg:this,args:r})}return n}const Zr=t=>t();function Co(t=Zr){const e=Tn(!0);function n(){e.value=!1}function r(){e.value=!0}return{isActive:e,pause:n,resume:r,eventFilter:(...i)=>{e.value&&t(...i)}}}var Hr=Object.getOwnPropertySymbols,Fo=Object.prototype.hasOwnProperty,$o=Object.prototype.propertyIsEnumerable,Ro=(t,e)=>{var n={};for(var r in t)Fo.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Hr)for(var r of Hr(t))e.indexOf(r)<0&&$o.call(t,r)&&(n[r]=t[r]);return n};function Po(t,e,n={}){const r=n,{eventFilter:s=Zr}=r,i=Ro(r,["eventFilter"]);return On(t,Do(s,e),i)}var jo=Object.defineProperty,Vo=Object.defineProperties,Lo=Object.getOwnPropertyDescriptors,Wt=Object.getOwnPropertySymbols,zr=Object.prototype.hasOwnProperty,qr=Object.prototype.propertyIsEnumerable,Br=(t,e,n)=>e in t?jo(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Uo=(t,e)=>{for(var n in e||(e={}))zr.call(e,n)&&Br(t,n,e[n]);if(Wt)for(var n of Wt(e))qr.call(e,n)&&Br(t,n,e[n]);return t},Wo=(t,e)=>Vo(t,Lo(e)),Zo=(t,e)=>{var n={};for(var r in t)zr.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Wt)for(var r of Wt(t))e.indexOf(r)<0&&qr.call(t,r)&&(n[r]=t[r]);return n};function Gr(t,e,n={}){const r=n,{eventFilter:s}=r,i=Zo(r,["eventFilter"]),{eventFilter:a,pause:o,resume:l,isActive:u}=Co(s);return{stop:Po(t,e,Wo(Uo({},i),{eventFilter:a})),pause:o,resume:l,isActive:u}}var Ho=typeof global=="object"&&global&&global.Object===Object&&global;const Jr=Ho;var zo=typeof self=="object"&&self&&self.Object===Object&&self,qo=Jr||zo||Function("return this")();const we=qo;var Bo=we.Symbol;const Ue=Bo;var Yr=Object.prototype,Go=Yr.hasOwnProperty,Jo=Yr.toString,ot=Ue?Ue.toStringTag:void 0;function Yo(t){var e=Go.call(t,ot),n=t[ot];try{t[ot]=void 0;var r=!0}catch{}var s=Jo.call(t);return r&&(e?t[ot]=n:delete t[ot]),s}var Ko=Object.prototype,Qo=Ko.toString;function Xo(t){return Qo.call(t)}var el="[object Null]",tl="[object Undefined]",Kr=Ue?Ue.toStringTag:void 0;function Me(t){return t==null?t===void 0?tl:el:Kr&&Kr in Object(t)?Yo(t):Xo(t)}function lt(t){return t!=null&&typeof t=="object"}var nl="[object Symbol]";function Qr(t){return typeof t=="symbol"||lt(t)&&Me(t)==nl}function rl(t,e){for(var n=-1,r=t==null?0:t.length,s=Array(r);++n<r;)s[n]=e(t[n],n,t);return s}var sl=Array.isArray;const En=sl;var il=1/0,Xr=Ue?Ue.prototype:void 0,es=Xr?Xr.toString:void 0;function Mn(t){if(typeof t=="string")return t;if(En(t))return rl(t,Mn)+"";if(Qr(t))return es?es.call(t):"";var e=t+"";return e=="0"&&1/t==-il?"-0":e}var al=/\s/;function ol(t){for(var e=t.length;e--&&al.test(t.charAt(e)););return e}var ll=/^\s+/;function ts(t){return t&&t.slice(0,ol(t)+1).replace(ll,"")}function Zt(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var ns=0/0,ul=/^[-+]0x[0-9a-f]+$/i,cl=/^0b[01]+$/i,fl=/^0o[0-7]+$/i,dl=parseInt;function ml(t){if(typeof t=="number")return t;if(Qr(t))return ns;if(Zt(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=Zt(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=ts(t);var n=cl.test(t);return n||fl.test(t)?dl(t.slice(2),n?2:8):ul.test(t)?ns:+t}var hl="[object AsyncFunction]",gl="[object Function]",pl="[object GeneratorFunction]",yl="[object Proxy]";function rs(t){if(!Zt(t))return!1;var e=Me(t);return e==gl||e==pl||e==hl||e==yl}var wl=we["__core-js_shared__"];const In=wl;var ss=function(){var t=/[^.]+$/.exec(In&&In.keys&&In.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function bl(t){return!!ss&&ss in t}var vl=Function.prototype,Al=vl.toString;function Ie(t){if(t!=null){try{return Al.call(t)}catch{}try{return t+""}catch{}}return""}var Tl=/[\\^$.*+?()[\]{}|]/g,Sl=/^\[object .+?Constructor\]$/,xl=Function.prototype,Ol=Object.prototype,El=xl.toString,Ml=Ol.hasOwnProperty,Il=RegExp("^"+El.call(Ml).replace(Tl,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function kl(t){if(!Zt(t)||bl(t))return!1;var e=rs(t)?Il:Sl;return e.test(Ie(t))}function Nl(t,e){return t==null?void 0:t[e]}function ut(t,e){var n=Nl(t,e);return kl(n)?n:void 0}var _l=ut(we,"WeakMap");const kn=_l;function Dl(t,e,n,r){for(var s=t.length,i=n+(r?1:-1);r?i--:++i<s;)if(e(t[i],i,t))return i;return-1}function Cl(t){return t!==t}function Fl(t,e,n){for(var r=n-1,s=t.length;++r<s;)if(t[r]===e)return r;return-1}function is(t,e,n){return e===e?Fl(t,e,n):Dl(t,Cl,n)}var $l=9007199254740991;function as(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=$l}function Rl(t){return t!=null&&as(t.length)&&!rs(t)}var Pl=Object.prototype;function os(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||Pl;return t===n}var jl="[object Arguments]";function ls(t){return lt(t)&&Me(t)==jl}var us=Object.prototype,Vl=us.hasOwnProperty,Ll=us.propertyIsEnumerable,Ul=ls(function(){return arguments}())?ls:function(t){return lt(t)&&Vl.call(t,"callee")&&!Ll.call(t,"callee")};const Wl=Ul;function Zl(){return!1}var cs=typeof exports=="object"&&exports&&!exports.nodeType&&exports,fs=cs&&typeof module=="object"&&module&&!module.nodeType&&module,Hl=fs&&fs.exports===cs,ds=Hl?we.Buffer:void 0,zl=ds?ds.isBuffer:void 0,ql=zl||Zl;const Bl=ql;var Gl="[object Arguments]",Jl="[object Array]",Yl="[object Boolean]",Kl="[object Date]",Ql="[object Error]",Xl="[object Function]",eu="[object Map]",tu="[object Number]",nu="[object Object]",ru="[object RegExp]",su="[object Set]",iu="[object String]",au="[object WeakMap]",ou="[object ArrayBuffer]",lu="[object DataView]",uu="[object Float32Array]",cu="[object Float64Array]",fu="[object Int8Array]",du="[object Int16Array]",mu="[object Int32Array]",hu="[object Uint8Array]",gu="[object Uint8ClampedArray]",pu="[object Uint16Array]",yu="[object Uint32Array]",_={};_[uu]=_[cu]=_[fu]=_[du]=_[mu]=_[hu]=_[gu]=_[pu]=_[yu]=!0,_[Gl]=_[Jl]=_[ou]=_[Yl]=_[lu]=_[Kl]=_[Ql]=_[Xl]=_[eu]=_[tu]=_[nu]=_[ru]=_[su]=_[iu]=_[au]=!1;function wu(t){return lt(t)&&as(t.length)&&!!_[Me(t)]}function bu(t){return function(e){return t(e)}}var ms=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ct=ms&&typeof module=="object"&&module&&!module.nodeType&&module,vu=ct&&ct.exports===ms,Nn=vu&&Jr.process,Au=function(){try{var t=ct&&ct.require&&ct.require("util").types;return t||Nn&&Nn.binding&&Nn.binding("util")}catch{}}();const hs=Au;var gs=hs&&hs.isTypedArray,Tu=gs?bu(gs):wu;const Su=Tu;function xu(t,e){return function(n){return t(e(n))}}var Ou=xu(Object.keys,Object);const Eu=Ou;var Mu=Object.prototype,Iu=Mu.hasOwnProperty;function ku(t){if(!os(t))return Eu(t);var e=[];for(var n in Object(t))Iu.call(t,n)&&n!="constructor"&&e.push(n);return e}var Nu=ut(we,"Map");const _n=Nu;function _u(t){return t==null?"":Mn(t)}function Du(t,e,n){var r=-1,s=t.length;e<0&&(e=-e>s?0:s+e),n=n>s?s:n,n<0&&(n+=s),s=e>n?0:n-e>>>0,e>>>=0;for(var i=Array(s);++r<s;)i[r]=t[r+e];return i}function Cu(t,e,n){var r=t.length;return n=n===void 0?r:n,!e&&n>=r?t:Du(t,e,n)}var Fu="\\ud800-\\udfff",$u="\\u0300-\\u036f",Ru="\\ufe20-\\ufe2f",Pu="\\u20d0-\\u20ff",ju=$u+Ru+Pu,Vu="\\ufe0e\\ufe0f",Lu="\\u200d",Uu=RegExp("["+Lu+Fu+ju+Vu+"]");function Wu(t){return Uu.test(t)}function Zu(t){return t.split("")}var ps="\\ud800-\\udfff",Hu="\\u0300-\\u036f",zu="\\ufe20-\\ufe2f",qu="\\u20d0-\\u20ff",Bu=Hu+zu+qu,Gu="\\ufe0e\\ufe0f",Ju="["+ps+"]",Dn="["+Bu+"]",Cn="\\ud83c[\\udffb-\\udfff]",Yu="(?:"+Dn+"|"+Cn+")",ys="[^"+ps+"]",ws="(?:\\ud83c[\\udde6-\\uddff]){2}",bs="[\\ud800-\\udbff][\\udc00-\\udfff]",Ku="\\u200d",vs=Yu+"?",As="["+Gu+"]?",Qu="(?:"+Ku+"(?:"+[ys,ws,bs].join("|")+")"+As+vs+")*",Xu=As+vs+Qu,ec="(?:"+[ys+Dn+"?",Dn,ws,bs,Ju].join("|")+")",tc=RegExp(Cn+"(?="+Cn+")|"+ec+Xu,"g");function nc(t){return t.match(tc)||[]}function Ts(t){return Wu(t)?nc(t):Zu(t)}var rc=ut(we,"DataView");const Fn=rc;var sc=ut(we,"Promise");const $n=sc;var ic=ut(we,"Set");const Rn=ic;var Ss="[object Map]",ac="[object Object]",xs="[object Promise]",Os="[object Set]",Es="[object WeakMap]",Ms="[object DataView]",oc=Ie(Fn),lc=Ie(_n),uc=Ie($n),cc=Ie(Rn),fc=Ie(kn),ke=Me;(Fn&&ke(new Fn(new ArrayBuffer(1)))!=Ms||_n&&ke(new _n)!=Ss||$n&&ke($n.resolve())!=xs||Rn&&ke(new Rn)!=Os||kn&&ke(new kn)!=Es)&&(ke=function(t){var e=Me(t),n=e==ac?t.constructor:void 0,r=n?Ie(n):"";if(r)switch(r){case oc:return Ms;case lc:return Ss;case uc:return xs;case cc:return Os;case fc:return Es}return e});const dc=ke;var mc="[object String]";function Ht(t){return typeof t=="string"||!En(t)&<(t)&&Me(t)==mc}var hc="[object Map]",gc="[object Set]",pc=Object.prototype,yc=pc.hasOwnProperty;function wc(t){if(t==null)return!0;if(Rl(t)&&(En(t)||typeof t=="string"||typeof t.splice=="function"||Bl(t)||Su(t)||Wl(t)))return!t.length;var e=dc(t);if(e==hc||e==gc)return!t.size;if(os(t))return!ku(t).length;for(var n in t)if(yc.call(t,n))return!1;return!0}function Is(t){return t===null}function bc(t,e){for(var n=t.length;n--&&is(e,t[n],0)>-1;);return n}function vc(t,e){for(var n=-1,r=t.length;++n<r&&is(e,t[n],0)>-1;);return n}function Ac(t,e,n){if(t=_u(t),t&&(n||e===void 0))return ts(t);if(!t||!(e=Mn(e)))return t;var r=Ts(t),s=Ts(e),i=vc(r,s),a=bc(r,s)+1;return Cu(r,i,a).join("")}function Tc(t,e,{transform:n,listen:r,onInit:s}={}){var g;const i=vn(new Map(e));i.read=f,i.write=l;const{pause:a,resume:o}=Gr(i,l,{deep:!0,flush:"post"});function l(){const d=Array.from(i.entries());return chrome.storage.local.set({[t]:JSON.stringify(d)})}function u(d){const c=typeof n=="function"?d.map(n):d;i.clear();for(const[h,b]of c)i.set(h,b)}async function f(d){a();const c=await chrome.storage.local.get([t]);if(c&&Ht(c[t])){const h=JSON.parse(c[t]);u(h)}await it(),o(),await it(),d==null||d(i)}return r&&((g=chrome==null?void 0:chrome.runtime)!=null&&g.id)&&chrome.storage.onChanged.addListener(d=>{if(t in d&&d[t].newValue){a();const c=JSON.parse(d[t].newValue);u(c),o()}}),f(s),i}function Sc({listen:t=!1,onInit:e}={}){return Tc("alerts",[],{listen:t,onInit:e})}function xc({listen:t=!1,...e}={}){return new Promise(n=>Sc({listen:t,onInit:n,...e}))}function ks(t,e,{asJson:n=!0,transform:r,listen:s,onInit:i}={}){var g;const a=Tn(e);a.read=f,a.write=u;const{pause:o,resume:l}=Gr(a,u,{deep:!0,flush:"post"});function u(){const d=le(a);return chrome.storage.local.set({[t]:n?JSON.stringify(d):d})}async function f(d){o();const c=await chrome.storage.local.get([t]);if(c&&Ht(c[t])){const h=n?JSON.parse(c[t]):c[t];a.value=typeof r=="function"?r(h):h}await it(),l(),await it(),d==null||d(a)}return s&&((g=chrome==null?void 0:chrome.runtime)!=null&&g.id)&&chrome.storage.onChanged.addListener(d=>{if(t in d&&d[t].newValue&&Ht(d[t].newValue)){o();const c=d[t].newValue,h=n?JSON.parse(c):c;a.value=typeof r=="function"?r(h):h,it(l)}}),f(i),a}function Oc({listen:t=!1,...e}={}){return ks("jobs",[],{listen:t,...e})}function Ns({listen:t=!1,...e}={}){return new Promise(n=>Oc({listen:t,onInit:n,...e}))}const _s=[{label:"Accounting & Consulting",value:"531770282584862721",options:[{label:"All - Accounting & Consulting",value:"531770282584862721"},{label:"Accounting & Bookkeeping",value:"531770282601639943"},{label:"Financial Planning",value:"531770282601639945"},{label:"Management Consulting & Analysis",value:"531770282601639944"},{label:"Other - Accounting & Consulting",value:"531770282601639947"},{label:"Personal & Professional Coaching",value:"1534904461833879552"},{label:"Recruiting & Human Resources",value:"531770282601639946"}]},{label:"Admin Support",value:"531770282580668416",options:[{label:"All - Admin Support",value:"531770282580668416"},{label:"Data Entry & Transcription Services",value:"531770282584862724"},{label:"Market Research & Product Reviews",value:"531770282584862726"},{label:"Project Management",value:"531770282584862728"},{label:"Virtual Assistance",value:"531770282584862725"}]},{label:"Customer Service",value:"531770282580668417",options:[{label:"All - Customer Service",value:"531770282580668417"},{label:"Community Management & Tagging",value:"1484275072572772352"},{label:"Customer Service & Tech Support",value:"531770282584862730"}]},{label:"Data Science & Analytics",value:"531770282580668420",options:[{label:"All - Data Science & Analytics",value:"531770282580668420"},{label:"AI & Machine Learning",value:"531770282593251329"},{label:"Data Analysis & Testing",value:"531770282593251330"},{label:"Data Design & Visualization",value:"531770282589057039"},{label:"Data Extraction/ETL",value:"531770282593251331"},{label:"Data Mining & Management",value:"531770282589057038"}]},{label:"Design & Creative",value:"531770282580668421",options:[{label:"All - Design & Creative",value:"531770282580668421"},{label:"Art & Illustration",value:"531770282593251335"},{label:"Audio & Music Production",value:"531770282593251341"},{label:"Branding & Logo Design",value:"1044578476142100480"},{label:"Graphic, Editorial & Presentation Design",value:"531770282593251334"},{label:"NFT, AR/VR & Game Art",value:"1356688560628174848"},{label:"Performing Arts",value:"1356688565288046592"},{label:"Photography",value:"531770282593251340"},{label:"Product Design",value:"531770282601639953"},{label:"Video & Animation",value:"1356688570056970240"}]},{label:"Engineering & Architecture",value:"531770282584862722",options:[{label:"All - Engineering & Architecture",value:"531770282584862722"},{label:"3D Modeling & CAD",value:"531770282601639948"},{label:"Building & Landscape Architecture",value:"531770282601639949"},{label:"Chemical Engineering",value:"531770282605834240"},{label:"Civil & Structural Engineering",value:"531770282601639950"},{label:"Contract Manufacturing",value:"531770282605834241"},{label:"Electrical & Electronic Engineering",value:"531770282601639951"},{label:"Energy & Mechanical Engineering",value:"531770282601639952"},{label:"Interior & Trade Show Design",value:"531770282605834242"},{label:"Physical Sciences",value:"1301900647896092672"}]},{label:"IT & Networking",value:"531770282580668419",options:[{label:"All - IT & Networking",value:"531770282580668419"},{label:"Database Management & Administration",value:"531770282589057033"},{label:"DevOps & Solution Architecture",value:"531770282589057037"},{label:"ERP/CRM Software",value:"531770282589057034"},{label:"Information Security & Compliance",value:"531770282589057036"},{label:"Network & System Administration",value:"531770282589057035"}]},{label:"Legal",value:"531770282584862723",options:[{label:"All - Legal",value:"531770282584862723"},{label:"Corporate & Contract Law",value:"531770282605834246"},{label:"Finance & Tax Law",value:"531770283696353280"},{label:"International & Immigration Law",value:"1484275156546932736"},{label:"Public Law",value:"1484275408410693632"}]},{label:"Sales & Marketing",value:"531770282580668422",options:[{label:"All - Sales & Marketing",value:"531770282580668422"},{label:"Digital Marketing",value:"531770282597445636"},{label:"Lead Generation & Telemarketing",value:"531770282597445634"},{label:"Marketing, PR & Brand Strategy",value:"531770282593251343"}]},{label:"Translation",value:"531770282584862720",options:[{label:"All - Translation",value:"531770282584862720"},{label:"Language Tutoring & Interpretation",value:"1534904461842268160"},{label:"Translation & Localization Services",value:"531770282601639939"}]},{label:"Web, Mobile & Software Dev",value:"531770282580668418",options:[{label:"All - Web, Mobile & Software Dev",value:"531770282580668418"},{label:"Blockchain, NFT & Cryptocurrency",value:"1517518458442309632"},{label:"Desktop Application Development",value:"531770282589057025"},{label:"Ecommerce Development",value:"531770282589057026"},{label:"Game Design & Development",value:"531770282589057027"},{label:"Mobile Development",value:"531770282589057024"},{label:"Other - Software Development",value:"531770282589057032"},{label:"Product Management",value:"531770282589057030"},{label:"QA Testing",value:"531770282589057031"},{label:"Scripts & Utilities",value:"531770282589057028"},{label:"Web & Mobile Design",value:"531770282589057029"},{label:"Web Development",value:"531770282584862733"}]},{label:"Writing",value:"531770282580668423",options:[{label:"All - Writing",value:"531770282580668423"},{label:"Content Writing",value:"1301900640421842944"},{label:"Editing & Proofreading Services",value:"531770282597445644"},{label:"Professional & Business Writing",value:"531770282597445646"},{label:"Sales & Marketing Copywriting",value:"1534904462131675136"}]}];function Ec(t,e){if(e.append("page","1"),e.append("per_page","10"),e.append("sort","recency"),t.include_keywords.length>0&&e.append("or_terms",t.include_keywords.map(Ac).filter(n=>!wc(n)).map(n=>`"${n}"`).join(",")),t.experience_level!=="Any"&&e.append("contractor_tier",Mc(t.experience_level)),t.pricing!=="Any"&&e.append("t",Ic(t.pricing)),t.payment_method!=="Any"&&e.append("payment_verified","1"),t.locations.length>0&&e.append("location",t.locations.join(",")),t.connects_to_apply!=="Any"&&e.append("connect_price",t.connects_to_apply),t.include_keywords.length>0&&e.append("keywords",t.include_keywords.join(",")),t.categories.length>0){const n=t.categories.filter(s=>_s.findIndex(i=>i.value===s)!==-1).filter(s=>!Is(s)),r=t.categories.filter(s=>!n.includes(s)).map(s=>{const i=_s.find(a=>a.options.findIndex(o=>o.value===s)!==-1);return i&&n.includes(i.value)?null:s}).filter(s=>!Is(s));n.length&&e.append("category2_uid",n.join(",")),r.length&&e.append("subcategory2_uid",r.join(","))}t.occupations.length&&e.append("occupation_uid",t.occupations.join(",")),e.append("q","")}function Mc(t){switch(t){case"Entry Level":return"1";case"Intermediate":return"2";case"Expert":return"3";default:return""}}function Ic(t){switch(t){case"Hourly":return"0";case"Fixed":return"1";default:return""}}class Ne extends Error{}class kc extends Ne{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class Nc extends Ne{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class _c extends Ne{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class ft extends Ne{}class Ds extends Ne{constructor(e){super(`Invalid unit ${e}`)}}class q extends Ne{}class be extends Ne{constructor(){super("Zone is an abstract class")}}const m="numeric",te="short",Z="long",Pn={year:m,month:m,day:m},Cs={year:m,month:te,day:m},Dc={year:m,month:te,day:m,weekday:te},Fs={year:m,month:Z,day:m},$s={year:m,month:Z,day:m,weekday:Z},Rs={hour:m,minute:m},Ps={hour:m,minute:m,second:m},js={hour:m,minute:m,second:m,timeZoneName:te},Vs={hour:m,minute:m,second:m,timeZoneName:Z},Ls={hour:m,minute:m,hourCycle:"h23"},Us={hour:m,minute:m,second:m,hourCycle:"h23"},Ws={hour:m,minute:m,second:m,hourCycle:"h23",timeZoneName:te},Zs={hour:m,minute:m,second:m,hourCycle:"h23",timeZoneName:Z},Hs={year:m,month:m,day:m,hour:m,minute:m},zs={year:m,month:m,day:m,hour:m,minute:m,second:m},qs={year:m,month:te,day:m,hour:m,minute:m},Bs={year:m,month:te,day:m,hour:m,minute:m,second:m},Cc={year:m,month:te,day:m,weekday:te,hour:m,minute:m},Gs={year:m,month:Z,day:m,hour:m,minute:m,timeZoneName:te},Js={year:m,month:Z,day:m,hour:m,minute:m,second:m,timeZoneName:te},Ys={year:m,month:Z,day:m,weekday:Z,hour:m,minute:m,timeZoneName:Z},Ks={year:m,month:Z,day:m,weekday:Z,hour:m,minute:m,second:m,timeZoneName:Z};class dt{get type(){throw new be}get name(){throw new be}get ianaName(){return this.name}get isUniversal(){throw new be}offsetName(e,n){throw new be}formatOffset(e,n){throw new be}offset(e){throw new be}equals(e){throw new be}get isValid(){throw new be}}let jn=null;class zt extends dt{static get instance(){return jn===null&&(jn=new zt),jn}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:n,locale:r}){return li(e,n,r)}formatOffset(e,n){return pt(this.offset(e),n)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}let qt={};function Fc(t){return qt[t]||(qt[t]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),qt[t]}const $c={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function Rc(t,e){const n=t.format(e).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,s,i,a,o,l,u,f]=r;return[a,s,i,o,l,u,f]}function Pc(t,e){const n=t.formatToParts(e),r=[];for(let s=0;s<n.length;s++){const{type:i,value:a}=n[s],o=$c[i];i==="era"?r[o]=a:S(o)||(r[o]=parseInt(a,10))}return r}let Bt={};class ce extends dt{static create(e){return Bt[e]||(Bt[e]=new ce(e)),Bt[e]}static resetCache(){Bt={},qt={}}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch{return!1}}constructor(e){super(),this.zoneName=e,this.valid=ce.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:n,locale:r}){return li(e,n,r,this.name)}formatOffset(e,n){return pt(this.offset(e),n)}offset(e){const n=new Date(e);if(isNaN(n))return NaN;const r=Fc(this.name);let[s,i,a,o,l,u,f]=r.formatToParts?Pc(r,n):Rc(r,n);o==="BC"&&(s=-Math.abs(s)+1);const d=qn({year:s,month:i,day:a,hour:l===24?0:l,minute:u,second:f,millisecond:0});let c=+n;const h=c%1e3;return c-=h>=0?h:1e3+h,(d-c)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let Qs={};function jc(t,e={}){const n=JSON.stringify([t,e]);let r=Qs[n];return r||(r=new Intl.ListFormat(t,e),Qs[n]=r),r}let Vn={};function Ln(t,e={}){const n=JSON.stringify([t,e]);let r=Vn[n];return r||(r=new Intl.DateTimeFormat(t,e),Vn[n]=r),r}let Un={};function Vc(t,e={}){const n=JSON.stringify([t,e]);let r=Un[n];return r||(r=new Intl.NumberFormat(t,e),Un[n]=r),r}let Wn={};function Lc(t,e={}){const{base:n,...r}=e,s=JSON.stringify([t,r]);let i=Wn[s];return i||(i=new Intl.RelativeTimeFormat(t,e),Wn[s]=i),i}let mt=null;function Uc(){return mt||(mt=new Intl.DateTimeFormat().resolvedOptions().locale,mt)}function Wc(t){const e=t.indexOf("-u-");if(e===-1)return[t];{let n;const r=t.substring(0,e);try{n=Ln(t).resolvedOptions()}catch{n=Ln(r).resolvedOptions()}const{numberingSystem:s,calendar:i}=n;return[r,s,i]}}function Zc(t,e,n){return(n||e)&&(t+="-u",n&&(t+=`-ca-${n}`),e&&(t+=`-nu-${e}`)),t}function Hc(t){const e=[];for(let n=1;n<=12;n++){const r=v.utc(2016,n,1);e.push(t(r))}return e}function zc(t){const e=[];for(let n=1;n<=7;n++){const r=v.utc(2016,11,13+n);e.push(t(r))}return e}function Gt(t,e,n,r,s){const i=t.listingMode(n);return i==="error"?null:i==="en"?r(e):s(e)}function qc(t){return t.numberingSystem&&t.numberingSystem!=="latn"?!1:t.numberingSystem==="latn"||!t.locale||t.locale.startsWith("en")||new Intl.DateTimeFormat(t.intl).resolvedOptions().numberingSystem==="latn"}class Bc{constructor(e,n,r){this.padTo=r.padTo||0,this.floor=r.floor||!1;const{padTo:s,floor:i,...a}=r;if(!n||Object.keys(a).length>0){const o={useGrouping:!1,...r};r.padTo>0&&(o.minimumIntegerDigits=r.padTo),this.inf=Vc(e,o)}}format(e){if(this.inf){const n=this.floor?Math.floor(e):e;return this.inf.format(n)}else{const n=this.floor?Math.floor(e):zn(e,3);return $(n,this.padTo)}}}class Gc{constructor(e,n,r){this.opts=r;let s;if(e.zone.isUniversal){const a=-1*(e.offset/60),o=a>=0?`Etc/GMT+${a}`:`Etc/GMT${a}`;e.offset!==0&&ce.create(o).valid?(s=o,this.dt=e):(s="UTC",r.timeZoneName?this.dt=e:this.dt=e.offset===0?e:v.fromMillis(e.ts+e.offset*60*1e3))}else e.zone.type==="system"?this.dt=e:(this.dt=e,s=e.zone.name);const i={...this.opts};s&&(i.timeZone=s),this.dtf=Ln(n,i)}format(){return this.dtf.format(this.dt.toJSDate())}formatToParts(){return this.dtf.formatToParts(this.dt.toJSDate())}resolvedOptions(){return this.dtf.resolvedOptions()}}class Jc{constructor(e,n,r){this.opts={style:"long",...r},!n&&ai()&&(this.rtf=Lc(e,r))}format(e,n){return this.rtf?this.rtf.format(e,n):mf(n,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,n){return this.rtf?this.rtf.formatToParts(e,n):[]}}class D{static fromOpts(e){return D.create(e.locale,e.numberingSystem,e.outputCalendar,e.defaultToEN)}static create(e,n,r,s=!1){const i=e||F.defaultLocale,a=i||(s?"en-US":Uc()),o=n||F.defaultNumberingSystem,l=r||F.defaultOutputCalendar;return new D(a,o,l,i)}static resetCache(){mt=null,Vn={},Un={},Wn={}}static fromObject({locale:e,numberingSystem:n,outputCalendar:r}={}){return D.create(e,n,r)}constructor(e,n,r,s){const[i,a,o]=Wc(e);this.locale=i,this.numberingSystem=n||a||null,this.outputCalendar=r||o||null,this.intl=Zc(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=s,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=qc(this)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),n=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&n?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:D.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,n=!1,r=!0){return Gt(this,e,r,fi,()=>{const s=n?{month:e,day:"numeric"}:{month:e},i=n?"format":"standalone";return this.monthsCache[i][e]||(this.monthsCache[i][e]=Hc(a=>this.extract(a,s,"month"))),this.monthsCache[i][e]})}weekdays(e,n=!1,r=!0){return Gt(this,e,r,hi,()=>{const s=n?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},i=n?"format":"standalone";return this.weekdaysCache[i][e]||(this.weekdaysCache[i][e]=zc(a=>this.extract(a,s,"weekday"))),this.weekdaysCache[i][e]})}meridiems(e=!0){return Gt(this,void 0,e,()=>gi,()=>{if(!this.meridiemCache){const n={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[v.utc(2016,11,13,9),v.utc(2016,11,13,19)].map(r=>this.extract(r,n,"dayperiod"))}return this.meridiemCache})}eras(e,n=!0){return Gt(this,e,n,pi,()=>{const r={era:e};return this.eraCache[e]||(this.eraCache[e]=[v.utc(-40,1,1),v.utc(2017,1,1)].map(s=>this.extract(s,r,"era"))),this.eraCache[e]})}extract(e,n,r){const s=this.dtFormatter(e,n),i=s.formatToParts(),a=i.find(o=>o.type.toLowerCase()===r);return a?a.value:null}numberFormatter(e={}){return new Bc(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,n={}){return new Gc(e,this.intl,n)}relFormatter(e={}){return new Jc(this.intl,this.isEnglish(),e)}listFormatter(e={}){return jc(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}}let Zn=null;class V extends dt{static get utcInstance(){return Zn===null&&(Zn=new V(0)),Zn}static instance(e){return e===0?V.utcInstance:new V(e)}static parseSpecifier(e){if(e){const n=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new V(Qt(n[1],n[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${pt(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${pt(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,n){return pt(this.fixed,n)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}}class Yc extends dt{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function ve(t,e){if(S(t)||t===null)return e;if(t instanceof dt)return t;if(Kc(t)){const n=t.toLowerCase();return n==="default"?e:n==="local"||n==="system"?zt.instance:n==="utc"||n==="gmt"?V.utcInstance:V.parseSpecifier(n)||ce.create(t)}else return _e(t)?V.instance(t):typeof t=="object"&&t.offset&&typeof t.offset=="number"?t:new Yc(t)}let Xs=()=>Date.now(),ei="system",ti=null,ni=null,ri=null,si=60,ii;class F{static get now(){return Xs}static set now(e){Xs=e}static set defaultZone(e){ei=e}static get defaultZone(){return ve(ei,zt.instance)}static get defaultLocale(){return ti}static set defaultLocale(e){ti=e}static get defaultNumberingSystem(){return ni}static set defaultNumberingSystem(e){ni=e}static get defaultOutputCalendar(){return ri}static set defaultOutputCalendar(e){ri=e}static get twoDigitCutoffYear(){return si}static set twoDigitCutoffYear(e){si=e%100}static get throwOnInvalid(){return ii}static set throwOnInvalid(e){ii=e}static resetCaches(){D.resetCache(),ce.resetCache()}}function S(t){return typeof t>"u"}function _e(t){return typeof t=="number"}function Jt(t){return typeof t=="number"&&t%1===0}function Kc(t){return typeof t=="string"}function Qc(t){return Object.prototype.toString.call(t)==="[object Date]"}function ai(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function Xc(t){return Array.isArray(t)?t:[t]}function oi(t,e,n){if(t.length!==0)return t.reduce((r,s)=>{const i=[e(s),s];return r&&n(r[0],i[0])===r[0]?r:i},null)[1]}function ef(t,e){return e.reduce((n,r)=>(n[r]=t[r],n),{})}function We(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function fe(t,e,n){return Jt(t)&&t>=e&&t<=n}function tf(t,e){return t-e*Math.floor(t/e)}function $(t,e=2){const n=t<0;let r;return n?r="-"+(""+-t).padStart(e,"0"):r=(""+t).padStart(e,"0"),r}function Ae(t){if(!(S(t)||t===null||t===""))return parseInt(t,10)}function De(t){if(!(S(t)||t===null||t===""))return parseFloat(t)}function Hn(t){if(!(S(t)||t===null||t==="")){const e=parseFloat("0."+t)*1e3;return Math.floor(e)}}function zn(t,e,n=!1){const r=10**e;return(n?Math.trunc:Math.round)(t*r)/r}function ht(t){return t%4===0&&(t%100!==0||t%400===0)}function gt(t){return ht(t)?366:365}function Yt(t,e){const n=tf(e-1,12)+1,r=t+(e-n)/12;return n===2?ht(r)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function qn(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(e.getUTCFullYear()-1900)),+e}function Kt(t){const e=(t+Math.floor(t/4)-Math.floor(t/100)+Math.floor(t/400))%7,n=t-1,r=(n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400))%7;return e===4||r===3?53:52}function Bn(t){return t>99?t:t>F.twoDigitCutoffYear?1900+t:2e3+t}function li(t,e,n,r=null){const s=new Date(t),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(i.timeZone=r);const a={timeZoneName:e,...i},o=new Intl.DateTimeFormat(n,a).formatToParts(s).find(l=>l.type.toLowerCase()==="timezonename");return o?o.value:null}function Qt(t,e){let n=parseInt(t,10);Number.isNaN(n)&&(n=0);const r=parseInt(e,10)||0,s=n<0||Object.is(n,-0)?-r:r;return n*60+s}function ui(t){const e=Number(t);if(typeof t=="boolean"||t===""||Number.isNaN(e))throw new q(`Invalid unit value ${t}`);return e}function Xt(t,e){const n={};for(const r in t)if(We(t,r)){const s=t[r];if(s==null)continue;n[e(r)]=ui(s)}return n}function pt(t,e){const n=Math.trunc(Math.abs(t/60)),r=Math.trunc(Math.abs(t%60)),s=t>=0?"+":"-";switch(e){case"short":return`${s}${$(n,2)}:${$(r,2)}`;case"narrow":return`${s}${n}${r>0?`:${r}`:""}`;case"techie":return`${s}${$(n,2)}${$(r,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function en(t){return ef(t,["hour","minute","second","millisecond"])}const nf=["January","February","March","April","May","June","July","August","September","October","November","December"],ci=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],rf=["J","F","M","A","M","J","J","A","S","O","N","D"];function fi(t){switch(t){case"narrow":return[...rf];case"short":return[...ci];case"long":return[...nf];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const di=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],mi=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],sf=["M","T","W","T","F","S","S"];function hi(t){switch(t){case"narrow":return[...sf];case"short":return[...mi];case"long":return[...di];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const gi=["AM","PM"],af=["Before Christ","Anno Domini"],of=["BC","AD"],lf=["B","A"];function pi(t){switch(t){case"narrow":return[...lf];case"short":return[...of];case"long":return[...af];default:return null}}function uf(t){return gi[t.hour<12?0:1]}function cf(t,e){return hi(e)[t.weekday-1]}function ff(t,e){return fi(e)[t.month-1]}function df(t,e){return pi(e)[t.year<0?0:1]}function mf(t,e,n="always",r=!1){const s={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},i=["hours","minutes","seconds"].indexOf(t)===-1;if(n==="auto"&&i){const g=t==="days";switch(e){case 1:return g?"tomorrow":`next ${s[t][0]}`;case-1:return g?"yesterday":`last ${s[t][0]}`;case 0:return g?"today":`this ${s[t][0]}`}}const a=Object.is(e,-0)||e<0,o=Math.abs(e),l=o===1,u=s[t],f=r?l?u[1]:u[2]||u[1]:l?s[t][0]:t;return a?`${o} ${f} ago`:`in ${o} ${f}`}function yi(t,e){let n="";for(const r of t)r.literal?n+=r.val:n+=e(r.val);return n}const hf={D:Pn,DD:Cs,DDD:Fs,DDDD:$s,t:Rs,tt:Ps,ttt:js,tttt:Vs,T:Ls,TT:Us,TTT:Ws,TTTT:Zs,f:Hs,ff:qs,fff:Gs,ffff:Ys,F:zs,FF:Bs,FFF:Js,FFFF:Ks};class L{static create(e,n={}){return new L(e,n)}static parseFormat(e){let n=null,r="",s=!1;const i=[];for(let a=0;a<e.length;a++){const o=e.charAt(a);o==="'"?(r.length>0&&i.push({literal:s,val:r}),n=null,r="",s=!s):s||o===n?r+=o:(r.length>0&&i.push({literal:!1,val:r}),r=o,n=o)}return r.length>0&&i.push({literal:s,val:r}),i}static macroTokenToFormatOpts(e){return hf[e]}constructor(e,n){this.opts=n,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,n){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...n}).format()}formatDateTime(e,n={}){return this.loc.dtFormatter(e,{...this.opts,...n}).format()}formatDateTimeParts(e,n={}){return this.loc.dtFormatter(e,{...this.opts,...n}).formatToParts()}resolvedOptions(e,n={}){return this.loc.dtFormatter(e,{...this.opts,...n}).resolvedOptions()}num(e,n=0){if(this.opts.forceSimple)return $(e,n);const r={...this.opts};return n>0&&(r.padTo=n),this.loc.numberFormatter(r).format(e)}formatDateTimeFromString(e,n){const r=this.loc.listingMode()==="en",s=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",i=(c,h)=>this.loc.extract(e,c,h),a=c=>e.isOffsetFixed&&e.offset===0&&c.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,c.format):"",o=()=>r?uf(e):i({hour:"numeric",hourCycle:"h12"},"dayperiod"),l=(c,h)=>r?ff(e,c):i(h?{month:c}:{month:c,day:"numeric"},"month"),u=(c,h)=>r?cf(e,c):i(h?{weekday:c}:{weekday:c,month:"long",day:"numeric"},"weekday"),f=c=>{const h=L.macroTokenToFormatOpts(c);return h?this.formatWithSystemDefault(e,h):c},g=c=>r?df(e,c):i({era:c},"era"),d=c=>{switch(c){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return a({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return a({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return a({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return o();case"d":return s?i({day:"numeric"},"day"):this.num(e.day);case"dd":return s?i({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return u("short",!0);case"cccc":return u("long",!0);case"ccccc":return u("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return u("short",!1);case"EEEE":return u("long",!1);case"EEEEE":return u("narrow",!1);case"L":return s?i({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return s?i({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return s?i({month:"numeric"},"month"):this.num(e.month);case"MM":return s?i({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return s?i({year:"numeric"},"year"):this.num(e.year);case"yy":return s?i({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return s?i({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return s?i({year:"numeric"},"year"):this.num(e.year,6);case"G":return g("short");case"GG":return g("long");case"GGGGG":return g("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return f(c)}};return yi(L.parseFormat(n),d)}formatDurationFromString(e,n){const r=l=>{switch(l[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},s=l=>u=>{const f=r(u);return f?this.num(l.get(f),u.length):u},i=L.parseFormat(n),a=i.reduce((l,{literal:u,val:f})=>u?l:l.concat(f),[]),o=e.shiftTo(...a.map(r).filter(l=>l));return yi(i,s(o))}}class ne{constructor(e,n){this.reason=e,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const wi=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function Ze(...t){const e=t.reduce((n,r)=>n+r.source,"");return RegExp(`^${e}$`)}function He(...t){return e=>t.reduce(([n,r,s],i)=>{const[a,o,l]=i(e,s);return[{...n,...a},o||r,l]},[{},null,1]).slice(0,2)}function ze(t,...e){if(t==null)return[null,null];for(const[n,r]of e){const s=n.exec(t);if(s)return r(s)}return[null,null]}function bi(...t){return(e,n)=>{const r={};let s;for(s=0;s<t.length;s++)r[t[s]]=Ae(e[n+s]);return[r,null,n+s]}}const vi=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,gf=`(?:${vi.source}?(?:\\[(${wi.source})\\])?)?`,Gn=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,Ai=RegExp(`${Gn.source}${gf}`),Jn=RegExp(`(?:T${Ai.source})?`),pf=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,yf=/(\d{4})-?W(\d\d)(?:-?(\d))?/,wf=/(\d{4})-?(\d{3})/,bf=bi("weekYear","weekNumber","weekDay"),vf=bi("year","ordinal"),Af=/(\d{4})-(\d\d)-(\d\d)/,Ti=RegExp(`${Gn.source} ?(?:${vi.source}|(${wi.source}))?`),Tf=RegExp(`(?: ${Ti.source})?`);function qe(t,e,n){const r=t[e];return S(r)?n:Ae(r)}function Sf(t,e){return[{year:qe(t,e),month:qe(t,e+1,1),day:qe(t,e+2,1)},null,e+3]}function Be(t,e){return[{hours:qe(t,e,0),minutes:qe(t,e+1,0),seconds:qe(t,e+2,0),milliseconds:Hn(t[e+3])},null,e+4]}function yt(t,e){const n=!t[e]&&!t[e+1],r=Qt(t[e+1],t[e+2]),s=n?null:V.instance(r);return[{},s,e+3]}function wt(t,e){const n=t[e]?ce.create(t[e]):null;return[{},n,e+1]}const xf=RegExp(`^T?${Gn.source}$`),Of=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function Ef(t){const[e,n,r,s,i,a,o,l,u]=t,f=e[0]==="-",g=l&&l[0]==="-",d=(c,h=!1)=>c!==void 0&&(h||c&&f)?-c:c;return[{years:d(De(n)),months:d(De(r)),weeks:d(De(s)),days:d(De(i)),hours:d(De(a)),minutes:d(De(o)),seconds:d(De(l),l==="-0"),milliseconds:d(Hn(u),g)}]}const Mf={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Yn(t,e,n,r,s,i,a){const o={year:e.length===2?Bn(Ae(e)):Ae(e),month:ci.indexOf(n)+1,day:Ae(r),hour:Ae(s),minute:Ae(i)};return a&&(o.second=Ae(a)),t&&(o.weekday=t.length>3?di.indexOf(t)+1:mi.indexOf(t)+1),o}const If=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function kf(t){const[,e,n,r,s,i,a,o,l,u,f,g]=t,d=Yn(e,s,r,n,i,a,o);let c;return l?c=Mf[l]:u?c=0:c=Qt(f,g),[d,new V(c)]}function Nf(t){return t.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const _f=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Df=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,Cf=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Si(t){const[,e,n,r,s,i,a,o]=t;return[Yn(e,s,r,n,i,a,o),V.utcInstance]}function Ff(t){const[,e,n,r,s,i,a,o]=t;return[Yn(e,o,n,r,s,i,a),V.utcInstance]}const $f=Ze(pf,Jn),Rf=Ze(yf,Jn),Pf=Ze(wf,Jn),jf=Ze(Ai),xi=He(Sf,Be,yt,wt),Vf=He(bf,Be,yt,wt),Lf=He(vf,Be,yt,wt),Uf=He(Be,yt,wt);function Wf(t){return ze(t,[$f,xi],[Rf,Vf],[Pf,Lf],[jf,Uf])}function Zf(t){return ze(Nf(t),[If,kf])}function Hf(t){return ze(t,[_f,Si],[Df,Si],[Cf,Ff])}function zf(t){return ze(t,[Of,Ef])}const qf=He(Be);function Bf(t){return ze(t,[xf,qf])}const Gf=Ze(Af,Tf),Jf=Ze(Ti),Yf=He(Be,yt,wt);function Kf(t){return ze(t,[Gf,xi],[Jf,Yf])}const Qf="Invalid Duration",Oi={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},Xf={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...Oi},B=146097/400,Ge=146097/4800,ed={years:{quarters:4,months:12,weeks:B/7,days:B,hours:B*24,minutes:B*24*60,seconds:B*24*60*60,milliseconds:B*24*60*60*1e3},quarters:{months:3,weeks:B/28,days:B/4,hours:B*24/4,minutes:B*24*60/4,seconds:B*24*60*60/4,milliseconds:B*24*60*60*1e3/4},months:{weeks:Ge/7,days:Ge,hours:Ge*24,minutes:Ge*24*60,seconds:Ge*24*60*60,milliseconds:Ge*24*60*60*1e3},...Oi},Ce=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],td=Ce.slice(0).reverse();function Te(t,e,n=!1){const r={values:n?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy,matrix:e.matrix||t.matrix};return new O(r)}function nd(t){return t<0?Math.floor(t):Math.ceil(t)}function Ei(t,e,n,r,s){const i=t[s][n],a=e[n]/i,o=Math.sign(a)===Math.sign(r[s]),l=!o&&r[s]!==0&&Math.abs(a)<=1?nd(a):Math.trunc(a);r[s]+=l,e[n]-=l*i}function rd(t,e){td.reduce((n,r)=>S(e[r])?n:(n&&Ei(t,e,n,e,r),r),null)}function sd(t){const e={};for(const[n,r]of Object.entries(t))r!==0&&(e[n]=r);return e}class O{constructor(e){const n=e.conversionAccuracy==="longterm"||!1;let r=n?ed:Xf;e.matrix&&(r=e.matrix),this.values=e.values,this.loc=e.loc||D.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=r,this.isLuxonDuration=!0}static fromMillis(e,n){return O.fromObject({milliseconds:e},n)}static fromObject(e,n={}){if(e==null||typeof e!="object")throw new q(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new O({values:Xt(e,O.normalizeUnit),loc:D.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(e){if(_e(e))return O.fromMillis(e);if(O.isDuration(e))return e;if(typeof e=="object")return O.fromObject(e);throw new q(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,n){const[r]=zf(e);return r?O.fromObject(r,n):O.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,n){const[r]=Bf(e);return r?O.fromObject(r,n):O.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,n=null){if(!e)throw new q("need to specify a reason the Duration is invalid");const r=e instanceof ne?e:new ne(e,n);if(F.throwOnInvalid)throw new _c(r);return new O({invalid:r})}static normalizeUnit(e){const n={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!n)throw new Ds(e);return n}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,n={}){const r={...n,floor:n.round!==!1&&n.floor!==!1};return this.isValid?L.create(this.loc,r).formatDurationFromString(this,e):Qf}toHuman(e={}){const n=Ce.map(r=>{const s=this.values[r];return S(s)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:r.slice(0,-1)}).format(s)}).filter(r=>r);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(n)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=zn(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const n=this.toMillis();if(n<0||n>=864e5)return null;e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e};const r=this.shiftTo("hours","minutes","seconds","milliseconds");let s=e.format==="basic"?"hhmm":"hh:mm";(!e.suppressSeconds||r.seconds!==0||r.milliseconds!==0)&&(s+=e.format==="basic"?"ss":":ss",(!e.suppressMilliseconds||r.milliseconds!==0)&&(s+=".SSS"));let i=r.toFormat(s);return e.includePrefix&&(i="T"+i),i}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){return this.as("milliseconds")}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const n=O.fromDurationLike(e),r={};for(const s of Ce)(We(n.values,s)||We(this.values,s))&&(r[s]=n.get(s)+this.get(s));return Te(this,{values:r},!0)}minus(e){if(!this.isValid)return this;const n=O.fromDurationLike(e);return this.plus(n.negate())}mapUnits(e){if(!this.isValid)return this;const n={};for(const r of Object.keys(this.values))n[r]=ui(e(this.values[r],r));return Te(this,{values:n},!0)}get(e){return this[O.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const n={...this.values,...Xt(e,O.normalizeUnit)};return Te(this,{values:n})}reconfigure({locale:e,numberingSystem:n,conversionAccuracy:r,matrix:s}={}){const a={loc:this.loc.clone({locale:e,numberingSystem:n}),matrix:s,conversionAccuracy:r};return Te(this,a)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return rd(this.matrix,e),Te(this,{values:e},!0)}rescale(){if(!this.isValid)return this;const e=sd(this.normalize().shiftToAll().toObject());return Te(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(a=>O.normalizeUnit(a));const n={},r={},s=this.toObject();let i;for(const a of Ce)if(e.indexOf(a)>=0){i=a;let o=0;for(const u in r)o+=this.matrix[u][a]*r[u],r[u]=0;_e(s[a])&&(o+=s[a]);const l=Math.trunc(o);n[a]=l,r[a]=(o*1e3-l*1e3)/1e3;for(const u in s)Ce.indexOf(u)>Ce.indexOf(a)&&Ei(this.matrix,s,u,n,a)}else _e(s[a])&&(r[a]=s[a]);for(const a in r)r[a]!==0&&(n[i]+=a===i?r[a]:r[a]/this.matrix[i][a]);return Te(this,{values:n},!0).normalize()}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const n of Object.keys(this.values))e[n]=this.values[n]===0?0:-this.values[n];return Te(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function n(r,s){return r===void 0||r===0?s===void 0||s===0:r===s}for(const r of Ce)if(!n(this.values[r],e.values[r]))return!1;return!0}}const bt="Invalid Interval";function id(t,e){return!t||!t.isValid?C.invalid("missing or invalid start"):!e||!e.isValid?C.invalid("missing or invalid end"):e<t?C.invalid("end before start",`The end of an interval must be after its start, but you had start=${t.toISO()} and end=${e.toISO()}`):null}class C{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,n=null){if(!e)throw new q("need to specify a reason the Interval is invalid");const r=e instanceof ne?e:new ne(e,n);if(F.throwOnInvalid)throw new Nc(r);return new C({invalid:r})}static fromDateTimes(e,n){const r=Tt(e),s=Tt(n),i=id(r,s);return i??new C({start:r,end:s})}static after(e,n){const r=O.fromDurationLike(n),s=Tt(e);return C.fromDateTimes(s,s.plus(r))}static before(e,n){const r=O.fromDurationLike(n),s=Tt(e);return C.fromDateTimes(s.minus(r),s)}static fromISO(e,n){const[r,s]=(e||"").split("/",2);if(r&&s){let i,a;try{i=v.fromISO(r,n),a=i.isValid}catch{a=!1}let o,l;try{o=v.fromISO(s,n),l=o.isValid}catch{l=!1}if(a&&l)return C.fromDateTimes(i,o);if(a){const u=O.fromISO(s,n);if(u.isValid)return C.after(i,u)}else if(l){const u=O.fromISO(r,n);if(u.isValid)return C.before(o,u)}}return C.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds"){if(!this.isValid)return NaN;const n=this.start.startOf(e),r=this.end.startOf(e);return Math.floor(r.diff(n,e).get(e))+1}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:n}={}){return this.isValid?C.fromDateTimes(e||this.s,n||this.e):this}splitAt(...e){if(!this.isValid)return[];const n=e.map(Tt).filter(a=>this.contains(a)).sort(),r=[];let{s}=this,i=0;for(;s<this.e;){const a=n[i]||this.e,o=+a>+this.e?this.e:a;r.push(C.fromDateTimes(s,o)),s=o,i+=1}return r}splitBy(e){const n=O.fromDurationLike(e);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s:r}=this,s=1,i;const a=[];for(;r<this.e;){const o=this.start.plus(n.mapUnits(l=>l*s));i=+o>+this.e?this.e:o,a.push(C.fromDateTimes(r,i)),r=i,s+=1}return a}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return this.isValid?+this.e==+e.s:!1}abutsEnd(e){return this.isValid?+e.e==+this.s:!1}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const n=this.s>e.s?this.s:e.s,r=this.e<e.e?this.e:e.e;return n>=r?null:C.fromDateTimes(n,r)}union(e){if(!this.isValid)return this;const n=this.s<e.s?this.s:e.s,r=this.e>e.e?this.e:e.e;return C.fromDateTimes(n,r)}static merge(e){const[n,r]=e.sort((s,i)=>s.s-i.s).reduce(([s,i],a)=>i?i.overlaps(a)||i.abutsStart(a)?[s,i.union(a)]:[s.concat([i]),a]:[s,a],[[],null]);return r&&n.push(r),n}static xor(e){let n=null,r=0;const s=[],i=e.map(l=>[{time:l.s,type:"s"},{time:l.e,type:"e"}]),a=Array.prototype.concat(...i),o=a.sort((l,u)=>l.time-u.time);for(const l of o)r+=l.type==="s"?1:-1,r===1?n=l.time:(n&&+n!=+l.time&&s.push(C.fromDateTimes(n,l.time)),n=null);return C.merge(s)}difference(...e){return C.xor([this].concat(e)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} ${this.e.toISO()})`:bt}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:bt}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:bt}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:bt}toFormat(e,{separator:n=" "}={}){return this.isValid?`${this.s.toFormat(e)}${n}${this.e.toFormat(e)}`:bt}toDuration(e,n){return this.isValid?this.e.diff(this.s,e,n):O.invalid(this.invalidReason)}mapEndpoints(e){return C.fromDateTimes(e(this.s),e(this.e))}}class tn{static hasDST(e=F.defaultZone){const n=v.now().setZone(e).set({month:12});return!e.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(e){return ce.isValidZone(e)}static normalizeZone(e){return ve(e,F.defaultZone)}static months(e="long",{locale:n=null,numberingSystem:r=null,locObj:s=null,outputCalendar:i="gregory"}={}){return(s||D.create(n,r,i)).months(e)}static monthsFormat(e="long",{locale:n=null,numberingSystem:r=null,locObj:s=null,outputCalendar:i="gregory"}={}){return(s||D.create(n,r,i)).months(e,!0)}static weekdays(e="long",{locale:n=null,numberingSystem:r=null,locObj:s=null}={}){return(s||D.create(n,r,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:n=null,numberingSystem:r=null,locObj:s=null}={}){return(s||D.create(n,r,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return D.create(e).meridiems()}static eras(e="short",{locale:n=null}={}){return D.create(n,null,"gregory").eras(e)}static features(){return{relative:ai()}}}function Mi(t,e){const n=s=>s.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=n(e)-n(t);return Math.floor(O.fromMillis(r).as("days"))}function ad(t,e,n){const r=[["years",(o,l)=>l.year-o.year],["quarters",(o,l)=>l.quarter-o.quarter+(l.year-o.year)*4],["months",(o,l)=>l.month-o.month+(l.year-o.year)*12],["weeks",(o,l)=>{const u=Mi(o,l);return(u-u%7)/7}],["days",Mi]],s={};let i,a;for(const[o,l]of r)if(n.indexOf(o)>=0){i=o;let u=l(t,e);a=t.plus({[o]:u}),a>e?(t=t.plus({[o]:u-1}),u-=1):t=a,s[o]=u}return[t,s,a,i]}function od(t,e,n,r){let[s,i,a,o]=ad(t,e,n);const l=e-s,u=n.filter(g=>["hours","minutes","seconds","milliseconds"].indexOf(g)>=0);u.length===0&&(a<e&&(a=s.plus({[o]:1})),a!==s&&(i[o]=(i[o]||0)+l/(a-s)));const f=O.fromObject(i,r);return u.length>0?O.fromMillis(l,r).shiftTo(...u).plus(f):f}const Kn={arab:"[-]",arabext:"[-]",bali:"[-]",beng:"[-]",deva:"[-]",fullwide:"[-]",gujr:"[-]",hanidec:"[|||||||||]",khmr:"[-]",knda:"[-]",laoo:"[-]",limb:"[-]",mlym:"[-]",mong:"[-]",mymr:"[-]",orya:"[-]",tamldec:"[-]",telu:"[-]",thai:"[-]",tibt:"[-]",latn:"\\d"},Ii={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},ld=Kn.hanidec.replace(/[\[|\]]/g,"").split("");function ud(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let n=0;n<t.length;n++){const r=t.charCodeAt(n);if(t[n].search(Kn.hanidec)!==-1)e+=ld.indexOf(t[n]);else for(const s in Ii){const[i,a]=Ii[s];r>=i&&r<=a&&(e+=r-i)}}return parseInt(e,10)}else return e}function re({numberingSystem:t},e=""){return new RegExp(`${Kn[t||"latn"]}${e}`)}const cd="missing Intl.DateTimeFormat.formatToParts support";function I(t,e=n=>n){return{regex:t,deser:([n])=>e(ud(n))}}const ki=`[ ${String.fromCharCode(160)}]`,Ni=new RegExp(ki,"g");function fd(t){return t.replace(/\./g,"\\.?").replace(Ni,ki)}function _i(t){return t.replace(/\./g,"").replace(Ni," ").toLowerCase()}function se(t,e){return t===null?null:{regex:RegExp(t.map(fd).join("|")),deser:([n])=>t.findIndex(r=>_i(n)===_i(r))+e}}function Di(t,e){return{regex:t,deser:([,n,r])=>Qt(n,r),groups:e}}function Qn(t){return{regex:t,deser:([e])=>e}}function dd(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function md(t,e){const n=re(e),r=re(e,"{2}"),s=re(e,"{3}"),i=re(e,"{4}"),a=re(e,"{6}"),o=re(e,"{1,2}"),l=re(e,"{1,3}"),u=re(e,"{1,6}"),f=re(e,"{1,9}"),g=re(e,"{2,4}"),d=re(e,"{4,6}"),c=y=>({regex:RegExp(dd(y.val)),deser:([x])=>x,literal:!0}),b=(y=>{if(t.literal)return c(y);switch(y.val){case"G":return se(e.eras("short",!1),0);case"GG":return se(e.eras("long",!1),0);case"y":return I(u);case"yy":return I(g,Bn);case"yyyy":return I(i);case"yyyyy":return I(d);case"yyyyyy":return I(a);case"M":return I(o);case"MM":return I(r);case"MMM":return se(e.months("short",!0,!1),1);case"MMMM":return se(e.months("long",!0,!1),1);case"L":return I(o);case"LL":return I(r);case"LLL":return se(e.months("short",!1,!1),1);case"LLLL":return se(e.months("long",!1,!1),1);case"d":return I(o);case"dd":return I(r);case"o":return I(l);case"ooo":return I(s);case"HH":return I(r);case"H":return I(o);case"hh":return I(r);case"h":return I(o);case"mm":return I(r);case"m":return I(o);case"q":return I(o);case"qq":return I(r);case"s":return I(o);case"ss":return I(r);case"S":return I(l);case"SSS":return I(s);case"u":return Qn(f);case"uu":return Qn(o);case"uuu":return I(n);case"a":return se(e.meridiems(),0);case"kkkk":return I(i);case"kk":return I(g,Bn);case"W":return I(o);case"WW":return I(r);case"E":case"c":return I(n);case"EEE":return se(e.weekdays("short",!1,!1),1);case"EEEE":return se(e.weekdays("long",!1,!1),1);case"ccc":return se(e.weekdays("short",!0,!1),1);case"cccc":return se(e.weekdays("long",!0,!1),1);case"Z":case"ZZ":return Di(new RegExp(`([+-]${o.source})(?::(${r.source}))?`),2);case"ZZZ":return Di(new RegExp(`([+-]${o.source})(${r.source})?`),2);case"z":return Qn(/[a-z_+-/]{1,256}?/i);default:return c(y)}})(t)||{invalidReason:cd};return b.token=t,b}const hd={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function gd(t,e,n){const{type:r,value:s}=t;if(r==="literal")return{literal:!0,val:s};const i=n[r];let a=hd[r];if(typeof a=="object"&&(a=a[i]),a)return{literal:!1,val:a}}function pd(t){return[`^${t.map(n=>n.regex).reduce((n,r)=>`${n}(${r.source})`,"")}$`,t]}function yd(t,e,n){const r=t.match(e);if(r){const s={};let i=1;for(const a in n)if(We(n,a)){const o=n[a],l=o.groups?o.groups+1:1;!o.literal&&o.token&&(s[o.token.val[0]]=o.deser(r.slice(i,i+l))),i+=l}return[r,s]}else return[r,{}]}function wd(t){const e=i=>{switch(i){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let n=null,r;return S(t.z)||(n=ce.create(t.z)),S(t.Z)||(n||(n=new V(t.Z)),r=t.Z),S(t.q)||(t.M=(t.q-1)*3+1),S(t.h)||(t.h<12&&t.a===1?t.h+=12:t.h===12&&t.a===0&&(t.h=0)),t.G===0&&t.y&&(t.y=-t.y),S(t.u)||(t.S=Hn(t.u)),[Object.keys(t).reduce((i,a)=>{const o=e(a);return o&&(i[o]=t[a]),i},{}),n,r]}let Xn=null;function bd(){return Xn||(Xn=v.fromMillis(1555555555555)),Xn}function vd(t,e){if(t.literal)return t;const n=L.macroTokenToFormatOpts(t.val),r=$i(n,e);return r==null||r.includes(void 0)?t:r}function Ci(t,e){return Array.prototype.concat(...t.map(n=>vd(n,e)))}function Fi(t,e,n){const r=Ci(L.parseFormat(n),t),s=r.map(a=>md(a,t)),i=s.find(a=>a.invalidReason);if(i)return{input:e,tokens:r,invalidReason:i.invalidReason};{const[a,o]=pd(s),l=RegExp(a,"i"),[u,f]=yd(e,l,o),[g,d,c]=f?wd(f):[null,null,void 0];if(We(f,"a")&&We(f,"H"))throw new ft("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:r,regex:l,rawMatches:u,matches:f,result:g,zone:d,specificOffset:c}}}function Ad(t,e,n){const{result:r,zone:s,specificOffset:i,invalidReason:a}=Fi(t,e,n);return[r,s,i,a]}function $i(t,e){return t?L.create(e,t).formatDateTimeParts(bd()).map(s=>gd(s,e,t)):null}const Ri=[0,31,59,90,120,151,181,212,243,273,304,334],Pi=[0,31,60,91,121,152,182,213,244,274,305,335];function G(t,e){return new ne("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function ji(t,e,n){const r=new Date(Date.UTC(t,e-1,n));t<100&&t>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);const s=r.getUTCDay();return s===0?7:s}function Vi(t,e,n){return n+(ht(t)?Pi:Ri)[e-1]}function Li(t,e){const n=ht(t)?Pi:Ri,r=n.findIndex(i=>i<e),s=e-n[r];return{month:r+1,day:s}}function er(t){const{year:e,month:n,day:r}=t,s=Vi(e,n,r),i=ji(e,n,r);let a=Math.floor((s-i+10)/7),o;return a<1?(o=e-1,a=Kt(o)):a>Kt(e)?(o=e+1,a=1):o=e,{weekYear:o,weekNumber:a,weekday:i,...en(t)}}function Ui(t){const{weekYear:e,weekNumber:n,weekday:r}=t,s=ji(e,1,4),i=gt(e);let a=n*7+r-s-3,o;a<1?(o=e-1,a+=gt(o)):a>i?(o=e+1,a-=gt(e)):o=e;const{month:l,day:u}=Li(o,a);return{year:o,month:l,day:u,...en(t)}}function tr(t){const{year:e,month:n,day:r}=t,s=Vi(e,n,r);return{year:e,ordinal:s,...en(t)}}function Wi(t){const{year:e,ordinal:n}=t,{month:r,day:s}=Li(e,n);return{year:e,month:r,day:s,...en(t)}}function Td(t){const e=Jt(t.weekYear),n=fe(t.weekNumber,1,Kt(t.weekYear)),r=fe(t.weekday,1,7);return e?n?r?!1:G("weekday",t.weekday):G("week",t.week):G("weekYear",t.weekYear)}function Sd(t){const e=Jt(t.year),n=fe(t.ordinal,1,gt(t.year));return e?n?!1:G("ordinal",t.ordinal):G("year",t.year)}function Zi(t){const e=Jt(t.year),n=fe(t.month,1,12),r=fe(t.day,1,Yt(t.year,t.month));return e?n?r?!1:G("day",t.day):G("month",t.month):G("year",t.year)}function Hi(t){const{hour:e,minute:n,second:r,millisecond:s}=t,i=fe(e,0,23)||e===24&&n===0&&r===0&&s===0,a=fe(n,0,59),o=fe(r,0,59),l=fe(s,0,999);return i?a?o?l?!1:G("millisecond",s):G("second",r):G("minute",n):G("hour",e)}const nr="Invalid DateTime",zi=864e13;function nn(t){return new ne("unsupported zone",`the zone "${t.name}" is not supported`)}function rr(t){return t.weekData===null&&(t.weekData=er(t.c)),t.weekData}function vt(t,e){const n={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new v({...n,...e,old:n})}function qi(t,e,n){let r=t-e*60*1e3;const s=n.offset(r);if(e===s)return[r,e];r-=(s-e)*60*1e3;const i=n.offset(r);return s===i?[r,s]:[t-Math.min(s,i)*60*1e3,Math.max(s,i)]}function Bi(t,e){t+=e*60*1e3;const n=new Date(t);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function rn(t,e,n){return qi(qn(t),e,n)}function Gi(t,e){const n=t.o,r=t.c.year+Math.trunc(e.years),s=t.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,i={...t.c,year:r,month:s,day:Math.min(t.c.day,Yt(r,s))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},a=O.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),o=qn(i);let[l,u]=qi(o,n,t.zone);return a!==0&&(l+=a,u=t.zone.offset(l)),{ts:l,o:u}}function At(t,e,n,r,s,i){const{setZone:a,zone:o}=n;if(t&&Object.keys(t).length!==0){const l=e||o,u=v.fromObject(t,{...n,zone:l,specificOffset:i});return a?u:u.setZone(o)}else return v.invalid(new ne("unparsable",`the input "${s}" can't be parsed as ${r}`))}function sn(t,e,n=!0){return t.isValid?L.create(D.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(t,e):null}function sr(t,e){const n=t.c.year>9999||t.c.year<0;let r="";return n&&t.c.year>=0&&(r+="+"),r+=$(t.c.year,n?6:4),e?(r+="-",r+=$(t.c.month),r+="-",r+=$(t.c.day)):(r+=$(t.c.month),r+=$(t.c.day)),r}function Ji(t,e,n,r,s,i){let a=$(t.c.hour);return e?(a+=":",a+=$(t.c.minute),(t.c.second!==0||!n)&&(a+=":")):a+=$(t.c.minute),(t.c.second!==0||!n)&&(a+=$(t.c.second),(t.c.millisecond!==0||!r)&&(a+=".",a+=$(t.c.millisecond,3))),s&&(t.isOffsetFixed&&t.offset===0&&!i?a+="Z":t.o<0?(a+="-",a+=$(Math.trunc(-t.o/60)),a+=":",a+=$(Math.trunc(-t.o%60))):(a+="+",a+=$(Math.trunc(t.o/60)),a+=":",a+=$(Math.trunc(t.o%60)))),i&&(a+="["+t.zone.ianaName+"]"),a}const Yi={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},xd={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Od={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Ki=["year","month","day","hour","minute","second","millisecond"],Ed=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],Md=["year","ordinal","hour","minute","second","millisecond"];function Qi(t){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new Ds(t);return e}function Xi(t,e){const n=ve(e.zone,F.defaultZone),r=D.fromObject(e),s=F.now();let i,a;if(S(t.year))i=s;else{for(const u of Ki)S(t[u])&&(t[u]=Yi[u]);const o=Zi(t)||Hi(t);if(o)return v.invalid(o);const l=n.offset(s);[i,a]=rn(t,l,n)}return new v({ts:i,zone:n,loc:r,o:a})}function ea(t,e,n){const r=S(n.round)?!0:n.round,s=(a,o)=>(a=zn(a,r||n.calendary?0:2,!0),e.loc.clone(n).relFormatter(n).format(a,o)),i=a=>n.calendary?e.hasSame(t,a)?0:e.startOf(a).diff(t.startOf(a),a).get(a):e.diff(t,a).get(a);if(n.unit)return s(i(n.unit),n.unit);for(const a of n.units){const o=i(a);if(Math.abs(o)>=1)return s(o,a)}return s(t>e?-0:0,n.units[n.units.length-1])}function ta(t){let e={},n;return t.length>0&&typeof t[t.length-1]=="object"?(e=t[t.length-1],n=Array.from(t).slice(0,t.length-1)):n=Array.from(t),[e,n]}class v{constructor(e){const n=e.zone||F.defaultZone;let r=e.invalid||(Number.isNaN(e.ts)?new ne("invalid input"):null)||(n.isValid?null:nn(n));this.ts=S(e.ts)?F.now():e.ts;let s=null,i=null;if(!r)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(n))[s,i]=[e.old.c,e.old.o];else{const o=n.offset(this.ts);s=Bi(this.ts,o),r=Number.isNaN(s.year)?new ne("invalid input"):null,s=r?null:s,i=r?null:o}this._zone=n,this.loc=e.loc||D.create(),this.invalid=r,this.weekData=null,this.c=s,this.o=i,this.isLuxonDateTime=!0}static now(){return new v({})}static local(){const[e,n]=ta(arguments),[r,s,i,a,o,l,u]=n;return Xi({year:r,month:s,day:i,hour:a,minute:o,second:l,millisecond:u},e)}static utc(){const[e,n]=ta(arguments),[r,s,i,a,o,l,u]=n;return e.zone=V.utcInstance,Xi({year:r,month:s,day:i,hour:a,minute:o,second:l,millisecond:u},e)}static fromJSDate(e,n={}){const r=Qc(e)?e.valueOf():NaN;if(Number.isNaN(r))return v.invalid("invalid input");const s=ve(n.zone,F.defaultZone);return s.isValid?new v({ts:r,zone:s,loc:D.fromObject(n)}):v.invalid(nn(s))}static fromMillis(e,n={}){if(_e(e))return e<-zi||e>zi?v.invalid("Timestamp out of range"):new v({ts:e,zone:ve(n.zone,F.defaultZone),loc:D.fromObject(n)});throw new q(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,n={}){if(_e(e))return new v({ts:e*1e3,zone:ve(n.zone,F.defaultZone),loc:D.fromObject(n)});throw new q("fromSeconds requires a numerical input")}static fromObject(e,n={}){e=e||{};const r=ve(n.zone,F.defaultZone);if(!r.isValid)return v.invalid(nn(r));const s=F.now(),i=S(n.specificOffset)?r.offset(s):n.specificOffset,a=Xt(e,Qi),o=!S(a.ordinal),l=!S(a.year),u=!S(a.month)||!S(a.day),f=l||u,g=a.weekYear||a.weekNumber,d=D.fromObject(n);if((f||o)&&g)throw new ft("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(u&&o)throw new ft("Can't mix ordinal dates with month/day");const c=g||a.weekday&&!f;let h,b,y=Bi(s,i);c?(h=Ed,b=xd,y=er(y)):o?(h=Md,b=Od,y=tr(y)):(h=Ki,b=Yi);let x=!1;for(const p of h){const w=a[p];S(w)?x?a[p]=b[p]:a[p]=y[p]:x=!0}const E=c?Td(a):o?Sd(a):Zi(a),A=E||Hi(a);if(A)return v.invalid(A);const U=c?Ui(a):o?Wi(a):a,[J,Je]=rn(U,i,r),ae=new v({ts:J,zone:r,o:Je,loc:d});return a.weekday&&f&&e.weekday!==ae.weekday?v.invalid("mismatched weekday",`you can't specify both a weekday of ${a.weekday} and a date of ${ae.toISO()}`):ae}static fromISO(e,n={}){const[r,s]=Wf(e);return At(r,s,n,"ISO 8601",e)}static fromRFC2822(e,n={}){const[r,s]=Zf(e);return At(r,s,n,"RFC 2822",e)}static fromHTTP(e,n={}){const[r,s]=Hf(e);return At(r,s,n,"HTTP",n)}static fromFormat(e,n,r={}){if(S(e)||S(n))throw new q("fromFormat requires an input string and a format");const{locale:s=null,numberingSystem:i=null}=r,a=D.fromOpts({locale:s,numberingSystem:i,defaultToEN:!0}),[o,l,u,f]=Ad(a,e,n);return f?v.invalid(f):At(o,l,r,`format ${n}`,e,u)}static fromString(e,n,r={}){return v.fromFormat(e,n,r)}static fromSQL(e,n={}){const[r,s]=Kf(e);return At(r,s,n,"SQL",e)}static invalid(e,n=null){if(!e)throw new q("need to specify a reason the DateTime is invalid");const r=e instanceof ne?e:new ne(e,n);if(F.throwOnInvalid)throw new kc(r);return new v({invalid:r})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,n={}){const r=$i(e,D.fromObject(n));return r?r.map(s=>s?s.val:null).join(""):null}static expandFormat(e,n={}){return Ci(L.parseFormat(e),D.fromObject(n)).map(s=>s.val).join("")}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?rr(this).weekYear:NaN}get weekNumber(){return this.isValid?rr(this).weekNumber:NaN}get weekday(){return this.isValid?rr(this).weekday:NaN}get ordinal(){return this.isValid?tr(this.c).ordinal:NaN}get monthShort(){return this.isValid?tn.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?tn.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?tn.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?tn.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}get isInLeapYear(){return ht(this.year)}get daysInMonth(){return Yt(this.year,this.month)}get daysInYear(){return this.isValid?gt(this.year):NaN}get weeksInWeekYear(){return this.isValid?Kt(this.weekYear):NaN}resolvedLocaleOptions(e={}){const{locale:n,numberingSystem:r,calendar:s}=L.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:n,numberingSystem:r,outputCalendar:s}}toUTC(e=0,n={}){return this.setZone(V.instance(e),n)}toLocal(){return this.setZone(F.defaultZone)}setZone(e,{keepLocalTime:n=!1,keepCalendarTime:r=!1}={}){if(e=ve(e,F.defaultZone),e.equals(this.zone))return this;if(e.isValid){let s=this.ts;if(n||r){const i=e.offset(this.ts),a=this.toObject();[s]=rn(a,i,e)}return vt(this,{ts:s,zone:e})}else return v.invalid(nn(e))}reconfigure({locale:e,numberingSystem:n,outputCalendar:r}={}){const s=this.loc.clone({locale:e,numberingSystem:n,outputCalendar:r});return vt(this,{loc:s})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const n=Xt(e,Qi),r=!S(n.weekYear)||!S(n.weekNumber)||!S(n.weekday),s=!S(n.ordinal),i=!S(n.year),a=!S(n.month)||!S(n.day),o=i||a,l=n.weekYear||n.weekNumber;if((o||s)&&l)throw new ft("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(a&&s)throw new ft("Can't mix ordinal dates with month/day");let u;r?u=Ui({...er(this.c),...n}):S(n.ordinal)?(u={...this.toObject(),...n},S(n.day)&&(u.day=Math.min(Yt(u.year,u.month),u.day))):u=Wi({...tr(this.c),...n});const[f,g]=rn(u,this.o,this.zone);return vt(this,{ts:f,o:g})}plus(e){if(!this.isValid)return this;const n=O.fromDurationLike(e);return vt(this,Gi(this,n))}minus(e){if(!this.isValid)return this;const n=O.fromDurationLike(e).negate();return vt(this,Gi(this,n))}startOf(e){if(!this.isValid)return this;const n={},r=O.normalizeUnit(e);switch(r){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0;break}if(r==="weeks"&&(n.weekday=1),r==="quarters"){const s=Math.ceil(this.month/3);n.month=(s-1)*3+1}return this.set(n)}endOf(e){return this.isValid?this.plus({[e]:1}).startOf(e).minus(1):this}toFormat(e,n={}){return this.isValid?L.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this,e):nr}toLocaleString(e=Pn,n={}){return this.isValid?L.create(this.loc.clone(n),e).formatDateTime(this):nr}toLocaleParts(e={}){return this.isValid?L.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:n=!1,suppressMilliseconds:r=!1,includeOffset:s=!0,extendedZone:i=!1}={}){if(!this.isValid)return null;const a=e==="extended";let o=sr(this,a);return o+="T",o+=Ji(this,a,n,r,s,i),o}toISODate({format:e="extended"}={}){return this.isValid?sr(this,e==="extended"):null}toISOWeekDate(){return sn(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:n=!1,includeOffset:r=!0,includePrefix:s=!1,extendedZone:i=!1,format:a="extended"}={}){return this.isValid?(s?"T":"")+Ji(this,a==="extended",n,e,r,i):null}toRFC2822(){return sn(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return sn(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?sr(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:n=!1,includeOffsetSpace:r=!0}={}){let s="HH:mm:ss.SSS";return(n||e)&&(r&&(s+=" "),n?s+="z":e&&(s+="ZZ")),sn(this,s,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():nr}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const n={...this.c};return e.includeConfig&&(n.outputCalendar=this.outputCalendar,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,n="milliseconds",r={}){if(!this.isValid||!e.isValid)return O.invalid("created by diffing an invalid DateTime");const s={locale:this.locale,numberingSystem:this.numberingSystem,...r},i=Xc(n).map(O.normalizeUnit),a=e.valueOf()>this.valueOf(),o=a?this:e,l=a?e:this,u=od(o,l,i,s);return a?u.negate():u}diffNow(e="milliseconds",n={}){return this.diff(v.now(),e,n)}until(e){return this.isValid?C.fromDateTimes(this,e):this}hasSame(e,n){if(!this.isValid)return!1;const r=e.valueOf(),s=this.setZone(e.zone,{keepLocalTime:!0});return s.startOf(n)<=r&&r<=s.endOf(n)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const n=e.base||v.fromObject({},{zone:this.zone}),r=e.padding?this<n?-e.padding:e.padding:0;let s=["years","months","days","hours","minutes","seconds"],i=e.unit;return Array.isArray(e.unit)&&(s=e.unit,i=void 0),ea(n,this.plus(r),{...e,numeric:"always",units:s,unit:i})}toRelativeCalendar(e={}){return this.isValid?ea(e.base||v.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(v.isDateTime))throw new q("min requires all arguments be DateTimes");return oi(e,n=>n.valueOf(),Math.min)}static max(...e){if(!e.every(v.isDateTime))throw new q("max requires all arguments be DateTimes");return oi(e,n=>n.valueOf(),Math.max)}static fromFormatExplain(e,n,r={}){const{locale:s=null,numberingSystem:i=null}=r,a=D.fromOpts({locale:s,numberingSystem:i,defaultToEN:!0});return Fi(a,e,n)}static fromStringExplain(e,n,r={}){return v.fromFormatExplain(e,n,r)}static get DATE_SHORT(){return Pn}static get DATE_MED(){return Cs}static get DATE_MED_WITH_WEEKDAY(){return Dc}static get DATE_FULL(){return Fs}static get DATE_HUGE(){return $s}static get TIME_SIMPLE(){return Rs}static get TIME_WITH_SECONDS(){return Ps}static get TIME_WITH_SHORT_OFFSET(){return js}static get TIME_WITH_LONG_OFFSET(){return Vs}static get TIME_24_SIMPLE(){return Ls}static get TIME_24_WITH_SECONDS(){return Us}static get TIME_24_WITH_SHORT_OFFSET(){return Ws}static get TIME_24_WITH_LONG_OFFSET(){return Zs}static get DATETIME_SHORT(){return Hs}static get DATETIME_SHORT_WITH_SECONDS(){return zs}static get DATETIME_MED(){return qs}static get DATETIME_MED_WITH_SECONDS(){return Bs}static get DATETIME_MED_WITH_WEEKDAY(){return Cc}static get DATETIME_FULL(){return Gs}static get DATETIME_FULL_WITH_SECONDS(){return Js}static get DATETIME_HUGE(){return Ys}static get DATETIME_HUGE_WITH_SECONDS(){return Ks}}function Tt(t){if(v.isDateTime(t))return t;if(t&&t.valueOf&&_e(t.valueOf()))return v.fromJSDate(t);if(t&&typeof t=="object")return v.fromObject(t);throw new q(`Unknown datetime argument: ${t}, of type ${typeof t}`)}chrome.alarms.onAlarm.addListener(async t=>{var u;if(!t.name.startsWith("job.alarm:"))return;const e=await xc(),n=t.name.split(":")[1],r=e.get(n);if(!r){await chrome.alarms.clear(t.name);return}if(r.status==="Inactive")return;const s=new URL("https://www.upwork.com/ab/jobs/search/url");Ec(r,s.searchParams);const i=await fetch(s.toString(),{headers:{accept:"application/json, text/plain, */*","x-requested-with":"XMLHttpRequest","x-upwork-accept-language":"en-US"},referrer:"https://www.upwork.com/nx/jobs/search/?sort=recency",referrerPolicy:"origin-when-cross-origin",method:"GET",mode:"cors",credentials:"include"}).then(f=>f.json());if(i.error){chrome.notifications.create("upwork.login.required",{type:"basic",title:"Upwork Login Required",message:"To filter and search jobs, you need to login to Upwork.",iconUrl:chrome.runtime.getURL("images/icon-128.png")});return}const a=await Ns(),o=new Date;let l=(((u=i==null?void 0:i.searchResults)==null?void 0:u.jobs)??[]).map(f=>Id(f,r.id)).filter(f=>le(a).findIndex(g=>g.uid===f.uid)===-1).filter(f=>C.fromDateTimes(new Date(f.postedOn),o).count("days")<3);if(l.length>0){const f=l.length;l.unshift(...le(a)),l=l.sort((d,c)=>c.postedOn-d.postedOn),a.value=l;const g=f===1?"job":"jobs";chrome.notifications.create(`notification.job.${r.id}`,{type:"basic",title:"New Jobs",isClickable:!0,message:`You have ${f} new ${g} for \`${r.name}\`.`,iconUrl:chrome.runtime.getURL("images/icon-128.png")})}}),chrome.notifications.onClicked.addListener(t=>{t.startsWith("notification.job.")&&(chrome.runtime.openOptionsPage(),setTimeout(()=>{mr("goto-route","history","options")},500))});function Id(t,e){return{cipher:t.ciphertext,uid:t.uid,title:t.title,description:t.description,engagement:t.engagement,duration:t.duration,tier:t.tier,postedOn:ml(t.jobTs),type:t.type===2?"Hourly":"Fixed-price",attrs:t.attrs.map(n=>n.prettyName),connects:t.connectPrice,amount:t.amount,scrapedOn:Date.now(),alertId:e}}let an;const kd=new Uint8Array(16);function Nd(){if(!an&&(an=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!an))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return an(kd)}const P=[];for(let t=0;t<256;++t)P.push((t+256).toString(16).slice(1));function _d(t,e=0){return(P[t[e+0]]+P[t[e+1]]+P[t[e+2]]+P[t[e+3]]+"-"+P[t[e+4]]+P[t[e+5]]+"-"+P[t[e+6]]+P[t[e+7]]+"-"+P[t[e+8]]+P[t[e+9]]+"-"+P[t[e+10]]+P[t[e+11]]+P[t[e+12]]+P[t[e+13]]+P[t[e+14]]+P[t[e+15]]).toLowerCase()}const na={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Dd(t,e,n){if(na.randomUUID&&!e&&!t)return na.randomUUID();t=t||{};const r=t.random||(t.rng||Nd)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,e){n=n||0;for(let s=0;s<16;++s)e[n+s]=r[s];return e}return _d(r)}async function ra(){const t=await fetch("https://chat.openai.com/api/auth/session");if(t.status===403)throw new Error("CLOUDFLARE");const e=await t.json().catch(()=>({}));if(!e.accessToken)throw new Error("UNAUTHORIZED");return e}function Cd({listen:t=!1,...e}={}){return ks("chatgpt_session",void 0,{listen:t,...e})}function Fd(t){return{error:["UNAUTHORIZED","CLOUDFLARE"].includes(t.message)?t.message:"UNAUTHORIZED"}}function $d(t){let e,n,r,s,i,a,o;return l(),{feed:u,reset:l};function l(){e=!0,n="",r=0,s=-1,i=void 0,a=void 0,o=""}function u(g){n=n?n+g:g,e&&Rd(n)&&(n=n.slice(sa.length)),e=!1;const d=n.length;let c=0,h=!1;for(;c<d;){h&&(n[c]===`
`&&++c,h=!1);let b=-1,y=s,x;for(let E=r;b<0&&E<d;++E)x=n[E],x===":"&&y<0?y=E-c:x==="\r"?(h=!0,b=E-c):x===`
`&&(b=E-c);if(b<0){r=d-c,s=y;break}else r=0,s=-1;f(n,c,y,b),c+=b+1}c===d?n="":c>0&&(n=n.slice(c))}function f(g,d,c,h){if(h===0){o.length>0&&(t({type:"event",id:i,event:a||void 0,data:o.slice(0,-1)}),o="",i=void 0),a=void 0;return}const b=c<0,y=g.slice(d,d+(b?h:c));let x=0;b?x=h:g[d+c+1]===" "?x=c+2:x=c+1;const E=d+x,A=h-x,U=g.slice(E,E+A).toString();if(y==="data")o+=U?"".concat(U,`
`):`
`;else if(y==="event")a=U;else if(y==="id"&&!U.includes("\0"))i=U;else if(y==="retry"){const J=parseInt(U,10);Number.isNaN(J)||t({type:"reconnect-interval",value:J})}}}const sa=[239,187,191];function Rd(t){return sa.every((e,n)=>t.charCodeAt(n)===e)}async function*Pd(t){const e=t.getReader();try{for(;;){const{done:n,value:r}=await e.read();if(n)return;yield r}}finally{e.releaseLock()}}function jd(t,e){const{onMessage:n,...r}=e;return new Promise((s,i)=>{fetch(t,r).then(async a=>{if(a.status===403)throw new Error("CLOUDFARE");if(a.status>=400)throw new Error("UNAUTHORIZED");if(a.status===429)throw new Error("RATE_LIMIT");const o=$d(l=>{l.type==="event"&&(n(l.data),l.data==="[DONE]"&&s())});for await(const l of Pd(a.body)){const u=new TextDecoder().decode(l);o.feed(u)}}).catch(i)})}Ia("chatgpt-message",t=>{const e=Tn(!0),n=Cd({listen:!0}),r=No(()=>!le(e)&&ia(le(n)));let s=new AbortController,i=null;On(e,d=>{setTimeout(()=>t.send({type:"chatgpt.authenticating",data:d}),0)},{immediate:!0,flush:"post",deep:!0}),On(n,d=>{le(e)||(ia(d)?t.send({type:"chatgpt.session",data:d}):Vd(d)?t.send({type:"cloudfare.error"}):t.send({type:"chatgpt.auth"}))},{deep:!0,flush:"post"}),t.onMessage(d=>{switch(d.type){case"chatgpt.ask":return g(d.data);case"chatgpt.abort":s.abort("ABORTED");break}}),ra().catch(Fd).then(d=>{e.value=!1,n.value=d});function a(){return t.send({type:"chatgpt.result",data:null})}function o(){return t.send({type:"chatgpt.auth"})}function l(d){return t.send({type:"chatgpt.error",error:d})}function u(){return t.send({type:"cloudfare.error"})}async function f(d){try{const b=(await fetch("https://chat.openai.com/backend-api/models",{method:"GET",headers:{"Content-Type":"application/json",Authorization:`Bearer ${d}`},credentials:"include"}).then(y=>y.ok?y.json():Promise.reject(y.statusText))).models[0];i=b==null?void 0:b.slug}catch(c){console.error(c)}}async function g(d){if(!le(r))return a(),o();s.abort(),s=new AbortController;const c=s,{accessToken:h}=le(n);i||await f(h);const b={action:"next",messages:[{id:Dd(),role:"user",content:{content_type:"text",parts:d.parts}}],model:i??"text-davinci-002-render",parent_message_id:d.parent_message_id};d.conversation_id&&(b.conversation_id=d.conversation_id);let y;function x(E){return fetch(`https://chat.openai.com/backend-api/conversation/${E}`,{method:"PATCH",headers:{"Content-Type":"application/json",Authorization:`Bearer ${h}`},body:JSON.stringify({is_visible:!1}),credentials:"include"}).catch(()=>!1)}await jd("https://chat.openai.com/backend-api/conversation",{method:"POST",signal:c.signal,headers:{"Content-Type":"application/json",Authorization:`Bearer ${h}`},body:JSON.stringify(b),onMessage(E){var J,Je,ae;if(E==="[DONE]")return Ht(y)&&x(y),t.send({type:"chatgpt.result",data:null});if(!Ld(E))return;const A=JSON.parse(E),U=(ae=(Je=(J=A.message)==null?void 0:J.content)==null?void 0:Je.parts)==null?void 0:ae[0];U&&(y=A.conversation_id??y,t.send({type:"chatgpt.result",data:{text:U,conversation_id:A.conversation_id,message_id:A.message.id}}))}}).catch(E=>{if(a(),y&&x(y),!(E.name==="AbortError"||c.signal.aborted)){if(E.message==="UNAUTHORIZED")return o();if(E.message==="CLOUDFARE")return u();if(E.message==="RATE_LIMIT")return l("RATE_LIMIT");console.log(E)}})}});function ia(t){return t&&t.accessToken!==void 0}function Vd(t){return t&&t.error==="CLOUDFLARE"}function Ld(t){try{return JSON.parse(t),!0}catch{return!1}}It("chatgpt-session",()=>ra().catch(t=>({error:["UNAUTHORIZED","CLOUDFLARE"].includes(t.message)?t.message:"UNAUTHORIZED"})));const on="cron.jobs.clear";async function Ud(){const t=await chrome.alarms.get(on),e=6,n=e*60;if((t==null?void 0:t.name)!==on||(t==null?void 0:t.periodInMinutes)!==n){const r=new Date,s=r.setHours(r.getHours()+e);await chrome.alarms.create(on,{periodInMinutes:n,when:s})}}Ud(),chrome.alarms.onAlarm.addListener(async t=>{if(t.name!==on)return;const e=await Ns(),n=new Date;e.value=le(e).filter(r=>C.fromDateTimes(new Date(r.postedOn),n).count("days")<3)}),It("open-option-ui",({data:t})=>{chrome.runtime.openOptionsPage(),t&&setTimeout(()=>{mr("goto-route",t,"options")},500)});const aa=["dev","development"].includes("production".toLowerCase());chrome.action.onClicked.addListener(()=>{chrome.runtime.openOptionsPage()}),chrome.runtime.onMessageExternal.addListener((t,e)=>{const n=new URL(aa?"http://localhost:3000/":"https://upcat.app/");new URL(e.url).origin===n.origin&&t.type==="open-options-ui"&&chrome.runtime.openOptionsPage()}),chrome.runtime.onInstalled.addListener(t=>{if(t.reason==="install"){const e=aa?"http://localhost:3000/install-success":"https://upcat.app/install-success";return chrome.tabs.create({url:e,active:!0})}})})();
Function Calls
None |
Stats
MD5 | 872303c686b45c7766419885e1783da2 |
Eval Count | 0 |
Decode Time | 304 ms |