@tanglemedia/directus-collection-embed
Version:
Installs the Embed Collection to your Directus project.
20 lines • 633 kB
JavaScript
"use strict";var e=require("url"),t=require("util"),n=require("stream"),i=require("path"),a=require("http"),r=require("https"),o=require("fs"),s=require("crypto"),c=require("assert"),l=require("tty"),u=require("os"),p=require("zlib"),d=require("events"),f=require("child_process"),m=require("node:path");function h(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function g(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,i.get?i:{enumerable:!0,get:function(){return e[t]}})}),n}
/**
* @vue/shared v3.5.13
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/
/*! #__NO_SIDE_EFFECTS__ */function v(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return e=>e in t}const b={},y=()=>{},x=Object.assign,_=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},w=Object.prototype.hasOwnProperty,O=(e,t)=>w.call(e,t),A=Array.isArray,R=e=>"[object Map]"===N(e),k=e=>"[object Set]"===N(e),S=e=>"function"==typeof e,E=e=>"string"==typeof e,j=e=>"symbol"==typeof e,T=e=>null!==e&&"object"==typeof e,C=Object.prototype.toString,N=e=>C.call(e),$=e=>"[object Object]"===N(e),F=e=>E(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,I=(e,t)=>!Object.is(e,t);let L;const P=()=>L||(L="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{});
/**
* @vue/reactivity v3.5.13
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/
let D,U;class B{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=D,!e&&D&&(this.index=(D.scopes||(D.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){let e,t;if(this._isPaused=!0,this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].pause();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){let e,t;if(this._isPaused=!1,this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].resume();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].resume()}}run(e){if(this._active){const t=D;try{return D=this,e()}finally{D=t}}}on(){D=this}off(){D=this.parent}stop(e){if(this._active){let t,n;for(this._active=!1,t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(this.effects.length=0,t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0}}}function M(){return D}const z=new WeakSet;class q{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,D&&D.active&&D.effects.push(this)}pause(){this.flags|=64}resume(){64&this.flags&&(this.flags&=-65,z.has(this)&&(z.delete(this),this.trigger()))}notify(){2&this.flags&&!(32&this.flags)||8&this.flags||V(this)}run(){if(!(1&this.flags))return this.fn();this.flags|=2,oe(this),X(this);const e=U,t=ne;U=this,ne=!0;try{return this.fn()}finally{Y(this),U=e,ne=t,this.flags&=-3}}stop(){if(1&this.flags){for(let e=this.deps;e;e=e.nextDep)ee(e);this.deps=this.depsTail=void 0,oe(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){64&this.flags?z.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){J(this)&&this.run()}get dirty(){return J(this)}}let G,H,W=0;function V(e,t=!1){if(e.flags|=8,t)return e.next=H,void(H=e);e.next=G,G=e}function Z(){W++}function K(){if(--W>0)return;if(H){let e=H;for(H=void 0;e;){const t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;G;){let t=G;for(G=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,1&t.flags)try{t.trigger()}catch(t){e||(e=t)}t=n}}if(e)throw e}function X(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Y(e){let t,n=e.depsTail,i=n;for(;i;){const e=i.prevDep;-1===i.version?(i===n&&(n=e),ee(i),te(i)):t=i,i.dep.activeLink=i.prevActiveLink,i.prevActiveLink=void 0,i=e}e.deps=t,e.depsTail=n}function J(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Q(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Q(e){if(4&e.flags&&!(16&e.flags))return;if(e.flags&=-17,e.globalVersion===se)return;e.globalVersion=se;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!J(e))return void(e.flags&=-3);const n=U,i=ne;U=e,ne=!0;try{X(e);const n=e.fn(e._value);(0===t.version||I(n,e._value))&&(e._value=n,t.version++)}catch(e){throw t.version++,e}finally{U=n,ne=i,Y(e),e.flags&=-3}}function ee(e,t=!1){const{dep:n,prevSub:i,nextSub:a}=e;if(i&&(i.nextSub=a,e.prevSub=void 0),a&&(a.prevSub=i,e.nextSub=void 0),n.subs===e&&(n.subs=i,!i&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)ee(e,!0)}t||--n.sc||!n.map||n.map.delete(n.key)}function te(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let ne=!0;const ie=[];function ae(){ie.push(ne),ne=!1}function re(){const e=ie.pop();ne=void 0===e||e}function oe(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const e=U;U=void 0;try{t()}finally{U=e}}}let se=0;class ce{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class le{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(e){if(!U||!ne||U===this.computed)return;let t=this.activeLink;if(void 0===t||t.sub!==U)t=this.activeLink=new ce(U,this),U.deps?(t.prevDep=U.depsTail,U.depsTail.nextDep=t,U.depsTail=t):U.deps=U.depsTail=t,ue(t);else if(-1===t.version&&(t.version=this.version,t.nextDep)){const e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=U.depsTail,t.nextDep=void 0,U.depsTail.nextDep=t,U.depsTail=t,U.deps===t&&(U.deps=e)}return t}trigger(e){this.version++,se++,this.notify(e)}notify(e){Z();try{0;for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{K()}}}function ue(e){if(e.dep.sc++,4&e.sub.flags){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)ue(e)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const pe=new WeakMap,de=Symbol(""),fe=Symbol(""),me=Symbol("");function he(e,t,n){if(ne&&U){let t=pe.get(e);t||pe.set(e,t=new Map);let i=t.get(n);i||(t.set(n,i=new le),i.map=t,i.key=n),i.track()}}function ge(e,t,n,i,a,r){const o=pe.get(e);if(!o)return void se++;const s=e=>{e&&e.trigger()};if(Z(),"clear"===t)o.forEach(s);else{const a=A(e),r=a&&F(n);if(a&&"length"===n){const e=Number(i);o.forEach((t,n)=>{("length"===n||n===me||!j(n)&&n>=e)&&s(t)})}else switch((void 0!==n||o.has(void 0))&&s(o.get(n)),r&&s(o.get(me)),t){case"add":a?r&&s(o.get("length")):(s(o.get(de)),R(e)&&s(o.get(fe)));break;case"delete":a||(s(o.get(de)),R(e)&&s(o.get(fe)));break;case"set":R(e)&&s(o.get(de))}}K()}function ve(e){const t=Qe(e);return t===e?t:(he(t,0,me),Ye(e)?t:t.map(tt))}function be(e){return he(e=Qe(e),0,me),e}const ye={__proto__:null,[Symbol.iterator](){return xe(this,Symbol.iterator,tt)},concat(...e){return ve(this).concat(...e.map(e=>A(e)?ve(e):e))},entries(){return xe(this,"entries",e=>(e[1]=tt(e[1]),e))},every(e,t){return we(this,"every",e,t,void 0,arguments)},filter(e,t){return we(this,"filter",e,t,e=>e.map(tt),arguments)},find(e,t){return we(this,"find",e,t,tt,arguments)},findIndex(e,t){return we(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return we(this,"findLast",e,t,tt,arguments)},findLastIndex(e,t){return we(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return we(this,"forEach",e,t,void 0,arguments)},includes(...e){return Ae(this,"includes",e)},indexOf(...e){return Ae(this,"indexOf",e)},join(e){return ve(this).join(e)},lastIndexOf(...e){return Ae(this,"lastIndexOf",e)},map(e,t){return we(this,"map",e,t,void 0,arguments)},pop(){return Re(this,"pop")},push(...e){return Re(this,"push",e)},reduce(e,...t){return Oe(this,"reduce",e,t)},reduceRight(e,...t){return Oe(this,"reduceRight",e,t)},shift(){return Re(this,"shift")},some(e,t){return we(this,"some",e,t,void 0,arguments)},splice(...e){return Re(this,"splice",e)},toReversed(){return ve(this).toReversed()},toSorted(e){return ve(this).toSorted(e)},toSpliced(...e){return ve(this).toSpliced(...e)},unshift(...e){return Re(this,"unshift",e)},values(){return xe(this,"values",tt)}};function xe(e,t,n){const i=be(e),a=i[t]();return i===e||Ye(e)||(a._next=a.next,a.next=()=>{const e=a._next();return e.value&&(e.value=n(e.value)),e}),a}const _e=Array.prototype;function we(e,t,n,i,a,r){const o=be(e),s=o!==e&&!Ye(e),c=o[t];if(c!==_e[t]){const t=c.apply(e,r);return s?tt(t):t}let l=n;o!==e&&(s?l=function(t,i){return n.call(this,tt(t),i,e)}:n.length>2&&(l=function(t,i){return n.call(this,t,i,e)}));const u=c.call(o,l,i);return s&&a?a(u):u}function Oe(e,t,n,i){const a=be(e);let r=n;return a!==e&&(Ye(e)?n.length>3&&(r=function(t,i,a){return n.call(this,t,i,a,e)}):r=function(t,i,a){return n.call(this,t,tt(i),a,e)}),a[t](r,...i)}function Ae(e,t,n){const i=Qe(e);he(i,0,me);const a=i[t](...n);return-1!==a&&!1!==a||!Je(n[0])?a:(n[0]=Qe(n[0]),i[t](...n))}function Re(e,t,n=[]){ae(),Z();const i=Qe(e)[t].apply(e,n);return K(),re(),i}const ke=v("__proto__,__v_isRef,__isVue"),Se=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(j));function Ee(e){j(e)||(e=String(e));const t=Qe(this);return he(t,0,e),t.hasOwnProperty(e)}class je{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if("__v_skip"===t)return e.__v_skip;const i=this._isReadonly,a=this._isShallow;if("__v_isReactive"===t)return!i;if("__v_isReadonly"===t)return i;if("__v_isShallow"===t)return a;if("__v_raw"===t)return n===(i?a?Ge:qe:a?ze:Me).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const r=A(e);if(!i){let e;if(r&&(e=ye[t]))return e;if("hasOwnProperty"===t)return Ee}const o=Reflect.get(e,t,it(e)?e:n);return(j(t)?Se.has(t):ke(t))?o:(i||he(e,0,t),a?o:it(o)?r&&F(t)?o:o.value:T(o)?i?Ve(o):We(o):o)}}class Te extends je{constructor(e=!1){super(!1,e)}set(e,t,n,i){let a=e[t];if(!this._isShallow){const t=Xe(a);if(Ye(n)||Xe(n)||(a=Qe(a),n=Qe(n)),!A(e)&&it(a)&&!it(n))return!t&&(a.value=n,!0)}const r=A(e)&&F(t)?Number(t)<e.length:O(e,t),o=Reflect.set(e,t,n,it(e)?e:i);return e===Qe(i)&&(r?I(n,a)&&ge(e,"set",t,n):ge(e,"add",t,n)),o}deleteProperty(e,t){const n=O(e,t);e[t];const i=Reflect.deleteProperty(e,t);return i&&n&&ge(e,"delete",t,void 0),i}has(e,t){const n=Reflect.has(e,t);return j(t)&&Se.has(t)||he(e,0,t),n}ownKeys(e){return he(e,0,A(e)?"length":de),Reflect.ownKeys(e)}}class Ce extends je{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}const Ne=new Te,$e=new Ce,Fe=e=>e,Ie=e=>Reflect.getPrototypeOf(e);function Le(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function Pe(e,t){const n={get(n){const i=this.__v_raw,a=Qe(i),r=Qe(n);e||(I(n,r)&&he(a,0,n),he(a,0,r));const{has:o}=Ie(a),s=t?Fe:e?nt:tt;return o.call(a,n)?s(i.get(n)):o.call(a,r)?s(i.get(r)):void(i!==a&&i.get(n))},get size(){const t=this.__v_raw;return!e&&he(Qe(t),0,de),Reflect.get(t,"size",t)},has(t){const n=this.__v_raw,i=Qe(n),a=Qe(t);return e||(I(t,a)&&he(i,0,t),he(i,0,a)),t===a?n.has(t):n.has(t)||n.has(a)},forEach(n,i){const a=this,r=a.__v_raw,o=Qe(r),s=t?Fe:e?nt:tt;return!e&&he(o,0,de),r.forEach((e,t)=>n.call(i,s(e),s(t),a))}};x(n,e?{add:Le("add"),set:Le("set"),delete:Le("delete"),clear:Le("clear")}:{add(e){t||Ye(e)||Xe(e)||(e=Qe(e));const n=Qe(this);return Ie(n).has.call(n,e)||(n.add(e),ge(n,"add",e,e)),this},set(e,n){t||Ye(n)||Xe(n)||(n=Qe(n));const i=Qe(this),{has:a,get:r}=Ie(i);let o=a.call(i,e);o||(e=Qe(e),o=a.call(i,e));const s=r.call(i,e);return i.set(e,n),o?I(n,s)&&ge(i,"set",e,n):ge(i,"add",e,n),this},delete(e){const t=Qe(this),{has:n,get:i}=Ie(t);let a=n.call(t,e);a||(e=Qe(e),a=n.call(t,e)),i&&i.call(t,e);const r=t.delete(e);return a&&ge(t,"delete",e,void 0),r},clear(){const e=Qe(this),t=0!==e.size,n=e.clear();return t&&ge(e,"clear",void 0,void 0),n}});return["keys","values","entries",Symbol.iterator].forEach(i=>{n[i]=function(e,t,n){return function(...i){const a=this.__v_raw,r=Qe(a),o=R(r),s="entries"===e||e===Symbol.iterator&&o,c="keys"===e&&o,l=a[e](...i),u=n?Fe:t?nt:tt;return!t&&he(r,0,c?fe:de),{next(){const{value:e,done:t}=l.next();return t?{value:e,done:t}:{value:s?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}(i,e,t)}),n}function De(e,t){const n=Pe(e,t);return(t,i,a)=>"__v_isReactive"===i?!e:"__v_isReadonly"===i?e:"__v_raw"===i?t:Reflect.get(O(n,i)&&i in t?n:t,i,a)}const Ue={get:De(!1,!1)},Be={get:De(!0,!1)},Me=new WeakMap,ze=new WeakMap,qe=new WeakMap,Ge=new WeakMap;function He(e){return e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((e=>N(e).slice(8,-1))(e))}function We(e){return Xe(e)?e:Ze(e,!1,Ne,Ue,Me)}function Ve(e){return Ze(e,!0,$e,Be,qe)}function Ze(e,t,n,i,a){if(!T(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const r=a.get(e);if(r)return r;const o=He(e);if(0===o)return e;const s=new Proxy(e,2===o?i:n);return a.set(e,s),s}function Ke(e){return Xe(e)?Ke(e.__v_raw):!(!e||!e.__v_isReactive)}function Xe(e){return!(!e||!e.__v_isReadonly)}function Ye(e){return!(!e||!e.__v_isShallow)}function Je(e){return!!e&&!!e.__v_raw}function Qe(e){const t=e&&e.__v_raw;return t?Qe(t):e}function et(e){return!O(e,"__v_skip")&&Object.isExtensible(e)&&((e,t,n,i=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:i,value:n})})(e,"__v_skip",!0),e}const tt=e=>T(e)?We(e):e,nt=e=>T(e)?Ve(e):e;function it(e){return!!e&&!0===e.__v_isRef}function at(e){return function(e,t){if(it(e))return e;return new rt(e,t)}(e,!1)}class rt{constructor(e,t){this.dep=new le,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:Qe(e),this._value=t?e:tt(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){const t=this._rawValue,n=this.__v_isShallow||Ye(e)||Xe(e);e=n?e:Qe(e),I(e,t)&&(this._rawValue=e,this._value=n?e:tt(e),this.dep.trigger())}}function ot(e){return it(e)?e.value:e}function st(e){const t=A(e)?new Array(e.length):{};for(const n in e)t[n]=pt(e,n);return t}class ct{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0}get value(){const e=this._object[this._key];return this._value=void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return function(e,t){const n=pe.get(e);return n&&n.get(t)}(Qe(this._object),this._key)}}class lt{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function ut(e,t,n){return it(e)?e:S(e)?new lt(e):T(e)&&arguments.length>1?pt(e,t,n):at(e)}function pt(e,t,n){const i=e[t];return it(i)?i:new ct(e,t,n)}class dt{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new le(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=se-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(8&this.flags)&&U!==this)return V(this,!0),!0}get value(){const e=this.dep.track();return Q(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}const ft={},mt=new WeakMap;let ht;function gt(e,t,n=b){const{immediate:i,deep:a,once:r,scheduler:o,augmentJob:s,call:c}=n,l=e=>a?e:Ye(e)||!1===a||0===a?vt(e,1):vt(e);let u,p,d,f,m=!1,h=!1;if(it(e)?(p=()=>e.value,m=Ye(e)):Ke(e)?(p=()=>l(e),m=!0):A(e)?(h=!0,m=e.some(e=>Ke(e)||Ye(e)),p=()=>e.map(e=>it(e)?e.value:Ke(e)?l(e):S(e)?c?c(e,2):e():void 0)):p=S(e)?t?c?()=>c(e,2):e:()=>{if(d){ae();try{d()}finally{re()}}const t=ht;ht=u;try{return c?c(e,3,[f]):e(f)}finally{ht=t}}:y,t&&a){const e=p,t=!0===a?1/0:a;p=()=>vt(e(),t)}const g=M(),v=()=>{u.stop(),g&&g.active&&_(g.effects,u)};if(r&&t){const e=t;t=(...t)=>{e(...t),v()}}let x=h?new Array(e.length).fill(ft):ft;const w=e=>{if(1&u.flags&&(u.dirty||e))if(t){const e=u.run();if(a||m||(h?e.some((e,t)=>I(e,x[t])):I(e,x))){d&&d();const n=ht;ht=u;try{const n=[e,x===ft?void 0:h&&x[0]===ft?[]:x,f];c?c(t,3,n):t(...n),x=e}finally{ht=n}}}else u.run()};return s&&s(w),u=new q(p),u.scheduler=o?()=>o(w,!1):w,f=e=>function(e,t=!1,n=ht){if(n){let t=mt.get(n);t||mt.set(n,t=[]),t.push(e)}}(e,!1,u),d=u.onStop=()=>{const e=mt.get(u);if(e){if(c)c(e,4);else for(const t of e)t();mt.delete(u)}},t?i?w(!0):x=u.run():o?o(w.bind(null,!0),!0):u.run(),v.pause=u.pause.bind(u),v.resume=u.resume.bind(u),v.stop=v,v}function vt(e,t=1/0,n){if(t<=0||!T(e)||e.__v_skip)return e;if((n=n||new Set).has(e))return e;if(n.add(e),t--,it(e))vt(e.value,t,n);else if(A(e))for(let i=0;i<e.length;i++)vt(e[i],t,n);else if(k(e)||R(e))e.forEach(e=>{vt(e,t,n)});else if($(e)){for(const i in e)vt(e[i],t,n);for(const i of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,i)&&vt(e[i],t,n)}return e}
/**
* @vue/runtime-core v3.5.13
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function bt(e,t,n,i){try{return i?e(...i):e()}catch(e){xt(e,t,n)}}function yt(e,t,n,i){if(S(e)){const r=bt(e,t,n,i);return r&&((T(a=r)||S(a))&&S(a.then)&&S(a.catch))&&r.catch(e=>{xt(e,t,n)}),r}var a;if(A(e)){const a=[];for(let r=0;r<e.length;r++)a.push(yt(e[r],t,n,i));return a}}function xt(e,t,n,i=!0){t&&t.vnode;const{errorHandler:a,throwUnhandledErrorInProduction:r}=t&&t.appContext.config||b;if(t){let i=t.parent;const r=t.proxy,o=`https://vuejs.org/error-reference/#runtime-${n}`;for(;i;){const t=i.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,r,o))return;i=i.parent}if(a)return ae(),bt(a,null,10,[e,r,o]),void re()}!function(e,t,n,i=!0,a=!1){if(a)throw e;console.error(e)}(e,0,0,i,r)}const _t=[];let wt=-1;const Ot=[];let At=null,Rt=0;const kt=Promise.resolve();let St=null;function Et(e){if(!(1&e.flags)){const t=Tt(e),n=_t[_t.length-1];!n||!(2&e.flags)&&t>=Tt(n)?_t.push(e):_t.splice(function(e){let t=wt+1,n=_t.length;for(;t<n;){const i=t+n>>>1,a=_t[i],r=Tt(a);r<e||r===e&&2&a.flags?t=i+1:n=i}return t}(t),0,e),e.flags|=1,jt()}}function jt(){St||(St=kt.then(Ct))}const Tt=e=>null==e.id?2&e.flags?-1:1/0:e.id;function Ct(e){try{for(wt=0;wt<_t.length;wt++){const e=_t[wt];!e||8&e.flags||(4&e.flags&&(e.flags&=-2),bt(e,e.i,e.i?15:14),4&e.flags||(e.flags&=-2))}}finally{for(;wt<_t.length;wt++){const e=_t[wt];e&&(e.flags&=-2)}wt=-1,_t.length=0,function(){if(Ot.length){const e=[...new Set(Ot)].sort((e,t)=>Tt(e)-Tt(t));if(Ot.length=0,At)return void At.push(...e);for(At=e,Rt=0;Rt<At.length;Rt++){const e=At[Rt];4&e.flags&&(e.flags&=-2),8&e.flags||e(),e.flags&=-2}At=null,Rt=0}}(),St=null,(_t.length||Ot.length)&&Ct()}}let Nt=null;Symbol("_vte");
/*! #__NO_SIDE_EFFECTS__ */
function $t(e,t){return S(e)?(()=>x({name:e.name},t,{setup:e}))():e}P().requestIdleCallback,P().cancelIdleCallback;function Ft(e,t,n=Mt,i=!1){if(n){const a=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...i)=>{ae();const a=qt(n),r=yt(t,n,e,i);return a(),re(),r});return i?a.unshift(r):a.push(r),r}}const It=e=>(t,n=Mt)=>{Gt&&"sp"!==e||Ft(e,(...e)=>t(...e),n)};It("bum"),It("um"),Symbol.for("v-ndc");function Lt(e,t,n=!1){const i=Mt||Nt;if(i){const a=i?null==i.parent?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides:void 0;if(a&&e in a)return a[e];if(arguments.length>1)return n&&S(t)?t.call(i&&i.proxy):t}}const Pt=function(e,t){t&&t.pendingBranch?A(e)?t.effects.push(...e):t.effects.push(e):(A(n=e)?Ot.push(...n):At&&-1===n.id?At.splice(Rt+1,0,n):1&n.flags||(Ot.push(n),n.flags|=1),jt());var n};const Dt=Symbol.for("v-scx");function Ut(e,t,n){return Bt(e,t,n)}function Bt(e,t,n=b){const{immediate:i,deep:a,flush:r,once:o}=n,s=x({},n),c=t&&i||!t&&"post"!==r;let l;if(Gt)if("sync"===r){const e=Lt(Dt);l=e.__watcherHandles||(e.__watcherHandles=[])}else if(!c){const e=()=>{};return e.stop=y,e.resume=y,e.pause=y,e}const u=Mt;s.call=(e,t,n)=>yt(e,u,t,n);let p=!1;"post"===r?s.scheduler=e=>{Pt(e,u&&u.suspense)}:"sync"!==r&&(p=!0,s.scheduler=(e,t)=>{t?e():Et(e)}),s.augmentJob=e=>{t&&(e.flags|=4),p&&(e.flags|=2,u&&(e.id=u.uid,e.i=u))};const d=gt(e,t,s);return Gt&&(l?l.push(d):c&&d()),d}Symbol.for("v-fgt"),Symbol.for("v-txt"),Symbol.for("v-cmt");let Mt=null;let zt;{const e=P(),t=(t,n)=>{let i;return(i=e[t])||(i=e[t]=[]),i.push(n),e=>{i.length>1?i.forEach(t=>t(e)):i[0](e)}};zt=t("__VUE_INSTANCE_SETTERS__",e=>Mt=e),t("__VUE_SSR_SETTERS__",e=>Gt=e)}const qt=e=>{const t=Mt;return zt(e),e.scope.on(),()=>{e.scope.off(),zt(t)}};let Gt=!1;const Ht=(e,t)=>{const n=function(e,t,n=!1){let i,a;return S(e)?i=e:(i=e.get,a=e.set),new dt(i,a,n)}(e,0,Gt);return n};var Wt="object"==typeof global&&global&&global.Object===Object&&global,Vt="object"==typeof self&&self&&self.Object===Object&&self,Zt=Wt||Vt||Function("return this")(),Kt=Zt.Symbol,Xt=Object.prototype,Yt=Xt.hasOwnProperty,Jt=Xt.toString,Qt=Kt?Kt.toStringTag:void 0;var en=Object.prototype.toString;var tn=Kt?Kt.toStringTag:void 0;function nn(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":tn&&tn in Object(e)?function(e){var t=Yt.call(e,Qt),n=e[Qt];try{e[Qt]=void 0;var i=!0}catch(e){}var a=Jt.call(e);return i&&(t?e[Qt]=n:delete e[Qt]),a}(e):function(e){return en.call(e)}(e)}function an(e){return null!=e&&"object"==typeof e}function rn(e){return"symbol"==typeof e||an(e)&&"[object Symbol]"==nn(e)}var on=Array.isArray,sn=Kt?Kt.prototype:void 0;sn&&sn.toString;var cn=/\s/;var ln=/^\s+/;function un(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&cn.test(e.charAt(t)););return t}(e)+1).replace(ln,""):e}function pn(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var dn=/^[-+]0x[0-9a-f]+$/i,fn=/^0b[01]+$/i,mn=/^0o[0-7]+$/i,hn=parseInt;function gn(e){if("number"==typeof e)return e;if(rn(e))return NaN;if(pn(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=pn(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=un(e);var n=fn.test(e);return n||mn.test(e)?hn(e.slice(2),n?2:8):dn.test(e)?NaN:+e}function vn(e){return e}function bn(e){if(!pn(e))return!1;var t=nn(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}var yn,xn=Zt["__core-js_shared__"],_n=(yn=/[^.]+$/.exec(xn&&xn.keys&&xn.keys.IE_PROTO||""))?"Symbol(src)_1."+yn:"";var wn=Function.prototype.toString;function On(e){if(null!=e){try{return wn.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var An=/^\[object .+?Constructor\]$/,Rn=Function.prototype,kn=Object.prototype,Sn=Rn.toString,En=kn.hasOwnProperty,jn=RegExp("^"+Sn.call(En).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Tn(e){return!(!pn(e)||(t=e,_n&&_n in t))&&(bn(e)?jn:An).test(On(e));var t}function Cn(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Tn(n)?n:void 0}var Nn=Cn(Zt,"WeakMap"),$n=Object.create,Fn=function(){function e(){}return function(t){if(!pn(t))return{};if($n)return $n(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();var In=Date.now;var Ln,Pn,Dn,Un=function(){try{var e=Cn(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Bn=Un?function(e,t){return Un(e,"toString",{configurable:!0,enumerable:!1,value:(n=t,function(){return n}),writable:!0});var n}:vn,Mn=(Ln=Bn,Pn=0,Dn=0,function(){var e=In(),t=16-(e-Dn);if(Dn=e,t>0){if(++Pn>=800)return arguments[0]}else Pn=0;return Ln.apply(void 0,arguments)}),zn=/^(?:0|[1-9]\d*)$/;function qn(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&zn.test(e))&&e>-1&&e%1==0&&e<t}function Gn(e,t,n){"__proto__"==t&&Un?Un(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Hn(e,t){return e===t||e!=e&&t!=t}var Wn=Object.prototype.hasOwnProperty;function Vn(e,t,n){var i=e[t];Wn.call(e,t)&&Hn(i,n)&&(void 0!==n||t in e)||Gn(e,t,n)}var Zn=Math.max;function Kn(e,t){return Mn(function(e,t,n){return t=Zn(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,r=Zn(i.length-t,0),o=Array(r);++a<r;)o[a]=i[t+a];a=-1;for(var s=Array(t+1);++a<t;)s[a]=i[a];return s[t]=n(o),function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}(e,this,s)}}(e,t,vn),e+"")}function Xn(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function Yn(e){return null!=e&&Xn(e.length)&&!bn(e)}var Jn=Object.prototype;function Qn(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Jn)}function ei(e){return an(e)&&"[object Arguments]"==nn(e)}var ti=Object.prototype,ni=ti.hasOwnProperty,ii=ti.propertyIsEnumerable,ai=ei(function(){return arguments}())?ei:function(e){return an(e)&&ni.call(e,"callee")&&!ii.call(e,"callee")};var ri="object"==typeof exports&&exports&&!exports.nodeType&&exports,oi=ri&&"object"==typeof module&&module&&!module.nodeType&&module,si=oi&&oi.exports===ri?Zt.Buffer:void 0,ci=(si?si.isBuffer:void 0)||function(){return!1},li={};li["[object Float32Array]"]=li["[object Float64Array]"]=li["[object Int8Array]"]=li["[object Int16Array]"]=li["[object Int32Array]"]=li["[object Uint8Array]"]=li["[object Uint8ClampedArray]"]=li["[object Uint16Array]"]=li["[object Uint32Array]"]=!0,li["[object Arguments]"]=li["[object Array]"]=li["[object ArrayBuffer]"]=li["[object Boolean]"]=li["[object DataView]"]=li["[object Date]"]=li["[object Error]"]=li["[object Function]"]=li["[object Map]"]=li["[object Number]"]=li["[object Object]"]=li["[object RegExp]"]=li["[object Set]"]=li["[object String]"]=li["[object WeakMap]"]=!1;var ui="object"==typeof exports&&exports&&!exports.nodeType&&exports,pi=ui&&"object"==typeof module&&module&&!module.nodeType&&module,di=pi&&pi.exports===ui&&Wt.process,fi=function(){try{var e=pi&&pi.require&&pi.require("util").types;return e||di&&di.binding&&di.binding("util")}catch(e){}}(),mi=fi&&fi.isTypedArray,hi=mi?function(e){return function(t){return e(t)}}(mi):function(e){return an(e)&&Xn(e.length)&&!!li[nn(e)]},gi=Object.prototype.hasOwnProperty;function vi(e,t){var n=on(e),i=!n&&ai(e),a=!n&&!i&&ci(e),r=!n&&!i&&!a&&hi(e),o=n||i||a||r,s=o?function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}(e.length,String):[],c=s.length;for(var l in e)!t&&!gi.call(e,l)||o&&("length"==l||a&&("offset"==l||"parent"==l)||r&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||qn(l,c))||s.push(l);return s}function bi(e,t){return function(n){return e(t(n))}}var yi=bi(Object.keys,Object),xi=Object.prototype.hasOwnProperty;function _i(e){return Yn(e)?vi(e):function(e){if(!Qn(e))return yi(e);var t=[];for(var n in Object(e))xi.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}var wi=Object.prototype.hasOwnProperty;function Oi(e){if(!pn(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=Qn(e),n=[];for(var i in e)("constructor"!=i||!t&&wi.call(e,i))&&n.push(i);return n}function Ai(e){return Yn(e)?vi(e,!0):Oi(e)}var Ri=Cn(Object,"create");var ki=Object.prototype.hasOwnProperty;var Si=Object.prototype.hasOwnProperty;function Ei(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function ji(e,t){for(var n=e.length;n--;)if(Hn(e[n][0],t))return n;return-1}Ei.prototype.clear=function(){this.__data__=Ri?Ri(null):{},this.size=0},Ei.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Ei.prototype.get=function(e){var t=this.__data__;if(Ri){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return ki.call(t,e)?t[e]:void 0},Ei.prototype.has=function(e){var t=this.__data__;return Ri?void 0!==t[e]:Si.call(t,e)},Ei.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Ri&&void 0===t?"__lodash_hash_undefined__":t,this};var Ti=Array.prototype.splice;function Ci(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}Ci.prototype.clear=function(){this.__data__=[],this.size=0},Ci.prototype.delete=function(e){var t=this.__data__,n=ji(t,e);return!(n<0)&&(n==t.length-1?t.pop():Ti.call(t,n,1),--this.size,!0)},Ci.prototype.get=function(e){var t=this.__data__,n=ji(t,e);return n<0?void 0:t[n][1]},Ci.prototype.has=function(e){return ji(this.__data__,e)>-1},Ci.prototype.set=function(e,t){var n=this.__data__,i=ji(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this};var Ni=Cn(Zt,"Map");function $i(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function Fi(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}Fi.prototype.clear=function(){this.size=0,this.__data__={hash:new Ei,map:new(Ni||Ci),string:new Ei}},Fi.prototype.delete=function(e){var t=$i(this,e).delete(e);return this.size-=t?1:0,t},Fi.prototype.get=function(e){return $i(this,e).get(e)},Fi.prototype.has=function(e){return $i(this,e).has(e)},Fi.prototype.set=function(e,t){var n=$i(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this};function Ii(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var i=arguments,a=t?t.apply(this,i):i[0],r=n.cache;if(r.has(a))return r.get(a);var o=e.apply(this,i);return n.cache=r.set(a,o)||r,o};return n.cache=new(Ii.Cache||Fi),n}Ii.Cache=Fi;var Li=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Pi=/\\(\\)?/g;!function(e){var t=Ii(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Li,function(e,n,i,a){t.push(i?a.replace(Pi,"$1"):n||e)}),t});var Di=bi(Object.getPrototypeOf,Object),Ui=Function.prototype,Bi=Object.prototype,Mi=Ui.toString,zi=Bi.hasOwnProperty,qi=Mi.call(Object);function Gi(e){var t=this.__data__=new Ci(e);this.size=t.size}Gi.prototype.clear=function(){this.__data__=new Ci,this.size=0},Gi.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Gi.prototype.get=function(e){return this.__data__.get(e)},Gi.prototype.has=function(e){return this.__data__.has(e)},Gi.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Ci){var i=n.__data__;if(!Ni||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new Fi(i)}return n.set(e,t),this.size=n.size,this};var Hi="object"==typeof exports&&exports&&!exports.nodeType&&exports,Wi=Hi&&"object"==typeof module&&module&&!module.nodeType&&module,Vi=Wi&&Wi.exports===Hi?Zt.Buffer:void 0,Zi=Vi?Vi.allocUnsafe:void 0;var Ki=Object.prototype.propertyIsEnumerable,Xi=Object.getOwnPropertySymbols,Yi=Xi?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,i=null==e?0:e.length,a=0,r=[];++n<i;){var o=e[n];t(o,n,e)&&(r[a++]=o)}return r}(Xi(e),function(t){return Ki.call(e,t)}))}:function(){return[]};function Ji(e){return function(e,t,n){var i=t(e);return on(e)?i:function(e,t){for(var n=-1,i=t.length,a=e.length;++n<i;)e[a+n]=t[n];return e}(i,n(e))}(e,_i,Yi)}var Qi=Cn(Zt,"DataView"),ea=Cn(Zt,"Promise"),ta=Cn(Zt,"Set"),na="[object Map]",ia="[object Promise]",aa="[object Set]",ra="[object WeakMap]",oa="[object DataView]",sa=On(Qi),ca=On(Ni),la=On(ea),ua=On(ta),pa=On(Nn),da=nn;(Qi&&da(new Qi(new ArrayBuffer(1)))!=oa||Ni&&da(new Ni)!=na||ea&&da(ea.resolve())!=ia||ta&&da(new ta)!=aa||Nn&&da(new Nn)!=ra)&&(da=function(e){var t=nn(e),n="[object Object]"==t?e.constructor:void 0,i=n?On(n):"";if(i)switch(i){case sa:return oa;case ca:return na;case la:return ia;case ua:return aa;case pa:return ra}return t});var fa=da,ma=Zt.Uint8Array;function ha(e,t){var n,i,a=t?(n=e.buffer,i=new n.constructor(n.byteLength),new ma(i).set(new ma(n)),i):e.buffer;return new e.constructor(a,e.byteOffset,e.length)}function ga(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Fi;++t<n;)this.add(e[t])}function va(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(t(e[n],n,e))return!0;return!1}function ba(e,t){return e.has(t)}ga.prototype.add=ga.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},ga.prototype.has=function(e){return this.__data__.has(e)};function ya(e,t,n,i,a,r){var o=1&n,s=e.length,c=t.length;if(s!=c&&!(o&&c>s))return!1;var l=r.get(e),u=r.get(t);if(l&&u)return l==t&&u==e;var p=-1,d=!0,f=2&n?new ga:void 0;for(r.set(e,t),r.set(t,e);++p<s;){var m=e[p],h=t[p];if(i)var g=o?i(h,m,p,t,e,r):i(m,h,p,e,t,r);if(void 0!==g){if(g)continue;d=!1;break}if(f){if(!va(t,function(e,t){if(!ba(f,t)&&(m===e||a(m,e,n,i,r)))return f.push(t)})){d=!1;break}}else if(m!==h&&!a(m,h,n,i,r)){d=!1;break}}return r.delete(e),r.delete(t),d}function xa(e){var t=-1,n=Array(e.size);return e.forEach(function(e,i){n[++t]=[i,e]}),n}function _a(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var wa=Kt?Kt.prototype:void 0,Oa=wa?wa.valueOf:void 0;var Aa=Object.prototype.hasOwnProperty;var Ra="[object Arguments]",ka="[object Array]",Sa="[object Object]",Ea=Object.prototype.hasOwnProperty;function ja(e,t,n,i,a,r){var o=on(e),s=on(t),c=o?ka:fa(e),l=s?ka:fa(t),u=(c=c==Ra?Sa:c)==Sa,p=(l=l==Ra?Sa:l)==Sa,d=c==l;if(d&&ci(e)){if(!ci(t))return!1;o=!0,u=!1}if(d&&!u)return r||(r=new Gi),o||hi(e)?ya(e,t,n,i,a,r):function(e,t,n,i,a,r,o){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!r(new ma(e),new ma(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Hn(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=xa;case"[object Set]":var c=1&i;if(s||(s=_a),e.size!=t.size&&!c)return!1;var l=o.get(e);if(l)return l==t;i|=2,o.set(e,t);var u=ya(s(e),s(t),i,a,r,o);return o.delete(e),u;case"[object Symbol]":if(Oa)return Oa.call(e)==Oa.call(t)}return!1}(e,t,c,n,i,a,r);if(!(1&n)){var f=u&&Ea.call(e,"__wrapped__"),m=p&&Ea.call(t,"__wrapped__");if(f||m){var h=f?e.value():e,g=m?t.value():t;return r||(r=new Gi),a(h,g,n,i,r)}}return!!d&&(r||(r=new Gi),function(e,t,n,i,a,r){var o=1&n,s=Ji(e),c=s.length;if(c!=Ji(t).length&&!o)return!1;for(var l=c;l--;){var u=s[l];if(!(o?u in t:Aa.call(t,u)))return!1}var p=r.get(e),d=r.get(t);if(p&&d)return p==t&&d==e;var f=!0;r.set(e,t),r.set(t,e);for(var m=o;++l<c;){var h=e[u=s[l]],g=t[u];if(i)var v=o?i(g,h,u,t,e,r):i(h,g,u,e,t,r);if(!(void 0===v?h===g||a(h,g,n,i,r):v)){f=!1;break}m||(m="constructor"==u)}if(f&&!m){var b=e.constructor,y=t.constructor;b==y||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof y&&y instanceof y||(f=!1)}return r.delete(e),r.delete(t),f}(e,t,n,i,a,r))}function Ta(e,t,n,i,a){return e===t||(null==e||null==t||!an(e)&&!an(t)?e!=e&&t!=t:ja(e,t,n,i,Ta,a))}var Ca,Na=function(e,t,n){for(var i=-1,a=Object(e),r=n(e),o=r.length;o--;){var s=r[Ca?o:++i];if(!1===t(a[s],s,a))break}return e};var $a=function(){return Zt.Date.now()},Fa=Math.max,Ia=Math.min;function La(e,t,n){var i,a,r,o,s,c,l=0,u=!1,p=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function f(t){var n=i,r=a;return i=a=void 0,l=t,o=e.apply(r,n)}function m(e){var n=e-c;return void 0===c||n>=t||n<0||p&&e-l>=r}function h(){var e=$a();if(m(e))return g(e);s=setTimeout(h,function(e){var n=t-(e-c);return p?Ia(n,r-(e-l)):n}(e))}function g(e){return s=void 0,d&&i?f(e):(i=a=void 0,o)}function v(){var e=$a(),n=m(e);if(i=arguments,a=this,c=e,n){if(void 0===s)return function(e){return l=e,s=setTimeout(h,t),u?f(e):o}(c);if(p)return clearTimeout(s),s=setTimeout(h,t),f(c)}return void 0===s&&(s=setTimeout(h,t)),o}return t=gn(t)||0,pn(n)&&(u=!!n.leading,r=(p="maxWait"in n)?Fa(gn(n.maxWait)||0,t):r,d="trailing"in n?!!n.trailing:d),v.cancel=function(){void 0!==s&&clearTimeout(s),l=0,i=c=a=s=void 0},v.flush=function(){return void 0===s?o:g($a())},v}function Pa(e,t,n){(void 0!==n&&!Hn(e[t],n)||void 0===n&&!(t in e))&&Gn(e,t,n)}function Da(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}function Ua(e){return function(e,t,n,i){var a=!n;n||(n={});for(var r=-1,o=t.length;++r<o;){var s=t[r],c=i?i(n[s],e[s],s,n,e):void 0;void 0===c&&(c=e[s]),a?Gn(n,s,c):Vn(n,s,c)}return n}(e,Ai(e))}function Ba(e,t,n,i,a,r,o){var s=Da(e,n),c=Da(t,n),l=o.get(c);if(l)Pa(e,n,l);else{var u,p=r?r(s,c,n+"",e,t,o):void 0,d=void 0===p;if(d){var f=on(c),m=!f&&ci(c),h=!f&&!m&&hi(c);p=c,f||m||h?on(s)?p=s:an(u=s)&&Yn(u)?p=function(e,t){var n=-1,i=e.length;for(t||(t=Array(i));++n<i;)t[n]=e[n];return t}(s):m?(d=!1,p=function(e,t){if(t)return e.slice();var n=e.length,i=Zi?Zi(n):new e.constructor(n);return e.copy(i),i}(c,!0)):h?(d=!1,p=ha(c,!0)):p=[]:function(e){if(!an(e)||"[object Object]"!=nn(e))return!1;var t=Di(e);if(null===t)return!0;var n=zi.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Mi.call(n)==qi}(c)||ai(c)?(p=s,ai(s)?p=Ua(s):pn(s)&&!bn(s)||(p=function(e){return"function"!=typeof e.constructor||Qn(e)?{}:Fn(Di(e))}(c))):d=!1}d&&(o.set(c,p),a(p,c,i,r,o),o.delete(c)),Pa(e,n,p)}}function Ma(e,t,n,i,a){e!==t&&Na(t,function(r,o){if(a||(a=new Gi),pn(r))Ba(e,t,o,n,Ma,i,a);else{var s=i?i(Da(e,o),r,o+"",e,t,a):void 0;void 0===s&&(s=r),Pa(e,o,s)}},Ai)}function za(e,t){return Ta(e,t)}var qa;qa=function(e,t,n){Ma(e,t,n)},Kn(function(e,t){var n=-1,i=t.length,a=i>1?t[i-1]:void 0,r=i>2?t[2]:void 0;for(a=qa.length>3&&"function"==typeof a?(i--,a):void 0,r&&function(e,t,n){if(!pn(n))return!1;var i=typeof t;return!!("number"==i?Yn(n)&&qn(t,n.length):"string"==i&&t in n)&&Hn(n[t],e)}(t[0],t[1],r)&&(a=i<3?void 0:a,i=1),e=Object(e);++n<i;){var o=t[n];o&&qa(e,o,n,a)}return e});var Ga=(0).constructor;Ga.isFinite,Ga.isInteger,[].constructor.isArray;new(function(){function e(e){this.size=e,this.reset()}return e.prototype.reset=function(){this.oldestIndex=0,this.map={},this.cachedKeys=new Array(this.size)},e.prototype.get=function(e){return this.map[e]},e.prototype.set=function(e,t){this.map[e]=t;var n=this.cachedKeys[this.oldestIndex];void 0!==n&&delete this.map[n],this.cachedKeys[this.oldestIndex]=e,this.oldestIndex++,this.oldestIndex%=this.size},e}())(1e3);var Ha={exports:{}},Wa=function(...e){try{return JSON.stringify(...e)}catch(e){return"[Cannot display object: "+e.message+"]"}};!function(e,t){const n=Wa;Ha.exports=class extends Error{constructor(e){super(e.filter(e=>""!==e).map(e=>"string"==typeof e?e:e instanceof Error?e.message:n(e)).join(" ")||"Unknown error"),"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,t.assert)}}}(0,Ha.exports);var Va=Ha.exports;const Za=Va;var Ka=function(e,...t){if(!e){if(1===t.length&&t[0]instanceof Error)throw t[0];throw new Za(t)}};const Xa=Ka,Ya={};var Ja=function(e,t,n){if(!1===t||null==t)return e;"string"==typeof(n=n||{})&&(n={separator:n});const i=Array.isArray(t);Xa(!i||!n.separator,"Separator option is not valid for array-based chain");const a=i?t:t.split(n.separator||".");let r=e;for(let e=0;e<a.length;++e){let i=a[e];const o=n.iterables&&Ya.iterables(r);if(Array.isArray(r)||"set"===o){const e=Number(i);Number.isInteger(e)&&(i=e<0?r.length+e:e)}if(!r||"function"==typeof r&&!1===n.functions||!o&&void 0===r[i]){Xa(!n.strict||e+1===a.length,"Missing segment",i,"in reach path ",t),Xa("object"==typeof r||!0===n.functions||"function"!=typeof r,"Invalid segment",i,"in reach path ",t),r=n.default;break}r=o?"set"===o?[...r][i]:r.get(i):r[i]}return r};Ya.iterables=function(e){return e instanceof Set?"set":e instanceof Map?"map":void 0};var Qa={exports:{}};!function(e,t){const n={};t=Qa.exports={array:Array.prototype,buffer:Buffer&&Buffer.prototype,date:Date.prototype,error:Error.prototype,generic:Object.prototype,map:Map.prototype,promise:Promise.prototype,regex:RegExp.prototype,set:Set.prototype,weakMap:WeakMap.prototype,weakSet:WeakSet.prototype},n.typeMap=new Map([["[object Error]",t.error],["[object Map]",t.map],["[object Promise]",t.promise],["[object Set]",t.set],["[object WeakMap]",t.weakMap],["[object WeakSet]",t.weakSet]]),t.getInternalProto=function(e){if(Array.isArray(e))return t.array;if(Buffer&&e instanceof Buffer)return t.buffer;if(e instanceof Date)return t.date;if(e instanceof RegExp)return t.regex;if(e instanceof Error)return t.error;const i=Object.prototype.toString.call(e);return n.typeMap.get(i)||t.generic}}(0,Qa.exports);var er=Qa.exports,tr={keys:function(e,t={}){return!1!==t.symbols?Reflect.ownKeys(e):Object.getOwnPropertyNames(e)}};const nr=Ja,ir=er,ar=tr,rr={needsProtoHack:new Set([ir.set,ir.map,ir.weakSet,ir.weakMap])};var or=rr.clone=function(e,t={},n=null){if("object"!=typeof e||null===e)return e;let i=rr.clone,a=n;if(t.shallow){if(!0!==t.shallow)return rr.cloneWithShallow(e,t);i=e=>e}else if(a){const t=a.get(e);if(t)return t}else a=new Map;const r=ir.getInternalProto(e);if(r===ir.buffer)return Buffer&&Buffer.from(e);if(r===ir.date)return new Date(e.getTime());if(r===ir.regex)return new RegExp(e);const o=rr.base(e,r,t);if(o===e)return e;if(a&&a.set(e,o),r===ir.set)for(const n of e)o.add(i(n,t,a));else if(r===ir.map)for(const[n,r]of e)o.set(n,i(r,t,a));const s=ar.keys(e,t);for(const n of s){if("__proto__"===n)continue;if(r===ir.array&&"length"===n){o.length=e.length;continue}const s=Object.getOwnPropertyDescriptor(e,n);s?s.get||s.set?Object.defineProperty(o,n,s):s.enumerable?o[n]=i(e[n],t,a):Object.defineProperty(o,n,{enumerable:!1,writable:!0,configurable:!0,value:i(e[n],t,a)}):Object.defineProperty(o,n,{enumerable:!0,writable:!0,configurable:!0,value:i(e[n],t,a)})}return o};rr.cloneWithShallow=function(e,t){const n=t.shallow;(t=Object.assign({},t)).shallow=!1;const i=new Map;for(const t of n){const n=nr(e,t);"object"!=typeof n&&"function"!=typeof n||i.set(n,n)}return rr.clone(e,t,i)},rr.base=function(e,t,n){if(!1===n.prototype)return rr.needsProtoHack.has(t)?new t.constructor:t===ir.array?[]:{};const i=Object.getPrototypeOf(e);if(i&&i.isImmutable)return e;if(t===ir.array){const e=[];return i!==t&&Object.setPrototypeOf(e,i),e}if(rr.needsProtoHack.has(t)){const e=new i.constructor;return i!==t&&Object.setPrototypeOf(e,i),e}return Object.create(i)};var sr,cr={},lr={},ur={name:"joi",description:"Object schema validation",version:"17.13.3",repository:"git://github.com/hapijs/joi",main:"lib/index.js",types:"lib/index.d.ts",browser:"dist/joi-browser.min.js",files:["lib/**/*","dist/*"],keywords:["schema","validation"],dependencies:{"@hapi/hoek":"^9.3.0","@hapi/topo":"^5.1.0","@sideway/address":"^4.1.5","@sideway/formula":"^3.0.1","@sideway/pinpoint":"^2.0.0"},devDependencies:{"@hapi/bourne":"2.x.x","@hapi/code":"8.x.x","@hapi/joi-legacy-test":"npm:@hapi/joi@15.x.x","@hapi/lab":"^25.1.3","@types/node":"^14.18.63",typescript:"4.3.x"},scripts:{prepublishOnly:"cd browser && npm install && npm run build",test:"lab -t 100 -a @hapi/code -L -Y","test-cov-html":"lab -r html -o coverage.html -a @hapi/code"},license:"BSD-3-Clause"},pr={};function dr(){if(sr)return pr;sr=1;const e=Es(),t={};return t.wrap=e.string().min(1).max(2).allow(!1),pr.preferences=e.object({allowUnknown:e.boolean(),abortEarly:e.boolean(),artifacts:e.boolean(),cache:e.boolean(),context:e.object(),convert:e.boolean(),dateFormat:e.valid("date","iso","string","time","utc"),debug:e.boolean(),errors:{escapeHtml:e.boolean(),label:e.valid("path","key",!1),language:[e.string(),e.object().ref()],render:e.boolean(),stack:e.boolean(),wrap:{label:t.wrap,array:t.wrap,string:t.wrap}},externals:e.boolean(),messages:e.object(),noDefaults:e.boolean(),nonEnumerables:e.boolean(),presence:e.valid("required","optional","forbidden"),skipFunctions:e.boolean(),stripUnknown:e.object({arrays:e.boolean(),objects:e.boolean()}).or("arrays","objects").allow(!0,!1),warnings:e.boolean()}).strict(),t.nameRx=/^[a-zA-Z0-9]\w*$/,t.rule=e.object({alias:e.array().items(e.string().pattern(t.nameRx)).single(),args:e.array().items(e.string(),e.object({name:e.string().pattern(t.nameRx).required(),ref:e.boolean(),assert:e.alternatives([e.function(),e.object().schema()]).conditional("ref",{is:!0,then:e.required()}),normalize:e.function(),message:e.string().when("assert",{is:e.function(),then:e.required()})})),convert:e.boolean(),manifest:e.boolean(),method:e.function().allow(!1),multi:e.boolean(),validate:e.function()}),pr.extension=e.object({type:e.alternatives([e.string(),e.object().regex()]).required(),args:e.function(),cast:e.object().pattern(t.nameRx,e.object({from:e.function().maxArity(1).required(),to:e.function().minArity(1).maxArity(2).required()})),base:e.object().schema().when("type",{is:e.object().regex(),then:e.forbidden()}),coerce:[e.function().maxArity(3),e.object({method:e.function().maxArity(3).required(),from:e.array().items(e.string()).single()})],flags:e.object().pattern(t.nameRx,e.object({setter:e.string(),default:e.any()})),manifest:{build:e.function().arity(2)},messages:[e.object(),e.string()],modifiers:e.object().pattern(t.nameRx,e.function().minArity(1).maxArity(2)),overrides:e.object().pattern(t.nameRx,e.function()),prepare:e.function().maxArity(3),rebuild:e.function().arity(1),rules:e.object().pattern(t.nameRx,t.rule),terms:e.object().pattern(t.nameRx,e.object({init:e.array().allow(null).required(),manifest:e.object().pattern(/.+/,[e.valid("schema","single"),e.object({mapped:e.object({from:e.string().required(),to:e.string().required()}).required()})])})),validate:e.function().maxArity(3)}).strict(),pr.extensions=e.array().items(e.object(),e.function().arity(1)).strict(),t.desc={buffer:e.object({buffer:e.string()}),func:e.object({function:e.function().required(),options:{literal:!0}}),override:e.object({override:!0}),ref:e.object({ref:e.object({type:e.valid("value","global","local"),path:e.array().required(),separator:e.string().length(1).allow(!1),ancestor:e.number().min(0).integer().allow("root"),map:e.array().items(e.array().length(2)).min(1),adjust:e.function(),iterables:e.boolean(),in:e.boolean(),render:e.boolean()}).required()}),regex:e.object({regex:e.string().min(3)}),special:e.object({special:e.valid("deep").required()}),template:e.object({template:e.string().required(),options:e.object()}),value:e.object({value:e.alternatives([e.object(),e.array()]).required()})},t.desc.entity=e.alternatives([e.array().items(e.link("...")),e.boolean(),e.function(),e.number(),e.string(),t.desc.buffer,t.desc.func,t.desc.ref,t.desc.regex,t.desc.special,t.desc.template,t.desc.value,e.link("/")]),t.desc.values=e.array().items(null,e.boolean(),e.function(),e.number().allow(1/0,-1/0),e.string().allow(""),e.symbol(),t.desc.buffer,t.desc.func,t.desc.override,t.desc.ref,t.desc.regex,t.desc.template,t.desc.value),t.desc.messages=e.object().pattern(/.+/,[e.string(),t.desc.template,e.object().pattern(/.+/,[e.string(),t.desc.template])]),pr.description=e.object({type:e.string().required(),flags:e.object({cast:e.string(),default:e.any(),description:e.string(),empty:e.link("/"),failover:t.desc.entity,id:e.string(),label:e.string(),only:!0,presence:["optional","required","forbidden"],result:["raw","strip"],strip:e.boolean(),unit:e.string()}).unknown(),preferences:{allowUnknown:e.boolean(),abortEarly:e.boolean(),artifacts:e.boolean(),cache:e.boolean(),convert:e.boolean(),dateFormat:["date","iso","string","time","utc"],errors:{escapeHtml:e.boolean(),label:["path","key"],language:[e.string(),t.desc.ref],wrap:{label:t.wrap,array:t.wrap}},externals:e.boolean(),messages:t.desc.messages,noDefaults:e.boolean(),nonEnumerables:e.boolean(),presence:["required","optional","forbidden"],skipFunctions:e.boolean(),stripUnknown:e.object({arrays:e.boolean(),objects:e.boolean()}).or("arrays","objects").allow(!0,!1),warnings:e.boolean()},allow:t.desc.values,invalid:t.desc.values,rules:e.array().min(1).items({name:e.string().required(),args:e.object().min(1),keep:e.boolean(),message:[e.string(),t.desc.messages],warn:e.boolean()}),keys:e.object().pattern(/.*/,e.link("/")),link:t.desc.ref}).pattern(/^[a-z]\w*$/,e.any()),pr}var fr={},mr={exports:{}};const hr={};var gr=function(e){if(!e)return"";let t="";for(let n=0;n<e.length;++n){const i=e.charCodeAt(n);hr.isSafe(i)?t+=e[n]:t+=hr.escapeHtmlChar(i)}return t};hr.escapeHtmlChar=function(e){const t=hr.namedHtml.get(e);if(t)return t;if(e>=256)return"&#"+e+";";return`&#x${e.toString(16).padStart(2,"0")};`},hr.isSafe=function(e){return hr.safeCharCodes.has(e)},hr.namedHtml=new Map([[38,"&"],[60,"<"],[62,">"],[34,"""],[160," "],[162,"¢"],[163,"£"],[164,"¤"],[169,"©"],[174,"®"]]),hr.safeCharCodes=function(){const e=new Set;for(let t=32;t<123;++t)(t>=97||t>=65&&t<=90||t>=48&&t<=57||32===t||46===t||44===t||45===t||58===t||95===t)&&e.add(t);return e}();var vr={};!function(e){const t={operators:["!","^","*","/","%","+","-","<","<=",">",">=","==","!=","&&","||","??"],operatorCharacters:["!","^","*","/","%","+","-","<","=",">","&","|","?"],operatorsOrder:[["^"],["*","/","%"],["+","-"],["<","<=",">",">="],["==","!="],["&&"],["||","??"]],operatorsPrefix:["!","n"],literals:{'"':'"',"`":"`","'":"'","[":"]"},numberRx:/^(?:[0-9]*(\.[0-9]*)?){1}$/,tokenRx:/^[\w\$\#\.\@\:\{\}]+$/,symbol:Symbol("formula"),settings:Symbol("settings")};e.Parser=class{constructor(e,n={}){if(!n[t.settings]&&n.constants)for(const e in n.constants){const t=n.constants[e];if(null!==t&&!["boolean","number","string"].includes(typeof t))throw new Error(`Formula constant