diff --git a/asset-manifest.json b/asset-manifest.json index 59d2ef2..ee805f7 100644 --- a/asset-manifest.json +++ b/asset-manifest.json @@ -1,15 +1,15 @@ { "files": { "main.css": "/allergen-ai/static/css/main.946ffb18.css", - "main.js": "/allergen-ai/static/js/main.d7cec1d7.js", + "main.js": "/allergen-ai/static/js/main.d75ea3b2.js", "static/js/787.9a97a147.chunk.js": "/allergen-ai/static/js/787.9a97a147.chunk.js", "index.html": "/allergen-ai/index.html", "main.946ffb18.css.map": "/allergen-ai/static/css/main.946ffb18.css.map", - "main.d7cec1d7.js.map": "/allergen-ai/static/js/main.d7cec1d7.js.map", + "main.d75ea3b2.js.map": "/allergen-ai/static/js/main.d75ea3b2.js.map", "787.9a97a147.chunk.js.map": "/allergen-ai/static/js/787.9a97a147.chunk.js.map" }, "entrypoints": [ "static/css/main.946ffb18.css", - "static/js/main.d7cec1d7.js" + "static/js/main.d75ea3b2.js" ] } \ No newline at end of file diff --git a/index.html b/index.html index 6008e41..1c10a58 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -allergen.ai
\ No newline at end of file +allergen.ai
\ No newline at end of file diff --git a/static/js/main.d7cec1d7.js b/static/js/main.d75ea3b2.js similarity index 98% rename from static/js/main.d7cec1d7.js rename to static/js/main.d75ea3b2.js index 262565a..4381cbf 100644 --- a/static/js/main.d7cec1d7.js +++ b/static/js/main.d75ea3b2.js @@ -1,3 +1,3 @@ -/*! For license information please see main.d7cec1d7.js.LICENSE.txt */ -(()=>{var e={998:(e,t)=>{"use strict";t.Z=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",i=(e.type||"").toLowerCase(),o=i.replace(/\/.*$/,"");return n.some((function(e){var t=e.trim().toLowerCase();return"."===t.charAt(0)?r.toLowerCase().endsWith(t):t.endsWith("/*")?o===t.replace(/\/.*$/,""):i===t}))}return!0}},694:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;tt===e))}n.r(t),n.d(t,"canvastoDataURL",(function(){return a})),n.d(t,"canvastoFile",(function(){return s})),n.d(t,"dataURLtoFile",(function(){return u})),n.d(t,"dataURLtoImage",(function(){return c})),n.d(t,"downloadFile",(function(){return d})),n.d(t,"filetoDataURL",(function(){return f})),n.d(t,"imagetoCanvas",(function(){return p})),n.d(t,"urltoBlob",(function(){return m})),n.d(t,"urltoImage",(function(){return g})),n.d(t,"compress",(function(){return y})),n.d(t,"compressAccurately",(function(){return _})),n.d(t,"EImageType",(function(){return r})),function(e){e.PNG="image/png",e.JPEG="image/jpeg",e.GIF="image/gif"}(r||(r={}));var o=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))};function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.92,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r.JPEG;return o(this,void 0,void 0,(function*(){return i(n)||(n=r.JPEG),e.toDataURL(n,t)}))}function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.92,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r.JPEG;return new Promise((r=>e.toBlob((e=>r(e)),n,t)))}var l=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))};function u(e,t){return l(this,void 0,void 0,(function*(){const n=e.split(",");let r=n[0].match(/:(.*?);/)[1];const o=atob(n[1]);let a=o.length;const s=new Uint8Array(a);for(;a--;)s[a]=o.charCodeAt(a);return i(t)&&(r=t),new Blob([s],{type:r})}))}function c(e){return new Promise(((t,n)=>{const r=new Image;r.onload=()=>t(r),r.onerror=()=>n(new Error("dataURLtoImage(): dataURL is illegal")),r.src=e}))}function d(e,t){const n=document.createElement("a");n.href=window.URL.createObjectURL(e),n.download=t||Date.now().toString(36),document.body.appendChild(n);const r=document.createEvent("MouseEvents");r.initEvent("click",!1,!1),n.dispatchEvent(r),document.body.removeChild(n)}function f(e){return new Promise((t=>{const n=new FileReader;n.onloadend=e=>t(e.target.result),n.readAsDataURL(e)}))}var h=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))};function p(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return h(this,void 0,void 0,(function*(){const n=Object.assign({},t),r=document.createElement("canvas"),i=r.getContext("2d");let o,a;for(const e in n)Object.prototype.hasOwnProperty.call(n,e)&&(n[e]=Number(n[e]));if(n.scale){const t=n.scale>0&&n.scale<10?n.scale:1;a=e.width*t,o=e.height*t}else a=n.width||n.height*e.width/e.height||e.width,o=n.height||n.width*e.height/e.width||e.height;switch([5,6,7,8].some((e=>e===n.orientation))?(r.height=a,r.width=o):(r.height=o,r.width=a),n.orientation){case 3:i.rotate(180*Math.PI/180),i.drawImage(e,-r.width,-r.height,r.width,r.height);break;case 6:i.rotate(90*Math.PI/180),i.drawImage(e,0,-r.width,r.height,r.width);break;case 8:i.rotate(270*Math.PI/180),i.drawImage(e,-r.height,0,r.height,r.width);break;case 2:i.translate(r.width,0),i.scale(-1,1),i.drawImage(e,0,0,r.width,r.height);break;case 4:i.translate(r.width,0),i.scale(-1,1),i.rotate(180*Math.PI/180),i.drawImage(e,-r.width,-r.height,r.width,r.height);break;case 5:i.translate(r.width,0),i.scale(-1,1),i.rotate(90*Math.PI/180),i.drawImage(e,0,-r.width,r.height,r.width);break;case 7:i.translate(r.width,0),i.scale(-1,1),i.rotate(270*Math.PI/180),i.drawImage(e,-r.height,0,r.height,r.width);break;default:i.drawImage(e,0,0,r.width,r.height)}return r}))}function m(e){return fetch(e).then((e=>e.blob()))}function g(e){return new Promise(((t,n)=>{const r=new Image;r.onload=()=>t(r),r.onerror=()=>n(new Error("urltoImage(): Image failed to load, please check the image URL")),r.src=e}))}var v=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))};function y(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return v(this,void 0,void 0,(function*(){if(!(e instanceof Blob))throw new Error("compress(): First arg must be a Blob object or a File object.");if("object"!=typeof t&&(t=Object.assign({quality:t})),t.quality=Number(t.quality),Number.isNaN(t.quality))return e;const n=yield f(e);let o=n.split(",")[0].match(/:(.*?);/)[1],s=r.JPEG;i(t.type)&&(s=t.type,o=t.type);const l=yield c(n),d=yield p(l,Object.assign({},t)),h=yield a(d,t.quality,s),m=yield u(h,o);return m.size>e.size?e:m}))}function _(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return v(this,void 0,void 0,(function*(){if(!(e instanceof Blob))throw new Error("compressAccurately(): First arg must be a Blob object or a File object.");if("object"!=typeof t&&(t=Object.assign({size:t})),t.size=Number(t.size),Number.isNaN(t.size))return e;if(1024*t.size>e.size)return e;t.accuracy=Number(t.accuracy),(!t.accuracy||t.accuracy<.8||t.accuracy>.99)&&(t.accuracy=.95);const n=t.size*(2-t.accuracy)*1024,o=1024*t.size,s=t.size*t.accuracy*1024,l=yield f(e);let d=l.split(",")[0].match(/:(.*?);/)[1],h=r.JPEG;i(t.type)&&(h=t.type,d=t.type);const m=yield c(l),g=yield p(m,Object.assign({},t));let v,y=.5;const _=[null,null];for(let e=1;e<=7;e++){v=yield a(g,y,h);const t=.75*v.length;if(7===e){(nt)&&(v=[v,..._].filter((e=>e)).sort(((e,t)=>Math.abs(.75*e.length-o)-Math.abs(.75*t.length-o)))[0]);break}if(nt))break;_[0]=v,y+=Math.pow(.5,e+1)}}const b=yield u(v,d);return b.size>e.size?e:b}))}}])},635:(e,t,n)=>{e.exports=n(537)},888:(e,t,n)=>{"use strict";var r=n(47);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},7:(e,t,n)=>{e.exports=n(888)()},47:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},463:(e,t,n)=>{"use strict";var r=n(791),i=n(296);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n