if(!self.define){let e,s={};const a=(a,n)=>(a=new URL(a+".js",n).href,s[a]||new Promise(s=>{if("document"in self){const e=document.createElement("script");e.src=a,e.onload=s,document.head.appendChild(e)}else e=a,importScripts(a),s()}).then(()=>{let e=s[a];if(!e)throw new Error(`Module ${a} didn’t register its module`);return e}));self.define=(n,t)=>{const i=e||("document"in self?document.currentScript.src:"")||location.href;if(s[i])return;let c={};const r=e=>a(e,i),p={module:{uri:i},exports:c,require:r};s[i]=Promise.all(n.map(e=>p[e]||r(e))).then(e=>(t(...e),c))}}define(["./workbox-f1770938"],function(e){"use strict";importScripts(),self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"/_next/static/2RqNfR4wzPC36rBpBNb-d/_buildManifest.js",revision:"683450a8ef8dc9eb525423d00d97c18b"},{url:"/_next/static/2RqNfR4wzPC36rBpBNb-d/_ssgManifest.js",revision:"b6652df95db52feb4daf4eca35380933"},{url:"/_next/static/chunks/203.2b4c1ee4fbe3a7cf.js",revision:"2b4c1ee4fbe3a7cf"},{url:"/_next/static/chunks/218.57a830a2c55ba802.js",revision:"57a830a2c55ba802"},{url:"/_next/static/chunks/237-d7f3f6b36cdf5287.js",revision:"2RqNfR4wzPC36rBpBNb-d"},{url:"/_next/static/chunks/265-fa7b5d925c8d2078.js",revision:"2RqNfR4wzPC36rBpBNb-d"},{url:"/_next/static/chunks/3-368d8e99b19619da.js",revision:"2RqNfR4wzPC36rBpBNb-d"},{url:"/_next/static/chunks/432-a8745bfff39e5818.js",revision:"2RqNfR4wzPC36rBpBNb-d"},{url:"/_next/static/chunks/455-92f818384b0082a3.js",revision:"2RqNfR4wzPC36rBpBNb-d"},{url:"/_next/static/chunks/4bd1b696-56746f87c48a9cf6.js",revision:"2RqNfR4wzPC36rBpBNb-d"},{url:"/_next/static/chunks/808-014b2c91082c7a9e.js",revision:"2RqNfR4wzPC36rBpBNb-d"},{url:"/_next/static/chunks/867-2383984fb6c0afb4.js",revision:"2RqNfR4wzPC36rBpBNb-d"},{url:"/_next/static/chunks/950.d4dea6af8473c7fd.js",revision:"d4dea6af8473c7fd"},{url:"/_next/static/chunks/997-4e410665b4e0ea6f.js",revision:"2RqNfR4wzPC36rBpBNb-d"},{url:"/_next/static/chunks/aaea2bcf-417c98791936187f.js",revision:"2RqNfR4wzPC36rBpBNb-d"},{url:"/_next/static/chunks/app/_not-found/page-2582c22b4ab6f963.js",revision:"2RqNfR4wzPC36rBpBNb-d"},{url:"/_next/static/chunks/app/admin/discrepancies/page-2171f45b5d6351ff.js",revision:"2RqNfR4wzPC36rBpBNb-d"},{url:"/_next/static/chunks/app/admin/locations/page-09f1d359eb03d5e5.js",revision:"2RqNfR4wzPC36rBpBNb-d"},{url:"/_next/static/chunks/app/admin/page-5a81913a5ab2d331.js",revision:"2RqNfR4wzPC36rBpBNb-d"},{url:"/_next/static/chunks/app/admin/settings/page-c5bd3cc3053b19fa.js",revision:"2RqNfR4wzPC36rBpBNb-d"},{url:"/_next/static/chunks/app/admin/stats/page-07c43c586f460e5b.js",revision:"2RqNfR4wzPC36rBpBNb-d"},{url:"/_next/static/chunks/app/api/admin/stats/route-383cc03f47d7e795.js",revision:"2RqNfR4wzPC36rBpBNb-d"},{url:"/_next/static/chunks/app/api/auth/login/route-6b02411fd9312979.js",revision:"2RqNfR4wzPC36rBpBNb-d"},{url:"/_next/static/chunks/app/api/auth/webauthn/login/generate-options/route-2fea5fb9b61fe8d6.js",revision:"2RqNfR4wzPC36rBpBNb-d"},{url:"/_next/static/chunks/app/api/auth/webauthn/login/verify/route-c92855a0aafe54cf.js",revision:"2RqNfR4wzPC36rBpBNb-d"},{url:"/_next/static/chunks/app/api/auth/webauthn/register/generate-options/route-fce885e5fbac21bc.js",revision:"2RqNfR4wzPC36rBpBNb-d"},{url:"/_next/static/chunks/app/api/auth/webauthn/register/verify/route-8875614f8da19a89.js",revision:"2RqNfR4wzPC36rBpBNb-d"},{url:"/_next/static/chunks/app/api/counting/route-fcb1b5b40e8baa98.js",revision:"2RqNfR4wzPC36rBpBNb-d"},{url:"/_next/static/chunks/app/api/hesabfa/route-68eac0d6467bdc8d.js",revision:"2RqNfR4wzPC36rBpBNb-d"},{url:"/_next/static/chunks/app/api/locations/%5Bid%5D/route-3c09d6c4ea8fbe89.js",revision:"2RqNfR4wzPC36rBpBNb-d"},{url:"/_next/static/chunks/app/api/locations/lock/route-dada5ab48407d9de.js",revision:"2RqNfR4wzPC36rBpBNb-d"},{url:"/_next/static/chunks/app/api/locations/route-74ce92c9f8dafd80.js",revision:"2RqNfR4wzPC36rBpBNb-d"},{url:"/_next/static/chunks/app/api/reports/discrepancies/route-20d919f275eeb818.js",revision:"2RqNfR4wzPC36rBpBNb-d"},{url:"/_next/static/chunks/app/api/settings/route-48d84d2910508432.js",revision:"2RqNfR4wzPC36rBpBNb-d"},{url:"/_next/static/chunks/app/api/user/settings/route-bce8c3d036b7862b.js",revision:"2RqNfR4wzPC36rBpBNb-d"},{url:"/_next/static/chunks/app/counting/item/page-fa9ae369046bd21c.js",revision:"2RqNfR4wzPC36rBpBNb-d"},{url:"/_next/static/chunks/app/counting/page-dfd751358f237b62.js",revision:"2RqNfR4wzPC36rBpBNb-d"},{url:"/_next/static/chunks/app/counting/shelf/page-15e7bfd040df7e40.js",revision:"2RqNfR4wzPC36rBpBNb-d"},{url:"/_next/static/chunks/app/dashboard/page-ef6a8e9eb186c0dc.js",revision:"2RqNfR4wzPC36rBpBNb-d"},{url:"/_next/static/chunks/app/history/page-58ae30c797d86676.js",revision:"2RqNfR4wzPC36rBpBNb-d"},{url:"/_next/static/chunks/app/layout-4437d020cd99f1fd.js",revision:"2RqNfR4wzPC36rBpBNb-d"},{url:"/_next/static/chunks/app/my-counts/page-428bfdcef8b0d6ef.js",revision:"2RqNfR4wzPC36rBpBNb-d"},{url:"/_next/static/chunks/app/page-d58dbd439d287a95.js",revision:"2RqNfR4wzPC36rBpBNb-d"},{url:"/_next/static/chunks/app/scan/page-e4d061bbf2bf5098.js",revision:"2RqNfR4wzPC36rBpBNb-d"},{url:"/_next/static/chunks/app/settings/page-cfade965fd5a956f.js",revision:"2RqNfR4wzPC36rBpBNb-d"},{url:"/_next/static/chunks/framework-604978439d1d629a.js",revision:"2RqNfR4wzPC36rBpBNb-d"},{url:"/_next/static/chunks/main-8c068453b4f9b8c5.js",revision:"2RqNfR4wzPC36rBpBNb-d"},{url:"/_next/static/chunks/main-app-0a1fde41b93fa89b.js",revision:"2RqNfR4wzPC36rBpBNb-d"},{url:"/_next/static/chunks/pages/_app-42ef6f0c9ee99f63.js",revision:"2RqNfR4wzPC36rBpBNb-d"},{url:"/_next/static/chunks/pages/_error-f44bc0d037a5fda4.js",revision:"2RqNfR4wzPC36rBpBNb-d"},{url:"/_next/static/chunks/polyfills-42372ed130431b0a.js",revision:"846118c33b2c0e922d7b3a7676f81f6f"},{url:"/_next/static/chunks/webpack-77e6d7d3237ca801.js",revision:"2RqNfR4wzPC36rBpBNb-d"},{url:"/_next/static/css/11a46a6b772ebb7f.css",revision:"11a46a6b772ebb7f"},{url:"/fonts/iran.woff",revision:"d5ee7656a952885799459b0d6dea15fd"},{url:"/fonts/iran.woff2",revision:"0df0a1bb596a7f6b83ab4806d1c5a2d5"},{url:"/icons/icon-192x192.png",revision:"c4b3359ddaef89958c1f1961735f0a94"},{url:"/icons/icon-512x512.png",revision:"c4b3359ddaef89958c1f1961735f0a94"},{url:"/images/default_avatar.png",revision:"a68e5a585cb3701839d1aaa5d33924a3"},{url:"/manifest.json",revision:"281aef06fe683d98687ffc081e7dc7fc"}],{ignoreURLParametersMatching:[/^utm_/,/^fbclid$/]}),e.cleanupOutdatedCaches(),e.registerRoute("/",new e.NetworkFirst({cacheName:"start-url",plugins:[{cacheWillUpdate:async({response:e})=>e&&"opaqueredirect"===e.type?new Response(e.body,{status:200,statusText:"OK",headers:e.headers}):e}]}),"GET"),e.registerRoute(/^https:\/\/fonts\.(?:gstatic)\.com\/.*/i,new e.CacheFirst({cacheName:"google-fonts-webfonts",plugins:[new e.ExpirationPlugin({maxEntries:4,maxAgeSeconds:31536e3})]}),"GET"),e.registerRoute(/^https:\/\/fonts\.(?:googleapis)\.com\/.*/i,new e.StaleWhileRevalidate({cacheName:"google-fonts-stylesheets",plugins:[new e.ExpirationPlugin({maxEntries:4,maxAgeSeconds:604800})]}),"GET"),e.registerRoute(/\.(?:eot|otf|ttc|ttf|woff|woff2|font.css)$/i,new e.StaleWhileRevalidate({cacheName:"static-font-assets",plugins:[new e.ExpirationPlugin({maxEntries:4,maxAgeSeconds:604800})]}),"GET"),e.registerRoute(/\.(?:jpg|jpeg|gif|png|svg|ico|webp)$/i,new e.StaleWhileRevalidate({cacheName:"static-image-assets",plugins:[new e.ExpirationPlugin({maxEntries:64,maxAgeSeconds:2592e3})]}),"GET"),e.registerRoute(/\/_next\/static.+\.js$/i,new e.CacheFirst({cacheName:"next-static-js-assets",plugins:[new e.ExpirationPlugin({maxEntries:64,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\/_next\/image\?url=.+$/i,new e.StaleWhileRevalidate({cacheName:"next-image",plugins:[new e.ExpirationPlugin({maxEntries:64,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:mp3|wav|ogg)$/i,new e.CacheFirst({cacheName:"static-audio-assets",plugins:[new e.RangeRequestsPlugin,new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:mp4|webm)$/i,new e.CacheFirst({cacheName:"static-video-assets",plugins:[new e.RangeRequestsPlugin,new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:js)$/i,new e.StaleWhileRevalidate({cacheName:"static-js-assets",plugins:[new e.ExpirationPlugin({maxEntries:48,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:css|less)$/i,new e.StaleWhileRevalidate({cacheName:"static-style-assets",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\/_next\/data\/.+\/.+\.json$/i,new e.StaleWhileRevalidate({cacheName:"next-data",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:json|xml|csv)$/i,new e.NetworkFirst({cacheName:"static-data-assets",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(({sameOrigin:e,url:{pathname:s}})=>!(!e||s.startsWith("/api/auth/callback")||!s.startsWith("/api/")),new e.NetworkFirst({cacheName:"apis",networkTimeoutSeconds:10,plugins:[new e.ExpirationPlugin({maxEntries:16,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(({request:e,url:{pathname:s},sameOrigin:a})=>"1"===e.headers.get("RSC")&&"1"===e.headers.get("Next-Router-Prefetch")&&a&&!s.startsWith("/api/"),new e.NetworkFirst({cacheName:"pages-rsc-prefetch",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(({request:e,url:{pathname:s},sameOrigin:a})=>"1"===e.headers.get("RSC")&&a&&!s.startsWith("/api/"),new e.NetworkFirst({cacheName:"pages-rsc",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(({url:{pathname:e},sameOrigin:s})=>s&&!e.startsWith("/api/"),new e.NetworkFirst({cacheName:"pages",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(({sameOrigin:e})=>!e,new e.NetworkFirst({cacheName:"cross-origin",networkTimeoutSeconds:10,plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:3600})]}),"GET")});