@luminix/support 0.4.5 → 0.4.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/support.cjs +6 -0
- package/dist/support.js +8 -0
- package/package.json +2 -2
- package/types/App/Application.d.ts +1 -0
package/dist/support.cjs
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";var Mi=Object.defineProperty;var Fr=e=>{throw TypeError(e)};var Ui=(e,t,r)=>t in e?Mi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var D=(e,t,r)=>Ui(e,typeof t!="symbol"?t+"":t,r),jr=(e,t,r)=>t.has(e)||Fr("Cannot "+r);var l=(e,t,r)=>(jr(e,t,"read from private field"),r?r.call(e):t.get(e)),Dr=(e,t,r)=>t.has(e)?Fr("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Lr=(e,t,r,n)=>(jr(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function Kn(e,t){return function(){return e.apply(t,arguments)}}const{toString:Bi}=Object.prototype,{getPrototypeOf:dr}=Object,ht=(e=>t=>{const r=Bi.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),G=e=>(e=e.toLowerCase(),t=>ht(t)===e),dt=e=>t=>typeof t===e,{isArray:xe}=Array,je=dt("undefined");function zi(e){return e!==null&&!je(e)&&e.constructor!==null&&!je(e.constructor)&&z(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Zn=G("ArrayBuffer");function Hi(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Zn(e.buffer),t}const qi=dt("string"),z=dt("function"),Xn=dt("number"),pt=e=>e!==null&&typeof e=="object",Wi=e=>e===!0||e===!1,Ye=e=>{if(ht(e)!=="object")return!1;const t=dr(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Ji=G("Date"),Gi=G("File"),Vi=G("Blob"),Ki=G("FileList"),Zi=e=>pt(e)&&z(e.pipe),Xi=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||z(e.append)&&((t=ht(e))==="formdata"||t==="object"&&z(e.toString)&&e.toString()==="[object FormData]"))},Qi=G("URLSearchParams"),[Yi,ki,eo,to]=["ReadableStream","Request","Response","Headers"].map(G),ro=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function He(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,s;if(typeof e!="object"&&(e=[e]),xe(e))for(n=0,s=e.length;n<s;n++)t.call(null,e[n],n,e);else{const i=r?Object.getOwnPropertyNames(e):Object.keys(e),o=i.length;let a;for(n=0;n<o;n++)a=i[n],t.call(null,e[a],a,e)}}function Qn(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,s;for(;n-- >0;)if(s=r[n],t===s.toLowerCase())return s;return null}const se=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Yn=e=>!je(e)&&e!==se;function Wt(){const{caseless:e}=Yn(this)&&this||{},t={},r=(n,s)=>{const i=e&&Qn(t,s)||s;Ye(t[i])&&Ye(n)?t[i]=Wt(t[i],n):Ye(n)?t[i]=Wt({},n):xe(n)?t[i]=n.slice():t[i]=n};for(let n=0,s=arguments.length;n<s;n++)arguments[n]&&He(arguments[n],r);return t}const no=(e,t,r,{allOwnKeys:n}={})=>(He(t,(s,i)=>{r&&z(s)?e[i]=Kn(s,r):e[i]=s},{allOwnKeys:n}),e),so=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),io=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},oo=(e,t,r,n)=>{let s,i,o;const a={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),i=s.length;i-- >0;)o=s[i],(!n||n(o,e,t))&&!a[o]&&(t[o]=e[o],a[o]=!0);e=r!==!1&&dr(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},ao=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},uo=e=>{if(!e)return null;if(xe(e))return e;let t=e.length;if(!Xn(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},fo=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&dr(Uint8Array)),co=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=n.next())&&!s.done;){const i=s.value;t.call(e,i[0],i[1])}},lo=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},ho=G("HTMLFormElement"),po=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,s){return n.toUpperCase()+s}),Mr=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),go=G("RegExp"),kn=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};He(r,(s,i)=>{let o;(o=t(s,i,e))!==!1&&(n[i]=o||s)}),Object.defineProperties(e,n)},mo=e=>{kn(e,(t,r)=>{if(z(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(z(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},yo=(e,t)=>{const r={},n=s=>{s.forEach(i=>{r[i]=!0})};return xe(e)?n(e):n(String(e).split(t)),r},wo=()=>{},bo=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,It="abcdefghijklmnopqrstuvwxyz",Ur="0123456789",es={DIGIT:Ur,ALPHA:It,ALPHA_DIGIT:It+It.toUpperCase()+Ur},_o=(e=16,t=es.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function Eo(e){return!!(e&&z(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const So=e=>{const t=new Array(10),r=(n,s)=>{if(pt(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[s]=n;const i=xe(n)?[]:{};return He(n,(o,a)=>{const u=r(o,s+1);!je(u)&&(i[a]=u)}),t[s]=void 0,i}}return n};return r(e,0)},To=G("AsyncFunction"),Ao=e=>e&&(pt(e)||z(e))&&z(e.then)&&z(e.catch),ts=((e,t)=>e?setImmediate:t?((r,n)=>(se.addEventListener("message",({source:s,data:i})=>{s===se&&i===r&&n.length&&n.shift()()},!1),s=>{n.push(s),se.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",z(se.postMessage)),xo=typeof queueMicrotask<"u"?queueMicrotask.bind(se):typeof process<"u"&&process.nextTick||ts,d={isArray:xe,isArrayBuffer:Zn,isBuffer:zi,isFormData:Xi,isArrayBufferView:Hi,isString:qi,isNumber:Xn,isBoolean:Wi,isObject:pt,isPlainObject:Ye,isReadableStream:Yi,isRequest:ki,isResponse:eo,isHeaders:to,isUndefined:je,isDate:Ji,isFile:Gi,isBlob:Vi,isRegExp:go,isFunction:z,isStream:Zi,isURLSearchParams:Qi,isTypedArray:fo,isFileList:Ki,forEach:He,merge:Wt,extend:no,trim:ro,stripBOM:so,inherits:io,toFlatObject:oo,kindOf:ht,kindOfTest:G,endsWith:ao,toArray:uo,forEachEntry:co,matchAll:lo,isHTMLForm:ho,hasOwnProperty:Mr,hasOwnProp:Mr,reduceDescriptors:kn,freezeMethods:mo,toObjectSet:yo,toCamelCase:po,noop:wo,toFiniteNumber:bo,findKey:Qn,global:se,isContextDefined:Yn,ALPHABET:es,generateString:_o,isSpecCompliantForm:Eo,toJSONObject:So,isAsyncFn:To,isThenable:Ao,setImmediate:ts,asap:xo};function x(e,t,r,n,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),s&&(this.response=s,this.status=s.status?s.status:null)}d.inherits(x,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:d.toJSONObject(this.config),code:this.code,status:this.status}}});const rs=x.prototype,ns={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{ns[e]={value:e}});Object.defineProperties(x,ns);Object.defineProperty(rs,"isAxiosError",{value:!0});x.from=(e,t,r,n,s,i)=>{const o=Object.create(rs);return d.toFlatObject(e,o,function(u){return u!==Error.prototype},a=>a!=="isAxiosError"),x.call(o,e.message,t,r,n,s),o.cause=e,o.name=e.name,i&&Object.assign(o,i),o};const Ro=null;function Jt(e){return d.isPlainObject(e)||d.isArray(e)}function ss(e){return d.endsWith(e,"[]")?e.slice(0,-2):e}function Br(e,t,r){return e?e.concat(t).map(function(s,i){return s=ss(s),!r&&i?"["+s+"]":s}).join(r?".":""):t}function Oo(e){return d.isArray(e)&&!e.some(Jt)}const vo=d.toFlatObject(d,{},null,function(t){return/^is[A-Z]/.test(t)});function gt(e,t,r){if(!d.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=d.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(w,y){return!d.isUndefined(y[w])});const n=r.metaTokens,s=r.visitor||h,i=r.dots,o=r.indexes,u=(r.Blob||typeof Blob<"u"&&Blob)&&d.isSpecCompliantForm(t);if(!d.isFunction(s))throw new TypeError("visitor must be a function");function f(g){if(g===null)return"";if(d.isDate(g))return g.toISOString();if(!u&&d.isBlob(g))throw new x("Blob is not supported. Use a Buffer instead.");return d.isArrayBuffer(g)||d.isTypedArray(g)?u&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function h(g,w,y){let _=g;if(g&&!y&&typeof g=="object"){if(d.endsWith(w,"{}"))w=n?w:w.slice(0,-2),g=JSON.stringify(g);else if(d.isArray(g)&&Oo(g)||(d.isFileList(g)||d.endsWith(w,"[]"))&&(_=d.toArray(g)))return w=ss(w),_.forEach(function(S,A){!(d.isUndefined(S)||S===null)&&t.append(o===!0?Br([w],A,i):o===null?w:w+"[]",f(S))}),!1}return Jt(g)?!0:(t.append(Br(y,w,i),f(g)),!1)}const p=[],m=Object.assign(vo,{defaultVisitor:h,convertValue:f,isVisitable:Jt});function E(g,w){if(!d.isUndefined(g)){if(p.indexOf(g)!==-1)throw Error("Circular reference detected in "+w.join("."));p.push(g),d.forEach(g,function(_,T){(!(d.isUndefined(_)||_===null)&&s.call(t,_,d.isString(T)?T.trim():T,w,m))===!0&&E(_,w?w.concat(T):[T])}),p.pop()}}if(!d.isObject(e))throw new TypeError("data must be an object");return E(e),t}function zr(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function pr(e,t){this._pairs=[],e&>(e,this,t)}const is=pr.prototype;is.append=function(t,r){this._pairs.push([t,r])};is.toString=function(t){const r=t?function(n){return t.call(this,n,zr)}:zr;return this._pairs.map(function(s){return r(s[0])+"="+r(s[1])},"").join("&")};function $o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function os(e,t,r){if(!t)return e;const n=r&&r.encode||$o,s=r&&r.serialize;let i;if(s?i=s(t,r):i=d.isURLSearchParams(t)?t.toString():new pr(t,r).toString(n),i){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Hr{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){d.forEach(this.handlers,function(n){n!==null&&t(n)})}}const as={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Po=typeof URLSearchParams<"u"?URLSearchParams:pr,Co=typeof FormData<"u"?FormData:null,No=typeof Blob<"u"?Blob:null,Io={isBrowser:!0,classes:{URLSearchParams:Po,FormData:Co,Blob:No},protocols:["http","https","file","blob","url","data"]},gr=typeof window<"u"&&typeof document<"u",Gt=typeof navigator=="object"&&navigator||void 0,Fo=gr&&(!Gt||["ReactNative","NativeScript","NS"].indexOf(Gt.product)<0),jo=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Do=gr&&window.location.href||"http://localhost",Lo=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:gr,hasStandardBrowserEnv:Fo,hasStandardBrowserWebWorkerEnv:jo,navigator:Gt,origin:Do},Symbol.toStringTag,{value:"Module"})),L={...Lo,...Io};function Mo(e,t){return gt(e,new L.classes.URLSearchParams,Object.assign({visitor:function(r,n,s,i){return L.isNode&&d.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function Uo(e){return d.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Bo(e){const t={},r=Object.keys(e);let n;const s=r.length;let i;for(n=0;n<s;n++)i=r[n],t[i]=e[i];return t}function us(e){function t(r,n,s,i){let o=r[i++];if(o==="__proto__")return!0;const a=Number.isFinite(+o),u=i>=r.length;return o=!o&&d.isArray(s)?s.length:o,u?(d.hasOwnProp(s,o)?s[o]=[s[o],n]:s[o]=n,!a):((!s[o]||!d.isObject(s[o]))&&(s[o]=[]),t(r,n,s[o],i)&&d.isArray(s[o])&&(s[o]=Bo(s[o])),!a)}if(d.isFormData(e)&&d.isFunction(e.entries)){const r={};return d.forEachEntry(e,(n,s)=>{t(Uo(n),s,r,0)}),r}return null}function zo(e,t,r){if(d.isString(e))try{return(t||JSON.parse)(e),d.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(0,JSON.stringify)(e)}const qe={transitional:as,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",s=n.indexOf("application/json")>-1,i=d.isObject(t);if(i&&d.isHTMLForm(t)&&(t=new FormData(t)),d.isFormData(t))return s?JSON.stringify(us(t)):t;if(d.isArrayBuffer(t)||d.isBuffer(t)||d.isStream(t)||d.isFile(t)||d.isBlob(t)||d.isReadableStream(t))return t;if(d.isArrayBufferView(t))return t.buffer;if(d.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Mo(t,this.formSerializer).toString();if((a=d.isFileList(t))||n.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return gt(a?{"files[]":t}:t,u&&new u,this.formSerializer)}}return i||s?(r.setContentType("application/json",!1),zo(t)):t}],transformResponse:[function(t){const r=this.transitional||qe.transitional,n=r&&r.forcedJSONParsing,s=this.responseType==="json";if(d.isResponse(t)||d.isReadableStream(t))return t;if(t&&d.isString(t)&&(n&&!this.responseType||s)){const o=!(r&&r.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(a){if(o)throw a.name==="SyntaxError"?x.from(a,x.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:L.classes.FormData,Blob:L.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};d.forEach(["delete","get","head","post","put","patch"],e=>{qe.headers[e]={}});const Ho=d.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),qo=e=>{const t={};let r,n,s;return e&&e.split(`
|
|
2
|
+
`).forEach(function(o){s=o.indexOf(":"),r=o.substring(0,s).trim().toLowerCase(),n=o.substring(s+1).trim(),!(!r||t[r]&&Ho[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},qr=Symbol("internals");function Pe(e){return e&&String(e).trim().toLowerCase()}function ke(e){return e===!1||e==null?e:d.isArray(e)?e.map(ke):String(e)}function Wo(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const Jo=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ft(e,t,r,n,s){if(d.isFunction(n))return n.call(this,t,r);if(s&&(t=r),!!d.isString(t)){if(d.isString(n))return t.indexOf(n)!==-1;if(d.isRegExp(n))return n.test(t)}}function Go(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function Vo(e,t){const r=d.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(s,i,o){return this[n].call(this,t,s,i,o)},configurable:!0})})}let M=class{constructor(t){t&&this.set(t)}set(t,r,n){const s=this;function i(a,u,f){const h=Pe(u);if(!h)throw new Error("header name must be a non-empty string");const p=d.findKey(s,h);(!p||s[p]===void 0||f===!0||f===void 0&&s[p]!==!1)&&(s[p||u]=ke(a))}const o=(a,u)=>d.forEach(a,(f,h)=>i(f,h,u));if(d.isPlainObject(t)||t instanceof this.constructor)o(t,r);else if(d.isString(t)&&(t=t.trim())&&!Jo(t))o(qo(t),r);else if(d.isHeaders(t))for(const[a,u]of t.entries())i(u,a,n);else t!=null&&i(r,t,n);return this}get(t,r){if(t=Pe(t),t){const n=d.findKey(this,t);if(n){const s=this[n];if(!r)return s;if(r===!0)return Wo(s);if(d.isFunction(r))return r.call(this,s,n);if(d.isRegExp(r))return r.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Pe(t),t){const n=d.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||Ft(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let s=!1;function i(o){if(o=Pe(o),o){const a=d.findKey(n,o);a&&(!r||Ft(n,n[a],a,r))&&(delete n[a],s=!0)}}return d.isArray(t)?t.forEach(i):i(t),s}clear(t){const r=Object.keys(this);let n=r.length,s=!1;for(;n--;){const i=r[n];(!t||Ft(this,this[i],i,t,!0))&&(delete this[i],s=!0)}return s}normalize(t){const r=this,n={};return d.forEach(this,(s,i)=>{const o=d.findKey(n,i);if(o){r[o]=ke(s),delete r[i];return}const a=t?Go(i):String(i).trim();a!==i&&delete r[i],r[a]=ke(s),n[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return d.forEach(this,(n,s)=>{n!=null&&n!==!1&&(r[s]=t&&d.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
|
|
3
|
+
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(s=>n.set(s)),n}static accessor(t){const n=(this[qr]=this[qr]={accessors:{}}).accessors,s=this.prototype;function i(o){const a=Pe(o);n[a]||(Vo(s,o),n[a]=!0)}return d.isArray(t)?t.forEach(i):i(t),this}};M.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);d.reduceDescriptors(M.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});d.freezeMethods(M);function jt(e,t){const r=this||qe,n=t||r,s=M.from(n.headers);let i=n.data;return d.forEach(e,function(a){i=a.call(r,i,s.normalize(),t?t.status:void 0)}),s.normalize(),i}function fs(e){return!!(e&&e.__CANCEL__)}function Re(e,t,r){x.call(this,e??"canceled",x.ERR_CANCELED,t,r),this.name="CanceledError"}d.inherits(Re,x,{__CANCEL__:!0});function cs(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new x("Request failed with status code "+r.status,[x.ERR_BAD_REQUEST,x.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function Ko(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Zo(e,t){e=e||10;const r=new Array(e),n=new Array(e);let s=0,i=0,o;return t=t!==void 0?t:1e3,function(u){const f=Date.now(),h=n[i];o||(o=f),r[s]=u,n[s]=f;let p=i,m=0;for(;p!==s;)m+=r[p++],p=p%e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),f-o<t)return;const E=h&&f-h;return E?Math.round(m*1e3/E):void 0}}function Xo(e,t){let r=0,n=1e3/t,s,i;const o=(f,h=Date.now())=>{r=h,s=null,i&&(clearTimeout(i),i=null),e.apply(null,f)};return[(...f)=>{const h=Date.now(),p=h-r;p>=n?o(f,h):(s=f,i||(i=setTimeout(()=>{i=null,o(s)},n-p)))},()=>s&&o(s)]}const et=(e,t,r=3)=>{let n=0;const s=Zo(50,250);return Xo(i=>{const o=i.loaded,a=i.lengthComputable?i.total:void 0,u=o-n,f=s(u),h=o<=a;n=o;const p={loaded:o,total:a,progress:a?o/a:void 0,bytes:u,rate:f||void 0,estimated:f&&a&&h?(a-o)/f:void 0,event:i,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(p)},r)},Wr=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Jr=e=>(...t)=>d.asap(()=>e(...t)),Qo=L.hasStandardBrowserEnv?function(){const t=L.navigator&&/(msie|trident)/i.test(L.navigator.userAgent),r=document.createElement("a");let n;function s(i){let o=i;return t&&(r.setAttribute("href",o),o=r.href),r.setAttribute("href",o),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=s(window.location.href),function(o){const a=d.isString(o)?s(o):o;return a.protocol===n.protocol&&a.host===n.host}}():function(){return function(){return!0}}(),Yo=L.hasStandardBrowserEnv?{write(e,t,r,n,s,i){const o=[e+"="+encodeURIComponent(t)];d.isNumber(r)&&o.push("expires="+new Date(r).toGMTString()),d.isString(n)&&o.push("path="+n),d.isString(s)&&o.push("domain="+s),i===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function ko(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function ea(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function ls(e,t){return e&&!ko(t)?ea(e,t):t}const Gr=e=>e instanceof M?{...e}:e;function ae(e,t){t=t||{};const r={};function n(f,h,p){return d.isPlainObject(f)&&d.isPlainObject(h)?d.merge.call({caseless:p},f,h):d.isPlainObject(h)?d.merge({},h):d.isArray(h)?h.slice():h}function s(f,h,p){if(d.isUndefined(h)){if(!d.isUndefined(f))return n(void 0,f,p)}else return n(f,h,p)}function i(f,h){if(!d.isUndefined(h))return n(void 0,h)}function o(f,h){if(d.isUndefined(h)){if(!d.isUndefined(f))return n(void 0,f)}else return n(void 0,h)}function a(f,h,p){if(p in t)return n(f,h);if(p in e)return n(void 0,f)}const u={url:i,method:i,data:i,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,h)=>s(Gr(f),Gr(h),!0)};return d.forEach(Object.keys(Object.assign({},e,t)),function(h){const p=u[h]||s,m=p(e[h],t[h],h);d.isUndefined(m)&&p!==a||(r[h]=m)}),r}const hs=e=>{const t=ae({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:s,xsrfCookieName:i,headers:o,auth:a}=t;t.headers=o=M.from(o),t.url=os(ls(t.baseURL,t.url),e.params,e.paramsSerializer),a&&o.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let u;if(d.isFormData(r)){if(L.hasStandardBrowserEnv||L.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((u=o.getContentType())!==!1){const[f,...h]=u?u.split(";").map(p=>p.trim()).filter(Boolean):[];o.setContentType([f||"multipart/form-data",...h].join("; "))}}if(L.hasStandardBrowserEnv&&(n&&d.isFunction(n)&&(n=n(t)),n||n!==!1&&Qo(t.url))){const f=s&&i&&Yo.read(i);f&&o.set(s,f)}return t},ta=typeof XMLHttpRequest<"u",ra=ta&&function(e){return new Promise(function(r,n){const s=hs(e);let i=s.data;const o=M.from(s.headers).normalize();let{responseType:a,onUploadProgress:u,onDownloadProgress:f}=s,h,p,m,E,g;function w(){E&&E(),g&&g(),s.cancelToken&&s.cancelToken.unsubscribe(h),s.signal&&s.signal.removeEventListener("abort",h)}let y=new XMLHttpRequest;y.open(s.method.toUpperCase(),s.url,!0),y.timeout=s.timeout;function _(){if(!y)return;const S=M.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders()),P={data:!a||a==="text"||a==="json"?y.responseText:y.response,status:y.status,statusText:y.statusText,headers:S,config:e,request:y};cs(function(v){r(v),w()},function(v){n(v),w()},P),y=null}"onloadend"in y?y.onloadend=_:y.onreadystatechange=function(){!y||y.readyState!==4||y.status===0&&!(y.responseURL&&y.responseURL.indexOf("file:")===0)||setTimeout(_)},y.onabort=function(){y&&(n(new x("Request aborted",x.ECONNABORTED,e,y)),y=null)},y.onerror=function(){n(new x("Network Error",x.ERR_NETWORK,e,y)),y=null},y.ontimeout=function(){let A=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const P=s.transitional||as;s.timeoutErrorMessage&&(A=s.timeoutErrorMessage),n(new x(A,P.clarifyTimeoutError?x.ETIMEDOUT:x.ECONNABORTED,e,y)),y=null},i===void 0&&o.setContentType(null),"setRequestHeader"in y&&d.forEach(o.toJSON(),function(A,P){y.setRequestHeader(P,A)}),d.isUndefined(s.withCredentials)||(y.withCredentials=!!s.withCredentials),a&&a!=="json"&&(y.responseType=s.responseType),f&&([m,g]=et(f,!0),y.addEventListener("progress",m)),u&&y.upload&&([p,E]=et(u),y.upload.addEventListener("progress",p),y.upload.addEventListener("loadend",E)),(s.cancelToken||s.signal)&&(h=S=>{y&&(n(!S||S.type?new Re(null,e,y):S),y.abort(),y=null)},s.cancelToken&&s.cancelToken.subscribe(h),s.signal&&(s.signal.aborted?h():s.signal.addEventListener("abort",h)));const T=Ko(s.url);if(T&&L.protocols.indexOf(T)===-1){n(new x("Unsupported protocol "+T+":",x.ERR_BAD_REQUEST,e));return}y.send(i||null)})},na=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,s;const i=function(f){if(!s){s=!0,a();const h=f instanceof Error?f:this.reason;n.abort(h instanceof x?h:new Re(h instanceof Error?h.message:h))}};let o=t&&setTimeout(()=>{o=null,i(new x(`timeout ${t} of ms exceeded`,x.ETIMEDOUT))},t);const a=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(f=>{f.unsubscribe?f.unsubscribe(i):f.removeEventListener("abort",i)}),e=null)};e.forEach(f=>f.addEventListener("abort",i));const{signal:u}=n;return u.unsubscribe=()=>d.asap(a),u}},sa=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,s;for(;n<r;)s=n+t,yield e.slice(n,s),n=s},ia=async function*(e,t){for await(const r of oa(e))yield*sa(r,t)},oa=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},Vr=(e,t,r,n)=>{const s=ia(e,t);let i=0,o,a=u=>{o||(o=!0,n&&n(u))};return new ReadableStream({async pull(u){try{const{done:f,value:h}=await s.next();if(f){a(),u.close();return}let p=h.byteLength;if(r){let m=i+=p;r(m)}u.enqueue(new Uint8Array(h))}catch(f){throw a(f),f}},cancel(u){return a(u),s.return()}},{highWaterMark:2})},mt=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",ds=mt&&typeof ReadableStream=="function",aa=mt&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),ps=(e,...t)=>{try{return!!e(...t)}catch{return!1}},ua=ds&&ps(()=>{let e=!1;const t=new Request(L.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Kr=64*1024,Vt=ds&&ps(()=>d.isReadableStream(new Response("").body)),tt={stream:Vt&&(e=>e.body)};mt&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!tt[t]&&(tt[t]=d.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new x(`Response type '${t}' is not supported`,x.ERR_NOT_SUPPORT,n)})})})(new Response);const fa=async e=>{if(e==null)return 0;if(d.isBlob(e))return e.size;if(d.isSpecCompliantForm(e))return(await new Request(L.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(d.isArrayBufferView(e)||d.isArrayBuffer(e))return e.byteLength;if(d.isURLSearchParams(e)&&(e=e+""),d.isString(e))return(await aa(e)).byteLength},ca=async(e,t)=>{const r=d.toFiniteNumber(e.getContentLength());return r??fa(t)},la=mt&&(async e=>{let{url:t,method:r,data:n,signal:s,cancelToken:i,timeout:o,onDownloadProgress:a,onUploadProgress:u,responseType:f,headers:h,withCredentials:p="same-origin",fetchOptions:m}=hs(e);f=f?(f+"").toLowerCase():"text";let E=na([s,i&&i.toAbortSignal()],o),g;const w=E&&E.unsubscribe&&(()=>{E.unsubscribe()});let y;try{if(u&&ua&&r!=="get"&&r!=="head"&&(y=await ca(h,n))!==0){let P=new Request(t,{method:"POST",body:n,duplex:"half"}),R;if(d.isFormData(n)&&(R=P.headers.get("content-type"))&&h.setContentType(R),P.body){const[v,K]=Wr(y,et(Jr(u)));n=Vr(P.body,Kr,v,K)}}d.isString(p)||(p=p?"include":"omit");const _="credentials"in Request.prototype;g=new Request(t,{...m,signal:E,method:r.toUpperCase(),headers:h.normalize().toJSON(),body:n,duplex:"half",credentials:_?p:void 0});let T=await fetch(g);const S=Vt&&(f==="stream"||f==="response");if(Vt&&(a||S&&w)){const P={};["status","statusText","headers"].forEach($e=>{P[$e]=T[$e]});const R=d.toFiniteNumber(T.headers.get("content-length")),[v,K]=a&&Wr(R,et(Jr(a),!0))||[];T=new Response(Vr(T.body,Kr,v,()=>{K&&K(),w&&w()}),P)}f=f||"text";let A=await tt[d.findKey(tt,f)||"text"](T,e);return!S&&w&&w(),await new Promise((P,R)=>{cs(P,R,{data:A,headers:M.from(T.headers),status:T.status,statusText:T.statusText,config:e,request:g})})}catch(_){throw w&&w(),_&&_.name==="TypeError"&&/fetch/i.test(_.message)?Object.assign(new x("Network Error",x.ERR_NETWORK,e,g),{cause:_.cause||_}):x.from(_,_&&_.code,e,g)}}),Kt={http:Ro,xhr:ra,fetch:la};d.forEach(Kt,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Zr=e=>`- ${e}`,ha=e=>d.isFunction(e)||e===null||e===!1,gs={getAdapter:e=>{e=d.isArray(e)?e:[e];const{length:t}=e;let r,n;const s={};for(let i=0;i<t;i++){r=e[i];let o;if(n=r,!ha(r)&&(n=Kt[(o=String(r)).toLowerCase()],n===void 0))throw new x(`Unknown adapter '${o}'`);if(n)break;s[o||"#"+i]=n}if(!n){const i=Object.entries(s).map(([a,u])=>`adapter ${a} `+(u===!1?"is not supported by the environment":"is not available in the build"));let o=t?i.length>1?`since :
|
|
4
|
+
`+i.map(Zr).join(`
|
|
5
|
+
`):" "+Zr(i[0]):"as no adapter specified";throw new x("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return n},adapters:Kt};function Dt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Re(null,e)}function Xr(e){return Dt(e),e.headers=M.from(e.headers),e.data=jt.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),gs.getAdapter(e.adapter||qe.adapter)(e).then(function(n){return Dt(e),n.data=jt.call(e,e.transformResponse,n),n.headers=M.from(n.headers),n},function(n){return fs(n)||(Dt(e),n&&n.response&&(n.response.data=jt.call(e,e.transformResponse,n.response),n.response.headers=M.from(n.response.headers))),Promise.reject(n)})}const ms="1.7.7",mr={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{mr[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Qr={};mr.transitional=function(t,r,n){function s(i,o){return"[Axios v"+ms+"] Transitional option '"+i+"'"+o+(n?". "+n:"")}return(i,o,a)=>{if(t===!1)throw new x(s(o," has been removed"+(r?" in "+r:"")),x.ERR_DEPRECATED);return r&&!Qr[o]&&(Qr[o]=!0,console.warn(s(o," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(i,o,a):!0}};function da(e,t,r){if(typeof e!="object")throw new x("options must be an object",x.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let s=n.length;for(;s-- >0;){const i=n[s],o=t[i];if(o){const a=e[i],u=a===void 0||o(a,i,e);if(u!==!0)throw new x("option "+i+" must be "+u,x.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new x("Unknown option "+i,x.ERR_BAD_OPTION)}}const Zt={assertOptions:da,validators:mr},ne=Zt.validators;let ie=class{constructor(t){this.defaults=t,this.interceptors={request:new Hr,response:new Hr}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let s;Error.captureStackTrace?Error.captureStackTrace(s={}):s=new Error;const i=s.stack?s.stack.replace(/^.+\n/,""):"";try{n.stack?i&&!String(n.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(n.stack+=`
|
|
6
|
+
`+i):n.stack=i}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=ae(this.defaults,r);const{transitional:n,paramsSerializer:s,headers:i}=r;n!==void 0&&Zt.assertOptions(n,{silentJSONParsing:ne.transitional(ne.boolean),forcedJSONParsing:ne.transitional(ne.boolean),clarifyTimeoutError:ne.transitional(ne.boolean)},!1),s!=null&&(d.isFunction(s)?r.paramsSerializer={serialize:s}:Zt.assertOptions(s,{encode:ne.function,serialize:ne.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let o=i&&d.merge(i.common,i[r.method]);i&&d.forEach(["delete","get","head","post","put","patch","common"],g=>{delete i[g]}),r.headers=M.concat(o,i);const a=[];let u=!0;this.interceptors.request.forEach(function(w){typeof w.runWhen=="function"&&w.runWhen(r)===!1||(u=u&&w.synchronous,a.unshift(w.fulfilled,w.rejected))});const f=[];this.interceptors.response.forEach(function(w){f.push(w.fulfilled,w.rejected)});let h,p=0,m;if(!u){const g=[Xr.bind(this),void 0];for(g.unshift.apply(g,a),g.push.apply(g,f),m=g.length,h=Promise.resolve(r);p<m;)h=h.then(g[p++],g[p++]);return h}m=a.length;let E=r;for(p=0;p<m;){const g=a[p++],w=a[p++];try{E=g(E)}catch(y){w.call(this,y);break}}try{h=Xr.call(this,E)}catch(g){return Promise.reject(g)}for(p=0,m=f.length;p<m;)h=h.then(f[p++],f[p++]);return h}getUri(t){t=ae(this.defaults,t);const r=ls(t.baseURL,t.url);return os(r,t.params,t.paramsSerializer)}};d.forEach(["delete","get","head","options"],function(t){ie.prototype[t]=function(r,n){return this.request(ae(n||{},{method:t,url:r,data:(n||{}).data}))}});d.forEach(["post","put","patch"],function(t){function r(n){return function(i,o,a){return this.request(ae(a||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}ie.prototype[t]=r(),ie.prototype[t+"Form"]=r(!0)});let pa=class ys{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(s=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](s);n._listeners=null}),this.promise.then=s=>{let i;const o=new Promise(a=>{n.subscribe(a),i=a}).then(s);return o.cancel=function(){n.unsubscribe(i)},o},t(function(i,o,a){n.reason||(n.reason=new Re(i,o,a),r(n.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 r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new ys(function(s){t=s}),cancel:t}}};function ga(e){return function(r){return e.apply(null,r)}}function ma(e){return d.isObject(e)&&e.isAxiosError===!0}const Xt={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};Object.entries(Xt).forEach(([e,t])=>{Xt[t]=e});function ws(e){const t=new ie(e),r=Kn(ie.prototype.request,t);return d.extend(r,ie.prototype,t,{allOwnKeys:!0}),d.extend(r,t,null,{allOwnKeys:!0}),r.create=function(s){return ws(ae(e,s))},r}const I=ws(qe);I.Axios=ie;I.CanceledError=Re;I.CancelToken=pa;I.isCancel=fs;I.VERSION=ms;I.toFormData=gt;I.AxiosError=x;I.Cancel=I.CanceledError;I.all=function(t){return Promise.all(t)};I.spread=ga;I.isAxiosError=ma;I.mergeConfig=ae;I.AxiosHeaders=M;I.formToJSON=e=>us(d.isHTMLForm(e)?new FormData(e):e);I.getAdapter=gs.getAdapter;I.HttpStatusCode=Xt;I.default=I;const{Axios:yg,AxiosError:wg,CanceledError:bg,isCancel:_g,CancelToken:Eg,VERSION:Sg,all:Tg,Cancel:Ag,isAxiosError:ya,spread:xg,toFormData:Yr,AxiosHeaders:Rg,HttpStatusCode:Og,formToJSON:vg,getAdapter:$g,mergeConfig:Pg}=I;var yt=Symbol.for("immer-nothing"),_e=Symbol.for("immer-draftable"),$=Symbol.for("immer-state"),bs=process.env.NODE_ENV!=="production"?[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},"This object has been frozen and should not be mutated",function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(e){return`'original' expects a draft, got: ${e}`}]:[];function F(e,...t){if(process.env.NODE_ENV!=="production"){const r=bs[e],n=typeof r=="function"?r.apply(null,t):r;throw new Error(`[Immer] ${n}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var ue=Object.getPrototypeOf;function k(e){return!!e&&!!e[$]}function W(e){var t;return e?_s(e)||Array.isArray(e)||!!e[_e]||!!((t=e.constructor)!=null&&t[_e])||We(e)||Je(e):!1}var wa=Object.prototype.constructor.toString();function _s(e){if(!e||typeof e!="object")return!1;const t=ue(e);if(t===null)return!0;const r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object?!0:typeof r=="function"&&Function.toString.call(r)===wa}function ba(e){return k(e)||F(15,e),e[$].base_}function Ee(e,t){fe(e)===0?Reflect.ownKeys(e).forEach(r=>{t(r,e[r],e)}):e.forEach((r,n)=>t(n,r,e))}function fe(e){const t=e[$];return t?t.type_:Array.isArray(e)?1:We(e)?2:Je(e)?3:0}function De(e,t){return fe(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Lt(e,t){return fe(e)===2?e.get(t):e[t]}function Es(e,t,r){const n=fe(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function _a(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function We(e){return e instanceof Map}function Je(e){return e instanceof Set}function j(e){return e.copy_||e.base_}function Qt(e,t){if(We(e))return new Map(e);if(Je(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const r=_s(e);if(t===!0||t==="class_only"&&!r){const n=Object.getOwnPropertyDescriptors(e);delete n[$];let s=Reflect.ownKeys(n);for(let i=0;i<s.length;i++){const o=s[i],a=n[o];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(n[o]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[o]})}return Object.create(ue(e),n)}else{const n=ue(e);if(n!==null&&r)return{...e};const s=Object.create(n);return Object.assign(s,e)}}function wt(e,t=!1){return bt(e)||k(e)||!W(e)||(fe(e)>1&&(e.set=e.add=e.clear=e.delete=Ea),Object.freeze(e),t&&Object.entries(e).forEach(([r,n])=>wt(n,!0))),e}function Ea(){F(2)}function bt(e){return Object.isFrozen(e)}var Yt={};function ce(e){const t=Yt[e];return t||F(0,e),t}function Ss(e,t){Yt[e]||(Yt[e]=t)}var Le;function rt(){return Le}function Sa(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function kr(e,t){t&&(ce("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function kt(e){er(e),e.drafts_.forEach(Ta),e.drafts_=null}function er(e){e===Le&&(Le=e.parent_)}function en(e){return Le=Sa(Le,e)}function Ta(e){const t=e[$];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function tn(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return e!==void 0&&e!==r?(r[$].modified_&&(kt(t),F(4)),W(e)&&(e=nt(t,e),t.parent_||st(t,e)),t.patches_&&ce("Patches").generateReplacementPatches_(r[$].base_,e,t.patches_,t.inversePatches_)):e=nt(t,r,[]),kt(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==yt?e:void 0}function nt(e,t,r){if(bt(t))return t;const n=t[$];if(!n)return Ee(t,(s,i)=>rn(e,n,t,s,i,r)),t;if(n.scope_!==e)return t;if(!n.modified_)return st(e,n.base_,!0),n.base_;if(!n.finalized_){n.finalized_=!0,n.scope_.unfinalizedDrafts_--;const s=n.copy_;let i=s,o=!1;n.type_===3&&(i=new Set(s),s.clear(),o=!0),Ee(i,(a,u)=>rn(e,n,s,a,u,r,o)),st(e,s,!1),r&&e.patches_&&ce("Patches").generatePatches_(n,r,e.patches_,e.inversePatches_)}return n.copy_}function rn(e,t,r,n,s,i,o){if(process.env.NODE_ENV!=="production"&&s===r&&F(5),k(s)){const a=i&&t&&t.type_!==3&&!De(t.assigned_,n)?i.concat(n):void 0,u=nt(e,s,a);if(Es(r,n,u),k(u))e.canAutoFreeze_=!1;else return}else o&&r.add(s);if(W(s)&&!bt(s)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;nt(e,s),(!t||!t.scope_.parent_)&&typeof n!="symbol"&&Object.prototype.propertyIsEnumerable.call(r,n)&&st(e,s)}}function st(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&wt(t,r)}function Aa(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:rt(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let s=n,i=yr;r&&(s=[n],i=Me);const{revoke:o,proxy:a}=Proxy.revocable(s,i);return n.draft_=a,n.revoke_=o,a}var yr={get(e,t){if(t===$)return e;const r=j(e);if(!De(r,t))return xa(e,r,t);const n=r[t];return e.finalized_||!W(n)?n:n===Mt(e.base_,t)?(Ut(e),e.copy_[t]=Ue(n,e)):n},has(e,t){return t in j(e)},ownKeys(e){return Reflect.ownKeys(j(e))},set(e,t,r){const n=Ts(j(e),t);if(n!=null&&n.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const s=Mt(j(e),t),i=s==null?void 0:s[$];if(i&&i.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(_a(r,s)&&(r!==void 0||De(e.base_,t)))return!0;Ut(e),Y(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_[t]=!0),!0},deleteProperty(e,t){return Mt(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Ut(e),Y(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=j(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty(){F(11)},getPrototypeOf(e){return ue(e.base_)},setPrototypeOf(){F(12)}},Me={};Ee(yr,(e,t)=>{Me[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Me.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&F(13),Me.set.call(this,e,t,void 0)};Me.set=function(e,t,r){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&F(14),yr.set.call(this,e[0],t,r,e[0])};function Mt(e,t){const r=e[$];return(r?j(r):e)[t]}function xa(e,t,r){var s;const n=Ts(t,r);return n?"value"in n?n.value:(s=n.get)==null?void 0:s.call(e.draft_):void 0}function Ts(e,t){if(!(t in e))return;let r=ue(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=ue(r)}}function Y(e){e.modified_||(e.modified_=!0,e.parent_&&Y(e.parent_))}function Ut(e){e.copy_||(e.copy_=Qt(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var As=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,r,n)=>{if(typeof t=="function"&&typeof r!="function"){const i=r;r=t;const o=this;return function(u=i,...f){return o.produce(u,h=>r.call(this,h,...f))}}typeof r!="function"&&F(6),n!==void 0&&typeof n!="function"&&F(7);let s;if(W(t)){const i=en(this),o=Ue(t,void 0);let a=!0;try{s=r(o),a=!1}finally{a?kt(i):er(i)}return kr(i,n),tn(s,i)}else if(!t||typeof t!="object"){if(s=r(t),s===void 0&&(s=t),s===yt&&(s=void 0),this.autoFreeze_&&wt(s,!0),n){const i=[],o=[];ce("Patches").generateReplacementPatches_(t,s,i,o),n(i,o)}return s}else F(1,t)},this.produceWithPatches=(t,r)=>{if(typeof t=="function")return(o,...a)=>this.produceWithPatches(o,u=>t(u,...a));let n,s;return[this.produce(t,r,(o,a)=>{n=o,s=a}),n,s]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){W(e)||F(8),k(e)&&(e=xs(e));const t=en(this),r=Ue(e,void 0);return r[$].isManual_=!0,er(t),r}finishDraft(e,t){const r=e&&e[$];(!r||!r.isManual_)&&F(9);const{scope_:n}=r;return kr(n,t),tn(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const s=t[r];if(s.path.length===0&&s.op==="replace"){e=s.value;break}}r>-1&&(t=t.slice(r+1));const n=ce("Patches").applyPatches_;return k(e)?n(e,t):this.produce(e,s=>n(s,t))}};function Ue(e,t){const r=We(e)?ce("MapSet").proxyMap_(e,t):Je(e)?ce("MapSet").proxySet_(e,t):Aa(e,t);return(t?t.scope_:rt()).drafts_.push(r),r}function xs(e){return k(e)||F(10,e),Rs(e)}function Rs(e){if(!W(e)||bt(e))return e;const t=e[$];let r;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=Qt(e,t.scope_.immer_.useStrictShallowCopy_)}else r=Qt(e,!0);return Ee(r,(n,s)=>{Es(r,n,Rs(s))}),t&&(t.finalized_=!1),r}function Ra(){process.env.NODE_ENV!=="production"&&bs.push('Sets cannot have "replace" patches.',function(m){return"Unsupported patch operation: "+m},function(m){return"Cannot apply patch, path doesn't resolve: "+m},"Patching reserved attributes like __proto__, prototype and constructor is not allowed");const t="replace",r="add",n="remove";function s(m,E,g,w){switch(m.type_){case 0:case 2:return o(m,E,g,w);case 1:return i(m,E,g,w);case 3:return a(m,E,g,w)}}function i(m,E,g,w){let{base_:y,assigned_:_}=m,T=m.copy_;T.length<y.length&&([y,T]=[T,y],[g,w]=[w,g]);for(let S=0;S<y.length;S++)if(_[S]&&T[S]!==y[S]){const A=E.concat([S]);g.push({op:t,path:A,value:p(T[S])}),w.push({op:t,path:A,value:p(y[S])})}for(let S=y.length;S<T.length;S++){const A=E.concat([S]);g.push({op:r,path:A,value:p(T[S])})}for(let S=T.length-1;y.length<=S;--S){const A=E.concat([S]);w.push({op:n,path:A})}}function o(m,E,g,w){const{base_:y,copy_:_}=m;Ee(m.assigned_,(T,S)=>{const A=Lt(y,T),P=Lt(_,T),R=S?De(y,T)?t:r:n;if(A===P&&R===t)return;const v=E.concat(T);g.push(R===n?{op:R,path:v}:{op:R,path:v,value:P}),w.push(R===r?{op:n,path:v}:R===n?{op:r,path:v,value:p(A)}:{op:t,path:v,value:p(A)})})}function a(m,E,g,w){let{base_:y,copy_:_}=m,T=0;y.forEach(S=>{if(!_.has(S)){const A=E.concat([T]);g.push({op:n,path:A,value:S}),w.unshift({op:r,path:A,value:S})}T++}),T=0,_.forEach(S=>{if(!y.has(S)){const A=E.concat([T]);g.push({op:r,path:A,value:S}),w.unshift({op:n,path:A,value:S})}T++})}function u(m,E,g,w){g.push({op:t,path:[],value:E===yt?void 0:E}),w.push({op:t,path:[],value:m})}function f(m,E){return E.forEach(g=>{const{path:w,op:y}=g;let _=m;for(let P=0;P<w.length-1;P++){const R=fe(_);let v=w[P];typeof v!="string"&&typeof v!="number"&&(v=""+v),(R===0||R===1)&&(v==="__proto__"||v==="constructor")&&F(19),typeof _=="function"&&v==="prototype"&&F(19),_=Lt(_,v),typeof _!="object"&&F(18,w.join("/"))}const T=fe(_),S=h(g.value),A=w[w.length-1];switch(y){case t:switch(T){case 2:return _.set(A,S);case 3:F(16);default:return _[A]=S}case r:switch(T){case 1:return A==="-"?_.push(S):_.splice(A,0,S);case 2:return _.set(A,S);case 3:return _.add(S);default:return _[A]=S}case n:switch(T){case 1:return _.splice(A,1);case 2:return _.delete(A);case 3:return _.delete(g.value);default:return delete _[A]}default:F(17,y)}}),m}function h(m){if(!W(m))return m;if(Array.isArray(m))return m.map(h);if(We(m))return new Map(Array.from(m.entries()).map(([g,w])=>[g,h(w)]));if(Je(m))return new Set(Array.from(m).map(h));const E=Object.create(ue(m));for(const g in m)E[g]=h(m[g]);return De(m,_e)&&(E[_e]=m[_e]),E}function p(m){return k(m)?h(m):m}Ss("Patches",{applyPatches_:f,generatePatches_:s,generateReplacementPatches_:u})}function Oa(){class e extends Map{constructor(u,f){super(),this[$]={type_:2,parent_:f,scope_:f?f.scope_:rt(),modified_:!1,finalized_:!1,copy_:void 0,assigned_:void 0,base_:u,draft_:this,isManual_:!1,revoked_:!1}}get size(){return j(this[$]).size}has(u){return j(this[$]).has(u)}set(u,f){const h=this[$];return o(h),(!j(h).has(u)||j(h).get(u)!==f)&&(r(h),Y(h),h.assigned_.set(u,!0),h.copy_.set(u,f),h.assigned_.set(u,!0)),this}delete(u){if(!this.has(u))return!1;const f=this[$];return o(f),r(f),Y(f),f.base_.has(u)?f.assigned_.set(u,!1):f.assigned_.delete(u),f.copy_.delete(u),!0}clear(){const u=this[$];o(u),j(u).size&&(r(u),Y(u),u.assigned_=new Map,Ee(u.base_,f=>{u.assigned_.set(f,!1)}),u.copy_.clear())}forEach(u,f){const h=this[$];j(h).forEach((p,m,E)=>{u.call(f,this.get(m),m,this)})}get(u){const f=this[$];o(f);const h=j(f).get(u);if(f.finalized_||!W(h)||h!==f.base_.get(u))return h;const p=Ue(h,f);return r(f),f.copy_.set(u,p),p}keys(){return j(this[$]).keys()}values(){const u=this.keys();return{[Symbol.iterator]:()=>this.values(),next:()=>{const f=u.next();return f.done?f:{done:!1,value:this.get(f.value)}}}}entries(){const u=this.keys();return{[Symbol.iterator]:()=>this.entries(),next:()=>{const f=u.next();if(f.done)return f;const h=this.get(f.value);return{done:!1,value:[f.value,h]}}}}[Symbol.iterator](){return this.entries()}}function t(a,u){return new e(a,u)}function r(a){a.copy_||(a.assigned_=new Map,a.copy_=new Map(a.base_))}class n extends Set{constructor(u,f){super(),this[$]={type_:3,parent_:f,scope_:f?f.scope_:rt(),modified_:!1,finalized_:!1,copy_:void 0,base_:u,draft_:this,drafts_:new Map,revoked_:!1,isManual_:!1}}get size(){return j(this[$]).size}has(u){const f=this[$];return o(f),f.copy_?!!(f.copy_.has(u)||f.drafts_.has(u)&&f.copy_.has(f.drafts_.get(u))):f.base_.has(u)}add(u){const f=this[$];return o(f),this.has(u)||(i(f),Y(f),f.copy_.add(u)),this}delete(u){if(!this.has(u))return!1;const f=this[$];return o(f),i(f),Y(f),f.copy_.delete(u)||(f.drafts_.has(u)?f.copy_.delete(f.drafts_.get(u)):!1)}clear(){const u=this[$];o(u),j(u).size&&(i(u),Y(u),u.copy_.clear())}values(){const u=this[$];return o(u),i(u),u.copy_.values()}entries(){const u=this[$];return o(u),i(u),u.copy_.entries()}keys(){return this.values()}[Symbol.iterator](){return this.values()}forEach(u,f){const h=this.values();let p=h.next();for(;!p.done;)u.call(f,p.value,p.value,this),p=h.next()}}function s(a,u){return new n(a,u)}function i(a){a.copy_||(a.copy_=new Set,a.base_.forEach(u=>{if(W(u)){const f=Ue(u,a);a.drafts_.set(u,f),a.copy_.add(f)}else a.copy_.add(u)}))}function o(a){a.revoked_&&F(3,JSON.stringify(j(a)))}Ss("MapSet",{proxyMap_:t,proxySet_:s})}var H=new As,we=H.produce,va=H.produceWithPatches.bind(H),$a=H.setAutoFreeze.bind(H),Pa=H.setUseStrictShallowCopy.bind(H),Ca=H.applyPatches.bind(H),Na=H.createDraft.bind(H),Ia=H.finishDraft.bind(H);function Fa(e){return e}function ja(e){return e}const Da=Object.freeze(Object.defineProperty({__proto__:null,Immer:As,applyPatches:Ca,castDraft:Fa,castImmutable:ja,createDraft:Na,current:xs,enableMapSet:Oa,enablePatches:Ra,finishDraft:Ia,freeze:wt,immerable:_e,isDraft:k,isDraftable:W,nothing:yt,original:ba,produce:we,produceWithPatches:va,setAutoFreeze:$a,setUseStrictShallowCopy:Pa},Symbol.toStringTag,{value:"Module"}));let La=()=>({emit(e,...t){for(let r=0,n=this.events[e]||[],s=n.length;r<s;r++)n[r](...t)},events:{},on(e,t){var r;return((r=this.events)[e]||(r[e]=[])).push(t),()=>{var n;this.events[e]=(n=this.events[e])==null?void 0:n.filter(s=>t!==s)}}});class _t{constructor(){D(this,"emitter");this.emitter=La()}on(t,r){return this.emitter.on(t,r)}once(t,r){const n=this.emitter.on(t,s=>{n(),r(s)})}emit(t,...r){this.emitter.emit(t,...r)}flushEvents(){this.emitter.events={}}}var zn,Hn;class Ma extends(Hn=Error,zn=Symbol.toStringTag,Hn){constructor(){super("[Luminix] Embed element not found. Make sure to include the `@luminixEmbed()` directive in your Blade template.");D(this,zn,"NoEmbedException")}}const Os=(e,t="data")=>{if(!document.querySelector("#luminix-embed"))throw new Ma;const r=document.getElementById(`luminix-${t}::`+e);return r?r.dataset.json&&r.dataset.value?JSON.parse(r.dataset.value):r.dataset.value:null};var vs=typeof global=="object"&&global&&global.Object===Object&&global,Ua=typeof self=="object"&&self&&self.Object===Object&&self,V=vs||Ua||Function("return this")(),J=V.Symbol,$s=Object.prototype,Ba=$s.hasOwnProperty,za=$s.toString,Ce=J?J.toStringTag:void 0;function Ha(e){var t=Ba.call(e,Ce),r=e[Ce];try{e[Ce]=void 0;var n=!0}catch{}var s=za.call(e);return n&&(t?e[Ce]=r:delete e[Ce]),s}var qa=Object.prototype,Wa=qa.toString;function Ja(e){return Wa.call(e)}var Ga="[object Null]",Va="[object Undefined]",nn=J?J.toStringTag:void 0;function he(e){return e==null?e===void 0?Va:Ga:nn&&nn in Object(e)?Ha(e):Ja(e)}function X(e){return e!=null&&typeof e=="object"}var Ka="[object Symbol]";function Et(e){return typeof e=="symbol"||X(e)&&he(e)==Ka}function wr(e,t){for(var r=-1,n=e==null?0:e.length,s=Array(n);++r<n;)s[r]=t(e[r],r,e);return s}var U=Array.isArray,Za=1/0,sn=J?J.prototype:void 0,on=sn?sn.toString:void 0;function St(e){if(typeof e=="string")return e;if(U(e))return wr(e,St)+"";if(Et(e))return on?on.call(e):"";var t=e+"";return t=="0"&&1/e==-Za?"-0":t}var Xa=/\s/;function Qa(e){for(var t=e.length;t--&&Xa.test(e.charAt(t)););return t}var Ya=/^\s+/;function Ps(e){return e&&e.slice(0,Qa(e)+1).replace(Ya,"")}function B(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var an=NaN,ka=/^[-+]0x[0-9a-f]+$/i,eu=/^0b[01]+$/i,tu=/^0o[0-7]+$/i,ru=parseInt;function tr(e){if(typeof e=="number")return e;if(Et(e))return an;if(B(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=B(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Ps(e);var r=eu.test(e);return r||tu.test(e)?ru(e.slice(2),r?2:8):ka.test(e)?an:+e}var un=1/0,nu=17976931348623157e292;function su(e){if(!e)return e===0?e:0;if(e=tr(e),e===un||e===-un){var t=e<0?-1:1;return t*nu}return e===e?e:0}function br(e){var t=su(e),r=t%1;return t===t?r?t-r:t:0}function Cs(e){return e}var iu="[object AsyncFunction]",ou="[object Function]",au="[object GeneratorFunction]",uu="[object Proxy]";function _r(e){if(!B(e))return!1;var t=he(e);return t==ou||t==au||t==iu||t==uu}var Bt=V["__core-js_shared__"],fn=function(){var e=/[^.]+$/.exec(Bt&&Bt.keys&&Bt.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function fu(e){return!!fn&&fn in e}var cu=Function.prototype,lu=cu.toString;function de(e){if(e!=null){try{return lu.call(e)}catch{}try{return e+""}catch{}}return""}var hu=/[\\^$.*+?()[\]{}|]/g,du=/^\[object .+?Constructor\]$/,pu=Function.prototype,gu=Object.prototype,mu=pu.toString,yu=gu.hasOwnProperty,wu=RegExp("^"+mu.call(yu).replace(hu,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function bu(e){if(!B(e)||fu(e))return!1;var t=_r(e)?wu:du;return t.test(de(e))}function _u(e,t){return e==null?void 0:e[t]}function pe(e,t){var r=_u(e,t);return bu(r)?r:void 0}var rr=pe(V,"WeakMap"),cn=Object.create,Eu=function(){function e(){}return function(t){if(!B(t))return{};if(cn)return cn(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function Su(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function Er(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var Tu=800,Au=16,xu=Date.now;function Ru(e){var t=0,r=0;return function(){var n=xu(),s=Au-(n-r);if(r=n,s>0){if(++t>=Tu)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Ou(e){return function(){return e}}var it=function(){try{var e=pe(Object,"defineProperty");return e({},"",{}),e}catch{}}(),vu=it?function(e,t){return it(e,"toString",{configurable:!0,enumerable:!1,value:Ou(t),writable:!0})}:Cs,Ns=Ru(vu);function $u(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}function Pu(e,t,r,n){for(var s=e.length,i=r+-1;++i<s;)if(t(e[i],i,e))return i;return-1}function Cu(e){return e!==e}function Nu(e,t,r){for(var n=r-1,s=e.length;++n<s;)if(e[n]===t)return n;return-1}function Is(e,t,r){return t===t?Nu(e,t,r):Pu(e,Cu,r)}var Iu=9007199254740991,Fu=/^(?:0|[1-9]\d*)$/;function Tt(e,t){var r=typeof e;return t=t??Iu,!!t&&(r=="number"||r!="symbol"&&Fu.test(e))&&e>-1&&e%1==0&&e<t}function Sr(e,t,r){t=="__proto__"&&it?it(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Ge(e,t){return e===t||e!==e&&t!==t}var ju=Object.prototype,Du=ju.hasOwnProperty;function Tr(e,t,r){var n=e[t];(!(Du.call(e,t)&&Ge(n,r))||r===void 0&&!(t in e))&&Sr(e,t,r)}function Oe(e,t,r,n){var s=!r;r||(r={});for(var i=-1,o=t.length;++i<o;){var a=t[i],u=void 0;u===void 0&&(u=e[a]),s?Sr(r,a,u):Tr(r,a,u)}return r}var ln=Math.max;function Fs(e,t,r){return t=ln(t===void 0?e.length-1:t,0),function(){for(var n=arguments,s=-1,i=ln(n.length-t,0),o=Array(i);++s<i;)o[s]=n[t+s];s=-1;for(var a=Array(t+1);++s<t;)a[s]=n[s];return a[t]=r(o),Su(e,this,a)}}function Lu(e,t){return Ns(Fs(e,t,Cs),e+"")}var Mu=9007199254740991;function Ar(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Mu}function Ve(e){return e!=null&&Ar(e.length)&&!_r(e)}function Uu(e,t,r){if(!B(r))return!1;var n=typeof t;return(n=="number"?Ve(r)&&Tt(t,r.length):n=="string"&&t in r)?Ge(r[t],e):!1}function Bu(e){return Lu(function(t,r){var n=-1,s=r.length,i=s>1?r[s-1]:void 0,o=s>2?r[2]:void 0;for(i=e.length>3&&typeof i=="function"?(s--,i):void 0,o&&Uu(r[0],r[1],o)&&(i=s<3?void 0:i,s=1),t=Object(t);++n<s;){var a=r[n];a&&e(t,a,n,i)}return t})}var zu=Object.prototype;function At(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||zu;return e===r}function Hu(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var qu="[object Arguments]";function hn(e){return X(e)&&he(e)==qu}var js=Object.prototype,Wu=js.hasOwnProperty,Ju=js.propertyIsEnumerable,Se=hn(function(){return arguments}())?hn:function(e){return X(e)&&Wu.call(e,"callee")&&!Ju.call(e,"callee")};function Gu(){return!1}var Ds=typeof exports=="object"&&exports&&!exports.nodeType&&exports,dn=Ds&&typeof module=="object"&&module&&!module.nodeType&&module,Vu=dn&&dn.exports===Ds,pn=Vu?V.Buffer:void 0,Ku=pn?pn.isBuffer:void 0,Te=Ku||Gu,Zu="[object Arguments]",Xu="[object Array]",Qu="[object Boolean]",Yu="[object Date]",ku="[object Error]",ef="[object Function]",tf="[object Map]",rf="[object Number]",nf="[object Object]",sf="[object RegExp]",of="[object Set]",af="[object String]",uf="[object WeakMap]",ff="[object ArrayBuffer]",cf="[object DataView]",lf="[object Float32Array]",hf="[object Float64Array]",df="[object Int8Array]",pf="[object Int16Array]",gf="[object Int32Array]",mf="[object Uint8Array]",yf="[object Uint8ClampedArray]",wf="[object Uint16Array]",bf="[object Uint32Array]",N={};N[lf]=N[hf]=N[df]=N[pf]=N[gf]=N[mf]=N[yf]=N[wf]=N[bf]=!0;N[Zu]=N[Xu]=N[ff]=N[Qu]=N[cf]=N[Yu]=N[ku]=N[ef]=N[tf]=N[rf]=N[nf]=N[sf]=N[of]=N[af]=N[uf]=!1;function _f(e){return X(e)&&Ar(e.length)&&!!N[he(e)]}function xr(e){return function(t){return e(t)}}var Ls=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ie=Ls&&typeof module=="object"&&module&&!module.nodeType&&module,Ef=Ie&&Ie.exports===Ls,zt=Ef&&vs.process,Ae=function(){try{var e=Ie&&Ie.require&&Ie.require("util").types;return e||zt&&zt.binding&&zt.binding("util")}catch{}}(),gn=Ae&&Ae.isTypedArray,xt=gn?xr(gn):_f,Sf=Object.prototype,Tf=Sf.hasOwnProperty;function Ms(e,t){var r=U(e),n=!r&&Se(e),s=!r&&!n&&Te(e),i=!r&&!n&&!s&&xt(e),o=r||n||s||i,a=o?Hu(e.length,String):[],u=a.length;for(var f in e)(t||Tf.call(e,f))&&!(o&&(f=="length"||s&&(f=="offset"||f=="parent")||i&&(f=="buffer"||f=="byteLength"||f=="byteOffset")||Tt(f,u)))&&a.push(f);return a}function Us(e,t){return function(r){return e(t(r))}}var Af=Us(Object.keys,Object),xf=Object.prototype,Rf=xf.hasOwnProperty;function Bs(e){if(!At(e))return Af(e);var t=[];for(var r in Object(e))Rf.call(e,r)&&r!="constructor"&&t.push(r);return t}function Rt(e){return Ve(e)?Ms(e):Bs(e)}function Of(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var vf=Object.prototype,$f=vf.hasOwnProperty;function Pf(e){if(!B(e))return Of(e);var t=At(e),r=[];for(var n in e)n=="constructor"&&(t||!$f.call(e,n))||r.push(n);return r}function Ke(e){return Ve(e)?Ms(e,!0):Pf(e)}var Cf=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Nf=/^\w*$/;function If(e,t){if(U(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Et(e)?!0:Nf.test(e)||!Cf.test(e)||t!=null&&e in Object(t)}var Be=pe(Object,"create");function Ff(){this.__data__=Be?Be(null):{},this.size=0}function jf(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Df="__lodash_hash_undefined__",Lf=Object.prototype,Mf=Lf.hasOwnProperty;function Uf(e){var t=this.__data__;if(Be){var r=t[e];return r===Df?void 0:r}return Mf.call(t,e)?t[e]:void 0}var Bf=Object.prototype,zf=Bf.hasOwnProperty;function Hf(e){var t=this.__data__;return Be?t[e]!==void 0:zf.call(t,e)}var qf="__lodash_hash_undefined__";function Wf(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Be&&t===void 0?qf:t,this}function le(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}le.prototype.clear=Ff;le.prototype.delete=jf;le.prototype.get=Uf;le.prototype.has=Hf;le.prototype.set=Wf;function Jf(){this.__data__=[],this.size=0}function Ot(e,t){for(var r=e.length;r--;)if(Ge(e[r][0],t))return r;return-1}var Gf=Array.prototype,Vf=Gf.splice;function Kf(e){var t=this.__data__,r=Ot(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Vf.call(t,r,1),--this.size,!0}function Zf(e){var t=this.__data__,r=Ot(t,e);return r<0?void 0:t[r][1]}function Xf(e){return Ot(this.__data__,e)>-1}function Qf(e,t){var r=this.__data__,n=Ot(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function ee(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ee.prototype.clear=Jf;ee.prototype.delete=Kf;ee.prototype.get=Zf;ee.prototype.has=Xf;ee.prototype.set=Qf;var ze=pe(V,"Map");function Yf(){this.size=0,this.__data__={hash:new le,map:new(ze||ee),string:new le}}function kf(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function vt(e,t){var r=e.__data__;return kf(t)?r[typeof t=="string"?"string":"hash"]:r.map}function ec(e){var t=vt(this,e).delete(e);return this.size-=t?1:0,t}function tc(e){return vt(this,e).get(e)}function rc(e){return vt(this,e).has(e)}function nc(e,t){var r=vt(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function te(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}te.prototype.clear=Yf;te.prototype.delete=ec;te.prototype.get=tc;te.prototype.has=rc;te.prototype.set=nc;var sc="Expected a function";function Rr(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(sc);var r=function(){var n=arguments,s=t?t.apply(this,n):n[0],i=r.cache;if(i.has(s))return i.get(s);var o=e.apply(this,n);return r.cache=i.set(s,o)||i,o};return r.cache=new(Rr.Cache||te),r}Rr.Cache=te;var ic=500;function oc(e){var t=Rr(e,function(n){return r.size===ic&&r.clear(),n}),r=t.cache;return t}var ac=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,uc=/\\(\\)?/g,fc=oc(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(ac,function(r,n,s,i){t.push(s?i.replace(uc,"$1"):n||r)}),t});function re(e){return e==null?"":St(e)}function ve(e,t){return U(e)?e:If(e,t)?[e]:fc(re(e))}var cc=1/0;function $t(e){if(typeof e=="string"||Et(e))return e;var t=e+"";return t=="0"&&1/e==-cc?"-0":t}function Or(e,t){t=ve(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[$t(t[r++])];return r&&r==n?e:void 0}function lc(e,t,r){var n=e==null?void 0:Or(e,t);return n===void 0?r:n}function vr(e,t){for(var r=-1,n=t.length,s=e.length;++r<n;)e[s+r]=t[r];return e}var mn=J?J.isConcatSpreadable:void 0;function hc(e){return U(e)||Se(e)||!!(mn&&e&&e[mn])}function dc(e,t,r,n,s){var i=-1,o=e.length;for(r||(r=hc),s||(s=[]);++i<o;){var a=e[i];r(a)?vr(s,a):s[s.length]=a}return s}function pc(e){var t=e==null?0:e.length;return t?dc(e):[]}function zs(e){return Ns(Fs(e,void 0,pc),e+"")}var $r=Us(Object.getPrototypeOf,Object),gc="[object Object]",mc=Function.prototype,yc=Object.prototype,Hs=mc.toString,wc=yc.hasOwnProperty,bc=Hs.call(Object);function qs(e){if(!X(e)||he(e)!=gc)return!1;var t=$r(e);if(t===null)return!0;var r=wc.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Hs.call(r)==bc}function Ws(e,t,r){var n=-1,s=e.length;t<0&&(t=-t>s?0:s+t),r=r>s?s:r,r<0&&(r+=s),s=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(s);++n<s;)i[n]=e[n+t];return i}function Pr(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:Ws(e,t,r)}var _c="\\ud800-\\udfff",Ec="\\u0300-\\u036f",Sc="\\ufe20-\\ufe2f",Tc="\\u20d0-\\u20ff",Ac=Ec+Sc+Tc,xc="\\ufe0e\\ufe0f",Rc="\\u200d",Oc=RegExp("["+Rc+_c+Ac+xc+"]");function Pt(e){return Oc.test(e)}function vc(e){return e.split("")}var Js="\\ud800-\\udfff",$c="\\u0300-\\u036f",Pc="\\ufe20-\\ufe2f",Cc="\\u20d0-\\u20ff",Nc=$c+Pc+Cc,Ic="\\ufe0e\\ufe0f",Fc="["+Js+"]",nr="["+Nc+"]",sr="\\ud83c[\\udffb-\\udfff]",jc="(?:"+nr+"|"+sr+")",Gs="[^"+Js+"]",Vs="(?:\\ud83c[\\udde6-\\uddff]){2}",Ks="[\\ud800-\\udbff][\\udc00-\\udfff]",Dc="\\u200d",Zs=jc+"?",Xs="["+Ic+"]?",Lc="(?:"+Dc+"(?:"+[Gs,Vs,Ks].join("|")+")"+Xs+Zs+")*",Mc=Xs+Zs+Lc,Uc="(?:"+[Gs+nr+"?",nr,Vs,Ks,Fc].join("|")+")",Bc=RegExp(sr+"(?="+sr+")|"+Uc+Mc,"g");function zc(e){return e.match(Bc)||[]}function ot(e){return Pt(e)?zc(e):vc(e)}function Qs(e){return function(t){t=re(t);var r=Pt(t)?ot(t):void 0,n=r?r[0]:t.charAt(0),s=r?Pr(r,1).join(""):t.slice(1);return n[e]()+s}}var at=Qs("toUpperCase");function Ys(e){return at(re(e).toLowerCase())}function Hc(e,t,r,n){for(var s=-1,i=e==null?0:e.length;++s<i;)r=t(r,e[s],s,e);return r}function qc(e){return function(t){return e==null?void 0:e[t]}}var Wc={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Jc=qc(Wc),Gc=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Vc="\\u0300-\\u036f",Kc="\\ufe20-\\ufe2f",Zc="\\u20d0-\\u20ff",Xc=Vc+Kc+Zc,Qc="["+Xc+"]",Yc=RegExp(Qc,"g");function kc(e){return e=re(e),e&&e.replace(Gc,Jc).replace(Yc,"")}var el=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function tl(e){return e.match(el)||[]}var rl=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function nl(e){return rl.test(e)}var ks="\\ud800-\\udfff",sl="\\u0300-\\u036f",il="\\ufe20-\\ufe2f",ol="\\u20d0-\\u20ff",al=sl+il+ol,ei="\\u2700-\\u27bf",ti="a-z\\xdf-\\xf6\\xf8-\\xff",ul="\\xac\\xb1\\xd7\\xf7",fl="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",cl="\\u2000-\\u206f",ll=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ri="A-Z\\xc0-\\xd6\\xd8-\\xde",hl="\\ufe0e\\ufe0f",ni=ul+fl+cl+ll,si="['’]",yn="["+ni+"]",dl="["+al+"]",ii="\\d+",pl="["+ei+"]",oi="["+ti+"]",ai="[^"+ks+ni+ii+ei+ti+ri+"]",gl="\\ud83c[\\udffb-\\udfff]",ml="(?:"+dl+"|"+gl+")",yl="[^"+ks+"]",ui="(?:\\ud83c[\\udde6-\\uddff]){2}",fi="[\\ud800-\\udbff][\\udc00-\\udfff]",me="["+ri+"]",wl="\\u200d",wn="(?:"+oi+"|"+ai+")",bl="(?:"+me+"|"+ai+")",bn="(?:"+si+"(?:d|ll|m|re|s|t|ve))?",_n="(?:"+si+"(?:D|LL|M|RE|S|T|VE))?",ci=ml+"?",li="["+hl+"]?",_l="(?:"+wl+"(?:"+[yl,ui,fi].join("|")+")"+li+ci+")*",El="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Sl="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Tl=li+ci+_l,Al="(?:"+[pl,ui,fi].join("|")+")"+Tl,xl=RegExp([me+"?"+oi+"+"+bn+"(?="+[yn,me,"$"].join("|")+")",bl+"+"+_n+"(?="+[yn,me+wn,"$"].join("|")+")",me+"?"+wn+"+"+bn,me+"+"+_n,Sl,El,ii,Al].join("|"),"g");function Rl(e){return e.match(xl)||[]}function Ol(e,t,r){return e=re(e),t=t,t===void 0?nl(e)?Rl(e):tl(e):e.match(t)||[]}var vl="['’]",$l=RegExp(vl,"g");function Ct(e){return function(t){return Hc(Ol(kc(t).replace($l,"")),e,"")}}var Pl=Ct(function(e,t,r){return t=t.toLowerCase(),e+(r?Ys(t):t)});function Cl(){this.__data__=new ee,this.size=0}function Nl(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function Il(e){return this.__data__.get(e)}function Fl(e){return this.__data__.has(e)}var jl=200;function Dl(e,t){var r=this.__data__;if(r instanceof ee){var n=r.__data__;if(!ze||n.length<jl-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new te(n)}return r.set(e,t),this.size=r.size,this}function Z(e){var t=this.__data__=new ee(e);this.size=t.size}Z.prototype.clear=Cl;Z.prototype.delete=Nl;Z.prototype.get=Il;Z.prototype.has=Fl;Z.prototype.set=Dl;function Ll(e,t){return e&&Oe(t,Rt(t),e)}function Ml(e,t){return e&&Oe(t,Ke(t),e)}var hi=typeof exports=="object"&&exports&&!exports.nodeType&&exports,En=hi&&typeof module=="object"&&module&&!module.nodeType&&module,Ul=En&&En.exports===hi,Sn=Ul?V.Buffer:void 0,Tn=Sn?Sn.allocUnsafe:void 0;function di(e,t){if(t)return e.slice();var r=e.length,n=Tn?Tn(r):new e.constructor(r);return e.copy(n),n}function Bl(e,t){for(var r=-1,n=e==null?0:e.length,s=0,i=[];++r<n;){var o=e[r];t(o,r,e)&&(i[s++]=o)}return i}function pi(){return[]}var zl=Object.prototype,Hl=zl.propertyIsEnumerable,An=Object.getOwnPropertySymbols,Cr=An?function(e){return e==null?[]:(e=Object(e),Bl(An(e),function(t){return Hl.call(e,t)}))}:pi;function ql(e,t){return Oe(e,Cr(e),t)}var Wl=Object.getOwnPropertySymbols,gi=Wl?function(e){for(var t=[];e;)vr(t,Cr(e)),e=$r(e);return t}:pi;function Jl(e,t){return Oe(e,gi(e),t)}function mi(e,t,r){var n=t(e);return U(e)?n:vr(n,r(e))}function ir(e){return mi(e,Rt,Cr)}function yi(e){return mi(e,Ke,gi)}var or=pe(V,"DataView"),ar=pe(V,"Promise"),ur=pe(V,"Set"),xn="[object Map]",Gl="[object Object]",Rn="[object Promise]",On="[object Set]",vn="[object WeakMap]",$n="[object DataView]",Vl=de(or),Kl=de(ze),Zl=de(ar),Xl=de(ur),Ql=de(rr),q=he;(or&&q(new or(new ArrayBuffer(1)))!=$n||ze&&q(new ze)!=xn||ar&&q(ar.resolve())!=Rn||ur&&q(new ur)!=On||rr&&q(new rr)!=vn)&&(q=function(e){var t=he(e),r=t==Gl?e.constructor:void 0,n=r?de(r):"";if(n)switch(n){case Vl:return $n;case Kl:return xn;case Zl:return Rn;case Xl:return On;case Ql:return vn}return t});var Yl=Object.prototype,kl=Yl.hasOwnProperty;function eh(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&kl.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var ut=V.Uint8Array;function Nr(e){var t=new e.constructor(e.byteLength);return new ut(t).set(new ut(e)),t}function th(e,t){var r=t?Nr(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var rh=/\w*$/;function nh(e){var t=new e.constructor(e.source,rh.exec(e));return t.lastIndex=e.lastIndex,t}var Pn=J?J.prototype:void 0,Cn=Pn?Pn.valueOf:void 0;function sh(e){return Cn?Object(Cn.call(e)):{}}function wi(e,t){var r=t?Nr(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var ih="[object Boolean]",oh="[object Date]",ah="[object Map]",uh="[object Number]",fh="[object RegExp]",ch="[object Set]",lh="[object String]",hh="[object Symbol]",dh="[object ArrayBuffer]",ph="[object DataView]",gh="[object Float32Array]",mh="[object Float64Array]",yh="[object Int8Array]",wh="[object Int16Array]",bh="[object Int32Array]",_h="[object Uint8Array]",Eh="[object Uint8ClampedArray]",Sh="[object Uint16Array]",Th="[object Uint32Array]";function Ah(e,t,r){var n=e.constructor;switch(t){case dh:return Nr(e);case ih:case oh:return new n(+e);case ph:return th(e,r);case gh:case mh:case yh:case wh:case bh:case _h:case Eh:case Sh:case Th:return wi(e,r);case ah:return new n;case uh:case lh:return new n(e);case fh:return nh(e);case ch:return new n;case hh:return sh(e)}}function bi(e){return typeof e.constructor=="function"&&!At(e)?Eu($r(e)):{}}var xh="[object Map]";function Rh(e){return X(e)&&q(e)==xh}var Nn=Ae&&Ae.isMap,Oh=Nn?xr(Nn):Rh,vh="[object Set]";function $h(e){return X(e)&&q(e)==vh}var In=Ae&&Ae.isSet,Ph=In?xr(In):$h,Ch=1,Nh=2,Ih=4,_i="[object Arguments]",Fh="[object Array]",jh="[object Boolean]",Dh="[object Date]",Lh="[object Error]",Ei="[object Function]",Mh="[object GeneratorFunction]",Uh="[object Map]",Bh="[object Number]",Si="[object Object]",zh="[object RegExp]",Hh="[object Set]",qh="[object String]",Wh="[object Symbol]",Jh="[object WeakMap]",Gh="[object ArrayBuffer]",Vh="[object DataView]",Kh="[object Float32Array]",Zh="[object Float64Array]",Xh="[object Int8Array]",Qh="[object Int16Array]",Yh="[object Int32Array]",kh="[object Uint8Array]",ed="[object Uint8ClampedArray]",td="[object Uint16Array]",rd="[object Uint32Array]",C={};C[_i]=C[Fh]=C[Gh]=C[Vh]=C[jh]=C[Dh]=C[Kh]=C[Zh]=C[Xh]=C[Qh]=C[Yh]=C[Uh]=C[Bh]=C[Si]=C[zh]=C[Hh]=C[qh]=C[Wh]=C[kh]=C[ed]=C[td]=C[rd]=!0;C[Lh]=C[Ei]=C[Jh]=!1;function Fe(e,t,r,n,s,i){var o,a=t&Ch,u=t&Nh,f=t&Ih;if(r&&(o=s?r(e,n,s,i):r(e)),o!==void 0)return o;if(!B(e))return e;var h=U(e);if(h){if(o=eh(e),!a)return Er(e,o)}else{var p=q(e),m=p==Ei||p==Mh;if(Te(e))return di(e,a);if(p==Si||p==_i||m&&!s){if(o=u||m?{}:bi(e),!a)return u?Jl(e,Ml(o,e)):ql(e,Ll(o,e))}else{if(!C[p])return s?e:{};o=Ah(e,p,a)}}i||(i=new Z);var E=i.get(e);if(E)return E;i.set(e,o),Ph(e)?e.forEach(function(y){o.add(Fe(y,t,r,y,e,i))}):Oh(e)&&e.forEach(function(y,_){o.set(_,Fe(y,t,r,_,e,i))});var g=f?u?yi:ir:u?Ke:Rt,w=h?void 0:g(e);return $u(w||e,function(y,_){w&&(_=y,y=e[_]),Tr(o,_,Fe(y,t,r,_,e,i))}),o}var nd=1,sd=4;function id(e){return Fe(e,nd|sd)}var od="__lodash_hash_undefined__";function ad(e){return this.__data__.set(e,od),this}function ud(e){return this.__data__.has(e)}function ft(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new te;++t<r;)this.add(e[t])}ft.prototype.add=ft.prototype.push=ad;ft.prototype.has=ud;function fd(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function cd(e,t){return e.has(t)}var ld=1,hd=2;function Ti(e,t,r,n,s,i){var o=r&ld,a=e.length,u=t.length;if(a!=u&&!(o&&u>a))return!1;var f=i.get(e),h=i.get(t);if(f&&h)return f==t&&h==e;var p=-1,m=!0,E=r&hd?new ft:void 0;for(i.set(e,t),i.set(t,e);++p<a;){var g=e[p],w=t[p];if(n)var y=o?n(w,g,p,t,e,i):n(g,w,p,e,t,i);if(y!==void 0){if(y)continue;m=!1;break}if(E){if(!fd(t,function(_,T){if(!cd(E,T)&&(g===_||s(g,_,r,n,i)))return E.push(T)})){m=!1;break}}else if(!(g===w||s(g,w,r,n,i))){m=!1;break}}return i.delete(e),i.delete(t),m}function dd(e){var t=-1,r=Array(e.size);return e.forEach(function(n,s){r[++t]=[s,n]}),r}function pd(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var gd=1,md=2,yd="[object Boolean]",wd="[object Date]",bd="[object Error]",_d="[object Map]",Ed="[object Number]",Sd="[object RegExp]",Td="[object Set]",Ad="[object String]",xd="[object Symbol]",Rd="[object ArrayBuffer]",Od="[object DataView]",Fn=J?J.prototype:void 0,Ht=Fn?Fn.valueOf:void 0;function vd(e,t,r,n,s,i,o){switch(r){case Od:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Rd:return!(e.byteLength!=t.byteLength||!i(new ut(e),new ut(t)));case yd:case wd:case Ed:return Ge(+e,+t);case bd:return e.name==t.name&&e.message==t.message;case Sd:case Ad:return e==t+"";case _d:var a=dd;case Td:var u=n&gd;if(a||(a=pd),e.size!=t.size&&!u)return!1;var f=o.get(e);if(f)return f==t;n|=md,o.set(e,t);var h=Ti(a(e),a(t),n,s,i,o);return o.delete(e),h;case xd:if(Ht)return Ht.call(e)==Ht.call(t)}return!1}var $d=1,Pd=Object.prototype,Cd=Pd.hasOwnProperty;function Nd(e,t,r,n,s,i){var o=r&$d,a=ir(e),u=a.length,f=ir(t),h=f.length;if(u!=h&&!o)return!1;for(var p=u;p--;){var m=a[p];if(!(o?m in t:Cd.call(t,m)))return!1}var E=i.get(e),g=i.get(t);if(E&&g)return E==t&&g==e;var w=!0;i.set(e,t),i.set(t,e);for(var y=o;++p<u;){m=a[p];var _=e[m],T=t[m];if(n)var S=o?n(T,_,m,t,e,i):n(_,T,m,e,t,i);if(!(S===void 0?_===T||s(_,T,r,n,i):S)){w=!1;break}y||(y=m=="constructor")}if(w&&!y){var A=e.constructor,P=t.constructor;A!=P&&"constructor"in e&&"constructor"in t&&!(typeof A=="function"&&A instanceof A&&typeof P=="function"&&P instanceof P)&&(w=!1)}return i.delete(e),i.delete(t),w}var Id=1,jn="[object Arguments]",Dn="[object Array]",Ze="[object Object]",Fd=Object.prototype,Ln=Fd.hasOwnProperty;function jd(e,t,r,n,s,i){var o=U(e),a=U(t),u=o?Dn:q(e),f=a?Dn:q(t);u=u==jn?Ze:u,f=f==jn?Ze:f;var h=u==Ze,p=f==Ze,m=u==f;if(m&&Te(e)){if(!Te(t))return!1;o=!0,h=!1}if(m&&!h)return i||(i=new Z),o||xt(e)?Ti(e,t,r,n,s,i):vd(e,t,u,r,n,s,i);if(!(r&Id)){var E=h&&Ln.call(e,"__wrapped__"),g=p&&Ln.call(t,"__wrapped__");if(E||g){var w=E?e.value():e,y=g?t.value():t;return i||(i=new Z),s(w,y,r,n,i)}}return m?(i||(i=new Z),Nd(e,t,r,n,s,i)):!1}function Ai(e,t,r,n,s){return e===t?!0:e==null||t==null||!X(e)&&!X(t)?e!==e&&t!==t:jd(e,t,r,n,Ai,s)}function Dd(e,t){return e!=null&&t in Object(e)}function xi(e,t,r){t=ve(t,e);for(var n=-1,s=t.length,i=!1;++n<s;){var o=$t(t[n]);if(!(i=e!=null&&r(e,o)))break;e=e[o]}return i||++n!=s?i:(s=e==null?0:e.length,!!s&&Ar(s)&&Tt(o,s)&&(U(e)||Se(e)))}function Ld(e,t){return e!=null&&xi(e,t,Dd)}function Md(e){return function(t){return t==null?void 0:t[e]}}function Ud(e){return function(t,r,n){for(var s=-1,i=Object(t),o=n(t),a=o.length;a--;){var u=o[++s];if(r(i[u],u,i)===!1)break}return t}}var Bd=Ud(),qt=function(){return V.Date.now()},zd="Expected a function",Hd=Math.max,qd=Math.min;function Ri(e,t,r){var n,s,i,o,a,u,f=0,h=!1,p=!1,m=!0;if(typeof e!="function")throw new TypeError(zd);t=tr(t)||0,B(r)&&(h=!!r.leading,p="maxWait"in r,i=p?Hd(tr(r.maxWait)||0,t):i,m="trailing"in r?!!r.trailing:m);function E(R){var v=n,K=s;return n=s=void 0,f=R,o=e.apply(K,v),o}function g(R){return f=R,a=setTimeout(_,t),h?E(R):o}function w(R){var v=R-u,K=R-f,$e=t-v;return p?qd($e,i-K):$e}function y(R){var v=R-u,K=R-f;return u===void 0||v>=t||v<0||p&&K>=i}function _(){var R=qt();if(y(R))return T(R);a=setTimeout(_,w(R))}function T(R){return a=void 0,m&&n?E(R):(n=s=void 0,o)}function S(){a!==void 0&&clearTimeout(a),f=0,n=u=s=a=void 0}function A(){return a===void 0?o:T(qt())}function P(){var R=qt(),v=y(R);if(n=arguments,s=this,u=R,v){if(a===void 0)return g(u);if(p)return clearTimeout(a),a=setTimeout(_,t),E(u)}return a===void 0&&(a=setTimeout(_,t)),o}return P.cancel=S,P.flush=A,P}function fr(e,t,r){(r!==void 0&&!Ge(e[t],r)||r===void 0&&!(t in e))&&Sr(e,t,r)}function Wd(e){return X(e)&&Ve(e)}function cr(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function Jd(e){return Oe(e,Ke(e))}function Gd(e,t,r,n,s,i,o){var a=cr(e,r),u=cr(t,r),f=o.get(u);if(f){fr(e,r,f);return}var h=i?i(a,u,r+"",e,t,o):void 0,p=h===void 0;if(p){var m=U(u),E=!m&&Te(u),g=!m&&!E&&xt(u);h=u,m||E||g?U(a)?h=a:Wd(a)?h=Er(a):E?(p=!1,h=di(u,!0)):g?(p=!1,h=wi(u,!0)):h=[]:qs(u)||Se(u)?(h=a,Se(a)?h=Jd(a):(!B(a)||_r(a))&&(h=bi(u))):p=!1}p&&(o.set(u,h),s(h,u,n,i,o),o.delete(u)),fr(e,r,h)}function Oi(e,t,r,n,s){e!==t&&Bd(t,function(i,o){if(s||(s=new Z),B(i))Gd(e,t,o,r,Oi,n,s);else{var a=n?n(cr(e,o),i,o+"",e,t,s):void 0;a===void 0&&(a=i),fr(e,o,a)}},Ke)}function Vd(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var Kd=Object.prototype,Zd=Kd.hasOwnProperty;function Xd(e,t){return e!=null&&Zd.call(e,t)}function Qd(e,t){return e!=null&&xi(e,t,Xd)}function Yd(e,t){return wr(t,function(r){return e[r]})}function kd(e){return e==null?[]:Yd(e,Rt(e))}function ep(e,t){return t.length<2?e:Or(e,Ws(t,0,-1))}var tp="[object Map]",rp="[object Set]",np=Object.prototype,sp=np.hasOwnProperty;function ip(e){if(e==null)return!0;if(Ve(e)&&(U(e)||typeof e=="string"||typeof e.splice=="function"||Te(e)||xt(e)||Se(e)))return!e.length;var t=q(e);if(t==tp||t==rp)return!e.size;if(At(e))return!Bs(e).length;for(var r in e)if(sp.call(e,r))return!1;return!0}function op(e,t){return Ai(e,t)}var ap=Ct(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),up=Qs("toLowerCase"),vi=Bu(function(e,t,r){Oi(e,t,r)});function $i(e,t){return t=ve(t,e),e=ep(e,t),e==null||delete e[$t(Vd(t))]}function fp(e){return qs(e)?void 0:e}var cp=1,lp=2,hp=4,dp=zs(function(e,t){var r={};if(e==null)return r;var n=!1;t=wr(t,function(i){return i=ve(i,e),n||(n=i.length>1),i}),Oe(e,yi(e),r),n&&(r=Fe(r,cp|lp|hp,fp));for(var s=t.length;s--;)$i(r,t[s]);return r});function Pi(e,t,r,n){if(!B(e))return e;t=ve(t,e);for(var s=-1,i=t.length,o=i-1,a=e;a!=null&&++s<i;){var u=$t(t[s]),f=r;if(u==="__proto__"||u==="constructor"||u==="prototype")return e;if(s!=o){var h=a[u];f=void 0,f===void 0&&(f=B(h)?h:Tt(t[s+1])?[]:{})}Tr(a,u,f),a=a[u]}return e}function pp(e,t,r){for(var n=-1,s=t.length,i={};++n<s;){var o=t[n],a=Or(e,o);r(a,o)&&Pi(i,ve(o,e),a)}return i}var gp=9007199254740991,mp=Math.floor;function Mn(e,t){var r="";if(!e||t<1||t>gp)return r;do t%2&&(r+=e),t=mp(t/2),t&&(e+=e);while(t);return r}var yp=Md("length"),Ci="\\ud800-\\udfff",wp="\\u0300-\\u036f",bp="\\ufe20-\\ufe2f",_p="\\u20d0-\\u20ff",Ep=wp+bp+_p,Sp="\\ufe0e\\ufe0f",Tp="["+Ci+"]",lr="["+Ep+"]",hr="\\ud83c[\\udffb-\\udfff]",Ap="(?:"+lr+"|"+hr+")",Ni="[^"+Ci+"]",Ii="(?:\\ud83c[\\udde6-\\uddff]){2}",Fi="[\\ud800-\\udbff][\\udc00-\\udfff]",xp="\\u200d",ji=Ap+"?",Di="["+Sp+"]?",Rp="(?:"+xp+"(?:"+[Ni,Ii,Fi].join("|")+")"+Di+ji+")*",Op=Di+ji+Rp,vp="(?:"+[Ni+lr+"?",lr,Ii,Fi,Tp].join("|")+")",Un=RegExp(hr+"(?="+hr+")|"+vp+Op,"g");function $p(e){for(var t=Un.lastIndex=0;Un.test(e);)++t;return t}function Nt(e){return Pt(e)?$p(e):yp(e)}var Pp=Math.ceil;function ct(e,t){t=t===void 0?" ":St(t);var r=t.length;if(r<2)return r?Mn(t,e):t;var n=Mn(t,Pp(e/Nt(t)));return Pt(t)?Pr(ot(n),0,e).join(""):n.slice(0,e)}var Cp=Math.ceil,Np=Math.floor;function Ip(e,t,r){e=re(e),t=br(t);var n=t?Nt(e):0;if(!t||n>=t)return e;var s=(t-n)/2;return ct(Np(s),r)+e+ct(Cp(s),r)}function Fp(e,t,r){e=re(e),t=br(t);var n=t?Nt(e):0;return t&&n<t?e+ct(t-n,r):e}function jp(e,t,r){e=re(e),t=br(t);var n=t?Nt(e):0;return t&&n<t?ct(t-n,r)+e:e}function Dp(e,t){return pp(e,t,function(r,n){return Ld(e,n)})}var Lp=zs(function(e,t){return e==null?{}:Dp(e,t)}),Mp=Math.floor,Up=Math.random;function Bp(e,t){return e+Mp(Up()*(t-e+1))}function Li(e,t){var r=-1,n=e.length,s=n-1;for(t=t===void 0?n:t;++r<t;){var i=Bp(r,s),o=e[i];e[i]=e[r],e[r]=o}return e.length=t,e}function zp(e,t,r){return e==null?e:Pi(e,t,r)}function Hp(e){return Li(Er(e))}function qp(e){return Li(kd(e))}function Wp(e){var t=U(e)?Hp:qp;return t(e)}var Jp=Ct(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()}),Bn=Ct(function(e,t,r){return e+(r?" ":"")+at(t)}),Gp="Expected a function";function Vp(e,t,r){var n=!0,s=!0;if(typeof e!="function")throw new TypeError(Gp);return B(r)&&(n="leading"in r?!!r.leading:n,s="trailing"in r?!!r.trailing:s),Ri(e,t,{leading:n,maxWait:t,trailing:s})}function Kp(e,t){for(var r=e.length;r--&&Is(t,e[r],0)>-1;);return r}function Zp(e,t){for(var r=-1,n=e.length;++r<n&&Is(t,e[r],0)>-1;);return r}function Xp(e,t,r){if(e=re(e),e&&t===void 0)return Ps(e);if(!e||!(t=St(t)))return e;var n=ot(e),s=ot(t),i=Zp(n,s),o=Kp(n,s)+1;return Pr(n,i,o).join("")}function Qp(e,t){return e==null?!0:$i(e,t)}class Yp extends _t{constructor(r=[]){super();D(this,"_configuration",{});D(this,"singletons",{});D(this,"loaders",{});this.providers=r}get services(){return Object.entries(this.loaders).map(([r,n])=>({name:r,...n}))}get configuration(){return this._configuration}loadConfiguration(){if(document.getElementById("luminix-data::config")){const r=Os("config");r&&typeof r=="object"&&this.withConfiguration(r)}}bind(r,n){if(typeof r!="string")throw new TypeError("Service name must be a string.");this.loaders[r]={loader:n}}singleton(r,n){if(typeof r!="string")throw new TypeError("Service name must be a string.");this.loaders[r]={loader:n,singleton:!0}}instance(r,n){if(typeof r!="string")throw new TypeError("Service name must be a string.");this.loaders[r]={loader:()=>n,singleton:!0}}make(r){const n=this.loaders[r];if(!n)throw new Error(`Service '${r}' is not bound in the container.`);return n.singleton?(this.singletons[r]||(this.singletons[r]=n.loader()),this.singletons[r]):n.loader()}withConfiguration(r){return vi(this._configuration,r),this}withProviders(r){return this.providers.push(...r),this}create(){if(this.services.length>0){console.warn("[Luminix] Application already created. Skipping double invocation of `create()`. If you want to re-create the application, please flush it first.");return}this.loadConfiguration();const r=this.providers.map(n=>new n(this));this.emit("init",r),r.forEach(n=>{n.register&&n.register()}),this.emit("booting"),r.forEach(n=>{n.boot&&n.boot()}),this.emit("booted"),this.once("flushing",()=>{r.forEach(n=>{n.flush&&n.flush()})}),this.emit("ready")}flush(){this.emit("flushing"),this.singletons={},this.loaders={},this._configuration={},this.providers=[],this.emit("flushed"),this.flushEvents()}dump(r=!1){const n={configuration:this.configuration,services:this.services,providers:this.providers,singletons:this.singletons};if(r===!0)return n;const s=this.make("log");r===!1&&s.info(n),s.info(r,n)}}function ge(e){return class extends e{constructor(...r){super(...r);D(this,"_macros",{});return new Proxy(this,{get(n,s,i){return Reflect.has(n,s)?Reflect.get(n,s,i):typeof s=="string"&&n.hasMacro(s)?n._macros[s].bind(n):Reflect.get(n,s,i)}})}macro(r,n){if(typeof n!="function")throw new TypeError("Macro must be a function");this._macros[r]=n}hasMacro(r){return r in this._macros&&typeof this._macros[r]=="function"}flushMacros(){this._macros={}}}}class kp{get(t,r,n){return lc(t,r,n)}has(t,r){return Qd(t,r)}isEmpty(t){return ip(t)}isEqual(t,r){return op(t,r)}merge(t,...r){let n;try{n=structuredClone(t)}catch{n=id(t)}return vi(n,...r),n}omit(t,...r){return dp(t,...r)}pick(t,...r){return Lp(t,...r)}set(t,r,n){zp(t,r,n)}unset(t,r){Qp(t,r)}fromQuery(t){const r={};for(const[n,s]of t.entries())this.set(r,n,s);return r}fromFormData(t){return this.fromQuery(t)}toQuery(t){return Yr(t,new URLSearchParams)}toFormData(t){return Yr(t,new FormData)}}const O=new(ge(kp));let lt=class{constructor(t,r){this._response=t,this._error=r}error(){return this._error}body(){return typeof this._response.data=="object"?JSON.stringify(this._response.data):String(this._response.data)}json(t,r){return t?O.get(this._response.data,t,r):this._response.data}has(t){return O.has(this._response.data,t)}status(){return Number(this._response.status)}successful(){return this.status()>=200&&this.status()<300}redirect(){return this.status()>=300&&this.status()<400}clientError(){return this.status()>=400&&this.status()<500}serverError(){return this.status()>=500}failed(){return this.clientError()||this.serverError()}header(t){return this._response.headers[t]}headers(){return this._response.headers}ok(){return this.status()===200}created(){return this.status()===201}accepted(){return this.status()===202}noContent(){return this.status()===204}movedPermanently(){return this.status()===301}found(){return this.status()===302}badRequest(){return this.status()===400}unauthorized(){return this.status()===401}paymentRequired(){return this.status()===402}forbidden(){return this.status()===403}notFound(){return this.status()===404}requestTimeout(){return this.status()===408}conflict(){return this.status()===409}unprocessableEntity(){return this.status()===422}tooManyRequests(){return this.status()===429}throw(){if(this.failed())throw this._error||new Error(this.body());return this}throwIf(t){return typeof t=="function"?t(this)?this.throw():this:t?this.throw():this}throwUnless(t){return typeof t=="function"?t(this)?this:this.throw():t?this:this.throw()}throwIfStatus(t){return typeof t=="function"&&t(this.status(),this)?this.throw():this.status()===t?this.throw():this}throwUnlessStatus(t){return typeof t=="function"&&!t(this.status(),this)?this.throw():this.status()===t?this:this.throw()}throwIfClientError(){return this.clientError()?this.throw():this}throwIfServerError(){return this.serverError()?this.throw():this}};var qn;let ye=(qn=Symbol.toStringTag,class{constructor(t){D(this,"promise");D(this,"response");D(this,qn,"Request");this.promise=new Promise((r,n)=>{I(t).then(s=>{this.response=new lt(s),r(this.response)}).catch(s=>{ya(s)&&s.response?(this.response=new lt(s.response,s),r(this.response)):n(s)})})}then(t,r){return this.promise.then(t,r)}catch(t){return this.promise.catch(t)}finally(t){return this.promise.finally(t)}});class eg{constructor(t={}){this.options=t}parseData(t){return O.get(this.options,"headers[Content-Type]","application/json")==="application/x-www-form-urlencoded"&&t?O.toFormData(t||{}):t}baseUrl(t){return O.set(this.options,"baseURL",t),this}asForm(){return O.set(this.options,"headers[Content-Type]","application/x-www-form-urlencoded"),this}accept(t){return O.set(this.options,"headers[Accept]",t),this}acceptJson(){return this.accept("application/json")}withHeaders(t){return O.set(this.options,"headers",O.merge(this.options.headers,t)),this}replaceHeaders(t){return O.set(this.options,"headers",t),this}withOptions(t){return this.options=O.merge(this.options,t),this}replaceOptions(t){return this.options=t,this}withQueryParameters(t){const r=typeof t=="string"?O.fromQuery(new URLSearchParams(t)):t instanceof URLSearchParams?O.fromQuery(t):t;return O.set(this.options,"params",O.merge(this.options.params||{},r)),this}replaceQueryParameters(t){return O.set(this.options,"params",typeof t=="string"?O.fromQuery(new URLSearchParams(t)):t instanceof URLSearchParams?O.fromQuery(t):t),this}withData(t){const r=O.get(this.options,"data",{}),n=r instanceof FormData?O.fromFormData(r):r;return O.set(this.options,"data",this.parseData(O.merge(n,t))),this}replaceData(t){return O.set(this.options,"data",this.parseData(t)),this}withBasicAuth(t,r){return O.set(this.options,"headers.Authorization",`Basic ${btoa(`${t}:${r}`)}`),this}withToken(t){return O.set(this.options,"headers.Authorization",`Bearer ${t}`),this}get(t,r){return new ye({...this.options,params:r??this.options.params,url:t})}post(t,r){return new ye({...this.options,method:"post",url:t,data:this.parseData(r??this.options.data)})}put(t,r){return new ye({...this.options,method:"put",url:t,data:this.parseData(r??this.options.data)})}patch(t,r){return new ye({...this.options,method:"patch",url:t,data:this.parseData(r??this.options.data)})}delete(t,r){return new ye({...this.options,method:"delete",params:r??this.options.params,url:t})}}class tg{cartesian(...t){return t.reduce((r,n)=>r.flatMap(s=>n.map(i=>[s,i].flat())))}sampleSize(t,r){return this.shuffle(t).slice(0,r)}shuffle(t){return Wp(t)}}const Ne=new(ge(tg)),Q=e=>{e.emit("change",{items:e.all(),source:e})},Xe=(e,t)=>Array.isArray(e)?e[t]??null:e.get(t);function Qe(e){return e instanceof oe}var Wn,Jn,c;const b=class b extends _t{constructor(r=[]){super();Dr(this,c);D(this,Wn,"Collection");Lr(this,c,r)}get items(){return[...l(this,c)]}[(Jn=Symbol.iterator,Wn=Symbol.toStringTag,Jn)](){return l(this,c)[Symbol.iterator]()}all(){return[...l(this,c)]}average(r){return typeof r=="string"?this.avg(r):this.avg()}avg(r){return typeof r=="string"?this.sum(r)/l(this,c).length:this.sum()/l(this,c).length}chunk(r){const n=[];for(let s=0;s<l(this,c).length;s+=r)n.push(l(this,c).slice(s,s+r));return new b(n.map(s=>new b(s)))}chunkWhile(r){const n=[];let s=new b;for(let i=0;i<l(this,c).length;i++)r(l(this,c)[i],i,s)?s.push(l(this,c)[i]):(n.push(s),s=new b);return s.count()>0&&n.push(s),new b(n)}collapse(){return new b(l(this,c).flat())}collect(){return new b(l(this,c))}combine(r){const n={};return l(this,c).forEach((s,i)=>{if(typeof s!="string")throw new TypeError("The `combine` method expects the keys to be strings");n[s]=Xe(r,i)}),n}concat(r){return Array.isArray(r)?new b([...l(this,c),...r]):new b([...l(this,c),...r.all()])}contains(r,n){return typeof r=="function"?l(this,c).some((s,i)=>r(s,i,this)):l(this,c).some(s=>{if(typeof n>"u")return s==r;if(typeof r!="string")throw new TypeError("The key must be a string");return s[r]==n})}containsOneItem(){return l(this,c).length===1}containsStrict(r,n){return typeof r=="function"?l(this,c).some((s,i)=>r(s,i,this)):l(this,c).some(s=>{if(typeof n>"u")return s===r;if(typeof r!="string")throw new TypeError("The key must be a string");return s[r]===n})}count(){return l(this,c).length}countBy(r){return typeof r=="function"?l(this,c).reduce((n,s,i)=>{const o=r(s,i,this);return n[o]=n[o]?n[o]+1:1,n},{}):l(this,c).reduce((n,s)=>{if(!["string","number"].includes(typeof s))throw new TypeError("The countBy method expects the items to be strings or numbers");return n[String(s)]=n[String(s)]?n[String(s)]+1:1,n},{})}crossJoin(...r){return new b(Ne.cartesian(l(this,c),...r.map(n=>Array.isArray(n)?n:n.all())))}diff(r){return Array.isArray(r)?new b(l(this,c).filter(n=>!r.includes(n))):new b(l(this,c).filter(n=>!r.contains(n)))}doesntContain(r,n){return typeof r=="function"?l(this,c).every((s,i)=>!r(s,i,this)):l(this,c).every(s=>{if(typeof n>"u")return s!=r;if(typeof r!="string")throw new TypeError("The key must be a string");return s[r]!=n})}dump(){console.log(this.toArray())}duplicates(r){return typeof r=="string"?new b(l(this,c).reduce((n,s,i)=>(l(this,c).slice(i+1).some(o=>o[r]==s[r])&&n.push(s[r]),n),[])):new b(l(this,c).reduce((n,s,i)=>(l(this,c).slice(i+1).some(o=>o==s)&&n.push(s),n),[]))}duplicatesStrict(r){return typeof r=="string"?new b(l(this,c).reduce((n,s,i)=>(l(this,c).slice(i+1).some(o=>o[r]===s[r])&&n.push(s[r]),n),[])):new b(l(this,c).reduce((n,s,i)=>(l(this,c).slice(i+1).some(o=>o===s)&&n.push(s),n),[]))}each(r){let n=0;for(const s of this){if(r(s,n,this)===!1)break;n++}return this}eachSpread(r){for(const n of this){if(!Array.isArray(n)&&!Qe(n))throw new TypeError("The items in the collection must be arrays or collections");const s=Array.isArray(n)?n:n.all();if(r(...s)===!1)break}return this}ensure(r){const n=Array.isArray(r)?r:[r];return l(this,c).forEach((s,i)=>{if(!n.some(o=>typeof o=="string"?typeof s===o:s instanceof o))throw new TypeError(`The item at index ${i} is not of the expected type`)}),this}every(r){return l(this,c).every((n,s)=>r(n,s,this))}except(r){return new b(l(this,c).filter((n,s)=>!r.includes(s)))}filter(r){return new b(l(this,c).filter((n,s)=>typeof r!="function"?!!n:r(n,s,this)))}first(r){return typeof r=="function"?l(this,c).find((n,s)=>r(n,s,this))??null:l(this,c)[0]??null}firstOrFail(r){const n=this.first(r);if(n===null)throw new Error("No matching item found");return n}firstWhere(r,n,s){if(typeof r!="string")throw new TypeError("The key must be a string");if(typeof n>"u")return this.first(i=>!!i[r]);if(typeof s>"u")return l(this,c).find(i=>i[r]==n)??null;if(typeof n!="string")throw new TypeError("The operator must be a string");return s===null?l(this,c).find(i=>i[r]===null)??null:l(this,c).find(i=>{switch(n){case"=":return i[r]==s;case"!=":return i[r]!=s;case">":return i[r]>s;case"<":return i[r]<s;case">=":return i[r]>=s;case"<=":return i[r]<=s;default:throw new Error("Unsupported operator")}})??null}flatMap(r){return new b(l(this,c).flatMap((n,s)=>r(n,s,this)))}forget(r){return l(this,c).splice(r,1),Q(this),this}forPage(r,n){return new b(l(this,c).slice((r-1)*n,r*n))}get(r,n){if(typeof r!="number")throw new TypeError("The key must be a number");return typeof n>"u"?l(this,c)[r]??null:typeof n=="function"?l(this,c)[r]??n():l(this,c)[r]??n}groupBy(r){const n=Array.isArray(r)?r:[r];return l(this,c).reduce((s,i,o)=>{const a=n.map(f=>{if(typeof f=="function"){const h=f(i,o,this);return Array.isArray(h)?h:[h]}return[String(i[f])]});return Ne.cartesian(...a).forEach(f=>{const h=Array.isArray(f)?f.join("."):f;O.set(s,h,[...O.get(s,h,[]),i])}),s},{})}has(r){return l(this,c).length>r}hasAny(r){return r.some(n=>this.has(n))}implode(r,n){if(typeof n>"u"){if(typeof r!="string")throw new TypeError("The glue must be a string");if(!l(this,c).every(s=>["string","number"].includes(typeof s)))throw new TypeError("The items must be strings or numbers");return l(this,c).join(r)}if(typeof r=="function")return l(this,c).map((s,i)=>r(s,i,this)).join(n);if(typeof r!="string")throw new TypeError("The key must be a string");if(!l(this,c).every(s=>typeof s=="object"))throw new TypeError("The items must be objects");return l(this,c).map(s=>s[r]).join(n)}intersect(r){return Array.isArray(r)?new b(l(this,c).filter(n=>r.includes(n))):new b(l(this,c).filter(n=>r.contains(n)))}isEmpty(){return l(this,c).length===0}isNotEmpty(){return!this.isEmpty()}join(r,n){return typeof n>"u"?l(this,c).join(r):l(this,c).slice(0,-1).join(r)+n+l(this,c)[l(this,c).length-1]}keyBy(r){if(typeof r=="function")return l(this,c).reduce((n,s,i)=>(n[r(s,i,this)]=s,n),{});if(typeof r!="string")throw new TypeError("The key must be a string");return l(this,c).reduce((n,s)=>(n[String(s[r])]=s,n),{})}last(r){return typeof r=="function"?l(this,c).toReversed().find((n,s)=>r(n,s,this))??null:l(this,c)[l(this,c).length-1]??null}map(r){return new b(l(this,c).map((n,s)=>r(n,s,this)))}mapInto(r){return new b(l(this,c).map(n=>new r(n)))}mapSpread(r){return new b(l(this,c).map(n=>{if(!Array.isArray(n)&&!Qe(n))throw new TypeError("The items in the collection must be arrays or collections");const s=Array.isArray(n)?n:n.all();return r(...s)}))}mapToGroups(r){return l(this,c).reduce((n,s,i)=>{const o=r(s,i,this);return Object.entries(o).forEach(([a,u])=>{n[a]=n[a]??[],n[a].push(u)}),n},{})}mapWithKeys(r){return l(this,c).reduce((n,s,i)=>{const o=r(s,i,this);return Object.entries(o).forEach(([a,u])=>{n[a]=u}),n},{})}max(r){return typeof r=="string"?l(this,c).reduce((n,s)=>s[r]>n?s[r]:n,l(this,c)[0][r]):l(this,c).reduce((n,s)=>s>n?s:n,l(this,c)[0])}median(r){if(typeof r=="string"){const i=this.pluck(r).sort(),o=Math.floor(i.count()/2);return i.count()%2===0?new b([Xe(i,o-1),Xe(i,o)]).avg():Xe(i,o)}const n=l(this,c).toSorted(),s=Math.floor(n.length/2);return n.length%2===0?new b([n[s-1],n[s]]).avg():n[s]??null}merge(r){return Array.isArray(r)?new b([...l(this,c),...r]):new b([...l(this,c),...r.all()])}min(r){return typeof r=="string"?l(this,c).reduce((n,s)=>s[r]<n?s[r]:n,l(this,c)[0][r]):l(this,c).reduce((n,s)=>s<n?s:n,l(this,c)[0])}mode(r){const n=typeof r=="string"?this.filter(i=>["number","string"].includes(typeof i[r])).countBy(i=>i[r]):this.countBy(),s=Math.max(...Object.values(n));return Object.entries(n).filter(([,i])=>i===s).map(([i])=>i)}nth(r,n=0){return this.chunk(r).filter(s=>s.count()>n).map(s=>s.get(n))}only(r){return new b(l(this,c).filter((n,s)=>r.includes(s)))}pad(r,n=null){const s=l(this,c).slice();for(;s.length<Math.abs(r);)r>0?s.push(n):s.unshift(n);return new b(s)}partition(r){return[this.filter(r),this.reject(r)]}percentage(r,n=2){return Math.round(100*(10^n)*this.filter(r).count()/l(this,c).length)/(10^n)}pipe(r){return r(this)}pipeInto(r){return new r(this)}pipeThrough(r){return r.reduce((n,s)=>{if(!Qe(n)&&!Array.isArray(n))throw new TypeError("The pipeline expects the carry to be a collection or an array");return s(Qe(n)?n:new b(n))},this)}pluck(r){return this.map(n=>n[r])}pop(r=1){const n=l(this,c).splice(l(this,c).length-r,r);return Q(this),r===1?n[0]??null:new b(n)}prepend(r){const n=l(this,c).unshift(r);return Q(this),n}pull(r){const n=l(this,c).splice(r,1)[0]??null;return Q(this),n}push(...r){const n=l(this,c).push(...r);return Q(this),n}put(r,n){return l(this,c).splice(r,1,n),Q(this),this}random(r=1){if(l(this,c).length<r)throw new Error("The collection has fewer items than the requested amount");const n=new b(Ne.sampleSize(l(this,c),r));return r===1?n.first():n}reduce(r,n=null){return l(this,c).reduce((s,i,o)=>r(s,i,o,this),n)}reject(r){return this.filter((n,s)=>!r(n,s,this))}replace(r){const n=l(this,c).slice();return Object.entries(r).forEach(([s,i])=>{n[parseInt(s)]=i}),new b(n)}reverse(){return new b(l(this,c).toReversed())}search(r,n=!1){if(typeof r!="function"||l(this,c).every(i=>typeof i=="function")){const i=l(this,c).findIndex(o=>n?o===r:o==r);return i===-1?!1:i}const s=l(this,c).findIndex((i,o)=>r(i,o,this));return s===-1?!1:s}select(r){return this.map(n=>r.reduce((s,i)=>(s[i]=n[i],s),{}))}shift(r=1){const n=l(this,c).splice(0,r);return Q(this),r===1?n[0]??null:new b(n)}shuffle(){return new b(Ne.shuffle(l(this,c)))}skip(r){return new b(l(this,c).slice(r))}skipUntil(r){return typeof r=="function"?this.skip(l(this,c).findIndex((n,s)=>r(n,s,this))):this.skip(l(this,c).findIndex(n=>n==r))}skipWhile(r){return typeof r=="function"?this.skip(l(this,c).findIndex((n,s)=>!r(n,s,this))):this.skip(l(this,c).findIndex(n=>n!=r))}slice(r,n){return typeof n>"u"?new b(l(this,c).slice(r)):typeof r>"u"?new b(l(this,c).slice(0,n)):new b(l(this,c).slice(r,r+n))}sliding(r,n=1){const s=[];for(let i=0;i<l(this,c).length&&!(i+r>l(this,c).length);i+=n)s.push(l(this,c).slice(i,i+r));return new b(s.map(i=>new b(i)))}sole(r,n){if(typeof r=="function"){const s=this.filter(r);return s.count()===1?s.first():null}if(typeof r=="string"){const s=this.where(r,n);return s.count()===1?s.first():null}return l(this,c).length===1?this.first():null}some(...r){return this.contains(...r)}sort(r){return new b(l(this,c).toSorted(r))}sortBy(r,n="asc"){if(typeof r=="function"){let s=-1;return new b(l(this,c).toSorted((i,o)=>(s++,r(i,s,this)-r(o,s,this))))}if(Array.isArray(r))return r.every(s=>Array.isArray(s))?new b(l(this,c).toSorted((s,i)=>{for(const[o,a]of r){const u=s[o]??-1/0,f=i[o]??-1/0;if(u>f)return a==="asc"?1:-1;if(u<f)return a==="asc"?-1:1}return 0})):new b(l(this,c).toSorted((s,i)=>{for(const o of r){const a=o(s,i);if(a!==0)return a}return 0}));if(typeof r!="string")throw new TypeError("The key must be a string");return new b(l(this,c).toSorted((s,i)=>{const o=s[r]??-1/0,a=i[r]??-1/0;return o>a?n==="asc"?1:-1:o<a?n==="asc"?-1:1:0}))}sortDesc(){return this.sort((r,n)=>r>n?-1:r<n?1:0)}splice(r,n,...s){const i=n===void 0?l(this,c).length:n,o=l(this,c).splice(r,i,...s);return Q(this),new b(o)}split(r){const n=[];for(let s=0;s<r;s++){const i=l(this,c).slice(n.flat().length,n.flat().length+Math.min(Math.ceil((l(this,c).length-n.flat().length)/(r-s)),l(this,c).length-n.flat().length));n.push(new b(i))}return new b(n)}splitIn(r){const n=Math.ceil(l(this,c).length/r);return this.chunk(n)}sum(r){return typeof r=="string"?l(this,c).reduce((n,s)=>{const i=s[r];if(typeof i!="number")throw new TypeError("The items must be numbers");return n+i},0):l(this,c).reduce((n,s)=>{if(typeof s!="number")throw new TypeError("The items must be numbers");return n+s},0)}take(r){return new b(l(this,c).slice(0,r))}takeUntil(r){return typeof r=="function"?this.take(l(this,c).findIndex((n,s)=>r(n,s,this))):this.take(l(this,c).findIndex(n=>n==r))}takeWhile(r){return typeof r=="function"?this.take(l(this,c).findIndex((n,s)=>!r(n,s,this))):this.take(l(this,c).findIndex(n=>n!=r))}tap(r){return r(this),this}toArray(){const r=n=>typeof n!="object"?n:Array.isArray(n)?n.map(r):n&&"toArray"in n&&typeof n.toArray=="function"?n.toArray():n&&"toJson"in n&&typeof n.toJson=="function"?n.toJson():n;return l(this,c).map(r)}toJson(){return JSON.stringify(l(this,c))}transform(r){for(const[n,s]of l(this,c).entries())l(this,c).splice(n,1,r(s,n,this));return Q(this),this}unique(r){return typeof r=="string"?new b([...new Set(l(this,c).map(n=>n[r]))].map(n=>l(this,c).find(s=>s[r]==n))):new b([...new Set(l(this,c))])}uniqueStrict(r){return typeof r=="string"?new b([...new Set(l(this,c).map(n=>n[r]))].map(n=>l(this,c).find(s=>s[r]===n))):new b([...new Set(l(this,c))])}unless(r,n,s){return r?typeof s=="function"&&s(this):n(this),this}unlessEmpty(r,n){return this.whenNotEmpty(r,n)}unlessNotEmpty(r,n){return this.whenEmpty(r,n)}value(r){return l(this,c).length===0?null:l(this,c)[0][r]}when(r,n,s){return r?n(this):typeof s=="function"&&s(this),this}whenEmpty(r,n){return this.isEmpty()?r(this):typeof n=="function"&&n(this),this}whenNotEmpty(r,n){return this.isNotEmpty()?r(this):typeof n=="function"&&n(this),this}where(r,n,s){if(typeof s>"u")return new b(l(this,c).filter(o=>o[r]==n));if(typeof n!="string")throw new TypeError("The operator must be a string");if(s===null)return new b(l(this,c).filter(o=>o[r]===null));const i={"=":o=>o[r]==s,"!=":o=>o[r]!=s,">":o=>o[r]>s,"<":o=>o[r]<s,">=":o=>o[r]>=s,"<=":o=>o[r]<=s};if(!(n in i))throw new Error("Unsupported operator");return new b(l(this,c).filter((o,a)=>i[n](o,a,this)))}whereStrict(r,n,s){if(typeof s>"u")return new b(l(this,c).filter(o=>o[r]===n));if(typeof n!="string")throw new TypeError("The operator must be a string");if(s===null)return new b(l(this,c).filter(o=>o[r]===null));const i={"=":o=>o[r]===s,"!=":o=>o[r]!==s,">":o=>o[r]>s,"<":o=>o[r]<s,">=":o=>o[r]>=s,"<=":o=>o[r]<=s};if(!(n in i))throw new Error("Unsupported operator");return new b(l(this,c).filter((o,a)=>i[n](o,a,this)))}whereBetween(r,[n,s]){return new b(l(this,c).filter(i=>i[r]>=n&&i[r]<=s))}whereNotBetween(r,[n,s]){return new b(l(this,c).filter(i=>i[r]<n||i[r]>s))}whereIn(r,n){return new b(l(this,c).filter(s=>n.includes(s[r])))}whereNotIn(r,n){return new b(l(this,c).filter(s=>!n.includes(s[r])))}whereNull(r){return new b(l(this,c).filter(n=>n[r]===null))}whereNotNull(r){return new b(l(this,c).filter(n=>n[r]!==null))}whereInstanceOf(r){return new b(l(this,c).filter(n=>n instanceof r))}zip(r){return Array.isArray(r)?new b(l(this,c).map((n,s)=>[n,r[s]??null])):new b(l(this,c).map((n,s)=>[n,r.get(s)]))}};c=new WeakMap;let oe=b;function rg(e,t){return new class extends e{constructor(){return super(),new Proxy(this,{get(r,n){if(Reflect.has(r,n))return Reflect.get(r,n);const s=r.getFacadeAccessor(),i=typeof s=="string"?t.make(s):s;if(!i)throw new Error(`Service ${String(s)} does not exist.`);return Reflect.get(i,n,i)}})}}}class Ir extends _t{constructor(r){super();D(this,"locked",[]);this.bag=r,Object.freeze(this.bag)}get(r,n){return O.get(this.bag,r,n)}set(r,n){if(this.locked.some(s=>r.startsWith(s)))throw new Error(`Cannot set a locked path "${r}"`);if(typeof n=="object"&&n!==null&&this.locked.some(s=>O.has(n,s.slice(r.length+1))))throw new Error(`Cannot set a path "${r}" that would override a locked path`);if(r==="."){if(this.locked.length)throw new Error("Cannot set the root path when there are locked paths");if(typeof n!="object"||n===null)throw new TypeError("Value must be an object");this.bag=we(this.bag,()=>n),this.emit("change",{path:r,value:n,type:"set",source:this});return}this.bag=we(this.bag,s=>{O.set(s,r,n)}),this.emit("change",{path:r,value:n,type:"set",source:this})}merge(r,n){if(typeof n!="object"||n===null)throw new TypeError("Value must be an object");if(r==="."){if(this.locked.some(i=>O.has(n,i)))throw new Error(`Cannot merge a path "${r}" that would override a locked path`);this.bag=we(this.bag,i=>({...i,...n})),this.emit("change",{path:r,value:n,type:"merge",source:this});return}const s=this.get(r);if(typeof s=="object"&&s!==null)return this.set(r,{...s,...n});if(s===null||typeof s>"u")return this.set(r,n);throw new Error(`Cannot merge a non-object path "${r}"`)}has(r){return O.has(this.bag,r)}delete(r){if(this.locked.some(n=>r.startsWith(n)))throw new Error(`Cannot delete a locked path "${r}"`);this.bag=we(this.bag,n=>{O.unset(n,r)}),this.emit("change",{path:r,value:null,type:"delete",source:this})}lock(r){if(!this.has(r))throw new Error(`Cannot lock a non-existing path "${r}"`);this.locked.push(r)}clone(){return new Ir(this.bag)}all(){return this.bag}isEmpty(){return O.isEmpty(this.bag)}}var Gn,Vn;class ng extends(Vn=Error,Gn=Symbol.toStringTag,Vn){constructor(r,n){super(`[Luminix] Cannot create reducer '${r}' on '${n}' as it is a reserved property`);D(this,Gn,"ReducerOverrideException")}}function sg(e){return class extends e{constructor(...r){super(...r);D(this,"_reducers",{});return new Proxy(this,{get(n,s,i){return typeof s=="symbol"||s in n?Reflect.get(n,s,i):(o,...a)=>{const{[s]:u=new oe}=n._reducers;return W(o)?we(o,f=>u.sortBy("priority").reduce((h,p)=>p.callback(h,...a),f)):u.sortBy("priority").reduce((f,h)=>h.callback(f,...a),o)}}})}reducer(r,n,s=10){if(r in this)throw new ng(r,this);return this._reducers[r]||(this._reducers[r]=new oe),this._reducers[r].push({callback:n,priority:s}),()=>this.removeReducer(r,n)}removeReducer(r,n){const s=this._reducers[r].search(i=>i.callback===n);s!==!1&&this._reducers[r].pull(s)}getReducer(r){return this._reducers[r]||(this._reducers[r]=new oe),this._reducers[r]}hasReducer(r){return!!this._reducers[r]&&this._reducers[r].count()>0}clearReducer(r){this._reducers[r].splice(0,this._reducers[r].count())}flushReducers(){Object.values(this._reducers).forEach(r=>r.splice(0,r.count()))}}}class ig{constructor(t){this.app=t}}function og(e){return e instanceof lt&&e.unprocessableEntity()&&typeof e.json("message")=="string"&&typeof e.json("errors")=="object"&&e.json("errors")!==null&&Object.values(e.json("errors")).every(t=>Array.isArray(t)&&t.every(r=>typeof r=="string"))}class ag{after(t,r){return t.includes(r)?t.split(r).slice(1).join(""):""}afterLast(t,r){return t.includes(r)?t.split(r).slice(-1).join(""):""}before(t,r){return t.includes(r)?t.split(r).slice(0,1).join(""):""}beforeLast(t,r){return t.includes(r)?t.split(r).slice(0,-1).join(""):""}camel(t){return Pl(t)}lcfirst(t){return up(t)}lower(t){return t.toLowerCase()}kebab(t){return ap(t)}padBoth(t,r,n){return Ip(t,r,n)}padLeft(t,r,n){return jp(t,r,n)}padRight(t,r,n){return Fp(t,r,n)}human(t){return Ys(Bn(t))}studly(t){return at(this.camel(t))}snake(t){return Jp(t)}title(t){return Bn(t)}trim(t,r){return Xp(t,r)}ucfirst(t){return at(t)}upper(t){return t.toUpperCase()}}const be=new(ge(ag));class ug{parse(t){return t instanceof Date?t:new Date(t)}toDateTimeLocal(t){const r=this.parse(t),n=`${r.getFullYear()}`,s=`${be.padLeft(`${r.getMonth()+1}`,2,"0")}`,i=`${be.padLeft(`${r.getDate()}`,2,"0")}`,o=`${be.padLeft(`${r.getHours()}`,2,"0")}`,a=`${be.padLeft(`${r.getMinutes()}`,2,"0")}`;return`${n}-${s}-${i}T${o}:${a}`}}const fg=new(ge(ug));class cg{throttle(t,r,n){return Vp(t,r,n)}debounce(t,r,n){return Ri(t,r,n)}}const lg=new(ge(cg));class hg{fromObject(t){return O.toQuery(t)}toObject(t){return O.fromQuery(t)}merge(...t){const r=new URLSearchParams;return t.forEach(n=>{(typeof n=="string"?new URLSearchParams(be.after(n,"?")):n).forEach((i,o)=>{r.set(o,i)})}),r}}const dg=new(ge(hg));exports.Application=Yp;exports.Arr=Ne;exports.Client=eg;exports.Collection=oe;exports.DateTime=fg;exports.EventSource=_t;exports.Func=lg;exports.Macroable=ge;exports.MakeFacade=rg;exports.Obj=O;exports.PropertyBag=Ir;exports.Query=dg;exports.Reducible=sg;exports.Request=ye;exports.Response=lt;exports.ServiceProvider=ig;exports.Str=be;exports.axios=I;exports.immer=Da;exports.isValidationError=og;exports.reader=Os;
|
package/dist/support.js
CHANGED
|
@@ -4227,6 +4227,14 @@ class Sm extends yr {
|
|
|
4227
4227
|
singleton: !0
|
|
4228
4228
|
};
|
|
4229
4229
|
}
|
|
4230
|
+
instance(r, n) {
|
|
4231
|
+
if (typeof r != "string")
|
|
4232
|
+
throw new TypeError("Service name must be a string.");
|
|
4233
|
+
this.loaders[r] = {
|
|
4234
|
+
loader: () => n,
|
|
4235
|
+
singleton: !0
|
|
4236
|
+
};
|
|
4237
|
+
}
|
|
4230
4238
|
make(r) {
|
|
4231
4239
|
const n = this.loaders[r];
|
|
4232
4240
|
if (!n)
|
package/package.json
CHANGED
|
@@ -22,6 +22,7 @@ export default class Application<TContainers extends Record<string, any> = Recor
|
|
|
22
22
|
loadConfiguration(): void;
|
|
23
23
|
bind<K extends keyof TContainers>(abstract: K, concrete: () => TContainers[K]): void;
|
|
24
24
|
singleton<K extends keyof TContainers>(abstract: K, concrete: () => TContainers[K]): void;
|
|
25
|
+
instance<K extends keyof TContainers>(abstract: K, instance: TContainers[K]): void;
|
|
25
26
|
make<K extends keyof TContainers & string>(abstract: K): TContainers[K];
|
|
26
27
|
withConfiguration(configuration: Record<string, any>): this;
|
|
27
28
|
withProviders(providers: (typeof ServiceProvider)[]): this;
|