aboutsummaryrefslogtreecommitdiffhomepage
path: root/public/workbox-v4.3.1/workbox-range-requests.prod.js
diff options
context:
space:
mode:
authorgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2022-11-21 22:00:30 +0000
committergithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2022-11-21 22:00:30 +0000
commit6ec00afac5afc892dca5a184b66467d9408f14a5 (patch)
tree6440bf43eafdf75a376b94b9636f3ccac7b3f716 /public/workbox-v4.3.1/workbox-range-requests.prod.js
parent7fede4ee94880f09f44697104c0696e44fc2f8b6 (diff)
downloadsubmelon.dev-6ec00afac5afc892dca5a184b66467d9408f14a5.tar.gz
submelon.dev-6ec00afac5afc892dca5a184b66467d9408f14a5.tar.bz2
submelon.dev-6ec00afac5afc892dca5a184b66467d9408f14a5.zip
chore: autopublish 2022-11-21T22:00:30Z
Diffstat (limited to 'public/workbox-v4.3.1/workbox-range-requests.prod.js')
-rw-r--r--public/workbox-v4.3.1/workbox-range-requests.prod.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/public/workbox-v4.3.1/workbox-range-requests.prod.js b/public/workbox-v4.3.1/workbox-range-requests.prod.js
new file mode 100644
index 0000000..e60370c
--- /dev/null
+++ b/public/workbox-v4.3.1/workbox-range-requests.prod.js
@@ -0,0 +1,2 @@
+this.workbox=this.workbox||{},this.workbox.rangeRequests=function(e,n){"use strict";try{self["workbox:range-requests:4.3.1"]&&_()}catch(e){}async function t(e,t){try{if(206===t.status)return t;const s=e.headers.get("range");if(!s)throw new n.WorkboxError("no-range-header");const a=function(e){const t=e.trim().toLowerCase();if(!t.startsWith("bytes="))throw new n.WorkboxError("unit-must-be-bytes",{normalizedRangeHeader:t});if(t.includes(","))throw new n.WorkboxError("single-range-only",{normalizedRangeHeader:t});const s=/(\d*)-(\d*)/.exec(t);if(null===s||!s[1]&&!s[2])throw new n.WorkboxError("invalid-range-values",{normalizedRangeHeader:t});return{start:""===s[1]?null:Number(s[1]),end:""===s[2]?null:Number(s[2])}}(s),r=await t.blob(),i=function(e,t,s){const a=e.size;if(s>a||t<0)throw new n.WorkboxError("range-not-satisfiable",{size:a,end:s,start:t});let r,i;return null===t?(r=a-s,i=a):null===s?(r=t,i=a):(r=t,i=s+1),{start:r,end:i}}(r,a.start,a.end),o=r.slice(i.start,i.end),u=o.size,l=new Response(o,{status:206,statusText:"Partial Content",headers:t.headers});return l.headers.set("Content-Length",u),l.headers.set("Content-Range",`bytes ${i.start}-${i.end-1}/`+r.size),l}catch(e){return new Response("",{status:416,statusText:"Range Not Satisfiable"})}}return e.createPartialResponse=t,e.Plugin=class{async cachedResponseWillBeUsed({request:e,cachedResponse:n}){return n&&e.headers.has("range")?await t(e,n):n}},e}({},workbox.core._private);
+//# sourceMappingURL=workbox-range-requests.prod.js.map