added attendance and fixed body composition

This commit is contained in:
ghassan committed 2026-01-24 13:13:42 +03:00
1 parent 125e1c34af
commit 352d54a788
4 files changed
+51 -3

No files matched your search

+1
View File
@@ -0,0 +1 @@
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-divide-x-reverse:0;--tw-border-style:solid;--tw-divide-y-reverse:0;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-content:""}}}@layer theme{:root,:host{--font-sans:"Instrument Sans",ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-serif:ui-serif,Georgia,Cambria,"Times New Roman",Times,serif;--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-100:oklch(93.6% .032 17.717);--color-red-200:oklch(88.5% .062 18.334);--color-red-300:oklch(80.8% .114 19.571);--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-red-800:oklch(44.4% .177 26.899);--color-red-900:oklch(39.6% .141 25.723);--color-red-950:oklch(25.8% .092 26.042);--color-orange-50:oklch(98% .016 73.684);--color-orange-100:oklch(95.4% .038 75.164);--color-orange-200:oklch(90.1% .076 70.697);--color-orange-300:oklch(83.7% .128 66.29);--color-orange-400:oklch(75% .183 55.934);--color-orange-500:oklch(70.5% .213 47.604);--color-orange-600:oklch(64.6% .222 41.116);--color-orange-700:oklch(55.3% .195 38.402);--color-orange-800:oklch(47% .157 37.304);--color-orange-900:oklch(40.8% .123 38.172);--color-orange-950:oklch(26.6% .079 36.259);--color-amber-50:oklch(98.7% .022 95.277);--color-amber-100:oklch(96.2% .059 95.617);--color-amber-200:oklch(92.4% .12 95.746);--color-amber-300:oklch(87.9% .169 91.605);--color-amber-400:oklch(82.8% .189 84.429);--color-amber-500:oklch(76.9% .188 70.08);--color-amber-600:oklch(66.6% .179 58.318);--color-amber-700:oklch(55.5% .163 48.998);--color-amber-800:oklch(47.3% .137 46.201);--color-amber-900:oklch(41.4% .112 45.904);--color-amber-950:oklch(27.9% .077 45.635);--color-yellow-50:oklch(98.7% .026 102.212);--color-yellow-100:oklch(97.3% .071 103.193);--color-yellow-200:oklch(94.5% .129 101.54);--color-yellow-300:oklch(90.5% .182 98.111);--color-yellow-400:oklch(85.2% .199 91.936);--color-yellow-500:oklch(79.5% .184 86.047);--color-yellow-600:oklch(68.1% .162 75.834);--color-yellow-700:oklch(55.4% .135 66.442);--color-yellow-800:oklch(47.6% .114 61.907);--color-yellow-900:oklch(42.1% .095 57.708);--color-yellow-950:oklch(28.6% .066 53.813);--color-lime-50:oklch(98.6% .031 120.757);--color-lime-100:oklch(96.7% .067 122.328);--color-lime-200:oklch(93.8% .127 124.321);--color-lime-300:oklch(89.7% .196 126.665);--color-lime-400:oklch(84.1% .238 128.85);--color-lime-500:oklch(76.8% .233 130.85);--color-lime-600:oklch(64.8% .2 131.684);--color-lime-700:oklch(53.2% .157 131.589);--color-lime-800:oklch(45.3% .124 130.933);--color-lime-900:oklch(40.5% .101 131.063);--color-lime-950:oklch(27.4% .072 132.109);--color-green-50:oklch(98.2% .018 155.826);--color-green-100:oklch(96.2% .044 156.743);--color-green-200:oklch(92.5% .084 155.995);--color-green-300:oklch(87.1% .15 154.449);--color-green-400:oklch(79.2% .209 151.711);--color-green-500:oklch(72.3% .219 149.579);--color-green-600:oklch(62.7% .194 149.214);--color-green-700:oklch(52.7% .154 150.069);--color-green-800:oklch(44.8% .119 151.328);--color-green-900:oklch(39.3% .095 152.535);--color-green-950:oklch(26.6% .065 152.934);--color-emerald-50:oklch(97.9% .021 166.113);--color-emerald-100:oklch(95% .052 163.051);--color-emerald-200:oklch(90.5% .093 164.15);--color-emerald-300:oklch(84.5% .143 164.978);--color-emerald-400:oklch(76.5Line truncated
+30
View File
@@ -0,0 +1,30 @@
function Bl(n,t){return function(){return n.apply(t,arguments)}}const{toString:rf}=Object.prototype,{getPrototypeOf:Gr}=Object,{iterator:Ns,toStringTag:Hl}=Symbol,Bs=(n=>t=>{const e=rf.call(t);return n[e]||(n[e]=e.slice(8,-1).toLowerCase())})(Object.create(null)),Ve=n=>(n=n.toLowerCase(),t=>Bs(t)===n),Hs=n=>t=>typeof t===n,{isArray:fi}=Array,ai=Hs("undefined");function Wi(n){return n!==null&&!ai(n)&&n.constructor!==null&&!ai(n.constructor)&&Pe(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const jl=Ve("ArrayBuffer");function of(n){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(n):t=n&&n.buffer&&jl(n.buffer),t}const af=Hs("string"),Pe=Hs("function"),zl=Hs("number"),Vi=n=>n!==null&&typeof n=="object",lf=n=>n===!0||n===!1,bs=n=>{if(Bs(n)!=="object")return!1;const t=Gr(n);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Hl in n)&&!(Ns in n)},cf=n=>{if(!Vi(n)||Wi(n))return!1;try{return Object.keys(n).length===0&&Object.getPrototypeOf(n)===Object.prototype}catch{return!1}},uf=Ve("Date"),ff=Ve("File"),hf=Ve("Blob"),df=Ve("FileList"),pf=n=>Vi(n)&&Pe(n.pipe),gf=n=>{let t;return n&&(typeof FormData=="function"&&n instanceof FormData||Pe(n.append)&&((t=Bs(n))==="formdata"||t==="object"&&Pe(n.toString)&&n.toString()==="[object FormData]"))},mf=Ve("URLSearchParams"),[bf,yf,xf,_f]=["ReadableStream","Request","Response","Headers"].map(Ve),vf=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function $i(n,t,{allOwnKeys:e=!1}={}){if(n===null||typeof n>"u")return;let i,s;if(typeof n!="object"&&(n=[n]),fi(n))for(i=0,s=n.length;i<s;i++)t.call(null,n[i],i,n);else{if(Wi(n))return;const r=e?Object.getOwnPropertyNames(n):Object.keys(n),o=r.length;let a;for(i=0;i<o;i++)a=r[i],t.call(null,n[a],a,n)}}function Ul(n,t){if(Wi(n))return null;t=t.toLowerCase();const e=Object.keys(n);let i=e.length,s;for(;i-- >0;)if(s=e[i],t===s.toLowerCase())return s;return null}const Hn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Wl=n=>!ai(n)&&n!==Hn;function Fr(){const{caseless:n,skipUndefined:t}=Wl(this)&&this||{},e={},i=(s,r)=>{const o=n&&Ul(e,r)||r;bs(e[o])&&bs(s)?e[o]=Fr(e[o],s):bs(s)?e[o]=Fr({},s):fi(s)?e[o]=s.slice():(!t||!ai(s))&&(e[o]=s)};for(let s=0,r=arguments.length;s<r;s++)arguments[s]&&$i(arguments[s],i);return e}const wf=(n,t,e,{allOwnKeys:i}={})=>($i(t,(s,r)=>{e&&Pe(s)?n[r]=Bl(s,e):n[r]=s},{allOwnKeys:i}),n),Sf=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),Af=(n,t,e,i)=>{n.prototype=Object.create(t.prototype,i),n.prototype.constructor=n,Object.defineProperty(n,"super",{value:t.prototype}),e&&Object.assign(n.prototype,e)},Cf=(n,t,e,i)=>{let s,r,o;const a={};if(t=t||{},n==null)return t;do{for(s=Object.getOwnPropertyNames(n),r=s.length;r-- >0;)o=s[r],(!i||i(o,n,t))&&!a[o]&&(t[o]=n[o],a[o]=!0);n=e!==!1&&Gr(n)}while(n&&(!e||e(n,t))&&n!==Object.prototype);return t},kf=(n,t,e)=>{n=String(n),(e===void 0||e>n.length)&&(e=n.length),e-=t.length;const i=n.indexOf(t,e);return i!==-1&&i===e},Mf=n=>{if(!n)return null;if(fi(n))return n;let t=n.length;if(!zl(t))return null;const e=new Array(t);for(;t-- >0;)e[t]=n[t];return e},Tf=(n=>t=>n&&t instanceof n)(typeof Uint8Array<"u"&&Gr(Uint8Array)),Ef=(n,t)=>{const i=(n&&n[Ns]).call(n);let s;for(;(s=i.next())&&!s.done;){const r=s.value;t.call(n,r[0],r[1])}},Pf=(n,t)=>{let e;const i=[];for(;(e=n.exec(t))!==null;)i.push(e);return i},Of=Ve("HTMLFormElement"),Df=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,i,s){return i.toUpperCase()+s}),Ko=(({hasOwnProperty:n})=>(t,e)=>n.call(t,e))(Object.prototype),Rf=Ve("RegExp"),Vl=(n,t)=>{const e=Object.getOwnPropertyDescriptors(n),i={};$i(e,(s,r)=>{let o;(o=t(s,r,n))!==!1&&(i[r]=o||s)}),Object.defineProperties(n,i)},Lf=n=>{Vl(n,(t,e)=>{if(Pe(n)&&["arguments","caller","callee"].indexOf(e)!==-1)return!1;const i=n[e];if(Pe(i)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+e+"'")})}})},Ff=(n,t)=>{const e={},i=s=>{s.forEach(r=>{e[r]=!0})};return fi(n)?i(n):i(String(n).split(t)),e},If=()=>{},Nf=(n,t)=>n!=null&&Number.isFinite(n=+n)?n:t;function Bf(n){return!!(n&&Pe(n.append)&&n[Hl]==="FormData"&&n[Ns])}const Hf=n=>{const t=new Array(10),e=(i,s)=>{if(Vi(i)){if(t.indexOf(i)>=0)return;if(Wi(i))return i;if(!("toJSON"in i)){t[s]=i;const r=fi(i)?[]:{};return $i(i,(o,a)=>{const c=e(o,s+1);!ai(c)&&(r[a]=c)}),t[s]=void 0,r}}return i};return e(n,0)},jf=Ve("AsyncFunction"),zf=n=>n&&(Vi(n)||Pe(n))&&Pe(n.then)&&Pe(n.catch),$l=((n,t)=>n?setImmediate:t?((e,i)=>(Hn.addEventListener("message",({source:s,data:r})=>{s===Hn&&r===e&&i.length&&i.shift()()},!1),s=>{i.push(s),Hn.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate=="function",Pe(Hn.postMessage)),Uf=typeof queueMicrotask<"u"?queueMicrotask.bind(Hn):typeof process<"u"&&process.nextTick||$l,Wf=n=>n!=null&&Pe(n[Ns]),G={isArray:fi,isArrayBuffer:jl,isBuffer:Wi,isFormData:gf,isArrayBufferView:ofLine truncated
`).forEach(function(o){s=o.indexOf(":"),e=o.substring(0,s).trim().toLowerCase(),i=o.substring(s+1).trim(),!(!e||t[e]&&oh[e])&&(e==="set-cookie"?t[e]?t[e].push(i):t[e]=[i]:t[e]=t[e]?t[e]+", "+i:i)}),t},Zo=Symbol("internals");function wi(n){return n&&String(n).trim().toLowerCase()}function ys(n){return n===!1||n==null?n:G.isArray(n)?n.map(ys):String(n)}function lh(n){const t=Object.create(null),e=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=e.exec(n);)t[i[1]]=i[2];return t}const ch=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function br(n,t,e,i,s){if(G.isFunction(i))return i.call(this,t,e);if(s&&(t=e),!!G.isString(t)){if(G.isString(i))return t.indexOf(i)!==-1;if(G.isRegExp(i))return i.test(t)}}function uh(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,e,i)=>e.toUpperCase()+i)}function fh(n,t){const e=G.toCamelCase(" "+t);["get","set","has"].forEach(i=>{Object.defineProperty(n,i+e,{value:function(s,r,o){return this[i].call(this,t,s,r,o)},configurable:!0})})}let Oe=class{constructor(t){t&&this.set(t)}set(t,e,i){const s=this;function r(a,c,f){const u=wi(c);if(!u)throw new Error("header name must be a non-empty string");const d=G.findKey(s,u);(!d||s[d]===void 0||f===!0||f===void 0&&s[d]!==!1)&&(s[d||c]=ys(a))}const o=(a,c)=>G.forEach(a,(f,u)=>r(f,u,c));if(G.isPlainObject(t)||t instanceof this.constructor)o(t,e);else if(G.isString(t)&&(t=t.trim())&&!ch(t))o(ah(t),e);else if(G.isObject(t)&&G.isIterable(t)){let a={},c,f;for(const u of t){if(!G.isArray(u))throw TypeError("Object iterator must return a key-value pair");a[f=u[0]]=(c=a[f])?G.isArray(c)?[...c,u[1]]:[c,u[1]]:u[1]}o(a,e)}else t!=null&&r(e,t,i);return this}get(t,e){if(t=wi(t),t){const i=G.findKey(this,t);if(i){const s=this[i];if(!e)return s;if(e===!0)return lh(s);if(G.isFunction(e))return e.call(this,s,i);if(G.isRegExp(e))return e.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=wi(t),t){const i=G.findKey(this,t);return!!(i&&this[i]!==void 0&&(!e||br(this,this[i],i,e)))}return!1}delete(t,e){const i=this;let s=!1;function r(o){if(o=wi(o),o){const a=G.findKey(i,o);a&&(!e||br(i,i[a],a,e))&&(delete i[a],s=!0)}}return G.isArray(t)?t.forEach(r):r(t),s}clear(t){const e=Object.keys(this);let i=e.length,s=!1;for(;i--;){const r=e[i];(!t||br(this,this[r],r,t,!0))&&(delete this[r],s=!0)}return s}normalize(t){const e=this,i={};return G.forEach(this,(s,r)=>{const o=G.findKey(i,r);if(o){e[o]=ys(s),delete e[r];return}const a=t?uh(r):String(r).trim();a!==r&&delete e[r],e[a]=ys(s),i[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return G.forEach(this,(i,s)=>{i!=null&&i!==!1&&(e[s]=t&&G.isArray(i)?i.join(", "):i)}),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,e])=>t+": "+e).join(`
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const i=new this(t);return e.forEach(s=>i.set(s)),i}static accessor(t){const i=(this[Zo]=this[Zo]={accessors:{}}).accessors,s=this.prototype;function r(o){const a=wi(o);i[a]||(fh(s,o),i[a]=!0)}return G.isArray(t)?t.forEach(r):r(t),this}};Oe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);G.reduceDescriptors(Oe.prototype,({value:n},t)=>{let e=t[0].toUpperCase()+t.slice(1);return{get:()=>n,set(i){this[e]=i}}});G.freezeMethods(Oe);function yr(n,t){const e=this||qi,i=t||e,s=Oe.from(i.headers);let r=i.data;return G.forEach(n,function(a){r=a.call(e,r,s.normalize(),t?t.status:void 0)}),s.normalize(),r}function Zl(n){return!!(n&&n.__CANCEL__)}function hi(n,t,e){xt.call(this,n??"canceled",xt.ERR_CANCELED,t,e),this.name="CanceledError"}G.inherits(hi,xt,{__CANCEL__:!0});function tc(n,t,e){const i=e.config.validateStatus;!e.status||!i||i(e.status)?n(e):t(new xt("Request failed with status code "+e.status,[xt.ERR_BAD_REQUEST,xt.ERR_BAD_RESPONSE][Math.floor(e.status/100)-4],e.config,e.request,e))}function hh(n){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return t&&t[1]||""}function dh(n,t){n=n||10;const e=new Array(n),i=new Array(n);let s=0,r=0,o;return t=t!==void 0?t:1e3,function(c){const f=Date.now(),u=i[r];o||(o=f),e[s]=c,i[s]=f;let d=r,p=0;for(;d!==s;)p+=e[d++],d=d%n;if(s=(s+1)%n,s===r&&(r=(r+1)%n),f-o<t)return;const b=u&&f-u;return b?Math.round(p*1e3/b):void 0}}function ph(n,t){let e=0,i=1e3/t,s,r;const o=(f,u=Date.now())=>{e=u,s=null,r&&(clearTimeout(r),r=null),n(...f)};return[(...f)=>{const u=Date.now(),d=u-e;d>=i?o(f,u):(s=f,r||(r=setTimeout(()=>{r=null,o(s)},i-d)))},()=>s&&o(s)]}const As=(n,t,e=3)=>{let i=0;const s=dh(50,250);return ph(r=>{const o=r.loaded,a=r.lengthComputable?r.total:void 0,c=o-i,f=s(c),u=o<=a;i=o;const d={loaded:o,total:a,progress:a?o/a:void 0,bytes:c,rate:f||void 0,estimated:f&&a&&u?(a-o)/f:void 0,event:r,lengthComputable:a!=null,[t?"download":"upload"]:!0};n(d)},e)},ta=(n,t)=>{const e=n!=null;return[i=>t[0]({lengthComputable:e,total:n,loaded:i}),t[1]]},ea=n=>(...t)=>G.asap(()=>n(...t)),gh=ye.hasStandardBrowserEnv?((n,t)=>e=>(e=new URL(e,ye.origin),n.protocol===e.protocol&&n.host===e.host&&(t||n.port===e.port)))(new URL(ye.origin),ye.navigator&&/(msie|trident)/i.test(ye.navigator.userAgent)):()=>!0,mh=ye.hasStandardBrowserEnv?{write(n,t,e,i,s,r,o){if(typeof document>"u")return;const a=[`${n}=${encodeURIComponent(t)}`];G.isNumber(e)&&a.push(`expires=${new Date(e).toUTCString()}`),G.isString(i)&&a.push(`path=${i}`),G.isString(s)&&a.push(`domain=${s}`),r===!0&&a.push("secure"),G.isString(o)&&a.push(`SameSite=${o}`),document.cookie=a.join("; ")},read(n){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+n+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(n){this.write(n,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function bh(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function yh(n,t){return t?n.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):n}function ec(n,t,e){let i=!bh(t);return n&&(i||e==!1)?yh(n,t):t}const na=n=>n instanceof Oe?{...n}:n;function Vn(n,t){t=t||{};const e={};function i(f,u,d,p){return G.isPlainObject(f)&&G.isPlainObject(u)?G.merge.call({caseless:p},f,u):G.isPlainObject(u)?G.merge({},u):G.isArray(u)?u.slice():u}function s(f,u,d,p){if(G.isUndefined(u)){if(!G.isUndefined(f))return i(void 0,f,d,p)}else return i(f,u,d,p)}function r(f,u){if(!G.isUndefined(u))return i(void 0,u)}function o(f,u){if(G.isUndefined(u)){if(!G.isUndefined(f))return i(void 0,f)}else return i(void 0,u)}function a(f,u,d){if(d in t)return i(f,u);if(d in n)return i(void 0,f)}const c={url:r,method:r,data:r,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(f,u,d)=>s(na(f),na(u),d,!0)};return G.forEach(Object.keys({...n,...t}),function(u){const d=c[u]||s,p=d(n[u],t[u],u);G.isUndefined(p)&&d!==a||(e[u]=p)}),e}const nc=n=>{const t=Vn({},n);let{data:e,withXSRFToken:i,xsrfHeaderName:s,xsrfCookieName:r,headers:o,auth:a}=t;if(t.headers=o=Oe.from(o),t.url=Gl(ec(t.baseURL,t.url,t.allowAbsoluteUrls),n.params,n.paramsSerializer),a&&o.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),G.isFormData(e)){if(ye.hasStandardBrowserEnv||ye.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(G.isFunction(e.getHeaders)){const c=e.getHeaders(),f=["content-type","content-length"];Object.entries(c).forEach(([u,d])=>{f.inclu Line truncated
`+o.map(la).join(`
`):" "+la(o[0]):"as no adapter specified";throw new xt("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return s}const sc={getAdapter:Eh,adapters:Zr};function xr(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new hi(null,n)}function ca(n){return xr(n),n.headers=Oe.from(n.headers),n.data=yr.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),sc.getAdapter(n.adapter||qi.adapter,n)(n).then(function(i){return xr(n),i.data=yr.call(n,n.transformResponse,i),i.headers=Oe.from(i.headers),i},function(i){return Zl(i)||(xr(n),i&&i.response&&(i.response.data=yr.call(n,n.transformResponse,i.response),i.response.headers=Oe.from(i.response.headers))),Promise.reject(i)})}const rc="1.13.2",zs={};["object","boolean","number","function","string","symbol"].forEach((n,t)=>{zs[n]=function(i){return typeof i===n||"a"+(t<1?"n ":" ")+n}});const ua={};zs.transitional=function(t,e,i){function s(r,o){return"[Axios v"+rc+"] Transitional option '"+r+"'"+o+(i?". "+i:"")}return(r,o,a)=>{if(t===!1)throw new xt(s(o," has been removed"+(e?" in "+e:"")),xt.ERR_DEPRECATED);return e&&!ua[o]&&(ua[o]=!0,console.warn(s(o," has been deprecated since v"+e+" and will be removed in the near future"))),t?t(r,o,a):!0}};zs.spelling=function(t){return(e,i)=>(console.warn(`${i} is likely a misspelling of ${t}`),!0)};function Ph(n,t,e){if(typeof n!="object")throw new xt("options must be an object",xt.ERR_BAD_OPTION_VALUE);const i=Object.keys(n);let s=i.length;for(;s-- >0;){const r=i[s],o=t[r];if(o){const a=n[r],c=a===void 0||o(a,r,n);if(c!==!0)throw new xt("option "+r+" must be "+c,xt.ERR_BAD_OPTION_VALUE);continue}if(e!==!0)throw new xt("Unknown option "+r,xt.ERR_BAD_OPTION)}}const xs={assertOptions:Ph,validators:zs},Ge=xs.validators;let zn=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Jo,response:new Jo}}async request(t,e){try{return await this._request(t,e)}catch(i){if(i instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const r=s.stack?s.stack.replace(/^.+\n/,""):"";try{i.stack?r&&!String(i.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(i.stack+=`
`+r):i.stack=r}catch{}}throw i}}_request(t,e){typeof t=="string"?(e=e||{},e.url=t):e=t||{},e=Vn(this.defaults,e);const{transitional:i,paramsSerializer:s,headers:r}=e;i!==void 0&&xs.assertOptions(i,{silentJSONParsing:Ge.transitional(Ge.boolean),forcedJSONParsing:Ge.transitional(Ge.boolean),clarifyTimeoutError:Ge.transitional(Ge.boolean)},!1),s!=null&&(G.isFunction(s)?e.paramsSerializer={serialize:s}:xs.assertOptions(s,{encode:Ge.function,serialize:Ge.function},!0)),e.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?e.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:e.allowAbsoluteUrls=!0),xs.assertOptions(e,{baseUrl:Ge.spelling("baseURL"),withXsrfToken:Ge.spelling("withXSRFToken")},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();let o=r&&G.merge(r.common,r[e.method]);r&&G.forEach(["delete","get","head","post","put","patch","common"],y=>{delete r[y]}),e.headers=Oe.concat(o,r);const a=[];let c=!0;this.interceptors.request.forEach(function(_){typeof _.runWhen=="function"&&_.runWhen(e)===!1||(c=c&&_.synchronous,a.unshift(_.fulfilled,_.rejected))});const f=[];this.interceptors.response.forEach(function(_){f.push(_.fulfilled,_.rejected)});let u,d=0,p;if(!c){const y=[ca.bind(this),void 0];for(y.unshift(...a),y.push(...f),p=y.length,u=Promise.resolve(e);d<p;)u=u.then(y[d++],y[d++]);return u}p=a.length;let b=e;for(;d<p;){const y=a[d++],_=a[d++];try{b=y(b)}catch(S){_.call(this,S);break}}try{u=ca.call(this,b)}catch(y){return Promise.reject(y)}for(d=0,p=f.length;d<p;)u=u.then(f[d++],f[d++]);return u}getUri(t){t=Vn(this.defaults,t);const e=ec(t.baseURL,t.url,t.allowAbsoluteUrls);return Gl(e,t.params,t.paramsSerializer)}};G.forEach(["delete","get","head","options"],function(t){zn.prototype[t]=function(e,i){return this.request(Vn(i||{},{method:t,url:e,data:(i||{}).data}))}});G.forEach(["post","put","patch"],function(t){function e(i){return function(r,o,a){return this.request(Vn(a||{},{method:t,headers:i?{"Content-Type":"multipart/form-data"}:{},url:r,data:o}))}}zn.prototype[t]=e(),zn.prototype[t+"Form"]=e(!0)});let Oh=class oc{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let e;this.promise=new Promise(function(r){e=r});const i=this;this.promise.then(s=>{if(!i._listeners)return;let r=i._listeners.length;for(;r-- >0;)i._listeners[r](s);i._listeners=null}),this.promise.then=s=>{let r;const o=new Promise(a=>{i.subscribe(a),r=a}).then(s);return o.cancel=function(){i.unsubscribe(r)},o},t(function(r,o,a){i.reason||(i.reason=new hi(r,o,a),e(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);e!==-1&&this._listeners.splice(e,1)}toAbortSignal(){const t=new AbortController,e=i=>{t.abort(i)};return this.subscribe(e),t.signal.unsubscribe=()=>this.unsubscribe(e),t.signal}static source(){let t;return{token:new oc(function(s){t=s}),cancel:t}}};function Dh(n){return function(e){return n.apply(null,e)}}function Rh(n){return G.isObject(n)&&n.isAxiosError===!0}const Br={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Br).forEach(([n,t])=>{Br[t]=n});function ac(n){const t=new zn(n),e=Bl(zn.prototype.request,t);return G.extend(e,zn.prototype,t,{allOwnKeys:!0}),G.extend(e,t,null,{allOwnKeys:!0}),e.create=function(s){return ac(Vn(n,s))},e}const Zt=ac(qi);Zt.Axios=zn;Zt.CanceledError=hi;Zt.CancelToken=Oh;Zt.isCancel=Zl;Zt.VERSION=rc;Zt.toFormData=js;Zt.AxiosError=xt;Zt.Cancel=Zt.CanceledError;Zt.all=function(t){return Promise.all(t)};Zt.spread=Dh;Zt.isAxiosError=Rh;Zt.mergeConfig=Vn;Zt.AxiosH Line truncated
`):l)),h};var Bo=/^(?:focusinfocus|focusoutblur)$/,Ho=function(l){l.stopPropagation()};g.extend(g.event,{trigger:function(l,h,m,x){var v,w,C,F,R,V,Q,nt,Y=[m||A],rt=d.call(l,"type")?l.type:l,mt=d.call(l,"namespace")?l.namespace.split("."):[];if(w=nt=C=m=m||A,!(m.nodeType===3||m.nodeType===8)&&!Bo.test(rt+g.event.triggered)&&(rt.indexOf(".")>-1&&(mt=rt.split("."),rt=mt.shift(),mt.sort()),R=rt.indexOf(":")<0&&"on"+rt,l=l[g.expando]?l:new g.Event(rt,typeof l=="object"&&l),l.isTrigger=x?2:3,l.namespace=mt.join("."),l.rnamespace=l.namespace?new RegExp("(^|\\.)"+mt.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,l.result=void 0,l.target||(l.target=m),h=h==null?[l]:g.makeArray(h,[l]),Q=g.event.special[rt]||{},!(!x&&Q.trigger&&Q.trigger.apply(m,h)===!1))){if(!x&&!Q.noBubble&&!S(m)){for(F=Q.delegateType||rt,Bo.test(F+rt)||(w=w.parentNode);w;w=w.parentNode)Y.push(w),C=w;C===(m.ownerDocument||A)&&Y.push(C.defaultView||C.parentWindow||t)}for(v=0;(w=Y[v++])&&!l.isPropagationStopped();)nt=w,l.type=v>1?F:Q.bindType||rt,V=(ct.get(w,"events")||Object.create(null))[l.type]&&ct.get(w,"handle"),V&&V.apply(w,h),V=R&&w[R],V&&V.apply&&Ht(w)&&(l.result=V.apply(w,h),l.result===!1&&l.preventDefault());return l.type=rt,!x&&!l.isDefaultPrevented()&&(!Q._default||Q._default.apply(Y.pop(),h)===!1)&&Ht(m)&&R&&_(m[rt])&&!S(m)&&(C=m[R],C&&(m[R]=null),g.event.triggered=rt,l.isPropagationStopped()&&nt.addEventListener(rt,Ho),m[rt](),l.isPropagationStopped()&&nt.removeEventListener(rt,Ho),g.event.triggered=void 0,C&&(m[R]=C)),l.result}},simulate:function(l,h,m){var x=g.extend(new g.Event,m,{type:l,isSimulated:!0});g.event.trigger(x,null,h)}}),g.fn.extend({trigger:function(l,h){return this.each(function(){g.event.trigger(l,h,this)})},triggerHandler:function(l,h){var m=this[0];if(m)return g.event.trigger(l,h,m,!0)}});var Fu=/\[\]$/,jo=/\r?\n/g,Iu=/^(?:submit|button|image|reset|file)$/i,Nu=/^(?:input|select|textarea|keygen)/i;function rr(l,h,m,x){var v;if(Array.isArray(h))g.each(h,function(w,C){m||Fu.test(l)?x(l,C):rr(l+"["+(typeof C=="object"&&C!=null?w:"")+"]",C,m,x)});else if(!m&&D(h)==="object")for(v in h)rr(l+"["+v+"]",h[v],m,x);else x(l,h)}g.param=function(l,h){var m,x=[],v=function(w,C){var F=_(C)?C():C;x[x.length]=encodeURIComponent(w)+"="+encodeURIComponent(F??"")};if(l==null)return"";if(Array.isArray(l)||l.jquery&&!g.isPlainObject(l))g.each(l,function(){v(this.name,this.value)});else for(m in l)rr(m,l[m],h,v);return x.join("&")},g.fn.extend({serialize:function(){return g.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var l=g.prop(this,"elements");return l?g.makeArray(l):this}).filter(function(){var l=this.type;return this.name&&!g(this).is(":disabled")&&Nu.test(this.nodeName)&&!Iu.test(l)&&(this.checked||!Ae.test(l))}).map(function(l,h){var m=g(this).val();return m==null?null:Array.isArray(m)?g.map(m,function(x){return{name:h.name,value:x.replace(jo,`\r
`)}}):{name:h.name,value:m.replace(jo,`\r
`)}}).get()}});var Bu=/%20/g,Hu=/#.*$/,ju=/([?&])_=[^&]*/,zu=/^(.*?):[ \t]*([^\r\n]*)$/mg,Uu=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Wu=/^(?:GET|HEAD)$/,Vu=/^\/\//,zo={},or={},Uo="*/".concat("*"),ar=A.createElement("a");ar.href=bi.href;function Wo(l){return function(h,m){typeof h!="string"&&(m=h,h="*");var x,v=0,w=h.toLowerCase().match(At)||[];if(_(m))for(;x=w[v++];)x[0]==="+"?(x=x.slice(1)||"*",(l[x]=l[x]||[]).unshift(m)):(l[x]=l[x]||[]).push(m)}}function Vo(l,h,m,x){var v={},w=l===or;function C(F){var R;return v[F]=!0,g.each(l[F]||[],function(V,Q){var nt=Q(h,m,x);if(typeof nt=="string"&&!w&&!v[nt])return h.dataTypes.unshift(nt),C(nt),!1;if(w)return!(R=nt)}),R}return C(h.dataTypes[0])||!v["*"]&&C("*")}function lr(l,h){var m,x,v=g.ajaxSettings.flatOptions||{};for(m in h)h[m]!==void 0&&((v[m]?l:x||(x={}))[m]=h[m]);return x&&g.extend(!0,l,x),l}function $u(l,h,m){for(var x,v,w,C,F=l.contents,R=l.dataTypes;R[0]==="*";)R.shift(),x===void 0&&(x=l.mimeType||h.getResponseHeader("Content-Type"));if(x){for(v in F)if(F[v]&&F[v].test(x)){R.unshift(v);break}}if(R[0]in m)w=R[0];else{for(v in m){if(!R[0]||l.converters[v+" "+R[0]]){w=v;break}C||(C=v)}w=w||C}if(w)return w!==R[0]&&R.unshift(w),m[w]}function qu(l,h,m,x){var v,w,C,F,R,V={},Q=l.dataTypes.slice();if(Q[1])for(C in l.converters)V[C.toLowerCase()]=l.converters[C];for(w=Q.shift();w;)if(l.responseFields[w]&&(m[l.responseFields[w]]=h),!R&&x&&l.dataFilter&&(h=l.dataFilter(h,l.dataType)),R=w,w=Q.shift(),w){if(w==="*")w=R;else if(R!=="*"&&R!==w){if(C=V[R+" "+w]||V["* "+w],!C){for(v in V)if(F=v.split(" "),F[1]===w&&(C=V[R+" "+F[0]]||V["* "+F[0]],C)){C===!0?C=V[v]:V[v]!==!0&&(w=F[0],Q.unshift(F[1]));break}}if(C!==!0)if(C&&l.throws)h=C(h);else try{h=C(h)}catch(nt){return{state:"parsererror",error:C?nt:"No conversion from "+R+" to "+w}}}}return{state:"success",data:h}}g.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:bi.href,type:"GET",isLocal:Uu.test(bi.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Uo,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":g.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(l,h){return h?lr(lr(l,g.ajaxSettings),h):lr(g.ajaxSettings,l)},ajaxPrefilter:Wo(zo),ajaxTransport:Wo(or),ajax:function(l,h){typeof l=="object"&&(h=l,l=void 0),h=h||{};var m,x,v,w,C,F,R,V,Q,nt,Y=g.ajaxSetup({},h),rt=Y.context||Y,mt=Y.context&&(rt.nodeType||rt.jquery)?g(rt):g.event,Tt=g.Deferred(),_t=g.Callbacks("once memory"),de=Y.statusCode||{},ie={},$e={},qe="canceled",Ct={readyState:0,getResponseHeader:function(Pt){var Gt;if(R){if(!w)for(w={};Gt=zu.exec(v);)w[Gt[1].toLowerCase()+" "]=(w[Gt[1].toLowerCase()+" "]||[]).concat(Gt[2]);Gt=w[Pt.toLowerCase()+" "]}return Gt==null?null:Gt.join(", ")},getAllResponseHeaders:function(){return R?v:null},setRequestHeader:function(Pt,Gt){return R==null&&(Pt=$e[Pt.toLowerCase()]=$e[Pt.toLowerCase()]||Pt,ie[Pt]=Gt),this},overrideMimeType:function(Pt){return R==null&&(Y.mimeType=Pt),this},statusCode:function(Pt){var Gt;if(Pt)if(R)Ct.always(Pt[Ct.status]);else for(Gt in Pt)de[Gt]=[de[Gt],Pt[Gt]];return this},abort:function(Pt){var Gt=Pt||qe;return m&&m.abort(Gt),On(0,Gt),this}};if(Tt.promise(Ct),Y.url=((l||Y.url||bi.href)+"").replace(Vu,bi.protocol+"//"),Y.type=h.method||h.type||Y.method||Y.type,Y.dataTypes=(Y.dataType||"*").toLowerCase().match(At)||[""],Y.crossDomain==null){F=A.createElement("a");try{F.href=Y.url,F.href=F.href,Y.crossDomain=ar.protocol+"//"+ar.host!=F.protocol+"//"+F.host}catch{Y.crossDomain=!0}}if(Y.data&&Y.processData&&typeof Y.data!="string"&&(Y.data=g.param(Y.data,Y.traditional)),Vo(zo,Y,h,Ct),R)return Ct;V=g.event&&Y.global,V&&g.active++===0&&g.event.trigger("ajaxStart"),Y.type=Y.type.toUpperCase(),Y.hasContent=!Wu.test(Y.type),x=Y.url.replace(Hu,""),Y.hasContent?Y.data&&Y.processData&&(Y.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(Y.data=Y.data.replace(Bu,"+")):(nt=Y.url.slice(x.length),Y.data&&(Y.processData||typeof Y.data=="string")&&(x+=(sr.test(x)?"&":"?")+Y.data,delete Y.data),Y.cache===!1&&(x=x.replace(ju,"$1"),nt=(sr.test(x)?"&":"?")+"_="+No.guid+++nt),Y.url=x+nt),Y.ifModified&&(g.lastModified[x]&&Ct.setRequestHeader("If-Modified-Since",g.lastModified[x]),g.etag[x]&&Ct.setRequestHeader("If-None-Match",g.etag[x])),(Y.data&&Y.hasContent&&Y.contentType!==!1||h.contentType)&&Ct.setRequestHeader("Content-Type",Y.contentType),Ct.setRequestHeader("Accept",Y.dataTypes[0]&&Y.accepts[Y.dataTypes[0]]?Y.accepts[Y.dataTypes[0]]+(Y.dataTypes[0]!=="*"?", "+Uo+"; q=0.01":""):Y.accepts["*"]);for(Q in Y.headers)Ct.setRequestHeader(Q,Y.headers[Q]);if(Y.beforeSend&&(Y.beforeSend.call(rt,Ct,Y)===!1||R))return Ct.abort();if(qe="abort" Line truncated
let scriptImported = false
self.addEventListener('message', async (e) => {
const { file, id, imageCompressionLibUrl, options } = e.data
options.onProgress = (progress) => self.postMessage({ progress, id })
try {
if (!scriptImported) {
// console.log('[worker] importScripts', imageCompressionLibUrl)
self.importScripts(imageCompressionLibUrl)
scriptImported = true
}
// console.log('[worker] self', self)
const compressedFile = await imageCompression(file, options)
self.postMessage({ file: compressedFile, id })
} catch (e) {
// console.error('[worker] error', e)
self.postMessage({ error: e.message + '\\n' + e.stack, id })
}
})
`;let _r;function Xh(n,t){return new Promise(((e,i)=>{_r||(_r=(function(o){const a=[];return a.push(o),URL.createObjectURL(new Blob(a))})(qh));const s=new Worker(_r);s.addEventListener("message",(function(o){if(t.signal&&t.signal.aborted)s.terminate();else if(o.data.progress===void 0){if(o.data.error)return i(new Error(o.data.error)),void s.terminate();e(o.data.file),s.terminate()}else t.onProgress(o.data.progress)})),s.addEventListener("error",i),t.signal&&t.signal.addEventListener("abort",(()=>{i(t.signal.reason),s.terminate()})),s.postMessage({file:n,imageCompressionLibUrl:t.libURL,options:{...t,onProgress:void 0,signal:void 0}})}))}function ge(n,t){return new Promise((function(e,i){let s,r,o,a,c,f;if(s={...t},o=0,{onProgress:a}=s,s.maxSizeMB=s.maxSizeMB||Number.POSITIVE_INFINITY,c=typeof s.useWebWorker!="boolean"||s.useWebWorker,delete s.useWebWorker,s.onProgress=b=>{o=b,typeof a=="function"&&a(o)},!(n instanceof Blob||n instanceof $h))return i(new Error("The file given is not an instance of Blob or File"));if(!/^image/.test(n.type))return i(new Error("The file given is not an image"));if(f=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,!c||typeof Worker!="function"||f)return pa(n,s).then((function(b){try{return r=b,p.call(this)}catch(y){return i(y)}}).bind(this),i);var u=(function(){try{return p.call(this)}catch(b){return i(b)}}).bind(this),d=function(b){try{return pa(n,s).then((function(y){try{return r=y,u()}catch(_){return i(_)}}),i)}catch(y){return i(y)}};try{return s.libURL=s.libURL||"https://cdn.jsdelivr.net/npm/[email protected]/dist/browser-image-compression.js",Xh(n,s).then((function(b){try{return r=b,u()}catch{return d()}}),d)}catch{d()}function p(){try{r.name=n.name,r.lastModified=n.lastModified}catch{}try{s.preserveExif&&n.type==="image/jpeg"&&(!s.fileType||s.fileType&&s.fileType===n.type)&&(r=cc(n,r))}catch{}return e(r)}}))}ge.getDataUrlFromFile=dc,ge.getFilefromDataUrl=eo,ge.loadImage=pc,ge.drawImageInCanvas=mc,ge.drawFileInCanvas=Ms,ge.canvasToFile=Ts,ge.getExifOrientation=bc,ge.handleMaxWidthOrHeight=yc,ge.followExifOrientation=xc,ge.cleanupCanvasMemory=Ze,ge.isAutoOrientationInBrowser=ri,ge.approximateBelowMaximumCanvasSizeOfBrowser=gc,ge.copyExifWithoutOrientation=cc,ge.getBrowserName=jn,ge.version="2.0.2";function Xi(n){return n+.5|0}const xn=(n,t,e)=>Math.max(Math.min(n,e),t);function Ti(n){return xn(Xi(n*2.55),0,255)}function Sn(n){return xn(Xi(n*255),0,255)}function un(n){return xn(Xi(n/2.55)/100,0,1)}function ga(n){return xn(Xi(n*100),0,100)}const Ne={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},Hr=[..."0123456789ABCDEF"],Yh=n=>Hr[n&15],Kh=n=>Hr[(n&240)>>4]+Hr[n&15],ss=n=>(n&240)>>4===(n&15),Gh=n=>ss(n.r)&&ss(n.g)&&ss(n.b)&&ss(n.a);function Qh(n){var t=n.length,e;return n[0]==="#"&&(t===4||t===5?e={r:255&Ne[n[1]]*17,g:255&Ne[n[2]]*17,b:255&Ne[n[3]]*17,a:t===5?Ne[n[4]]*17:255}:(t===7||t===9)&&(e={r:Ne[n[1]]<<4|Ne[n[2]],g:Ne[n[3]]<<4|Ne[n[4]],b:Ne[n[5]]<<4|Ne[n[6]],a:t===9?Ne[n[7]]<<4|Ne[n[8]]:255})),e}const Jh=(n,t)=>n<255?t(n):"";function Zh(n){var t=Gh(n)?Yh:Kh;return n?"#"+t(n.r)+t(n.g)+t(n.b)+Jh(n.a,t):void 0}const td=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function _c(n,t,e){const i=t*Math.min(e,1-e),s=(r,o=(r+n/30)%12)=>e-i*Math.max(Math.min(o-3,9-o,1),-1);return[s(0),s(8),s(4)]}function ed(n,t,e){const i=(s,r=(s+n/60)%6)=>e-e*t*Math.max(Math.min(r,4-r,1),0);return[i(5),i(3),i(1)]}function nd(n,t,e){const i=_c(n,1,.5);let s;for(t+e>1&&(s=1/(t+e),t*=s,e*=s),s=0;s<3;s++)i[s]*=1-t-e,i[s]+=t;return i}function id(n,t,e,i,s){return n===s?(t-e)/i+(t<e?6:0):t===s?(e-n)/i+2:(n-t)/i+4}function no(n){const e=n.r/255,i=n.g/255,s=n.b/255,r=Math.max(e,i,s),o=Math.min(e,i,s),a=(r+o)/2;let c,f,u;return r!==o&&(u=r-o,f=a>.5?u/(2-r-o):u/(r+o),c=id(e,i,s,u,r),c=c*60+.5),[c|0,f||0,a]}function io(n,t,e,i){return(Array.isArray(t)?n(t[0],t[1],t[2]):n(t,e,i)).map(Sn)}function so(n,t,e){return io(_c,n,t,e)}function sd(n,t,e){return io(nd,n,t,e)}function rd(n,t,e){return io(ed,n,t,e)}function vc(n){return(n%360+360)%360}function od(n){const t=td.exec(n);let e=255,i;if(!t)return;t[5]!==i&&(e=t[6]?Ti(+t[5]):Sn(+t[5]));const s=vc(+t[2]),r=+t[3]/100,o=+t[4]/100;return t[1]==="hwb"?i=sd(s,r,o):t[1]==="hsv"?i=rd(s,r,o):i=so(s,r,o),{r:i[0],g:i[1],b:i[2],a:e}}function ad(n,t){var e=no(n);e[0]=vc(e[0]+t),e=so(e),n.r=e[0],n.g=e[1],n.b=e[2]}function ld(n){if(!n)return;const t=no(n),e=t[0],i=ga(t[1]),s=ga(t[2]);return n.a<255?`hsla(${e}, ${i}%, ${s}%, ${un(n.a)})`:`hsl(${e}, ${i}%, ${s}%)`}const ma={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},ba={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:" Line truncated
`)>-1?n.split(`
`):n}function Db(n,t){const{element:e,datasetIndex:i,index:s}=t,r=n.getDatasetMeta(i).controller,{label:o,value:a}=r.getLabelAndValue(s);return{chart:n,label:o,parsed:r.getParsed(s),raw:n.data.datasets[i].data[s],formattedValue:a,dataset:r.getDataset(),dataIndex:s,datasetIndex:i,element:e}}function wl(n,t){const e=n.chart.ctx,{body:i,footer:s,title:r}=n,{boxWidth:o,boxHeight:a}=t,c=se(t.bodyFont),f=se(t.titleFont),u=se(t.footerFont),d=r.length,p=s.length,b=i.length,y=_e(t.padding);let _=y.height,S=0,A=i.reduce((D,N)=>D+N.before.length+N.lines.length+N.after.length,0);if(A+=n.beforeBody.length+n.afterBody.length,d&&(_+=d*f.lineHeight+(d-1)*t.titleSpacing+t.titleMarginBottom),A){const D=t.displayColors?Math.max(a,c.lineHeight):c.lineHeight;_+=b*D+(A-b)*c.lineHeight+(A-1)*t.bodySpacing}p&&(_+=t.footerMarginTop+p*u.lineHeight+(p-1)*t.footerSpacing);let L=0;const I=function(D){S=Math.max(S,e.measureText(D).width+L)};return e.save(),e.font=f.string,It(n.title,I),e.font=c.string,It(n.beforeBody.concat(n.afterBody),I),L=t.displayColors?o+2+t.boxPadding:0,It(i,D=>{It(D.before,I),It(D.lines,I),It(D.after,I)}),L=0,e.font=u.string,It(n.footer,I),e.restore(),S+=y.width,{width:S,height:_}}function Rb(n,t){const{y:e,height:i}=t;return e<i/2?"top":e>n.height-i/2?"bottom":"center"}function Lb(n,t,e,i){const{x:s,width:r}=i,o=e.caretSize+e.caretPadding;if(n==="left"&&s+r+o>t.width||n==="right"&&s-r-o<0)return!0}function Fb(n,t,e,i){const{x:s,width:r}=e,{width:o,chartArea:{left:a,right:c}}=n;let f="center";return i==="center"?f=s<=(a+c)/2?"left":"right":s<=r/2?f="left":s>=o-r/2&&(f="right"),Lb(f,n,t,e)&&(f="center"),f}function Sl(n,t,e){const i=e.yAlign||t.yAlign||Rb(n,e);return{xAlign:e.xAlign||t.xAlign||Fb(n,t,e,i),yAlign:i}}function Ib(n,t){let{x:e,width:i}=n;return t==="right"?e-=i:t==="center"&&(e-=i/2),e}function Nb(n,t,e){let{y:i,height:s}=n;return t==="top"?i+=e:t==="bottom"?i-=s+e:i-=s/2,i}function Al(n,t,e,i){const{caretSize:s,caretPadding:r,cornerRadius:o}=n,{xAlign:a,yAlign:c}=e,f=s+r,{topLeft:u,topRight:d,bottomLeft:p,bottomRight:b}=Un(o);let y=Ib(t,a);const _=Nb(t,c,f);return c==="center"?a==="left"?y+=f:a==="right"&&(y-=f):a==="left"?y-=Math.max(u,p)+s:a==="right"&&(y+=Math.max(d,b)+s),{x:ue(y,0,i.width-t.width),y:ue(_,0,i.height-t.height)}}function gs(n,t,e){const i=_e(e.padding);return t==="center"?n.x+n.width/2:t==="right"?n.x+n.width-i.right:n.x+i.left}function Cl(n){return Qe([],cn(n))}function Bb(n,t,e){return kn(n,{tooltip:t,tooltipItems:e,type:"tooltip"})}function kl(n,t){const e=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return e?n.override(e):n}const mu={beforeTitle:an,title(n){if(n.length>0){const t=n[0],e=t.chart.data.labels,i=e?e.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(i>0&&t.dataIndex<i)return e[t.dataIndex]}return""},afterTitle:an,beforeBody:an,beforeLabel:an,label(n){if(this&&this.options&&this.options.mode==="dataset")return n.label+": "+n.formattedValue||n.formattedValue;let t=n.dataset.label||"";t&&(t+=": ");const e=n.formattedValue;return St(e)||(t+=e),t},labelColor(n){const e=n.chart.getDatasetMeta(n.datasetIndex).controller.getStyle(n.dataIndex);return{borderColor:e.borderColor,backgroundColor:e.backgroundColor,borderWidth:e.borderWidth,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(n){const e=n.chart.getDatasetMeta(n.datasetIndex).controller.getStyle(n.dataIndex);return{pointStyle:e.pointStyle,rotation:e.rotation}},afterLabel:an,afterBody:an,beforeFooter:an,footer:an,afterFooter:an};function Me(n,t,e,i){const s=n[t].call(e,i);return typeof s>"u"?mu[t].call(e,i):s}class Ml extends pn{static positioners=Oi;constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const e=this.chart,i=this.options.setContext(this.getContext()),s=i.enabled&&e.options.animation&&i.animations,r=new Yc(this.chart,s);return s._cacheable&&(this._cachedAnimations=Object.freeze(r)),r}getContext(){return this.$context||(this.$context=Bb(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,e){const{callbacks:i}=e,s=Me(i,"beforeTitle",this,t),r=Me(i,"title",this,t),o=Me(i,"afterTitle",this,t);let a=[];return a=Qe(a,cn(s)),a=Qe(a,cn(r)),a=Qe(a,cn(o)),a}getBeforeBody(t, Line truncated
+17
View File
@@ -0,0 +1,17 @@
{
"resources/css/app.css": {
"file": "assets/app-BHuX0eYb.css",
"src": "resources/css/app.css",
"isEntry": true,
"name": "app",
"names": [
"app.css"
]
},
"resources/js/app.js": {
"file": "assets/app-uURX46in.js",
"name": "app",
"src": "resources/js/app.js",
"isEntry": true
}
}