linkfeed-pro 1.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/.claude/settings.local.json +9 -0
  2. package/.output/chrome-mv3/_locales/de/messages.json +214 -0
  3. package/.output/chrome-mv3/_locales/en/messages.json +214 -0
  4. package/.output/chrome-mv3/_locales/es/messages.json +214 -0
  5. package/.output/chrome-mv3/_locales/fr/messages.json +214 -0
  6. package/.output/chrome-mv3/_locales/hi/messages.json +214 -0
  7. package/.output/chrome-mv3/_locales/id/messages.json +214 -0
  8. package/.output/chrome-mv3/_locales/it/messages.json +214 -0
  9. package/.output/chrome-mv3/_locales/nl/messages.json +214 -0
  10. package/.output/chrome-mv3/_locales/pl/messages.json +214 -0
  11. package/.output/chrome-mv3/_locales/pt_BR/messages.json +214 -0
  12. package/.output/chrome-mv3/_locales/pt_PT/messages.json +214 -0
  13. package/.output/chrome-mv3/_locales/tr/messages.json +214 -0
  14. package/.output/chrome-mv3/assets/popup-Z_g1HFs5.css +1 -0
  15. package/.output/chrome-mv3/background.js +42 -0
  16. package/.output/chrome-mv3/chunks/popup-IxiPwS1E.js +42 -0
  17. package/.output/chrome-mv3/content-scripts/content.js +179 -0
  18. package/.output/chrome-mv3/icon-128.png +0 -0
  19. package/.output/chrome-mv3/icon-16.png +0 -0
  20. package/.output/chrome-mv3/icon-48.png +0 -0
  21. package/.output/chrome-mv3/icon.svg +9 -0
  22. package/.output/chrome-mv3/manifest.json +1 -0
  23. package/.output/chrome-mv3/popup.html +247 -0
  24. package/.wxt/eslint-auto-imports.mjs +56 -0
  25. package/.wxt/tsconfig.json +28 -0
  26. package/.wxt/types/globals.d.ts +15 -0
  27. package/.wxt/types/i18n.d.ts +593 -0
  28. package/.wxt/types/imports-module.d.ts +20 -0
  29. package/.wxt/types/imports.d.ts +50 -0
  30. package/.wxt/types/paths.d.ts +32 -0
  31. package/.wxt/wxt.d.ts +7 -0
  32. package/entrypoints/background.ts +112 -0
  33. package/entrypoints/content.ts +656 -0
  34. package/entrypoints/popup/main.ts +452 -0
  35. package/entrypoints/popup/modules/auth-modal.ts +219 -0
  36. package/entrypoints/popup/modules/settings.ts +78 -0
  37. package/entrypoints/popup/modules/ui-state.ts +95 -0
  38. package/entrypoints/popup/style.css +844 -0
  39. package/entrypoints/popup.html +261 -0
  40. package/lib/constants.ts +9 -0
  41. package/lib/device-meta.ts +173 -0
  42. package/lib/i18n.ts +201 -0
  43. package/lib/license.ts +470 -0
  44. package/lib/selectors.ts +24 -0
  45. package/lib/storage.ts +95 -0
  46. package/lib/telemetry.ts +94 -0
  47. package/package.json +30 -0
  48. package/public/_locales/de/messages.json +214 -0
  49. package/public/_locales/en/messages.json +214 -0
  50. package/public/_locales/es/messages.json +214 -0
  51. package/public/_locales/fr/messages.json +214 -0
  52. package/public/_locales/hi/messages.json +214 -0
  53. package/public/_locales/id/messages.json +214 -0
  54. package/public/_locales/it/messages.json +214 -0
  55. package/public/_locales/nl/messages.json +214 -0
  56. package/public/_locales/pl/messages.json +214 -0
  57. package/public/_locales/pt_BR/messages.json +214 -0
  58. package/public/_locales/pt_PT/messages.json +214 -0
  59. package/public/_locales/tr/messages.json +214 -0
  60. package/public/icon-128.png +0 -0
  61. package/public/icon-16.png +0 -0
  62. package/public/icon-48.png +0 -0
  63. package/public/icon.svg +9 -0
  64. package/tsconfig.json +3 -0
  65. package/wxt.config.ts +50 -0
