vendor: 5,577 bytes, line 1
1try{self["workbox:core:7.3.0"]&&_()}catch{}const cn=(e,...t)=>{let n=e;return t.length>0&&(n+=` :: ${JSON.stringify(t)}`),n},un=cn;class L extends Error{constructor(t,n){const r=un(t,n);super(r),this.name=t,this.details=n}}const W={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:typeof registration<"u"?registration.scope:""},Ce=e=>[W.prefix,e,W.suffix].filter(t=>t&&t.length>0).join("-"),ln=e=>{for(const t of Object.keys(W))e(t)},Ee={updateDetails:e=>{ln(t=>{typeof e[t]=="string"&&(W[t]=e[t])})},getGoogleAnalyticsName:e=>e||Ce(W.googleAnalytics),getPrecacheName:e=>e||Ce(W.precache),getPrefix:()=>W.prefix,getRuntimeName:e=>e||Ce(W.runtime),getSuffix:()=>W.suffix};try{self["workbox:precaching:7.3.0"]&&_()}catch{}let ee;function fn(){if(ee===void 0){const e=new Response("");if("body"in e)try{new Response(e.body),ee=!0}catch{ee=!1}ee=!1}return ee}async function dn(e,t){let n=null;if(e.url&&(n=new URL(e.url).origin),n!==self.location.origin)throw new L("cross-origin-copy-response",{origin:n});const r=e.clone(),s={headers:new Headers(r.headers),status:r.status,statusText:r.statusText},i=fn()?r.body:await r.blob();return new Response(i,s)}const hn=e=>new URL(String(e),location.href).href.replace(new RegExp(`^${location.origin}`),"");function at(e,t){const n=new URL(e);for(const r of t)n.searchParams.delete(r);return n.href}async function pn(e,t,n,r){const o=at(t.url,n);if(t.url===o)return e.match(t,r);const s=Object.assign(Object.assign({},r),{ignoreSearch:!0}),i=await e.keys(t,s);for(const a of i){const u=at(a.url,n);if(o===u)return e.match(a,r)}}class gn{constructor(){this.promise=new Promise((t,n)=>{this.resolve=t,this.reject=n})}}const At=new Set;async function mn(){for(const e of At)await e()}function _n(e){return new Promise(t=>setTimeout(t,e))}try{self["workbox:strategies:7.3.0"]&&_()}catch{}function ge(e){return typeof e=="string"?new Request(e):e}class yn{constructor(t,n){this._cacheKeys={},Object.assign(this,n),this.event=n.event,this._strategy=t,this._handlerDeferred=new gn,this._extendLifetimePromises=[],this._plugins=[...t.plugins],this._pluginStateMap=new Map;for(const r of this._plugins)this._pluginStateMap.set(r,{});this.event.waitUntil(this._handlerDeferred.promise)}async fetch(t){const{event:n}=this;let r=ge(t);if(r.mode==="navigate"&&n instanceof FetchEvent&&n.preloadResponse){const i=await n.preloadResponse;if(i)return i}const o=this.hasCallback("fetchDidFail")?r.clone():null;try{for(const i of this.iterateCallbacks("requestWillFetch"))r=await i({request:r.clone(),event:n})}catch(i){if(i instanceof Error)throw new L("plugin-error-request-will-fetch",{thrownErrorMessage:i.message})}const s=r.clone();try{let i;i=await fetch(r,r.mode==="navigate"?void 0:this._strategy.fetchOptions);for(const a of this.iterateCallbacks("fetchDidSucceed"))i=await a({event:n,request:s,response:i});return i}catch(i){throw o&&await this.runCallbacks("fetchDidFail",{error:i,event:n,originalRequest:o.clone(),request:s.clone()}),i}}async fetchAndCachePut(t){const n=await this.fetch(t),r=n.clone();return this.waitUntil(this.cachePut(t,r)),n}async cacheMatch(t){const n=ge(t);let r;const{cacheName:o,matchOptions:s}=this._strategy,i=await this.getCacheKey(n,"read"),a=Object.assign(Object.assign({},s),{cacheName:o});r=await caches.match(i,a);for(const u of this.iterateCallbacks("cachedResponseWillBeUsed"))r=await u({cacheName:o,matchOptions:s,cachedResponse:r,request:i,event:this.event})||void 0;return r}async cachePut(t,n){const r=ge(t);await _n(0);const o=await this.getCacheKey(r,"write");if(!n)throw new L("cache-put-with-no-response",{url:hn(o.url)});const s=await this._ensureResponseSafeToCache(n);if(!s)return!1;const{cacheName:i,matchOptions:a}=this._strategy,u=await self.caches.open(i),l=this.hasCallback("cacheDidUpdate"),f=l?await pn(u,o.clone(),["__WB_REVISION__"],a):null;try{await u.put(o,l?s.clone():s)}catch(h){if(h instanceof Error)throw h.name==="QuotaExceededError"&&await mn(),h}for(const h of this.iterateCallbacks("cacheDidUpdate"))await h({cacheName:i,oldResponse:f,newResponse:s.clone(),request:o,event:this.event});return!0}async getCacheKey(t,n){const r=`${t.url} | ${n}`;if(!this._cacheKeys[r]){let o=t;for(const s of this.iterateCallbacks("cacheKeyWillBeUsed"))o=ge(await s({mode:n,request:o,event:this.event,params:this.params}));this._cacheKeys[r]=o}return this._cacheKeys[r]}hasCallback(t){for(const n of this._strategy.plugins)if(t in n)return!0;return!1}async runCallbacks(t,n){for(const r of this.iterateCallbacks(t))await r(n)}*iterateCallbacks(t){for(const n of this._strategy.plugins)if(typeof n[t]=="function"){const r=this._pluginStateMap.get(n);yield s=>{const i=Object.assign(Object.assign({},s),{state:r});return n[t](i)}}}waitUntil(t){return this._extendLifetimePromises.push(t),t}async doneWaiting(){for(;this._extendLifetimePromises.length;){const t=this._extendLifetimePromises.splice(0),r=(await Promise.allSettled(t)).find(o=>o.status==="rejected");if(r)throw r.reason}}destroy(){this._handlerDeferred.resolve(null)}async _ensureResponseSafeToCache(t){let n=t,r=!1;for(const o of this.iterateCallbacks("cacheWillUpdate"))if(n=await o({request:this.request,response:n,event:this.event})||void 0,r=!0,!n)break;return r||n&&n.status!==200&&(n=void 0),n}}class Je{constructor(t={}){this.cacheName=Ee.getRuntimeName(t.cacheName),this.plugins=t.plugins||[],this.fetchOptions=t.fetchOptions,this.matchOptions=t.matchOptions}handle(t){const[n]=this.handleAll(t);return n}handleAll(t){t instanceof FetchEvent&&(t={event:t,request:t.request});
vendor: 5,649 bytes, line 1
1const n=t.event,r=typeof t.request=="string"?new Request(t.request):t.request,o="params"in t?t.params:void 0,s=new yn(this,{event:n,request:r,params:o}),i=this._getResponse(s,r,n),a=this._awaitComplete(i,s,r,n);return[i,a]}async _getResponse(t,n,r){await t.runCallbacks("handlerWillStart",{event:r,request:n});let o;try{if(o=await this._handle(n,t),!o||o.type==="error")throw new L("no-response",{url:n.url})}catch(s){if(s instanceof Error){for(const i of t.iterateCallbacks("handlerDidError"))if(o=await i({error:s,event:r,request:n}),o)break}if(!o)throw s}for(const s of t.iterateCallbacks("handlerWillRespond"))o=await s({event:r,request:n,response:o});return o}async _awaitComplete(t,n,r,o){let s,i;try{s=await t}catch{}try{await n.runCallbacks("handlerDidRespond",{event:o,request:r,response:s}),await n.doneWaiting()}catch(a){a instanceof Error&&(i=a)}if(await n.runCallbacks("handlerDidComplete",{event:o,request:r,response:s,error:i}),n.destroy(),i)throw i}}class J extends Je{constructor(t={}){t.cacheName=Ee.getPrecacheName(t.cacheName),super(t),this._fallbackToNetwork=t.fallbackToNetwork!==!1,this.plugins.push(J.copyRedirectedCacheableResponsesPlugin)}async _handle(t,n){const r=await n.cacheMatch(t);return r||(n.event&&n.event.type==="install"?await this._handleInstall(t,n):await this._handleFetch(t,n))}async _handleFetch(t,n){let r;const o=n.params||{};if(this._fallbackToNetwork){const s=o.integrity,i=t.integrity,a=!i||i===s;r=await n.fetch(new Request(t,{integrity:t.mode!=="no-cors"?i||s:void 0})),s&&a&&t.mode!=="no-cors"&&(this._useDefaultCacheabilityPluginIfNeeded(),await n.cachePut(t,r.clone()))}else throw new L("missing-precache-entry",{cacheName:this.cacheName,url:t.url});return r}async _handleInstall(t,n){this._useDefaultCacheabilityPluginIfNeeded();const r=await n.fetch(t);if(!await n.cachePut(t,r.clone()))throw new L("bad-precaching-response",{url:t.url,status:r.status});return r}_useDefaultCacheabilityPluginIfNeeded(){let t=null,n=0;for(const[r,o]of this.plugins.entries())o!==J.copyRedirectedCacheableResponsesPlugin&&(o===J.defaultPrecacheCacheabilityPlugin&&(t=r),o.cacheWillUpdate&&n++);n===0?this.plugins.push(J.defaultPrecacheCacheabilityPlugin):n>1&&t!==null&&this.plugins.splice(t,1)}}J.defaultPrecacheCacheabilityPlugin={async cacheWillUpdate({response:e}){return!e||e.status>=400?null:e}};J.copyRedirectedCacheableResponsesPlugin={async cacheWillUpdate({response:e}){return e.redirected?await dn(e):e}};try{self["workbox:routing:7.3.0"]&&_()}catch{}const Nt="GET",we=e=>e&&typeof e=="object"?e:{handle:e};class ie{constructor(t,n,r=Nt){this.handler=we(n),this.match=t,this.method=r}setCatchHandler(t){this.catchHandler=we(t)}}class wn extends ie{constructor(t,n,r){const o=({url:s})=>{const i=t.exec(s.href);if(i&&!(s.origin!==location.origin&&i.index!==0))return i.slice(1)};super(o,n,r)}}class bn{constructor(){this._routes=new Map,this._defaultHandlerMap=new Map}get routes(){return this._routes}addFetchListener(){self.addEventListener("fetch",(t=>{const{request:n}=t,r=this.handleRequest({request:n,event:t});r&&t.respondWith(r)}))}addCacheListener(){self.addEventListener("message",(t=>{if(t.data&&t.data.type==="CACHE_URLS"){const{payload:n}=t.data,r=Promise.all(n.urlsToCache.map(o=>{typeof o=="string"&&(o=[o]);const s=new Request(...o);return this.handleRequest({request:s,event:t})}));t.waitUntil(r),t.ports&&t.ports[0]&&r.then(()=>t.ports[0].postMessage(!0))}}))}handleRequest({request:t,event:n}){const r=new URL(t.url,location.href);if(!r.protocol.startsWith("http"))return;const o=r.origin===location.origin,{params:s,route:i}=this.findMatchingRoute({event:n,request:t,sameOrigin:o,url:r});let a=i&&i.handler;const u=t.method;if(!a&&this._defaultHandlerMap.has(u)&&(a=this._defaultHandlerMap.get(u)),!a)return;let l;try{l=a.handle({url:r,request:t,event:n,params:s})}catch(h){l=Promise.reject(h)}const f=i&&i.catchHandler;return l instanceof Promise&&(this._catchHandler||f)&&(l=l.catch(async h=>{if(f)try{return await f.handle({url:r,request:t,event:n,params:s})}catch(m){m instanceof Error&&(h=m)}if(this._catchHandler)return this._catchHandler.handle({url:r,request:t,event:n});throw h})),l}findMatchingRoute({url:t,sameOrigin:n,request:r,event:o}){const s=this._routes.get(r.method)||[];for(const i of s){let a;const u=i.match({url:t,sameOrigin:n,request:r,event:o});if(u)return a=u,(Array.isArray(a)&&a.length===0||u.constructor===Object&&Object.keys(u).length===0||typeof u=="boolean")&&(a=void 0),{route:i,params:a}}return{}}setDefaultHandler(t,n=Nt){this._defaultHandlerMap.set(n,we(t))}setCatchHandler(t){this._catchHandler=we(t)}registerRoute(t){this._routes.has(t.method)||this._routes.set(t.method,[]),this._routes.get(t.method).push(t)}unregisterRoute(t){if(!this._routes.has(t.method))throw new L("unregister-route-but-not-found-with-method",{method:t.method});const n=this._routes.get(t.method).indexOf(t);if(n>-1)this._routes.get(t.method).splice(n,1);else throw new L("unregister-route-route-not-registered")}}let te;const vn=()=>(te||(te=new bn,te.addFetchListener(),te.addCacheListener()),te);function Oe(e,t,n){let r;if(typeof e=="string"){const s=new URL(e,location.href),i=({url:a})=>a.href===s.href;r=new ie(i,t,n)}else if(e instanceof RegExp)r=new wn(e,t,n);else if(typeof e=="function")r=new ie(e,t,n);else if(e instanceof ie)r=e;else throw new L("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});return vn().registerRoute(r),r}const En="-precache-",On=async(e,t=En)=>{const r=(await self.caches.keys()).filter(o=>o.includes(t)&&o.includes(self.registration.scope)&&o!==e);return await Promise.all(r.map(o=>
1self.caches.delete(o))),r};function Sn(){self.addEventListener("activate",(e=>{const t=Ee.getPrecacheName();e.waitUntil(On(t).then(n=>{}))}))}function Rn(e){At.add(e)}function It(e){e.then(()=>{})}function zn(){self.addEventListener("activate",()=>self.clients.claim())}class kn extends ie{constructor(t,{allowlist:n=[/./],denylist:r=[]}={}){super(o=>this._match(o),t),this._allowlist=n,this._denylist=r}_match({url:t,request:n}){if(n&&n.mode!=="navigate")return!1;const r=t.pathname+t.search;for(const o of this._denylist)if(o.test(r))return!1;return!!this._allowlist.some(o=>o.test(r))}}class Be extends Je{async _handle(t,n){let r=await n.cacheMatch(t),o;if(!r)try{r=await n.fetchAndCachePut(t)}catch(s){s instanceof Error&&(o=s)}if(!r)throw new L("no-response",{url:t.url,error:o});return r}}const Pn={cacheWillUpdate:async({response:e})=>e.status===200||e.status===0?e:null};class Dn extends Je{constructor(t={}){super(t),this.plugins.some(n=>"cacheWillUpdate"in n)||this.plugins.unshift(Pn),this._networkTimeoutSeconds=t.networkTimeoutSeconds||0}async _handle(t,n){const r=[],o=[];let s;if(this._networkTimeoutSeconds){const{id:u,promise:l}=this._getTimeoutPromise({request:t,logs:r,handler:n});s=u,o.push(l)}const i=this._getNetworkPromise({timeoutId:s,request:t,logs:r,handler:n});o.push(i);const a=await n.waitUntil((async()=>await n.waitUntil(Promise.race(o))||await i)());if(!a)throw new L("no-response",{url:t.url});return a}_getTimeoutPromise({request:t,logs:n,handler:r}){let o;return{promise:new Promise(i=>{o=setTimeout(async()=>{i(await r.cacheMatch(t))},this._networkTimeoutSeconds*1e3)}),id:o}}async _getNetworkPromise({timeoutId:t,request:n,logs:r,handler:o}){let s,i;try{i=await o.fetchAndCachePut(n)}catch(a){a instanceof Error&&(s=a)}return t&&clearTimeout(t),(s||!i)&&(i=await o.cacheMatch(n)),i}}const Cn=(e,t)=>t.some(n=>e instanceof n);let ct,ut;function Tn(){return ct||(ct=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function An(){return ut||(ut=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const $t=new WeakMap,xe=new WeakMap,jt=new WeakMap,Te=new WeakMap,He=new WeakMap;function Nn(e){const t=new Promise((n,r)=>{const o=()=>{e.removeEventListener("success",s),e.removeEventListener("error",i)},s=()=>{n(V(e.result)),o()},i=()=>{r(e.error),o()};e.addEventListener("success",s),e.addEventListener("error",i)});return t.then(n=>{n instanceof IDBCursor&&$t.set(n,e)}).catch(()=>{}),He.set(t,e),t}function In(e){if(xe.has(e))return;const t=new Promise((n,r)=>{const o=()=>{e.removeEventListener("complete",s),e.removeEventListener("error",i),e.removeEventListener("abort",i)},s=()=>{n(),o()},i=()=>{r(e.error||new DOMException("AbortError","AbortError")),o()};e.addEventListener("complete",s),e.addEventListener("error",i),e.addEventListener("abort",i)});xe.set(e,t)}let Le={get(e,t,n){if(e instanceof IDBTransaction){if(t==="done")return xe.get(e);if(t==="objectStoreNames")return e.objectStoreNames||jt.get(e);if(t==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return V(e[t])},set(e,t,n){return e[t]=n,!0},has(e,t){return e instanceof IDBTransaction&&(t==="done"||t==="store")?!0:t in e}};function $n(e){Le=e(Le)}function jn(e){return e===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(t,...n){const r=e.call(Ae(this),t,...n);return jt.set(r,t.sort?t.sort():[t]),V(r)}:An().includes(e)?function(...t){return e.apply(Ae(this),t),V($t.get(this))}:function(...t){return V(e.apply(Ae(this),t))}}function xn(e){return typeof e=="function"?jn(e):(e instanceof IDBTransaction&&In(e),Cn(e,Tn())?new Proxy(e,Le):e)}function V(e){if(e instanceof IDBRequest)return Nn(e);if(Te.has(e))return Te.get(e);const t=xn(e);return t!==e&&(Te.set(e,t),He.set(t,e)),t}const Ae=e=>He.get(e);function Ln(e,t,{blocked:n,upgrade:r,blocking:o,terminated:s}={}){const i=indexedDB.open(e,t),a=V(i);return r&&i.addEventListener("upgradeneeded",u=>{r(V(i.result),u.oldVersion,u.newVersion,V(i.transaction),u)}),n&&i.addEventListener("blocked",u=>n(u.oldVersion,u.newVersion,u)),a.then(u=>{s&&u.addEventListener("close",()=>s()),o&&u.addEventListener("versionchange",l=>o(l.oldVersion,l.newVersion,l))}).catch(()=>{}),a}function Mn(e,{blocked:t}={}){const n=indexedDB.deleteDatabase(e);return t&&n.addEventListener("blocked",r=>t(r.oldVersion,r)),V(n).then(()=>{})}const Un=["get","getKey","getAll","getAllKeys","count"],Zn=["put","add","delete","clear"],Ne=new Map;function lt(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&typeof t=="string"))return;if(Ne.get(t))return Ne.get(t);const n=t.replace(/FromIndex$/,""),r=t!==n,o=Zn.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(o||Un.includes(n)))return;const s=async function(i,...a){const u=this.transaction(i,o?"readwrite":"readonly");let l=u.store;
1return r&&(l=l.index(a.shift())),(await Promise.all([l[n](...a),o&&u.done]))[0]};return Ne.set(t,s),s}$n(e=>({...e,get:(t,n,r)=>lt(t,n)||e.get(t,n,r),has:(t,n)=>!!lt(t,n)||e.has(t,n)}));try{self["workbox:expiration:7.3.0"]&&_()}catch{}const Wn="workbox-expiration",ne="cache-entries",ft=e=>{const t=new URL(e,location.href);return t.hash="",t.href};class Vn{constructor(t){this._db=null,this._cacheName=t}_upgradeDb(t){const n=t.createObjectStore(ne,{keyPath:"id"});n.createIndex("cacheName","cacheName",{unique:!1}),n.createIndex("timestamp","timestamp",{unique:!1})}_upgradeDbAndDeleteOldDbs(t){this._upgradeDb(t),this._cacheName&&Mn(this._cacheName)}async setTimestamp(t,n){t=ft(t);const r={url:t,timestamp:n,cacheName:this._cacheName,id:this._getId(t)},s=(await this.getDb()).transaction(ne,"readwrite",{durability:"relaxed"});await s.store.put(r),await s.done}async getTimestamp(t){const r=await(await this.getDb()).get(ne,this._getId(t));return r==null?void 0:r.timestamp}async expireEntries(t,n){const r=await this.getDb();let o=await r.transaction(ne).store.index("timestamp").openCursor(null,"prev");const s=[];let i=0;for(;o;){const u=o.value;u.cacheName===this._cacheName&&(t&&u.timestamp<t||n&&i>=n?s.push(o.value):i++),o=await o.continue()}const a=[];for(const u of s)await r.delete(ne,u.id),a.push(u.url);return a}_getId(t){return this._cacheName+"|"+ft(t)}async getDb(){return this._db||(this._db=await Ln(Wn,1,{upgrade:this._upgradeDbAndDeleteOldDbs.bind(this)})),this._db}}class Jn{constructor(t,n={}){this._isRunning=!1,this._rerunRequested=!1,this._maxEntries=n.maxEntries,this._maxAgeSeconds=n.maxAgeSeconds,this._matchOptions=n.matchOptions,this._cacheName=t,this._timestampModel=new Vn(t)}async expireEntries(){if(this._isRunning){this._rerunRequested=!0;return}this._isRunning=!0;const t=this._maxAgeSeconds?Date.now()-this._maxAgeSeconds*1e3:0,n=await this._timestampModel.expireEntries(t,this._maxEntries),r=await self.caches.open(this._cacheName);for(const o of n)await r.delete(o,this._matchOptions);this._isRunning=!1,this._rerunRequested&&(this._rerunRequested=!1,It(this.expireEntries()))}async updateTimestamp(t){await this._timestampModel.setTimestamp(t,Date.now())}async isURLExpired(t){if(this._maxAgeSeconds){const n=await this._timestampModel.getTimestamp(t),r=Date.now()-this._maxAgeSeconds*1e3;return n!==void 0?n<r:!0}else return!1}async delete(){this._rerunRequested=!1,await this._timestampModel.expireEntries(1/0)}}class ue{constructor(t={}){this.cachedResponseWillBeUsed=async({event:n,request:r,cacheName:o,cachedResponse:s})=>{if(!s)return null;const i=this._isResponseDateFresh(s),a=this._getCacheExpiration(o);It(a.expireEntries());const u=a.updateTimestamp(r.url);if(n)try{n.waitUntil(u)}catch{}return i?s:null},this.cacheDidUpdate=async({cacheName:n,request:r})=>{const o=this._getCacheExpiration(n);await o.updateTimestamp(r.url),await o.expireEntries()},this._config=t,this._maxAgeSeconds=t.maxAgeSeconds,this._cacheExpirations=new Map,t.purgeOnQuotaError&&Rn(()=>
1this.deleteCacheAndMetadata())}_getCacheExpiration(t){if(t===Ee.getRuntimeName())throw new L("expire-custom-caches-only");let n=this._cacheExpirations.get(t);return n||(n=new Jn(t,this._config),this._cacheExpirations.set(t,n)),n}_isResponseDateFresh(t){if(!this._maxAgeSeconds)return!0;const n=this._getDateHeaderTimestamp(t);if(n===null)return!0;const r=Date.now();return n>=r-this._maxAgeSeconds*1e3}_getDateHeaderTimestamp(t){if(!t.headers.has("date"))return null;const n=t.headers.get("date"),o=new Date(n).getTime();return isNaN(o)?null:o}async deleteCacheAndMetadata(){for(const[t,n]of this._cacheExpirations)await self.caches.delete(t),await n.delete();this._cacheExpirations=new Map}}var Ie={exports:{}},re={},$e={exports:{}},g={};/** 2 * @license React 3 * react.production.min.js 4 * 5 * Copyright (c) Facebook, Inc. and its affiliates. 6 * 7 * This source code is licensed under the MIT license found in the 8 * LICENSE file in the root directory of this source tree. 9 */var dt;function Bn(){if(dt)return g;dt=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),i=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),l=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.iterator;function m(c){return c===null||typeof c!="object"?null:(c=h&&c[h]||c["@@iterator"],typeof c=="function"?c:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},k=Object.assign,v={};function R(c,d,y){this.props=c,this.context=d,this.refs=v,this.updater=y||w}R.prototype.isReactComponent={},R.prototype.setState=function(c,d){if(typeof c!="object"&&typeof c!="function"&&c!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,c,d,"setState")},R.prototype.forceUpdate=function(c){this.updater.enqueueForceUpdate(this,c,"forceUpdate")};function K(){}K.prototype=R.prototype;function C(c,d,y){this.props=c,this.context=d,this.refs=v,this.updater=y||w}var X=C.prototype=new K;X.constructor=C,k(X,R.prototype),X.isPureReactComponent=!0;var tt=Array.isArray,nt=Object.prototype.hasOwnProperty,ke={current:null},rt={key:!0,ref:!0,__self:!0,__source:!0};function ot(c,d,y){var O,E={},P=null,T=null;if(d!=null)for(O in d.ref!==void 0&&(T=d.ref),d.key!==void 0&&(P=""+d.key),d)nt.call(d,O)&&!rt.hasOwnProperty(O)&&(E[O]=d[O]);var D=arguments.length-2;if(D===1)E.children=y;else if(1<D){for(var z=Array(D),U=0;U<D;U++)z[U]=arguments[U+2];E.children=z}if(c&&c.defaultProps)for(O in D=c.defaultProps,D)E[O]===void 0&&(E[O]=D[O]);return{$$typeof:e,type:c,key:P,ref:T,props:E,_owner:ke.current}}function rn(c,d){return{$$typeof:e,type:c.type,key:d,ref:c.ref,props:c.props,_owner:c._owner}}
vendor: 5,019 bytes, lines 9-17
9function Pe(c){return typeof c=="object"&&c!==null&&c.$$typeof===e}function on(c){var d={"=":"=0",":":"=2"};return"$"+c.replace(/[=:]/g,function(y){return d[y]})}var st=/\/+/g;function De(c,d){return typeof c=="object"&&c!==null&&c.key!=null?on(""+c.key):d.toString(36)}function de(c,d,y,O,E){var P=typeof c;(P==="undefined"||P==="boolean")&&(c=null);var T=!1;if(c===null)T=!0;else switch(P){case"string":case"number":T=!0;break;case"object":switch(c.$$typeof){case e:case t:T=!0}}if(T)return T=c,E=E(T),c=O===""?"."+De(T,0):O,tt(E)?(y="",c!=null&&(y=c.replace(st,"$&/")+"/"),de(E,d,y,"",function(U){return U})):E!=null&&(Pe(E)&&(E=rn(E,y+(!E.key||T&&T.key===E.key?"":(""+E.key).replace(st,"$&/")+"/")+c)),d.push(E)),1;if(T=0,O=O===""?".":O+":",tt(c))for(var D=0;D<c.length;D++){P=c[D];var z=O+De(P,D);T+=de(P,d,y,z,E)}else if(z=m(c),typeof z=="function")for(c=z.call(c),D=0;!(P=c.next()).done;)P=P.value,z=O+De(P,D++),T+=de(P,d,y,z,E);else if(P==="object")throw d=String(c),Error("Objects are not valid as a React child (found: "+(d==="[object Object]"?"object with keys {"+Object.keys(c).join(", ")+"}":d)+"). If you meant to render a collection of children, use an array instead.");return T}function he(c,d,y){if(c==null)return c;var O=[],E=0;return de(c,O,"","",function(P){return d.call(y,P,E++)}),O}function sn(c){if(c._status===-1){var d=c._result;d=d(),d.then(function(y){(c._status===0||c._status===-1)&&(c._status=1,c._result=y)},function(y){(c._status===0||c._status===-1)&&(c._status=2,c._result=y)}),c._status===-1&&(c._status=0,c._result=d)}if(c._status===1)return c._result.default;throw c._result}var A={current:null},pe={transition:null},an={ReactCurrentDispatcher:A,ReactCurrentBatchConfig:pe,ReactCurrentOwner:ke};function it(){throw Error("act(...) is not supported in production builds of React.")}return g.Children={map:he,forEach:function(c,d,y){he(c,function(){d.apply(this,arguments)},y)},count:function(c){var d=0;return he(c,function(){d++}),d},toArray:function(c){return he(c,function(d){return d})||[]},only:function(c){if(!Pe(c))throw Error("React.Children.only expected to receive a single React element child.");return c}},g.Component=R,g.Fragment=n,g.Profiler=o,g.PureComponent=C,g.StrictMode=r,g.Suspense=u,g.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=an,g.act=it,g.cloneElement=function(c,d,y){if(c==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+c+".");var O=k({},c.props),E=c.key,P=c.ref,T=c._owner;if(d!=null){if(d.ref!==void 0&&(P=d.ref,T=ke.current),d.key!==void 0&&(E=""+d.key),c.type&&c.type.defaultProps)var D=c.type.defaultProps;for(z in d)nt.call(d,z)&&!rt.hasOwnProperty(z)&&(O[z]=d[z]===void 0&&D!==void 0?D[z]:d[z])}var z=arguments.length-2;if(z===1)O.children=y;else if(1<z){D=Array(z);for(var U=0;U<z;U++)D[U]=arguments[U+2];O.children=D}return{$$typeof:e,type:c.type,key:E,ref:P,props:O,_owner:T}},g.createContext=function(c){return c={$$typeof:i,_currentValue:c,_currentValue2:c,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},c.Provider={$$typeof:s,_context:c},c.Consumer=c},g.createElement=ot,g.createFactory=function(c){var d=ot.bind(null,c);return d.type=c,d},g.createRef=function(){return{current:null}},g.forwardRef=function(c){return{$$typeof:a,render:c}},g.isValidElement=Pe,g.lazy=function(c){return{$$typeof:f,_payload:{_status:-1,_result:c},_init:sn}},g.memo=function(c,d){return{$$typeof:l,type:c,compare:d===void 0?null:d}},g.startTransition=function(c){var d=pe.transition;pe.transition={};try{c()}finally{pe.transition=d}},g.unstable_act=it,g.useCallback=function(c,d){return A.current.useCallback(c,d)},g.useContext=function(c){return A.current.useContext(c)},g.useDebugValue=function(){},g.useDeferredValue=function(c){return A.current.useDeferredValue(c)},g.useEffect=function(c,d){return A.current.useEffect(c,d)},g.useId=function(){return A.current.useId()},g.useImperativeHandle=function(c,d,y){return A.current.useImperativeHandle(c,d,y)},g.useInsertionEffect=function(c,d){return A.current.useInsertionEffect(c,d)},g.useLayoutEffect=function(c,d){return A.current.useLayoutEffect(c,d)},g.useMemo=function(c,d){return A.current.useMemo(c,d)},g.useReducer=function(c,d,y){return A.current.useReducer(c,d,y)},g.useRef=function(c){return A.current.useRef(c)},g.useState=function(c){return A.current.useState(c)},g.useSyncExternalStore=function(c,d,y){return A.current.useSyncExternalStore(c,d,y)},g.useTransition=function(){return A.current.useTransition()},g.version="18.3.1",g}var ht;function Hn(){return ht||(ht=1,$e.exports=Bn()),$e.exports}/** 10 * @license React 11 * react-jsx-runtime.production.min.js 12 * 13 * Copyright (c) Facebook, Inc. and its affiliates. 14 * 15 * This source code is licensed under the MIT license found in the 16 * LICENSE file in the root directory of this source tree. 17 */var pt;function Fn(){if(pt)return re;pt=1;var e=Hn(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INT
vendor: 13,347 bytes, line 17
17ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function i(a,u,l){var f,h={},m=null,w=null;l!==void 0&&(m=""+l),u.key!==void 0&&(m=""+u.key),u.ref!==void 0&&(w=u.ref);for(f in u)r.call(u,f)&&!s.hasOwnProperty(f)&&(h[f]=u[f]);if(a&&a.defaultProps)for(f in u=a.defaultProps,u)h[f]===void 0&&(h[f]=u[f]);return{$$typeof:t,type:a,key:m,ref:w,props:h,_owner:o.current}}return re.Fragment=n,re.jsx=i,re.jsxs=i,re}var gt;function qn(){return gt||(gt=1,Ie.exports=Fn()),Ie.exports}qn();function p(e,t,n){function r(a,u){if(a._zod||Object.defineProperty(a,"_zod",{value:{def:u,constr:i,traits:new Set},enumerable:!1}),a._zod.traits.has(e))return;a._zod.traits.add(e),t(a,u);const l=i.prototype,f=Object.keys(l);for(let h=0;h<f.length;h++){const m=f[h];m in a||(a[m]=l[m].bind(a))}}const o=(n==null?void 0:n.Parent)??Object;class s extends o{}Object.defineProperty(s,"name",{value:e});function i(a){var u;const l=n!=null&&n.Parent?new s:this;r(l,a),(u=l._zod).deferred??(u.deferred=[]);for(const f of l._zod.deferred)f();return l}return Object.defineProperty(i,"init",{value:r}),Object.defineProperty(i,Symbol.hasInstance,{value:a=>{var u,l;return n!=null&&n.Parent&&a instanceof n.Parent?!0:(l=(u=a==null?void 0:a._zod)==null?void 0:u.traits)==null?void 0:l.has(e)}}),Object.defineProperty(i,"name",{value:e}),i}class Y extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class xt extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const Kn={};function H(e){return Kn}function Lt(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 Me(e,t){return typeof t=="bigint"?t.toString():t}function Fe(e){return e==null}function qe(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}const mt=Symbol("evaluating");function b(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==mt)return r===void 0&&(r=mt,r=n()),r},set(o){Object.defineProperty(e,t,{value:o})},configurable:!0})}function Gn(...e){const t={};for(const n of e){const r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}const Mt="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function _t(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function Ue(e){if(_t(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(_t(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function Ut(e){return Ue(e)?{...e}:Array.isArray(e)?[...e]:e}const Yn=new Set(["string","number","symbol"]);function Qn(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Xn(e,t,n){const r=new e._zod.constr(t??e._zod.def);return(!t||n!=null&&n.parent)&&(r._zod.parent=e),r}function Z(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if((t==null?void 0:t.message)!==void 0){if((t==null?void 0: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 G(e,t=0){var n;if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(((n=e.issues[r])==null?void 0:n.continue)!==!0)return!0;return!1}function er(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==null?void 0:e.message}function F(e,t,n){var o,s,i,a,u,l;const r={...e,path:e.path??[]};if(!e.message){const f=me((i=(s=(o=e.inst)==null?void 0:o._zod.def)==null?void 0:s.error)==null?void 0:i.call(s,e))??me((a=t==null?void 0:t.error)==null?void 0:a.call(t,e))??me((u=n.customError)==null?void 0:u.call(n,e))??me((l=n.localeError)==null?void 0:l.call(n,e))??"Invalid input";r.message=f}return delete r.inst,delete r.continue,t!=null&&t.reportInput||delete r.input,r}function Ke(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function ae(...e){const[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}const Zt=(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,Me,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Wt=p("$ZodError",Zt),Vt=p("$ZodError",Zt,{Parent:Error});function tr(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 nr(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 u=s.path[a];a===s.path.length-1?(i[u]=i[u]||{_errors:[]},i[u]._errors.push(t(s))):i[u]=i[u]||{_errors:[]},i=i[u],a++}}};return r(e),n}const Ge=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 Y;if(i.issues.length){const a=new((o==null?void 0:o.Err)??e)(i.issues.map(u=>F(u,s,H())));throw Mt(a,o==null?void 0:o.callee),a}return i.value},Ye=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==null?void 0:o.Err)??e)(i.issues.map(u=>F(u,s,H())));throw Mt(a,o==null?void 0:o.callee),a}return i.value},Se=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 Y;return s.issues.length?{success:!1,error:new(e??Wt)(s.issues.map(i=>F(i,o,H())))}:{success:!0,data:s.value}},rr=Se(Vt),Re=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=>F(i,o,H())))}:{success:!0,data:s.value}},or=Re(Vt),sr=e=>(t,n,r)=>{const o=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Ge(e)(t,n,o)},ir=e=>(t,n,r)=>Ge(e)(t,n,r),ar=e=>async(t,n,r)=>{const o=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Ye(e)(t,n,o)},cr=e=>async(t,n,r)=>Ye(e)(t,n,r),ur=e=>(t,n,r)=>{const o=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Se(e)(t,n,o)},lr=e=>(t,n,r)=>Se(e)(t,n,r),fr=e=>async(t,n,r)=>{const o=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Re(e)(t,n,o)},dr=e=>async(t,n,r)=>Re(e)(t,n,r),Q=p("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),hr=p("$ZodCheckMaxLength",(e,t)=>{var n;Q.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!Fe(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=Ke(o);r.issues.push({origin:i,code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),pr=p("$ZodCheckMinLength",(e,t)=>{var n;Q.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!Fe(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=Ke(o);r.issues.push({origin:i,code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),gr=p("$ZodCheckLengthEquals",(e,t)=>{var n;Q.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!Fe(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=Ke(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})}}),mr=p("$ZodCheckOverwrite",(e,t)=>{Q.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}}),_r={major:4,minor:3,patch:6},$=p("$ZodType",(e,t)=>{var o;var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=_r;const r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(const s of r)for(const i of s._zod.onattach)i(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),(o=e._zod.deferred)==null||o.push(()=>{e._zod.run=e._zod.parse});else{const s=(a,u,l)=>{let f=G(a),h;for(const m of u){if(m._zod.def.when){if(!m._zod.def.when(a))continue}else if(f)continue;const w=a.issues.length,k=m._zod.check(a);if(k instanceof Promise&&(l==null?void 0:l.async)===!1)throw new Y;if(h||k instanceof Promise)h=(h??Promise.resolve()).then(async()=>{await k,a.issues.length!==w&&(f||(f=G(a,w)))});else{if(a.issues.length===w)continue;f||(f=G(a,w))}}return h?h.then(()=>a):a},i=(a,u,l)=>{if(G(a))return a.aborted=!0,a;const f=s(u,r,l);if(f instanceof Promise){if(l.async===!1)throw new Y;return f.then(h=>e._zod.parse(h,l))}return e._zod.parse(f,l)};e._zod.run=(a,u)=>{if(u.skipChecks)return e._zod.parse(a,u);if(u.direction==="backward"){const f=e._zod.parse({value:a.value,issues:[]},{...u,skipChecks:!0});return f instanceof Promise?f.then(h=>i(h,a,u)):i(f,a,u)}const l=e._zod.parse(a,u);if(l instanceof Promise){if(u.async===!1)throw new Y;return l.then(f=>s(f,r,u))}return s(l,r,u)}}b(e,"~standard",()=>({validate:s=>{var i;try{const a=rr(e,s);return a.success?{value:a.data}:{issues:(i=a.error)==null?void 0:i.issues}}catch{return or(e,s).then(u=>{var l;return u.success?{value:u.data}:{issues:(l=u.error)==null?void 0:l.issues}})}},vendor:"zod",version:1}))});function yt(e,t,n){e.issues.length&&t.issues.push(...er(n,e.issues)),t.value[n]=e.value}const yr=p("$ZodArray",(e,t)=>{$.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],u=t.element._zod.run({value:a,issues:[]},r);u instanceof Promise?s.push(u.then(l=>yt(l,n,i))):yt(u,n,i)}return s.length?Promise.all(s).then(()=>n):n}});function wt(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=>!G(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=>F(i,r,H())))}),t)}const wr=p("$ZodUnion",(e,t)=>{$.init(e,t),b(e._zod,"optin",()=>t.options.some(o=>o._zod.optin==="optional")?"optional":void 0),b(e._zod,"optout",()=>t.options.some(o=>o._zod.optout==="optional")?"optional":void 0),b(e._zod,"values",()=>{if(t.options.every(o=>o._zod.values))return new Set(t.options.flatMap(o=>Array.from(o._zod.values)))}),b(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=>qe(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 u of t.options){const l=u._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(u=>wt(u,o,e,s)):wt(a,o,e,s)}}),br=p("$ZodIntersection",(e,t)=>{$.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(([u,l])=>bt(n,u,l)):bt(n,s,i)}});function Ze(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(Ue(e)&&Ue(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=Ze(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=Ze(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 bt(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 u of a.keys)r.has(u)||r.set(u,{}),r.get(u).l=!0}else e.issues.push(a);for(const a of n.issues)if(a.code==="unrecognized_keys")for(const u of a.keys)r.has(u)||r.set(u,{}),r.get(u).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}),G(e))return e;const i=Ze(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 vr=p("$ZodEnum",(e,t)=>{$.init(e,t);const n=Lt(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=new RegExp(`^(${n.filter(o=>Yn.has(typeof o)).map(o=>
17typeof o=="string"?Qn(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}}),Er=p("$ZodTransform",(e,t)=>{$.init(e,t),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new xt(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 Y;return n.value=o,n}});function vt(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const Jt=p("$ZodOptional",(e,t)=>{$.init(e,t),e._zod.optin="optional",e._zod.optout="optional",b(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),b(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${qe(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=>vt(s,n.value)):vt(o,n.value)}return n.value===void 0?n:t.innerType._zod.run(n,r)}}),Or=p("$ZodExactOptional",(e,t)=>{Jt.init(e,t),b(e._zod,"values",()=>t.innerType._zod.values),b(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,r)=>t.innerType._zod.run(n,r)}),Sr=p("$ZodNullable",(e,t)=>{$.init(e,t),b(e._zod,"optin",()=>t.innerType._zod.optin),b(e._zod,"optout",()=>t.innerType._zod.optout),b(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${qe(n.source)}|null)$`):void 0}),b(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)}),Rr=p("$ZodDefault",(e,t)=>{$.init(e,t),e._zod.optin="optional",b(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=>Et(s,t)):Et(o,t)}});function Et(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const zr=p("$ZodPrefault",(e,t)=>{$.init(e,t),e._zod.optin="optional",b(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))}),kr=p("$ZodNonOptional",(e,t)=>{$.init(e,t),b(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=>Ot(s,e)):Ot(o,e)}});function Ot(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 Pr=p("$ZodCatch",(e,t)=>{$.init(e,t),b(e._zod,"optin",()=>t.innerType._zod.optin),b(e._zod,"optout",()=>t.innerType._zod.optout),b(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=>F(i,r,H()))},input:n.value}),n.issues=[]),n)):(n.value=o.value,o.issues.length&&(n.value=t.catchValue({...n,error:{issues:o.issues.map(s=>F(s,r,H()))},input:n.value}),n.issues=[]),n)}}),Dr=p("$ZodPipe",(e,t)=>{$.init(e,t),b(e._zod,"values",()=>t.in._zod.values),b(e._zod,"optin",()=>t.in._zod.optin),b(e._zod,"optout",()=>t.out._zod.optout),b(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=>_e(i,t.in,r)):_e(s,t.in,r)}const o=t.in._zod.run(n,r);return o instanceof Promise?o.then(s=>_e(s,t.out,r)):_e(o,t.out,r)}});function _e(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}const Cr=p("$ZodReadonly",(e,t)=>{$.init(e,t),b(e._zod,"propValues",()=>t.innerType._zod.propValues),b(e._zod,"values",()=>t.innerType._zod.values),b(e._zod,"optin",()=>{var n,r;return(r=(n=t.innerType)==null?void 0:n._zod)==null?void 0:r.optin}),b(e._zod,"optout",()=>{var n,r;return(r=(n=t.innerType)==null?void 0:n._zod)==null?void 0:r.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(St):St(o)}});function St(e){return e.value=Object.freeze(e.value),e}const Tr=p("$ZodCustom",(e,t)=>{Q.init(e,t),$.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=>Rt(s,n,r,e));Rt(o,n,r,e)}});function Rt(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(ae(o))}}var zt;class Ar{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 Nr(){return new Ar}(zt=globalThis).__zod_globalRegistry??(zt.__zod_globalRegistry=Nr());const se=globalThis.__zod_globalRegistry;function Ir(e,t){return new hr({check:"max_length",...Z(t),maximum:e})}function kt(e,t){return new pr({check:"min_length",...Z(t),minimum:e})}function $r(e,t){return new gr({check:"length_equals",...Z(t),length:e})}function jr(e){return new mr({check:"overwrite",tx:e})}function xr(e,t,n){return new e({type:"array",element:t,...Z(n)})}function Lr(e,t,n){return new e({type:"custom",check:"custom",fn:t,...Z(n)})}function Mr(e){const t=Ur(n=>(n.addIssue=r=>{if(typeof r=="string")n.issues.push(ae(r,n.value,t._zod.def));else{const o=r;
vendor: 1,219 bytes, line 17
17o.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(ae(o))}},e(n.value,n)));return t}function Ur(e,t){const n=new Q({check:"custom",...Z(t)});return n._zod.check=e,n}function Bt(e){let t=(e==null?void 0:e.target)??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:(e==null?void 0:e.metadata)??se,target:t,unrepresentable:(e==null?void 0:e.unrepresentable)??"throw",override:(e==null?void 0:e.override)??(()=>{}),io:(e==null?void 0:e.io)??"output",counter:0,seen:new Map,cycles:(e==null?void 0:e.cycles)??"ref",reused:(e==null?void 0:e.reused)??"inline",external:(e==null?void 0:e.external)??void 0}}function I(e,t,n={path:[],schemaPath:[]}){var f,h;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=(h=(f=e._zod).toJSONSchema)==null?void 0:h.call(f);if(a)i.schema=a;else{const m={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,i.schema,m);
vendor: 3,094 bytes, lines 17-19
17else{const k=i.schema,v=t.processors[o.type];if(!v)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${o.type}`);v(e,t,k,m)}const w=e._zod.parent;w&&(i.ref||(i.ref=w),I(w,t,m),t.seen.get(w).isParent=!0)}const u=t.metadataRegistry.get(e);return u&&Object.assign(i.schema,u),t.io==="input"&&N(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 Ht(e,t){var i,a,u,l;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 f of e.seen.entries()){const h=(i=e.metadataRegistry.get(f[0]))==null?void 0:i.id;if(h){const m=r.get(h);if(m&&m!==f[0])throw new Error(`Duplicate schema id "${h}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(h,f[0])}}const o=f=>{var v;const h=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const R=(v=e.external.registry.get(f[0]))==null?void 0:v.id,K=e.external.uri??(X=>X);if(R)return{ref:K(R)};const C=f[1].defId??f[1].schema.id??`schema${e.counter++}`;return f[1].defId=C,{defId:C,ref:`${K("__shared")}#/${h}/${C}`}}if(f[1]===n)return{ref:"#"};const w=`#/${h}/`,k=f[1].schema.id??`__schema${e.counter++}`;return{defId:k,ref:w+k}},s=f=>{if(f[1].schema.$ref)return;const h=f[1],{ref:m,defId:w}=o(f);h.def={...h.schema},w&&(h.defId=w);const k=h.schema;for(const v in k)delete k[v];k.$ref=m};if(e.cycles==="throw")for(const f of e.seen.entries()){const h=f[1];if(h.cycle)throw new Error(`Cycle detected: #/${(a=h.cycle)==null?void 0:a.join("/")}/<root> 18 19Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const f of e.seen.entries()){const h=f[1];if(t===f[0]){s(f);continue}if(e.external){const w=(u=e.external.registry.get(f[0]))==null?void 0:u.id;if(t!==f[0]&&w){s(f);continue}}if((l=e.metadataRegistry.get(f[0]))==null?void 0:l.id){s(f);continue}if(h.cycle){s(f);continue}if(h.count>1&&e.reused==="ref"){s(f);continue}}}function Ft(e,t){var i,a,u;const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=l=>{const f=e.seen.get(l);if(f.ref===null)return;const h=f.def??f.schema,m={...h},w=f.ref;if(f.ref=null,w){r(w);const v=e.seen.get(w),R=v.schema;if(R.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(h.allOf=h.allOf??[],h.allOf.push(R)):Object.assign(h,R),Object.assign(h,m),l._zod.parent===w)for(const C in h)C==="$ref"||C==="allOf"||C in m||delete h[C];if(R.$ref&&v.def)for(const C in h)C==="$ref"||C==="allOf"||C in v.def&&JSON.stringify(h[C])===JSON.stringify(v.def[C])&&delete h[C]}const k=l._zod.parent;if(k&&k!==w){r(k);const v=e.seen.get(k);if(v!=null&&v.schema.$ref&&(h.$ref=v.schema.$ref,v.def))for(const R in h)R==="$ref"||R==="allOf"||R in v.def&&JSON.stringify(h[R])===JSON.stringify(v.def[R])&&delete h[R]}e.override({zodSchema:l,jsonSchema:h,path:f.path??[]})};for(const l of[...e.seen.entries()].reverse())r(l[0]);const o={};
vendor: 12,242 bytes, lines 19-108
19if(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,(i=e.external)!=null&&i.uri){const l=(a=e.external.registry.get(t))==null?void 0:a.id;if(!l)throw new Error("Schema is missing an `id` property");o.$id=e.external.uri(l)}Object.assign(o,n.def??n.schema);const s=((u=e.external)==null?void 0:u.defs)??{};for(const l of e.seen.entries()){const f=l[1];f.def&&f.defId&&(s[f.defId]=f.def)}e.external||Object.keys(s).length>0&&(e.target==="draft-2020-12"?o.$defs=s:o.definitions=s);try{const l=JSON.parse(JSON.stringify(o));return Object.defineProperty(l,"~standard",{value:{...t["~standard"],jsonSchema:{input:be(t,"input",e.processors),output:be(t,"output",e.processors)}},enumerable:!1,writable:!1}),l}catch{throw new Error("Error converting schema to JSON.")}}function N(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 N(r.element,n);if(r.type==="set")return N(r.valueType,n);if(r.type==="lazy")return N(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 N(r.innerType,n);if(r.type==="intersection")return N(r.left,n)||N(r.right,n);if(r.type==="record"||r.type==="map")return N(r.keyType,n)||N(r.valueType,n);if(r.type==="pipe")return N(r.in,n)||N(r.out,n);if(r.type==="object"){for(const o in r.shape)if(N(r.shape[o],n))return!0;return!1}if(r.type==="union"){for(const o of r.options)if(N(o,n))return!0;return!1}if(r.type==="tuple"){for(const o of r.items)if(N(o,n))return!0;return!!(r.rest&&N(r.rest,n))}return!1}const Zr=(e,t={})=>n=>{const r=Bt({...n,processors:t});return I(e,r),Ht(r,e),Ft(r,e)},be=(e,t,n={})=>r=>{const{libraryOptions:o,target:s}=r??{},i=Bt({...o??{},target:s,io:t,processors:n});return I(e,i),Ht(i,e),Ft(i,e)},Wr=(e,t,n,r)=>{const o=e._zod.def,s=Lt(o.entries);s.every(i=>typeof i=="number")&&(n.type="number"),s.every(i=>typeof i=="string")&&(n.type="string"),n.enum=s},Vr=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},Jr=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},Br=(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=I(s.element,t,{...r,path:[...r.path,"items"]})},Hr=(e,t,n,r)=>{const o=e._zod.def,s=o.inclusive===!1,i=o.options.map((a,u)=>I(a,t,{...r,path:[...r.path,s?"oneOf":"anyOf",u]}));s?n.oneOf=i:n.anyOf=i},Fr=(e,t,n,r)=>{const o=e._zod.def,s=I(o.left,t,{...r,path:[...r.path,"allOf",0]}),i=I(o.right,t,{...r,path:[...r.path,"allOf",1]}),a=l=>"allOf"in l&&Object.keys(l).length===1,u=[...a(s)?s.allOf:[s],...a(i)?i.allOf:[i]];n.allOf=u},qr=(e,t,n,r)=>{const o=e._zod.def,s=I(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"}]},Kr=(e,t,n,r)=>{const o=e._zod.def;I(o.innerType,t,r);const s=t.seen.get(e);s.ref=o.innerType},Gr=(e,t,n,r)=>{const o=e._zod.def;I(o.innerType,t,r);const s=t.seen.get(e);s.ref=o.innerType,n.default=JSON.parse(JSON.stringify(o.defaultValue))},Yr=(e,t,n,r)=>{const o=e._zod.def;I(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)))},Qr=(e,t,n,r)=>{const o=e._zod.def;I(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},Xr=(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;I(s,t,r);const i=t.seen.get(e);i.ref=s},eo=(e,t,n,r)=>{const o=e._zod.def;I(o.innerType,t,r);const s=t.seen.get(e);s.ref=o.innerType,n.readOnly=!0},qt=(e,t,n,r)=>{const o=e._zod.def;I(o.innerType,t,r);const s=t.seen.get(e);s.ref=o.innerType},to=(e,t)=>{Wt.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>nr(e,n)},flatten:{value:n=>tr(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,Me,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,Me,2)}},isEmpty:{get(){return e.issues.length===0}}})},M=p("ZodError",to,{Parent:Error}),no=Ge(M),ro=Ye(M),oo=Se(M),so=Re(M),io=sr(M),ao=ir(M),co=ar(M),uo=cr(M),lo=ur(M),fo=lr(M),ho=fr(M),po=dr(M),j=p("ZodType",(e,t)=>($.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:be(e,"input"),output:be(e,"output")}}),e.toJSONSchema=Zr(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone(Gn(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)=>Xn(e,n,r),e.brand=()=>e,e.register=((n,r)=>(n.add(e,r),e)),e.parse=(n,r)=>no(e,n,r,{callee:e.parse}),e.safeParse=(n,r)=>oo(e,n,r),e.parseAsync=async(n,r)=>ro(e,n,r,{callee:e.parseAsync}),e.safeParseAsync=async(n,r)=>so(e,n,r),e.spa=e.safeParseAsync,e.encode=(n,r)=>io(e,n,r),e.decode=(n,r)=>ao(e,n,r),e.encodeAsync=async(n,r)=>co(e,n,r),e.decodeAsync=async(n,r)=>uo(e,n,r),e.safeEncode=(n,r)=>lo(e,n,r),e.safeDecode=(n,r)=>fo(e,n,r),e.safeEncodeAsync=async(n,r)=>ho(e,n,r),e.safeDecodeAsync=async(n,r)=>po(e,n,r),e.refine=(n,r)=>e.check(Uo(n,r)),e.superRefine=n=>e.check(Zo(n)),e.overwrite=n=>e.check(jr(n)),e.optional=()=>Pt(e),e.exactOptional=()=>zo(e),e.nullable=()=>Dt(e),e.nullish=()=>Pt(Dt(e)),e.nonoptional=n=>No(e,n),e.array=()=>mo(e),e.or=n=>yo([e,n]),e.and=n=>bo(e,n),e.transform=n=>Ct(e,Oo(n)),e.default=n=>Do(e,n),e.prefault=n=>To(e,n),e.catch=n=>$o(e,n),e.pipe=n=>Ct(e,n),e.readonly=()=>Lo(e),e.describe=n=>{const r=e.clone();return se.add(r,{description:n}),r},Object.defineProperty(e,"description",{get(){var n;return(n=se.get(e))==null?void 0:n.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return se.get(e);const r=e.clone();return se.add(r,n[0]),r},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=n=>n(e),e)),go=p("ZodArray",(e,t)=>{yr.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Br(e,n,r,o),e.element=t.element,e.min=(n,r)=>e.check(kt(n,r)),e.nonempty=n=>e.check(kt(1,n)),e.max=(n,r)=>e.check(Ir(n,r)),e.length=(n,r)=>e.check($r(n,r)),e.unwrap=()=>e.element});function mo(e,t){return xr(go,e,t)}const _o=p("ZodUnion",(e,t)=>{wr.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Hr(e,n,r,o),e.options=t.options});function yo(e,t){return new _o({type:"union",options:e,...Z(t)})}const wo=p("ZodIntersection",(e,t)=>{br.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Fr(e,n,r,o)});function bo(e,t){return new wo({type:"intersection",left:e,right:t})}const We=p("ZodEnum",(e,t)=>{vr.init(e,t),j.init(e,t),e._zod.processJSONSchema=(r,o,s)=>Wr(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 We({...t,checks:[],...Z(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 We({...t,checks:[],...Z(o),entries:s})}});function vo(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new We({type:"enum",entries:n,...Z(t)})}const Eo=p("ZodTransform",(e,t)=>{Er.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Jr(e,n),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new xt(e.constructor.name);n.addIssue=s=>{if(typeof s=="string")n.issues.push(ae(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(ae(i))}};const o=t.transform(n.value,n);return o instanceof Promise?o.then(s=>(n.value=s,n)):(n.value=o,n)}});function Oo(e){return new Eo({type:"transform",transform:e})}const So=p("ZodOptional",(e,t)=>{Jt.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,o)=>qt(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function Pt(e){return new So({type:"optional",innerType:e})}const Ro=p("ZodExactOptional",(e,t)=>{Or.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,o)=>qt(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function zo(e){return new Ro({type:"optional",innerType:e})}const ko=p("ZodNullable",(e,t)=>{Sr.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,o)=>qr(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function Dt(e){return new ko({type:"nullable",innerType:e})}const Po=p("ZodDefault",(e,t)=>{Rr.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Gr(e,n,r,o),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Do(e,t){return new Po({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():Ut(t)}})}const Co=p("ZodPrefault",(e,t)=>{zr.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Yr(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function To(e,t){return new Co({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():Ut(t)}})}const Ao=p("ZodNonOptional",(e,t)=>{kr.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Kr(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function No(e,t){return new Ao({type:"nonoptional",innerType:e,...Z(t)})}const Io=p("ZodCatch",(e,t)=>{Pr.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Qr(e,n,r,o),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function $o(e,t){return new Io({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const jo=p("ZodPipe",(e,t)=>{Dr.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Xr(e,n,r,o),e.in=t.in,e.out=t.out});function Ct(e,t){return new jo({type:"pipe",in:e,out:t})}const xo=p("ZodReadonly",(e,t)=>{Cr.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,o)=>eo(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function Lo(e){return new xo({type:"readonly",innerType:e})}const Mo=p("ZodCustom",(e,t)=>{Tr.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Vr(e,n)});function Uo(e,t={}){return Lr(Mo,e,t)}function Zo(e){return Mr(e)}const ce={build:{host:"https://graphql0.canvasflow.io",appKey:"e697a8f2-729a-40f2-a086-7d3f0708db4e",languages:["en"]}},Wo="service-worker-channel";vo([...ce.build.languages]).optional();const Vo=` 20 { 21 styles { 22 id 23 name 24 description 25 properties 26 supportedDevices 27 type 28 parent 29 tablet 30 desktop 31 created 32 lastModified 33 } 34 } 35`;function Kt(e){return structuredClone?structuredClone(e):e&&JSON.parse(JSON.stringify(e))}const Jo=` 36 query Issue($id: ID!) { 37 issue(id: $id) { 38 id 39 name 40 description 41 textDirection 42 externalUrl 43 pages 44 cover 45 price 46 currency 47 slug 48 data 49 releaseDate 50 updated 51 isPaid 52 created 53 isPurchased 54 styles { 55 id 56 name 57 description 58 properties 59 supportedDevices 60 type 61 parent 62 tablet 63 desktop 64 created 65 lastModified 66 } 67 articles { 68 id 69 ArticleID 70 thumbnail 71 author 72 style 73 name 74 role 75 slug 76 keywords 77 audios { 78 id 79 url 80 lang 81 } 82 channel 83 index 84 description 85 pages 86 components 87 styleProperties 88 style 89 updated 90 isFeatured 91 replica { 92 name 93 page 94 image 95 hotspots { 96 url 97 area { 98 x 99 y 100 width 101 height 102 } 103 } 104 } 105 } 106 } 107 } 108`;function Bo(e){return e=Kt(e),e.features||(e.features=[]),e.articles&&(e.articles=e.articles.map(Tt)),e.featuredArticles&&(e.featuredArticles=e.featuredArticles.map(Tt)),e}function Tt(e){return e=Kt(e),e.features||(e.features=[]),e}const ye={padding_bottom:"paddingBottom",padding_top:"paddingTop",padding_left:"paddingLeft",padding_right:"paddingRight",margin_bottom:"marginBottom",margin_top:"marginTop",margin_left:"marginLeft",margin_right:"marginRight",line_height:"lineHeight",background_color:"backgroundColor",border_width:"borderWidth",dropcap_background_color:"dropcapBackgroun
108dColor",dropcap_font_size:"dropcapFontSize",dropcap_line_height:"dropcapLineHeight",dropcap_char_count:"dropcapCharCount",dropcap_line_count:"dropcapLineCount",dropcap_color:"dropcapColor",dropcap_font_family:"dropcapFontFamily",font_family_bold:"fontFamilyBold",font_family_bold_italic:"fontFamilyBoldItalic",font_family_italic:"fontFamilyItalic",dropcap_margin_top:"dropcapMarginTop",dropcap_margin_right:"dropcapMarginRight",dropcap_margin_left:"dropcapMarginLeft",dropcap_margin_bottom:"dropcapMarginBottom",dropcap_padding_top:"dropcapPaddingTop",dropcap_padding_right:"dropcapPaddingRight",dropcap_padding_left:"dropcapPaddingLeft",dropcap_padding_bottom:"dropcapPaddingBottom",text_indent:"textIndent",paragraph_spacing:"paragraphSpacing",font_size:"fontSize",font_style:"fontStyle",body_color:"bodyColor",border_edge:"borderEdge",border_radius:"borderRadius",border_radius_position:"borderRadiusPosition",border_type:"borderType",border_color:"borderColor",font_weight:"fontStyle",font_family:"fontFamily",text_transform:"textTransform",text_decoration:"textDecoration",text_display:"textDisplay",letter_spacing:"letterSpacing",vsmall_height:"vSmallHeight",small_height:"smallHeight",medium_height:"mediumHeight",large_height:"largeHeight",vlarge_height:"vLargeHeight",text_align:"textAlign",horizontal_padding:"horizontalPadding",list_style:"listStyle",caption_position:"captionPosition",captionposition:"captionPosition",component_margin_bottom:"componentMarginBottom",tab_background_color:"tabBackgroundColor",tab_content_top_margin:"tabContentTopMargin",tab_padding_horizontal:"tabPaddingHorizontal",tab_padding_vertical:"tabPaddingVertical",tab_selected_background_color:"tabSelectedBackgroundColor",tab_selected_highlight_color:"tabSelectedHighlightColor",tab_selected_text_color:"tabSelectedTextColor",tab_text_color:"tabTextColor",content_align:"contentAlign"};class x{static resolveInheritance(t){const n=[],r=t.reduce(x.reduceStyles,new Map);for(const o of t){const s=o.parent?`${o.parent}`:null,i=x.mergeParentProperties(o,s,r);n.push(i)}return n}static reduceStyles(t,n){return t.set(`${n.id}`,n),t}static mapRenameProperties(t){const{properties:n}=t,r=o=>{for(const s in oe(o)){if(s==="unit"){for(const i in o.unit)ye[i]&&(o.unit[ye[i]]=JSON.parse(JSON.stringify(o.unit[i])),delete o.unit[i]);continue}ye[s]&&(o[ye[s]]=o[s],delete o[s])}};for(const o in n){const s=n[o];if(Array.isArray(s)){for(const i of s)r(i);continue}r(s)}return t}static mergeParentProperties(t,n,r){if(!n)return t;const o=r.get(`${n}`);if(!o)return t;const s=x.mergeParentProperties(oe(o),`${o.parent}`,r);s.parent=null,r.set(`${o.id}`,oe(s));const i=x.overwriteProperties(s.properties,t.properties);return t.properties=i,t.parent=null,r.set(`${t.id}`,t),t}static mergeStyles(t){t=t.map(r=>oe(r));let n=null;for(const r of t){if(n===null){n=r;continue}!r||!r.properties||(n.properties=x.overwriteProperties(n.properties,r.properties))}return n}static overwriteProperties(t,n){const r={...t};n={...n};for(const o in n){if(Array.isArray(n[o])){r[o]||(r[o]=[]),r[o]=r[o].concat(n[o]);continue}r[o]||(r[o]={}),r[o]=x.mergeDeep(r[o],n[o])}if(r.divider&&r.dividers&&r.dividers.length){const{style:o,bleed:s,width:i,color:a,margin:u,thickness:l}=r.divider,f=r.dividers.map(h=>x.mergeDeep({style:o,bleed:s,width:i,color:a,margin:u,thickness:l},h));r.dividers=f}return r}static mergeDeep(t,...n){if(!n.length)return t;const r=n.shift();if(je(t)&&je(r))for(const o in r)je(r[o])?(t[o]||Object.assign(t,{[o]:{}}),x.mergeDeep(t[o],r[o])):Object.assign(t,{[o]:r[o]});return x.mergeDeep(t,...n)}static clone(t){return oe(t)}}function je(e){return e&&typeof e=="object"&&!Array.isArray(e)}function oe(e){return e&&JSON.parse(JSON.stringify(e))}const Ve="43c407ab",Gt="2.11.1",B="2.11.1-43c407ab";Sn();const ze=5*1e3;console.log("Service Worker loading with version:",B);nn();const q="cf",le=`${q}-images`,Qe=`${q}-audios`,Yt=`${q}-videos`,Ho=`${q}-fonts`,Fo=`${q}-assets`,qo=`${q}-version`,Qt=new BroadcastChannel(Wo),Ko=new ue({purgeOnQuotaError:!0,maxAgeSeconds:720*60*60}),Xe=new ue({purgeOnQuotaError:!0,maxAgeSeconds:720*60*60}),Go=new ue({purgeOnQuotaError:!0,maxAgeSeconds:720*60*60}),Yo=new ue({purgeOnQuotaError:!0,maxAgeSeconds:720*60*60}),Qo=new ue({purgeOnQuotaError:!0,maxAgeSeconds:720*60*60}
108),Xt="canvasflow",fe=(e,t,n)=>Oe(({request:r})=>r.destination===e,new Be({cacheName:t,plugins:[n]})),Xo=(e,t,n)=>Oe(({request:r})=>(e.join("|"),new RegExp(`.*\\.(?:${e.join("|")})$`).test(r.url)),new Be({cacheName:t,plugins:[n]})),es=(e,t)=>Oe(n=>{const{request:r,url:o}=n;return/^https:\/\/www\.google/.test(o.origin)||/^https:\/\/analytics\.google/.test(o.origin)?!1:/.*\.(?:png|webp|jpg|jpeg|gif)$/.test(r.url)},new Be({cacheName:e,plugins:[t]}));es(le,Ko);tn()||Oe(new kn(new Dn({cacheName:Xt})));Xo(["m3u8","ts","mp3"],Qe,Xe);fe("audio",Qe,Xe);fe("track",Qe,Xe);fe("video",Yt,Go);fe("font",Ho,Yo);fe("style",Fo,Qo);self.addEventListener("install",e=>{S(`SERVICE WORKER INSTALLATION: ${B}`),e.waitUntil(caches.open(Xt).then(t=>t.addAll(["/"])).then(()=>self.skipWaiting()).catch(console.error))});self.addEventListener("activate",e=>{S(`ACTIVATE SERVICE WORKER: ${B}`),e.waitUntil(Promise.all([self.clients.claim(),gs()]))});tn()?S("Is safari so i will ignore fetch"):S("The browser is not safari so i overwrite fetch");self.addEventListener("message",e=>{const{type:t,payload:n}=e.data;if(new Set(["DOWNLOAD_IMAGES","DOWNLOAD_BACKGROUND_IMAGES","DOWNLOAD_BACKGROUND_REPLICA_PAGES","DOWNLOAD_BACKGROUND_ISSUE","DOWNLOAD_BACKGROUND_VIDEOS","DOWNLOAD_BACKGROUND_STYLES","VERSION"]).has(t))switch(S(`RECEIVE MESSAGE: "${t}"`),t){case"DOWNLOAD_IMAGES":cs(n,e);break;case"VERSION":nn();break;case"DOWNLOAD_BACKGROUND_IMAGES":as(n);break;case"DOWNLOAD_BACKGROUND_REPLICA_PAGES":ss(n);break;case"DOWNLOAD_BACKGROUND_ISSUE":rs(n);break;case"DOWNLOAD_BACKGROUND_VIDEOS":us(n);break;case"DOWNLOAD_BACKGROUND_STYLES":ts();break;default:return}});function ts(){setTimeout(()=>{ve("DOWNLOAD STYLES IN THE BACKGROUND"),ns().then(e=>{Qt.postMessage({type:"DOWNLOAD_STYLES_MESSAGE",payload:{styles:e}})}).catch(console.error)},ze)}async function ns(){const e=`${ce.build.host}/graphql`,n=await(await fetch(e,{method:"POST",mode:"cors",cache:"no-cache",headers:{"Content-Type":"application/json","app-key":ce.build.appKey},body:JSON.stringify({query:Vo})})).json();return is(n.data.styles)}function rs(e){setTimeout(()=>{ve("DOWNLOAD ISSUE IN THE BACKGROUND",e);const{id:t,token:n}=e;os(t,n).then(r=>{ve("ISSUE IS DOWNLOADED IN THE BACKGROUND",r),r&&Qt.postMessage({type:"DOWNLOAD_ISSUE_MESSAGE",payload:{issue:r}})}).catch(console.error)},ze)}async function os(e,t){const n=`${ce.build.host}/graphql`,r={operationName:"Issue",variables:{id:e},query:Jo};let i=(await(await fetch(n,{method:"POST",mode:"cors",cache:"no-cache",headers:{"Content-Type":"application/json","app-key":ce.build.appKey,Authorization:t},body:JSON.stringify(r)})).json()).data.issue;return i&&(i=Bo(i)),i}function ss(e){const{IssueID:t}=e;ve(`Downloading pages in service worker from the replica: ${t}`);const n=async o=>{for(const s of o)try{await fetch(s)}catch(i){console.error(i)}},r=async o=>{const s=[];try{if(caches){const i=await caches.open(le);for(const a of o)await i.match(a)||s.push(a);S(`Total of pages sent to download: ${o.length}`),S(`Download this amount of pages: ${s.length}`),await i.addAll(s),S(`I succeed adding ${s.length} images to the cache`)}else S(`I failed fetching the ${s.length} images so i will try using fetch`),await n(o)}catch(i){console.error(i)}};setTimeout(()=>{r(e.pages).then(()=>{console.info("Success downloading the pages")}).catch(console.error)},ze)}function is(e){return e=e.map(x.mapRenameProperties).map(ps),e=x.resolveInheritance(e),e}function as(e){S(`Downloading images in service worker: ${e.images.length}`);const t=async r=>{for(const o of r)try{await fetch(o)}catch(s){console.error(s)}},n=async r=>{const o=[];try{if(caches){const s=await caches.open(le);for(const i of r)await s.match(i)||o.push(i);S(`Total of images sent to download: ${r.length}`),S(`Download this amount of images: ${o.length}`),await s.addAll(o),S(`I succeed adding ${o.length} images to the cache`)}else S(`I failed fetching the ${o.length} images so i will try using fetch`),await t(r)}catch(s){en(s)}};setTimeout(()=>{n(e.images).then(()=>{console.info("Success downloading the images")}).catch(console.error)},ze)}function cs(e,t){const{images:n,IssueID:r}=e;console.info("Download images in the service worker"),setTimeout(async()=>{try{const o=await self.clients.matchAll({type:"window"});console.info(`I start downloading the ${n.length} images`),await ls(n),console.info(`I finish processing all the images (${n.length}) for the issue ${r}`),t.ports[0].postMessage({type:"DOWNLOAD_IMAGES",payload:e});for(const s of o)s.postMessage({type:"DOWNLOAD_IMAGES",payload:e})}catch(o){t.ports[0].postMessage({type:"ERROR",payload:{error:o}})}},2e3)}function us(e){const{videos:t,IssueID:n}=e;S("Download videos in the service worker"),setTimeout(async()=>{try{S(`I start downloading the ${t.length} videos`),await fs(t),S(`I finish processing all the videos (${t.length}) for the issue ${n}`)}catch(r){en(r)}},2e3)}async function ls(e){const t=await self.clients.matchAll({type:"window"});for(const n of e){await ds(n);for(const r of t)r.postMessage({type:"DOWNLOAD_IMAGE",payload:{image:n,cacheName:le}})}}async function fs(e){for(const t of e)await hs(t)}async function ds(e){try{caches?(console.debug("Download image"),console.debug(e),await(await caches.open(le)).addAll([e])):await fetch(e)}catch(t){console.error(t)}}async function hs(e){try{caches?(console.debug("Download image"),console.debug(e),await(await caches.open(Yt)).addAll([e])):await fetch(e)}catch(t){console.error(t)}}
108self.skipWaiting&&self.skipWaiting();zn();function ve(e,...t){console.log("%csw",et("#64d1ff"),e,...t)}function S(e){console.info("%csw",et("#fed709"),e)}function en(e){console.info("%csw",et("#ff375f"),e)}function et(e){return`color: white; background: ${e}; border-radius: 6px; padding: 2px 12px;`}function tn(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function nn(){S(`SW - Version: ${B}`),S(`SW - Package Version: ${Gt}`),S(`SW - Version Hash: ${Ve}`)}function ps(e){return structuredClone?structuredClone(e):e&&JSON.parse(JSON.stringify(e))}async function gs(){try{const e=await caches.open(qo),t=await e.match("version-info");let n=null;if(t&&(n=(await t.json()).version),await e.put("version-info",new Response(JSON.stringify({version:B,hash:Ve,packageVersion:Gt,timestamp:Date.now()}))),n&&n!==B){S(`Version changed from ${n} to ${B}`);const o=(await caches.keys()).filter(s=>s.startsWith(`${q}-app-`)&&!s.includes(Ve));await Promise.all(o.map(s=>(S(`Deleting old app cache: ${s}`),caches.delete(s))))}}catch(e){console.error("Error handling version update:",e)}} 109//# sourceMappingURL=sw.js.map 110 111console.log('SW - Version: 2.11.1');
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.