Files
2024-11-07 17:16:20 +02:00

7 lines
44 KiB
JavaScript
Executable File

function pt(e,t){return function(){return e.apply(t,arguments)}}const{toString:tn}=Object.prototype,{getPrototypeOf:Ie}=Object,we=(e=>t=>{const n=tn.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),F=e=>(e=e.toLowerCase(),t=>we(t)===e),Ee=e=>t=>typeof t===e,{isArray:V}=Array,Z=Ee("undefined");function nn(e){return e!==null&&!Z(e)&&e.constructor!==null&&!Z(e.constructor)&&C(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ht=F("ArrayBuffer");function rn(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ht(e.buffer),t}const sn=Ee("string"),C=Ee("function"),mt=Ee("number"),be=e=>e!==null&&typeof e=="object",on=e=>e===!0||e===!1,ce=e=>{if(we(e)!=="object")return!1;const t=Ie(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},an=F("Date"),ln=F("File"),un=F("Blob"),cn=F("FileList"),fn=e=>be(e)&&C(e.pipe),dn=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||C(e.append)&&((t=we(e))==="formdata"||t==="object"&&C(e.toString)&&e.toString()==="[object FormData]"))},pn=F("URLSearchParams"),[hn,mn,yn,_n]=["ReadableStream","Request","Response","Headers"].map(F),wn=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function te(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),V(e))for(r=0,s=e.length;r<s;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let l;for(r=0;r<i;r++)l=o[r],t.call(null,e[l],l,e)}}function yt(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,s;for(;r-- >0;)if(s=n[r],t===s.toLowerCase())return s;return null}const q=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,_t=e=>!Z(e)&&e!==q;function Pe(){const{caseless:e}=_t(this)&&this||{},t={},n=(r,s)=>{const o=e&&yt(t,s)||s;ce(t[o])&&ce(r)?t[o]=Pe(t[o],r):ce(r)?t[o]=Pe({},r):V(r)?t[o]=r.slice():t[o]=r};for(let r=0,s=arguments.length;r<s;r++)arguments[r]&&te(arguments[r],n);return t}const En=(e,t,n,{allOwnKeys:r}={})=>(te(t,(s,o)=>{n&&C(s)?e[o]=pt(s,n):e[o]=s},{allOwnKeys:r}),e),bn=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),gn=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Rn=(e,t,n,r)=>{let s,o,i;const l={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)i=s[o],(!r||r(i,e,t))&&!l[i]&&(t[i]=e[i],l[i]=!0);e=n!==!1&&Ie(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Sn=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},vn=e=>{if(!e)return null;if(V(e))return e;let t=e.length;if(!mt(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Tn=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ie(Uint8Array)),On=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=r.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},An=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},xn=F("HTMLFormElement"),Cn=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),Ye=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Nn=F("RegExp"),wt=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};te(n,(s,o)=>{let i;(i=t(s,o,e))!==!1&&(r[o]=i||s)}),Object.defineProperties(e,r)},Pn=e=>{wt(e,(t,n)=>{if(C(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(C(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Fn=(e,t)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return V(e)?r(e):r(String(e).split(t)),n},Dn=()=>{},Ln=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Oe="abcdefghijklmnopqrstuvwxyz",Qe="0123456789",Et={DIGIT:Qe,ALPHA:Oe,ALPHA_DIGIT:Oe+Oe.toUpperCase()+Qe},Bn=(e=16,t=Et.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function kn(e){return!!(e&&C(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Un=e=>{const t=new Array(10),n=(r,s)=>{if(be(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[s]=r;const o=V(r)?[]:{};return te(r,(i,l)=>{const f=n(i,s+1);!Z(f)&&(o[l]=f)}),t[s]=void 0,o}}return r};return n(e,0)},qn=F("AsyncFunction"),jn=e=>e&&(be(e)||C(e))&&C(e.then)&&C(e.catch),bt=((e,t)=>e?setImmediate:t?((n,r)=>(q.addEventListener("message",({source:s,data:o})=>{s===q&&o===n&&r.length&&r.shift()()},!1),s=>{r.push(s),q.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",C(q.postMessage)),In=typeof queueMicrotask<"u"?queueMicrotask.bind(q):typeof process<"u"&&process.nextTick||bt,a={isArray:V,isArrayBuffer:ht,isBuffer:nn,isFormData:dn,isArrayBufferView:rn,isString:sn,isNumber:mt,isBoolean:on,isObject:be,isPlainObject:ce,isReadableStream:hn,isRequest:mn,isResponse:yn,isHeaders:_n,isUndefined:Z,isDate:an,isFile:ln,isBlob:un,isRegExp:Nn,isFunction:C,isStream:fn,isURLSearchParams:pn,isTypedArray:Tn,isFileList:cn,forEach:te,merge:Pe,extend:En,trim:wn,stripBOM:bn,inherits:gn,toFlatObject:Rn,kindOf:we,kindOfTest:F,endsWith:Sn,toArray:vn,forEachEntry:On,matchAll:An,isHTMLForm:xn,hasOwnProperty:Ye,hasOwnProp:Ye,reduceDescriptors:wt,freezeMethods:Pn,toObjectSet:Fn,toCamelCase:Cn,noop:Dn,toFiniteNumber:Ln,findKey:yt,global:q,isContextDefined:_t,ALPHABET:Et,generateString:Bn,isSpecCompliantForm:kn,toJSONObject:Un,isAsyncFn:qn,isThenable:jn,setImmediate:bt,asap:In};function y(e,t,n,r,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),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s,this.status=s.status?s.status:null)}a.inherits(y,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:a.toJSONObject(this.config),code:this.code,status:this.status}}});const gt=y.prototype,Rt={};["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=>{Rt[e]={value:e}});Object.defineProperties(y,Rt);Object.defineProperty(gt,"isAxiosError",{value:!0});y.from=(e,t,n,r,s,o)=>{const i=Object.create(gt);return a.toFlatObject(e,i,function(f){return f!==Error.prototype},l=>l!=="isAxiosError"),y.call(i,e.message,t,n,r,s),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const Hn=null;function Fe(e){return a.isPlainObject(e)||a.isArray(e)}function St(e){return a.endsWith(e,"[]")?e.slice(0,-2):e}function Ze(e,t,n){return e?e.concat(t).map(function(s,o){return s=St(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function Mn(e){return a.isArray(e)&&!e.some(Fe)}const zn=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function ge(e,t,n){if(!a.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=a.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,h){return!a.isUndefined(h[m])});const r=n.metaTokens,s=n.visitor||u,o=n.dots,i=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&a.isSpecCompliantForm(t);if(!a.isFunction(s))throw new TypeError("visitor must be a function");function c(p){if(p===null)return"";if(a.isDate(p))return p.toISOString();if(!f&&a.isBlob(p))throw new y("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(p)||a.isTypedArray(p)?f&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function u(p,m,h){let E=p;if(p&&!h&&typeof p=="object"){if(a.endsWith(m,"{}"))m=r?m:m.slice(0,-2),p=JSON.stringify(p);else if(a.isArray(p)&&Mn(p)||(a.isFileList(p)||a.endsWith(m,"[]"))&&(E=a.toArray(p)))return m=St(m),E.forEach(function(R,D){!(a.isUndefined(R)||R===null)&&t.append(i===!0?Ze([m],D,o):i===null?m:m+"[]",c(R))}),!1}return Fe(p)?!0:(t.append(Ze(h,m,o),c(p)),!1)}const d=[],_=Object.assign(zn,{defaultVisitor:u,convertValue:c,isVisitable:Fe});function w(p,m){if(!a.isUndefined(p)){if(d.indexOf(p)!==-1)throw Error("Circular reference detected in "+m.join("."));d.push(p),a.forEach(p,function(E,g){(!(a.isUndefined(E)||E===null)&&s.call(t,E,a.isString(g)?g.trim():g,m,_))===!0&&w(E,m?m.concat(g):[g])}),d.pop()}}if(!a.isObject(e))throw new TypeError("data must be an object");return w(e),t}function et(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function He(e,t){this._pairs=[],e&&ge(e,this,t)}const vt=He.prototype;vt.append=function(t,n){this._pairs.push([t,n])};vt.toString=function(t){const n=t?function(r){return t.call(this,r,et)}:et;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function Jn(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Tt(e,t,n){if(!t)return e;const r=n&&n.encode||Jn,s=n&&n.serialize;let o;if(s?o=s(t,n):o=a.isURLSearchParams(t)?t.toString():new He(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class tt{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){a.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Ot={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Vn=typeof URLSearchParams<"u"?URLSearchParams:He,Wn=typeof FormData<"u"?FormData:null,Kn=typeof Blob<"u"?Blob:null,$n={isBrowser:!0,classes:{URLSearchParams:Vn,FormData:Wn,Blob:Kn},protocols:["http","https","file","blob","url","data"]},Me=typeof window<"u"&&typeof document<"u",De=typeof navigator=="object"&&navigator||void 0,Xn=Me&&(!De||["ReactNative","NativeScript","NS"].indexOf(De.product)<0),Gn=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Yn=Me&&window.location.href||"http://localhost",Qn=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Me,hasStandardBrowserEnv:Xn,hasStandardBrowserWebWorkerEnv:Gn,navigator:De,origin:Yn},Symbol.toStringTag,{value:"Module"})),O={...Qn,...$n};function Zn(e,t){return ge(e,new O.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,o){return O.isNode&&a.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function er(e){return a.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function tr(e){const t={},n=Object.keys(e);let r;const s=n.length;let o;for(r=0;r<s;r++)o=n[r],t[o]=e[o];return t}function At(e){function t(n,r,s,o){let i=n[o++];if(i==="__proto__")return!0;const l=Number.isFinite(+i),f=o>=n.length;return i=!i&&a.isArray(s)?s.length:i,f?(a.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!l):((!s[i]||!a.isObject(s[i]))&&(s[i]=[]),t(n,r,s[i],o)&&a.isArray(s[i])&&(s[i]=tr(s[i])),!l)}if(a.isFormData(e)&&a.isFunction(e.entries)){const n={};return a.forEachEntry(e,(r,s)=>{t(er(r),s,n,0)}),n}return null}function nr(e,t,n){if(a.isString(e))try{return(t||JSON.parse)(e),a.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(e)}const ne={transitional:Ot,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=a.isObject(t);if(o&&a.isHTMLForm(t)&&(t=new FormData(t)),a.isFormData(t))return s?JSON.stringify(At(t)):t;if(a.isArrayBuffer(t)||a.isBuffer(t)||a.isStream(t)||a.isFile(t)||a.isBlob(t)||a.isReadableStream(t))return t;if(a.isArrayBufferView(t))return t.buffer;if(a.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Zn(t,this.formSerializer).toString();if((l=a.isFileList(t))||r.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return ge(l?{"files[]":t}:t,f&&new f,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),nr(t)):t}],transformResponse:[function(t){const n=this.transitional||ne.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(a.isResponse(t)||a.isReadableStream(t))return t;if(t&&a.isString(t)&&(r&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(l){if(i)throw l.name==="SyntaxError"?y.from(l,y.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:O.classes.FormData,Blob:O.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};a.forEach(["delete","get","head","post","put","patch"],e=>{ne.headers[e]={}});const rr=a.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"]),sr=e=>{const t={};let n,r,s;return e&&e.split(`
`).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),r=i.substring(s+1).trim(),!(!n||t[n]&&rr[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},nt=Symbol("internals");function K(e){return e&&String(e).trim().toLowerCase()}function fe(e){return e===!1||e==null?e:a.isArray(e)?e.map(fe):String(e)}function or(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const ir=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ae(e,t,n,r,s){if(a.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!a.isString(t)){if(a.isString(r))return t.indexOf(r)!==-1;if(a.isRegExp(r))return r.test(t)}}function ar(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function lr(e,t){const n=a.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,o,i){return this[r].call(this,t,s,o,i)},configurable:!0})})}class A{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function o(l,f,c){const u=K(f);if(!u)throw new Error("header name must be a non-empty string");const d=a.findKey(s,u);(!d||s[d]===void 0||c===!0||c===void 0&&s[d]!==!1)&&(s[d||f]=fe(l))}const i=(l,f)=>a.forEach(l,(c,u)=>o(c,u,f));if(a.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(a.isString(t)&&(t=t.trim())&&!ir(t))i(sr(t),n);else if(a.isHeaders(t))for(const[l,f]of t.entries())o(f,l,r);else t!=null&&o(n,t,r);return this}get(t,n){if(t=K(t),t){const r=a.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return or(s);if(a.isFunction(n))return n.call(this,s,r);if(a.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=K(t),t){const r=a.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Ae(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function o(i){if(i=K(i),i){const l=a.findKey(r,i);l&&(!n||Ae(r,r[l],l,n))&&(delete r[l],s=!0)}}return a.isArray(t)?t.forEach(o):o(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const o=n[r];(!t||Ae(this,this[o],o,t,!0))&&(delete this[o],s=!0)}return s}normalize(t){const n=this,r={};return a.forEach(this,(s,o)=>{const i=a.findKey(r,o);if(i){n[i]=fe(s),delete n[o];return}const l=t?ar(o):String(o).trim();l!==o&&delete n[o],n[l]=fe(s),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return a.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&a.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[nt]=this[nt]={accessors:{}}).accessors,s=this.prototype;function o(i){const l=K(i);r[l]||(lr(s,i),r[l]=!0)}return a.isArray(t)?t.forEach(o):o(t),this}}A.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);a.reduceDescriptors(A.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});a.freezeMethods(A);function xe(e,t){const n=this||ne,r=t||n,s=A.from(r.headers);let o=r.data;return a.forEach(e,function(l){o=l.call(n,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function xt(e){return!!(e&&e.__CANCEL__)}function W(e,t,n){y.call(this,e??"canceled",y.ERR_CANCELED,t,n),this.name="CanceledError"}a.inherits(W,y,{__CANCEL__:!0});function Ct(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new y("Request failed with status code "+n.status,[y.ERR_BAD_REQUEST,y.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function ur(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function cr(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,o=0,i;return t=t!==void 0?t:1e3,function(f){const c=Date.now(),u=r[o];i||(i=c),n[s]=f,r[s]=c;let d=o,_=0;for(;d!==s;)_+=n[d++],d=d%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),c-i<t)return;const w=u&&c-u;return w?Math.round(_*1e3/w):void 0}}function fr(e,t){let n=0,r=1e3/t,s,o;const i=(c,u=Date.now())=>{n=u,s=null,o&&(clearTimeout(o),o=null),e.apply(null,c)};return[(...c)=>{const u=Date.now(),d=u-n;d>=r?i(c,u):(s=c,o||(o=setTimeout(()=>{o=null,i(s)},r-d)))},()=>s&&i(s)]}const de=(e,t,n=3)=>{let r=0;const s=cr(50,250);return fr(o=>{const i=o.loaded,l=o.lengthComputable?o.total:void 0,f=i-r,c=s(f),u=i<=l;r=i;const d={loaded:i,total:l,progress:l?i/l:void 0,bytes:f,rate:c||void 0,estimated:c&&l&&u?(l-i)/c:void 0,event:o,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(d)},n)},rt=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},st=e=>(...t)=>a.asap(()=>e(...t)),dr=O.hasStandardBrowserEnv?function(){const t=O.navigator&&/(msie|trident)/i.test(O.navigator.userAgent),n=document.createElement("a");let r;function s(o){let i=o;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=s(window.location.href),function(i){const l=a.isString(i)?s(i):i;return l.protocol===r.protocol&&l.host===r.host}}():function(){return function(){return!0}}(),pr=O.hasStandardBrowserEnv?{write(e,t,n,r,s,o){const i=[e+"="+encodeURIComponent(t)];a.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),a.isString(r)&&i.push("path="+r),a.isString(s)&&i.push("domain="+s),o===!0&&i.push("secure"),document.cookie=i.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 hr(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function mr(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Nt(e,t){return e&&!hr(t)?mr(e,t):t}const ot=e=>e instanceof A?{...e}:e;function I(e,t){t=t||{};const n={};function r(c,u,d){return a.isPlainObject(c)&&a.isPlainObject(u)?a.merge.call({caseless:d},c,u):a.isPlainObject(u)?a.merge({},u):a.isArray(u)?u.slice():u}function s(c,u,d){if(a.isUndefined(u)){if(!a.isUndefined(c))return r(void 0,c,d)}else return r(c,u,d)}function o(c,u){if(!a.isUndefined(u))return r(void 0,u)}function i(c,u){if(a.isUndefined(u)){if(!a.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function l(c,u,d){if(d in t)return r(c,u);if(d in e)return r(void 0,c)}const f={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:l,headers:(c,u)=>s(ot(c),ot(u),!0)};return a.forEach(Object.keys(Object.assign({},e,t)),function(u){const d=f[u]||s,_=d(e[u],t[u],u);a.isUndefined(_)&&d!==l||(n[u]=_)}),n}const Pt=e=>{const t=I({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:o,headers:i,auth:l}=t;t.headers=i=A.from(i),t.url=Tt(Nt(t.baseURL,t.url),e.params,e.paramsSerializer),l&&i.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let f;if(a.isFormData(n)){if(O.hasStandardBrowserEnv||O.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((f=i.getContentType())!==!1){const[c,...u]=f?f.split(";").map(d=>d.trim()).filter(Boolean):[];i.setContentType([c||"multipart/form-data",...u].join("; "))}}if(O.hasStandardBrowserEnv&&(r&&a.isFunction(r)&&(r=r(t)),r||r!==!1&&dr(t.url))){const c=s&&o&&pr.read(o);c&&i.set(s,c)}return t},yr=typeof XMLHttpRequest<"u",_r=yr&&function(e){return new Promise(function(n,r){const s=Pt(e);let o=s.data;const i=A.from(s.headers).normalize();let{responseType:l,onUploadProgress:f,onDownloadProgress:c}=s,u,d,_,w,p;function m(){w&&w(),p&&p(),s.cancelToken&&s.cancelToken.unsubscribe(u),s.signal&&s.signal.removeEventListener("abort",u)}let h=new XMLHttpRequest;h.open(s.method.toUpperCase(),s.url,!0),h.timeout=s.timeout;function E(){if(!h)return;const R=A.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders()),v={data:!l||l==="text"||l==="json"?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:R,config:e,request:h};Ct(function(U){n(U),m()},function(U){r(U),m()},v),h=null}"onloadend"in h?h.onloadend=E:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)||setTimeout(E)},h.onabort=function(){h&&(r(new y("Request aborted",y.ECONNABORTED,e,h)),h=null)},h.onerror=function(){r(new y("Network Error",y.ERR_NETWORK,e,h)),h=null},h.ontimeout=function(){let D=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const v=s.transitional||Ot;s.timeoutErrorMessage&&(D=s.timeoutErrorMessage),r(new y(D,v.clarifyTimeoutError?y.ETIMEDOUT:y.ECONNABORTED,e,h)),h=null},o===void 0&&i.setContentType(null),"setRequestHeader"in h&&a.forEach(i.toJSON(),function(D,v){h.setRequestHeader(v,D)}),a.isUndefined(s.withCredentials)||(h.withCredentials=!!s.withCredentials),l&&l!=="json"&&(h.responseType=s.responseType),c&&([_,p]=de(c,!0),h.addEventListener("progress",_)),f&&h.upload&&([d,w]=de(f),h.upload.addEventListener("progress",d),h.upload.addEventListener("loadend",w)),(s.cancelToken||s.signal)&&(u=R=>{h&&(r(!R||R.type?new W(null,e,h):R),h.abort(),h=null)},s.cancelToken&&s.cancelToken.subscribe(u),s.signal&&(s.signal.aborted?u():s.signal.addEventListener("abort",u)));const g=ur(s.url);if(g&&O.protocols.indexOf(g)===-1){r(new y("Unsupported protocol "+g+":",y.ERR_BAD_REQUEST,e));return}h.send(o||null)})},wr=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,s;const o=function(c){if(!s){s=!0,l();const u=c instanceof Error?c:this.reason;r.abort(u instanceof y?u:new W(u instanceof Error?u.message:u))}};let i=t&&setTimeout(()=>{i=null,o(new y(`timeout ${t} of ms exceeded`,y.ETIMEDOUT))},t);const l=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(o):c.removeEventListener("abort",o)}),e=null)};e.forEach(c=>c.addEventListener("abort",o));const{signal:f}=r;return f.unsubscribe=()=>a.asap(l),f}},Er=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,s;for(;r<n;)s=r+t,yield e.slice(r,s),r=s},br=async function*(e,t){for await(const n of gr(e))yield*Er(n,t)},gr=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},it=(e,t,n,r)=>{const s=br(e,t);let o=0,i,l=f=>{i||(i=!0,r&&r(f))};return new ReadableStream({async pull(f){try{const{done:c,value:u}=await s.next();if(c){l(),f.close();return}let d=u.byteLength;if(n){let _=o+=d;n(_)}f.enqueue(new Uint8Array(u))}catch(c){throw l(c),c}},cancel(f){return l(f),s.return()}},{highWaterMark:2})},Re=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Ft=Re&&typeof ReadableStream=="function",Rr=Re&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Dt=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Sr=Ft&&Dt(()=>{let e=!1;const t=new Request(O.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),at=64*1024,Le=Ft&&Dt(()=>a.isReadableStream(new Response("").body)),pe={stream:Le&&(e=>e.body)};Re&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!pe[t]&&(pe[t]=a.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new y(`Response type '${t}' is not supported`,y.ERR_NOT_SUPPORT,r)})})})(new Response);const vr=async e=>{if(e==null)return 0;if(a.isBlob(e))return e.size;if(a.isSpecCompliantForm(e))return(await new Request(O.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(a.isArrayBufferView(e)||a.isArrayBuffer(e))return e.byteLength;if(a.isURLSearchParams(e)&&(e=e+""),a.isString(e))return(await Rr(e)).byteLength},Tr=async(e,t)=>{const n=a.toFiniteNumber(e.getContentLength());return n??vr(t)},Or=Re&&(async e=>{let{url:t,method:n,data:r,signal:s,cancelToken:o,timeout:i,onDownloadProgress:l,onUploadProgress:f,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:_}=Pt(e);c=c?(c+"").toLowerCase():"text";let w=wr([s,o&&o.toAbortSignal()],i),p;const m=w&&w.unsubscribe&&(()=>{w.unsubscribe()});let h;try{if(f&&Sr&&n!=="get"&&n!=="head"&&(h=await Tr(u,r))!==0){let v=new Request(t,{method:"POST",body:r,duplex:"half"}),L;if(a.isFormData(r)&&(L=v.headers.get("content-type"))&&u.setContentType(L),v.body){const[U,ae]=rt(h,de(st(f)));r=it(v.body,at,U,ae)}}a.isString(d)||(d=d?"include":"omit");const E="credentials"in Request.prototype;p=new Request(t,{..._,signal:w,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:E?d:void 0});let g=await fetch(p);const R=Le&&(c==="stream"||c==="response");if(Le&&(l||R&&m)){const v={};["status","statusText","headers"].forEach(Ge=>{v[Ge]=g[Ge]});const L=a.toFiniteNumber(g.headers.get("content-length")),[U,ae]=l&&rt(L,de(st(l),!0))||[];g=new Response(it(g.body,at,U,()=>{ae&&ae(),m&&m()}),v)}c=c||"text";let D=await pe[a.findKey(pe,c)||"text"](g,e);return!R&&m&&m(),await new Promise((v,L)=>{Ct(v,L,{data:D,headers:A.from(g.headers),status:g.status,statusText:g.statusText,config:e,request:p})})}catch(E){throw m&&m(),E&&E.name==="TypeError"&&/fetch/i.test(E.message)?Object.assign(new y("Network Error",y.ERR_NETWORK,e,p),{cause:E.cause||E}):y.from(E,E&&E.code,e,p)}}),Be={http:Hn,xhr:_r,fetch:Or};a.forEach(Be,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const lt=e=>`- ${e}`,Ar=e=>a.isFunction(e)||e===null||e===!1,Lt={getAdapter:e=>{e=a.isArray(e)?e:[e];const{length:t}=e;let n,r;const s={};for(let o=0;o<t;o++){n=e[o];let i;if(r=n,!Ar(n)&&(r=Be[(i=String(n)).toLowerCase()],r===void 0))throw new y(`Unknown adapter '${i}'`);if(r)break;s[i||"#"+o]=r}if(!r){const o=Object.entries(s).map(([l,f])=>`adapter ${l} `+(f===!1?"is not supported by the environment":"is not available in the build"));let i=t?o.length>1?`since :
`+o.map(lt).join(`
`):" "+lt(o[0]):"as no adapter specified";throw new y("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:Be};function Ce(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new W(null,e)}function ut(e){return Ce(e),e.headers=A.from(e.headers),e.data=xe.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Lt.getAdapter(e.adapter||ne.adapter)(e).then(function(r){return Ce(e),r.data=xe.call(e,e.transformResponse,r),r.headers=A.from(r.headers),r},function(r){return xt(r)||(Ce(e),r&&r.response&&(r.response.data=xe.call(e,e.transformResponse,r.response),r.response.headers=A.from(r.response.headers))),Promise.reject(r)})}const Bt="1.7.7",ze={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ze[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const ct={};ze.transitional=function(t,n,r){function s(o,i){return"[Axios v"+Bt+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,l)=>{if(t===!1)throw new y(s(i," has been removed"+(n?" in "+n:"")),y.ERR_DEPRECATED);return n&&!ct[i]&&(ct[i]=!0,console.warn(s(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,l):!0}};function xr(e,t,n){if(typeof e!="object")throw new y("options must be an object",y.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const o=r[s],i=t[o];if(i){const l=e[o],f=l===void 0||i(l,o,e);if(f!==!0)throw new y("option "+o+" must be "+f,y.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new y("Unknown option "+o,y.ERR_BAD_OPTION)}}const ke={assertOptions:xr,validators:ze},B=ke.validators;class j{constructor(t){this.defaults=t,this.interceptors={request:new tt,response:new tt}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let s;Error.captureStackTrace?Error.captureStackTrace(s={}):s=new Error;const o=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=`
`+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=I(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&ke.assertOptions(r,{silentJSONParsing:B.transitional(B.boolean),forcedJSONParsing:B.transitional(B.boolean),clarifyTimeoutError:B.transitional(B.boolean)},!1),s!=null&&(a.isFunction(s)?n.paramsSerializer={serialize:s}:ke.assertOptions(s,{encode:B.function,serialize:B.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&a.merge(o.common,o[n.method]);o&&a.forEach(["delete","get","head","post","put","patch","common"],p=>{delete o[p]}),n.headers=A.concat(i,o);const l=[];let f=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(f=f&&m.synchronous,l.unshift(m.fulfilled,m.rejected))});const c=[];this.interceptors.response.forEach(function(m){c.push(m.fulfilled,m.rejected)});let u,d=0,_;if(!f){const p=[ut.bind(this),void 0];for(p.unshift.apply(p,l),p.push.apply(p,c),_=p.length,u=Promise.resolve(n);d<_;)u=u.then(p[d++],p[d++]);return u}_=l.length;let w=n;for(d=0;d<_;){const p=l[d++],m=l[d++];try{w=p(w)}catch(h){m.call(this,h);break}}try{u=ut.call(this,w)}catch(p){return Promise.reject(p)}for(d=0,_=c.length;d<_;)u=u.then(c[d++],c[d++]);return u}getUri(t){t=I(this.defaults,t);const n=Nt(t.baseURL,t.url);return Tt(n,t.params,t.paramsSerializer)}}a.forEach(["delete","get","head","options"],function(t){j.prototype[t]=function(n,r){return this.request(I(r||{},{method:t,url:n,data:(r||{}).data}))}});a.forEach(["post","put","patch"],function(t){function n(r){return function(o,i,l){return this.request(I(l||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}j.prototype[t]=n(),j.prototype[t+"Form"]=n(!0)});class Je{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(s=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](s);r._listeners=null}),this.promise.then=s=>{let o;const i=new Promise(l=>{r.subscribe(l),o=l}).then(s);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,l){r.reason||(r.reason=new W(o,i,l),n(r.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 n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Je(function(s){t=s}),cancel:t}}}function Cr(e){return function(n){return e.apply(null,n)}}function Nr(e){return a.isObject(e)&&e.isAxiosError===!0}const Ue={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(Ue).forEach(([e,t])=>{Ue[t]=e});function kt(e){const t=new j(e),n=pt(j.prototype.request,t);return a.extend(n,j.prototype,t,{allOwnKeys:!0}),a.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return kt(I(e,s))},n}const b=kt(ne);b.Axios=j;b.CanceledError=W;b.CancelToken=Je;b.isCancel=xt;b.VERSION=Bt;b.toFormData=ge;b.AxiosError=y;b.Cancel=b.CanceledError;b.all=function(t){return Promise.all(t)};b.spread=Cr;b.isAxiosError=Nr;b.mergeConfig=I;b.AxiosHeaders=A;b.formToJSON=e=>At(a.isHTMLForm(e)?new FormData(e):e);b.getAdapter=Lt.getAdapter;b.HttpStatusCode=Ue;b.default=b;loadHtmxFormsBehaviour();window.axios=b;const Pr=b;window.axios.defaults.headers.common["X-Requested-With"]="XMLHttpRequest";window.axios.interceptors.request.use(function(e){let t;t=document.querySelectorAll(".btn-spinner");for(let n=0;n<t.length;++n)t[n].classList.add("spinner-on"),t[n].disabled=!0;return e},function(e){return Promise.reject(e)});window.axios.interceptors.response.use(function(e){let t;t=document.querySelectorAll(".btn-spinner");for(let n=0;n<t.length;++n)t[n].classList.remove("spinner-on"),t[n].disabled=!1;return e},function(e){let t;t=document.querySelectorAll(".btn-spinner");for(let n=0;n<t.length;++n)t[n].classList.remove("spinner-on"),t[n].disabled=!1;return Promise.reject(e)});const Fr="5";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Fr);const Dr=1,Lr=2,Br=2,kr=!1;var qe=Object.getOwnPropertyDescriptor;function $(e){return typeof e=="function"}const J=2,Ur=4,Ve=8,Ut=16,k=32,Se=64,re=128,he=256,P=512,se=1024,ve=2048,me=4096,oe=8192,qr=16384,qt=32768,jr=65536,Ir=1<<18,jt=1<<19;function Hr(e){return e===this.v}function Mr(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function zr(e){return!Mr(e,this.v)}function Jr(){throw new Error("effect_update_depth_exceeded")}function Vr(e){throw new Error("props_invalid_value")}function Wr(){throw new Error("state_unsafe_local_read")}function It(e){var t=J|se;S===null?t|=re:S.f|=jt;const n={children:null,ctx:Q,deps:null,equals:Hr,f:t,fn:e,reactions:null,v:null,version:0,parent:S};if(N!==null&&N.f&J){var r=N;(r.children??(r.children=[])).push(n)}return n}function Kr(e){const t=It(e);return t.equals=zr,t}function Ht(e){var t=e.children;if(t!==null){e.children=null;for(var n=0;n<t.length;n+=1){var r=t[n];r.f&J?We(r):ie(r)}}}function Mt(e){var t,n=S;_e(e.parent);try{Ht(e),t=Yt(e)}finally{_e(n)}return t}function zt(e){var t=Mt(e),n=(M||e.f&re)&&e.deps!==null?ve:P;H(e,n),e.equals(t)||(e.v=t,e.version=es())}function We(e){Ht(e),ee(e,0),H(e,oe),e.v=e.children=e.deps=e.ctx=e.reactions=null}function $r(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function Jt(e,t,n,r=!0){var s=(e&Se)!==0,o=S,i={ctx:Q,deps:null,deriveds:null,nodes_start:null,nodes_end:null,f:e|se,first:null,fn:t,last:null,next:null,parent:s?null:o,prev:null,teardown:null,transitions:null,version:0};{var l=z;try{ft(!0),Ke(i),i.f|=qr}catch(u){throw ie(i),u}finally{ft(l)}}var f=i.deps===null&&i.first===null&&i.nodes_start===null&&i.teardown===null&&(i.f&jt)===0;if(!f&&!s&&r&&(o!==null&&$r(i,o),N!==null&&N.f&J)){var c=N;(c.children??(c.children=[])).push(i)}return i}function Xr(e,t=0){return Jt(Ve|Ut|t,e)}function Gr(e,t=!0){return Jt(Ve|k,e,!0,t)}function Vt(e){var t=e.teardown;if(t!==null){const n=N;dt(null);try{t.call(null)}finally{dt(n)}}}function Wt(e){var t=e.deriveds;if(t!==null){e.deriveds=null;for(var n=0;n<t.length;n+=1)We(t[n])}}function Kt(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){var r=n.next;ie(n,t),n=r}}function Yr(e){for(var t=e.first;t!==null;){var n=t.next;t.f&k||ie(t),t=n}}function ie(e,t=!0){var n=!1;if((t||e.f&Ir)&&e.nodes_start!==null){for(var r=e.nodes_start,s=e.nodes_end;r!==null;){var o=r===s?null:Xe(r);r.remove(),r=o}n=!0}Wt(e),Kt(e,t&&!n),ee(e,0),H(e,oe);var i=e.transitions;if(i!==null)for(const f of i)f.stop();Vt(e);var l=e.parent;l!==null&&l.first!==null&&$t(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.parent=e.fn=e.nodes_start=e.nodes_end=null}function $t(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function Qr(e,t){var n=[];Xt(e,n,!0),Zr(n,()=>{ie(e)})}function Zr(e,t){var n=e.length;if(n>0){var r=()=>--n||t();for(var s of e)s.out(r)}else t()}function Xt(e,t,n){if(!(e.f&me)){if(e.f^=me,e.transitions!==null)for(const i of e.transitions)(i.is_global||n)&&t.push(i);for(var r=e.first;r!==null;){var s=r.next,o=(r.f&qt)!==0||(r.f&k)!==0;Xt(r,t,o?n:!1),r=s}}}let ye=!1,z=!1;function ft(e){z=e}let je=[],X=0;let N=null;function dt(e){N=e}let S=null;function _e(e){S=e}let G=null,T=null,x=0,Y=null,Gt=0,M=!1,Q=null;function es(){return++Gt}function Te(e){var i,l;var t=e.f;if(t&se)return!0;if(t&ve){var n=e.deps,r=(t&re)!==0;if(n!==null){var s;if(t&he){for(s=0;s<n.length;s++)((i=n[s]).reactions??(i.reactions=[])).push(e);e.f^=he}for(s=0;s<n.length;s++){var o=n[s];if(Te(o)&&zt(o),r&&S!==null&&!M&&!((l=o==null?void 0:o.reactions)!=null&&l.includes(e))&&(o.reactions??(o.reactions=[])).push(e),o.version>e.version)return!0}}r||H(e,P)}return!1}function ts(e,t,n){throw e}function Yt(e){var _;var t=T,n=x,r=Y,s=N,o=M,i=G,l=Q,f=e.f;T=null,x=0,Y=null,N=f&(k|Se)?null:e,M=!z&&(f&re)!==0,G=null,Q=e.ctx;try{var c=(0,e.fn)(),u=e.deps;if(T!==null){var d;if(ee(e,x),u!==null&&x>0)for(u.length=x+T.length,d=0;d<T.length;d++)u[x+d]=T[d];else e.deps=u=T;if(!M)for(d=x;d<u.length;d++)((_=u[d]).reactions??(_.reactions=[])).push(e)}else u!==null&&x<u.length&&(ee(e,x),u.length=x);return c}finally{T=t,x=n,Y=r,N=s,M=o,G=i,Q=l}}function ns(e,t){let n=t.reactions;if(n!==null){var r=n.indexOf(e);if(r!==-1){var s=n.length-1;s===0?n=t.reactions=null:(n[r]=n[s],n.pop())}}n===null&&t.f&J&&(T===null||!T.includes(t))&&(H(t,ve),t.f&(re|he)||(t.f^=he),ee(t,0))}function ee(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)ns(e,n[r])}function Ke(e){var t=e.f;if(!(t&oe)){H(e,P);var n=S;S=e;try{Wt(e),t&Ut?Yr(e):Kt(e),Vt(e);var r=Yt(e);e.teardown=typeof r=="function"?r:null,e.version=Gt}catch(s){ts(s)}finally{S=n}}}function rs(){X>1e3&&(X=0,Jr()),X++}function ss(e){var t=e.length;if(t!==0){rs();var n=z;z=!0;try{for(var r=0;r<t;r++){var s=e[r];s.f&P||(s.f^=P);var o=[];Qt(s,o),os(o)}}finally{z=n}}}function os(e){var t=e.length;if(t!==0)for(var n=0;n<t;n++){var r=e[n];!(r.f&(oe|me))&&Te(r)&&(Ke(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null?$t(r):r.fn=null))}}function is(){if(ye=!1,X>1001)return;const e=je;je=[],ss(e),ye||(X=0)}function as(e){ye||(ye=!0,queueMicrotask(is));for(var t=e;t.parent!==null;){t=t.parent;var n=t.f;if(n&(Se|k)){if(!(n&P))return;t.f^=P}}je.push(t)}function Qt(e,t){var n=e.first,r=[];e:for(;n!==null;){var s=n.f,o=(s&k)!==0,i=o&&(s&P)!==0;if(!i&&!(s&me))if(s&Ve){o?n.f^=P:Te(n)&&Ke(n);var l=n.first;if(l!==null){n=l;continue}}else s&Ur&&r.push(n);var f=n.next;if(f===null){let d=n.parent;for(;d!==null;){if(e===d)break e;var c=d.next;if(c!==null){n=c;continue e}d=d.parent}}n=f}for(var u=0;u<r.length;u++)l=r[u],t.push(l),Qt(l,t)}function ls(e){var l;var t=e.f,n=(t&J)!==0;if(n&&t&oe){var r=Mt(e);return We(e),r}if(N!==null){G!==null&&G.includes(e)&&Wr();var s=N.deps;T===null&&s!==null&&s[x]===e?x++:T===null?T=[e]:T.push(e),Y!==null&&S!==null&&S.f&P&&!(S.f&k)&&Y.includes(e)&&(H(S,se),as(S))}else if(n&&e.deps===null){var o=e,i=o.parent;i!==null&&!((l=i.deriveds)!=null&&l.includes(o))&&(i.deriveds??(i.deriveds=[])).push(o)}return n&&(o=e,Te(o)&&zt(o)),e.v}const us=~(se|ve|P);function H(e,t){e.f=e.f&us|t}var cs,fs;function ds(e=""){return document.createTextNode(e)}function $e(e){return cs.call(e)}function Xe(e){return fs.call(e)}function ps(e,t){return $e(e)}function hs(e,t){{var n=$e(e);return n instanceof Comment&&n.data===""?Xe(n):n}}function ms(e,t=1,n=!1){let r=e;for(;t--;)r=Xe(r);return r}function ys(e){var t=document.createElement("template");return t.innerHTML=e,t.content}function Zt(e,t){var n=S;n.nodes_start===null&&(n.nodes_start=e,n.nodes_end=t)}function _s(e,t){var n=(t&Br)!==0,r,s=!e.startsWith("<!>");return()=>{r===void 0&&(r=ys(s?e:"<!>"+e));var o=n?document.importNode(r,!0):r.cloneNode(!0);{var i=$e(o),l=o.lastChild;Zt(i,l)}return o}}function ws(e=""){{var t=ds(e+"");return Zt(t,t),t}}function en(e,t){e!==null&&e.before(t)}function Es(e,t,n){var r=e,s,o;Xr(()=>{s!==(s=t())&&(o&&(Qr(o),o=null),s&&(o=Gr(()=>n(r,s))))},qt)}let le=!1;function bs(e){var t=le;try{return le=!1,[e(),le]}finally{le=t}}const gs={get(e,t){let n=e.props.length;for(;n--;){let r=e.props[n];if($(r)&&(r=r()),typeof r=="object"&&r!==null&&t in r)return r[t]}},set(e,t,n){let r=e.props.length;for(;r--;){let s=e.props[r];$(s)&&(s=s());const o=qe(s,t);if(o&&o.set)return o.set(n),!0}return!1},getOwnPropertyDescriptor(e,t){let n=e.props.length;for(;n--;){let r=e.props[n];if($(r)&&(r=r()),typeof r=="object"&&r!==null&&t in r){const s=qe(r,t);return s&&!s.configurable&&(s.configurable=!0),s}}},has(e,t){for(let n of e.props)if($(n)&&(n=n()),n!=null&&t in n)return!0;return!1},ownKeys(e){const t=[];for(let n of e.props){$(n)&&(n=n());for(const r in n)t.includes(r)||t.push(r)}return t}};function Rs(...e){return new Proxy({props:e},gs)}function Ss(e){for(var t=S,n=S;t!==null&&!(t.f&(k|Se));)t=t.parent;try{return _e(t),e()}finally{_e(n)}}function Ne(e,t,n,r){var p;var s=(n&Dr)!==0,o=(n&Lr)!==0,i=!1,l;[l,i]=bs(()=>e[t]);var f=(p=qe(e,t))==null?void 0:p.set,c=r,u=!0,d=()=>(u&&(u=!1,c=r),c);l===void 0&&r!==void 0&&(f&&o&&Vr(),l=d(),f&&f(l));var _;{var w=Ss(()=>(s?It:Kr)(()=>e[t]));w.f|=jr,_=()=>{var m=ls(w);return m!==void 0&&(c=void 0),m===void 0?c:m}}return _}function vs(e){var t=ws("hiii");en(e,t)}var Ts=_s('<div style="text-align: center;background: var(--p20);padding: 20px;color: var(--p90)"></div> <div><!></div>',1);function Os(e,t){const n={landing:vs};let r=Ne(t,"title",8),s=Ne(t,"view",8),o=Ne(t,"data",8);var i=Ts(),l=ms(hs(i),2),f=ps(l);Es(f,()=>n[s()],(c,u)=>{u(c,Rs({get title(){return r()}},o))}),en(e,i)}const As={homepage:Os};let ue=[],xs=function(){ue.map(n=>n.$destroy()),ue=[];const e=document.body.querySelectorAll(".hive-component");if(e.length===0)return;const t=function(n){const r=n.attributes["data-layout"].value,[s,o]=Object.entries(As).find(([c,u])=>r===c);if(!o)return[];const i=document.getElementById("json-"+r).innerHTML,l=JSON.parse(i);l.axios=Pr;const f={target:n,props:l};ue=[...ue,new o(f)]};Array.from(e).map(t)};document.addEventListener("DOMContentLoaded",xs);