@@ -0,0 +1,179 @@
1
+ var content=(function(){"use strict";function xa(e){return e}const ie=globalThis.browser?.runtime?.id?globalThis.browser:globalThis.chrome,se=ie,ln=72;var nt=Object.prototype.hasOwnProperty;function Ae(e,t){var n,r;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&Ae(e[r],t[r]););return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(nt.call(e,n)&&++r&&!nt.call(t,n)||!(n in t)||!Ae(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}const dn=new Error("request for lock canceled");var fn=function(e,t,n,r){function o(s){return s instanceof n?s:new n(function(i){i(s)})}return new(n||(n=Promise))(function(s,i){function a(p){try{l(r.next(p))}catch(_){i(_)}}function c(p){try{l(r.throw(p))}catch(_){i(_)}}function l(p){p.done?s(p.value):o(p.value).then(a,c)}l((r=r.apply(e,t||[])).next())})};class hn{constructor(t,n=dn){this._value=t,this._cancelError=n,this._queue=[],this._weightedWaiters=[]}acquire(t=1,n=0){if(t<=0)throw new Error(`invalid weight ${t}: must be positive`);return new Promise((r,o)=>{const s={resolve:r,reject:o,weight:t,priority:n},i=rt(this._queue,a=>n<=a.priority);i===-1&&t<=this._value?this._dispatchItem(s):this._queue.splice(i+1,0,s)})}runExclusive(t){return fn(this,arguments,void 0,function*(n,r=1,o=0){const[s,i]=yield this.acquire(r,o);try{return yield n(s)}finally{i()}})}waitForUnlock(t=1,n=0){if(t<=0)throw new Error(`invalid weight ${t}: must be positive`);return this._couldLockImmediately(t,n)?Promise.resolve():new Promise(r=>{this._weightedWaiters[t-1]||(this._weightedWaiters[t-1]=[]),pn(this._weightedWaiters[t-1],{resolve:r,priority:n})})}isLocked(){return this._value<=0}getValue(){return this._value}setValue(t){this._value=t,this._dispatchQueue()}release(t=1){if(t<=0)throw new Error(`invalid weight ${t}: must be positive`);this._value+=t,this._dispatchQueue()}cancel(){this._queue.forEach(t=>t.reject(this._cancelError)),this._queue=[]}_dispatchQueue(){for(this._drainUnlockWaiters();this._queue.length>0&&this._queue[0].weight<=this._value;)this._dispatchItem(this._queue.shift()),this._drainUnlockWaiters()}_dispatchItem(t){const n=this._value;this._value-=t.weight,t.resolve([n,this._newReleaser(t.weight)])}_newReleaser(t){let n=!1;return()=>{n||(n=!0,this.release(t))}}_drainUnlockWaiters(){if(this._queue.length===0)for(let t=this._value;t>0;t--){const n=this._weightedWaiters[t-1];n&&(n.forEach(r=>r.resolve()),this._weightedWaiters[t-1]=[])}else{const t=this._queue[0].priority;for(let n=this._value;n>0;n--){const r=this._weightedWaiters[n-1];if(!r)continue;const o=r.findIndex(s=>s.priority<=t);(o===-1?r:r.splice(0,o)).forEach((s=>s.resolve()))}}}_couldLockImmediately(t,n){return(this._queue.length===0||this._queue[0].priority<n)&&t<=this._value}}function pn(e,t){const n=rt(e,r=>t.priority<=r.priority);e.splice(n+1,0,t)}function rt(e,t){for(let n=e.length-1;n>=0;n--)if(t(e[n]))return n;return-1}var mn=function(e,t,n,r){function o(s){return s instanceof n?s:new n(function(i){i(s)})}return new(n||(n=Promise))(function(s,i){function a(p){try{l(r.next(p))}catch(_){i(_)}}function c(p){try{l(r.throw(p))}catch(_){i(_)}}function l(p){p.done?s(p.value):o(p.value).then(a,c)}l((r=r.apply(e,t||[])).next())})};class gn{constructor(t){this._semaphore=new hn(1,t)}acquire(){return mn(this,arguments,void 0,function*(t=0){const[,n]=yield this._semaphore.acquire(1,t);return n})}runExclusive(t,n=0){return this._semaphore.runExclusive(()=>t(),1,n)}isLocked(){return this._semaphore.isLocked()}waitForUnlock(t=0){return this._semaphore.waitForUnlock(1,t)}release(){this._semaphore.isLocked()&&this._semaphore.release()}cancel(){return this._semaphore.cancel()}}const M=_n();function _n(){const e={local:fe("local"),session:fe("session"),sync:fe("sync"),managed:fe("managed")},t=d=>{const h=e[d];if(h==null){const f=Object.keys(e).join(", ");throw Error(`Invalid area "${d}". Options: ${f}`)}return h},n=d=>{const h=d.indexOf(":"),f=d.substring(0,h),m=d.substring(h+1);if(m==null)throw Error(`Storage key should be in the form of "area:key", but received "${d}"`);return{driverArea:f,driverKey:m,driver:t(f)}},r=d=>d+"$",o=(d,h)=>{const f={...d};return Object.entries(h).forEach(([m,g])=>{g==null?delete f[m]:f[m]=g}),f},s=(d,h)=>d??h??null,i=d=>typeof d=="object"&&!Array.isArray(d)?d:{},a=async(d,h,f)=>{const m=await d.getItem(h);return s(m,f?.fallback??f?.defaultValue)},c=async(d,h)=>{const f=r(h),m=await d.getItem(f);return i(m)},l=async(d,h,f)=>{await d.setItem(h,f??null)},p=async(d,h,f)=>{const m=r(h),g=i(await d.getItem(m));await d.setItem(m,o(g,f))},_=async(d,h,f)=>{if(await d.removeItem(h),f?.removeMeta){const m=r(h);await d.removeItem(m)}},v=async(d,h,f)=>{const m=r(h);if(f==null)await d.removeItem(m);else{const g=i(await d.getItem(m));[f].flat().forEach(y=>delete g[y]),await d.setItem(m,g)}},w=(d,h,f)=>d.watch(h,f);return{getItem:async(d,h)=>{const{driver:f,driverKey:m}=n(d);return await a(f,m,h)},getItems:async d=>{const h=new Map,f=new Map,m=[];d.forEach(y=>{let z,I;typeof y=="string"?z=y:"getValue"in y?(z=y.key,I={fallback:y.fallback}):(z=y.key,I=y.options),m.push(z);const{driverArea:L,driverKey:Z}=n(z),D=h.get(L)??[];h.set(L,D.concat(Z)),f.set(z,I)});const g=new Map;return await Promise.all(Array.from(h.entries()).map(async([y,z])=>{(await e[y].getItems(z)).forEach(L=>{const Z=`${y}:${L.key}`,D=f.get(Z),F=s(L.value,D?.fallback??D?.defaultValue);g.set(Z,F)})})),m.map(y=>({key:y,value:g.get(y)}))},getMeta:async d=>{const{driver:h,driverKey:f}=n(d);return await c(h,f)},getMetas:async d=>{const h=d.map(g=>{const y=typeof g=="string"?g:g.key,{driverArea:z,driverKey:I}=n(y);return{key:y,driverArea:z,driverKey:I,driverMetaKey:r(I)}}),f=h.reduce((g,y)=>(g[y.driverArea]??=[],g[y.driverArea].push(y),g),{}),m={};return await Promise.all(Object.entries(f).map(async([g,y])=>{const z=await ie.storage[g].get(y.map(I=>I.driverMetaKey));y.forEach(I=>{m[I.key]=z[I.driverMetaKey]??{}})})),h.map(g=>({key:g.key,meta:m[g.key]}))},setItem:async(d,h)=>{const{driver:f,driverKey:m}=n(d);await l(f,m,h)},setItems:async d=>{const h={};d.forEach(f=>{const{driverArea:m,driverKey:g}=n("key"in f?f.key:f.item.key);h[m]??=[],h[m].push({key:g,value:f.value})}),await Promise.all(Object.entries(h).map(async([f,m])=>{await t(f).setItems(m)}))},setMeta:async(d,h)=>{const{driver:f,driverKey:m}=n(d);await p(f,m,h)},setMetas:async d=>{const h={};d.forEach(f=>{const{driverArea:m,driverKey:g}=n("key"in f?f.key:f.item.key);h[m]??=[],h[m].push({key:g,properties:f.meta})}),await Promise.all(Object.entries(h).map(async([f,m])=>{const g=t(f),y=m.map(({key:Z})=>r(Z)),z=await g.getItems(y),I=Object.fromEntries(z.map(({key:Z,value:D})=>[Z,i(D)])),L=m.map(({key:Z,properties:D})=>{const F=r(Z);return{key:F,value:o(I[F]??{},D)}});await g.setItems(L)}))},removeItem:async(d,h)=>{const{driver:f,driverKey:m}=n(d);await _(f,m,h)},removeItems:async d=>{const h={};d.forEach(f=>{let m,g;typeof f=="string"?m=f:"getValue"in f?m=f.key:"item"in f?(m=f.item.key,g=f.options):(m=f.key,g=f.options);const{driverArea:y,driverKey:z}=n(m);h[y]??=[],h[y].push(z),g?.removeMeta&&h[y].push(r(z))}),await Promise.all(Object.entries(h).map(async([f,m])=>{await t(f).removeItems(m)}))},clear:async d=>{await t(d).clear()},removeMeta:async(d,h)=>{const{driver:f,driverKey:m}=n(d);await v(f,m,h)},snapshot:async(d,h)=>{const m=await t(d).snapshot();return h?.excludeKeys?.forEach(g=>{delete m[g],delete m[r(g)]}),m},restoreSnapshot:async(d,h)=>{await t(d).restoreSnapshot(h)},watch:(d,h)=>{const{driver:f,driverKey:m}=n(d);return w(f,m,h)},unwatch(){Object.values(e).forEach(d=>{d.unwatch()})},defineItem:(d,h)=>{const{driver:f,driverKey:m}=n(d),{version:g=1,migrations:y={},onMigrationComplete:z,debug:I=!1}=h??{};if(g<1)throw Error("Storage item version cannot be less than 1. Initial versions should be set to 1, not 0.");const L=async()=>{const A=r(m),[{value:q},{value:Ce}]=await f.getItems([m,A]);if(q==null)return;const re=Ce?.v??1;if(re>g)throw Error(`Version downgrade detected (v${re} -> v${g}) for "${d}"`);if(re===g)return;I===!0&&console.debug(`[@wxt-dev/storage] Running storage migration for ${d}: v${re} -> v${g}`);const Ra=Array.from({length:g-re},(Pe,tt)=>re+tt+1);let oe=q;for(const Pe of Ra)try{oe=await y?.[Pe]?.(oe)??oe,I===!0&&console.debug(`[@wxt-dev/storage] Storage migration processed for version: v${Pe}`)}catch(tt){throw new vn(d,Pe,{cause:tt})}await f.setItems([{key:m,value:oe},{key:A,value:{...Ce,v:g}}]),I===!0&&console.debug(`[@wxt-dev/storage] Storage migration completed for ${d} v${g}`,{migratedValue:oe}),z?.(oe,g)},Z=h?.migrations==null?Promise.resolve():L().catch(A=>{console.error(`[@wxt-dev/storage] Migration failed for ${d}`,A)}),D=new gn,F=()=>h?.fallback??h?.defaultValue??null,cn=()=>D.runExclusive(async()=>{const A=await f.getItem(m);if(A!=null||h?.init==null)return A;const q=await h.init();return await f.setItem(m,q),q});return Z.then(cn),{key:d,get defaultValue(){return F()},get fallback(){return F()},getValue:async()=>(await Z,h?.init?await cn():await a(f,m,h)),getMeta:async()=>(await Z,await c(f,m)),setValue:async A=>(await Z,await l(f,m,A)),setMeta:async A=>(await Z,await p(f,m,A)),removeValue:async A=>(await Z,await _(f,m,A)),removeMeta:async A=>(await Z,await v(f,m,A)),watch:A=>w(f,m,(q,Ce)=>A(q??F(),Ce??F())),migrate:L}}}}function fe(e){const t=()=>{if(ie.runtime==null)throw Error(["'wxt/storage' must be loaded in a web extension environment",`
2
+ - If thrown during a build, see https://github.com/wxt-dev/wxt/issues/371`,` - If thrown during tests, mock 'wxt/browser' correctly. See https://wxt.dev/guide/go-further/testing.html
3
+ `].join(`
4
+ `));if(ie.storage==null)throw Error("You must add the 'storage' permission to your manifest to use 'wxt/storage'");const r=ie.storage[e];if(r==null)throw Error(`"browser.storage.${e}" is undefined`);return r},n=new Set;return{getItem:async r=>(await t().get(r))[r],getItems:async r=>{const o=await t().get(r);return r.map(s=>({key:s,value:o[s]??null}))},setItem:async(r,o)=>{o==null?await t().remove(r):await t().set({[r]:o})},setItems:async r=>{const o=r.reduce((s,{key:i,value:a})=>(s[i]=a,s),{});await t().set(o)},removeItem:async r=>{await t().remove(r)},removeItems:async r=>{await t().remove(r)},clear:async()=>{await t().clear()},snapshot:async()=>await t().get(),restoreSnapshot:async r=>{await t().set(r)},watch(r,o){const s=i=>{const a=i[r];a!=null&&(Ae(a.newValue,a.oldValue)||o(a.newValue??null,a.oldValue??null))};return t().onChanged.addListener(s),n.add(s),()=>{t().onChanged.removeListener(s),n.delete(s)}},unwatch(){n.forEach(r=>{t().onChanged.removeListener(r)}),n.clear()}}}class vn extends Error{constructor(t,n,r){super(`v${n} migration failed for "${t}"`,r),this.key=t,this.version=n}}const wn={globalEnabled:!0,hideSidebars:!0,hidePromoted:!1,feedWidth:1500,feedSpacing:40,autoExpandPosts:!0,hideRemovedFeedCards:!0,hideStartPost:!1,hideMessenger:!1,hideNavBar:!1,fontSize:20},Re=M.defineItem("local:settings",{fallback:wn});M.defineItem("local:deviceId",{init:()=>crypto.randomUUID()}),M.defineItem("local:userEmail",{fallback:null});const xe=M.defineItem("local:licenseState",{fallback:null}),yn=M.defineItem("local:deviceToken",{fallback:null}),ot=M.defineItem("local:licenseRefresh",{fallback:{failureCount:0,retryAfter:0}});M.defineItem("local:telemetry:identitySent",{fallback:{email:null,status:null}}),M.defineItem("local:pendingTrial",{fallback:null}),M.defineItem("local:uiLocalePreference",{fallback:"auto"});const it="https://linkfeed.pro",st=["Microsoft Edge","Brave","Google Chrome","Chrome","Chromium"];function bn(e){return/microsoft edge/i.test(e)?"Edge":/brave/i.test(e)?"Brave":/google chrome/i.test(e)||/chromium/i.test(e)||/chrome/i.test(e)?"Chrome":/firefox/i.test(e)?"Firefox":/safari/i.test(e)?"Safari":e}function H(e){return e&&e.split(".")[0]||void 0}function En(e){if(!e?.length)return{};const t=e.filter(o=>!/not.?a.?brand/i.test(o.brand));if(!t.length)return{};const r=[...t].sort((o,s)=>{const i=st.findIndex(c=>c.toLowerCase()===o.brand.toLowerCase()),a=st.findIndex(c=>c.toLowerCase()===s.brand.toLowerCase());return(i===-1?999:i)-(a===-1?999:a)})[0];return r?{name:bn(r.brand),version:H(r.version)}:{}}function zn(e){const t=e.match(/Edg\/([\d.]+)/);if(t)return{name:"Edge",version:H(t[1])};const n=e.match(/Chrome\/([\d.]+)/);if(n)return{name:"Chrome",version:H(n[1])};const r=e.match(/Firefox\/([\d.]+)/);if(r)return{name:"Firefox",version:H(r[1])};const o=e.match(/Version\/([\d.]+).*Safari/);return o?{name:"Safari",version:H(o[1])}:{}}function Sn(e){return/iPad/i.test(e)?{name:"iOS",device:"iPad"}:/iPhone/i.test(e)?{name:"iOS",device:"iPhone"}:/Android/i.test(e)?{name:"Android"}:/Mac OS X|Macintosh/i.test(e)?{name:"macOS"}:/Windows NT/i.test(e)?{name:"Windows"}:/CrOS/i.test(e)?{name:"ChromeOS"}:/Linux/i.test(e)?{name:"Linux"}:{}}function kn(e){if(e)return/mac/i.test(e)?"macOS":/windows/i.test(e)?"Windows":/android/i.test(e)?"Android":/ios/i.test(e)?"iOS":/linux/i.test(e)?"Linux":/chrome os/i.test(e)?"ChromeOS":e}function $n(e,t){const n=H(t);if(n)return e==="Windows"?n==="15"?"11":n==="10"?"10":n:n}function On(e,t){if(t)return t;if(e)return e==="macOS"?"Mac":e==="Windows"?"Windows PC":e==="Linux"?"Linux PC":e==="ChromeOS"?"Chromebook":e==="Android"?"Android":e==="iOS"?"iPhone":e}async function Tn(){if(typeof navigator>"u")return null;const e=navigator.userAgent||"",t=navigator.userAgentData;let n=t?.platform,r,o;if(t?.getHighEntropyValues)try{const d=await t.getHighEntropyValues(["platform","platformVersion","fullVersionList"]);n=d.platform||n,r=d.platformVersion,o=d.fullVersionList}catch{}const s=Sn(e),i=kn(n||s.name),a=$n(i,r),c=En(o||t?.brands),l=zn(e),p=c.name||l.name,_=c.version||l.version,w={label:On(i,s.device),osName:i,osVersion:a,browserName:p,browserVersion:_};return Object.values(w).some(d=>!!d)?w:null}const In=["en","fr","de","es","pt-pt","pt-br","it","nl","pl","tr","id","hi"];new Set(In);function u(e,t,n){function r(a,c){if(a._zod||Object.defineProperty(a,"_zod",{value:{def:c,constr:i,traits:new Set},enumerable:!1}),a._zod.traits.has(e))return;a._zod.traits.add(e),t(a,c);const l=i.prototype,p=Object.keys(l);for(let _=0;_<p.length;_++){const v=p[_];v in a||(a[v]=l[v].bind(a))}}const o=n?.Parent??Object;class s extends o{}Object.defineProperty(s,"name",{value:e});function i(a){var c;const l=n?.Parent?new s:this;r(l,a),(c=l._zod).deferred??(c.deferred=[]);for(const p of l._zod.deferred)p();return l}return Object.defineProperty(i,"init",{value:r}),Object.defineProperty(i,Symbol.hasInstance,{value:a=>n?.Parent&&a instanceof n.Parent?!0:a?._zod?.traits?.has(e)}),Object.defineProperty(i,"name",{value:e}),i}class G extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class at extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const ct={};function K(e){return ct}function ut(e){const t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,o])=>t.indexOf(+r)===-1).map(([r,o])=>o)}function Le(e,t){return typeof t=="bigint"?t.toString():t}function Ne(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function je(e){return e==null}function De(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}const lt=Symbol("evaluating");function S(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==lt)return r===void 0&&(r=lt,r=n()),r},set(o){Object.defineProperty(e,t,{value:o})},configurable:!0})}function B(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function U(...e){const t={};for(const n of e){const r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function dt(e){return JSON.stringify(e)}function Zn(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const ft="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function he(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const Cn=Ne(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function ae(e){if(he(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(he(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function ht(e){return ae(e)?{...e}:Array.isArray(e)?[...e]:e}const Pn=new Set(["string","number","symbol"]);function pe(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function V(e,t,n){const r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function b(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function An(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}function Rn(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const s=U(e._zod.def,{get shape(){const i={};for(const a in t){if(!(a in n.shape))throw new Error(`Unrecognized key: "${a}"`);t[a]&&(i[a]=n.shape[a])}return B(this,"shape",i),i},checks:[]});return V(e,s)}function xn(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const s=U(e._zod.def,{get shape(){const i={...e._zod.def.shape};for(const a in t){if(!(a in n.shape))throw new Error(`Unrecognized key: "${a}"`);t[a]&&delete i[a]}return B(this,"shape",i),i},checks:[]});return V(e,s)}function Ln(e,t){if(!ae(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0){const s=e._zod.def.shape;for(const i in t)if(Object.getOwnPropertyDescriptor(s,i)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const o=U(e._zod.def,{get shape(){const s={...e._zod.def.shape,...t};return B(this,"shape",s),s}});return V(e,o)}function Nn(e,t){if(!ae(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n=U(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t};return B(this,"shape",r),r}});return V(e,n)}function jn(e,t){const n=U(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t._zod.def.shape};return B(this,"shape",r),r},get catchall(){return t._zod.def.catchall},checks:[]});return V(e,n)}function Dn(e,t,n){const o=t._zod.def.checks;if(o&&o.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const i=U(t._zod.def,{get shape(){const a=t._zod.def.shape,c={...a};if(n)for(const l in n){if(!(l in a))throw new Error(`Unrecognized key: "${l}"`);n[l]&&(c[l]=e?new e({type:"optional",innerType:a[l]}):a[l])}else for(const l in a)c[l]=e?new e({type:"optional",innerType:a[l]}):a[l];return B(this,"shape",c),c},checks:[]});return V(t,i)}function Mn(e,t,n){const r=U(t._zod.def,{get shape(){const o=t._zod.def.shape,s={...o};if(n)for(const i in n){if(!(i in s))throw new Error(`Unrecognized key: "${i}"`);n[i]&&(s[i]=new e({type:"nonoptional",innerType:o[i]}))}else for(const i in o)s[i]=new e({type:"nonoptional",innerType:o[i]});return B(this,"shape",s),s}});return V(t,r)}function X(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function pt(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function me(e){return typeof e=="string"?e:e?.message}function J(e,t,n){const r={...e,path:e.path??[]};if(!e.message){const o=me(e.inst?._zod.def?.error?.(e))??me(t?.error?.(e))??me(n.customError?.(e))??me(n.localeError?.(e))??"Invalid input";r.message=o}return delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}function Me(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function ce(...e){const[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}const mt=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,Le,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},gt=u("$ZodError",mt),_t=u("$ZodError",mt,{Parent:Error});function Fn(e,t=n=>n.message){const n={},r=[];for(const o of e.issues)o.path.length>0?(n[o.path[0]]=n[o.path[0]]||[],n[o.path[0]].push(t(o))):r.push(t(o));return{formErrors:r,fieldErrors:n}}function Un(e,t=n=>n.message){const n={_errors:[]},r=o=>{for(const s of o.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(i=>r({issues:i}));else if(s.code==="invalid_key")r({issues:s.issues});else if(s.code==="invalid_element")r({issues:s.issues});else if(s.path.length===0)n._errors.push(t(s));else{let i=n,a=0;for(;a<s.path.length;){const c=s.path[a];a===s.path.length-1?(i[c]=i[c]||{_errors:[]},i[c]._errors.push(t(s))):i[c]=i[c]||{_errors:[]},i=i[c],a++}}};return r(e),n}const Fe=e=>(t,n,r,o)=>{const s=r?Object.assign(r,{async:!1}):{async:!1},i=t._zod.run({value:n,issues:[]},s);if(i instanceof Promise)throw new G;if(i.issues.length){const a=new(o?.Err??e)(i.issues.map(c=>J(c,s,K())));throw ft(a,o?.callee),a}return i.value},Ue=e=>async(t,n,r,o)=>{const s=r?Object.assign(r,{async:!0}):{async:!0};let i=t._zod.run({value:n,issues:[]},s);if(i instanceof Promise&&(i=await i),i.issues.length){const a=new(o?.Err??e)(i.issues.map(c=>J(c,s,K())));throw ft(a,o?.callee),a}return i.value},ge=e=>(t,n,r)=>{const o=r?{...r,async:!1}:{async:!1},s=t._zod.run({value:n,issues:[]},o);if(s instanceof Promise)throw new G;return s.issues.length?{success:!1,error:new(e??gt)(s.issues.map(i=>J(i,o,K())))}:{success:!0,data:s.value}},Vn=ge(_t),_e=e=>async(t,n,r)=>{const o=r?Object.assign(r,{async:!0}):{async:!0};let s=t._zod.run({value:n,issues:[]},o);return s instanceof Promise&&(s=await s),s.issues.length?{success:!1,error:new e(s.issues.map(i=>J(i,o,K())))}:{success:!0,data:s.value}},Kn=_e(_t),Bn=e=>(t,n,r)=>{const o=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Fe(e)(t,n,o)},Jn=e=>(t,n,r)=>Fe(e)(t,n,r),Wn=e=>async(t,n,r)=>{const o=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Ue(e)(t,n,o)},qn=e=>async(t,n,r)=>Ue(e)(t,n,r),Hn=e=>(t,n,r)=>{const o=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return ge(e)(t,n,o)},Gn=e=>(t,n,r)=>ge(e)(t,n,r),Xn=e=>async(t,n,r)=>{const o=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return _e(e)(t,n,o)},Yn=e=>async(t,n,r)=>_e(e)(t,n,r),Qn=/^[cC][^\s-]{8,}$/,er=/^[0-9a-z]+$/,tr=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,nr=/^[0-9a-vA-V]{20}$/,rr=/^[A-Za-z0-9]{27}$/,or=/^[a-zA-Z0-9_-]{21}$/,ir=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,sr=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,vt=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,ar=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,cr="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function ur(){return new RegExp(cr,"u")}const lr=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,dr=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,fr=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,hr=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,pr=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,wt=/^[A-Za-z0-9_-]*$/,mr=/^\+[1-9]\d{6,14}$/,yt="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",gr=new RegExp(`^${yt}$`);function bt(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function _r(e){return new RegExp(`^${bt(e)}$`)}function vr(e){const t=bt({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const r=`${t}(?:${n.join("|")})`;return new RegExp(`^${yt}T(?:${r})$`)}const wr=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},yr=/^(?:true|false)$/i,br=/^[^A-Z]*$/,Er=/^[^a-z]*$/,N=u("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),zr=u("$ZodCheckMaxLength",(e,t)=>{var n;N.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!je(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<o&&(r._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{const o=r.value;if(o.length<=t.maximum)return;const i=Me(o);r.issues.push({origin:i,code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),Sr=u("$ZodCheckMinLength",(e,t)=>{var n;N.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!je(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>o&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{const o=r.value;if(o.length>=t.minimum)return;const i=Me(o);r.issues.push({origin:i,code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),kr=u("$ZodCheckLengthEquals",(e,t)=>{var n;N.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!je(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag;o.minimum=t.length,o.maximum=t.length,o.length=t.length}),e._zod.check=r=>{const o=r.value,s=o.length;if(s===t.length)return;const i=Me(o),a=s>t.length;r.issues.push({origin:i,...a?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),ve=u("$ZodCheckStringFormat",(e,t)=>{var n,r;N.init(e,t),e._zod.onattach.push(o=>{const s=o._zod.bag;s.format=t.format,t.pattern&&(s.patterns??(s.patterns=new Set),s.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=o=>{t.pattern.lastIndex=0,!t.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:t.format,input:o.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),$r=u("$ZodCheckRegex",(e,t)=>{ve.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Or=u("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=br),ve.init(e,t)}),Tr=u("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Er),ve.init(e,t)}),Ir=u("$ZodCheckIncludes",(e,t)=>{N.init(e,t);const n=pe(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(o=>{const s=o._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(r)}),e._zod.check=o=>{o.value.includes(t.includes,t.position)||o.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:o.value,inst:e,continue:!t.abort})}}),Zr=u("$ZodCheckStartsWith",(e,t)=>{N.init(e,t);const n=new RegExp(`^${pe(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const o=r._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(n)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),Cr=u("$ZodCheckEndsWith",(e,t)=>{N.init(e,t);const n=new RegExp(`.*${pe(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const o=r._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(n)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}}),Pr=u("$ZodCheckOverwrite",(e,t)=>{N.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class Ar{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const r=t.split(`
5
+ `).filter(i=>i),o=Math.min(...r.map(i=>i.length-i.trimStart().length)),s=r.map(i=>i.slice(o)).map(i=>" ".repeat(this.indent*2)+i);for(const i of s)this.content.push(i)}compile(){const t=Function,n=this?.args,o=[...(this?.content??[""]).map(s=>` ${s}`)];return new t(...n,o.join(`
6
+ `))}}const Rr={major:4,minor:3,patch:6},O=u("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Rr;const r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(const o of r)for(const s of o._zod.onattach)s(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const o=(i,a,c)=>{let l=X(i),p;for(const _ of a){if(_._zod.def.when){if(!_._zod.def.when(i))continue}else if(l)continue;const v=i.issues.length,w=_._zod.check(i);if(w instanceof Promise&&c?.async===!1)throw new G;if(p||w instanceof Promise)p=(p??Promise.resolve()).then(async()=>{await w,i.issues.length!==v&&(l||(l=X(i,v)))});else{if(i.issues.length===v)continue;l||(l=X(i,v))}}return p?p.then(()=>i):i},s=(i,a,c)=>{if(X(i))return i.aborted=!0,i;const l=o(a,r,c);if(l instanceof Promise){if(c.async===!1)throw new G;return l.then(p=>e._zod.parse(p,c))}return e._zod.parse(l,c)};e._zod.run=(i,a)=>{if(a.skipChecks)return e._zod.parse(i,a);if(a.direction==="backward"){const l=e._zod.parse({value:i.value,issues:[]},{...a,skipChecks:!0});return l instanceof Promise?l.then(p=>s(p,i,a)):s(l,i,a)}const c=e._zod.parse(i,a);if(c instanceof Promise){if(a.async===!1)throw new G;return c.then(l=>o(l,r,a))}return o(c,r,a)}}S(e,"~standard",()=>({validate:o=>{try{const s=Vn(e,o);return s.success?{value:s.data}:{issues:s.error?.issues}}catch{return Kn(e,o).then(i=>i.success?{value:i.data}:{issues:i.error?.issues})}},vendor:"zod",version:1}))}),Ve=u("$ZodString",(e,t)=>{O.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??wr(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),k=u("$ZodStringFormat",(e,t)=>{ve.init(e,t),Ve.init(e,t)}),xr=u("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=sr),k.init(e,t)}),Lr=u("$ZodUUID",(e,t)=>{if(t.version){const r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(r===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=vt(r))}else t.pattern??(t.pattern=vt());k.init(e,t)}),Nr=u("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=ar),k.init(e,t)}),jr=u("$ZodURL",(e,t)=>{k.init(e,t),e._zod.check=n=>{try{const r=n.value.trim(),o=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(o.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(o.protocol.endsWith(":")?o.protocol.slice(0,-1):o.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=o.href:n.value=r;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),Dr=u("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=ur()),k.init(e,t)}),Mr=u("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=or),k.init(e,t)}),Fr=u("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=Qn),k.init(e,t)}),Ur=u("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=er),k.init(e,t)}),Vr=u("$ZodULID",(e,t)=>{t.pattern??(t.pattern=tr),k.init(e,t)}),Kr=u("$ZodXID",(e,t)=>{t.pattern??(t.pattern=nr),k.init(e,t)}),Br=u("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=rr),k.init(e,t)}),Jr=u("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=vr(t)),k.init(e,t)}),Wr=u("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=gr),k.init(e,t)}),qr=u("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=_r(t)),k.init(e,t)}),Hr=u("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=ir),k.init(e,t)}),Gr=u("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=lr),k.init(e,t),e._zod.bag.format="ipv4"}),Xr=u("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=dr),k.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),Yr=u("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=fr),k.init(e,t)}),Qr=u("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=hr),k.init(e,t),e._zod.check=n=>{const r=n.value.split("/");try{if(r.length!==2)throw new Error;const[o,s]=r;if(!s)throw new Error;const i=Number(s);if(`${i}`!==s)throw new Error;if(i<0||i>128)throw new Error;new URL(`http://[${o}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function Et(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const eo=u("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=pr),k.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{Et(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function to(e){if(!wt.test(e))return!1;const t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return Et(n)}const no=u("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=wt),k.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{to(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),ro=u("$ZodE164",(e,t)=>{t.pattern??(t.pattern=mr),k.init(e,t)});function oo(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[r]=n;if(!r)return!1;const o=JSON.parse(atob(r));return!("typ"in o&&o?.typ!=="JWT"||!o.alg||t&&(!("alg"in o)||o.alg!==t))}catch{return!1}}const io=u("$ZodJWT",(e,t)=>{k.init(e,t),e._zod.check=n=>{oo(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),so=u("$ZodBoolean",(e,t)=>{O.init(e,t),e._zod.pattern=yr,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}const o=n.value;return typeof o=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:o,inst:e}),n}}),ao=u("$ZodUnknown",(e,t)=>{O.init(e,t),e._zod.parse=n=>n}),co=u("$ZodNever",(e,t)=>{O.init(e,t),e._zod.parse=(n,r)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function zt(e,t,n){e.issues.length&&t.issues.push(...pt(n,e.issues)),t.value[n]=e.value}const uo=u("$ZodArray",(e,t)=>{O.init(e,t),e._zod.parse=(n,r)=>{const o=n.value;if(!Array.isArray(o))return n.issues.push({expected:"array",code:"invalid_type",input:o,inst:e}),n;n.value=Array(o.length);const s=[];for(let i=0;i<o.length;i++){const a=o[i],c=t.element._zod.run({value:a,issues:[]},r);c instanceof Promise?s.push(c.then(l=>zt(l,n,i))):zt(c,n,i)}return s.length?Promise.all(s).then(()=>n):n}});function we(e,t,n,r,o){if(e.issues.length){if(o&&!(n in r))return;t.issues.push(...pt(n,e.issues))}e.value===void 0?n in r&&(t.value[n]=void 0):t.value[n]=e.value}function St(e){const t=Object.keys(e.shape);for(const r of t)if(!e.shape?.[r]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${r}": expected a Zod schema`);const n=An(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function kt(e,t,n,r,o,s){const i=[],a=o.keySet,c=o.catchall._zod,l=c.def.type,p=c.optout==="optional";for(const _ in t){if(a.has(_))continue;if(l==="never"){i.push(_);continue}const v=c.run({value:t[_],issues:[]},r);v instanceof Promise?e.push(v.then(w=>we(w,n,_,t,p))):we(v,n,_,t,p)}return i.length&&n.issues.push({code:"unrecognized_keys",keys:i,input:t,inst:s}),e.length?Promise.all(e).then(()=>n):n}const lo=u("$ZodObject",(e,t)=>{if(O.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){const a=t.shape;Object.defineProperty(t,"shape",{get:()=>{const c={...a};return Object.defineProperty(t,"shape",{value:c}),c}})}const r=Ne(()=>St(t));S(e._zod,"propValues",()=>{const a=t.shape,c={};for(const l in a){const p=a[l]._zod;if(p.values){c[l]??(c[l]=new Set);for(const _ of p.values)c[l].add(_)}}return c});const o=he,s=t.catchall;let i;e._zod.parse=(a,c)=>{i??(i=r.value);const l=a.value;if(!o(l))return a.issues.push({expected:"object",code:"invalid_type",input:l,inst:e}),a;a.value={};const p=[],_=i.shape;for(const v of i.keys){const w=_[v],P=w._zod.optout==="optional",d=w._zod.run({value:l[v],issues:[]},c);d instanceof Promise?p.push(d.then(h=>we(h,a,v,l,P))):we(d,a,v,l,P)}return s?kt(p,l,a,c,r.value,e):p.length?Promise.all(p).then(()=>a):a}}),fo=u("$ZodObjectJIT",(e,t)=>{lo.init(e,t);const n=e._zod.parse,r=Ne(()=>St(t)),o=v=>{const w=new Ar(["shape","payload","ctx"]),P=r.value,d=g=>{const y=dt(g);return`shape[${y}]._zod.run({ value: input[${y}], issues: [] }, ctx)`};w.write("const input = payload.value;");const h=Object.create(null);let f=0;for(const g of P.keys)h[g]=`key_${f++}`;w.write("const newResult = {};");for(const g of P.keys){const y=h[g],z=dt(g),L=v[g]?._zod?.optout==="optional";w.write(`const ${y} = ${d(g)};`),L?w.write(`
7
+ if (${y}.issues.length) {
8
+ if (${z} in input) {
9
+ payload.issues = payload.issues.concat(${y}.issues.map(iss => ({
10
+ ...iss,
11
+ path: iss.path ? [${z}, ...iss.path] : [${z}]
12
+ })));
13
+ }
14
+ }
15
+
16
+ if (${y}.value === undefined) {
17
+ if (${z} in input) {
18
+ newResult[${z}] = undefined;
19
+ }
20
+ } else {
21
+ newResult[${z}] = ${y}.value;
22
+ }
23
+
24
+ `):w.write(`
25
+ if (${y}.issues.length) {
26
+ payload.issues = payload.issues.concat(${y}.issues.map(iss => ({
27
+ ...iss,
28
+ path: iss.path ? [${z}, ...iss.path] : [${z}]
29
+ })));
30
+ }
31
+
32
+ if (${y}.value === undefined) {
33
+ if (${z} in input) {
34
+ newResult[${z}] = undefined;
35
+ }
36
+ } else {
37
+ newResult[${z}] = ${y}.value;
38
+ }
39
+
40
+ `)}w.write("payload.value = newResult;"),w.write("return payload;");const m=w.compile();return(g,y)=>m(v,g,y)};let s;const i=he,a=!ct.jitless,l=a&&Cn.value,p=t.catchall;let _;e._zod.parse=(v,w)=>{_??(_=r.value);const P=v.value;return i(P)?a&&l&&w?.async===!1&&w.jitless!==!0?(s||(s=o(t.shape)),v=s(v,w),p?kt([],P,v,w,_,e):v):n(v,w):(v.issues.push({expected:"object",code:"invalid_type",input:P,inst:e}),v)}});function $t(e,t,n,r){for(const s of e)if(s.issues.length===0)return t.value=s.value,t;const o=e.filter(s=>!X(s));return o.length===1?(t.value=o[0].value,o[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(s=>s.issues.map(i=>J(i,r,K())))}),t)}const ho=u("$ZodUnion",(e,t)=>{O.init(e,t),S(e._zod,"optin",()=>t.options.some(o=>o._zod.optin==="optional")?"optional":void 0),S(e._zod,"optout",()=>t.options.some(o=>o._zod.optout==="optional")?"optional":void 0),S(e._zod,"values",()=>{if(t.options.every(o=>o._zod.values))return new Set(t.options.flatMap(o=>Array.from(o._zod.values)))}),S(e._zod,"pattern",()=>{if(t.options.every(o=>o._zod.pattern)){const o=t.options.map(s=>s._zod.pattern);return new RegExp(`^(${o.map(s=>De(s.source)).join("|")})$`)}});const n=t.options.length===1,r=t.options[0]._zod.run;e._zod.parse=(o,s)=>{if(n)return r(o,s);let i=!1;const a=[];for(const c of t.options){const l=c._zod.run({value:o.value,issues:[]},s);if(l instanceof Promise)a.push(l),i=!0;else{if(l.issues.length===0)return l;a.push(l)}}return i?Promise.all(a).then(c=>$t(c,o,e,s)):$t(a,o,e,s)}}),po=u("$ZodIntersection",(e,t)=>{O.init(e,t),e._zod.parse=(n,r)=>{const o=n.value,s=t.left._zod.run({value:o,issues:[]},r),i=t.right._zod.run({value:o,issues:[]},r);return s instanceof Promise||i instanceof Promise?Promise.all([s,i]).then(([c,l])=>Ot(n,c,l)):Ot(n,s,i)}});function Ke(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(ae(e)&&ae(t)){const n=Object.keys(t),r=Object.keys(e).filter(s=>n.indexOf(s)!==-1),o={...e,...t};for(const s of r){const i=Ke(e[s],t[s]);if(!i.valid)return{valid:!1,mergeErrorPath:[s,...i.mergeErrorPath]};o[s]=i.data}return{valid:!0,data:o}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let r=0;r<e.length;r++){const o=e[r],s=t[r],i=Ke(o,s);if(!i.valid)return{valid:!1,mergeErrorPath:[r,...i.mergeErrorPath]};n.push(i.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function Ot(e,t,n){const r=new Map;let o;for(const a of t.issues)if(a.code==="unrecognized_keys"){o??(o=a);for(const c of a.keys)r.has(c)||r.set(c,{}),r.get(c).l=!0}else e.issues.push(a);for(const a of n.issues)if(a.code==="unrecognized_keys")for(const c of a.keys)r.has(c)||r.set(c,{}),r.get(c).r=!0;else e.issues.push(a);const s=[...r].filter(([,a])=>a.l&&a.r).map(([a])=>a);if(s.length&&o&&e.issues.push({...o,keys:s}),X(e))return e;const i=Ke(t.value,n.value);if(!i.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(i.mergeErrorPath)}`);return e.value=i.data,e}const mo=u("$ZodEnum",(e,t)=>{O.init(e,t);const n=ut(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=new RegExp(`^(${n.filter(o=>Pn.has(typeof o)).map(o=>typeof o=="string"?pe(o):o.toString()).join("|")})$`),e._zod.parse=(o,s)=>{const i=o.value;return r.has(i)||o.issues.push({code:"invalid_value",values:n,input:i,inst:e}),o}}),go=u("$ZodTransform",(e,t)=>{O.init(e,t),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new at(e.constructor.name);const o=t.transform(n.value,n);if(r.async)return(o instanceof Promise?o:Promise.resolve(o)).then(i=>(n.value=i,n));if(o instanceof Promise)throw new G;return n.value=o,n}});function Tt(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const It=u("$ZodOptional",(e,t)=>{O.init(e,t),e._zod.optin="optional",e._zod.optout="optional",S(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),S(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${De(n.source)})?$`):void 0}),e._zod.parse=(n,r)=>{if(t.innerType._zod.optin==="optional"){const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(s=>Tt(s,n.value)):Tt(o,n.value)}return n.value===void 0?n:t.innerType._zod.run(n,r)}}),_o=u("$ZodExactOptional",(e,t)=>{It.init(e,t),S(e._zod,"values",()=>t.innerType._zod.values),S(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,r)=>t.innerType._zod.run(n,r)}),vo=u("$ZodNullable",(e,t)=>{O.init(e,t),S(e._zod,"optin",()=>t.innerType._zod.optin),S(e._zod,"optout",()=>t.innerType._zod.optout),S(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${De(n.source)}|null)$`):void 0}),S(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,r)=>n.value===null?n:t.innerType._zod.run(n,r)}),wo=u("$ZodDefault",(e,t)=>{O.init(e,t),e._zod.optin="optional",S(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);if(n.value===void 0)return n.value=t.defaultValue,n;const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(s=>Zt(s,t)):Zt(o,t)}});function Zt(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const yo=u("$ZodPrefault",(e,t)=>{O.init(e,t),e._zod.optin="optional",S(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>(r.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,r))}),bo=u("$ZodNonOptional",(e,t)=>{O.init(e,t),S(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(r=>r!==void 0)):void 0}),e._zod.parse=(n,r)=>{const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(s=>Ct(s,e)):Ct(o,e)}});function Ct(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const Eo=u("$ZodCatch",(e,t)=>{O.init(e,t),S(e._zod,"optin",()=>t.innerType._zod.optin),S(e._zod,"optout",()=>t.innerType._zod.optout),S(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(s=>(n.value=s.value,s.issues.length&&(n.value=t.catchValue({...n,error:{issues:s.issues.map(i=>J(i,r,K()))},input:n.value}),n.issues=[]),n)):(n.value=o.value,o.issues.length&&(n.value=t.catchValue({...n,error:{issues:o.issues.map(s=>J(s,r,K()))},input:n.value}),n.issues=[]),n)}}),zo=u("$ZodPipe",(e,t)=>{O.init(e,t),S(e._zod,"values",()=>t.in._zod.values),S(e._zod,"optin",()=>t.in._zod.optin),S(e._zod,"optout",()=>t.out._zod.optout),S(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,r)=>{if(r.direction==="backward"){const s=t.out._zod.run(n,r);return s instanceof Promise?s.then(i=>ye(i,t.in,r)):ye(s,t.in,r)}const o=t.in._zod.run(n,r);return o instanceof Promise?o.then(s=>ye(s,t.out,r)):ye(o,t.out,r)}});function ye(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}const So=u("$ZodReadonly",(e,t)=>{O.init(e,t),S(e._zod,"propValues",()=>t.innerType._zod.propValues),S(e._zod,"values",()=>t.innerType._zod.values),S(e._zod,"optin",()=>t.innerType?._zod?.optin),S(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(Pt):Pt(o)}});function Pt(e){return e.value=Object.freeze(e.value),e}const ko=u("$ZodCustom",(e,t)=>{N.init(e,t),O.init(e,t),e._zod.parse=(n,r)=>n,e._zod.check=n=>{const r=n.value,o=t.fn(r);if(o instanceof Promise)return o.then(s=>At(s,n,r,e));At(o,n,r,e)}});function At(e,t,n,r){if(!e){const o={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(o.params=r._zod.def.params),t.issues.push(ce(o))}}var Rt;class $o{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){const r=n[0];return this._map.set(t,r),r&&typeof r=="object"&&"id"in r&&this._idmap.set(r.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){const n=t._zod.parent;if(n){const r={...this.get(n)??{}};delete r.id;const o={...r,...this._map.get(t)};return Object.keys(o).length?o:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function Oo(){return new $o}(Rt=globalThis).__zod_globalRegistry??(Rt.__zod_globalRegistry=Oo());const ue=globalThis.__zod_globalRegistry;function To(e,t){return new e({type:"string",...b(t)})}function Io(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...b(t)})}function xt(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...b(t)})}function Zo(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...b(t)})}function Co(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...b(t)})}function Po(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...b(t)})}function Ao(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...b(t)})}function Ro(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...b(t)})}function xo(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...b(t)})}function Lo(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...b(t)})}function No(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...b(t)})}function jo(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...b(t)})}function Do(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...b(t)})}function Mo(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...b(t)})}function Fo(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...b(t)})}function Uo(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...b(t)})}function Vo(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...b(t)})}function Ko(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...b(t)})}function Bo(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...b(t)})}function Jo(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...b(t)})}function Wo(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...b(t)})}function qo(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...b(t)})}function Ho(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...b(t)})}function Go(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...b(t)})}function Xo(e,t){return new e({type:"string",format:"date",check:"string_format",...b(t)})}function Yo(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...b(t)})}function Qo(e,t){return new e({type:"string",format:"duration",check:"string_format",...b(t)})}function ei(e,t){return new e({type:"boolean",...b(t)})}function ti(e){return new e({type:"unknown"})}function ni(e,t){return new e({type:"never",...b(t)})}function Lt(e,t){return new zr({check:"max_length",...b(t),maximum:e})}function be(e,t){return new Sr({check:"min_length",...b(t),minimum:e})}function Nt(e,t){return new kr({check:"length_equals",...b(t),length:e})}function ri(e,t){return new $r({check:"string_format",format:"regex",...b(t),pattern:e})}function oi(e){return new Or({check:"string_format",format:"lowercase",...b(e)})}function ii(e){return new Tr({check:"string_format",format:"uppercase",...b(e)})}function si(e,t){return new Ir({check:"string_format",format:"includes",...b(t),includes:e})}function ai(e,t){return new Zr({check:"string_format",format:"starts_with",...b(t),prefix:e})}function ci(e,t){return new Cr({check:"string_format",format:"ends_with",...b(t),suffix:e})}function Y(e){return new Pr({check:"overwrite",tx:e})}function ui(e){return Y(t=>t.normalize(e))}function li(){return Y(e=>e.trim())}function di(){return Y(e=>e.toLowerCase())}function fi(){return Y(e=>e.toUpperCase())}function hi(){return Y(e=>Zn(e))}function pi(e,t,n){return new e({type:"array",element:t,...b(n)})}function mi(e,t,n){return new e({type:"custom",check:"custom",fn:t,...b(n)})}function gi(e){const t=_i(n=>(n.addIssue=r=>{if(typeof r=="string")n.issues.push(ce(r,n.value,t._zod.def));else{const o=r;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=n.value),o.inst??(o.inst=t),o.continue??(o.continue=!t._zod.def.abort),n.issues.push(ce(o))}},e(n.value,n)));return t}function _i(e,t){const n=new N({check:"custom",...b(t)});return n._zod.check=e,n}function jt(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??ue,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function C(e,t,n={path:[],schemaPath:[]}){var r;const o=e._zod.def,s=t.seen.get(e);if(s)return s.count++,n.schemaPath.includes(e)&&(s.cycle=n.path),s.schema;const i={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,i);const a=e._zod.toJSONSchema?.();if(a)i.schema=a;else{const p={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,i.schema,p);else{const v=i.schema,w=t.processors[o.type];if(!w)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${o.type}`);w(e,t,v,p)}const _=e._zod.parent;_&&(i.ref||(i.ref=_),C(_,t,p),t.seen.get(_).isParent=!0)}const c=t.metadataRegistry.get(e);return c&&Object.assign(i.schema,c),t.io==="input"&&R(e)&&(delete i.schema.examples,delete i.schema.default),t.io==="input"&&i.schema._prefault&&((r=i.schema).default??(r.default=i.schema._prefault)),delete i.schema._prefault,t.seen.get(e).schema}function Dt(e,t){const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=new Map;for(const i of e.seen.entries()){const a=e.metadataRegistry.get(i[0])?.id;if(a){const c=r.get(a);if(c&&c!==i[0])throw new Error(`Duplicate schema id "${a}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(a,i[0])}}const o=i=>{const a=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const _=e.external.registry.get(i[0])?.id,v=e.external.uri??(P=>P);if(_)return{ref:v(_)};const w=i[1].defId??i[1].schema.id??`schema${e.counter++}`;return i[1].defId=w,{defId:w,ref:`${v("__shared")}#/${a}/${w}`}}if(i[1]===n)return{ref:"#"};const l=`#/${a}/`,p=i[1].schema.id??`__schema${e.counter++}`;return{defId:p,ref:l+p}},s=i=>{if(i[1].schema.$ref)return;const a=i[1],{ref:c,defId:l}=o(i);a.def={...a.schema},l&&(a.defId=l);const p=a.schema;for(const _ in p)delete p[_];p.$ref=c};if(e.cycles==="throw")for(const i of e.seen.entries()){const a=i[1];if(a.cycle)throw new Error(`Cycle detected: #/${a.cycle?.join("/")}/<root>
41
+
42
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const i of e.seen.entries()){const a=i[1];if(t===i[0]){s(i);continue}if(e.external){const l=e.external.registry.get(i[0])?.id;if(t!==i[0]&&l){s(i);continue}}if(e.metadataRegistry.get(i[0])?.id){s(i);continue}if(a.cycle){s(i);continue}if(a.count>1&&e.reused==="ref"){s(i);continue}}}function Mt(e,t){const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=i=>{const a=e.seen.get(i);if(a.ref===null)return;const c=a.def??a.schema,l={...c},p=a.ref;if(a.ref=null,p){r(p);const v=e.seen.get(p),w=v.schema;if(w.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(c.allOf=c.allOf??[],c.allOf.push(w)):Object.assign(c,w),Object.assign(c,l),i._zod.parent===p)for(const d in c)d==="$ref"||d==="allOf"||d in l||delete c[d];if(w.$ref&&v.def)for(const d in c)d==="$ref"||d==="allOf"||d in v.def&&JSON.stringify(c[d])===JSON.stringify(v.def[d])&&delete c[d]}const _=i._zod.parent;if(_&&_!==p){r(_);const v=e.seen.get(_);if(v?.schema.$ref&&(c.$ref=v.schema.$ref,v.def))for(const w in c)w==="$ref"||w==="allOf"||w in v.def&&JSON.stringify(c[w])===JSON.stringify(v.def[w])&&delete c[w]}e.override({zodSchema:i,jsonSchema:c,path:a.path??[]})};for(const i of[...e.seen.entries()].reverse())r(i[0]);const o={};if(e.target==="draft-2020-12"?o.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?o.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?o.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){const i=e.external.registry.get(t)?.id;if(!i)throw new Error("Schema is missing an `id` property");o.$id=e.external.uri(i)}Object.assign(o,n.def??n.schema);const s=e.external?.defs??{};for(const i of e.seen.entries()){const a=i[1];a.def&&a.defId&&(s[a.defId]=a.def)}e.external||Object.keys(s).length>0&&(e.target==="draft-2020-12"?o.$defs=s:o.definitions=s);try{const i=JSON.parse(JSON.stringify(o));return Object.defineProperty(i,"~standard",{value:{...t["~standard"],jsonSchema:{input:Ee(t,"input",e.processors),output:Ee(t,"output",e.processors)}},enumerable:!1,writable:!1}),i}catch{throw new Error("Error converting schema to JSON.")}}function R(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const r=e._zod.def;if(r.type==="transform")return!0;if(r.type==="array")return R(r.element,n);if(r.type==="set")return R(r.valueType,n);if(r.type==="lazy")return R(r.getter(),n);if(r.type==="promise"||r.type==="optional"||r.type==="nonoptional"||r.type==="nullable"||r.type==="readonly"||r.type==="default"||r.type==="prefault")return R(r.innerType,n);if(r.type==="intersection")return R(r.left,n)||R(r.right,n);if(r.type==="record"||r.type==="map")return R(r.keyType,n)||R(r.valueType,n);if(r.type==="pipe")return R(r.in,n)||R(r.out,n);if(r.type==="object"){for(const o in r.shape)if(R(r.shape[o],n))return!0;return!1}if(r.type==="union"){for(const o of r.options)if(R(o,n))return!0;return!1}if(r.type==="tuple"){for(const o of r.items)if(R(o,n))return!0;return!!(r.rest&&R(r.rest,n))}return!1}const vi=(e,t={})=>n=>{const r=jt({...n,processors:t});return C(e,r),Dt(r,e),Mt(r,e)},Ee=(e,t,n={})=>r=>{const{libraryOptions:o,target:s}=r??{},i=jt({...o??{},target:s,io:t,processors:n});return C(e,i),Dt(i,e),Mt(i,e)},wi={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},yi=(e,t,n,r)=>{const o=n;o.type="string";const{minimum:s,maximum:i,format:a,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof s=="number"&&(o.minLength=s),typeof i=="number"&&(o.maxLength=i),a&&(o.format=wi[a]??a,o.format===""&&delete o.format,a==="time"&&delete o.format),l&&(o.contentEncoding=l),c&&c.size>0){const p=[...c];p.length===1?o.pattern=p[0].source:p.length>1&&(o.allOf=[...p.map(_=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:_.source}))])}},bi=(e,t,n,r)=>{n.type="boolean"},Ei=(e,t,n,r)=>{n.not={}},zi=(e,t,n,r)=>{},Si=(e,t,n,r)=>{const o=e._zod.def,s=ut(o.entries);s.every(i=>typeof i=="number")&&(n.type="number"),s.every(i=>typeof i=="string")&&(n.type="string"),n.enum=s},ki=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},$i=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},Oi=(e,t,n,r)=>{const o=n,s=e._zod.def,{minimum:i,maximum:a}=e._zod.bag;typeof i=="number"&&(o.minItems=i),typeof a=="number"&&(o.maxItems=a),o.type="array",o.items=C(s.element,t,{...r,path:[...r.path,"items"]})},Ti=(e,t,n,r)=>{const o=n,s=e._zod.def;o.type="object",o.properties={};const i=s.shape;for(const l in i)o.properties[l]=C(i[l],t,{...r,path:[...r.path,"properties",l]});const a=new Set(Object.keys(i)),c=new Set([...a].filter(l=>{const p=s.shape[l]._zod;return t.io==="input"?p.optin===void 0:p.optout===void 0}));c.size>0&&(o.required=Array.from(c)),s.catchall?._zod.def.type==="never"?o.additionalProperties=!1:s.catchall?s.catchall&&(o.additionalProperties=C(s.catchall,t,{...r,path:[...r.path,"additionalProperties"]})):t.io==="output"&&(o.additionalProperties=!1)},Ii=(e,t,n,r)=>{const o=e._zod.def,s=o.inclusive===!1,i=o.options.map((a,c)=>C(a,t,{...r,path:[...r.path,s?"oneOf":"anyOf",c]}));s?n.oneOf=i:n.anyOf=i},Zi=(e,t,n,r)=>{const o=e._zod.def,s=C(o.left,t,{...r,path:[...r.path,"allOf",0]}),i=C(o.right,t,{...r,path:[...r.path,"allOf",1]}),a=l=>"allOf"in l&&Object.keys(l).length===1,c=[...a(s)?s.allOf:[s],...a(i)?i.allOf:[i]];n.allOf=c},Ci=(e,t,n,r)=>{const o=e._zod.def,s=C(o.innerType,t,r),i=t.seen.get(e);t.target==="openapi-3.0"?(i.ref=o.innerType,n.nullable=!0):n.anyOf=[s,{type:"null"}]},Pi=(e,t,n,r)=>{const o=e._zod.def;C(o.innerType,t,r);const s=t.seen.get(e);s.ref=o.innerType},Ai=(e,t,n,r)=>{const o=e._zod.def;C(o.innerType,t,r);const s=t.seen.get(e);s.ref=o.innerType,n.default=JSON.parse(JSON.stringify(o.defaultValue))},Ri=(e,t,n,r)=>{const o=e._zod.def;C(o.innerType,t,r);const s=t.seen.get(e);s.ref=o.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(o.defaultValue)))},xi=(e,t,n,r)=>{const o=e._zod.def;C(o.innerType,t,r);const s=t.seen.get(e);s.ref=o.innerType;let i;try{i=o.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=i},Li=(e,t,n,r)=>{const o=e._zod.def,s=t.io==="input"?o.in._zod.def.type==="transform"?o.out:o.in:o.out;C(s,t,r);const i=t.seen.get(e);i.ref=s},Ni=(e,t,n,r)=>{const o=e._zod.def;C(o.innerType,t,r);const s=t.seen.get(e);s.ref=o.innerType,n.readOnly=!0},Ft=(e,t,n,r)=>{const o=e._zod.def;C(o.innerType,t,r);const s=t.seen.get(e);s.ref=o.innerType},ji=u("ZodISODateTime",(e,t)=>{Jr.init(e,t),$.init(e,t)});function Di(e){return Go(ji,e)}const Mi=u("ZodISODate",(e,t)=>{Wr.init(e,t),$.init(e,t)});function Fi(e){return Xo(Mi,e)}const Ui=u("ZodISOTime",(e,t)=>{qr.init(e,t),$.init(e,t)});function Vi(e){return Yo(Ui,e)}const Ki=u("ZodISODuration",(e,t)=>{Hr.init(e,t),$.init(e,t)});function Bi(e){return Qo(Ki,e)}const x=u("ZodError",(e,t)=>{gt.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>Un(e,n)},flatten:{value:n=>Fn(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,Le,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,Le,2)}},isEmpty:{get(){return e.issues.length===0}}})},{Parent:Error}),Ji=Fe(x),Wi=Ue(x),qi=ge(x),Hi=_e(x),Gi=Bn(x),Xi=Jn(x),Yi=Wn(x),Qi=qn(x),es=Hn(x),ts=Gn(x),ns=Xn(x),rs=Yn(x),T=u("ZodType",(e,t)=>(O.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Ee(e,"input"),output:Ee(e,"output")}}),e.toJSONSchema=vi(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone(U(t,{checks:[...t.checks??[],...n.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]}),{parent:!0}),e.with=e.check,e.clone=(n,r)=>V(e,n,r),e.brand=()=>e,e.register=((n,r)=>(n.add(e,r),e)),e.parse=(n,r)=>Ji(e,n,r,{callee:e.parse}),e.safeParse=(n,r)=>qi(e,n,r),e.parseAsync=async(n,r)=>Wi(e,n,r,{callee:e.parseAsync}),e.safeParseAsync=async(n,r)=>Hi(e,n,r),e.spa=e.safeParseAsync,e.encode=(n,r)=>Gi(e,n,r),e.decode=(n,r)=>Xi(e,n,r),e.encodeAsync=async(n,r)=>Yi(e,n,r),e.decodeAsync=async(n,r)=>Qi(e,n,r),e.safeEncode=(n,r)=>es(e,n,r),e.safeDecode=(n,r)=>ts(e,n,r),e.safeEncodeAsync=async(n,r)=>ns(e,n,r),e.safeDecodeAsync=async(n,r)=>rs(e,n,r),e.refine=(n,r)=>e.check(Gs(n,r)),e.superRefine=n=>e.check(Xs(n)),e.overwrite=n=>e.check(Y(n)),e.optional=()=>qt(e),e.exactOptional=()=>Ns(e),e.nullable=()=>Ht(e),e.nullish=()=>qt(Ht(e)),e.nonoptional=n=>Vs(e,n),e.array=()=>Ts(e),e.or=n=>Cs([e,n]),e.and=n=>As(e,n),e.transform=n=>Xt(e,xs(n)),e.default=n=>Ms(e,n),e.prefault=n=>Us(e,n),e.catch=n=>Bs(e,n),e.pipe=n=>Xt(e,n),e.readonly=()=>qs(e),e.describe=n=>{const r=e.clone();return ue.add(r,{description:n}),r},Object.defineProperty(e,"description",{get(){return ue.get(e)?.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return ue.get(e);const r=e.clone();return ue.add(r,n[0]),r},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=n=>n(e),e)),Ut=u("_ZodString",(e,t)=>{Ve.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,o,s)=>yi(e,r,o);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...r)=>e.check(ri(...r)),e.includes=(...r)=>e.check(si(...r)),e.startsWith=(...r)=>e.check(ai(...r)),e.endsWith=(...r)=>e.check(ci(...r)),e.min=(...r)=>e.check(be(...r)),e.max=(...r)=>e.check(Lt(...r)),e.length=(...r)=>e.check(Nt(...r)),e.nonempty=(...r)=>e.check(be(1,...r)),e.lowercase=r=>e.check(oi(r)),e.uppercase=r=>e.check(ii(r)),e.trim=()=>e.check(li()),e.normalize=(...r)=>e.check(ui(...r)),e.toLowerCase=()=>e.check(di()),e.toUpperCase=()=>e.check(fi()),e.slugify=()=>e.check(hi())}),os=u("ZodString",(e,t)=>{Ve.init(e,t),Ut.init(e,t),e.email=n=>e.check(Io(ss,n)),e.url=n=>e.check(Ro(as,n)),e.jwt=n=>e.check(Ho(Es,n)),e.emoji=n=>e.check(xo(cs,n)),e.guid=n=>e.check(xt(Vt,n)),e.uuid=n=>e.check(Zo(ze,n)),e.uuidv4=n=>e.check(Co(ze,n)),e.uuidv6=n=>e.check(Po(ze,n)),e.uuidv7=n=>e.check(Ao(ze,n)),e.nanoid=n=>e.check(Lo(us,n)),e.guid=n=>e.check(xt(Vt,n)),e.cuid=n=>e.check(No(ls,n)),e.cuid2=n=>e.check(jo(ds,n)),e.ulid=n=>e.check(Do(fs,n)),e.base64=n=>e.check(Jo(ws,n)),e.base64url=n=>e.check(Wo(ys,n)),e.xid=n=>e.check(Mo(hs,n)),e.ksuid=n=>e.check(Fo(ps,n)),e.ipv4=n=>e.check(Uo(ms,n)),e.ipv6=n=>e.check(Vo(gs,n)),e.cidrv4=n=>e.check(Ko(_s,n)),e.cidrv6=n=>e.check(Bo(vs,n)),e.e164=n=>e.check(qo(bs,n)),e.datetime=n=>e.check(Di(n)),e.date=n=>e.check(Fi(n)),e.time=n=>e.check(Vi(n)),e.duration=n=>e.check(Bi(n))});function is(e){return To(os,e)}const $=u("ZodStringFormat",(e,t)=>{k.init(e,t),Ut.init(e,t)}),ss=u("ZodEmail",(e,t)=>{Nr.init(e,t),$.init(e,t)}),Vt=u("ZodGUID",(e,t)=>{xr.init(e,t),$.init(e,t)}),ze=u("ZodUUID",(e,t)=>{Lr.init(e,t),$.init(e,t)}),as=u("ZodURL",(e,t)=>{jr.init(e,t),$.init(e,t)}),cs=u("ZodEmoji",(e,t)=>{Dr.init(e,t),$.init(e,t)}),us=u("ZodNanoID",(e,t)=>{Mr.init(e,t),$.init(e,t)}),ls=u("ZodCUID",(e,t)=>{Fr.init(e,t),$.init(e,t)}),ds=u("ZodCUID2",(e,t)=>{Ur.init(e,t),$.init(e,t)}),fs=u("ZodULID",(e,t)=>{Vr.init(e,t),$.init(e,t)}),hs=u("ZodXID",(e,t)=>{Kr.init(e,t),$.init(e,t)}),ps=u("ZodKSUID",(e,t)=>{Br.init(e,t),$.init(e,t)}),ms=u("ZodIPv4",(e,t)=>{Gr.init(e,t),$.init(e,t)}),gs=u("ZodIPv6",(e,t)=>{Xr.init(e,t),$.init(e,t)}),_s=u("ZodCIDRv4",(e,t)=>{Yr.init(e,t),$.init(e,t)}),vs=u("ZodCIDRv6",(e,t)=>{Qr.init(e,t),$.init(e,t)}),ws=u("ZodBase64",(e,t)=>{eo.init(e,t),$.init(e,t)}),ys=u("ZodBase64URL",(e,t)=>{no.init(e,t),$.init(e,t)}),bs=u("ZodE164",(e,t)=>{ro.init(e,t),$.init(e,t)}),Es=u("ZodJWT",(e,t)=>{io.init(e,t),$.init(e,t)}),zs=u("ZodBoolean",(e,t)=>{so.init(e,t),T.init(e,t),e._zod.processJSONSchema=(n,r,o)=>bi(e,n,r)});function Be(e){return ei(zs,e)}const Ss=u("ZodUnknown",(e,t)=>{ao.init(e,t),T.init(e,t),e._zod.processJSONSchema=(n,r,o)=>zi()});function Kt(){return ti(Ss)}const ks=u("ZodNever",(e,t)=>{co.init(e,t),T.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Ei(e,n,r)});function $s(e){return ni(ks,e)}const Os=u("ZodArray",(e,t)=>{uo.init(e,t),T.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Oi(e,n,r,o),e.element=t.element,e.min=(n,r)=>e.check(be(n,r)),e.nonempty=n=>e.check(be(1,n)),e.max=(n,r)=>e.check(Lt(n,r)),e.length=(n,r)=>e.check(Nt(n,r)),e.unwrap=()=>e.element});function Ts(e,t){return pi(Os,e,t)}const Is=u("ZodObject",(e,t)=>{fo.init(e,t),T.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Ti(e,n,r,o),S(e,"shape",()=>t.shape),e.keyof=()=>Jt(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Kt()}),e.loose=()=>e.clone({...e._zod.def,catchall:Kt()}),e.strict=()=>e.clone({...e._zod.def,catchall:$s()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>Ln(e,n),e.safeExtend=n=>Nn(e,n),e.merge=n=>jn(e,n),e.pick=n=>Rn(e,n),e.omit=n=>xn(e,n),e.partial=(...n)=>Dn(Wt,e,n[0]),e.required=(...n)=>Mn(Gt,e,n[0])});function Bt(e,t){const n={type:"object",shape:e??{},...b(t)};return new Is(n)}const Zs=u("ZodUnion",(e,t)=>{ho.init(e,t),T.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Ii(e,n,r,o),e.options=t.options});function Cs(e,t){return new Zs({type:"union",options:e,...b(t)})}const Ps=u("ZodIntersection",(e,t)=>{po.init(e,t),T.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Zi(e,n,r,o)});function As(e,t){return new Ps({type:"intersection",left:e,right:t})}const Je=u("ZodEnum",(e,t)=>{mo.init(e,t),T.init(e,t),e._zod.processJSONSchema=(r,o,s)=>Si(e,r,o),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(r,o)=>{const s={};for(const i of r)if(n.has(i))s[i]=t.entries[i];else throw new Error(`Key ${i} not found in enum`);return new Je({...t,checks:[],...b(o),entries:s})},e.exclude=(r,o)=>{const s={...t.entries};for(const i of r)if(n.has(i))delete s[i];else throw new Error(`Key ${i} not found in enum`);return new Je({...t,checks:[],...b(o),entries:s})}});function Jt(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new Je({type:"enum",entries:n,...b(t)})}const Rs=u("ZodTransform",(e,t)=>{go.init(e,t),T.init(e,t),e._zod.processJSONSchema=(n,r,o)=>$i(e,n),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new at(e.constructor.name);n.addIssue=s=>{if(typeof s=="string")n.issues.push(ce(s,n.value,t));else{const i=s;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=n.value),i.inst??(i.inst=e),n.issues.push(ce(i))}};const o=t.transform(n.value,n);return o instanceof Promise?o.then(s=>(n.value=s,n)):(n.value=o,n)}});function xs(e){return new Rs({type:"transform",transform:e})}const Wt=u("ZodOptional",(e,t)=>{It.init(e,t),T.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Ft(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function qt(e){return new Wt({type:"optional",innerType:e})}const Ls=u("ZodExactOptional",(e,t)=>{_o.init(e,t),T.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Ft(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function Ns(e){return new Ls({type:"optional",innerType:e})}const js=u("ZodNullable",(e,t)=>{vo.init(e,t),T.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Ci(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function Ht(e){return new js({type:"nullable",innerType:e})}const Ds=u("ZodDefault",(e,t)=>{wo.init(e,t),T.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Ai(e,n,r,o),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Ms(e,t){return new Ds({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():ht(t)}})}const Fs=u("ZodPrefault",(e,t)=>{yo.init(e,t),T.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Ri(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function Us(e,t){return new Fs({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():ht(t)}})}const Gt=u("ZodNonOptional",(e,t)=>{bo.init(e,t),T.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Pi(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function Vs(e,t){return new Gt({type:"nonoptional",innerType:e,...b(t)})}const Ks=u("ZodCatch",(e,t)=>{Eo.init(e,t),T.init(e,t),e._zod.processJSONSchema=(n,r,o)=>xi(e,n,r,o),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Bs(e,t){return new Ks({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const Js=u("ZodPipe",(e,t)=>{zo.init(e,t),T.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Li(e,n,r,o),e.in=t.in,e.out=t.out});function Xt(e,t){return new Js({type:"pipe",in:e,out:t})}const Ws=u("ZodReadonly",(e,t)=>{So.init(e,t),T.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Ni(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function qs(e){return new Ws({type:"readonly",innerType:e})}const Hs=u("ZodCustom",(e,t)=>{ko.init(e,t),T.init(e,t),e._zod.processJSONSchema=(n,r,o)=>ki(e,n)});function Gs(e,t={}){return mi(Hs,e,t)}function Xs(e){return gi(e)}const Ys=Bt({wideFeed:Be(),fontSize:Be(),autoExpandPosts:Be()}),Qs=Bt({status:Jt(["active","trial-active","trial-expired","revoked"]),features:Ys,expiresAt:is().optional()}),le={wideFeed:!1,fontSize:!1,autoExpandPosts:!1},Yt=typeof window>"u",ea=24,ta=1,na=6,We=[300*1e3,1800*1e3,360*60*1e3],Qt=We.length;async function ra(e,t){const n=`${it}${e.startsWith("/")?"":"/"}${e}`,r=new Headers(t?.headers??void 0);if(r.set("x-linkfeed-extension-version",se.runtime.getManifest().version),Yt){const a=await fetch(n,{...t,headers:r}),c=await a.json().catch(()=>null);return{ok:a.ok,status:a.status,data:c}}const o={};r.forEach((a,c)=>{o[c]=a});const s={type:"linkfeed_api_fetch",url:n,method:t?.method||"GET",headers:o,body:typeof t?.body=="string"?t.body:void 0},i=await se.runtime.sendMessage(s);return i||{ok:!1,status:0,data:null}}async function oa(e){try{return await se.runtime.sendMessage({type:"linkfeed_license_refresh",force:!!e?.force})??null}catch{return null}}async function qe(){return await xe.getValue()}async function ia(e){const t={...e,cachedAt:Date.now()};await xe.setValue(t)}function Se(e){const t=ln*60*60*1e3;return Date.now()-e.cachedAt<t}function sa(e){return e.status==="trial-active"?ta*60*60*1e3:e.status==="active"?ea*60*60*1e3:na*60*60*1e3}function aa(e){return Date.now()-e.cachedAt<sa(e)}async function ca(){return await ot.getValue()}async function He(e){await ot.setValue(e)}function en(e){const t=Math.min(Math.max(e-1,0),We.length-1);return We[t]}async function ua(e){const t=await yn.getValue(),n=await qe(),r=await ca(),o=!!e?.force;if(!t)return{status:"revoked",features:le};if(!o&&n&&aa(n))return n;if(!o&&r.retryAfter&&Date.now()<r.retryAfter)return n&&Se(n)?n:{status:"revoked",features:le};if(typeof navigator<"u"&&!navigator.onLine&&n&&Se(n))return console.log("Offline: Using cached license"),n;try{new URL(`${it}/api/license/status`).searchParams.set("deviceToken",t);const i=await Tn(),a=await ra(`/api/license/status?deviceToken=${encodeURIComponent(t)}`,{method:"GET",headers:{"Content-Type":"application/json",...i?{"X-Linkfeed-Device-Meta":JSON.stringify(i)}:{}}});if(!a.ok||!a.data){const l=Math.min(r.failureCount+1,Qt),p=Date.now()+en(l);return await He({failureCount:l,retryAfter:p}),n&&Se(n)?n:{status:"revoked",features:le}}const c=Qs.parse(a.data);return await ia(c),await He({failureCount:0,retryAfter:0}),c}catch{const i=Math.min(r.failureCount+1,Qt),a=Date.now()+en(i);return await He({failureCount:i,retryAfter:a}),n&&Se(n)?n:{status:"revoked",features:le}}}async function la(e){if(Yt)return ua(e);const t=await oa(e);if(t)return t;const n=await qe();return n||{status:"revoked",features:le}}const E={SCROLL_CONTENT:".scaffold-finite-scroll__content",MAIN_GRID:".scaffold-layout__content",FEED_ITEM:".scaffold-finite-scroll__content-item, .feed-shared-update-v2, .feed-shared-update-v1",FEED_SKIP_LINK:"h2.feed-skip-link__container",SIDEBAR_RIGHT:".scaffold-layout__aside",SIDEBAR_LEFT:".scaffold-layout__sidebar",NAV_BAR:'.global-nav, header[role="banner"]',SEE_MORE_BTN:".feed-shared-inline-show-more-text__see-more-less-toggle",POST_CONTAINER:".feed-shared-update-v2, .feed-shared-update-v1",ACTION_BUTTON:'button, a[role="button"], span[role="button"]',SHARE_BOX:".share-box-feed-entry__closed-share-box, .share-box-feed-entry",MESSENGER:".msg-overlay-container, aside.msg-overlay-list-bubble, .msg-overlay-bubble-header",POST_TEXT:".feed-shared-update-v2__description, .feed-shared-text, .update-components-text"},tn={wideFeed:!1,fontSize:!1,autoExpandPosts:!1};let ke={...tn},Ge=null;const da=["post removed from your feed","post removed form your feed","removed from your feed","removed form your feed","publication supprimee de votre fil","supprime de votre fil","publicacion eliminada de tu feed","beitrag wurde aus deinem feed entfernt","post rimosso dal tuo feed","post verwijderd uit je feed","post removido do seu feed","post removido do teu feed","gonderi akisindan kaldirildi"],nn=["undo","annuler","deshacer","ruckgangig","annulla","ongedaan","desfazer","geri al","batalkan"],fa=["not interested","not appropriate","pas interesse","pas approprie","no me interesa","inappropriate for linkedin","no es apropiado para linkedin","nicht interessiert","non interessato"],rn=["promoted","sponsored","sponsorise","patrocinado","gesponsert","sponsorizzato"],ha=[".update-components-actor__sub-description",".update-components-actor__description",".feed-shared-actor__sub-description",".feed-shared-actor__description"],pa={matches:["https://www.linkedin.com/*"],runAt:"document_idle",async main(){let e=await Re.getValue();await on(e),sn(e),Re.watch(async t=>{t&&(await $e(t,ke),sn(t),e=t)}),xe.watch(async t=>{const n=await Re.getValue();await on(n,t??void 0)})}};async function on(e,t){const n=t??await qe();n?.features?await $e(e,n.features):await $e(e,tn)}async function sn(e){e.globalEnabled&&(Ge||(Ge=(async()=>{ke=(await la()).features,await $e(e,ke)})().finally(()=>{Ge=null})))}function ma(){if(document.getElementById("linkfeed-styles"))return;const e=document.createElement("style");e.id="linkfeed-styles",e.textContent=`
43
+ :root {
44
+ --lf-feed-width: 800px;
45
+ --lf-font-size: 16px;
46
+ --lf-feed-gap: 24px;
47
+ }
48
+
49
+ /* Global Disable Handle */
50
+ html:not(.lf-global-enabled) .lf-premium-feature,
51
+ html:not(.lf-global-enabled) .lf-sidebar-feature {
52
+ /* Reset or do nothing - handled by class toggles */
53
+ }
54
+
55
+ .feed-shared-inline-show-more-text:focus,
56
+ .feed-shared-inline-show-more-text:focus-visible,
57
+ .feed-shared-inline-show-more-text__see-more-less-toggle:focus {
58
+ outline: none !important;
59
+ }
60
+
61
+ /* Sidebars */
62
+ html.lf-hide-sidebars ${E.SIDEBAR_RIGHT},
63
+ html.lf-hide-sidebars ${E.SIDEBAR_LEFT} {
64
+ display: none !important;
65
+ }
66
+
67
+ /* Wide Feed */
68
+ html.lf-wide-feed body.render-mode-BIGPIPE {
69
+ display: flex !important;
70
+ justify-content: center !important;
71
+ }
72
+
73
+ html.lf-wide-feed .authentication-outlet,
74
+ html.lf-wide-feed .application-outlet,
75
+ html.lf-wide-feed .scaffold-layout,
76
+ html.lf-wide-feed .scaffold-layout__inner,
77
+ html.lf-wide-feed ${E.MAIN_GRID},
78
+ html.lf-wide-feed .scaffold-layout__main,
79
+ html.lf-wide-feed .core-rail,
80
+ html.lf-wide-feed .scaffold-finite-scroll {
81
+ max-width: var(--lf-feed-width) !important;
82
+ width: 100% !important;
83
+ justify-content: center !important;
84
+ }
85
+
86
+ html.lf-wide-feed ${E.MAIN_GRID} {
87
+ display: block !important;
88
+ margin: 0 auto !important;
89
+ }
90
+
91
+ html.lf-wide-feed ${E.SCROLL_CONTENT} {
92
+ width: 100% !important;
93
+ max-width: 100% !important;
94
+ display: flex !important;
95
+ flex-direction: column !important;
96
+ align-items: center !important;
97
+ gap: var(--lf-feed-gap) !important;
98
+ }
99
+
100
+ html.lf-wide-feed ${E.SCROLL_CONTENT} > * {
101
+ width: 100% !important;
102
+ max-width: 100% !important;
103
+ margin-left: 0 !important;
104
+ margin-right: 0 !important;
105
+ }
106
+
107
+ html.lf-wide-feed ${E.SCROLL_CONTENT} > [data-finite-scroll-hotkey-item],
108
+ html.lf-wide-feed ${E.SCROLL_CONTENT} > .scaffold-finite-scroll__content-item,
109
+ html.lf-wide-feed ${E.SCROLL_CONTENT} > .feed-shared-update-v2,
110
+ html.lf-wide-feed ${E.SCROLL_CONTENT} > .feed-shared-update-v1 {
111
+ border-radius: 8px !important;
112
+ }
113
+
114
+ html.lf-wide-feed ${E.SCROLL_CONTENT} > ${E.FEED_SKIP_LINK} {
115
+ display: none !important;
116
+ margin: 0 !important;
117
+ padding: 0 !important;
118
+ min-height: 0 !important;
119
+ height: 0 !important;
120
+ border: 0 !important;
121
+ }
122
+
123
+ html.lf-wide-feed ${E.POST_CONTAINER},
124
+ html.lf-wide-feed .feed-shared-update-v2__description-wrapper {
125
+ width: 100% !important;
126
+ max-width: 100% !important;
127
+ margin: 0 auto !important;
128
+ }
129
+
130
+ /* Feature Visibility */
131
+ html.lf-hide-start-post ${E.SHARE_BOX} {
132
+ display: none !important;
133
+ }
134
+
135
+ html.lf-hide-messenger ${E.MESSENGER} {
136
+ display: none !important;
137
+ }
138
+
139
+ html.lf-hide-nav-bar ${E.NAV_BAR} {
140
+ display: none !important;
141
+ }
142
+
143
+ html.lf-hide-nav-bar body.render-mode-BIGPIPE {
144
+ padding-top: 0 !important;
145
+ }
146
+
147
+ html.lf-hide-nav-bar main {
148
+ margin-top: 0 !important;
149
+ padding-top: 0 !important;
150
+ }
151
+
152
+ /* Font Size */
153
+ html.lf-custom-font ${E.POST_TEXT} {
154
+ font-size: var(--lf-font-size) !important;
155
+ line-height: 1.6 !important;
156
+ font-weight: 400 !important;
157
+ color: var(--text-color-primary) !important;
158
+ }
159
+
160
+ html.lf-custom-font .update-components-text .break-words,
161
+ html.lf-custom-font .update-components-text span[dir="ltr"],
162
+ html.lf-custom-font .feed-shared-inline-show-more-text .break-words,
163
+ html.lf-custom-font .feed-shared-inline-show-more-text span[dir="ltr"] {
164
+ font-size: var(--lf-font-size) !important;
165
+ line-height: 1.6 !important;
166
+ }
167
+
168
+ html.lf-custom-font.lf-auto-expand .feed-shared-inline-show-more-text {
169
+ width: 100% !important;
170
+ max-width: 100% !important;
171
+ padding-right: 24px !important;
172
+ box-sizing: border-box !important;
173
+ }
174
+
175
+ html.lf-custom-font.lf-auto-expand .feed-shared-update-v2__description-wrapper {
176
+ padding-right: 24px !important;
177
+ }
178
+ `,document.head.appendChild(e)}async function ga(e,t){ma();const n=document.documentElement;if(n.classList.toggle("lf-global-enabled",e.globalEnabled),!e.globalEnabled){n.className=n.className.split(" ").filter(a=>!a.startsWith("lf-")).join(" ");return}const r=e.hideSidebars??e.removeSidebars??!0;n.classList.toggle("lf-hide-sidebars",r),n.classList.toggle("lf-hide-promoted",e.hidePromoted??!1),n.classList.toggle("lf-hide-start-post",e.hideStartPost),n.classList.toggle("lf-hide-messenger",e.hideMessenger),n.classList.toggle("lf-hide-nav-bar",e.hideNavBar);const o=t.wideFeed&&e.feedWidth>600;n.classList.toggle("lf-wide-feed",o),o&&(n.style.setProperty("--lf-feed-width",`${e.feedWidth}px`),n.style.setProperty("--lf-feed-gap",`${e.feedSpacing??24}px`));const s=t.fontSize&&e.fontSize!==14;n.classList.toggle("lf-custom-font",s),s&&n.style.setProperty("--lf-font-size",`${e.fontSize}px`);const i=t.autoExpandPosts&&e.autoExpandPosts;n.classList.toggle("lf-auto-expand",i)}async function $e(e,t){ke=t,await ga(e,t);const n=t.autoExpandPosts||t.fontSize||t.wideFeed,r=e.hidePromoted??!1,o=(e.hideRemovedFeedCards??!0)&&n;an=r,Xe=o,e.globalEnabled&&(r||o)?Sa():ka(),t.autoExpandPosts&&e.globalEnabled&&e.autoExpandPosts?Oa():$a()}let j=null,Q=null,ee=null,te=null,W=null,Xe=!1,an=!1;function _a(e){const t=e.textContent?.toLowerCase()||"";if(t.includes("more")||t.includes("plus")||e.matches(E.SEE_MORE_BTN)){e.click(),e.blur();const n=e.closest(".feed-shared-inline-show-more-text");n&&n.blur()}}function Oe(e){return e?e.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/\s+/g," ").trim():""}function ne(e,t){return t.some(n=>e.includes(n))}function va(e){const t=Oe(`${e.textContent??""} ${e.getAttribute("aria-label")??""}`);return t.length>0&&ne(t,nn)}function Ye(e){const t=Oe(e.innerText||e.textContent);if(!t)return!1;const n=ne(t,da),r=ne(t,nn),o=ne(t,fa);return n&&(r||o)}function wa(e){const t=e.querySelectorAll(ha.join(","));for(const r of t){if(!(r instanceof HTMLElement))continue;const o=Oe(r.innerText||r.textContent);if(o&&ne(o,rn))return!0}const n=e.querySelector("header, .update-components-actor, .feed-shared-actor");if(n instanceof HTMLElement){const r=Oe(n.innerText||n.textContent);if(r&&ne(r,rn))return!0}return!1}function ya(e){const t=e.closest(E.SCROLL_CONTENT);if(!t)return e;let n=e;for(;n?.parentElement&&n.parentElement!==t;)n=n.parentElement;return n?.parentElement===t?n:e}function ba(e){const t=e.closest(E.FEED_ITEM);if(t&&Ye(t))return t;let n=e;for(let r=0;n&&r<8;r+=1){if(Ye(n))return n;n=n.parentElement}return null}function Qe(e){if(e.dataset.lfDismissedCardHidden==="1")return;const t=ya(e),n=t.previousElementSibling;n?.matches(E.FEED_SKIP_LINK)&&n.remove(),t.dataset.lfDismissedCardHidden="1",t.remove()}function Ea(e){const t=e instanceof HTMLElement&&e.matches(E.SCROLL_CONTENT)?e:e instanceof Document?e.querySelector(E.SCROLL_CONTENT):e instanceof HTMLElement?e.closest(E.SCROLL_CONTENT)||e.querySelector(E.SCROLL_CONTENT):null;if(!(t instanceof HTMLElement))return;Array.from(t.children).forEach(r=>{if(!(r instanceof HTMLElement)||!r.matches(E.FEED_SKIP_LINK))return;r.nextElementSibling?.hasAttribute("data-finite-scroll-hotkey-item")||r.remove()})}function za(e=180){W&&clearTimeout(W),W=setTimeout(()=>{W=null,Te(document)},e)}function Te(e){const t=new Set,n=new Set;e instanceof HTMLElement&&e.matches(E.ACTION_BUTTON)&&t.add(e),"querySelectorAll"in e&&e.querySelectorAll(E.ACTION_BUTTON).forEach(r=>{r instanceof HTMLElement&&t.add(r)}),e instanceof HTMLElement&&e.matches(E.FEED_ITEM)&&n.add(e),"querySelectorAll"in e&&e.querySelectorAll(E.FEED_ITEM).forEach(r=>{r instanceof HTMLElement&&n.add(r)}),t.forEach(r=>{if(!Xe||!va(r))return;const o=ba(r);o&&Qe(o)}),n.forEach(r=>{if(Xe&&Ye(r)){Qe(r);return}an&&wa(r)&&Qe(r)}),Ea(e)}function Sa(){ee||!document.body||(Te(document),ee=new MutationObserver(e=>{e.forEach(t=>{if(t.type==="characterData"){const n=t.target.parentElement;n&&Te(n)}t.addedNodes.forEach(n=>{n instanceof HTMLElement&&Te(n)})})}),ee.observe(document.body,{childList:!0,characterData:!0,subtree:!0}),te||(te=e=>{const t=e.target;t&&t.closest(E.ACTION_BUTTON)&&za()},document.addEventListener("click",te,!0)))}function ka(){ee&&(ee.disconnect(),ee=null,te&&(document.removeEventListener("click",te,!0),te=null),W&&(clearTimeout(W),W=null))}function $a(){j&&(j.disconnect(),j=null),Q&&(Q.disconnect(),Q=null)}function Oa(){if(Q)return;Ta(),Q=new MutationObserver(t=>{for(const n of t)n.addedNodes.length>0&&n.addedNodes.forEach(r=>{r instanceof HTMLElement&&(r.querySelectorAll(E.SEE_MORE_BTN).forEach(s=>{j?.observe(s)}),r.classList.contains(E.SEE_MORE_BTN.substring(1))&&j?.observe(r))})});const e=document.querySelector(E.MAIN_GRID);e&&Q.observe(e,{childList:!0,subtree:!0})}function Ta(){j&&j.disconnect(),j=new IntersectionObserver(t=>{t.forEach(n=>{if(n.isIntersecting){const r=n.target;_a(r),j?.unobserve(r)}})},{rootMargin:"200px",threshold:0}),document.querySelectorAll(E.SEE_MORE_BTN).forEach(t=>j?.observe(t))}function Ie(e,...t){}const Ia={debug:(...e)=>Ie(console.debug,...e),log:(...e)=>Ie(console.log,...e),warn:(...e)=>Ie(console.warn,...e),error:(...e)=>Ie(console.error,...e)};var Za=class un extends Event{static EVENT_NAME=et("wxt:locationchange");constructor(t,n){super(un.EVENT_NAME,{}),this.newUrl=t,this.oldUrl=n}};function et(e){return`${se?.runtime?.id}:content:${e}`}function Ca(e){let t,n;return{run(){t==null&&(n=new URL(location.href),t=e.setInterval(()=>{let r=new URL(location.href);r.href!==n.href&&(window.dispatchEvent(new Za(r,n)),n=r)},1e3))}}}var Pa=class de{static SCRIPT_STARTED_MESSAGE_TYPE=et("wxt:content-script-started");id;abortController;locationWatcher=Ca(this);constructor(t,n){this.contentScriptName=t,this.options=n,this.id=Math.random().toString(36).slice(2),this.abortController=new AbortController,this.stopOldScripts(),this.listenForNewerScripts()}get signal(){return this.abortController.signal}abort(t){return this.abortController.abort(t)}get isInvalid(){return se.runtime?.id==null&&this.notifyInvalidated(),this.signal.aborted}get isValid(){return!this.isInvalid}onInvalidated(t){return this.signal.addEventListener("abort",t),()=>this.signal.removeEventListener("abort",t)}block(){return new Promise(()=>{})}setInterval(t,n){const r=setInterval(()=>{this.isValid&&t()},n);return this.onInvalidated(()=>clearInterval(r)),r}setTimeout(t,n){const r=setTimeout(()=>{this.isValid&&t()},n);return this.onInvalidated(()=>clearTimeout(r)),r}requestAnimationFrame(t){const n=requestAnimationFrame((...r)=>{this.isValid&&t(...r)});return this.onInvalidated(()=>cancelAnimationFrame(n)),n}requestIdleCallback(t,n){const r=requestIdleCallback((...o)=>{this.signal.aborted||t(...o)},n);return this.onInvalidated(()=>cancelIdleCallback(r)),r}addEventListener(t,n,r,o){n==="wxt:locationchange"&&this.isValid&&this.locationWatcher.run(),t.addEventListener?.(n.startsWith("wxt:")?et(n):n,r,{...o,signal:this.signal})}notifyInvalidated(){this.abort("Content script context invalidated"),Ia.debug(`Content script "${this.contentScriptName}" context invalidated`)}stopOldScripts(){document.dispatchEvent(new CustomEvent(de.SCRIPT_STARTED_MESSAGE_TYPE,{detail:{contentScriptName:this.contentScriptName,messageId:this.id}})),window.postMessage({type:de.SCRIPT_STARTED_MESSAGE_TYPE,contentScriptName:this.contentScriptName,messageId:this.id},"*")}verifyScriptStartedEvent(t){const n=t.detail?.contentScriptName===this.contentScriptName,r=t.detail?.messageId===this.id;return n&&!r}listenForNewerScripts(){const t=n=>{!(n instanceof CustomEvent)||!this.verifyScriptStartedEvent(n)||this.notifyInvalidated()};document.addEventListener(de.SCRIPT_STARTED_MESSAGE_TYPE,t),this.onInvalidated(()=>document.removeEventListener(de.SCRIPT_STARTED_MESSAGE_TYPE,t))}};function Na(){}function Ze(e,...t){}const Aa={debug:(...e)=>Ze(console.debug,...e),log:(...e)=>Ze(console.log,...e),warn:(...e)=>Ze(console.warn,...e),error:(...e)=>Ze(console.error,...e)};return(async()=>{try{const{main:e,...t}=pa;return await e(new Pa("content",t))}catch(e){throw Aa.error('The content script "content" crashed on startup!',e),e}})()})();
179
+ content;
Binary file
Binary file
Binary file
@@ -0,0 +1,9 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" viewBox="0 0 128 128">
2
+ <rect x="0" y="0" width="128" height="128" rx="36" fill="#3b82f6" />
3
+ <text x="64" y="94"
4
+ font-family="Arial, sans-serif"
5
+ font-weight="bold"
6
+ font-size="90"
7
+ fill="white"
8
+ text-anchor="middle">L</text>
9
+ </svg>
@@ -0,0 +1 @@
1
+ {"manifest_version":3,"name":"__MSG_extensionName__","description":"__MSG_extensionDescription__","version":"1.0.7","icons":{"16":"icon-16.png","48":"icon-48.png","128":"icon-128.png"},"default_locale":"en","permissions":["storage","alarms"],"host_permissions":["https://linkfeed.pro/*","https://extension.report/*"],"externally_connectable":{"matches":["https://linkfeed.pro/*"]},"homepage_url":"https://linkfeed.pro","action":{"default_icon":{"16":"icon-16.png","48":"icon-48.png","128":"icon-128.png"},"default_title":"LinkFeed Pro Settings","default_popup":"popup.html"},"background":{"service_worker":"background.js"},"content_scripts":[{"matches":["https://www.linkedin.com/*"],"run_at":"document_idle","js":["content-scripts/content.js"]}]}