[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/media/com_media/js/ -> media-manager.min.js (source)

   1  function makeMap(e,t){const o=Object.create(null),n=e.split(",");for(let e=0;e<n.length;e++)o[n[e]]=!0;return t?e=>!!o[e.toLowerCase()]:e=>!!o[e]}const specialBooleanAttrs="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",isSpecialBooleanAttr=makeMap(specialBooleanAttrs);function includeBooleanAttr(e){return!!e||""===e}function normalizeStyle(e){if(isArray(e)){const t={};for(let o=0;o<e.length;o++){const n=e[o],i=isString(n)?parseStringStyle(n):normalizeStyle(n);if(i)for(const e in i)t[e]=i[e]}return t}return isString(e)||isObject$1(e)?e:void 0}const listDelimiterRE=/;(?![^(]*\))/g,propertyDelimiterRE=/:(.+)/;function parseStringStyle(e){const t={};return e.split(listDelimiterRE).forEach((e=>{if(e){const o=e.split(propertyDelimiterRE);o.length>1&&(t[o[0].trim()]=o[1].trim())}})),t}function normalizeClass(e){let t="";if(isString(e))t=e;else if(isArray(e))for(let o=0;o<e.length;o++){const n=normalizeClass(e[o]);n&&(t+=n+" ")}else if(isObject$1(e))for(const o in e)e[o]&&(t+=o+" ");return t.trim()}const toDisplayString=e=>null==e?"":isArray(e)||isObject$1(e)&&(e.toString===objectToString||!isFunction(e.toString))?JSON.stringify(e,replacer,2):String(e),replacer=(e,t)=>t&&t.__v_isRef?replacer(e,t.value):isMap(t)?{[`Map($t.size})`]:[...t.entries()].reduce(((e,t)=>{let[o,n]=t;return e[`$o} =>`]=n,e}),{})}:isSet(t)?{[`Set($t.size})`]:[...t.values()]}:!isObject$1(t)||isArray(t)||isPlainObject(t)?t:String(t),EMPTY_OBJ={},EMPTY_ARR=[],NOOP=()=>{},NO=()=>!1,onRE=/^on[^a-z]/,isOn=e=>onRE.test(e),isModelListener=e=>e.startsWith("onUpdate:"),extend=Object.assign,remove=(e,t)=>{const o=e.indexOf(t);o>-1&&e.splice(o,1)},hasOwnProperty=Object.prototype.hasOwnProperty,hasOwn=(e,t)=>hasOwnProperty.call(e,t),isArray=Array.isArray,isMap=e=>"[object Map]"===toTypeString(e),isSet=e=>"[object Set]"===toTypeString(e),isFunction=e=>"function"==typeof e,isString=e=>"string"==typeof e,isSymbol=e=>"symbol"==typeof e,isObject$1=e=>null!==e&&"object"==typeof e,isPromise$1=e=>isObject$1(e)&&isFunction(e.then)&&isFunction(e.catch),objectToString=Object.prototype.toString,toTypeString=e=>objectToString.call(e),toRawType=e=>toTypeString(e).slice(8,-1),isPlainObject=e=>"[object Object]"===toTypeString(e),isIntegerKey=e=>isString(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,isReservedProp=makeMap(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),cacheStringFunction=e=>{const t=Object.create(null);return o=>t[o]||(t[o]=e(o))},camelizeRE=/-(\w)/g,camelize=cacheStringFunction((e=>e.replace(camelizeRE,((e,t)=>t?t.toUpperCase():"")))),hyphenateRE=/\B([A-Z])/g,hyphenate=cacheStringFunction((e=>e.replace(hyphenateRE,"-$1").toLowerCase())),capitalize=cacheStringFunction((e=>e.charAt(0).toUpperCase()+e.slice(1))),toHandlerKey=cacheStringFunction((e=>e?`on$capitalize(e)}`:"")),hasChanged=(e,t)=>!Object.is(e,t),invokeArrayFns=(e,t)=>{for(let o=0;o<e.length;o++)e[o](t)},def=(e,t,o)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:o})},toNumber=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let _globalThis;const getGlobalThis=()=>_globalThis||(_globalThis="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{});let activeEffectScope;const effectScopeStack=[];class EffectScope{constructor(e){void 0===e&&(e=!1),this.active=!0,this.effects=[],this.cleanups=[],!e&&activeEffectScope&&(this.parent=activeEffectScope,this.index=(activeEffectScope.scopes||(activeEffectScope.scopes=[])).push(this)-1)}run(e){if(this.active)try{return this.on(),e()}finally{this.off()}}on(){this.active&&(effectScopeStack.push(this),activeEffectScope=this)}off(){this.active&&(effectScopeStack.pop(),activeEffectScope=effectScopeStack[effectScopeStack.length-1])}stop(e){if(this.active){if(this.effects.forEach((e=>e.stop())),this.cleanups.forEach((e=>e())),this.scopes&&this.scopes.forEach((e=>e.stop(!0))),this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.active=!1}}}function recordEffectScope(e,t){(t=t||activeEffectScope)&&t.active&&t.effects.push(e)}const createDep=e=>{const t=new Set(e);return t.w=0,t.n=0,t},wasTracked=e=>(e.w&trackOpBit)>0,newTracked=e=>(e.n&trackOpBit)>0,initDepMarkers=e=>{let{deps:t}=e;if(t.length)for(let e=0;e<t.length;e++)t[e].w|=trackOpBit},finalizeDepMarkers=e=>{const{deps:t}=e;if(t.length){let o=0;for(let n=0;n<t.length;n++){const i=t[n];wasTracked(i)&&!newTracked(i)?i.delete(e):t[o++]=i,i.w&=~trackOpBit,i.n&=~trackOpBit}t.length=o}},targetMap=new WeakMap;let effectTrackDepth=0,trackOpBit=1;const maxMarkerBits=30,effectStack=[];let activeEffect;const ITERATE_KEY=Symbol(""),MAP_KEY_ITERATE_KEY=Symbol("");class ReactiveEffect{constructor(e,t,o){void 0===t&&(t=null),this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],recordEffectScope(this,o)}run(){if(!this.active)return this.fn();if(!effectStack.includes(this))try{return effectStack.push(activeEffect=this),enableTracking(),trackOpBit=1<<++effectTrackDepth,effectTrackDepth<=30?initDepMarkers(this):cleanupEffect(this),this.fn()}finally{effectTrackDepth<=30&&finalizeDepMarkers(this),trackOpBit=1<<--effectTrackDepth,resetTracking(),effectStack.pop();const e=effectStack.length;activeEffect=e>0?effectStack[e-1]:void 0}}stop(){this.active&&(cleanupEffect(this),this.onStop&&this.onStop(),this.active=!1)}}function cleanupEffect(e){const{deps:t}=e;if(t.length){for(let o=0;o<t.length;o++)t[o].delete(e);t.length=0}}let shouldTrack=!0;const trackStack=[];function pauseTracking(){trackStack.push(shouldTrack),shouldTrack=!1}function enableTracking(){trackStack.push(shouldTrack),shouldTrack=!0}function resetTracking(){const e=trackStack.pop();shouldTrack=void 0===e||e}function track(e,t,o){if(!isTracking())return;let n=targetMap.get(e);n||targetMap.set(e,n=new Map);let i=n.get(o);i||n.set(o,i=createDep()),trackEffects(i)}function isTracking(){return shouldTrack&&void 0!==activeEffect}function trackEffects(e,t){let o=!1;effectTrackDepth<=30?newTracked(e)||(e.n|=trackOpBit,o=!wasTracked(e)):o=!e.has(activeEffect),o&&(e.add(activeEffect),activeEffect.deps.push(e))}function trigger$1(e,t,o,n,i,r){const s=targetMap.get(e);if(!s)return;let a=[];if("clear"===t)a=[...s.values()];else if("length"===o&&isArray(e))s.forEach(((e,t)=>{("length"===t||t>=n)&&a.push(e)}));else switch(void 0!==o&&a.push(s.get(o)),t){case"add":isArray(e)?isIntegerKey(o)&&a.push(s.get("length")):(a.push(s.get(ITERATE_KEY)),isMap(e)&&a.push(s.get(MAP_KEY_ITERATE_KEY)));break;case"delete":isArray(e)||(a.push(s.get(ITERATE_KEY)),isMap(e)&&a.push(s.get(MAP_KEY_ITERATE_KEY)));break;case"set":isMap(e)&&a.push(s.get(ITERATE_KEY))}if(1===a.length)a[0]&&triggerEffects(a[0]);else{const e=[];for(const t of a)t&&e.push(...t);triggerEffects(createDep(e))}}function triggerEffects(e,t){for(const t of isArray(e)?e:[...e])(t!==activeEffect||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}const isNonTrackableKeys=makeMap("__proto__,__v_isRef,__isVue"),builtInSymbols=new Set(Object.getOwnPropertyNames(Symbol).map((e=>Symbol[e])).filter(isSymbol)),get=createGetter(),shallowGet=createGetter(!1,!0),readonlyGet=createGetter(!0),arrayInstrumentations=createArrayInstrumentations();function createArrayInstrumentations(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(){const e=toRaw(this);for(let t=0,o=this.length;t<o;t++)track(e,"get",t+"");for(var o=arguments.length,n=new Array(o),i=0;i<o;i++)n[i]=arguments[i];const r=e[t](...n);return-1===r||!1===r?e[t](...n.map(toRaw)):r}})),["push","pop","shift","unshift","splice"].forEach((t=>{e[t]=function(){pauseTracking();for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];const i=toRaw(this)[t].apply(this,o);return resetTracking(),i}})),e}function createGetter(e,t){return void 0===e&&(e=!1),void 0===t&&(t=!1),function(o,n,i){if("__v_isReactive"===n)return!e;if("__v_isReadonly"===n)return e;if("__v_raw"===n&&i===(e?t?shallowReadonlyMap:readonlyMap:t?shallowReactiveMap:reactiveMap).get(o))return o;const r=isArray(o);if(!e&&r&&hasOwn(arrayInstrumentations,n))return Reflect.get(arrayInstrumentations,n,i);const s=Reflect.get(o,n,i);if(isSymbol(n)?builtInSymbols.has(n):isNonTrackableKeys(n))return s;if(e||track(o,"get",n),t)return s;if(isRef(s)){return!r||!isIntegerKey(n)?s.value:s}return isObject$1(s)?e?readonly(s):reactive(s):s}}const set=createSetter(),shallowSet=createSetter(!0);function createSetter(e){return void 0===e&&(e=!1),function(t,o,n,i){let r=t[o];if(!e&&!isReadonly(n)&&(n=toRaw(n),r=toRaw(r),!isArray(t)&&isRef(r)&&!isRef(n)))return r.value=n,!0;const s=isArray(t)&&isIntegerKey(o)?Number(o)<t.length:hasOwn(t,o),a=Reflect.set(t,o,n,i);return t===toRaw(i)&&(s?hasChanged(n,r)&&trigger$1(t,"set",o,n):trigger$1(t,"add",o,n)),a}}function deleteProperty(e,t){const o=hasOwn(e,t);e[t];const n=Reflect.deleteProperty(e,t);return n&&o&&trigger$1(e,"delete",t,void 0),n}function has(e,t){const o=Reflect.has(e,t);return isSymbol(t)&&builtInSymbols.has(t)||track(e,"has",t),o}function ownKeys(e){return track(e,"iterate",isArray(e)?"length":ITERATE_KEY),Reflect.ownKeys(e)}const mutableHandlers={get:get,set:set,deleteProperty:deleteProperty,has:has,ownKeys:ownKeys},readonlyHandlers={get:readonlyGet,set:(e,t)=>!0,deleteProperty:(e,t)=>!0},shallowReactiveHandlers=extend({},mutableHandlers,{get:shallowGet,set:shallowSet}),toShallow=e=>e,getProto=e=>Reflect.getPrototypeOf(e);function get$1(e,t,o,n){void 0===o&&(o=!1),void 0===n&&(n=!1);const i=toRaw(e=e.__v_raw),r=toRaw(t);t!==r&&!o&&track(i,"get",t),!o&&track(i,"get",r);const{has:s}=getProto(i),a=n?toShallow:o?toReadonly:toReactive;return s.call(i,t)?a(e.get(t)):s.call(i,r)?a(e.get(r)):void(e!==i&&e.get(t))}function has$1(e,t){void 0===t&&(t=!1);const o=this.__v_raw,n=toRaw(o),i=toRaw(e);return e!==i&&!t&&track(n,"has",e),!t&&track(n,"has",i),e===i?o.has(e):o.has(e)||o.has(i)}function size(e,t){return void 0===t&&(t=!1),e=e.__v_raw,!t&&track(toRaw(e),"iterate",ITERATE_KEY),Reflect.get(e,"size",e)}function add(e){e=toRaw(e);const t=toRaw(this);return getProto(t).has.call(t,e)||(t.add(e),trigger$1(t,"add",e,e)),this}function set$1(e,t){t=toRaw(t);const o=toRaw(this),{has:n,get:i}=getProto(o);let r=n.call(o,e);r||(e=toRaw(e),r=n.call(o,e));const s=i.call(o,e);return o.set(e,t),r?hasChanged(t,s)&&trigger$1(o,"set",e,t):trigger$1(o,"add",e,t),this}function deleteEntry(e){const t=toRaw(this),{has:o,get:n}=getProto(t);let i=o.call(t,e);i||(e=toRaw(e),i=o.call(t,e)),n&&n.call(t,e);const r=t.delete(e);return i&&trigger$1(t,"delete",e,void 0),r}function clear(){const e=toRaw(this),t=0!==e.size,o=e.clear();return t&&trigger$1(e,"clear",void 0,void 0),o}function createForEach(e,t){return function(o,n){const i=this,r=i.__v_raw,s=toRaw(r),a=t?toShallow:e?toReadonly:toReactive;return!e&&track(s,"iterate",ITERATE_KEY),r.forEach(((e,t)=>o.call(n,a(e),a(t),i)))}}function createIterableMethod(e,t,o){return function(){const n=this.__v_raw,i=toRaw(n),r=isMap(i),s="entries"===e||e===Symbol.iterator&&r,a="keys"===e&&r,c=n[e](...arguments),l=o?toShallow:t?toReadonly:toReactive;return!t&&track(i,"iterate",a?MAP_KEY_ITERATE_KEY:ITERATE_KEY),{next(){const{value:e,done:t}=c.next();return t?{value:e,done:t}:{value:s?[l(e[0]),l(e[1])]:l(e),done:t}},[Symbol.iterator](){return this}}}}function createReadonlyMethod(e){return function(){return"delete"!==e&&this}}function createInstrumentations(){const e={get(e){return get$1(this,e)},get size(){return size(this)},has:has$1,add:add,set:set$1,delete:deleteEntry,clear:clear,forEach:createForEach(!1,!1)},t={get(e){return get$1(this,e,!1,!0)},get size(){return size(this)},has:has$1,add:add,set:set$1,delete:deleteEntry,clear:clear,forEach:createForEach(!1,!0)},o={get(e){return get$1(this,e,!0)},get size(){return size(this,!0)},has(e){return has$1.call(this,e,!0)},add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear"),forEach:createForEach(!0,!1)},n={get(e){return get$1(this,e,!0,!0)},get size(){return size(this,!0)},has(e){return has$1.call(this,e,!0)},add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear"),forEach:createForEach(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((i=>{e[i]=createIterableMethod(i,!1,!1),o[i]=createIterableMethod(i,!0,!1),t[i]=createIterableMethod(i,!1,!0),n[i]=createIterableMethod(i,!0,!0)})),[e,o,t,n]}const[mutableInstrumentations,readonlyInstrumentations,shallowInstrumentations,shallowReadonlyInstrumentations]=createInstrumentations();function createInstrumentationGetter(e,t){const o=t?e?shallowReadonlyInstrumentations:shallowInstrumentations:e?readonlyInstrumentations:mutableInstrumentations;return(t,n,i)=>"__v_isReactive"===n?!e:"__v_isReadonly"===n?e:"__v_raw"===n?t:Reflect.get(hasOwn(o,n)&&n in t?o:t,n,i)}const mutableCollectionHandlers={get:createInstrumentationGetter(!1,!1)},shallowCollectionHandlers={get:createInstrumentationGetter(!1,!0)},readonlyCollectionHandlers={get:createInstrumentationGetter(!0,!1)},reactiveMap=new WeakMap,shallowReactiveMap=new WeakMap,readonlyMap=new WeakMap,shallowReadonlyMap=new WeakMap;function targetTypeMap(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function getTargetType(e){return e.__v_skip||!Object.isExtensible(e)?0:targetTypeMap(toRawType(e))}function reactive(e){return e&&e.__v_isReadonly?e:createReactiveObject(e,!1,mutableHandlers,mutableCollectionHandlers,reactiveMap)}function shallowReactive(e){return createReactiveObject(e,!1,shallowReactiveHandlers,shallowCollectionHandlers,shallowReactiveMap)}function readonly(e){return createReactiveObject(e,!0,readonlyHandlers,readonlyCollectionHandlers,readonlyMap)}function createReactiveObject(e,t,o,n,i){if(!isObject$1(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const r=i.get(e);if(r)return r;const s=getTargetType(e);if(0===s)return e;const a=new Proxy(e,2===s?n:o);return i.set(e,a),a}function isReactive(e){return isReadonly(e)?isReactive(e.__v_raw):!(!e||!e.__v_isReactive)}function isReadonly(e){return!(!e||!e.__v_isReadonly)}function isProxy(e){return isReactive(e)||isReadonly(e)}function toRaw(e){const t=e&&e.__v_raw;return t?toRaw(t):e}function markRaw(e){return def(e,"__v_skip",!0),e}const toReactive=e=>isObject$1(e)?reactive(e):e,toReadonly=e=>isObject$1(e)?readonly(e):e;function trackRefValue(e){isTracking()&&((e=toRaw(e)).dep||(e.dep=createDep()),trackEffects(e.dep))}function triggerRefValue(e,t){(e=toRaw(e)).dep&&triggerEffects(e.dep)}function isRef(e){return Boolean(e&&!0===e.__v_isRef)}function unref(e){return isRef(e)?e.value:e}const shallowUnwrapHandlers={get:(e,t,o)=>unref(Reflect.get(e,t,o)),set:(e,t,o,n)=>{const i=e[t];return isRef(i)&&!isRef(o)?(i.value=o,!0):Reflect.set(e,t,o,n)}};function proxyRefs(e){return isReactive(e)?e:new Proxy(e,shallowUnwrapHandlers)}class ComputedRefImpl{constructor(e,t,o){this._setter=t,this.dep=void 0,this._dirty=!0,this.__v_isRef=!0,this.effect=new ReactiveEffect(e,(()=>{this._dirty||(this._dirty=!0,triggerRefValue(this))})),this.__v_isReadonly=o}get value(){const e=toRaw(this);return trackRefValue(e),e._dirty&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function computed(e,t){let o,n;const i=isFunction(e);i?(o=e,n=NOOP):(o=e.get,n=e.set);return new ComputedRefImpl(o,n,i||!n)}let devtools;Promise.resolve();let buffer=[],devtoolsNotInstalled=!1;function emit(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),n=1;n<t;n++)o[n-1]=arguments[n];devtools?devtools.emit(e,...o):devtoolsNotInstalled||buffer.push({event:e,args:o})}function setDevtoolsHook(e,t){var o,n;if(devtools=e,devtools)devtools.enabled=!0,buffer.forEach((e=>{let{event:t,args:o}=e;return devtools.emit(t,...o)})),buffer=[];else if("undefined"!=typeof window&&window.HTMLElement&&!(null===(n=null===(o=window.navigator)||void 0===o?void 0:o.userAgent)||void 0===n?void 0:n.includes("jsdom"))){(t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push((e=>{setDevtoolsHook(e,t)})),setTimeout((()=>{devtools||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,devtoolsNotInstalled=!0,buffer=[])}),3e3)}else devtoolsNotInstalled=!0,buffer=[]}function devtoolsInitApp(e,t){emit("app:init",e,t,{Fragment:Fragment,Text:Text,Comment:Comment,Static:Static})}function devtoolsUnmountApp(e){emit("app:unmount",e)}const devtoolsComponentAdded=createDevtoolsComponentHook("component:added"),devtoolsComponentUpdated=createDevtoolsComponentHook("component:updated"),devtoolsComponentRemoved=createDevtoolsComponentHook("component:removed");function createDevtoolsComponentHook(e){return t=>{emit(e,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}function devtoolsComponentEmit(e,t,o){emit("component:emit",e.appContext.app,e,t,o)}function emit$1(e,t){const o=e.vnode.props||EMPTY_OBJ;for(var n=arguments.length,i=new Array(n>2?n-2:0),r=2;r<n;r++)i[r-2]=arguments[r];let s=i;const a=t.startsWith("update:"),c=a&&t.slice(7);if(c&&c in o){const e=`${"modelValue"===c?"model":c}Modifiers`,{number:t,trim:n}=o[e]||EMPTY_OBJ;n?s=i.map((e=>e.trim())):t&&(s=i.map(toNumber))}let l;__VUE_PROD_DEVTOOLS__&&devtoolsComponentEmit(e,t,s);let d=o[l=toHandlerKey(t)]||o[l=toHandlerKey(camelize(t))];!d&&a&&(d=o[l=toHandlerKey(hyphenate(t))]),d&&callWithAsyncErrorHandling(d,e,6,s);const u=o[l+"Once"];if(u){if(e.emitted){if(e.emitted[l])return}else e.emitted={};e.emitted[l]=!0,callWithAsyncErrorHandling(u,e,6,s)}}function normalizeEmitsOptions(e,t,o){void 0===o&&(o=!1);const n=t.emitsCache,i=n.get(e);if(void 0!==i)return i;const r=e.emits;let s={},a=!1;if(__VUE_OPTIONS_API__&&!isFunction(e)){const n=e=>{const o=normalizeEmitsOptions(e,t,!0);o&&(a=!0,extend(s,o))};!o&&t.mixins.length&&t.mixins.forEach(n),e.extends&&n(e.extends),e.mixins&&e.mixins.forEach(n)}return r||a?(isArray(r)?r.forEach((e=>s[e]=null)):extend(s,r),n.set(e,s),s):(n.set(e,null),null)}function isEmitListener(e,t){return!(!e||!isOn(t))&&(t=t.slice(2).replace(/Once$/,""),hasOwn(e,t[0].toLowerCase()+t.slice(1))||hasOwn(e,hyphenate(t))||hasOwn(e,t))}let currentRenderingInstance=null,currentScopeId=null;function setCurrentRenderingInstance(e){const t=currentRenderingInstance;return currentRenderingInstance=e,currentScopeId=e&&e.type.__scopeId||null,t}function withCtx(e,t,o){if(void 0===t&&(t=currentRenderingInstance),!t)return e;if(e._n)return e;const n=function(){n._d&&setBlockTracking(-1);const o=setCurrentRenderingInstance(t),i=e(...arguments);return setCurrentRenderingInstance(o),n._d&&setBlockTracking(1),__VUE_PROD_DEVTOOLS__&&devtoolsComponentUpdated(t),i};return n._n=!0,n._c=!0,n._d=!0,n}function markAttrsAccessed(){}function renderComponentRoot(e){const{type:t,vnode:o,proxy:n,withProxy:i,props:r,propsOptions:[s],slots:a,attrs:c,emit:l,render:d,renderCache:u,data:p,setupState:m,ctx:h,inheritAttrs:f}=e;let _,g;const v=setCurrentRenderingInstance(e);try{if(4&o.shapeFlag){const e=i||n;_=normalizeVNode(d.call(e,e,u,r,m,p,h)),g=c}else{const e=t;0,_=normalizeVNode(e.length>1?e(r,{attrs:c,slots:a,emit:l}):e(r,null)),g=t.props?c:getFunctionalFallthrough(c)}}catch(t){blockStack.length=0,handleError(t,e,1),_=createVNode(Comment)}let E=_;if(g&&!1!==f){const e=Object.keys(g),{shapeFlag:t}=E;e.length&&7&t&&(s&&e.some(isModelListener)&&(g=filterModelListeners(g,s)),E=cloneVNode(E,g))}return o.dirs&&(E.dirs=E.dirs?E.dirs.concat(o.dirs):o.dirs),o.transition&&(E.transition=o.transition),_=E,setCurrentRenderingInstance(v),_}const getFunctionalFallthrough=e=>{let t;for(const o in e)("class"===o||"style"===o||isOn(o))&&((t||(t={}))[o]=e[o]);return t},filterModelListeners=(e,t)=>{const o={};for(const n in e)isModelListener(n)&&n.slice(9)in t||(o[n]=e[n]);return o};function shouldUpdateComponent(e,t,o){const{props:n,children:i,component:r}=e,{props:s,children:a,patchFlag:c}=t,l=r.emitsOptions;if(t.dirs||t.transition)return!0;if(!(o&&c>=0))return!(!i&&!a||a&&a.$stable)||n!==s&&(n?!s||hasPropsChanged(n,s,l):!!s);if(1024&c)return!0;if(16&c)return n?hasPropsChanged(n,s,l):!!s;if(8&c){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const o=e[t];if(s[o]!==n[o]&&!isEmitListener(l,o))return!0}}return!1}function hasPropsChanged(e,t,o){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let i=0;i<n.length;i++){const r=n[i];if(t[r]!==e[r]&&!isEmitListener(o,r))return!0}return!1}function updateHOCHostEl(e,t){let{vnode:o,parent:n}=e;for(;n&&n.subTree===o;)(o=n.vnode).el=t,n=n.parent}const isSuspense=e=>e.__isSuspense;function queueEffectWithSuspense(e,t){t&&t.pendingBranch?isArray(e)?t.effects.push(...e):t.effects.push(e):queuePostFlushCb(e)}function provide(e,t){if(currentInstance){let o=currentInstance.provides;const n=currentInstance.parent&&currentInstance.parent.provides;n===o&&(o=currentInstance.provides=Object.create(n)),o[e]=t}else;}function inject(e,t,o){void 0===o&&(o=!1);const n=currentInstance||currentRenderingInstance;if(n){const i=null==n.parent?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides;if(i&&e in i)return i[e];if(arguments.length>1)return o&&isFunction(t)?t.call(n.proxy):t}}function useTransitionState(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return onMounted((()=>{e.isMounted=!0})),onBeforeUnmount((()=>{e.isUnmounting=!0})),e}const TransitionHookValidator=[Function,Array],BaseTransitionImpl={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:TransitionHookValidator,onEnter:TransitionHookValidator,onAfterEnter:TransitionHookValidator,onEnterCancelled:TransitionHookValidator,onBeforeLeave:TransitionHookValidator,onLeave:TransitionHookValidator,onAfterLeave:TransitionHookValidator,onLeaveCancelled:TransitionHookValidator,onBeforeAppear:TransitionHookValidator,onAppear:TransitionHookValidator,onAfterAppear:TransitionHookValidator,onAppearCancelled:TransitionHookValidator},setup(e,t){let{slots:o}=t;const n=getCurrentInstance(),i=useTransitionState();let r;return()=>{const t=o.default&&getTransitionRawChildren(o.default(),!0);if(!t||!t.length)return;const s=toRaw(e),{mode:a}=s,c=t[0];if(i.isLeaving)return emptyPlaceholder(c);const l=getKeepAliveChild(c);if(!l)return emptyPlaceholder(c);const d=resolveTransitionHooks(l,s,i,n);setTransitionHooks(l,d);const u=n.subTree,p=u&&getKeepAliveChild(u);let m=!1;const{getTransitionKey:h}=l.type;if(h){const e=h();void 0===r?r=e:e!==r&&(r=e,m=!0)}if(p&&p.type!==Comment&&(!isSameVNodeType(l,p)||m)){const e=resolveTransitionHooks(p,s,i,n);if(setTransitionHooks(p,e),"out-in"===a)return i.isLeaving=!0,e.afterLeave=()=>{i.isLeaving=!1,n.update()},emptyPlaceholder(c);"in-out"===a&&l.type!==Comment&&(e.delayLeave=(e,t,o)=>{getLeavingNodesForType(i,p)[String(p.key)]=p,e._leaveCb=()=>{t(),e._leaveCb=void 0,delete d.delayedLeave},d.delayedLeave=o})}return c}}},BaseTransition=BaseTransitionImpl;function getLeavingNodesForType(e,t){const{leavingVNodes:o}=e;let n=o.get(t.type);return n||(n=Object.create(null),o.set(t.type,n)),n}function resolveTransitionHooks(e,t,o,n){const{appear:i,mode:r,persisted:s=!1,onBeforeEnter:a,onEnter:c,onAfterEnter:l,onEnterCancelled:d,onBeforeLeave:u,onLeave:p,onAfterLeave:m,onLeaveCancelled:h,onBeforeAppear:f,onAppear:_,onAfterAppear:g,onAppearCancelled:v}=t,E=String(e.key),y=getLeavingNodesForType(o,e),S=(e,t)=>{e&&callWithAsyncErrorHandling(e,n,9,t)},b={mode:r,persisted:s,beforeEnter(t){let n=a;if(!o.isMounted){if(!i)return;n=f||a}t._leaveCb&&t._leaveCb(!0);const r=y[E];r&&isSameVNodeType(e,r)&&r.el._leaveCb&&r.el._leaveCb(),S(n,[t])},enter(e){let t=c,n=l,r=d;if(!o.isMounted){if(!i)return;t=_||c,n=g||l,r=v||d}let s=!1;const a=e._enterCb=t=>{s||(s=!0,S(t?r:n,[e]),b.delayedLeave&&b.delayedLeave(),e._enterCb=void 0)};t?(t(e,a),t.length<=1&&a()):a()},leave(t,n){const i=String(e.key);if(t._enterCb&&t._enterCb(!0),o.isUnmounting)return n();S(u,[t]);let r=!1;const s=t._leaveCb=o=>{r||(r=!0,n(),S(o?h:m,[t]),t._leaveCb=void 0,y[i]===e&&delete y[i])};y[i]=e,p?(p(t,s),p.length<=1&&s()):s()},clone:e=>resolveTransitionHooks(e,t,o,n)};return b}function emptyPlaceholder(e){if(isKeepAlive(e))return(e=cloneVNode(e)).children=null,e}function getKeepAliveChild(e){return isKeepAlive(e)?e.children?e.children[0]:void 0:e}function setTransitionHooks(e,t){6&e.shapeFlag&&e.component?setTransitionHooks(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function getTransitionRawChildren(e,t){void 0===t&&(t=!1);let o=[],n=0;for(let i=0;i<e.length;i++){const r=e[i];r.type===Fragment?(128&r.patchFlag&&n++,o=o.concat(getTransitionRawChildren(r.children,t))):(t||r.type!==Comment)&&o.push(r)}if(n>1)for(let e=0;e<o.length;e++)o[e].patchFlag=-2;return o}const isAsyncWrapper=e=>!!e.type.__asyncLoader,isKeepAlive=e=>e.type.__isKeepAlive;function onActivated(e,t){registerKeepAliveHook(e,"a",t)}function onDeactivated(e,t){registerKeepAliveHook(e,"da",t)}function registerKeepAliveHook(e,t,o){void 0===o&&(o=currentInstance);const n=e.__wdc||(e.__wdc=()=>{let t=o;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(injectHook(t,n,o),o){let e=o.parent;for(;e&&e.parent;)isKeepAlive(e.parent.vnode)&&injectToKeepAliveRoot(n,t,o,e),e=e.parent}}function injectToKeepAliveRoot(e,t,o,n){const i=injectHook(t,e,n,!0);onUnmounted((()=>{remove(n[t],i)}),o)}function injectHook(e,t,o,n){if(void 0===o&&(o=currentInstance),void 0===n&&(n=!1),o){const i=o[e]||(o[e]=[]),r=t.__weh||(t.__weh=function(){if(o.isUnmounted)return;pauseTracking(),setCurrentInstance(o);for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];const s=callWithAsyncErrorHandling(t,o,e,i);return unsetCurrentInstance(),resetTracking(),s});return n?i.unshift(r):i.push(r),r}}const createHook=e=>function(t,o){return void 0===o&&(o=currentInstance),(!isInSSRComponentSetup||"sp"===e)&&injectHook(e,t,o)},onBeforeMount=createHook("bm"),onMounted=createHook("m"),onBeforeUpdate=createHook("bu"),onUpdated=createHook("u"),onBeforeUnmount=createHook("bum"),onUnmounted=createHook("um"),onServerPrefetch=createHook("sp"),onRenderTriggered=createHook("rtg"),onRenderTracked=createHook("rtc");function onErrorCaptured(e,t){void 0===t&&(t=currentInstance),injectHook("ec",e,t)}let shouldCacheAccess=!0;function applyOptions(e){const t=resolveMergedOptions(e),o=e.proxy,n=e.ctx;shouldCacheAccess=!1,t.beforeCreate&&callHook$1(t.beforeCreate,e,"bc");const{data:i,computed:r,methods:s,watch:a,provide:c,inject:l,created:d,beforeMount:u,mounted:p,beforeUpdate:m,updated:h,activated:f,deactivated:_,beforeDestroy:g,beforeUnmount:v,destroyed:E,unmounted:y,render:S,renderTracked:b,renderTriggered:C,errorCaptured:w,serverPrefetch:O,expose:I,inheritAttrs:A,components:T,directives:$,filters:M}=t;if(l&&resolveInjections(l,n,null,e.appContext.config.unwrapInjectedRef),s)for(const e in s){const t=s[e];isFunction(t)&&(n[e]=t.bind(o))}if(i){const t=i.call(o,o);isObject$1(t)&&(e.data=reactive(t))}if(shouldCacheAccess=!0,r)for(const e in r){const t=r[e],i=computed({get:isFunction(t)?t.bind(o,o):isFunction(t.get)?t.get.bind(o,o):NOOP,set:!isFunction(t)&&isFunction(t.set)?t.set.bind(o):NOOP});Object.defineProperty(n,e,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e})}if(a)for(const e in a)createWatcher(a[e],n,o,e);if(c){const e=isFunction(c)?c.call(o):c;Reflect.ownKeys(e).forEach((t=>{provide(t,e[t])}))}function k(e,t){isArray(t)?t.forEach((t=>e(t.bind(o)))):t&&e(t.bind(o))}if(d&&callHook$1(d,e,"c"),k(onBeforeMount,u),k(onMounted,p),k(onBeforeUpdate,m),k(onUpdated,h),k(onActivated,f),k(onDeactivated,_),k(onErrorCaptured,w),k(onRenderTracked,b),k(onRenderTriggered,C),k(onBeforeUnmount,v),k(onUnmounted,y),k(onServerPrefetch,O),isArray(I))if(I.length){const t=e.exposed||(e.exposed={});I.forEach((e=>{Object.defineProperty(t,e,{get:()=>o[e],set:t=>o[e]=t})}))}else e.exposed||(e.exposed={});S&&e.render===NOOP&&(e.render=S),null!=A&&(e.inheritAttrs=A),T&&(e.components=T),$&&(e.directives=$)}function resolveInjections(e,t,o,n){void 0===n&&(n=!1),isArray(e)&&(e=normalizeInject(e));for(const o in e){const i=e[o];let r;r=isObject$1(i)?"default"in i?inject(i.from||o,i.default,!0):inject(i.from||o):inject(i),isRef(r)&&n?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>r.value,set:e=>r.value=e}):t[o]=r}}function callHook$1(e,t,o){callWithAsyncErrorHandling(isArray(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,o)}function createWatcher(e,t,o,n){const i=n.includes(".")?createPathGetter(o,n):()=>o[n];if(isString(e)){const o=t[e];isFunction(o)&&watch(i,o)}else if(isFunction(e))watch(i,e.bind(o));else if(isObject$1(e))if(isArray(e))e.forEach((e=>createWatcher(e,t,o,n)));else{const n=isFunction(e.handler)?e.handler.bind(o):t[e.handler];isFunction(n)&&watch(i,n,e)}}function resolveMergedOptions(e){const t=e.type,{mixins:o,extends:n}=t,{mixins:i,optionsCache:r,config:{optionMergeStrategies:s}}=e.appContext,a=r.get(t);let c;return a?c=a:i.length||o||n?(c={},i.length&&i.forEach((e=>mergeOptions(c,e,s,!0))),mergeOptions(c,t,s)):c=t,r.set(t,c),c}function mergeOptions(e,t,o,n){void 0===n&&(n=!1);const{mixins:i,extends:r}=t;r&&mergeOptions(e,r,o,!0),i&&i.forEach((t=>mergeOptions(e,t,o,!0)));for(const i in t)if(n&&"expose"===i);else{const n=internalOptionMergeStrats[i]||o&&o[i];e[i]=n?n(e[i],t[i]):t[i]}return e}const internalOptionMergeStrats={data:mergeDataFn,props:mergeObjectOptions,emits:mergeObjectOptions,methods:mergeObjectOptions,computed:mergeObjectOptions,beforeCreate:mergeAsArray,created:mergeAsArray,beforeMount:mergeAsArray,mounted:mergeAsArray,beforeUpdate:mergeAsArray,updated:mergeAsArray,beforeDestroy:mergeAsArray,beforeUnmount:mergeAsArray,destroyed:mergeAsArray,unmounted:mergeAsArray,activated:mergeAsArray,deactivated:mergeAsArray,errorCaptured:mergeAsArray,serverPrefetch:mergeAsArray,components:mergeObjectOptions,directives:mergeObjectOptions,watch:mergeWatchOptions,provide:mergeDataFn,inject:mergeInject};function mergeDataFn(e,t){return t?e?function(){return extend(isFunction(e)?e.call(this,this):e,isFunction(t)?t.call(this,this):t)}:t:e}function mergeInject(e,t){return mergeObjectOptions(normalizeInject(e),normalizeInject(t))}function normalizeInject(e){if(isArray(e)){const t={};for(let o=0;o<e.length;o++)t[e[o]]=e[o];return t}return e}function mergeAsArray(e,t){return e?[...new Set([].concat(e,t))]:t}function mergeObjectOptions(e,t){return e?extend(extend(Object.create(null),e),t):t}function mergeWatchOptions(e,t){if(!e)return t;if(!t)return e;const o=extend(Object.create(null),e);for(const n in t)o[n]=mergeAsArray(e[n],t[n]);return o}function initProps(e,t,o,n){void 0===n&&(n=!1);const i={},r={};def(r,InternalObjectKey,1),e.propsDefaults=Object.create(null),setFullProps(e,t,i,r);for(const t in e.propsOptions[0])t in i||(i[t]=void 0);o?e.props=n?i:shallowReactive(i):e.type.props?e.props=i:e.props=r,e.attrs=r}function updateProps(e,t,o,n){const{props:i,attrs:r,vnode:{patchFlag:s}}=e,a=toRaw(i),[c]=e.propsOptions;let l=!1;if(!(n||s>0)||16&s){let n;setFullProps(e,t,i,r)&&(l=!0);for(const r in a)t&&(hasOwn(t,r)||(n=hyphenate(r))!==r&&hasOwn(t,n))||(c?!o||void 0===o[r]&&void 0===o[n]||(i[r]=resolvePropValue(c,a,r,void 0,e,!0)):delete i[r]);if(r!==a)for(const e in r)t&&hasOwn(t,e)||(delete r[e],l=!0)}else if(8&s){const o=e.vnode.dynamicProps;for(let n=0;n<o.length;n++){let s=o[n];const d=t[s];if(c)if(hasOwn(r,s))d!==r[s]&&(r[s]=d,l=!0);else{const t=camelize(s);i[t]=resolvePropValue(c,a,t,d,e,!1)}else d!==r[s]&&(r[s]=d,l=!0)}}l&&trigger$1(e,"set","$attrs")}function setFullProps(e,t,o,n){const[i,r]=e.propsOptions;let s,a=!1;if(t)for(let c in t){if(isReservedProp(c))continue;const l=t[c];let d;i&&hasOwn(i,d=camelize(c))?r&&r.includes(d)?(s||(s={}))[d]=l:o[d]=l:isEmitListener(e.emitsOptions,c)||c in n&&l===n[c]||(n[c]=l,a=!0)}if(r){const t=toRaw(o),n=s||EMPTY_OBJ;for(let s=0;s<r.length;s++){const a=r[s];o[a]=resolvePropValue(i,t,a,n[a],e,!hasOwn(n,a))}}return a}function resolvePropValue(e,t,o,n,i,r){const s=e[o];if(null!=s){const e=hasOwn(s,"default");if(e&&void 0===n){const e=s.default;if(s.type!==Function&&isFunction(e)){const{propsDefaults:r}=i;o in r?n=r[o]:(setCurrentInstance(i),n=r[o]=e.call(null,t),unsetCurrentInstance())}else n=e}s[0]&&(r&&!e?n=!1:!s[1]||""!==n&&n!==hyphenate(o)||(n=!0))}return n}function normalizePropsOptions(e,t,o){void 0===o&&(o=!1);const n=t.propsCache,i=n.get(e);if(i)return i;const r=e.props,s={},a=[];let c=!1;if(__VUE_OPTIONS_API__&&!isFunction(e)){const n=e=>{c=!0;const[o,n]=normalizePropsOptions(e,t,!0);extend(s,o),n&&a.push(...n)};!o&&t.mixins.length&&t.mixins.forEach(n),e.extends&&n(e.extends),e.mixins&&e.mixins.forEach(n)}if(!r&&!c)return n.set(e,EMPTY_ARR),EMPTY_ARR;if(isArray(r))for(let e=0;e<r.length;e++){const t=camelize(r[e]);validatePropName(t)&&(s[t]=EMPTY_OBJ)}else if(r)for(const e in r){const t=camelize(e);if(validatePropName(t)){const o=r[e],n=s[t]=isArray(o)||isFunction(o)?{type:o}:o;if(n){const e=getTypeIndex(Boolean,n.type),o=getTypeIndex(String,n.type);n[0]=e>-1,n[1]=o<0||e<o,(e>-1||hasOwn(n,"default"))&&a.push(t)}}}const l=[s,a];return n.set(e,l),l}function validatePropName(e){return"$"!==e[0]}function getType(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:null===e?"null":""}function isSameType(e,t){return getType(e)===getType(t)}function getTypeIndex(e,t){return isArray(t)?t.findIndex((t=>isSameType(t,e))):isFunction(t)&&isSameType(t,e)?0:-1}const isInternalKey=e=>"_"===e[0]||"$stable"===e,normalizeSlotValue=e=>isArray(e)?e.map(normalizeVNode):[normalizeVNode(e)],normalizeSlot=(e,t,o)=>{const n=withCtx((function(){return normalizeSlotValue(t(...arguments))}),o);return n._c=!1,n},normalizeObjectSlots=(e,t,o)=>{const n=e._ctx;for(const o in e){if(isInternalKey(o))continue;const i=e[o];if(isFunction(i))t[o]=normalizeSlot(0,i,n);else if(null!=i){const e=normalizeSlotValue(i);t[o]=()=>e}}},normalizeVNodeSlots=(e,t)=>{const o=normalizeSlotValue(t);e.slots.default=()=>o},initSlots=(e,t)=>{if(32&e.vnode.shapeFlag){const o=t._;o?(e.slots=toRaw(t),def(t,"_",o)):normalizeObjectSlots(t,e.slots={})}else e.slots={},t&&normalizeVNodeSlots(e,t);def(e.slots,InternalObjectKey,1)},updateSlots=(e,t,o)=>{const{vnode:n,slots:i}=e;let r=!0,s=EMPTY_OBJ;if(32&n.shapeFlag){const e=t._;e?o&&1===e?r=!1:(extend(i,t),o||1!==e||delete i._):(r=!t.$stable,normalizeObjectSlots(t,i)),s=t}else t&&(normalizeVNodeSlots(e,t),s={default:1});if(r)for(const e in i)isInternalKey(e)||e in s||delete i[e]};function withDirectives(e,t){if(null===currentRenderingInstance)return e;const o=currentRenderingInstance.proxy,n=e.dirs||(e.dirs=[]);for(let e=0;e<t.length;e++){let[i,r,s,a=EMPTY_OBJ]=t[e];isFunction(i)&&(i={mounted:i,updated:i}),i.deep&&traverse(r),n.push({dir:i,instance:o,value:r,oldValue:void 0,arg:s,modifiers:a})}return e}function invokeDirectiveHook(e,t,o,n){const i=e.dirs,r=t&&t.dirs;for(let s=0;s<i.length;s++){const a=i[s];r&&(a.oldValue=r[s].value);let c=a.dir[n];c&&(pauseTracking(),callWithAsyncErrorHandling(c,o,8,[e.el,a,e,t]),resetTracking())}}function createAppContext(){return{app:null,config:{isNativeTag:NO,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let uid=0;function createAppAPI(e,t){return function(o,n){void 0===n&&(n=null),null==n||isObject$1(n)||(n=null);const i=createAppContext(),r=new Set;let s=!1;const a=i.app={_uid:uid++,_component:o,_props:n,_container:null,_context:i,_instance:null,version:version,get config(){return i.config},set config(e){},use(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),n=1;n<t;n++)o[n-1]=arguments[n];return r.has(e)||(e&&isFunction(e.install)?(r.add(e),e.install(a,...o)):isFunction(e)&&(r.add(e),e(a,...o))),a},mixin:e=>(__VUE_OPTIONS_API__&&(i.mixins.includes(e)||i.mixins.push(e)),a),component:(e,t)=>t?(i.components[e]=t,a):i.components[e],directive:(e,t)=>t?(i.directives[e]=t,a):i.directives[e],mount(r,c,l){if(!s){const d=createVNode(o,n);return d.appContext=i,c&&t?t(d,r):e(d,r,l),s=!0,a._container=r,r.__vue_app__=a,__VUE_PROD_DEVTOOLS__&&(a._instance=d.component,devtoolsInitApp(a,version)),getExposeProxy(d.component)||d.component.proxy}},unmount(){s&&(e(null,a._container),__VUE_PROD_DEVTOOLS__&&(a._instance=null,devtoolsUnmountApp(a)),delete a._container.__vue_app__)},provide:(e,t)=>(i.provides[e]=t,a)};return a}}function setRef(e,t,o,n,i){if(void 0===i&&(i=!1),isArray(e))return void e.forEach(((e,r)=>setRef(e,t&&(isArray(t)?t[r]:t),o,n,i)));if(isAsyncWrapper(n)&&!i)return;const r=4&n.shapeFlag?getExposeProxy(n.component)||n.component.proxy:n.el,s=i?null:r,{i:a,r:c}=e,l=t&&t.r,d=a.refs===EMPTY_OBJ?a.refs={}:a.refs,u=a.setupState;if(null!=l&&l!==c&&(isString(l)?(d[l]=null,hasOwn(u,l)&&(u[l]=null)):isRef(l)&&(l.value=null)),isFunction(c))callWithErrorHandling(c,a,12,[s,d]);else{const t=isString(c),n=isRef(c);if(t||n){const n=()=>{if(e.f){const o=t?d[c]:c.value;i?isArray(o)&&remove(o,r):isArray(o)?o.includes(r)||o.push(r):t?d[c]=[r]:(c.value=[r],e.k&&(d[e.k]=c.value))}else t?(d[c]=s,hasOwn(u,c)&&(u[c]=s)):isRef(c)&&(c.value=s,e.k&&(d[e.k]=s))};s?(n.id=-1,queuePostRenderEffect(n,o)):n()}}}function initFeatureFlags(){"boolean"!=typeof __VUE_OPTIONS_API__&&(getGlobalThis().__VUE_OPTIONS_API__=!0),"boolean"!=typeof __VUE_PROD_DEVTOOLS__&&(getGlobalThis().__VUE_PROD_DEVTOOLS__=!1)}const queuePostRenderEffect=queueEffectWithSuspense;function createRenderer(e){return baseCreateRenderer(e)}function baseCreateRenderer(e,t){initFeatureFlags();const o=getGlobalThis();o.__VUE__=!0,__VUE_PROD_DEVTOOLS__&&setDevtoolsHook(o.__VUE_DEVTOOLS_GLOBAL_HOOK__,o);const{insert:n,remove:i,patchProp:r,createElement:s,createText:a,createComment:c,setText:l,setElementText:d,parentNode:u,nextSibling:p,setScopeId:m=NOOP,cloneNode:h,insertStaticContent:f}=e,_=function(e,t,o,n,i,r,s,a,c){if(void 0===n&&(n=null),void 0===i&&(i=null),void 0===r&&(r=null),void 0===s&&(s=!1),void 0===a&&(a=null),void 0===c&&(c=!!t.dynamicChildren),e===t)return;e&&!isSameVNodeType(e,t)&&(n=U(e),P(e,i,r,!0),e=null),-2===t.patchFlag&&(c=!1,t.dynamicChildren=null);const{type:l,ref:d,shapeFlag:u}=t;switch(l){case Text:g(e,t,o,n);break;case Comment:v(e,t,o,n);break;case Static:null==e&&E(t,o,n,s);break;case Fragment:A(e,t,o,n,i,r,s,a,c);break;default:1&u?y(e,t,o,n,i,r,s,a,c):6&u?T(e,t,o,n,i,r,s,a,c):(64&u||128&u)&&l.process(e,t,o,n,i,r,s,a,c,z)}null!=d&&i&&setRef(d,e&&e.ref,r,t||e,!t)},g=(e,t,o,i)=>{if(null==e)n(t.el=a(t.children),o,i);else{const o=t.el=e.el;t.children!==e.children&&l(o,t.children)}},v=(e,t,o,i)=>{null==e?n(t.el=c(t.children||""),o,i):t.el=e.el},E=(e,t,o,n)=>{[e.el,e.anchor]=f(e.children,t,o,n)},y=(e,t,o,n,i,r,s,a,c)=>{s=s||"svg"===t.type,null==e?S(t,o,n,i,r,s,a,c):w(e,t,i,r,s,a,c)},S=(e,t,o,i,a,c,l,u)=>{let p,m;const{type:f,props:_,shapeFlag:g,transition:v,patchFlag:E,dirs:y}=e;if(e.el&&void 0!==h&&-1===E)p=e.el=h(e.el);else{if(p=e.el=s(e.type,c,_&&_.is,_),8&g?d(p,e.children):16&g&&C(e.children,p,null,i,a,c&&"foreignObject"!==f,l,u),y&&invokeDirectiveHook(e,null,i,"created"),_){for(const t in _)"value"===t||isReservedProp(t)||r(p,t,null,_[t],c,e.children,i,a,H);"value"in _&&r(p,"value",null,_.value),(m=_.onVnodeBeforeMount)&&invokeVNodeHook(m,i,e)}b(p,e,e.scopeId,l,i)}__VUE_PROD_DEVTOOLS__&&(Object.defineProperty(p,"__vnode",{value:e,enumerable:!1}),Object.defineProperty(p,"__vueParentComponent",{value:i,enumerable:!1})),y&&invokeDirectiveHook(e,null,i,"beforeMount");const S=(!a||a&&!a.pendingBranch)&&v&&!v.persisted;S&&v.beforeEnter(p),n(p,t,o),((m=_&&_.onVnodeMounted)||S||y)&&queuePostRenderEffect((()=>{m&&invokeVNodeHook(m,i,e),S&&v.enter(p),y&&invokeDirectiveHook(e,null,i,"mounted")}),a)},b=(e,t,o,n,i)=>{if(o&&m(e,o),n)for(let t=0;t<n.length;t++)m(e,n[t]);if(i){if(t===i.subTree){const t=i.vnode;b(e,t,t.scopeId,t.slotScopeIds,i.parent)}}},C=function(e,t,o,n,i,r,s,a,c){void 0===c&&(c=0);for(let l=c;l<e.length;l++){const c=e[l]=a?cloneIfMounted(e[l]):normalizeVNode(e[l]);_(null,c,t,o,n,i,r,s,a)}},w=(e,t,o,n,i,s,a)=>{const c=t.el=e.el;let{patchFlag:l,dynamicChildren:u,dirs:p}=t;l|=16&e.patchFlag;const m=e.props||EMPTY_OBJ,h=t.props||EMPTY_OBJ;let f;o&&toggleRecurse(o,!1),(f=h.onVnodeBeforeUpdate)&&invokeVNodeHook(f,o,t,e),p&&invokeDirectiveHook(t,e,o,"beforeUpdate"),o&&toggleRecurse(o,!0);const _=i&&"foreignObject"!==t.type;if(u?O(e.dynamicChildren,u,c,o,n,_,s):a||N(e,t,c,null,o,n,_,s,!1),l>0){if(16&l)I(c,t,m,h,o,n,i);else if(2&l&&m.class!==h.class&&r(c,"class",null,h.class,i),4&l&&r(c,"style",m.style,h.style,i),8&l){const s=t.dynamicProps;for(let t=0;t<s.length;t++){const a=s[t],l=m[a],d=h[a];d===l&&"value"!==a||r(c,a,l,d,i,e.children,o,n,H)}}1&l&&e.children!==t.children&&d(c,t.children)}else a||null!=u||I(c,t,m,h,o,n,i);((f=h.onVnodeUpdated)||p)&&queuePostRenderEffect((()=>{f&&invokeVNodeHook(f,o,t,e),p&&invokeDirectiveHook(t,e,o,"updated")}),n)},O=(e,t,o,n,i,r,s)=>{for(let a=0;a<t.length;a++){const c=e[a],l=t[a],d=c.el&&(c.type===Fragment||!isSameVNodeType(c,l)||70&c.shapeFlag)?u(c.el):o;_(c,l,d,null,n,i,r,s,!0)}},I=(e,t,o,n,i,s,a)=>{if(o!==n){for(const c in n){if(isReservedProp(c))continue;const l=n[c],d=o[c];l!==d&&"value"!==c&&r(e,c,d,l,a,t.children,i,s,H)}if(o!==EMPTY_OBJ)for(const c in o)isReservedProp(c)||c in n||r(e,c,o[c],null,a,t.children,i,s,H);"value"in n&&r(e,"value",o.value,n.value)}},A=(e,t,o,i,r,s,c,l,d)=>{const u=t.el=e?e.el:a(""),p=t.anchor=e?e.anchor:a("");let{patchFlag:m,dynamicChildren:h,slotScopeIds:f}=t;f&&(l=l?l.concat(f):f),null==e?(n(u,o,i),n(p,o,i),C(t.children,o,p,r,s,c,l,d)):m>0&&64&m&&h&&e.dynamicChildren?(O(e.dynamicChildren,h,o,r,s,c,l),(null!=t.key||r&&t===r.subTree)&&traverseStaticChildren(e,t,!0)):N(e,t,o,p,r,s,c,l,d)},T=(e,t,o,n,i,r,s,a,c)=>{t.slotScopeIds=a,null==e?512&t.shapeFlag?i.ctx.activate(t,o,n,s,c):$(t,o,n,i,r,s,c):M(e,t,c)},$=(e,t,o,n,i,r,s)=>{const a=e.component=createComponentInstance(e,n,i);if(isKeepAlive(e)&&(a.ctx.renderer=z),setupComponent(a),a.asyncDep){if(i&&i.registerDep(a,k),!e.el){const e=a.subTree=createVNode(Comment);v(null,e,t,o)}}else k(a,e,t,o,i,r,s)},M=(e,t,o)=>{const n=t.component=e.component;if(shouldUpdateComponent(e,t,o)){if(n.asyncDep&&!n.asyncResolved)return void D(n,t,o);n.next=t,invalidateJob(n.update),n.update()}else t.component=e.component,t.el=e.el,n.vnode=t},k=(e,t,o,n,i,r,s)=>{const a=e.effect=new ReactiveEffect((()=>{if(e.isMounted){let t,{next:o,bu:n,u:a,parent:c,vnode:l}=e,d=o;toggleRecurse(e,!1),o?(o.el=l.el,D(e,o,s)):o=l,n&&invokeArrayFns(n),(t=o.props&&o.props.onVnodeBeforeUpdate)&&invokeVNodeHook(t,c,o,l),toggleRecurse(e,!0);const p=renderComponentRoot(e),m=e.subTree;e.subTree=p,_(m,p,u(m.el),U(m),e,i,r),o.el=p.el,null===d&&updateHOCHostEl(e,p.el),a&&queuePostRenderEffect(a,i),(t=o.props&&o.props.onVnodeUpdated)&&queuePostRenderEffect((()=>invokeVNodeHook(t,c,o,l)),i),__VUE_PROD_DEVTOOLS__&&devtoolsComponentUpdated(e)}else{let s;const{el:a,props:c}=t,{bm:l,m:d,parent:u}=e,p=isAsyncWrapper(t);if(toggleRecurse(e,!1),l&&invokeArrayFns(l),!p&&(s=c&&c.onVnodeBeforeMount)&&invokeVNodeHook(s,u,t),toggleRecurse(e,!0),a&&W){const o=()=>{e.subTree=renderComponentRoot(e),W(a,e.subTree,e,i,null)};p?t.type.__asyncLoader().then((()=>!e.isUnmounted&&o())):o()}else{const s=e.subTree=renderComponentRoot(e);_(null,s,o,n,e,i,r),t.el=s.el}if(d&&queuePostRenderEffect(d,i),!p&&(s=c&&c.onVnodeMounted)){const e=t;queuePostRenderEffect((()=>invokeVNodeHook(s,u,e)),i)}256&t.shapeFlag&&e.a&&queuePostRenderEffect(e.a,i),e.isMounted=!0,__VUE_PROD_DEVTOOLS__&&devtoolsComponentAdded(e),t=o=n=null}}),(()=>queueJob(e.update)),e.scope),c=e.update=a.run.bind(a);c.id=e.uid,toggleRecurse(e,!0),c()},D=(e,t,o)=>{t.component=e;const n=e.vnode.props;e.vnode=t,e.next=null,updateProps(e,t.props,n,o),updateSlots(e,t.children,o),pauseTracking(),flushPreFlushCbs(void 0,e.update),resetTracking()},N=function(e,t,o,n,i,r,s,a,c){void 0===c&&(c=!1);const l=e&&e.children,u=e?e.shapeFlag:0,p=t.children,{patchFlag:m,shapeFlag:h}=t;if(m>0){if(128&m)return void B(l,p,o,n,i,r,s,a,c);if(256&m)return void R(l,p,o,n,i,r,s,a,c)}8&h?(16&u&&H(l,i,r),p!==l&&d(o,p)):16&u?16&h?B(l,p,o,n,i,r,s,a,c):H(l,i,r,!0):(8&u&&d(o,""),16&h&&C(p,o,n,i,r,s,a,c))},R=(e,t,o,n,i,r,s,a,c)=>{t=t||EMPTY_ARR;const l=(e=e||EMPTY_ARR).length,d=t.length,u=Math.min(l,d);let p;for(p=0;p<u;p++){const n=t[p]=c?cloneIfMounted(t[p]):normalizeVNode(t[p]);_(e[p],n,o,null,i,r,s,a,c)}l>d?H(e,i,r,!0,!1,u):C(t,o,n,i,r,s,a,c,u)},B=(e,t,o,n,i,r,s,a,c)=>{let l=0;const d=t.length;let u=e.length-1,p=d-1;for(;l<=u&&l<=p;){const n=e[l],d=t[l]=c?cloneIfMounted(t[l]):normalizeVNode(t[l]);if(!isSameVNodeType(n,d))break;_(n,d,o,null,i,r,s,a,c),l++}for(;l<=u&&l<=p;){const n=e[u],l=t[p]=c?cloneIfMounted(t[p]):normalizeVNode(t[p]);if(!isSameVNodeType(n,l))break;_(n,l,o,null,i,r,s,a,c),u--,p--}if(l>u){if(l<=p){const e=p+1,u=e<d?t[e].el:n;for(;l<=p;)_(null,t[l]=c?cloneIfMounted(t[l]):normalizeVNode(t[l]),o,u,i,r,s,a,c),l++}}else if(l>p)for(;l<=u;)P(e[l],i,r,!0),l++;else{const m=l,h=l,f=new Map;for(l=h;l<=p;l++){const e=t[l]=c?cloneIfMounted(t[l]):normalizeVNode(t[l]);null!=e.key&&f.set(e.key,l)}let g,v=0;const E=p-h+1;let y=!1,S=0;const b=new Array(E);for(l=0;l<E;l++)b[l]=0;for(l=m;l<=u;l++){const n=e[l];if(v>=E){P(n,i,r,!0);continue}let d;if(null!=n.key)d=f.get(n.key);else for(g=h;g<=p;g++)if(0===b[g-h]&&isSameVNodeType(n,t[g])){d=g;break}void 0===d?P(n,i,r,!0):(b[d-h]=l+1,d>=S?S=d:y=!0,_(n,t[d],o,null,i,r,s,a,c),v++)}const C=y?getSequence(b):EMPTY_ARR;for(g=C.length-1,l=E-1;l>=0;l--){const e=h+l,u=t[e],p=e+1<d?t[e+1].el:n;0===b[l]?_(null,u,o,p,i,r,s,a,c):y&&(g<0||l!==C[g]?V(u,o,p,2):g--)}}},V=function(e,t,o,i,r){void 0===r&&(r=null);const{el:s,type:a,transition:c,children:l,shapeFlag:d}=e;if(6&d)return void V(e.component.subTree,t,o,i);if(128&d)return void e.suspense.move(t,o,i);if(64&d)return void a.move(e,t,o,z);if(a===Fragment){n(s,t,o);for(let e=0;e<l.length;e++)V(l[e],t,o,i);return void n(e.anchor,t,o)}if(a===Static)return void((e,t,o)=>{let i,{el:r,anchor:s}=e;for(;r&&r!==s;)i=p(r),n(r,t,o),r=i;n(s,t,o)})(e,t,o);if(2!==i&&1&d&&c)if(0===i)c.beforeEnter(s),n(s,t,o),queuePostRenderEffect((()=>c.enter(s)),r);else{const{leave:e,delayLeave:i,afterLeave:r}=c,a=()=>n(s,t,o),l=()=>{e(s,(()=>{a(),r&&r()}))};i?i(s,a,l):l()}else n(s,t,o)},P=function(e,t,o,n,i){void 0===n&&(n=!1),void 0===i&&(i=!1);const{type:r,props:s,ref:a,children:c,dynamicChildren:l,shapeFlag:d,patchFlag:u,dirs:p}=e;if(null!=a&&setRef(a,null,o,e,!0),256&d)return void t.ctx.deactivate(e);const m=1&d&&p,h=!isAsyncWrapper(e);let f;if(h&&(f=s&&s.onVnodeBeforeUnmount)&&invokeVNodeHook(f,t,e),6&d)x(e.component,o,n);else{if(128&d)return void e.suspense.unmount(o,n);m&&invokeDirectiveHook(e,null,t,"beforeUnmount"),64&d?e.type.remove(e,t,o,i,z,n):l&&(r!==Fragment||u>0&&64&u)?H(l,t,o,!1,!0):(r===Fragment&&384&u||!i&&16&d)&&H(c,t,o),n&&L(e)}(h&&(f=s&&s.onVnodeUnmounted)||m)&&queuePostRenderEffect((()=>{f&&invokeVNodeHook(f,t,e),m&&invokeDirectiveHook(e,null,t,"unmounted")}),o)},L=e=>{const{type:t,el:o,anchor:n,transition:r}=e;if(t===Fragment)return void F(o,n);if(t===Static)return void(e=>{let t,{el:o,anchor:n}=e;for(;o&&o!==n;)t=p(o),i(o),o=t;i(n)})(e);const s=()=>{i(o),r&&!r.persisted&&r.afterLeave&&r.afterLeave()};if(1&e.shapeFlag&&r&&!r.persisted){const{leave:t,delayLeave:n}=r,i=()=>t(o,s);n?n(e.el,s,i):i()}else s()},F=(e,t)=>{let o;for(;e!==t;)o=p(e),i(e),e=o;i(t)},x=(e,t,o)=>{const{bum:n,scope:i,update:r,subTree:s,um:a}=e;n&&invokeArrayFns(n),i.stop(),r&&(r.active=!1,P(s,e,t,o)),a&&queuePostRenderEffect(a,t),queuePostRenderEffect((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve()),__VUE_PROD_DEVTOOLS__&&devtoolsComponentRemoved(e)},H=function(e,t,o,n,i,r){void 0===n&&(n=!1),void 0===i&&(i=!1),void 0===r&&(r=0);for(let s=r;s<e.length;s++)P(e[s],t,o,n,i)},U=e=>6&e.shapeFlag?U(e.component.subTree):128&e.shapeFlag?e.suspense.next():p(e.anchor||e.el),j=(e,t,o)=>{null==e?t._vnode&&P(t._vnode,null,null,!0):_(t._vnode||null,e,t,null,null,null,o),flushPostFlushCbs(),t._vnode=e},z={p:_,um:P,m:V,r:L,mt:$,mc:C,pc:N,pbc:O,n:U,o:e};let K,W;return t&&([K,W]=t(z)),{render:j,hydrate:K,createApp:createAppAPI(j,K)}}function toggleRecurse(e,t){let{effect:o,update:n}=e;o.allowRecurse=n.allowRecurse=t}function traverseStaticChildren(e,t,o){void 0===o&&(o=!1);const n=e.children,i=t.children;if(isArray(n)&&isArray(i))for(let e=0;e<n.length;e++){const t=n[e];let r=i[e];1&r.shapeFlag&&!r.dynamicChildren&&((r.patchFlag<=0||32===r.patchFlag)&&(r=i[e]=cloneIfMounted(i[e]),r.el=t.el),o||traverseStaticChildren(t,r))}}function getSequence(e){const t=e.slice(),o=[0];let n,i,r,s,a;const c=e.length;for(n=0;n<c;n++){const c=e[n];if(0!==c){if(i=o[o.length-1],e[i]<c){t[n]=i,o.push(n);continue}for(r=0,s=o.length-1;r<s;)a=r+s>>1,e[o[a]]<c?r=a+1:s=a;c<e[o[r]]&&(r>0&&(t[n]=o[r-1]),o[r]=n)}}for(r=o.length,s=o[r-1];r-- >0;)o[r]=s,s=t[s];return o}const isTeleport=e=>e.__isTeleport,COMPONENTS="components";function resolveComponent(e,t){return resolveAsset(COMPONENTS,e,!0,t)||e}const NULL_DYNAMIC_COMPONENT=Symbol();function resolveAsset(e,t,o,n){void 0===n&&(n=!1);const i=currentRenderingInstance||currentInstance;if(i){const o=i.type;if(e===COMPONENTS){const e=getComponentName(o);if(e&&(e===t||e===camelize(t)||e===capitalize(camelize(t))))return o}const r=resolve(i[e]||o[e],t)||resolve(i.appContext[e],t);return!r&&n?o:r}}function resolve(e,t){return e&&(e[t]||e[camelize(t)]||e[capitalize(camelize(t))])}const Fragment=Symbol(void 0),Text=Symbol(void 0),Comment=Symbol(void 0),Static=Symbol(void 0),blockStack=[];let currentBlock=null;function openBlock(e){void 0===e&&(e=!1),blockStack.push(currentBlock=e?null:[])}function closeBlock(){blockStack.pop(),currentBlock=blockStack[blockStack.length-1]||null}let isBlockTreeEnabled=1;function setBlockTracking(e){isBlockTreeEnabled+=e}function setupBlock(e){return e.dynamicChildren=isBlockTreeEnabled>0?currentBlock||EMPTY_ARR:null,closeBlock(),isBlockTreeEnabled>0&&currentBlock&&currentBlock.push(e),e}function createElementBlock(e,t,o,n,i,r){return setupBlock(createBaseVNode(e,t,o,n,i,r,!0))}function createBlock(e,t,o,n,i){return setupBlock(createVNode(e,t,o,n,i,!0))}function isVNode(e){return!!e&&!0===e.__v_isVNode}function isSameVNodeType(e,t){return e.type===t.type&&e.key===t.key}const InternalObjectKey="__vInternal",normalizeKey=e=>{let{key:t}=e;return null!=t?t:null},normalizeRef=e=>{let{ref:t,ref_key:o,ref_for:n}=e;return null!=t?isString(t)||isRef(t)||isFunction(t)?{i:currentRenderingInstance,r:t,k:o,f:!!n}:t:null};function createBaseVNode(e,t,o,n,i,r,s,a){void 0===t&&(t=null),void 0===o&&(o=null),void 0===n&&(n=0),void 0===i&&(i=null),void 0===r&&(r=e===Fragment?0:1),void 0===s&&(s=!1),void 0===a&&(a=!1);const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&normalizeKey(t),ref:t&&normalizeRef(t),scopeId:currentScopeId,slotScopeIds:null,children:o,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:n,dynamicProps:i,dynamicChildren:null,appContext:null};return a?(normalizeChildren(c,o),128&r&&e.normalize(c)):o&&(c.shapeFlag|=isString(o)?8:16),isBlockTreeEnabled>0&&!s&&currentBlock&&(c.patchFlag>0||6&r)&&32!==c.patchFlag&&currentBlock.push(c),c}const createVNode=_createVNode;function _createVNode(e,t,o,n,i,r){if(void 0===t&&(t=null),void 0===o&&(o=null),void 0===n&&(n=0),void 0===i&&(i=null),void 0===r&&(r=!1),e&&e!==NULL_DYNAMIC_COMPONENT||(e=Comment),isVNode(e)){const n=cloneVNode(e,t,!0);return o&&normalizeChildren(n,o),n}if(isClassComponent(e)&&(e=e.__vccOpts),t){t=guardReactiveProps(t);let{class:e,style:o}=t;e&&!isString(e)&&(t.class=normalizeClass(e)),isObject$1(o)&&(isProxy(o)&&!isArray(o)&&(o=extend({},o)),t.style=normalizeStyle(o))}return createBaseVNode(e,t,o,n,i,isString(e)?1:isSuspense(e)?128:isTeleport(e)?64:isObject$1(e)?4:isFunction(e)?2:0,r,!0)}function guardReactiveProps(e){return e?isProxy(e)||InternalObjectKey in e?extend({},e):e:null}function cloneVNode(e,t,o){void 0===o&&(o=!1);const{props:n,ref:i,patchFlag:r,children:s}=e,a=t?mergeProps(n||{},t):n;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&normalizeKey(a),ref:t&&t.ref?o&&i?isArray(i)?i.concat(normalizeRef(t)):[i,normalizeRef(t)]:normalizeRef(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Fragment?-1===r?16:16|r:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&cloneVNode(e.ssContent),ssFallback:e.ssFallback&&cloneVNode(e.ssFallback),el:e.el,anchor:e.anchor}}function createTextVNode(e,t){return void 0===e&&(e=" "),void 0===t&&(t=0),createVNode(Text,null,e,t)}function createCommentVNode(e,t){return void 0===e&&(e=""),void 0===t&&(t=!1),t?(openBlock(),createBlock(Comment,null,e)):createVNode(Comment,null,e)}function normalizeVNode(e){return null==e||"boolean"==typeof e?createVNode(Comment):isArray(e)?createVNode(Fragment,null,e.slice()):"object"==typeof e?cloneIfMounted(e):createVNode(Text,null,String(e))}function cloneIfMounted(e){return null===e.el||e.memo?e:cloneVNode(e)}function normalizeChildren(e,t){let o=0;const{shapeFlag:n}=e;if(null==t)t=null;else if(isArray(t))o=16;else if("object"==typeof t){if(65&n){const o=t.default;return void(o&&(o._c&&(o._d=!1),normalizeChildren(e,o()),o._c&&(o._d=!0)))}{o=32;const n=t._;n||InternalObjectKey in t?3===n&&currentRenderingInstance&&(1===currentRenderingInstance.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=currentRenderingInstance}}else isFunction(t)?(t={default:t,_ctx:currentRenderingInstance},o=32):(t=String(t),64&n?(o=16,t=[createTextVNode(t)]):o=8);e.children=t,e.shapeFlag|=o}function mergeProps(){const e={};for(let t=0;t<arguments.length;t++){const o=t<0||arguments.length<=t?void 0:arguments[t];for(const t in o)if("class"===t)e.class!==o.class&&(e.class=normalizeClass([e.class,o.class]));else if("style"===t)e.style=normalizeStyle([e.style,o.style]);else if(isOn(t)){const n=e[t],i=o[t];n===i||isArray(n)&&n.includes(i)||(e[t]=n?[].concat(n,i):i)}else""!==t&&(e[t]=o[t])}return e}function invokeVNodeHook(e,t,o,n){void 0===n&&(n=null),callWithAsyncErrorHandling(e,t,7,[o,n])}function renderList(e,t,o,n){let i;const r=o&&o[n];if(isArray(e)||isString(e)){i=new Array(e.length);for(let o=0,n=e.length;o<n;o++)i[o]=t(e[o],o,void 0,r&&r[o])}else if("number"==typeof e){i=new Array(e);for(let o=0;o<e;o++)i[o]=t(o+1,o,void 0,r&&r[o])}else if(isObject$1(e))if(e[Symbol.iterator])i=Array.from(e,((e,o)=>t(e,o,void 0,r&&r[o])));else{const o=Object.keys(e);i=new Array(o.length);for(let n=0,s=o.length;n<s;n++){const s=o[n];i[n]=t(e[s],s,n,r&&r[n])}}else i=[];return o&&(o[n]=i),i}function renderSlot(e,t,o,n,i){if(void 0===o&&(o={}),currentRenderingInstance.isCE)return createVNode("slot","default"===t?null:{name:t},n&&n());let r=e[t];r&&r._c&&(r._d=!1),openBlock();const s=r&&ensureValidVNode(r(o)),a=createBlock(Fragment,{key:o.key||`_$t}`},s||(n?n():[]),s&&1===e._?64:-2);return!i&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),r&&r._c&&(r._d=!0),a}function ensureValidVNode(e){return e.some((e=>!isVNode(e)||e.type!==Comment&&!(e.type===Fragment&&!ensureValidVNode(e.children))))?e:null}const getPublicInstance=e=>e?isStatefulComponent(e)?getExposeProxy(e)||e.proxy:getPublicInstance(e.parent):null,publicPropertiesMap=extend(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>getPublicInstance(e.parent),$root:e=>getPublicInstance(e.root),$emit:e=>e.emit,$options:e=>__VUE_OPTIONS_API__?resolveMergedOptions(e):e.type,$forceUpdate:e=>()=>queueJob(e.update),$nextTick:e=>nextTick.bind(e.proxy),$watch:e=>__VUE_OPTIONS_API__?instanceWatch.bind(e):NOOP}),PublicInstanceProxyHandlers={get(e,t){let{_:o}=e;const{ctx:n,setupState:i,data:r,props:s,accessCache:a,type:c,appContext:l}=o;let d;if("$"!==t[0]){const e=a[t];if(void 0!==e)switch(e){case 1:return i[t];case 2:return r[t];case 4:return n[t];case 3:return s[t]}else{if(i!==EMPTY_OBJ&&hasOwn(i,t))return a[t]=1,i[t];if(r!==EMPTY_OBJ&&hasOwn(r,t))return a[t]=2,r[t];if((d=o.propsOptions[0])&&hasOwn(d,t))return a[t]=3,s[t];if(n!==EMPTY_OBJ&&hasOwn(n,t))return a[t]=4,n[t];__VUE_OPTIONS_API__&&!shouldCacheAccess||(a[t]=0)}}const u=publicPropertiesMap[t];let p,m;return u?("$attrs"===t&&track(o,"get",t),u(o)):(p=c.__cssModules)&&(p=p[t])?p:n!==EMPTY_OBJ&&hasOwn(n,t)?(a[t]=4,n[t]):(m=l.config.globalProperties,hasOwn(m,t)?m[t]:void 0)},set(e,t,o){let{_:n}=e;const{data:i,setupState:r,ctx:s}=n;if(r!==EMPTY_OBJ&&hasOwn(r,t))r[t]=o;else if(i!==EMPTY_OBJ&&hasOwn(i,t))i[t]=o;else if(hasOwn(n.props,t))return!1;return("$"!==t[0]||!(t.slice(1)in n))&&(s[t]=o,!0)},has(e,t){let o,{_:{data:n,setupState:i,accessCache:r,ctx:s,appContext:a,propsOptions:c}}=e;return!!r[t]||n!==EMPTY_OBJ&&hasOwn(n,t)||i!==EMPTY_OBJ&&hasOwn(i,t)||(o=c[0])&&hasOwn(o,t)||hasOwn(s,t)||hasOwn(publicPropertiesMap,t)||hasOwn(a.config.globalProperties,t)}},emptyAppContext=createAppContext();let uid$1=0;function createComponentInstance(e,t,o){const n=e.type,i=(t?t.appContext:e.appContext)||emptyAppContext,r={uid:uid$1++,vnode:e,type:n,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new EffectScope(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:normalizePropsOptions(n,i),emitsOptions:normalizeEmitsOptions(n,i),emit:null,emitted:null,propsDefaults:EMPTY_OBJ,inheritAttrs:n.inheritAttrs,ctx:EMPTY_OBJ,data:EMPTY_OBJ,props:EMPTY_OBJ,attrs:EMPTY_OBJ,slots:EMPTY_OBJ,refs:EMPTY_OBJ,setupState:EMPTY_OBJ,setupContext:null,suspense:o,suspenseId:o?o.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return r.ctx={_:r},r.root=t?t.root:r,r.emit=emit$1.bind(null,r),e.ce&&e.ce(r),r}let currentInstance=null;const getCurrentInstance=()=>currentInstance||currentRenderingInstance,setCurrentInstance=e=>{currentInstance=e,e.scope.on()},unsetCurrentInstance=()=>{currentInstance&&currentInstance.scope.off(),currentInstance=null};function isStatefulComponent(e){return 4&e.vnode.shapeFlag}let compile,isInSSRComponentSetup=!1;function setupComponent(e,t){void 0===t&&(t=!1),isInSSRComponentSetup=t;const{props:o,children:n}=e.vnode,i=isStatefulComponent(e);initProps(e,o,i,t),initSlots(e,n);const r=i?setupStatefulComponent(e,t):void 0;return isInSSRComponentSetup=!1,r}function setupStatefulComponent(e,t){const o=e.type;e.accessCache=Object.create(null),e.proxy=markRaw(new Proxy(e.ctx,PublicInstanceProxyHandlers));const{setup:n}=o;if(n){const o=e.setupContext=n.length>1?createSetupContext(e):null;setCurrentInstance(e),pauseTracking();const i=callWithErrorHandling(n,e,0,[e.props,o]);if(resetTracking(),unsetCurrentInstance(),isPromise$1(i)){if(i.then(unsetCurrentInstance,unsetCurrentInstance),t)return i.then((o=>{handleSetupResult(e,o,t)})).catch((t=>{handleError(t,e,0)}));e.asyncDep=i}else handleSetupResult(e,i,t)}else finishComponentSetup(e,t)}function handleSetupResult(e,t,o){isFunction(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:isObject$1(t)&&(__VUE_PROD_DEVTOOLS__&&(e.devtoolsRawSetupState=t),e.setupState=proxyRefs(t)),finishComponentSetup(e,o)}function finishComponentSetup(e,t,o){const n=e.type;if(!e.render){if(!t&&compile&&!n.render){const t=n.template;if(t){const{isCustomElement:o,compilerOptions:i}=e.appContext.config,{delimiters:r,compilerOptions:s}=n,a=extend(extend({isCustomElement:o,delimiters:r},i),s);n.render=compile(t,a)}}e.render=n.render||NOOP}__VUE_OPTIONS_API__&&(setCurrentInstance(e),pauseTracking(),applyOptions(e),resetTracking(),unsetCurrentInstance())}function createAttrsProxy(e){return new Proxy(e.attrs,{get:(t,o)=>(track(e,"get","$attrs"),t[o])})}function createSetupContext(e){const t=t=>{e.exposed=t||{}};let o;return{get attrs(){return o||(o=createAttrsProxy(e))},slots:e.slots,emit:e.emit,expose:t}}function getExposeProxy(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(proxyRefs(markRaw(e.exposed)),{get:(t,o)=>o in t?t[o]:o in publicPropertiesMap?publicPropertiesMap[o](e):void 0}))}function getComponentName(e){return isFunction(e)&&e.displayName||e.name}function isClassComponent(e){return isFunction(e)&&"__vccOpts"in e}function callWithErrorHandling(e,t,o,n){let i;try{i=n?e(...n):e()}catch(e){handleError(e,t,o)}return i}function callWithAsyncErrorHandling(e,t,o,n){if(isFunction(e)){const i=callWithErrorHandling(e,t,o,n);return i&&isPromise$1(i)&&i.catch((e=>{handleError(e,t,o)})),i}const i=[];for(let r=0;r<e.length;r++)i.push(callWithAsyncErrorHandling(e[r],t,o,n));return i}function handleError(e,t,o,n){if(t&&t.vnode,t){let n=t.parent;const i=t.proxy,r=o;for(;n;){const t=n.ec;if(t)for(let o=0;o<t.length;o++)if(!1===t[o](e,i,r))return;n=n.parent}const s=t.appContext.config.errorHandler;if(s)return void callWithErrorHandling(s,null,10,[e,i,r])}logError(e)}function logError(e,t,o,n){console.error(e)}let isFlushing=!1,isFlushPending=!1;const queue=[];let flushIndex=0;const pendingPreFlushCbs=[];let activePreFlushCbs=null,preFlushIndex=0;const pendingPostFlushCbs=[];let activePostFlushCbs=null,postFlushIndex=0;const resolvedPromise=Promise.resolve();let currentFlushPromise=null,currentPreFlushParentJob=null;function nextTick(e){const t=currentFlushPromise||resolvedPromise;return e?t.then(this?e.bind(this):e):t}function findInsertionIndex(e){let t=flushIndex+1,o=queue.length;for(;t<o;){const n=t+o>>>1;getId(queue[n])<e?t=n+1:o=n}return t}function queueJob(e){queue.length&&queue.includes(e,isFlushing&&e.allowRecurse?flushIndex+1:flushIndex)||e===currentPreFlushParentJob||(null==e.id?queue.push(e):queue.splice(findInsertionIndex(e.id),0,e),queueFlush())}function queueFlush(){isFlushing||isFlushPending||(isFlushPending=!0,currentFlushPromise=resolvedPromise.then(flushJobs))}function invalidateJob(e){const t=queue.indexOf(e);t>flushIndex&&queue.splice(t,1)}function queueCb(e,t,o,n){isArray(e)?o.push(...e):t&&t.includes(e,e.allowRecurse?n+1:n)||o.push(e),queueFlush()}function queuePreFlushCb(e){queueCb(e,activePreFlushCbs,pendingPreFlushCbs,preFlushIndex)}function queuePostFlushCb(e){queueCb(e,activePostFlushCbs,pendingPostFlushCbs,postFlushIndex)}function flushPreFlushCbs(e,t){if(void 0===t&&(t=null),pendingPreFlushCbs.length){for(currentPreFlushParentJob=t,activePreFlushCbs=[...new Set(pendingPreFlushCbs)],pendingPreFlushCbs.length=0,preFlushIndex=0;preFlushIndex<activePreFlushCbs.length;preFlushIndex++)activePreFlushCbs[preFlushIndex]();activePreFlushCbs=null,preFlushIndex=0,currentPreFlushParentJob=null,flushPreFlushCbs(e,t)}}function flushPostFlushCbs(e){if(pendingPostFlushCbs.length){const e=[...new Set(pendingPostFlushCbs)];if(pendingPostFlushCbs.length=0,activePostFlushCbs)return void activePostFlushCbs.push(...e);for(activePostFlushCbs=e,activePostFlushCbs.sort(((e,t)=>getId(e)-getId(t))),postFlushIndex=0;postFlushIndex<activePostFlushCbs.length;postFlushIndex++)activePostFlushCbs[postFlushIndex]();activePostFlushCbs=null,postFlushIndex=0}}const getId=e=>null==e.id?1/0:e.id;function flushJobs(e){isFlushPending=!1,isFlushing=!0,flushPreFlushCbs(e),queue.sort(((e,t)=>getId(e)-getId(t)));try{for(flushIndex=0;flushIndex<queue.length;flushIndex++){const e=queue[flushIndex];e&&!1!==e.active&&callWithErrorHandling(e,null,14)}}finally{flushIndex=0,queue.length=0,flushPostFlushCbs(),isFlushing=!1,currentFlushPromise=null,(queue.length||pendingPreFlushCbs.length||pendingPostFlushCbs.length)&&flushJobs(e)}}const INITIAL_WATCHER_VALUE={};function watch(e,t,o){return doWatch(e,t,o)}function doWatch(e,t,o){let{immediate:n,deep:i,flush:r,onTrack:s,onTrigger:a}=void 0===o?EMPTY_OBJ:o;const c=currentInstance;let l,d,u=!1,p=!1;if(isRef(e)?(l=()=>e.value,u=!!e._shallow):isReactive(e)?(l=()=>e,i=!0):isArray(e)?(p=!0,u=e.some(isReactive),l=()=>e.map((e=>isRef(e)?e.value:isReactive(e)?traverse(e):isFunction(e)?callWithErrorHandling(e,c,2):void 0))):l=isFunction(e)?t?()=>callWithErrorHandling(e,c,2):()=>{if(!c||!c.isUnmounted)return d&&d(),callWithAsyncErrorHandling(e,c,3,[m])}:NOOP,t&&i){const e=l;l=()=>traverse(e())}let m=e=>{d=g.onStop=()=>{callWithErrorHandling(e,c,4)}};if(isInSSRComponentSetup)return m=NOOP,t?n&&callWithAsyncErrorHandling(t,c,3,[l(),p?[]:void 0,m]):l(),NOOP;let h=p?[]:INITIAL_WATCHER_VALUE;const f=()=>{if(g.active)if(t){const e=g.run();(i||u||(p?e.some(((e,t)=>hasChanged(e,h[t]))):hasChanged(e,h)))&&(d&&d(),callWithAsyncErrorHandling(t,c,3,[e,h===INITIAL_WATCHER_VALUE?void 0:h,m]),h=e)}else g.run()};let _;f.allowRecurse=!!t,_="sync"===r?f:"post"===r?()=>queuePostRenderEffect(f,c&&c.suspense):()=>{!c||c.isMounted?queuePreFlushCb(f):f()};const g=new ReactiveEffect(l,_);return t?n?f():h=g.run():"post"===r?queuePostRenderEffect(g.run.bind(g),c&&c.suspense):g.run(),()=>{g.stop(),c&&c.scope&&remove(c.scope.effects,g)}}function instanceWatch(e,t,o){const n=this.proxy,i=isString(e)?e.includes(".")?createPathGetter(n,e):()=>n[e]:e.bind(n,n);let r;isFunction(t)?r=t:(r=t.handler,o=t);const s=currentInstance;setCurrentInstance(this);const a=doWatch(i,r.bind(n),o);return s?setCurrentInstance(s):unsetCurrentInstance(),a}function createPathGetter(e,t){const o=t.split(".");return()=>{let t=e;for(let e=0;e<o.length&&t;e++)t=t[o[e]];return t}}function traverse(e,t){if(!isObject$1(e)||e.__v_skip)return e;if((t=t||new Set).has(e))return e;if(t.add(e),isRef(e))traverse(e.value,t);else if(isArray(e))for(let o=0;o<e.length;o++)traverse(e[o],t);else if(isSet(e)||isMap(e))e.forEach((e=>{traverse(e,t)}));else if(isPlainObject(e))for(const o in e)traverse(e[o],t);return e}function h(e,t,o){const n=arguments.length;return 2===n?isObject$1(t)&&!isArray(t)?isVNode(t)?createVNode(e,null,[t]):createVNode(e,t):createVNode(e,null,t):(n>3?o=Array.prototype.slice.call(arguments,2):3===n&&isVNode(o)&&(o=[o]),createVNode(e,t,o))}const version="3.2.26",svgNS="http://www.w3.org/2000/svg",doc="undefined"!=typeof document?document:null,staticTemplateCache=new Map,nodeOps={insert:(e,t,o)=>{t.insertBefore(e,o||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,o,n)=>{const i=t?doc.createElementNS(svgNS,e):doc.createElement(e,o?{is:o}:void 0);return"select"===e&&n&&null!=n.multiple&&i.setAttribute("multiple",n.multiple),i},createText:e=>doc.createTextNode(e),createComment:e=>doc.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>doc.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){const t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,o,n){const i=o?o.previousSibling:t.lastChild;let r=staticTemplateCache.get(e);if(!r){const t=doc.createElement("template");if(t.innerHTML=n?`<svg>$e}</svg>`:e,r=t.content,n){const e=r.firstChild;for(;e.firstChild;)r.appendChild(e.firstChild);r.removeChild(e)}staticTemplateCache.set(e,r)}return t.insertBefore(r.cloneNode(!0),o),[i?i.nextSibling:t.firstChild,o?o.previousSibling:t.lastChild]}};function patchClass(e,t,o){const n=e._vtc;n&&(t=(t?[t,...n]:[...n]).join(" ")),null==t?e.removeAttribute("class"):o?e.setAttribute("class",t):e.className=t}function patchStyle(e,t,o){const n=e.style,i=isString(o);if(o&&!i){for(const e in o)setStyle(n,e,o[e]);if(t&&!isString(t))for(const e in t)null==o[e]&&setStyle(n,e,"")}else{const r=n.display;i?t!==o&&(n.cssText=o):t&&e.removeAttribute("style"),"_vod"in e&&(n.display=r)}}const importantRE=/\s*!important$/;function setStyle(e,t,o){if(isArray(o))o.forEach((o=>setStyle(e,t,o)));else if(t.startsWith("--"))e.setProperty(t,o);else{const n=autoPrefix(e,t);importantRE.test(o)?e.setProperty(hyphenate(n),o.replace(importantRE,""),"important"):e[n]=o}}const prefixes=["Webkit","Moz","ms"],prefixCache={};function autoPrefix(e,t){const o=prefixCache[t];if(o)return o;let n=camelize(t);if("filter"!==n&&n in e)return prefixCache[t]=n;n=capitalize(n);for(let o=0;o<prefixes.length;o++){const i=prefixes[o]+n;if(i in e)return prefixCache[t]=i}return t}const xlinkNS="http://www.w3.org/1999/xlink";function patchAttr(e,t,o,n,i){if(n&&t.startsWith("xlink:"))null==o?e.removeAttributeNS(xlinkNS,t.slice(6,t.length)):e.setAttributeNS(xlinkNS,t,o);else{const n=isSpecialBooleanAttr(t);null==o||n&&!includeBooleanAttr(o)?e.removeAttribute(t):e.setAttribute(t,n?"":o)}}function patchDOMProp(e,t,o,n,i,r,s){if("innerHTML"===t||"textContent"===t)return n&&s(n,i,r),void(e[t]=null==o?"":o);if("value"===t&&"PROGRESS"!==e.tagName&&!e.tagName.includes("-")){e._value=o;const n=null==o?"":o;return e.value===n&&"OPTION"!==e.tagName||(e.value=n),void(null==o&&e.removeAttribute(t))}if(""===o||null==o){const n=typeof e[t];if("boolean"===n)return void(e[t]=includeBooleanAttr(o));if(null==o&&"string"===n)return e[t]="",void e.removeAttribute(t);if("number"===n){try{e[t]=0}catch(e){}return void e.removeAttribute(t)}}try{e[t]=o}catch(e){}}let _getNow=Date.now,skipTimestampCheck=!1;if("undefined"!=typeof window){_getNow()>document.createEvent("Event").timeStamp&&(_getNow=()=>performance.now());const e=navigator.userAgent.match(/firefox\/(\d+)/i);skipTimestampCheck=!!(e&&Number(e[1])<=53)}let cachedNow=0;const p=Promise.resolve(),reset=()=>{cachedNow=0},getNow=()=>cachedNow||(p.then(reset),cachedNow=_getNow());function addEventListener(e,t,o,n){e.addEventListener(t,o,n)}function removeEventListener(e,t,o,n){e.removeEventListener(t,o,n)}function patchEvent(e,t,o,n,i){void 0===i&&(i=null);const r=e._vei||(e._vei={}),s=r[t];if(n&&s)s.value=n;else{const[o,a]=parseName(t);if(n){addEventListener(e,o,r[t]=createInvoker(n,i),a)}else s&&(removeEventListener(e,o,s,a),r[t]=void 0)}}const optionsModifierRE=/(?:Once|Passive|Capture)$/;function parseName(e){let t;if(optionsModifierRE.test(e)){let o;for(t={};o=e.match(optionsModifierRE);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[hyphenate(e.slice(2)),t]}function createInvoker(e,t){const o=e=>{const n=e.timeStamp||_getNow();(skipTimestampCheck||n>=o.attached-1)&&callWithAsyncErrorHandling(patchStopImmediatePropagation(e,o.value),t,5,[e])};return o.value=e,o.attached=cachedNow||(p.then(reset),cachedNow=_getNow()),o}function patchStopImmediatePropagation(e,t){if(isArray(t)){const o=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{o.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e(t)))}return t}const nativeOnRE=/^on[a-z]/,patchProp=function(e,t,o,n,i,r,s,a,c){void 0===i&&(i=!1),"class"===t?patchClass(e,n,i):"style"===t?patchStyle(e,o,n):isOn(t)?isModelListener(t)||patchEvent(e,t,o,n,s):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):shouldSetAsProp(e,t,n,i))?patchDOMProp(e,t,n,r,s,a,c):("true-value"===t?e._trueValue=n:"false-value"===t&&(e._falseValue=n),patchAttr(e,t,n,i))};function shouldSetAsProp(e,t,o,n){return n?"innerHTML"===t||"textContent"===t||!!(t in e&&nativeOnRE.test(t)&&isFunction(o)):"spellcheck"!==t&&"draggable"!==t&&("form"!==t&&(("list"!==t||"INPUT"!==e.tagName)&&(("type"!==t||"TEXTAREA"!==e.tagName)&&((!nativeOnRE.test(t)||!isString(o))&&t in e))))}const TRANSITION="transition",ANIMATION="animation",Transition=(e,t)=>{let{slots:o}=t;return h(BaseTransition,resolveTransitionProps(e),o)};Transition.displayName="Transition";const DOMTransitionPropsValidators={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};Transition.props=extend({},BaseTransition.props,DOMTransitionPropsValidators);const callHook=function(e,t){void 0===t&&(t=[]),isArray(e)?e.forEach((e=>e(...t))):e&&e(...t)},hasExplicitCallback=e=>!!e&&(isArray(e)?e.some((e=>e.length>1)):e.length>1);function resolveTransitionProps(e){const t={};for(const o in e)o in DOMTransitionPropsValidators||(t[o]=e[o]);if(!1===e.css)return t;const{name:o="v",type:n,duration:i,enterFromClass:r=`$o}-enter-from`,enterActiveClass:s=`$o}-enter-active`,enterToClass:a=`$o}-enter-to`,appearFromClass:c=r,appearActiveClass:l=s,appearToClass:d=a,leaveFromClass:u=`$o}-leave-from`,leaveActiveClass:p=`$o}-leave-active`,leaveToClass:m=`$o}-leave-to`}=e,h=normalizeDuration(i),f=h&&h[0],_=h&&h[1],{onBeforeEnter:g,onEnter:v,onEnterCancelled:E,onLeave:y,onLeaveCancelled:S,onBeforeAppear:b=g,onAppear:C=v,onAppearCancelled:w=E}=t,O=(e,t,o)=>{removeTransitionClass(e,t?d:a),removeTransitionClass(e,t?l:s),o&&o()},I=(e,t)=>{removeTransitionClass(e,m),removeTransitionClass(e,p),t&&t()},A=e=>(t,o)=>{const i=e?C:v,s=()=>O(t,e,o);callHook(i,[t,s]),nextFrame((()=>{removeTransitionClass(t,e?c:r),addTransitionClass(t,e?d:a),hasExplicitCallback(i)||whenTransitionEnds(t,n,f,s)}))};return extend(t,{onBeforeEnter(e){callHook(g,[e]),addTransitionClass(e,r),addTransitionClass(e,s)},onBeforeAppear(e){callHook(b,[e]),addTransitionClass(e,c),addTransitionClass(e,l)},onEnter:A(!1),onAppear:A(!0),onLeave(e,t){const o=()=>I(e,t);addTransitionClass(e,u),forceReflow(),addTransitionClass(e,p),nextFrame((()=>{removeTransitionClass(e,u),addTransitionClass(e,m),hasExplicitCallback(y)||whenTransitionEnds(e,n,_,o)})),callHook(y,[e,o])},onEnterCancelled(e){O(e,!1),callHook(E,[e])},onAppearCancelled(e){O(e,!0),callHook(w,[e])},onLeaveCancelled(e){I(e),callHook(S,[e])}})}function normalizeDuration(e){if(null==e)return null;if(isObject$1(e))return[NumberOf(e.enter),NumberOf(e.leave)];{const t=NumberOf(e);return[t,t]}}function NumberOf(e){return toNumber(e)}function addTransitionClass(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e._vtc||(e._vtc=new Set)).add(t)}function removeTransitionClass(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const{_vtc:o}=e;o&&(o.delete(t),o.size||(e._vtc=void 0))}function nextFrame(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let endId=0;function whenTransitionEnds(e,t,o,n){const i=e._endId=++endId,r=()=>{i===e._endId&&n()};if(o)return setTimeout(r,o);const{type:s,timeout:a,propCount:c}=getTransitionInfo(e,t);if(!s)return n();const l=s+"end";let d=0;const u=()=>{e.removeEventListener(l,p),r()},p=t=>{t.target===e&&++d>=c&&u()};setTimeout((()=>{d<c&&u()}),a+1),e.addEventListener(l,p)}function getTransitionInfo(e,t){const o=window.getComputedStyle(e),n=e=>(o[e]||"").split(", "),i=n("transitionDelay"),r=n("transitionDuration"),s=getTimeout(i,r),a=n("animationDelay"),c=n("animationDuration"),l=getTimeout(a,c);let d=null,u=0,p=0;t===TRANSITION?s>0&&(d=TRANSITION,u=s,p=r.length):t===ANIMATION?l>0&&(d=ANIMATION,u=l,p=c.length):(u=Math.max(s,l),d=u>0?s>l?TRANSITION:ANIMATION:null,p=d?d===TRANSITION?r.length:c.length:0);return{type:d,timeout:u,propCount:p,hasTransform:d===TRANSITION&&/\b(transform|all)(,|$)/.test(o.transitionProperty)}}function getTimeout(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map(((t,o)=>toMs(t)+toMs(e[o]))))}function toMs(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function forceReflow(){return document.body.offsetHeight}const getModelAssigner=e=>{const t=e.props["onUpdate:modelValue"];return isArray(t)?e=>invokeArrayFns(t,e):t};function onCompositionStart(e){e.target.composing=!0}function onCompositionEnd(e){const t=e.target;t.composing&&(t.composing=!1,trigger(t,"input"))}function trigger(e,t){const o=document.createEvent("HTMLEvents");o.initEvent(t,!0,!0),e.dispatchEvent(o)}const vModelText={created(e,t,o){let{modifiers:{lazy:n,trim:i,number:r}}=t;e._assign=getModelAssigner(o);const s=r||o.props&&"number"===o.props.type;addEventListener(e,n?"change":"input",(t=>{if(t.target.composing)return;let o=e.value;i?o=o.trim():s&&(o=toNumber(o)),e._assign(o)})),i&&addEventListener(e,"change",(()=>{e.value=e.value.trim()})),n||(addEventListener(e,"compositionstart",onCompositionStart),addEventListener(e,"compositionend",onCompositionEnd),addEventListener(e,"change",onCompositionEnd))},mounted(e,t){let{value:o}=t;e.value=null==o?"":o},beforeUpdate(e,t,o){let{value:n,modifiers:{lazy:i,trim:r,number:s}}=t;if(e._assign=getModelAssigner(o),e.composing)return;if(document.activeElement===e){if(i)return;if(r&&e.value.trim()===n)return;if((s||"number"===e.type)&&toNumber(e.value)===n)return}const a=null==n?"":n;e.value!==a&&(e.value=a)}},systemModifiers=["ctrl","shift","alt","meta"],modifierGuards={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>systemModifiers.some((o=>e[`$o}Key`]&&!t.includes(o)))},withModifiers=(e,t)=>function(o){for(let e=0;e<t.length;e++){const n=modifierGuards[t[e]];if(n&&n(o,t))return}for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return e(o,...i)},keyNames={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},withKeys=(e,t)=>o=>{if(!("key"in o))return;const n=hyphenate(o.key);return t.some((e=>e===n||keyNames[e]===n))?e(o):void 0},vShow={beforeMount(e,t,o){let{value:n}=t,{transition:i}=o;e._vod="none"===e.style.display?"":e.style.display,i&&n?i.beforeEnter(e):setDisplay(e,n)},mounted(e,t,o){let{value:n}=t,{transition:i}=o;i&&n&&i.enter(e)},updated(e,t,o){let{value:n,oldValue:i}=t,{transition:r}=o;!n!=!i&&(r?n?(r.beforeEnter(e),setDisplay(e,!0),r.enter(e)):r.leave(e,(()=>{setDisplay(e,!1)})):setDisplay(e,n))},beforeUnmount(e,t){let{value:o}=t;setDisplay(e,o)}};function setDisplay(e,t){e.style.display=t?e._vod:"none"}const rendererOptions=extend({patchProp:patchProp},nodeOps);let renderer;function ensureRenderer(){return renderer||(renderer=createRenderer(rendererOptions))}const createApp=function(){const e=ensureRenderer().createApp(...arguments),{mount:t}=e;return e.mount=o=>{const n=normalizeContainer(o);if(!n)return;const i=e._component;isFunction(i)||i.render||i.template||(i.template=n.innerHTML),n.innerHTML="";const r=t(n,!1,n instanceof SVGElement);return n instanceof Element&&(n.removeAttribute("v-cloak"),n.setAttribute("data-v-app","")),r},e};function normalizeContainer(e){if(isString(e)){return document.querySelector(e)}return e}class Event{constructor(){this.events={}}fire(e,t){void 0===t&&(t=null),this.events[e]&&this.events[e].forEach((e=>e(t)))}listen(e,t){this.events[e]=this.events[e]||[],this.events[e].push(t)}}const SET_IS_LOADING="SET_IS_LOADING",SELECT_DIRECTORY="SELECT_DIRECTORY",SELECT_BROWSER_ITEM="SELECT_BROWSER_ITEM",SELECT_BROWSER_ITEMS="SELECT_BROWSER_ITEMS",UNSELECT_BROWSER_ITEM="UNSELECT_BROWSER_ITEM",UNSELECT_ALL_BROWSER_ITEMS="UNSELECT_ALL_BROWSER_ITEMS",INCREASE_GRID_SIZE="INCREASE_GRID_SIZE",DECREASE_GRID_SIZE="DECREASE_GRID_SIZE",LOAD_CONTENTS_SUCCESS="LOAD_CONTENTS_SUCCESS",LOAD_FULL_CONTENTS_SUCCESS="LOAD_FULL_CONTENTS_SUCCESS",CREATE_DIRECTORY_SUCCESS="CREATE_DIRECTORY_SUCCESS",UPLOAD_SUCCESS="UPLOAD_SUCCESS",SHOW_CREATE_FOLDER_MODAL="SHOW_CREATE_FOLDER_MODAL",HIDE_CREATE_FOLDER_MODAL="HIDE_CREATE_FOLDER_MODAL",SHOW_CONFIRM_DELETE_MODAL="SHOW_CONFIRM_DELETE_MODAL",HIDE_CONFIRM_DELETE_MODAL="HIDE_CONFIRM_DELETE_MODAL",SHOW_INFOBAR="SHOW_INFOBAR",HIDE_INFOBAR="HIDE_INFOBAR",DELETE_SUCCESS="DELETE_SUCCESS",CHANGE_LIST_VIEW="CHANGE_LIST_VIEW",SHOW_PREVIEW_MODAL="SHOW_PREVIEW_MODAL",HIDE_PREVIEW_MODAL="HIDE_PREVIEW_MODAL",SHOW_RENAME_MODAL="SHOW_RENAME_MODAL",HIDE_RENAME_MODAL="HIDE_RENAME_MODAL",RENAME_SUCCESS="RENAME_SUCCESS",SHOW_SHARE_MODAL="SHOW_SHARE_MODAL",HIDE_SHARE_MODAL="HIDE_SHARE_MODAL",SET_SEARCH_QUERY="SET_SEARCH_QUERY";class Notifications{success(e,t){notifications.notify(e,{type:"message",dismiss:!0,...t})}error(e,t){notifications.notify(e,{type:"error",dismiss:!0,...t})}ask(e){return window.confirm(e)}notify(e,t){let o;"message"===t.type&&(o=3e3),Joomla.renderMessages({[t.type]:[Joomla.Text._(e)]},void 0,!0,o)}}let notifications=new Notifications;var script$t={name:"MediaApp",data:()=>({fullHeight:""}),computed:{disks(){return this.$store.state.disks}},created(){MediaManager.Event.listen("onClickCreateFolder",(()=>this.$store.commit(SHOW_CREATE_FOLDER_MODAL))),MediaManager.Event.listen("onClickDelete",(()=>{this.$store.state.selectedItems.length>0?this.$store.commit(SHOW_CONFIRM_DELETE_MODAL):notifications.error("COM_MEDIA_PLEASE_SELECT_ITEM")}))},mounted(){this.$nextTick((()=>{this.setFullHeight(),window.addEventListener("resize",this.setFullHeight)})),this.$store.dispatch("getContents",this.$store.state.selectedDirectory)},beforeUnmount(){window.removeEventListener("resize",this.setFullHeight)},methods:{setFullHeight(){this.fullHeight=window.innerHeight-this.$el.getBoundingClientRect().top+"px"}}};const _hoisted_1$t={class:"media-container"},_hoisted_2$l={class:"media-sidebar"},_hoisted_3$g={class:"media-main"};function render$t(e,t,o,n,i,r){const s=resolveComponent("media-disk"),a=resolveComponent("media-toolbar"),c=resolveComponent("media-browser"),l=resolveComponent("media-upload"),d=resolveComponent("media-create-folder-modal"),u=resolveComponent("media-preview-modal"),p=resolveComponent("media-rename-modal"),m=resolveComponent("media-share-modal"),h=resolveComponent("media-confirm-delete-modal");return openBlock(),createElementBlock("div",_hoisted_1$t,[createBaseVNode("div",_hoisted_2$l,[(openBlock(!0),createElementBlock(Fragment,null,renderList(r.disks,((e,t)=>(openBlock(),createBlock(s,{key:t,uid:t,disk:e},null,8,["uid","disk"])))),128))]),createBaseVNode("div",_hoisted_3$g,[createVNode(a),createVNode(c)]),createVNode(l),createVNode(d),createVNode(u),createVNode(p),createVNode(m),createVNode(h)])}script$t.render=render$t,script$t.__file="administrator/components/com_media/resources/scripts/components/app.vue";var script$s={name:"MediaDisk",props:["disk","uid"],computed:{diskId(){return`disk-$this.uid+1}`}}};const _hoisted_1$s={class:"media-disk"},_hoisted_2$k=["id"];function render$s(e,t,o,n,i,r){const s=resolveComponent("media-drive");return openBlock(),createElementBlock("div",_hoisted_1$s,[createBaseVNode("h2",{id:r.diskId,class:"media-disk-name"},toDisplayString(o.disk.displayName),9,_hoisted_2$k),(openBlock(!0),createElementBlock(Fragment,null,renderList(o.disk.drives,((e,t)=>(openBlock(),createBlock(s,{key:t,"disk-id":r.diskId,counter:t,drive:e,total:o.disk.drives.length},null,8,["disk-id","counter","drive","total"])))),128))])}script$s.render=render$s,script$s.__file="administrator/components/com_media/resources/scripts/components/tree/disk.vue";var navigable={methods:{navigateTo(e){this.$store.dispatch("getContents",e)}}},script$r={name:"MediaDrive",mixins:[navigable],props:["drive","total","diskId","counter"],computed:{isActive(){return this.$store.state.selectedDirectory===this.drive.root},getTabindex(){return this.isActive?0:-1}},methods:{onDriveClick(){this.navigateTo(this.drive.root)},moveFocusToChildElement(e){this.$refs[e].setFocusToFirstChild()},restoreFocus(){this.$refs["drive-root"].focus()}}};const _hoisted_1$r=["aria-labelledby"],_hoisted_2$j=["aria-setsize","tabindex"],_hoisted_3$f={class:"item-name"};function render$r(e,t,o,n,i,r){const s=resolveComponent("media-tree");return openBlock(),createElementBlock("div",{class:"media-drive",onClick:t[2]||(t[2]=withModifiers((e=>r.onDriveClick()),["stop","prevent"]))},[createBaseVNode("ul",{class:"media-tree",role:"tree","aria-labelledby":o.diskId},[createBaseVNode("li",{class:normalizeClass({active:r.isActive,"media-tree-item":!0,"media-drive-name":!0}),role:"none"},[createBaseVNode("a",{ref:"drive-root",role:"treeitem","aria-level":"1","aria-setsize":o.counter,"aria-posinset":1,tabindex:r.getTabindex,onKeyup:[t[0]||(t[0]=withKeys((e=>r.moveFocusToChildElement(o.drive.root)),["right"])),t[1]||(t[1]=withKeys(((...e)=>r.onDriveClick&&r.onDriveClick(...e)),["enter"]))]},[createBaseVNode("span",_hoisted_3$f,toDisplayString(o.drive.displayName),1)],40,_hoisted_2$j),createVNode(s,{ref:o.drive.root,root:o.drive.root,level:2,"parent-index":0,onMoveFocusToParent:r.restoreFocus},null,8,["root","onMoveFocusToParent"])],2)],8,_hoisted_1$r)])}script$r.render=render$r,script$r.__file="administrator/components/com_media/resources/scripts/components/tree/drive.vue";var script$q={name:"MediaTree",mixins:[navigable],props:{root:{type:String,required:!0},level:{type:Number,required:!0},parentIndex:{type:Number,required:!0}},emits:["move-focus-to-parent"],computed:{directories(){return this.$store.state.directories.filter((e=>e.directory===this.root)).sort(((e,t)=>e.name.toUpperCase()<t.name.toUpperCase()?-1:1))}},methods:{isActive(e){return e.path===this.$store.state.selectedDirectory},getTabindex(e){return this.isActive(e)?0:-1},onItemClick(e){this.navigateTo(e.path),window.parent.document.dispatchEvent(new CustomEvent("onMediaFileSelected",{bubbles:!0,cancelable:!1,detail:{}}))},hasChildren:e=>e.directories.length>0,isOpen(e){return this.$store.state.selectedDirectory.includes(e.path)},iconClass(e){return{fas:!1,"icon-folder":!this.isOpen(e),"icon-folder-open":this.isOpen(e)}},setFocusToFirstChild(){this.$refs[`$this.root}0`][0].focus()},moveFocusToNextElement(e){e+1!==this.directories.length&&this.$refs[this.root+(e+1)][0].focus()},moveFocusToPreviousElement(e){0!==e&&this.$refs[this.root+(e-1)][0].focus()},moveFocusToChildElement(e){this.hasChildren(e)&&this.$refs[e.path][0].setFocusToFirstChild()},moveFocusToParentElement(){this.$emit("move-focus-to-parent",this.parentIndex)},restoreFocus(e){this.$refs[this.root+e][0].focus()}}};const _hoisted_1$q={class:"media-tree",role:"group"},_hoisted_2$i=["aria-level","aria-setsize","aria-posinset","tabindex","onClick","onKeyup"],_hoisted_3$e={class:"item-icon"},_hoisted_4$a={class:"item-name"};function render$q(e,t,o,n,i,r){const s=resolveComponent("media-tree");return openBlock(),createElementBlock("ul",_hoisted_1$q,[(openBlock(!0),createElementBlock(Fragment,null,renderList(r.directories,((e,n)=>(openBlock(),createElementBlock("li",{key:e.path,class:normalizeClass(["media-tree-item",{active:r.isActive(e)}]),role:"none"},[createBaseVNode("a",{ref_for:!0,ref:o.root+n,role:"treeitem","aria-level":o.level,"aria-setsize":r.directories.length,"aria-posinset":n,tabindex:r.getTabindex(e),onClick:withModifiers((t=>r.onItemClick(e)),["stop","prevent"]),onKeyup:[withKeys((e=>r.moveFocusToPreviousElement(n)),["up"]),withKeys((e=>r.moveFocusToNextElement(n)),["down"]),withKeys((t=>r.onItemClick(e)),["enter"]),withKeys((t=>r.moveFocusToChildElement(e)),["right"]),t[0]||(t[0]=withKeys((e=>r.moveFocusToParentElement()),["left"]))]},[createBaseVNode("span",_hoisted_3$e,[createBaseVNode("span",{class:normalizeClass(r.iconClass(e))},null,2)]),createBaseVNode("span",_hoisted_4$a,toDisplayString(e.name),1)],40,_hoisted_2$i),createVNode(Transition,{name:"slide-fade"},{default:withCtx((()=>[r.hasChildren(e)?withDirectives((openBlock(),createBlock(s,{key:0,ref_for:!0,ref:e.path,"aria-expanded":r.isOpen(e)?"true":"false",root:e.path,level:o.level+1,"parent-index":n,onMoveFocusToParent:r.restoreFocus},null,8,["aria-expanded","root","level","parent-index","onMoveFocusToParent"])),[[vShow,r.isOpen(e)]]):createCommentVNode("v-if",!0)])),_:2},1024)],2)))),128))])}script$q.render=render$q,script$q.__file="administrator/components/com_media/resources/scripts/components/tree/tree.vue";var script$p={name:"MediaToolbar",computed:{toggleListViewBtnIcon(){return this.isGridView?"icon-list":"icon-th"},isLoading(){return this.$store.state.isLoading},atLeastOneItemSelected(){return this.$store.state.selectedItems.length>0},isGridView(){return"grid"===this.$store.state.listView},allItemsSelected(){return this.$store.getters.getSelectedDirectoryContents.length===this.$store.state.selectedItems.length},search(){return this.$store.state.search}},watch:{"$store.state.selectedItems"(){this.allItemsSelected||(this.$refs.mediaToolbarSelectAll.checked=!1)}},methods:{toggleInfoBar(){this.$store.state.showInfoBar?this.$store.commit(HIDE_INFOBAR):this.$store.commit(SHOW_INFOBAR)},decreaseGridSize(){this.isGridSize("sm")||this.$store.commit(DECREASE_GRID_SIZE)},increaseGridSize(){this.isGridSize("xl")||this.$store.commit(INCREASE_GRID_SIZE)},changeListView(){"grid"===this.$store.state.listView?this.$store.commit(CHANGE_LIST_VIEW,"table"):this.$store.commit(CHANGE_LIST_VIEW,"grid")},toggleSelectAll(){this.allItemsSelected?this.$store.commit(UNSELECT_ALL_BROWSER_ITEMS):(this.$store.commit(SELECT_BROWSER_ITEMS,this.$store.getters.getSelectedDirectoryContents),window.parent.document.dispatchEvent(new CustomEvent("onMediaFileSelected",{bubbles:!0,cancelable:!1,detail:{}})))},isGridSize(e){return this.$store.state.gridSize===e},changeSearch(e){this.$store.commit(SET_SEARCH_QUERY,e.target.value)}}};const _hoisted_1$p=["aria-label"],_hoisted_2$h={key:0,class:"media-loader"},_hoisted_3$d={class:"media-view-icons"},_hoisted_4$9=["aria-label"],_hoisted_5$9={class:"media-view-search-input",role:"search"},_hoisted_6$7={for:"media_search",class:"visually-hidden"},_hoisted_7$4=["placeholder","value"],_hoisted_8$4={class:"media-view-icons"},_hoisted_9$4=["aria-label"],_hoisted_10$2=createBaseVNode("span",{class:"icon-search-minus","aria-hidden":"true"},null,-1),_hoisted_11$2=[_hoisted_10$2],_hoisted_12$2=["aria-label"],_hoisted_13$1=createBaseVNode("span",{class:"icon-search-plus","aria-hidden":"true"},null,-1),_hoisted_14=[_hoisted_13$1],_hoisted_15=["aria-label"],_hoisted_16=["aria-label"],_hoisted_17=createBaseVNode("span",{class:"icon-info","aria-hidden":"true"},null,-1),_hoisted_18=[_hoisted_17];function render$p(e,t,o,n,i,r){const s=resolveComponent("media-breadcrumb");return openBlock(),createElementBlock("div",{class:"media-toolbar",role:"toolbar","aria-label":e.translate("COM_MEDIA_TOOLBAR_LABEL")},[r.isLoading?(openBlock(),createElementBlock("div",_hoisted_2$h)):createCommentVNode("v-if",!0),createBaseVNode("div",_hoisted_3$d,[createBaseVNode("input",{ref:"mediaToolbarSelectAll",type:"checkbox",class:"media-toolbar-icon media-toolbar-select-all","aria-label":e.translate("COM_MEDIA_SELECT_ALL"),onClick:t[0]||(t[0]=withModifiers(((...e)=>r.toggleSelectAll&&r.toggleSelectAll(...e)),["stop"]))},null,8,_hoisted_4$9)]),createVNode(s),createBaseVNode("div",_hoisted_5$9,[createBaseVNode("label",_hoisted_6$7,toDisplayString(e.translate("COM_MEDIA_SEARCH")),1),createBaseVNode("input",{id:"media_search",class:"form-control",type:"text",placeholder:e.translate("COM_MEDIA_SEARCH"),value:r.search,onInput:t[1]||(t[1]=(...e)=>r.changeSearch&&r.changeSearch(...e))},null,40,_hoisted_7$4)]),createBaseVNode("div",_hoisted_8$4,[r.isGridView?(openBlock(),createElementBlock("button",{key:0,type:"button",class:normalizeClass(["media-toolbar-icon media-toolbar-decrease-grid-size",{disabled:r.isGridSize("sm")}]),"aria-label":e.translate("COM_MEDIA_DECREASE_GRID"),onClick:t[2]||(t[2]=withModifiers((e=>r.decreaseGridSize()),["stop","prevent"]))},_hoisted_11$2,10,_hoisted_9$4)):createCommentVNode("v-if",!0),r.isGridView?(openBlock(),createElementBlock("button",{key:1,type:"button",class:normalizeClass(["media-toolbar-icon media-toolbar-increase-grid-size",{disabled:r.isGridSize("xl")}]),"aria-label":e.translate("COM_MEDIA_INCREASE_GRID"),onClick:t[3]||(t[3]=withModifiers((e=>r.increaseGridSize()),["stop","prevent"]))},_hoisted_14,10,_hoisted_12$2)):createCommentVNode("v-if",!0),createBaseVNode("button",{type:"button",href:"#",class:"media-toolbar-icon media-toolbar-list-view","aria-label":e.translate("COM_MEDIA_TOGGLE_LIST_VIEW"),onClick:t[4]||(t[4]=withModifiers((e=>r.changeListView()),["stop","prevent"]))},[createBaseVNode("span",{class:normalizeClass(r.toggleListViewBtnIcon),"aria-hidden":"true"},null,2)],8,_hoisted_15),createBaseVNode("button",{type:"button",href:"#",class:"media-toolbar-icon media-toolbar-info","aria-label":e.translate("COM_MEDIA_TOGGLE_INFO"),onClick:t[5]||(t[5]=withModifiers(((...e)=>r.toggleInfoBar&&r.toggleInfoBar(...e)),["stop","prevent"]))},_hoisted_18,8,_hoisted_16)])],8,_hoisted_1$p)}script$p.render=render$p,script$p.__file="administrator/components/com_media/resources/scripts/components/toolbar/toolbar.vue";var script$o={name:"MediaBreadcrumb",mixins:[navigable],computed:{crumbs(){const e=[],t=this.$store.state.selectedDirectory.split("/");if(t){const o=this.findDrive(t[0]);o&&(e.push(o),t.shift())}return t.filter((e=>0!==e.length)).forEach((t=>{e.push({name:t,path:this.$store.state.selectedDirectory.split(t)[0]+t})})),e},isLast(e){return this.crumbs.indexOf(e)===this.crumbs.length-1}},methods:{onCrumbClick(e){this.navigateTo(e.path),window.parent.document.dispatchEvent(new CustomEvent("onMediaFileSelected",{bubbles:!0,cancelable:!1,detail:{}}))},findDrive(e){let t=null;return this.$store.state.disks.forEach((o=>{o.drives.forEach((o=>{o.root.startsWith(e)&&(t={name:o.displayName,path:o.root})}))})),t}}};const _hoisted_1$o=["aria-label"],_hoisted_2$g=["aria-current","onClick"];function render$o(e,t,o,n,i,r){return openBlock(),createElementBlock("nav",{class:"media-breadcrumb","aria-label":e.translate("COM_MEDIA_BREADCRUMB_LABEL")},[createBaseVNode("ol",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(r.crumbs,((e,t)=>(openBlock(),createElementBlock("li",{key:t,class:"media-breadcrumb-item"},[createBaseVNode("a",{href:"#","aria-current":t===Object.keys(r.crumbs).length-1?"page":void 0,onClick:withModifiers((t=>r.onCrumbClick(e)),["stop","prevent"])},toDisplayString(e.name),9,_hoisted_2$g)])))),128))])],8,_hoisted_1$o)}script$o.render=render$o,script$o.__file="administrator/components/com_media/resources/scripts/components/breadcrumb/breadcrumb.vue";var script$n={name:"MediaBrowser",computed:{items(){return[...this.$store.getters.getSelectedDirectoryDirectories.sort(((e,t)=>e.name.toUpperCase()<t.name.toUpperCase()?-1:1)).filter((e=>e.name.toLowerCase().includes(this.$store.state.search.toLowerCase()))),...this.$store.getters.getSelectedDirectoryFiles.sort(((e,t)=>e.name.toUpperCase()<t.name.toUpperCase()?-1:1)).filter((e=>e.name.toLowerCase().includes(this.$store.state.search.toLowerCase())))]},mediaBrowserStyles(){return{width:this.$store.state.showInfoBar?"75%":"100%"}},listView(){return this.$store.state.listView},mediaBrowserGridItemsClass(){return{[`media-browser-items-$this.$store.state.gridSize}`]:!0}},isModal:()=>Joomla.getOptions("com_media",{}).isModal,currentDirectory(){const e=this.$store.state.selectedDirectory.split("/").filter((e=>0!==e.length));if(1!==e.length)return e[e.length-1];let t="";return this.$store.state.disks.forEach((o=>{o.drives.forEach((o=>{o.root===`$e[0]}/`&&(t=o.displayName)}))})),t}},created(){document.body.addEventListener("click",this.unselectAllBrowserItems,!1)},beforeUnmount(){document.body.removeEventListener("click",this.unselectAllBrowserItems,!1)},methods:{unselectAllBrowserItems(e){const t=!(void 0===e.target.id||"mediaDelete"!==e.target.id),o=this.$refs.browserItems&&!this.$refs.browserItems.contains(e.target)||e.target===this.$refs.browserItems,n=void 0!==this.$refs.infobar&&!this.$refs.infobar.$el.contains(e.target);o&&n&&!t&&(this.$store.commit(UNSELECT_ALL_BROWSER_ITEMS),window.parent.document.dispatchEvent(new CustomEvent("onMediaFileSelected",{bubbles:!0,cancelable:!1,detail:{path:"",thumb:!1,fileType:!1,extension:!1}})))},onDragEnter:e=>(e.stopPropagation(),!1),onDragOver:e=>(e.preventDefault(),document.querySelector(".media-dragoutline").classList.add("active"),!1),upload(e){const t=new FileReader;t.onload=t=>{const{result:o}=t.target,n=o.indexOf("base64")+7,i=o.slice(n,o.length);this.$store.dispatch("uploadFile",{name:e.name,parent:this.$store.state.selectedDirectory,content:i})},t.readAsDataURL(e)},onDrop(e){if(e.preventDefault(),e.dataTransfer&&e.dataTransfer.files&&e.dataTransfer.files.length>0)for(let t,o=0;t=e.dataTransfer.files[o];o++)document.querySelector(".media-dragoutline").classList.remove("active"),this.upload(t);document.querySelector(".media-dragoutline").classList.remove("active")},onDragLeave:e=>(e.stopPropagation(),e.preventDefault(),document.querySelector(".media-dragoutline").classList.remove("active"),!1)}};const _hoisted_1$n={class:"media-dragoutline"},_hoisted_2$f=createBaseVNode("span",{class:"icon-cloud-upload upload-icon","aria-hidden":"true"},null,-1),_hoisted_3$c={key:0,class:"table media-browser-table"},_hoisted_4$8={class:"visually-hidden"},_hoisted_5$8={class:"media-browser-table-head"},_hoisted_6$6=createBaseVNode("th",{class:"type",scope:"col"},null,-1),_hoisted_7$3={class:"name",scope:"col"},_hoisted_8$3={class:"size",scope:"col"},_hoisted_9$3={class:"dimension",scope:"col"},_hoisted_10$1={class:"created",scope:"col"},_hoisted_11$1={class:"modified",scope:"col"},_hoisted_12$1={key:1,class:"media-browser-grid"};function render$n(e,t,o,n,i,r){const s=resolveComponent("media-browser-item-row"),a=resolveComponent("media-browser-item"),c=resolveComponent("media-infobar");return openBlock(),createElementBlock("div",null,[createBaseVNode("div",{ref:"browserItems",class:"media-browser",style:normalizeStyle(r.mediaBrowserStyles),onDragenter:t[0]||(t[0]=(...e)=>r.onDragEnter&&r.onDragEnter(...e)),onDrop:t[1]||(t[1]=(...e)=>r.onDrop&&r.onDrop(...e)),onDragover:t[2]||(t[2]=(...e)=>r.onDragOver&&r.onDragOver(...e)),onDragleave:t[3]||(t[3]=(...e)=>r.onDragLeave&&r.onDragLeave(...e))},[createBaseVNode("div",_hoisted_1$n,[_hoisted_2$f,createBaseVNode("p",null,toDisplayString(e.translate("COM_MEDIA_DROP_FILE")),1)]),"table"===r.listView?(openBlock(),createElementBlock("table",_hoisted_3$c,[createBaseVNode("caption",_hoisted_4$8,toDisplayString(e.sprintf("COM_MEDIA_BROWSER_TABLE_CAPTION",r.currentDirectory)),1),createBaseVNode("thead",_hoisted_5$8,[createBaseVNode("tr",null,[_hoisted_6$6,createBaseVNode("th",_hoisted_7$3,toDisplayString(e.translate("COM_MEDIA_MEDIA_NAME")),1),createBaseVNode("th",_hoisted_8$3,toDisplayString(e.translate("COM_MEDIA_MEDIA_SIZE")),1),createBaseVNode("th",_hoisted_9$3,toDisplayString(e.translate("COM_MEDIA_MEDIA_DIMENSION")),1),createBaseVNode("th",_hoisted_10$1,toDisplayString(e.translate("COM_MEDIA_MEDIA_DATE_CREATED")),1),createBaseVNode("th",_hoisted_11$1,toDisplayString(e.translate("COM_MEDIA_MEDIA_DATE_MODIFIED")),1)])]),createBaseVNode("tbody",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(r.items,(e=>(openBlock(),createBlock(s,{key:e.path,item:e},null,8,["item"])))),128))])])):"grid"===r.listView?(openBlock(),createElementBlock("div",_hoisted_12$1,[createBaseVNode("div",{class:normalizeClass(["media-browser-items",r.mediaBrowserGridItemsClass])},[(openBlock(!0),createElementBlock(Fragment,null,renderList(r.items,(e=>(openBlock(),createBlock(a,{key:e.path,item:e},null,8,["item"])))),128))],2)])):createCommentVNode("v-if",!0)],36),createVNode(c,{ref:"infobar"},null,512)])}script$n.render=render$n,script$n.__file="administrator/components/com_media/resources/scripts/components/browser/browser.vue";var script$m={name:"MediaBrowserItemDirectory",mixins:[navigable],props:["item"],emits:["toggle-settings"],data:()=>({showActions:!1}),methods:{onPreviewDblClick(){this.navigateTo(this.item.path)},hideActions(){this.$refs.container.hideActions()},toggleSettings(e){this.$emit("toggle-settings",e)}}};const _hoisted_1$m=createBaseVNode("div",{class:"file-background"},[createBaseVNode("div",{class:"folder-icon"},[createBaseVNode("span",{class:"icon-folder"})])],-1),_hoisted_2$e=[_hoisted_1$m],_hoisted_3$b={class:"media-browser-item-info"};function render$m(e,t,o,n,i,r){const s=resolveComponent("media-browser-action-items-container");return openBlock(),createElementBlock("div",{class:"media-browser-item-directory",onMouseleave:t[2]||(t[2]=e=>r.hideActions())},[createBaseVNode("div",{class:"media-browser-item-preview",tabindex:"0",onDblclick:t[0]||(t[0]=withModifiers((e=>r.onPreviewDblClick()),["stop","prevent"])),onKeyup:t[1]||(t[1]=withKeys((e=>r.onPreviewDblClick()),["enter"]))},_hoisted_2$e,32),createBaseVNode("div",_hoisted_3$b,toDisplayString(o.item.name),1),createVNode(s,{ref:"container",item:o.item,onToggleSettings:r.toggleSettings},null,8,["item","onToggleSettings"])],32)}script$m.render=render$m,script$m.__file="administrator/components/com_media/resources/scripts/components/browser/items/directory.vue";var script$l={name:"MediaBrowserItemFile",props:["item","focused"],emits:["toggle-settings"],data:()=>({showActions:!1}),methods:{hideActions(){this.$refs.container.hideActions()},openPreview(){this.$refs.container.openPreview()},toggleSettings(e){this.$emit("toggle-settings",e)}}};const _hoisted_1$l=createBaseVNode("div",{class:"media-browser-item-preview"},[createBaseVNode("div",{class:"file-background"},[createBaseVNode("div",{class:"file-icon"},[createBaseVNode("span",{class:"icon-file-alt"})])])],-1),_hoisted_2$d={class:"media-browser-item-info"},_hoisted_3$a=["aria-label","title"];function render$l(e,t,o,n,i,r){const s=resolveComponent("media-browser-action-items-container");return openBlock(),createElementBlock("div",{class:"media-browser-item-file",onMouseleave:t[0]||(t[0]=e=>r.hideActions())},[_hoisted_1$l,createBaseVNode("div",_hoisted_2$d,toDisplayString(o.item.name)+" "+toDisplayString(o.item.filetype),1),createBaseVNode("span",{class:"media-browser-select","aria-label":e.translate("COM_MEDIA_TOGGLE_SELECT_ITEM"),title:e.translate("COM_MEDIA_TOGGLE_SELECT_ITEM")},null,8,_hoisted_3$a),createVNode(s,{ref:"container",item:o.item,previewable:!0,downloadable:!0,shareable:!0,onToggleSettings:r.toggleSettings},null,8,["item","onToggleSettings"])],32)}script$l.render=render$l,script$l.__file="administrator/components/com_media/resources/scripts/components/browser/items/file.vue";const dirname=e=>{if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e));if(0===e.length)return".";let t=e.charCodeAt(0);const o=47===t;let n=-1,i=!0;for(let o=e.length-1;o>=1;--o)if(t=e.charCodeAt(o),47===t){if(!i){n=o;break}}else i=!1;return-1===n?o?"/":".":o&&1===n?"//":e.slice(0,n)};class Api{constructor(){const e=Joomla.getOptions("com_media",{});if(void 0===e.apiBaseUrl)throw new TypeError("Media api baseUrl is not defined");if(void 0===e.csrfToken)throw new TypeError("Media api csrf token is not defined");this._baseUrl=e.apiBaseUrl,this._csrfToken=Joomla.getOptions("csrf.token"),this.imagesExtensions=e.imagesExtensions,this.audioExtensions=e.audioExtensions,this.videoExtensions=e.videoExtensions,this.documentExtensions=e.documentExtensions,this.mediaVersion=(new Date).getTime().toString(),this.canCreate=e.canCreate||!1,this.canEdit=e.canEdit||!1,this.canDelete=e.canDelete||!1}getContents(e,t,o){return new Promise(((n,i)=>{if(-1!==["0","1"].indexOf(t))throw Error("Invalid parameter: full");if(-1!==["0","1"].indexOf(o))throw Error("Invalid parameter: content");let r=`$this._baseUrl}&task=api.files&path=$e}`;t&&(r+=`&url=$t}`),o&&(r+=`&content=$o}`),Joomla.request({url:r,method:"GET",headers:{"Content-Type":"application/json"},onSuccess:e=>{n(this._normalizeArray(JSON.parse(e).data))},onError:e=>{i(e)}})})).catch(this._handleError)}createDirectory(e,t){return new Promise(((o,n)=>{const i=`$this._baseUrl}&task=api.files&path=$t}`,r={[this._csrfToken]:"1",name:e};Joomla.request({url:i,method:"POST",data:JSON.stringify(r),headers:{"Content-Type":"application/json"},onSuccess:e=>{notifications.success("COM_MEDIA_CREATE_NEW_FOLDER_SUCCESS"),o(this._normalizeItem(JSON.parse(e).data))},onError:e=>{notifications.error("COM_MEDIA_CREATE_NEW_FOLDER_ERROR"),n(e)}})})).catch(this._handleError)}upload(e,t,o,n){return new Promise(((i,r)=>{const s=`$this._baseUrl}&task=api.files&path=$t}`,a={[this._csrfToken]:"1",name:e,content:o};!0===n&&(a.override=!0),Joomla.request({url:s,method:"POST",data:JSON.stringify(a),headers:{"Content-Type":"application/json"},onSuccess:e=>{notifications.success("COM_MEDIA_UPLOAD_SUCCESS"),i(this._normalizeItem(JSON.parse(e).data))},onError:e=>{r(e)}})})).catch(this._handleError)}rename(e,t){return new Promise(((o,n)=>{const i=`$this._baseUrl}&task=api.files&path=$e}`,r={[this._csrfToken]:"1",newPath:t};Joomla.request({url:i,method:"PUT",data:JSON.stringify(r),headers:{"Content-Type":"application/json"},onSuccess:e=>{notifications.success("COM_MEDIA_RENAME_SUCCESS"),o(this._normalizeItem(JSON.parse(e).data))},onError:e=>{notifications.error("COM_MEDIA_RENAME_ERROR"),n(e)}})})).catch(this._handleError)}delete(e){return new Promise(((t,o)=>{const n=`$this._baseUrl}&task=api.files&path=$e}`,i={[this._csrfToken]:"1"};Joomla.request({url:n,method:"DELETE",data:JSON.stringify(i),headers:{"Content-Type":"application/json"},onSuccess:()=>{notifications.success("COM_MEDIA_DELETE_SUCCESS"),t()},onError:e=>{notifications.error("COM_MEDIA_DELETE_ERROR"),o(e)}})})).catch(this._handleError)}_normalizeItem(e){return"dir"===e.type&&(e.directories=[],e.files=[]),e.directory=dirname(e.path),-1!==e.directory.indexOf(":",e.directory.length-1)&&(e.directory+="/"),e}_normalizeArray(e){return{directories:e.filter((e=>"dir"===e.type)).map((e=>this._normalizeItem(e))),files:e.filter((e=>"file"===e.type)).map((e=>this._normalizeItem(e)))}}_handleError(e){const t=JSON.parse(e.response);if(t.message)notifications.error(t.message);else switch(e.status){case 409:break;case 404:notifications.error("COM_MEDIA_ERROR_NOT_FOUND");break;case 401:notifications.error("COM_MEDIA_ERROR_NOT_AUTHENTICATED");break;case 403:notifications.error("COM_MEDIA_ERROR_NOT_AUTHORIZED");break;case 500:notifications.error("COM_MEDIA_SERVER_ERROR");break;default:notifications.error("COM_MEDIA_ERROR")}throw e}}const api=new Api;var script$k={name:"MediaBrowserItemImage",props:{item:{type:Object,required:!0},focused:{type:Boolean,required:!0,default:!1}},emits:["toggle-settings"],data:()=>({showActions:{type:Boolean,default:!1}}),computed:{getURL(){return this.item.thumb_path?this.item.thumb_path.split(Joomla.getOptions("system.paths").rootFull).length>1?`$this.item.thumb_path}?$api.mediaVersion}`:`$this.item.thumb_path}`:""},width(){return this.item.width>0?this.item.width:null},height(){return this.item.height>0?this.item.height:null},loading(){return this.item.width>0?"lazy":null},altTag(){return this.item.name}},methods:{canEdit(){return["jpg","jpeg","png"].includes(this.item.extension.toLowerCase())},hideActions(){this.$refs.container.hideActions()},openPreview(){this.$refs.container.openPreview()},editItem(){const e=`$Joomla.getOptions("com_media").editViewUrl}&path=`;window.location.href=e+this.item.path},toggleSettings(e){this.$emit("toggle-settings",e)}}};const _hoisted_1$k=["title"],_hoisted_2$c={class:"image-background"},_hoisted_3$9=["src","alt","loading","width","height"],_hoisted_4$7={key:1,class:"icon-eye-slash image-placeholder","aria-hidden":"true"},_hoisted_5$7=["title"],_hoisted_6$5=["aria-label","title"];function render$k(e,t,o,n,i,r){const s=resolveComponent("media-browser-action-items-container");return openBlock(),createElementBlock("div",{class:"media-browser-image",tabindex:"0",onDblclick:t[0]||(t[0]=e=>r.openPreview()),onMouseleave:t[1]||(t[1]=e=>r.hideActions()),onKeyup:t[2]||(t[2]=withKeys((e=>r.openPreview()),["enter"]))},[createBaseVNode("div",{class:"media-browser-item-preview",title:o.item.name},[createBaseVNode("div",_hoisted_2$c,[r.getURL?(openBlock(),createElementBlock("img",{key:0,class:"image-cropped",src:r.getURL,alt:r.altTag,loading:r.loading,width:r.width,height:r.height},null,8,_hoisted_3$9)):createCommentVNode("v-if",!0),r.getURL?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("span",_hoisted_4$7))])],8,_hoisted_1$k),createBaseVNode("div",{class:"media-browser-item-info",title:o.item.name},toDisplayString(o.item.name)+" "+toDisplayString(o.item.filetype),9,_hoisted_5$7),createBaseVNode("span",{class:"media-browser-select","aria-label":e.translate("COM_MEDIA_TOGGLE_SELECT_ITEM"),title:e.translate("COM_MEDIA_TOGGLE_SELECT_ITEM")},null,8,_hoisted_6$5),createVNode(s,{ref:"container",item:o.item,edit:r.editItem,previewable:!0,downloadable:!0,shareable:!0,onToggleSettings:r.toggleSettings},null,8,["item","edit","onToggleSettings"])],32)}script$k.render=render$k,script$k.__file="administrator/components/com_media/resources/scripts/components/browser/items/image.vue";var script$j={name:"MediaBrowserItemVideo",props:["item","focused"],emits:["toggle-settings"],data:()=>({showActions:!1}),methods:{hideActions(){this.$refs.container.hideActions()},openPreview(){this.$refs.container.openPreview()},toggleSettings(e){this.$emit("toggle-settings",e)}}};const _hoisted_1$j=createBaseVNode("div",{class:"media-browser-item-preview"},[createBaseVNode("div",{class:"file-background"},[createBaseVNode("div",{class:"file-icon"},[createBaseVNode("span",{class:"fas fa-file-video"})])])],-1),_hoisted_2$b={class:"media-browser-item-info"};function render$j(e,t,o,n,i,r){const s=resolveComponent("media-browser-action-items-container");return openBlock(),createElementBlock("div",{class:"media-browser-image",onDblclick:t[0]||(t[0]=e=>r.openPreview()),onMouseleave:t[1]||(t[1]=e=>r.hideActions())},[_hoisted_1$j,createBaseVNode("div",_hoisted_2$b,toDisplayString(o.item.name)+" "+toDisplayString(o.item.filetype),1),createVNode(s,{ref:"container",item:o.item,previewable:!0,downloadable:!0,shareable:!0,onToggleSettings:r.toggleSettings},null,8,["item","onToggleSettings"])],32)}script$j.render=render$j,script$j.__file="administrator/components/com_media/resources/scripts/components/browser/items/video.vue";var script$i={name:"MediaBrowserItemAudio",props:["item","focused"],emits:["toggle-settings"],data:()=>({showActions:!1}),methods:{hideActions(){this.$refs.container.hideActions()},openPreview(){this.$refs.container.openPreview()},toggleSettings(e){this.$emit("toggle-settings",e)}}};const _hoisted_1$i=createBaseVNode("div",{class:"media-browser-item-preview"},[createBaseVNode("div",{class:"file-background"},[createBaseVNode("div",{class:"file-icon"},[createBaseVNode("span",{class:"fas fa-file-audio"})])])],-1),_hoisted_2$a={class:"media-browser-item-info"};function render$i(e,t,o,n,i,r){const s=resolveComponent("media-browser-action-items-container");return openBlock(),createElementBlock("div",{class:"media-browser-audio",tabindex:"0",onDblclick:t[0]||(t[0]=e=>r.openPreview()),onMouseleave:t[1]||(t[1]=e=>r.hideActions()),onKeyup:t[2]||(t[2]=withKeys((e=>r.openPreview()),["enter"]))},[_hoisted_1$i,createBaseVNode("div",_hoisted_2$a,toDisplayString(o.item.name)+" "+toDisplayString(o.item.filetype),1),createVNode(s,{ref:"container",item:o.item,previewable:!0,downloadable:!0,shareable:!0,onToggleSettings:r.toggleSettings},null,8,["item","onToggleSettings"])],32)}script$i.render=render$i,script$i.__file="administrator/components/com_media/resources/scripts/components/browser/items/audio.vue";var script$h={name:"MediaBrowserItemDocument",props:["item","focused"],emits:["toggle-settings"],data:()=>({showActions:!1}),methods:{hideActions(){this.$refs.container.hideActions()},openPreview(){this.$refs.container.openPreview()},toggleSettings(e){this.$emit("toggle-settings",e)}}};const _hoisted_1$h=createBaseVNode("div",{class:"media-browser-item-preview"},[createBaseVNode("div",{class:"file-background"},[createBaseVNode("div",{class:"file-icon"},[createBaseVNode("span",{class:"fas fa-file-pdf"})])])],-1),_hoisted_2$9={class:"media-browser-item-info"},_hoisted_3$8=["aria-label","title"];function render$h(e,t,o,n,i,r){const s=resolveComponent("media-browser-action-items-container");return openBlock(),createElementBlock("div",{class:"media-browser-doc",onDblclick:t[0]||(t[0]=e=>r.openPreview()),onMouseleave:t[1]||(t[1]=e=>r.hideActions())},[_hoisted_1$h,createBaseVNode("div",_hoisted_2$9,toDisplayString(o.item.name)+" "+toDisplayString(o.item.filetype),1),createBaseVNode("span",{class:"media-browser-select","aria-label":e.translate("COM_MEDIA_TOGGLE_SELECT_ITEM"),title:e.translate("COM_MEDIA_TOGGLE_SELECT_ITEM")},null,8,_hoisted_3$8),createVNode(s,{ref:"container",item:o.item,previewable:!0,downloadable:!0,shareable:!0,onToggleSettings:r.toggleSettings},null,8,["item","onToggleSettings"])],32)}script$h.render=render$h,script$h.__file="administrator/components/com_media/resources/scripts/components/browser/items/document.vue";var BrowserItem={props:["item"],data:()=>({hoverActive:!1}),methods:{itemType(){return"dir"===this.item.type?script$m:this.item.extension&&api.imagesExtensions.includes(this.item.extension.toLowerCase())?script$k:this.item.extension&&api.videoExtensions.includes(this.item.extension.toLowerCase())?script$j:this.item.extension&&api.audioExtensions.includes(this.item.extension.toLowerCase())?script$i:this.item.extension&&api.documentExtensions.includes(this.item.extension.toLowerCase())?script$h:script$l},styles(){return{width:`calc($this.$store.state.gridSize}% - 20px)`}},isSelected(){return this.$store.state.selectedItems.some((e=>e.path===this.item.path))},isHoverActive(){return this.hoverActive},mouseover(){this.hoverActive=!0},mouseleave(){this.hoverActive=!1},handleClick(e){if(this.item.path&&"file"===this.item.type&&window.parent.document.dispatchEvent(new CustomEvent("onMediaFileSelected",{bubbles:!0,cancelable:!1,detail:{path:this.item.path,thumb:this.item.thumb,fileType:!!this.item.mime_type&&this.item.mime_type,extension:!!this.item.extension&&this.item.extension,width:this.item.width?this.item.width:0,height:this.item.height?this.item.height:0}})),"dir"===this.item.type&&window.parent.document.dispatchEvent(new CustomEvent("onMediaFileSelected",{bubbles:!0,cancelable:!1,detail:{}})),!this.isSelected())return e.shiftKey||13===e.keyCode||this.$store.commit(UNSELECT_ALL_BROWSER_ITEMS),void this.$store.commit(SELECT_BROWSER_ITEM,this.item);this.$store.dispatch("toggleBrowserItemSelect",this.item),window.parent.document.dispatchEvent(new CustomEvent("onMediaFileSelected",{bubbles:!0,cancelable:!1,detail:{}})),this.$store.state.selectedItems.length>1&&(this.$store.commit(UNSELECT_ALL_BROWSER_ITEMS),this.$store.commit(SELECT_BROWSER_ITEM,this.item))},toggleSettings(e){e?this.mouseover():this.mouseleave()}},render(){return h("div",{class:{"media-browser-item":!0,selected:this.isSelected(),active:this.isHoverActive()},onClick:this.handleClick,onMouseover:this.mouseover,onMouseleave:this.mouseleave},[h(this.itemType(),{item:this.item,onToggleSettings:this.toggleSettings})])}},script$g={name:"MediaBrowserItemRow",mixins:[navigable],props:["item"],computed:{dimension(){return this.item.width?`$this.item.width}px * $this.item.height}px`:""},isDir(){return"dir"===this.item.type},size(){return this.item.size?`${(this.item.size/1024).toFixed(2)} KB`:""},selected(){return!!this.isSelected()}},methods:{onDblClick(){if(this.isDir)return void this.navigateTo(this.item.path);this.item.extension&&["jpg","jpeg","png","gif","webp","mp4","mp3","pdf"].includes(this.item.extension.toLowerCase())&&(this.$store.commit(SHOW_PREVIEW_MODAL),this.$store.dispatch("getFullContents",this.item))},isSelected(){return this.$store.state.selectedItems.some((e=>e.path===this.item.path))},onClick(e){const t={path:!1,thumb:!1,fileType:!!this.item.mime_type&&this.item.mime_type,extension:!!this.item.extension&&this.item.extension};if("file"===this.item.type&&(t.path=this.item.path,t.thumb=!!this.item.thumb&&this.item.thumb,t.width=this.item.width?this.item.width:0,t.height=this.item.height?this.item.height:0,window.parent.document.dispatchEvent(new CustomEvent("onMediaFileSelected",{bubbles:!0,cancelable:!1,detail:t}))),!this.isSelected())return e.shiftKey||13===e.keyCode||this.$store.commit(UNSELECT_ALL_BROWSER_ITEMS),void this.$store.commit(SELECT_BROWSER_ITEM,this.item);this.$store.state.selectedItems.length>1&&(this.$store.commit(UNSELECT_ALL_BROWSER_ITEMS),this.$store.commit(SELECT_BROWSER_ITEM,this.item))}}};const _hoisted_1$g=["data-type"],_hoisted_2$8={scope:"row",class:"name"},_hoisted_3$7={class:"size"},_hoisted_4$6={class:"dimension"},_hoisted_5$6={class:"created"},_hoisted_6$4={class:"modified"};function render$g(e,t,o,n,i,r){return openBlock(),createElementBlock("tr",{class:normalizeClass(["media-browser-item",{selected:r.selected}]),onDblclick:t[0]||(t[0]=withModifiers((e=>r.onDblClick()),["stop","prevent"])),onClick:t[1]||(t[1]=(...e)=>r.onClick&&r.onClick(...e))},[createBaseVNode("td",{class:"type","data-type":o.item.extension},null,8,_hoisted_1$g),createBaseVNode("th",_hoisted_2$8,toDisplayString(o.item.name),1),createBaseVNode("td",_hoisted_3$7,toDisplayString(r.size),1),createBaseVNode("td",_hoisted_4$6,toDisplayString(r.dimension),1),createBaseVNode("td",_hoisted_5$6,toDisplayString(o.item.create_date_formatted),1),createBaseVNode("td",_hoisted_6$4,toDisplayString(o.item.modified_date_formatted),1)],34)}script$g.render=render$g,script$g.__file="administrator/components/com_media/resources/scripts/components/browser/items/row.vue";var script$f={name:"MediaModal",props:{showClose:{type:Boolean,default:!0},size:{type:String},labelElement:{type:String,required:!0}},emits:["close"],computed:{modalClass(){return{"modal-sm":"sm"===this.size}}},mounted(){document.addEventListener("keydown",this.onKeyDown)},beforeUnmount(){document.removeEventListener("keydown",this.onKeyDown)},methods:{close(){this.$emit("close")},onKeyDown(e){27===e.keyCode&&this.close()}}};const _hoisted_1$f=["aria-labelledby"],_hoisted_2$7={class:"modal-content"},_hoisted_3$6={class:"modal-header"},_hoisted_4$5={class:"modal-body"},_hoisted_5$5={class:"modal-footer"};function render$f(e,t,o,n,i,r){const s=resolveComponent("tab-lock");return openBlock(),createElementBlock("div",{class:"media-modal-backdrop",onClick:t[2]||(t[2]=e=>r.close())},[createBaseVNode("div",{class:"modal",style:{display:"flex"},onClick:t[1]||(t[1]=withModifiers((()=>{}),["stop"]))},[createVNode(s,null,{default:withCtx((()=>[createBaseVNode("div",{class:normalizeClass(["modal-dialog",r.modalClass]),role:"dialog","aria-labelledby":o.labelElement},[createBaseVNode("div",_hoisted_2$7,[createBaseVNode("div",_hoisted_3$6,[renderSlot(e.$slots,"header"),renderSlot(e.$slots,"backdrop-close"),o.showClose?(openBlock(),createElementBlock("button",{key:0,type:"button",class:"btn-close","aria-label":"Close",onClick:t[0]||(t[0]=e=>r.close())})):createCommentVNode("v-if",!0)]),createBaseVNode("div",_hoisted_4$5,[renderSlot(e.$slots,"body")]),createBaseVNode("div",_hoisted_5$5,[renderSlot(e.$slots,"footer")])])],10,_hoisted_1$f)])),_:3})])])}script$f.render=render$f,script$f.__file="administrator/components/com_media/resources/scripts/components/modals/modal.vue";var script$e={name:"MediaCreateFolderModal",data:()=>({folder:""}),methods:{isValid(){return this.folder},close(){this.reset(),this.$store.commit(HIDE_CREATE_FOLDER_MODAL)},save(){this.isValid()&&(this.$store.dispatch("createDirectory",{name:this.folder,parent:this.$store.state.selectedDirectory}),this.reset())},reset(){this.folder=""}}};const _hoisted_1$e={id:"createFolderTitle",class:"modal-title"},_hoisted_2$6={class:"p-3"},_hoisted_3$5={class:"form-group"},_hoisted_4$4={for:"folder"},_hoisted_5$4=["disabled"];function render$e(e,t,o,n,i,r){const s=resolveComponent("media-modal");return e.$store.state.showCreateFolderModal?(openBlock(),createBlock(s,{key:0,size:"md","label-element":"createFolderTitle",onClose:t[5]||(t[5]=e=>r.close())},{header:withCtx((()=>[createBaseVNode("h3",_hoisted_1$e,toDisplayString(e.translate("COM_MEDIA_CREATE_NEW_FOLDER")),1)])),body:withCtx((()=>[createBaseVNode("div",_hoisted_2$6,[createBaseVNode("form",{class:"form",novalidate:"",onSubmit:t[2]||(t[2]=withModifiers(((...e)=>r.save&&r.save(...e)),["prevent"]))},[createBaseVNode("div",_hoisted_3$5,[createBaseVNode("label",_hoisted_4$4,toDisplayString(e.translate("COM_MEDIA_FOLDER_NAME")),1),withDirectives(createBaseVNode("input",{id:"folder","onUpdate:modelValue":t[0]||(t[0]=e=>i.folder=e),class:"form-control",type:"text",required:"",autocomplete:"off",onInput:t[1]||(t[1]=e=>i.folder=e.target.value)},null,544),[[vModelText,i.folder,void 0,{trim:!0}]])])],32)])])),footer:withCtx((()=>[createBaseVNode("div",null,[createBaseVNode("button",{class:"btn btn-secondary",onClick:t[3]||(t[3]=e=>r.close())},toDisplayString(e.translate("JCANCEL")),1),createBaseVNode("button",{class:"btn btn-success",disabled:!r.isValid(),onClick:t[4]||(t[4]=e=>r.save())},toDisplayString(e.translate("JACTION_CREATE")),9,_hoisted_5$4)])])),_:1})):createCommentVNode("v-if",!0)}script$e.render=render$e,script$e.__file="administrator/components/com_media/resources/scripts/components/modals/create-folder-modal.vue";var script$d={name:"MediaPreviewModal",computed:{item(){return this.$store.state.previewItem},getHashedURL(){return this.item.adapter.startsWith("local-")?`$this.item.url}?$api.mediaVersion}`:this.item.url}},methods:{close(){this.$store.commit(HIDE_PREVIEW_MODAL)},isImage(){return 0===this.item.mime_type.indexOf("image/")},isVideo(){return 0===this.item.mime_type.indexOf("video/")},isAudio(){return 0===this.item.mime_type.indexOf("audio/")},isDoc(){return 0===this.item.mime_type.indexOf("application/")}}};const _hoisted_1$d={id:"previewTitle",class:"modal-title text-light"},_hoisted_2$5={class:"image-background"},_hoisted_3$4=["src"],_hoisted_4$3={key:1,controls:""},_hoisted_5$3=["src","type"],_hoisted_6$3=["type","data"],_hoisted_7$2=["src","type"],_hoisted_8$2=createBaseVNode("span",{class:"icon-times"},null,-1),_hoisted_9$2=[_hoisted_8$2];function render$d(e,t,o,n,i,r){const s=resolveComponent("media-modal");return e.$store.state.showPreviewModal&&r.item?(openBlock(),createBlock(s,{key:0,size:"md",class:"media-preview-modal","label-element":"previewTitle","show-close":!1,onClose:t[1]||(t[1]=e=>r.close())},{header:withCtx((()=>[createBaseVNode("h3",_hoisted_1$d,toDisplayString(r.item.name),1)])),body:withCtx((()=>[createBaseVNode("div",_hoisted_2$5,[r.isAudio()?(openBlock(),createElementBlock("audio",{key:0,controls:"",src:r.item.url},null,8,_hoisted_3$4)):createCommentVNode("v-if",!0),r.isVideo()?(openBlock(),createElementBlock("video",_hoisted_4$3,[createBaseVNode("source",{src:r.item.url,type:r.item.mime_type},null,8,_hoisted_5$3)])):createCommentVNode("v-if",!0),r.isDoc()?(openBlock(),createElementBlock("object",{key:2,type:r.item.mime_type,data:r.item.url,width:"800",height:"600"},null,8,_hoisted_6$3)):createCommentVNode("v-if",!0),r.isImage()?(openBlock(),createElementBlock("img",{key:3,src:r.getHashedURL,type:r.item.mime_type},null,8,_hoisted_7$2)):createCommentVNode("v-if",!0)])])),"backdrop-close":withCtx((()=>[createBaseVNode("button",{type:"button",class:"media-preview-close",onClick:t[0]||(t[0]=e=>r.close())},_hoisted_9$2)])),_:1})):createCommentVNode("v-if",!0)}script$d.render=render$d,script$d.__file="administrator/components/com_media/resources/scripts/components/modals/preview-modal.vue";var script$c={name:"MediaRenameModal",computed:{item(){return this.$store.state.selectedItems[this.$store.state.selectedItems.length-1]},name(){return this.item.name.replace(`.$this.item.extension}`,"")},extension(){return this.item.extension}},updated(){this.$nextTick((()=>this.$refs.nameField?this.$refs.nameField.focus():null))},methods:{isValid(){return this.item.name.length>0},close(){this.$store.commit(HIDE_RENAME_MODAL)},save(){if(!this.isValid())return;let e=this.$refs.nameField.value;this.extension.length&&(e+=`.$this.item.extension}`);let t=this.item.directory;"/"!==t.substr(-1)&&(t+="/"),this.$store.dispatch("renameItem",{item:this.item,newPath:t+e,newName:e})}}};const _hoisted_1$c={id:"renameTitle",class:"modal-title"},_hoisted_2$4={class:"form-group p-3"},_hoisted_3$3={for:"name"},_hoisted_4$2=["placeholder","value"],_hoisted_5$2={key:0,class:"input-group-text"},_hoisted_6$2=["disabled"];function render$c(e,t,o,n,i,r){const s=resolveComponent("media-modal");return e.$store.state.showRenameModal?(openBlock(),createBlock(s,{key:0,size:"sm","show-close":!1,"label-element":"renameTitle",onClose:t[5]||(t[5]=e=>r.close())},{header:withCtx((()=>[createBaseVNode("h3",_hoisted_1$c,toDisplayString(e.translate("COM_MEDIA_RENAME")),1)])),body:withCtx((()=>[createBaseVNode("div",null,[createBaseVNode("form",{class:"form",novalidate:"",onSubmit:t[0]||(t[0]=withModifiers(((...e)=>r.save&&r.save(...e)),["prevent"]))},[createBaseVNode("div",_hoisted_2$4,[createBaseVNode("label",_hoisted_3$3,toDisplayString(e.translate("COM_MEDIA_NAME")),1),createBaseVNode("div",{class:normalizeClass({"input-group":r.extension.length})},[createBaseVNode("input",{id:"name",ref:"nameField",class:"form-control",type:"text",placeholder:e.translate("COM_MEDIA_NAME"),value:r.name,required:"",autocomplete:"off"},null,8,_hoisted_4$2),r.extension.length?(openBlock(),createElementBlock("span",_hoisted_5$2,toDisplayString(r.extension),1)):createCommentVNode("v-if",!0)],2)])],32)])])),footer:withCtx((()=>[createBaseVNode("div",null,[createBaseVNode("button",{type:"button",class:"btn btn-secondary",onClick:t[1]||(t[1]=e=>r.close()),onKeyup:t[2]||(t[2]=withKeys((e=>r.close()),["enter"]))},toDisplayString(e.translate("JCANCEL")),33),createBaseVNode("button",{type:"button",class:"btn btn-success",disabled:!r.isValid(),onClick:t[3]||(t[3]=e=>r.save()),onKeyup:t[4]||(t[4]=withKeys((e=>r.save()),["enter"]))},toDisplayString(e.translate("JAPPLY")),41,_hoisted_6$2)])])),_:1})):createCommentVNode("v-if",!0)}script$c.render=render$c,script$c.__file="administrator/components/com_media/resources/scripts/components/modals/rename-modal.vue";var script$b={name:"MediaShareModal",computed:{item(){return this.$store.state.selectedItems[this.$store.state.selectedItems.length-1]},url(){return this.$store.state.previewItem&&Object.prototype.hasOwnProperty.call(this.$store.state.previewItem,"url")?this.$store.state.previewItem.url:null}},methods:{close(){this.$store.commit(HIDE_SHARE_MODAL),this.$store.commit(LOAD_FULL_CONTENTS_SUCCESS,null)},generateUrl(){this.$store.dispatch("getFullContents",this.item)},copyToClipboard(){this.$refs.urlText.focus(),this.$refs.urlText.select();try{document.execCommand("copy")}catch(e){alert(translate("COM_MEDIA_SHARE_COPY_FAILED_ERROR"))}}}};const _hoisted_1$b={id:"shareTitle",class:"modal-title"},_hoisted_2$3={class:"p-3"},_hoisted_3$2={class:"desc"},_hoisted_4$1={key:0,class:"control"},_hoisted_5$1={key:1,class:"control"},_hoisted_6$1={class:"input-group"},_hoisted_7$1=["title"],_hoisted_8$1=createBaseVNode("span",{class:"icon-clipboard","aria-hidden":"true"},null,-1),_hoisted_9$1=[_hoisted_8$1];function render$b(e,t,o,n,i,r){const s=resolveComponent("media-modal");return e.$store.state.showShareModal?(openBlock(),createBlock(s,{key:0,size:"md","show-close":!1,"label-element":"shareTitle",onClose:t[4]||(t[4]=e=>r.close())},{header:withCtx((()=>[createBaseVNode("h3",_hoisted_1$b,toDisplayString(e.translate("COM_MEDIA_SHARE")),1)])),body:withCtx((()=>[createBaseVNode("div",_hoisted_2$3,[createBaseVNode("div",_hoisted_3$2,[createTextVNode(toDisplayString(e.translate("COM_MEDIA_SHARE_DESC"))+" ",1),r.url?(openBlock(),createElementBlock("div",_hoisted_5$1,[createBaseVNode("span",_hoisted_6$1,[withDirectives(createBaseVNode("input",{id:"url",ref:"urlText","onUpdate:modelValue":t[1]||(t[1]=e=>r.url=e),readonly:"",type:"url",class:"form-control input-xxlarge",placeholder:"URL",autocomplete:"off"},null,512),[[vModelText,r.url]]),createBaseVNode("button",{class:"btn btn-secondary",type:"button",title:e.translate("COM_MEDIA_SHARE_COPY"),onClick:t[2]||(t[2]=(...e)=>r.copyToClipboard&&r.copyToClipboard(...e))},_hoisted_9$1,8,_hoisted_7$1)])])):(openBlock(),createElementBlock("div",_hoisted_4$1,[createBaseVNode("button",{class:"btn btn-success w-100",type:"button",onClick:t[0]||(t[0]=(...e)=>r.generateUrl&&r.generateUrl(...e))},toDisplayString(e.translate("COM_MEDIA_ACTION_SHARE")),1)]))])])])),footer:withCtx((()=>[createBaseVNode("div",null,[createBaseVNode("button",{class:"btn btn-secondary",onClick:t[3]||(t[3]=e=>r.close())},toDisplayString(e.translate("JCANCEL")),1)])])),_:1})):createCommentVNode("v-if",!0)}script$b.render=render$b,script$b.__file="administrator/components/com_media/resources/scripts/components/modals/share-modal.vue";var script$a={name:"MediaShareModal",computed:{item(){return this.$store.state.selectedItems[this.$store.state.selectedItems.length-1]}},methods:{deleteItem(){this.$store.dispatch("deleteSelectedItems"),this.$store.commit(HIDE_CONFIRM_DELETE_MODAL)},close(){this.$store.commit(HIDE_CONFIRM_DELETE_MODAL)}}};const _hoisted_1$a={id:"confirmDeleteTitle",class:"modal-title"},_hoisted_2$2={class:"p-3"},_hoisted_3$1={class:"desc"};function render$a(e,t,o,n,i,r){const s=resolveComponent("media-modal");return e.$store.state.showConfirmDeleteModal?(openBlock(),createBlock(s,{key:0,size:"md","show-close":!1,"label-element":"confirmDeleteTitle",onClose:t[2]||(t[2]=e=>r.close())},{header:withCtx((()=>[createBaseVNode("h3",_hoisted_1$a,toDisplayString(e.translate("COM_MEDIA_CONFIRM_DELETE_MODAL_HEADING")),1)])),body:withCtx((()=>[createBaseVNode("div",_hoisted_2$2,[createBaseVNode("div",_hoisted_3$1,toDisplayString(e.translate("JGLOBAL_CONFIRM_DELETE")),1)])])),footer:withCtx((()=>[createBaseVNode("div",null,[createBaseVNode("button",{class:"btn btn-success",onClick:t[0]||(t[0]=e=>r.close())},toDisplayString(e.translate("JCANCEL")),1),createBaseVNode("button",{id:"media-delete-item",class:"btn btn-danger",onClick:t[1]||(t[1]=e=>r.deleteItem())},toDisplayString(e.translate("COM_MEDIA_CONFIRM_DELETE_MODAL")),1)])])),_:1})):createCommentVNode("v-if",!0)}script$a.render=render$a,script$a.__file="administrator/components/com_media/resources/scripts/components/modals/confirm-delete-modal.vue";var script$9={name:"MediaInfobar",computed:{item(){const{selectedItems:e}=this.$store.state;return 1===e.length?e[0]:e.length>1?e.slice(-1)[0]:this.$store.getters.getSelectedDirectory},showInfoBar(){return this.$store.state.showInfoBar}},methods:{hideInfoBar(){this.$store.commit(HIDE_INFOBAR)}}};const _hoisted_1$9={key:0,class:"media-infobar"},_hoisted_2$1={key:0,class:"text-center"},_hoisted_3=createBaseVNode("span",{class:"icon-file placeholder-icon"},null,-1),_hoisted_4=createTextVNode(" Select file or folder to view its details. "),_hoisted_5=[_hoisted_3,_hoisted_4],_hoisted_6={key:1},_hoisted_7={key:0},_hoisted_8={key:1},_hoisted_9={key:2},_hoisted_10={key:3},_hoisted_11={key:4},_hoisted_12={key:5},_hoisted_13={key:6};function render$9(e,t,o,n,i,r){return openBlock(),createBlock(Transition,{name:"infobar"},{default:withCtx((()=>[r.showInfoBar&&r.item?(openBlock(),createElementBlock("div",_hoisted_1$9,[createBaseVNode("span",{class:"infobar-close",onClick:t[0]||(t[0]=e=>r.hideInfoBar())},"×"),createBaseVNode("h2",null,toDisplayString(r.item.name),1),"/"===r.item.path?(openBlock(),createElementBlock("div",_hoisted_2$1,_hoisted_5)):(openBlock(),createElementBlock("dl",_hoisted_6,[createBaseVNode("dt",null,toDisplayString(e.translate("COM_MEDIA_FOLDER")),1),createBaseVNode("dd",null,toDisplayString(r.item.directory),1),createBaseVNode("dt",null,toDisplayString(e.translate("COM_MEDIA_MEDIA_TYPE")),1),"file"===r.item.type?(openBlock(),createElementBlock("dd",_hoisted_7,toDisplayString(e.translate("COM_MEDIA_FILE")),1)):"dir"===r.item.type?(openBlock(),createElementBlock("dd",_hoisted_8,toDisplayString(e.translate("COM_MEDIA_FOLDER")),1)):(openBlock(),createElementBlock("dd",_hoisted_9," - ")),createBaseVNode("dt",null,toDisplayString(e.translate("COM_MEDIA_MEDIA_DATE_CREATED")),1),createBaseVNode("dd",null,toDisplayString(r.item.create_date_formatted),1),createBaseVNode("dt",null,toDisplayString(e.translate("COM_MEDIA_MEDIA_DATE_MODIFIED")),1),createBaseVNode("dd",null,toDisplayString(r.item.modified_date_formatted),1),createBaseVNode("dt",null,toDisplayString(e.translate("COM_MEDIA_MEDIA_DIMENSION")),1),r.item.width||r.item.height?(openBlock(),createElementBlock("dd",_hoisted_10,toDisplayString(r.item.width)+"px * "+toDisplayString(r.item.height)+"px ",1)):(openBlock(),createElementBlock("dd",_hoisted_11," - ")),createBaseVNode("dt",null,toDisplayString(e.translate("COM_MEDIA_MEDIA_SIZE")),1),r.item.size?(openBlock(),createElementBlock("dd",_hoisted_12,toDisplayString((r.item.size/1024).toFixed(2))+" KB ",1)):(openBlock(),createElementBlock("dd",_hoisted_13," - ")),createBaseVNode("dt",null,toDisplayString(e.translate("COM_MEDIA_MEDIA_MIME_TYPE")),1),createBaseVNode("dd",null,toDisplayString(r.item.mime_type),1),createBaseVNode("dt",null,toDisplayString(e.translate("COM_MEDIA_MEDIA_EXTENSION")),1),createBaseVNode("dd",null,toDisplayString(r.item.extension||"-"),1)]))])):createCommentVNode("v-if",!0)])),_:1})}script$9.render=render$9,script$9.__file="administrator/components/com_media/resources/scripts/components/infobar/infobar.vue";var script$8={name:"MediaUpload",props:{accept:{type:String},extensions:{default:()=>[]},name:{type:String,default:"file"},multiple:{type:Boolean,default:!0}},created(){MediaManager.Event.listen("onClickUpload",(()=>this.chooseFiles()))},methods:{chooseFiles(){this.$refs.fileInput.click()},upload(e){e.preventDefault();const{files:t}=e.target;Array.from(t).forEach((e=>{const t=new FileReader;t.onload=t=>{const{result:o}=t.target,n=o.indexOf("base64")+7,i=o.slice(n,o.length);this.$store.dispatch("uploadFile",{name:e.name,parent:this.$store.state.selectedDirectory,content:i})},t.readAsDataURL(e)}))}}};const _hoisted_1$8=["name","multiple","accept"];function render$8(e,t,o,n,i,r){return openBlock(),createElementBlock("input",{ref:"fileInput",type:"file",class:"hidden",name:o.name,multiple:o.multiple,accept:o.accept,onChange:t[0]||(t[0]=(...e)=>r.upload&&r.upload(...e))},null,40,_hoisted_1$8)}script$8.render=render$8,script$8.__file="administrator/components/com_media/resources/scripts/components/upload/upload.vue";const Translate={translate:e=>Joomla.Text._(e,e),sprintf:function(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),n=1;n<t;n++)o[n-1]=arguments[n];e=Translate.translate(e);let i=0;return e.replace(/%((%)|s|d)/g,(e=>{let t=o[i];return"%d"===e&&(t=parseFloat(t),isNaN(t)&&(t=0)),i++,t}))},install:e=>e.mixin({methods:{translate:e=>Translate.translate(e),sprintf(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),n=1;n<t;n++)o[n-1]=arguments[n];return Translate.sprintf(e,o)}}})};function getDevtoolsGlobalHook(){return getTarget().__VUE_DEVTOOLS_GLOBAL_HOOK__}function getTarget(){return"undefined"!=typeof navigator?window:"undefined"!=typeof global?global:{}}const HOOK_SETUP="devtools-plugin:setup";function setupDevtoolsPlugin(e,t){const o=getDevtoolsGlobalHook();if(o)o.emit(HOOK_SETUP,e,t);else{const o=getTarget();(o.__VUE_DEVTOOLS_PLUGINS__=o.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:e,setupFn:t})}}var storeKey="store";function forEachValue(e,t){Object.keys(e).forEach((function(o){return t(e[o],o)}))}function isObject(e){return null!==e&&"object"==typeof e}function isPromise(e){return e&&"function"==typeof e.then}function partial(e,t){return function(){return e(t)}}function genericSubscribe(e,t,o){return t.indexOf(e)<0&&(o&&o.prepend?t.unshift(e):t.push(e)),function(){var o=t.indexOf(e);o>-1&&t.splice(o,1)}}function resetStore(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var o=e.state;installModule(e,o,[],e._modules.root,!0),resetStoreState(e,o,t)}function resetStoreState(e,t,o){var n=e._state;e.getters={},e._makeLocalGettersCache=Object.create(null);var i=e._wrappedGetters,r={};forEachValue(i,(function(t,o){r[o]=partial(t,e),Object.defineProperty(e.getters,o,{get:function(){return r[o]()},enumerable:!0})})),e._state=reactive({data:t}),e.strict&&enableStrictMode(e),n&&o&&e._withCommit((function(){n.data=null}))}function installModule(e,t,o,n,i){var r=!o.length,s=e._modules.getNamespace(o);if(n.namespaced&&(e._modulesNamespaceMap[s],e._modulesNamespaceMap[s]=n),!r&&!i){var a=getNestedState(t,o.slice(0,-1)),c=o[o.length-1];e._withCommit((function(){a[c]=n.state}))}var l=n.context=makeLocalContext(e,s,o);n.forEachMutation((function(t,o){registerMutation(e,s+o,t,l)})),n.forEachAction((function(t,o){var n=t.root?o:s+o,i=t.handler||t;registerAction(e,n,i,l)})),n.forEachGetter((function(t,o){registerGetter(e,s+o,t,l)})),n.forEachChild((function(n,r){installModule(e,t,o.concat(r),n,i)}))}function makeLocalContext(e,t,o){var n=""===t,i={dispatch:n?e.dispatch:function(o,n,i){var r=unifyObjectStyle(o,n,i),s=r.payload,a=r.options,c=r.type;return a&&a.root||(c=t+c),e.dispatch(c,s)},commit:n?e.commit:function(o,n,i){var r=unifyObjectStyle(o,n,i),s=r.payload,a=r.options,c=r.type;a&&a.root||(c=t+c),e.commit(c,s,a)}};return Object.defineProperties(i,{getters:{get:n?function(){return e.getters}:function(){return makeLocalGetters(e,t)}},state:{get:function(){return getNestedState(e.state,o)}}}),i}function makeLocalGetters(e,t){if(!e._makeLocalGettersCache[t]){var o={},n=t.length;Object.keys(e.getters).forEach((function(i){if(i.slice(0,n)===t){var r=i.slice(n);Object.defineProperty(o,r,{get:function(){return e.getters[i]},enumerable:!0})}})),e._makeLocalGettersCache[t]=o}return e._makeLocalGettersCache[t]}function registerMutation(e,t,o,n){(e._mutations[t]||(e._mutations[t]=[])).push((function(t){o.call(e,n.state,t)}))}function registerAction(e,t,o,n){(e._actions[t]||(e._actions[t]=[])).push((function(t){var i=o.call(e,{dispatch:n.dispatch,commit:n.commit,getters:n.getters,state:n.state,rootGetters:e.getters,rootState:e.state},t);return isPromise(i)||(i=Promise.resolve(i)),e._devtoolHook?i.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):i}))}function registerGetter(e,t,o,n){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(e){return o(n.state,n.getters,e.state,e.getters)})}function enableStrictMode(e){watch((function(){return e._state.data}),(function(){}),{deep:!0,flush:"sync"})}function getNestedState(e,t){return t.reduce((function(e,t){return e[t]}),e)}function unifyObjectStyle(e,t,o){return isObject(e)&&e.type&&(o=t,t=e,e=e.type),{type:e,payload:t,options:o}}var LABEL_VUEX_BINDINGS="vuex bindings",MUTATIONS_LAYER_ID="vuex:mutations",ACTIONS_LAYER_ID="vuex:actions",INSPECTOR_ID="vuex",actionId=0;function addDevtools(e,t){setupDevtoolsPlugin({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[LABEL_VUEX_BINDINGS]},(function(o){o.addTimelineLayer({id:MUTATIONS_LAYER_ID,label:"Vuex Mutations",color:COLOR_LIME_500}),o.addTimelineLayer({id:ACTIONS_LAYER_ID,label:"Vuex Actions",color:COLOR_LIME_500}),o.addInspector({id:INSPECTOR_ID,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),o.on.getInspectorTree((function(o){if(o.app===e&&o.inspectorId===INSPECTOR_ID)if(o.filter){var n=[];flattenStoreForInspectorTree(n,t._modules.root,o.filter,""),o.rootNodes=n}else o.rootNodes=[formatStoreForInspectorTree(t._modules.root,"")]})),o.on.getInspectorState((function(o){if(o.app===e&&o.inspectorId===INSPECTOR_ID){var n=o.nodeId;makeLocalGetters(t,n),o.state=formatStoreForInspectorState(getStoreModule(t._modules,n),"root"===n?t.getters:t._makeLocalGettersCache,n)}})),o.on.editInspectorState((function(o){if(o.app===e&&o.inspectorId===INSPECTOR_ID){var n=o.nodeId,i=o.path;"root"!==n&&(i=n.split("/").filter(Boolean).concat(i)),t._withCommit((function(){o.set(t._state.data,i,o.state.value)}))}})),t.subscribe((function(e,t){var n={};e.payload&&(n.payload=e.payload),n.state=t,o.notifyComponentUpdate(),o.sendInspectorTree(INSPECTOR_ID),o.sendInspectorState(INSPECTOR_ID),o.addTimelineEvent({layerId:MUTATIONS_LAYER_ID,event:{time:Date.now(),title:e.type,data:n}})})),t.subscribeAction({before:function(e,t){var n={};e.payload&&(n.payload=e.payload),e._id=actionId++,e._time=Date.now(),n.state=t,o.addTimelineEvent({layerId:ACTIONS_LAYER_ID,event:{time:e._time,title:e.type,groupId:e._id,subtitle:"start",data:n}})},after:function(e,t){var n={},i=Date.now()-e._time;n.duration={_custom:{type:"duration",display:i+"ms",tooltip:"Action duration",value:i}},e.payload&&(n.payload=e.payload),n.state=t,o.addTimelineEvent({layerId:ACTIONS_LAYER_ID,event:{time:Date.now(),title:e.type,groupId:e._id,subtitle:"end",data:n}})}})}))}var COLOR_LIME_500=8702998,COLOR_DARK=6710886,COLOR_WHITE=16777215,TAG_NAMESPACED={label:"namespaced",textColor:COLOR_WHITE,backgroundColor:COLOR_DARK};function extractNameFromPath(e){return e&&"root"!==e?e.split("/").slice(-2,-1)[0]:"Root"}function formatStoreForInspectorTree(e,t){return{id:t||"root",label:extractNameFromPath(t),tags:e.namespaced?[TAG_NAMESPACED]:[],children:Object.keys(e._children).map((function(o){return formatStoreForInspectorTree(e._children[o],t+o+"/")}))}}function flattenStoreForInspectorTree(e,t,o,n){n.includes(o)&&e.push({id:n||"root",label:n.endsWith("/")?n.slice(0,n.length-1):n||"Root",tags:t.namespaced?[TAG_NAMESPACED]:[]}),Object.keys(t._children).forEach((function(i){flattenStoreForInspectorTree(e,t._children[i],o,n+i+"/")}))}function formatStoreForInspectorState(e,t,o){t="root"===o?t:t[o];var n=Object.keys(t),i={state:Object.keys(e.state).map((function(t){return{key:t,editable:!0,value:e.state[t]}}))};if(n.length){var r=transformPathsToObjectTree(t);i.getters=Object.keys(r).map((function(e){return{key:e.endsWith("/")?extractNameFromPath(e):e,editable:!1,value:canThrow((function(){return r[e]}))}}))}return i}function transformPathsToObjectTree(e){var t={};return Object.keys(e).forEach((function(o){var n=o.split("/");if(n.length>1){var i=t,r=n.pop();n.forEach((function(e){i[e]||(i[e]={_custom:{value:{},display:e,tooltip:"Module",abstract:!0}}),i=i[e]._custom.value})),i[r]=canThrow((function(){return e[o]}))}else t[o]=canThrow((function(){return e[o]}))})),t}function getStoreModule(e,t){var o=t.split("/").filter((function(e){return e}));return o.reduce((function(e,n,i){var r=e[n];if(!r)throw new Error('Missing module "'+n+'" for path "'+t+'".');return i===o.length-1?r:r._children}),"root"===t?e:e.root._children)}function canThrow(e){try{return e()}catch(e){return e}}var Module=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var o=e.state;this.state=("function"==typeof o?o():o)||{}},prototypeAccessors$1={namespaced:{configurable:!0}};prototypeAccessors$1.namespaced.get=function(){return!!this._rawModule.namespaced},Module.prototype.addChild=function(e,t){this._children[e]=t},Module.prototype.removeChild=function(e){delete this._children[e]},Module.prototype.getChild=function(e){return this._children[e]},Module.prototype.hasChild=function(e){return e in this._children},Module.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},Module.prototype.forEachChild=function(e){forEachValue(this._children,e)},Module.prototype.forEachGetter=function(e){this._rawModule.getters&&forEachValue(this._rawModule.getters,e)},Module.prototype.forEachAction=function(e){this._rawModule.actions&&forEachValue(this._rawModule.actions,e)},Module.prototype.forEachMutation=function(e){this._rawModule.mutations&&forEachValue(this._rawModule.mutations,e)},Object.defineProperties(Module.prototype,prototypeAccessors$1);var ModuleCollection=function(e){this.register([],e,!1)};function update(e,t,o){if(t.update(o),o.modules)for(var n in o.modules){if(!t.getChild(n))return;update(e.concat(n),t.getChild(n),o.modules[n])}}function createStore(e){return new Store(e)}ModuleCollection.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},ModuleCollection.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,o){return e+((t=t.getChild(o)).namespaced?o+"/":"")}),"")},ModuleCollection.prototype.update=function(e){update([],this.root,e)},ModuleCollection.prototype.register=function(e,t,o){var n=this;void 0===o&&(o=!0);var i=new Module(t,o);0===e.length?this.root=i:this.get(e.slice(0,-1)).addChild(e[e.length-1],i);t.modules&&forEachValue(t.modules,(function(t,i){n.register(e.concat(i),t,o)}))},ModuleCollection.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),o=e[e.length-1],n=t.getChild(o);n&&n.runtime&&t.removeChild(o)},ModuleCollection.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),o=e[e.length-1];return!!t&&t.hasChild(o)};var Store=function(e){var t=this;void 0===e&&(e={});var o=e.plugins;void 0===o&&(o=[]);var n=e.strict;void 0===n&&(n=!1);var i=e.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new ModuleCollection(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._devtools=i;var r=this,s=this.dispatch,a=this.commit;this.dispatch=function(e,t){return s.call(r,e,t)},this.commit=function(e,t,o){return a.call(r,e,t,o)},this.strict=n;var c=this._modules.root.state;installModule(this,c,[],this._modules.root),resetStoreState(this,c),o.forEach((function(e){return e(t)}))},prototypeAccessors={state:{configurable:!0}};Store.prototype.install=function(e,t){e.provide(t||storeKey,this),e.config.globalProperties.$store=this,(void 0!==this._devtools?this._devtools:__VUE_PROD_DEVTOOLS__)&&addDevtools(e,this)},prototypeAccessors.state.get=function(){return this._state.data},prototypeAccessors.state.set=function(e){},Store.prototype.commit=function(e,t,o){var n=this,i=unifyObjectStyle(e,t,o),r=i.type,s=i.payload,a={type:r,payload:s},c=this._mutations[r];c&&(this._withCommit((function(){c.forEach((function(e){e(s)}))})),this._subscribers.slice().forEach((function(e){return e(a,n.state)})))},Store.prototype.dispatch=function(e,t){var o=this,n=unifyObjectStyle(e,t),i=n.type,r=n.payload,s={type:i,payload:r},a=this._actions[i];if(a){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(s,o.state)}))}catch(e){}var c=a.length>1?Promise.all(a.map((function(e){return e(r)}))):a[0](r);return new Promise((function(e,t){c.then((function(t){try{o._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(s,o.state)}))}catch(e){}e(t)}),(function(e){try{o._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(s,o.state,e)}))}catch(e){}t(e)}))}))}},Store.prototype.subscribe=function(e,t){return genericSubscribe(e,this._subscribers,t)},Store.prototype.subscribeAction=function(e,t){return genericSubscribe("function"==typeof e?{before:e}:e,this._actionSubscribers,t)},Store.prototype.watch=function(e,t,o){var n=this;return watch((function(){return e(n.state,n.getters)}),t,Object.assign({},o))},Store.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._state.data=e}))},Store.prototype.registerModule=function(e,t,o){void 0===o&&(o={}),"string"==typeof e&&(e=[e]),this._modules.register(e,t),installModule(this,this.state,e,this._modules.get(e),o.preserveState),resetStoreState(this,this.state)},Store.prototype.unregisterModule=function(e){var t=this;"string"==typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){delete getNestedState(t.state,e.slice(0,-1))[e[e.length-1]]})),resetStore(this)},Store.prototype.hasModule=function(e){return"string"==typeof e&&(e=[e]),this._modules.isRegistered(e)},Store.prototype.hotUpdate=function(e){this._modules.update(e),resetStore(this,!0)},Store.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(Store.prototype,prototypeAccessors);var r=function(t){return function(e){return!!e&&"object"==typeof e}(t)&&!function(t){var o=Object.prototype.toString.call(t);return"[object RegExp]"===o||"[object Date]"===o||function(t){return t.$$typeof===e}(t)}(t)},e="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function t(e,t){return!1!==t.clone&&t.isMergeableObject(e)?u(Array.isArray(e)?[]:{},e,t):e}function n(e,o,n){return e.concat(o).map((function(e){return t(e,n)}))}function o(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function c(e,t){try{return t in e}catch(e){return!1}}function u(e,i,s){(s=s||{}).arrayMerge=s.arrayMerge||n,s.isMergeableObject=s.isMergeableObject||r,s.cloneUnlessOtherwiseSpecified=t;var a=Array.isArray(i);return a===Array.isArray(e)?a?s.arrayMerge(e,i,s):function(e,n,i){var r={};return i.isMergeableObject(e)&&o(e).forEach((function(o){r[o]=t(e[o],i)})),o(n).forEach((function(o){(function(e,t){return c(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,o)||(r[o]=c(e,o)&&i.isMergeableObject(n[o])?function(e,t){if(!t.customMerge)return u;var o=t.customMerge(e);return"function"==typeof o?o:u}(o,i)(e[o],n[o],i):t(n[o],i))})),r}(e,i,s):t(i,s)}u.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,o){return u(e,o,t)}),{})};var i=u;function a(e){var t=(e=e||{}).storage||window&&window.localStorage,o=e.key||"vuex";function n(e,t){var o=t.getItem(e);try{return"string"==typeof o?JSON.parse(o):"object"==typeof o?o:void 0}catch(e){}}function r(){return!0}function s(e,t,o){return o.setItem(e,JSON.stringify(t))}function a(e,t){return Array.isArray(t)?t.reduce((function(t,o){return function(e,t,o,n){return!/^(__proto__|constructor|prototype)$/.test(t)&&((t=t.split?t.split("."):t.slice(0)).slice(0,-1).reduce((function(e,t){return e[t]=e[t]||{}}),e)[t.pop()]=o),e}(t,o,(n=e,void 0===(n=((i=o).split?i.split("."):i).reduce((function(e,t){return e&&e[t]}),n))?void 0:n));var n,i}),{}):e}function c(e){return function(t){return e.subscribe(t)}}(e.assertStorage||function(){t.setItem("@@",1),t.removeItem("@@")})(t);var l,d=function(){return(e.getState||n)(o,t)};return e.fetchBeforeUse&&(l=d()),function(n){e.fetchBeforeUse||(l=d()),"object"==typeof l&&null!==l&&(n.replaceState(e.overwrite?l:i(n.state,l,{arrayMerge:e.arrayMerger||function(e,t){return t},clone:!1})),(e.rehydrated||function(){})(n)),(e.subscriber||c)(n)((function(n,i){(e.filter||r)(n)&&(e.setState||s)(o,(e.reducer||a)(i,e.paths),t)}))}}const persistedStateOptions={key:"joomla.mediamanager",paths:["selectedDirectory","showInfoBar","listView","gridSize","search"],storage:window.sessionStorage},options=Joomla.getOptions("com_media",{});if(void 0===options.providers||0===options.providers.length)throw new TypeError("Media providers are not defined.");const getDrives=(e,t)=>{const o=[];return e.map((e=>o.push({root:`$t}-$e}:/`,displayName:e}))),o},loadedDisks=options.providers.map((e=>({displayName:e.displayName,drives:getDrives(e.adapterNames,e.name)}))),defaultDisk=loadedDisks.find((e=>e.drives.length>0&&void 0!==e.drives[0]));if(!defaultDisk)throw new TypeError("No default media drive was found");if(options.currentPath){const e=JSON.parse(persistedStateOptions.storage.getItem(persistedStateOptions.key));e&&e.selectedDirectory&&e.selectedDirectory!==options.currentPath&&(e.selectedDirectory=options.currentPath,persistedStateOptions.storage.setItem(persistedStateOptions.key,JSON.stringify(e)))}var state={isLoading:!1,disks:loadedDisks,directories:loadedDisks.map((()=>({path:defaultDisk.drives[0].root,name:defaultDisk.displayName,directories:[],files:[],directory:null}))),files:[],selectedDirectory:options.currentPath||defaultDisk.drives[0].root,selectedItems:[],showInfoBar:!1,listView:"grid",gridSize:"md",showConfirmDeleteModal:!1,showCreateFolderModal:!1,showPreviewModal:!1,showShareModal:!1,showRenameModal:!1,previewItem:null,search:""};const getSelectedDirectory=e=>e.directories.find((t=>t.path===e.selectedDirectory)),getSelectedDirectoryDirectories=e=>e.directories.filter((t=>t.directory===e.selectedDirectory)),getSelectedDirectoryFiles=e=>e.files.filter((t=>t.directory===e.selectedDirectory)),getSelectedDirectoryContents=(e,t)=>[...t.getSelectedDirectoryDirectories,...t.getSelectedDirectoryFiles];var getters=Object.freeze({__proto__:null,getSelectedDirectory:getSelectedDirectory,getSelectedDirectoryDirectories:getSelectedDirectoryDirectories,getSelectedDirectoryFiles:getSelectedDirectoryFiles,getSelectedDirectoryContents:getSelectedDirectoryContents});const updateUrlPath=e=>{const t=null===e?"":e,o=new URL(window.location.href);o.searchParams.has("path")?window.history.pushState(null,"",o.href.replace(/\b(path=).*?(&|$)/,`$1$t}$2`)):window.history.pushState(null,"",`$o.href+(o.href.indexOf("?")>0?"&":"?")}path=$t}`)},getContents=(e,t)=>{updateUrlPath(t),e.commit(SET_IS_LOADING,!0),api.getContents(t,0).then((o=>{e.commit(LOAD_CONTENTS_SUCCESS,o),e.commit(UNSELECT_ALL_BROWSER_ITEMS),e.commit(SELECT_DIRECTORY,t),e.commit(SET_IS_LOADING,!1)})).catch((t=>{e.commit(SET_IS_LOADING,!1),console.log("error",t)}))},getFullContents=(e,t)=>{e.commit(SET_IS_LOADING,!0),api.getContents(t.path,1).then((t=>{e.commit(LOAD_FULL_CONTENTS_SUCCESS,t.files[0]),e.commit(SET_IS_LOADING,!1)})).catch((t=>{e.commit(SET_IS_LOADING,!1),console.log("error",t)}))},download=(e,t)=>{api.getContents(t.path,0,1).then((e=>{const t=e.files[0],o=atob(t.content),n=[];for(let e=0;e<o.length;e+=512){const t=o.slice(e,e+512),i=new Array(t.length);for(let e=0;e<t.length;e++)i[e]=t.charCodeAt(e);const r=new Uint8Array(i);n.push(r)}const i=URL.createObjectURL(new Blob(n,{type:t.mime_type})),r=document.createElement("a");r.href=i,r.download=t.name,document.body.appendChild(r),r.click(),document.body.removeChild(r)})).catch((e=>{console.log("error",e)}))},toggleBrowserItemSelect=(e,t)=>{const o=t;e.state.selectedItems.some((e=>e.path===o.path))?e.commit(UNSELECT_BROWSER_ITEM,o):e.commit(SELECT_BROWSER_ITEM,o)},createDirectory=(e,t)=>{api.canCreate&&(e.commit(SET_IS_LOADING,!0),api.createDirectory(t.name,t.parent).then((t=>{e.commit(CREATE_DIRECTORY_SUCCESS,t),e.commit(HIDE_CREATE_FOLDER_MODAL),e.commit(SET_IS_LOADING,!1)})).catch((t=>{e.commit(SET_IS_LOADING,!1),console.log("error",t)})))},uploadFile=(e,t)=>{api.canCreate&&(e.commit(SET_IS_LOADING,!0),api.upload(t.name,t.parent,t.content,t.override||!1).then((t=>{e.commit(UPLOAD_SUCCESS,t),e.commit(SET_IS_LOADING,!1)})).catch((o=>{e.commit(SET_IS_LOADING,!1),409===o.status&&notifications.ask(Translate.sprintf("COM_MEDIA_FILE_EXISTS_AND_OVERRIDE",t.name),{})&&(t.override=!0,uploadFile(e,t))})))},renameItem=(e,t)=>{api.canEdit&&(void 0!==t.item.canEdit&&!1===t.item.canEdit||(e.commit(SET_IS_LOADING,!0),api.rename(t.item.path,t.newPath).then((o=>{e.commit(RENAME_SUCCESS,{item:o,oldPath:t.item.path,newName:t.newName}),e.commit(HIDE_RENAME_MODAL),e.commit(SET_IS_LOADING,!1)})).catch((t=>{e.commit(SET_IS_LOADING,!1),console.log("error",t)}))))},deleteSelectedItems=e=>{if(!api.canDelete)return;e.commit(SET_IS_LOADING,!0);const{selectedItems:t}=e.state;t.length>0&&t.forEach((t=>{void 0!==t.canDelete&&!1===t.canDelete||api.delete(t.path).then((()=>{e.commit(DELETE_SUCCESS,t),e.commit(UNSELECT_ALL_BROWSER_ITEMS),e.commit(SET_IS_LOADING,!1)})).catch((t=>{e.commit(SET_IS_LOADING,!1),console.log("error",t)}))}))};var actions=Object.freeze({__proto__:null,getContents:getContents,getFullContents:getFullContents,download:download,toggleBrowserItemSelect:toggleBrowserItemSelect,createDirectory:createDirectory,uploadFile:uploadFile,renameItem:renameItem,deleteSelectedItems:deleteSelectedItems});const gridItemSizes=["sm","md","lg","xl"];var mutations={[SELECT_DIRECTORY]:(e,t)=>{e.selectedDirectory=t,e.search=""},[LOAD_CONTENTS_SUCCESS]:(e,t)=>{!function t(o){if(!e.directories.some((e=>e.path===o))){const n=function(e){const t=e.split("/");let o=dirname(e);-1!==o.indexOf(":",o.length-1)&&(o+="/");return{path:e,name:t[t.length-1],directories:[],files:[],directory:"."!==o?o:null,type:"dir",mime_type:"directory"}}(o);n.directories=e.directories.filter((e=>e.directory===n.path)).map((e=>e.path)),e.directories.push(n),n.directory&&t(n.directory)}}(e.selectedDirectory),t.directories.forEach((t=>{!function(e,t){const o=e.directories.find((e=>e.path===t.directory)),n=e.directories.indexOf(o);let i=e.directories.findIndex((e=>e.path===t.path));-1===i&&(i=e.directories.length),e.directories.splice(i,1,t),-1!==n&&e.directories.splice(n,1,{...o,directories:[...o.directories,t.path]})}(e,t)})),t.files.forEach((t=>{!function(e,t){const o=e.directories.find((e=>e.path===t.directory)),n=e.directories.indexOf(o);let i=e.files.findIndex((e=>e.path===t.path));-1===i&&(i=e.files.length),e.files.splice(i,1,t),-1!==n&&e.directories.splice(n,1,{...o,files:[...o.files,t.path]})}(e,t)}))},[UPLOAD_SUCCESS]:(e,t)=>{const o=t;if(!e.files.some((e=>e.path===o.path))){const t=e.directories.find((e=>e.path===o.directory)),n=e.directories.indexOf(t);e.files.push(o),e.directories.splice(n,1,{...t,files:[...t.files,o.path]})}},[CREATE_DIRECTORY_SUCCESS]:(e,t)=>{const o=t;if(!e.directories.some((e=>e.path===o.path))){const t=e.directories.find((e=>e.path===o.directory)),n=e.directories.indexOf(t);e.directories.push(o),e.directories.splice(n,1,{...t,directories:[...t.directories,o.path]})}},[RENAME_SUCCESS]:(e,t)=>{e.selectedItems[e.selectedItems.length-1].name=t.newName;const{item:o}=t,{oldPath:n}=t;if("file"===o.type){const t=e.files.findIndex((e=>e.path===n));e.files.splice(t,1,o)}else{const t=e.directories.findIndex((e=>e.path===n));e.directories.splice(t,1,o)}},[DELETE_SUCCESS]:(e,t)=>{const o=t;"file"===o.type&&e.files.splice(e.files.findIndex((e=>e.path===o.path)),1),"dir"===o.type&&e.directories.splice(e.directories.findIndex((e=>e.path===o.path)),1)},[SELECT_BROWSER_ITEM]:(e,t)=>{e.selectedItems.push(t)},[SELECT_BROWSER_ITEMS]:(e,t)=>{e.selectedItems=t},[UNSELECT_BROWSER_ITEM]:(e,t)=>{const o=t;e.selectedItems.splice(e.selectedItems.findIndex((e=>e.path===o.path)),1)},[UNSELECT_ALL_BROWSER_ITEMS]:e=>{e.selectedItems=[]},[SHOW_CREATE_FOLDER_MODAL]:e=>{e.showCreateFolderModal=!0},[HIDE_CREATE_FOLDER_MODAL]:e=>{e.showCreateFolderModal=!1},[SHOW_INFOBAR]:e=>{e.showInfoBar=!0},[HIDE_INFOBAR]:e=>{e.showInfoBar=!1},[CHANGE_LIST_VIEW]:(e,t)=>{e.listView=t},[LOAD_FULL_CONTENTS_SUCCESS]:(e,t)=>{e.previewItem=t},[SHOW_PREVIEW_MODAL]:e=>{e.showPreviewModal=!0},[HIDE_PREVIEW_MODAL]:e=>{e.showPreviewModal=!1},[SET_IS_LOADING]:(e,t)=>{e.isLoading=t},[SHOW_RENAME_MODAL]:e=>{e.showRenameModal=!0},[HIDE_RENAME_MODAL]:e=>{e.showRenameModal=!1},[SHOW_SHARE_MODAL]:e=>{e.showShareModal=!0},[HIDE_SHARE_MODAL]:e=>{e.showShareModal=!1},[INCREASE_GRID_SIZE]:e=>{let t=gridItemSizes.indexOf(e.gridSize);t>=0&&t<gridItemSizes.length-1&&(e.gridSize=gridItemSizes[++t])},[DECREASE_GRID_SIZE]:e=>{let t=gridItemSizes.indexOf(e.gridSize);t>0&&t<gridItemSizes.length&&(e.gridSize=gridItemSizes[--t])},[SET_SEARCH_QUERY]:(e,t)=>{e.search=t},[SHOW_CONFIRM_DELETE_MODAL]:e=>{e.showConfirmDeleteModal=!0},[HIDE_CONFIRM_DELETE_MODAL]:e=>{e.showConfirmDeleteModal=!1}},store=createStore({state:state,getters:getters,actions:actions,mutations:mutations,plugins:[a(persistedStateOptions)],strict:!1}),script$7={name:"MediaBrowserActionItemRename",props:{onFocused:{type:Function,default:()=>{}},mainAction:{type:Function,default:()=>{}},closingAction:{type:Function,default:()=>{}}},methods:{openRenameModal(){this.mainAction()},hideActions(){this.closingAction()},focused(e){this.onFocused(e)}}};const _hoisted_1$7=["aria-label","title"];function render$7(e,t,o,n,i,r){return openBlock(),createElementBlock("button",{ref:"actionRenameButton",type:"button",class:"action-rename","aria-label":e.translate("COM_MEDIA_ACTION_RENAME"),title:e.translate("COM_MEDIA_ACTION_RENAME"),onKeyup:[t[1]||(t[1]=withKeys((e=>r.openRenameModal()),["enter"])),t[2]||(t[2]=withKeys((e=>r.openRenameModal()),["space"])),t[5]||(t[5]=withKeys((e=>r.hideActions()),["esc"]))],onFocus:t[3]||(t[3]=e=>r.focused(!0)),onBlur:t[4]||(t[4]=e=>r.focused(!1))},[createBaseVNode("span",{class:"image-browser-action icon-text-width","aria-hidden":"true",onClick:t[0]||(t[0]=withModifiers((e=>r.openRenameModal()),["stop"]))})],40,_hoisted_1$7)}script$7.render=render$7,script$7.__file="administrator/components/com_media/resources/scripts/components/browser/actionItems/rename.vue";var script$6={name:"MediaBrowserActionItemToggle",props:{mainAction:{type:Function,default:()=>{}}},emits:["on-focused"],methods:{openActions(){this.mainAction()},focused(e){this.$emit("on-focused",e)}}};const _hoisted_1$6=["aria-label","title"];function render$6(e,t,o,n,i,r){return openBlock(),createElementBlock("button",{type:"button",class:"action-toggle",tabindex:"0","aria-label":e.translate("COM_MEDIA_OPEN_ITEM_ACTIONS"),title:e.translate("COM_MEDIA_OPEN_ITEM_ACTIONS"),onKeyup:[t[1]||(t[1]=withKeys((e=>r.openActions()),["enter"])),t[4]||(t[4]=withKeys((e=>r.openActions()),["space"]))],onFocus:t[2]||(t[2]=e=>r.focused(!0)),onBlur:t[3]||(t[3]=e=>r.focused(!1))},[createBaseVNode("span",{class:"image-browser-action icon-ellipsis-h","aria-hidden":"true",onClick:t[0]||(t[0]=withModifiers((e=>r.openActions()),["stop"]))})],40,_hoisted_1$6)}script$6.render=render$6,script$6.__file="administrator/components/com_media/resources/scripts/components/browser/actionItems/toggle.vue";var script$5={name:"MediaBrowserActionItemPreview",props:{onFocused:{type:Function,default:()=>{}},mainAction:{type:Function,default:()=>{}},closingAction:{type:Function,default:()=>{}}},methods:{openPreview(){this.mainAction()},hideActions(){this.closingAction()},focused(e){this.onFocused(e)}}};const _hoisted_1$5=["aria-label","title"];function render$5(e,t,o,n,i,r){return openBlock(),createElementBlock("button",{type:"button",class:"action-preview","aria-label":e.translate("COM_MEDIA_ACTION_PREVIEW"),title:e.translate("COM_MEDIA_ACTION_PREVIEW"),onKeyup:[t[1]||(t[1]=withKeys((e=>r.openPreview()),["enter"])),t[2]||(t[2]=withKeys((e=>r.openPreview()),["space"])),t[5]||(t[5]=withKeys((e=>r.hideActions()),["esc"]))],onFocus:t[3]||(t[3]=e=>r.focused(!0)),onBlur:t[4]||(t[4]=e=>r.focused(!1))},[createBaseVNode("span",{class:"image-browser-action icon-search-plus","aria-hidden":"true",onClick:t[0]||(t[0]=withModifiers((e=>r.openPreview()),["stop"]))})],40,_hoisted_1$5)}script$5.render=render$5,script$5.__file="administrator/components/com_media/resources/scripts/components/browser/actionItems/preview.vue";var script$4={name:"MediaBrowserActionItemDownload",props:{onFocused:{type:Function,default:()=>{}},mainAction:{type:Function,default:()=>{}},closingAction:{type:Function,default:()=>{}}},methods:{download(){this.mainAction()},hideActions(){this.closingAction()},focused(e){this.onFocused(e)}}};const _hoisted_1$4=["aria-label","title"];function render$4(e,t,o,n,i,r){return openBlock(),createElementBlock("button",{type:"button",class:"action-download","aria-label":e.translate("COM_MEDIA_ACTION_DOWNLOAD"),title:e.translate("COM_MEDIA_ACTION_DOWNLOAD"),onKeyup:[t[1]||(t[1]=withKeys((e=>r.download()),["enter"])),t[2]||(t[2]=withKeys((e=>r.download()),["space"])),t[5]||(t[5]=withKeys((e=>r.hideActions()),["esc"]))],onFocus:t[3]||(t[3]=e=>r.focused(!0)),onBlur:t[4]||(t[4]=e=>r.focused(!1))},[createBaseVNode("span",{class:"image-browser-action icon-download","aria-hidden":"true",onClick:t[0]||(t[0]=withModifiers((e=>r.download()),["stop"]))})],40,_hoisted_1$4)}script$4.render=render$4,script$4.__file="administrator/components/com_media/resources/scripts/components/browser/actionItems/download.vue";var script$3={name:"MediaBrowserActionItemShare",props:{onFocused:{type:Function,default:()=>{}},mainAction:{type:Function,default:()=>{}},closingAction:{type:Function,default:()=>{}}},methods:{openShareUrlModal(){this.mainAction()},hideActions(){this.closingAction()},focused(e){this.onFocused(e)}}};const _hoisted_1$3=["aria-label","title"];function render$3(e,t,o,n,i,r){return openBlock(),createElementBlock("button",{type:"button",class:"action-url","aria-label":e.translate("COM_MEDIA_ACTION_SHARE"),title:e.translate("COM_MEDIA_ACTION_SHARE"),onKeyup:[t[1]||(t[1]=withKeys((e=>r.openShareUrlModal()),["enter"])),t[2]||(t[2]=withKeys((e=>r.openShareUrlModal()),["space"])),t[5]||(t[5]=withKeys((e=>r.hideActions()),["esc"]))],onFocus:t[3]||(t[3]=e=>r.focused(!0)),onBlur:t[4]||(t[4]=e=>r.focused(!1))},[createBaseVNode("span",{class:"image-browser-action icon-link","aria-hidden":"true",onClick:t[0]||(t[0]=withModifiers((e=>r.openShareUrlModal()),["stop"]))})],40,_hoisted_1$3)}script$3.render=render$3,script$3.__file="administrator/components/com_media/resources/scripts/components/browser/actionItems/share.vue";var script$2={name:"MediaBrowserActionItemDelete",props:{onFocused:{type:Function,default:()=>{}},mainAction:{type:Function,default:()=>{}},closingAction:{type:Function,default:()=>{}}},methods:{openConfirmDeleteModal(){this.mainAction()},hideActions(){this.hideActions()},focused(e){this.onFocused(e)}}};const _hoisted_1$2=["aria-label","title"];function render$2(e,t,o,n,i,r){return openBlock(),createElementBlock("button",{type:"button",class:"action-delete","aria-label":e.translate("COM_MEDIA_ACTION_DELETE"),title:e.translate("COM_MEDIA_ACTION_DELETE"),onKeyup:[t[1]||(t[1]=withKeys((e=>r.openConfirmDeleteModal()),["enter"])),t[2]||(t[2]=withKeys((e=>r.openConfirmDeleteModal()),["space"])),t[5]||(t[5]=withKeys((e=>r.hideActions()),["esc"]))],onFocus:t[3]||(t[3]=e=>r.focused(!0)),onBlur:t[4]||(t[4]=e=>r.focused(!1))},[createBaseVNode("span",{class:"image-browser-action icon-trash","aria-hidden":"true",onClick:t[0]||(t[0]=withModifiers((e=>r.openConfirmDeleteModal()),["stop"]))})],40,_hoisted_1$2)}script$2.render=render$2,script$2.__file="administrator/components/com_media/resources/scripts/components/browser/actionItems/delete.vue";var script$1={name:"MediaBrowserActionItemEdit",props:{onFocused:{type:Function,default:()=>{}},mainAction:{type:Function,default:()=>{}},closingAction:{type:Function,default:()=>{}}},methods:{openRenameModal(){this.mainAction()},hideActions(){this.closingAction()},focused(e){this.onFocused(e)},editItem(){this.mainAction()}}};const _hoisted_1$1=["aria-label","title"];function render$1(e,t,o,n,i,r){return openBlock(),createElementBlock("button",{type:"button",class:"action-edit","aria-label":e.translate("COM_MEDIA_ACTION_EDIT"),title:e.translate("COM_MEDIA_ACTION_EDIT"),onKeyup:[t[1]||(t[1]=withKeys((e=>r.editItem()),["enter"])),t[2]||(t[2]=withKeys((e=>r.editItem()),["space"])),t[5]||(t[5]=withKeys((e=>r.hideActions()),["esc"]))],onFocus:t[3]||(t[3]=e=>r.focused(!0)),onBlur:t[4]||(t[4]=e=>r.focused(!1))},[createBaseVNode("span",{class:"image-browser-action icon-pencil-alt","aria-hidden":"true",onClick:t[0]||(t[0]=withModifiers((e=>r.editItem()),["stop"]))})],40,_hoisted_1$1)}script$1.render=render$1,script$1.__file="administrator/components/com_media/resources/scripts/components/browser/actionItems/edit.vue";var script={name:"MediaBrowserActionItemsContainer",props:{item:{type:Object,default:()=>{}},edit:{type:Function,default:()=>{}},previewable:{type:Boolean,default:!1},downloadable:{type:Boolean,default:!1},shareable:{type:Boolean,default:!1}},emits:["toggle-settings"],data:()=>({showActions:!1}),computed:{canEdit(){return api.canEdit&&(void 0===this.item.canEdit||this.item.canEdit)},canDelete(){return api.canDelete&&(void 0===this.item.canDelete||this.item.canDelete)},canOpenEditView(){return["jpg","jpeg","png"].includes(this.item.extension.toLowerCase())}},watch:{"$store.state.showRenameModal"(e){!e&&this.$refs.actionToggle&&void 0!==this.$store.state.selectedItems.find((e=>e.name===this.item.name))&&this.$refs.actionToggle.$el.focus()}},methods:{hideActions(){this.showActions=!1},openPreview(){this.$store.commit(SHOW_PREVIEW_MODAL),this.$store.dispatch("getFullContents",this.item)},download(){this.$store.dispatch("download",this.item)},openConfirmDeleteModal(){this.$store.commit(UNSELECT_ALL_BROWSER_ITEMS),this.$store.commit(SELECT_BROWSER_ITEM,this.item),this.$store.commit(SHOW_CONFIRM_DELETE_MODAL)},openRenameModal(){this.hideActions(),this.$store.commit(SELECT_BROWSER_ITEM,this.item),this.$store.commit(SHOW_RENAME_MODAL)},openShareUrlModal(){this.$store.commit(SELECT_BROWSER_ITEM,this.item),this.$store.commit(SHOW_SHARE_MODAL)},openActions(){this.showActions=!0;const e=[...this.$el.parentElement.querySelectorAll(".media-browser-actions-list button")];e.length&&e[0].focus()},openLastActions(){this.showActions=!0;const e=[...this.$el.parentElement.querySelectorAll(".media-browser-actions-list button")];e.length&&this.$nextTick((()=>e[e.length-1].focus()))},editItem(){this.edit()},focused(e){this.$emit("toggle-settings",e)}}};const _hoisted_1=["aria-label","title"],_hoisted_2={key:0,class:"media-browser-actions-list"};function render(e,t,o,n,i,r){const s=resolveComponent("media-browser-action-item-toggle"),a=resolveComponent("media-browser-action-item-preview"),c=resolveComponent("media-browser-action-item-download"),l=resolveComponent("media-browser-action-item-rename"),d=resolveComponent("media-browser-action-item-edit"),u=resolveComponent("media-browser-action-item-share"),p=resolveComponent("media-browser-action-item-delete");return openBlock(),createElementBlock(Fragment,null,[createBaseVNode("span",{class:"media-browser-select","aria-label":e.translate("COM_MEDIA_TOGGLE_SELECT_ITEM"),title:e.translate("COM_MEDIA_TOGGLE_SELECT_ITEM"),tabindex:"0",onFocusin:t[0]||(t[0]=e=>r.focused(!0)),onFocusout:t[1]||(t[1]=e=>r.focused(!1))},null,40,_hoisted_1),createBaseVNode("div",{class:normalizeClass(["media-browser-actions",{active:i.showActions}])},[createVNode(s,{ref:"actionToggle","main-action":r.openActions,onOnFocused:r.focused,onKeyup:[t[2]||(t[2]=withKeys((e=>r.openLastActions()),["up"])),t[3]||(t[3]=withKeys((e=>r.openActions()),["down"]))]},null,8,["main-action","onOnFocused"]),i.showActions?(openBlock(),createElementBlock("div",_hoisted_2,[createBaseVNode("ul",null,[createBaseVNode("li",null,[o.previewable?(openBlock(),createBlock(a,{key:0,ref:"actionPreview","on-focused":r.focused,"main-action":r.openPreview,"closing-action":r.hideActions,onKeyup:[t[4]||(t[4]=withKeys((t=>e.$refs.actionDelete.$el.focus()),["up"])),t[5]||(t[5]=withKeys((t=>e.$refs.actionDelete.$el.previousElementSibling.focus()),["down"])),withKeys(r.hideActions,["esc"])]},null,8,["on-focused","main-action","closing-action","onKeyup"])):createCommentVNode("v-if",!0)]),createBaseVNode("li",null,[o.downloadable?(openBlock(),createBlock(c,{key:0,ref:"actionDownload","on-focused":r.focused,"main-action":r.download,"closing-action":r.hideActions,onKeyup:[t[6]||(t[6]=withKeys((t=>e.$refs.actionPreview.$el.focus()),["up"])),t[7]||(t[7]=withKeys((t=>e.$refs.actionPreview.$el.previousElementSibling.focus()),["down"])),withKeys(r.hideActions,["esc"])]},null,8,["on-focused","main-action","closing-action","onKeyup"])):createCommentVNode("v-if",!0)]),createBaseVNode("li",null,[r.canEdit?(openBlock(),createBlock(l,{key:0,ref:"actionRename","on-focused":r.focused,"main-action":r.openRenameModal,"closing-action":r.hideActions,onKeyup:[t[8]||(t[8]=withKeys((t=>o.downloadable?e.$refs.actionDownload.$el.focus():e.$refs.actionDownload.$el.previousElementSibling.focus()),["up"])),t[9]||(t[9]=withKeys((t=>r.canEdit?e.$refs.actionEdit.$el.focus():o.shareable?e.$refs.actionShare.$el.focus():e.$refs.actionShare.$el.previousElementSibling.focus()),["down"])),withKeys(r.hideActions,["esc"])]},null,8,["on-focused","main-action","closing-action","onKeyup"])):createCommentVNode("v-if",!0)]),createBaseVNode("li",null,[r.canEdit&&r.canOpenEditView?(openBlock(),createBlock(d,{key:0,ref:"actionEdit","on-focused":r.focused,"main-action":r.editItem,"closing-action":r.hideActions,onKeyup:[t[10]||(t[10]=withKeys((t=>e.$refs.actionRename.$el.focus()),["up"])),t[11]||(t[11]=withKeys((t=>e.$refs.actionRename.$el.previousElementSibling.focus()),["down"])),withKeys(r.hideActions,["esc"])]},null,8,["on-focused","main-action","closing-action","onKeyup"])):createCommentVNode("v-if",!0)]),createBaseVNode("li",null,[o.shareable?(openBlock(),createBlock(u,{key:0,ref:"actionShare","on-focused":r.focused,"main-action":r.openShareUrlModal,"closing-action":r.hideActions,onKeyup:[t[12]||(t[12]=withKeys((t=>r.canEdit?e.$refs.actionEdit.$el.focus():e.$refs.actionEdit.$el.previousElementSibling.focus()),["up"])),t[13]||(t[13]=withKeys((t=>e.$refs.actionDelete.$el.focus()),["down"])),withKeys(r.hideActions,["esc"])]},null,8,["on-focused","main-action","closing-action","onKeyup"])):createCommentVNode("v-if",!0)]),createBaseVNode("li",null,[r.canDelete?(openBlock(),createBlock(p,{key:0,ref:"actionDelete","on-focused":r.focused,"main-action":r.openConfirmDeleteModal,"hide-actions":r.hideActions,onKeyup:[t[14]||(t[14]=withKeys((t=>o.shareable?e.$refs.actionShare.$el.focus():e.$refs.actionShare.$el.previousElementSibling.focus()),["up"])),t[15]||(t[15]=withKeys((t=>o.previewable?e.$refs.actionPreview.$el.focus():e.$refs.actionPreview.$el.previousElementSibling.focus()),["down"])),withKeys(r.hideActions,["esc"])]},null,8,["on-focused","main-action","hide-actions","onKeyup"])):createCommentVNode("v-if",!0)])])])):createCommentVNode("v-if",!0)],2)],64)}script.render=render,script.__file="administrator/components/com_media/resources/scripts/components/browser/actionItems/actionItemsContainer.vue",window.MediaManager=window.MediaManager||{},window.MediaManager.Event=new Event;const app=createApp(script$t);app.use(store),app.use(Translate),app.component("MediaDrive",script$r),app.component("MediaDisk",script$s),app.component("MediaTree",script$q),app.component("MediaToolbar",script$p),app.component("MediaBreadcrumb",script$o),app.component("MediaBrowser",script$n),app.component("MediaBrowserItem",BrowserItem),app.component("MediaBrowserItemRow",script$g),app.component("MediaModal",script$f),app.component("MediaCreateFolderModal",script$e),app.component("MediaPreviewModal",script$d),app.component("MediaRenameModal",script$c),app.component("MediaShareModal",script$b),app.component("MediaConfirmDeleteModal",script$a),app.component("MediaInfobar",script$9),app.component("MediaUpload",script$8),app.component("MediaBrowserActionItemToggle",script$6),app.component("MediaBrowserActionItemPreview",script$5),app.component("MediaBrowserActionItemDownload",script$4),app.component("MediaBrowserActionItemRename",script$7),app.component("MediaBrowserActionItemShare",script$3),app.component("MediaBrowserActionItemDelete",script$2),app.component("MediaBrowserActionItemEdit",script$1),app.component("MediaBrowserActionItemsContainer",script),app.mount("#com-media");


Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer