Changeset 3126894
- Timestamp:
- 07/28/2024 08:24:12 PM (20 months ago)
- Location:
- podlove-podcasting-plugin-for-wordpress
- Files:
-
- 6 added
- 14 edited
- 1 copied
-
tags/4.1.13 (copied) (copied from podlove-podcasting-plugin-for-wordpress/trunk)
-
tags/4.1.13/client/dist/client.js (modified) (6 diffs)
-
tags/4.1.13/lib/modules/transcripts/jobs (added)
-
tags/4.1.13/lib/modules/transcripts/jobs/import_transcripts_job.php (added)
-
tags/4.1.13/lib/modules/transcripts/jobs/import_voice_assignments_job.php (added)
-
tags/4.1.13/lib/modules/transcripts/transcripts.php (modified) (3 diffs)
-
tags/4.1.13/podlove.php (modified) (1 diff)
-
tags/4.1.13/readme.txt (modified) (2 diffs)
-
tags/4.1.13/vendor/composer/autoload_classmap.php (modified) (1 diff)
-
tags/4.1.13/vendor/composer/autoload_static.php (modified) (1 diff)
-
tags/4.1.13/vendor/composer/installed.php (modified) (2 diffs)
-
trunk/client/dist/client.js (modified) (6 diffs)
-
trunk/lib/modules/transcripts/jobs (added)
-
trunk/lib/modules/transcripts/jobs/import_transcripts_job.php (added)
-
trunk/lib/modules/transcripts/jobs/import_voice_assignments_job.php (added)
-
trunk/lib/modules/transcripts/transcripts.php (modified) (3 diffs)
-
trunk/podlove.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/vendor/composer/autoload_classmap.php (modified) (1 diff)
-
trunk/vendor/composer/autoload_static.php (modified) (1 diff)
-
trunk/vendor/composer/installed.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
podlove-podcasting-plugin-for-wordpress/tags/4.1.13/client/dist/client.js
r3122481 r3126894 1 const IP=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const l of s.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerpolicy&&(s.referrerPolicy=o.referrerpolicy),o.crossorigin==="use-credentials"?s.credentials="include":o.crossorigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}};IP();function Vh(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o<r.length;o++)n[r[o]]=!0;return t?o=>!!n[o.toLowerCase()]:o=>!!n[o]}const PP="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt",kP=Vh(PP);function as(e){if(Je(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],o=on(r)?MP(r):as(r);if(o)for(const s in o)t[s]=o[s]}return t}else{if(on(e))return e;if(qt(e))return e}}const RP=/;(?![^(]*\))/g,LP=/:([^]+)/,NP=/\/\*.*?\*\//gs;function MP(e){const t={};return e.replace(NP,"").split(RP).forEach(n=>{if(n){const r=n.split(LP);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function wt(e){let t="";if(on(e))t=e;else if(Je(e))for(let n=0;n<e.length;n++){const r=wt(e[n]);r&&(t+=r+" ")}else if(qt(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function DP(e){if(!e)return null;let{class:t,style:n}=e;return t&&!on(t)&&(e.class=wt(t)),n&&(e.style=as(n)),e}const U=e=>on(e)?e:e==null?"":Je(e)||qt(e)&&(e.toString===a_||!et(e.toString))?JSON.stringify(e,i_,2):String(e),i_=(e,t)=>t&&t.__v_isRef?i_(e,t.value):Ms(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o])=>(n[`${r} =>`]=o,n),{})}:l_(t)?{[`Set(${t.size})`]:[...t.values()]}:qt(t)&&!Je(t)&&!u_(t)?String(t):t,Ut={},Ns=[],Xr=()=>{},FP=()=>!1,BP=/^on[^a-z]/,Kc=e=>BP.test(e),s_=e=>e.startsWith("onUpdate:"),$n=Object.assign,Wh=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},UP=Object.prototype.hasOwnProperty,_t=(e,t)=>UP.call(e,t),Je=Array.isArray,Ms=e=>Ea(e)==="[object Map]",l_=e=>Ea(e)==="[object Set]",jP=e=>Ea(e)==="[object RegExp]",et=e=>typeof e=="function",on=e=>typeof e=="string",zh=e=>typeof e=="symbol",qt=e=>e!==null&&typeof e=="object",qh=e=>qt(e)&&et(e.then)&&et(e.catch),a_=Object.prototype.toString,Ea=e=>a_.call(e),HP=e=>Ea(e).slice(8,-1),u_=e=>Ea(e)==="[object Object]",Kh=e=>on(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,jl=Vh(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Gc=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},VP=/-(\w)/g,eo=Gc(e=>e.replace(VP,(t,n)=>n?n.toUpperCase():"")),WP=/\B([A-Z])/g,Xc=Gc(e=>e.replace(WP,"-$1").toLowerCase()),Jc=Gc(e=>e.charAt(0).toUpperCase()+e.slice(1)),Hl=Gc(e=>e?`on${Jc(e)}`:""),Hs=(e,t)=>!Object.is(e,t),Vl=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},mc=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},zP=e=>{const t=parseFloat(e);return isNaN(t)?e:t},qP=e=>{const t=on(e)?Number(e):NaN;return isNaN(t)?e:t};let jy;const KP=()=>jy||(jy=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});let dr;class Gh{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=dr,!t&&dr&&(this.index=(dr.scopes||(dr.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=dr;try{return dr=this,t()}finally{dr=n}}}on(){dr=this}off(){dr=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.scopes)for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0,this._active=!1}}}function GP(e){return new Gh(e)}function c_(e,t=dr){t&&t.active&&t.effects.push(e)}function d_(){return dr}function f_(e){dr&&dr.cleanups.push(e)}const Xh=e=>{const t=new Set(e);return t.w=0,t.n=0,t},p_=e=>(e.w&vi)>0,h_=e=>(e.n&vi)>0,XP=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=vi},JP=e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const o=t[r];p_(o)&&!h_(o)?o.delete(e):t[n++]=o,o.w&=~vi,o.n&=~vi}t.length=n}},vc=new WeakMap;let Dl=0,vi=1;const jp=30;let qr;const Gi=Symbol(""),Hp=Symbol("");class xa{constructor(t,n=null,r){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,c_(this,r)}run(){if(!this.active)return this.fn();let t=qr,n=pi;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=qr,qr=this,pi=!0,vi=1<<++Dl,Dl<=jp?XP(this):Hy(this),this.fn()}finally{Dl<=jp&&JP(this),vi=1<<--Dl,qr=this.parent,pi=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){qr===this?this.deferStop=!0:this.active&&(Hy(this),this.onStop&&this.onStop(),this.active=!1)}}function Hy(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}function YP(e,t){e.effect&&(e=e.effect.fn);const n=new xa(e);t&&($n(n,t),t.scope&&c_(n,t.scope)),(!t||!t.lazy)&&n.run();const r=n.run.bind(n);return r.effect=n,r}function ZP(e){e.effect.stop()}let pi=!0;const m_=[];function sl(){m_.push(pi),pi=!1}function ll(){const e=m_.pop();pi=e===void 0?!0:e}function tr(e,t,n){if(pi&&qr){let r=vc.get(e);r||vc.set(e,r=new Map);let o=r.get(n);o||r.set(n,o=Xh()),v_(o)}}function v_(e,t){let n=!1;Dl<=jp?h_(e)||(e.n|=vi,n=!p_(e)):n=!e.has(qr),n&&(e.add(qr),qr.deps.push(e))}function Vo(e,t,n,r,o,s){const l=vc.get(e);if(!l)return;let a=[];if(t==="clear")a=[...l.values()];else if(n==="length"&&Je(e)){const c=Number(r);l.forEach((f,p)=>{(p==="length"||p>=c)&&a.push(f)})}else switch(n!==void 0&&a.push(l.get(n)),t){case"add":Je(e)?Kh(n)&&a.push(l.get("length")):(a.push(l.get(Gi)),Ms(e)&&a.push(l.get(Hp)));break;case"delete":Je(e)||(a.push(l.get(Gi)),Ms(e)&&a.push(l.get(Hp)));break;case"set":Ms(e)&&a.push(l.get(Gi));break}if(a.length===1)a[0]&&Vp(a[0]);else{const c=[];for(const f of a)f&&c.push(...f);Vp(Xh(c))}}function Vp(e,t){const n=Je(e)?e:[...e];for(const r of n)r.computed&&Vy(r);for(const r of n)r.computed||Vy(r)}function Vy(e,t){(e!==qr||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function QP(e,t){var n;return(n=vc.get(e))===null||n===void 0?void 0:n.get(t)}const ek=Vh("__proto__,__v_isRef,__isVue"),g_=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(zh)),tk=Yc(),nk=Yc(!1,!0),rk=Yc(!0),ok=Yc(!0,!0),Wy=ik();function ik(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=Ue(this);for(let s=0,l=this.length;s<l;s++)tr(r,"get",s+"");const o=r[t](...n);return o===-1||o===!1?r[t](...n.map(Ue)):o}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){sl();const r=Ue(this)[t].apply(this,n);return ll(),r}}),e}function sk(e){const t=Ue(this);return tr(t,"has",e),t.hasOwnProperty(e)}function Yc(e=!1,t=!1){return function(r,o,s){if(o==="__v_isReactive")return!e;if(o==="__v_isReadonly")return e;if(o==="__v_isShallow")return t;if(o==="__v_raw"&&s===(e?t?x_:E_:t?S_:w_).get(r))return r;const l=Je(r);if(!e){if(l&&_t(Wy,o))return Reflect.get(Wy,o,s);if(o==="hasOwnProperty")return sk}const a=Reflect.get(r,o,s);return(zh(o)?g_.has(o):ek(o))||(e||tr(r,"get",o),t)?a:dn(a)?l&&Kh(o)?a:a.value:qt(a)?e?Yh(a):Si(a):a}}const lk=y_(),ak=y_(!0);function y_(e=!1){return function(n,r,o,s){let l=n[r];if(ns(l)&&dn(l)&&!dn(o))return!1;if(!e&&(!na(o)&&!ns(o)&&(l=Ue(l),o=Ue(o)),!Je(n)&&dn(l)&&!dn(o)))return l.value=o,!0;const a=Je(n)&&Kh(r)?Number(r)<n.length:_t(n,r),c=Reflect.set(n,r,o,s);return n===Ue(s)&&(a?Hs(o,l)&&Vo(n,"set",r,o):Vo(n,"add",r,o)),c}}function uk(e,t){const n=_t(e,t);e[t];const r=Reflect.deleteProperty(e,t);return r&&n&&Vo(e,"delete",t,void 0),r}function ck(e,t){const n=Reflect.has(e,t);return(!zh(t)||!g_.has(t))&&tr(e,"has",t),n}function dk(e){return tr(e,"iterate",Je(e)?"length":Gi),Reflect.ownKeys(e)}const b_={get:tk,set:lk,deleteProperty:uk,has:ck,ownKeys:dk},__={get:rk,set(e,t){return!0},deleteProperty(e,t){return!0}},fk=$n({},b_,{get:nk,set:ak}),pk=$n({},__,{get:ok}),Jh=e=>e,Zc=e=>Reflect.getPrototypeOf(e);function Lu(e,t,n=!1,r=!1){e=e.__v_raw;const o=Ue(e),s=Ue(t);n||(t!==s&&tr(o,"get",t),tr(o,"get",s));const{has:l}=Zc(o),a=r?Jh:n?em:ra;if(l.call(o,t))return a(e.get(t));if(l.call(o,s))return a(e.get(s));e!==o&&e.get(t)}function Nu(e,t=!1){const n=this.__v_raw,r=Ue(n),o=Ue(e);return t||(e!==o&&tr(r,"has",e),tr(r,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function Mu(e,t=!1){return e=e.__v_raw,!t&&tr(Ue(e),"iterate",Gi),Reflect.get(e,"size",e)}function zy(e){e=Ue(e);const t=Ue(this);return Zc(t).has.call(t,e)||(t.add(e),Vo(t,"add",e,e)),this}function qy(e,t){t=Ue(t);const n=Ue(this),{has:r,get:o}=Zc(n);let s=r.call(n,e);s||(e=Ue(e),s=r.call(n,e));const l=o.call(n,e);return n.set(e,t),s?Hs(t,l)&&Vo(n,"set",e,t):Vo(n,"add",e,t),this}function Ky(e){const t=Ue(this),{has:n,get:r}=Zc(t);let o=n.call(t,e);o||(e=Ue(e),o=n.call(t,e)),r&&r.call(t,e);const s=t.delete(e);return o&&Vo(t,"delete",e,void 0),s}function Gy(){const e=Ue(this),t=e.size!==0,n=e.clear();return t&&Vo(e,"clear",void 0,void 0),n}function Du(e,t){return function(r,o){const s=this,l=s.__v_raw,a=Ue(l),c=t?Jh:e?em:ra;return!e&&tr(a,"iterate",Gi),l.forEach((f,p)=>r.call(o,c(f),c(p),s))}}function Fu(e,t,n){return function(...r){const o=this.__v_raw,s=Ue(o),l=Ms(s),a=e==="entries"||e===Symbol.iterator&&l,c=e==="keys"&&l,f=o[e](...r),p=n?Jh:t?em:ra;return!t&&tr(s,"iterate",c?Hp:Gi),{next(){const{value:h,done:v}=f.next();return v?{value:h,done:v}:{value:a?[p(h[0]),p(h[1])]:p(h),done:v}},[Symbol.iterator](){return this}}}}function oi(e){return function(...t){return e==="delete"?!1:this}}function hk(){const e={get(s){return Lu(this,s)},get size(){return Mu(this)},has:Nu,add:zy,set:qy,delete:Ky,clear:Gy,forEach:Du(!1,!1)},t={get(s){return Lu(this,s,!1,!0)},get size(){return Mu(this)},has:Nu,add:zy,set:qy,delete:Ky,clear:Gy,forEach:Du(!1,!0)},n={get(s){return Lu(this,s,!0)},get size(){return Mu(this,!0)},has(s){return Nu.call(this,s,!0)},add:oi("add"),set:oi("set"),delete:oi("delete"),clear:oi("clear"),forEach:Du(!0,!1)},r={get(s){return Lu(this,s,!0,!0)},get size(){return Mu(this,!0)},has(s){return Nu.call(this,s,!0)},add:oi("add"),set:oi("set"),delete:oi("delete"),clear:oi("clear"),forEach:Du(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=Fu(s,!1,!1),n[s]=Fu(s,!0,!1),t[s]=Fu(s,!1,!0),r[s]=Fu(s,!0,!0)}),[e,n,t,r]}const[mk,vk,gk,yk]=hk();function Qc(e,t){const n=t?e?yk:gk:e?vk:mk;return(r,o,s)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?r:Reflect.get(_t(n,o)&&o in r?n:r,o,s)}const bk={get:Qc(!1,!1)},_k={get:Qc(!1,!0)},wk={get:Qc(!0,!1)},Sk={get:Qc(!0,!0)},w_=new WeakMap,S_=new WeakMap,E_=new WeakMap,x_=new WeakMap;function Ek(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function xk(e){return e.__v_skip||!Object.isExtensible(e)?0:Ek(HP(e))}function Si(e){return ns(e)?e:ed(e,!1,b_,bk,w_)}function $_(e){return ed(e,!1,fk,_k,S_)}function Yh(e){return ed(e,!0,__,wk,E_)}function $k(e){return ed(e,!0,pk,Sk,x_)}function ed(e,t,n,r,o){if(!qt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=o.get(e);if(s)return s;const l=xk(e);if(l===0)return e;const a=new Proxy(e,l===2?r:n);return o.set(e,a),a}function Xi(e){return ns(e)?Xi(e.__v_raw):!!(e&&e.__v_isReactive)}function ns(e){return!!(e&&e.__v_isReadonly)}function na(e){return!!(e&&e.__v_isShallow)}function Zh(e){return Xi(e)||ns(e)}function Ue(e){const t=e&&e.__v_raw;return t?Ue(t):e}function Qh(e){return mc(e,"__v_skip",!0),e}const ra=e=>qt(e)?Si(e):e,em=e=>qt(e)?Yh(e):e;function tm(e){pi&&qr&&(e=Ue(e),v_(e.dep||(e.dep=Xh())))}function td(e,t){e=Ue(e);const n=e.dep;n&&Vp(n)}function dn(e){return!!(e&&e.__v_isRef===!0)}function _e(e){return C_(e,!1)}function nd(e){return C_(e,!0)}function C_(e,t){return dn(e)?e:new Ck(e,t)}class Ck{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:Ue(t),this._value=n?t:ra(t)}get value(){return tm(this),this._value}set value(t){const n=this.__v_isShallow||na(t)||ns(t);t=n?t:Ue(t),Hs(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:ra(t),td(this))}}function Wp(e){td(e)}function jn(e){return dn(e)?e.value:e}const Tk={get:(e,t,n)=>jn(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return dn(o)&&!dn(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function nm(e){return Xi(e)?e:new Proxy(e,Tk)}class Ok{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:r}=t(()=>tm(this),()=>td(this));this._get=n,this._set=r}get value(){return this._get()}set value(t){this._set(t)}}function Ak(e){return new Ok(e)}function rm(e){const t=Je(e)?new Array(e.length):{};for(const n in e)t[n]=T_(e,n);return t}class Ik{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return QP(Ue(this._object),this._key)}}function T_(e,t,n){const r=e[t];return dn(r)?r:new Ik(e,t,n)}var O_;class Pk{constructor(t,n,r,o){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[O_]=!1,this._dirty=!0,this.effect=new xa(t,()=>{this._dirty||(this._dirty=!0,td(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=r}get value(){const t=Ue(this);return tm(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}O_="__v_isReadonly";function kk(e,t,n=!1){let r,o;const s=et(e);return s?(r=e,o=Xr):(r=e.get,o=e.set),new Pk(r,o,s||!o,n)}function Rk(e,...t){}function Lk(e,t){}function Uo(e,t,n,r){let o;try{o=r?e(...r):e()}catch(s){us(s,t,n)}return o}function mr(e,t,n,r){if(et(e)){const s=Uo(e,t,n,r);return s&&qh(s)&&s.catch(l=>{us(l,t,n)}),s}const o=[];for(let s=0;s<e.length;s++)o.push(mr(e[s],t,n,r));return o}function us(e,t,n,r=!0){const o=t?t.vnode:null;if(t){let s=t.parent;const l=t.proxy,a=n;for(;s;){const f=s.ec;if(f){for(let p=0;p<f.length;p++)if(f[p](e,l,a)===!1)return}s=s.parent}const c=t.appContext.config.errorHandler;if(c){Uo(c,null,10,[e,l,a]);return}}Nk(e,n,o,r)}function Nk(e,t,n,r=!0){console.error(e)}let oa=!1,zp=!1;const In=[];let vo=0;const Ds=[];let Mo=null,Hi=0;const A_=Promise.resolve();let om=null;function rn(e){const t=om||A_;return e?t.then(this?e.bind(this):e):t}function Mk(e){let t=vo+1,n=In.length;for(;t<n;){const r=t+n>>>1;ia(In[r])<e?t=r+1:n=r}return t}function rd(e){(!In.length||!In.includes(e,oa&&e.allowRecurse?vo+1:vo))&&(e.id==null?In.push(e):In.splice(Mk(e.id),0,e),I_())}function I_(){!oa&&!zp&&(zp=!0,om=A_.then(P_))}function Dk(e){const t=In.indexOf(e);t>vo&&In.splice(t,1)}function im(e){Je(e)?Ds.push(...e):(!Mo||!Mo.includes(e,e.allowRecurse?Hi+1:Hi))&&Ds.push(e),I_()}function Xy(e,t=oa?vo+1:0){for(;t<In.length;t++){const n=In[t];n&&n.pre&&(In.splice(t,1),t--,n())}}function gc(e){if(Ds.length){const t=[...new Set(Ds)];if(Ds.length=0,Mo){Mo.push(...t);return}for(Mo=t,Mo.sort((n,r)=>ia(n)-ia(r)),Hi=0;Hi<Mo.length;Hi++)Mo[Hi]();Mo=null,Hi=0}}const ia=e=>e.id==null?1/0:e.id,Fk=(e,t)=>{const n=ia(e)-ia(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function P_(e){zp=!1,oa=!0,In.sort(Fk);const t=Xr;try{for(vo=0;vo<In.length;vo++){const n=In[vo];n&&n.active!==!1&&Uo(n,null,14)}}finally{vo=0,In.length=0,gc(),oa=!1,om=null,(In.length||Ds.length)&&P_()}}let Rs,Bu=[];function k_(e,t){var n,r;Rs=e,Rs?(Rs.enabled=!0,Bu.forEach(({event:o,args:s})=>Rs.emit(o,...s)),Bu=[]):typeof window!="undefined"&&window.HTMLElement&&!(!((r=(n=window.navigator)===null||n===void 0?void 0:n.userAgent)===null||r===void 0)&&r.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(s=>{k_(s,t)}),setTimeout(()=>{Rs||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Bu=[])},3e3)):Bu=[]}function Bk(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Ut;let o=n;const s=t.startsWith("update:"),l=s&&t.slice(7);if(l&&l in r){const p=`${l==="modelValue"?"model":l}Modifiers`,{number:h,trim:v}=r[p]||Ut;v&&(o=n.map(y=>on(y)?y.trim():y)),h&&(o=n.map(zP))}let a,c=r[a=Hl(t)]||r[a=Hl(eo(t))];!c&&s&&(c=r[a=Hl(Xc(t))]),c&&mr(c,e,6,o);const f=r[a+"Once"];if(f){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,mr(f,e,6,o)}}function R_(e,t,n=!1){const r=t.emitsCache,o=r.get(e);if(o!==void 0)return o;const s=e.emits;let l={},a=!1;if(!et(e)){const c=f=>{const p=R_(f,t,!0);p&&(a=!0,$n(l,p))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!s&&!a?(qt(e)&&r.set(e,null),null):(Je(s)?s.forEach(c=>l[c]=null):$n(l,s),qt(e)&&r.set(e,l),l)}function od(e,t){return!e||!Kc(t)?!1:(t=t.slice(2).replace(/Once$/,""),_t(e,t[0].toLowerCase()+t.slice(1))||_t(e,Xc(t))||_t(e,t))}let xn=null,id=null;function sa(e){const t=xn;return xn=e,id=e&&e.type.__scopeId||null,t}function Uk(e){id=e}function jk(){id=null}const Hk=e=>ye;function ye(e,t=xn,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&Zp(-1);const s=sa(t);let l;try{l=e(...o)}finally{sa(s),r._d&&Zp(1)}return l};return r._n=!0,r._c=!0,r._d=!0,r}function tc(e){const{type:t,vnode:n,proxy:r,withProxy:o,props:s,propsOptions:[l],slots:a,attrs:c,emit:f,render:p,renderCache:h,data:v,setupState:y,ctx:_,inheritAttrs:w}=e;let I,O;const S=sa(e);try{if(n.shapeFlag&4){const T=o||r;I=fr(p.call(T,T,h,s,y,v,_)),O=c}else{const T=t;I=fr(T.length>1?T(s,{attrs:c,slots:a,emit:f}):T(s,null)),O=t.props?c:Wk(c)}}catch(T){ql.length=0,us(T,e,1),I=q(Rn)}let E=I;if(O&&w!==!1){const T=Object.keys(O),{shapeFlag:$}=E;T.length&&$&7&&(l&&T.some(s_)&&(O=zk(O,l)),E=Dr(E,O))}return n.dirs&&(E=Dr(E),E.dirs=E.dirs?E.dirs.concat(n.dirs):n.dirs),n.transition&&(E.transition=n.transition),I=E,sa(S),I}function Vk(e){let t;for(let n=0;n<e.length;n++){const r=e[n];if(gi(r)){if(r.type!==Rn||r.children==="v-if"){if(t)return;t=r}}else return}return t}const Wk=e=>{let t;for(const n in e)(n==="class"||n==="style"||Kc(n))&&((t||(t={}))[n]=e[n]);return t},zk=(e,t)=>{const n={};for(const r in e)(!s_(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function qk(e,t,n){const{props:r,children:o,component:s}=e,{props:l,children:a,patchFlag:c}=t,f=s.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?Jy(r,l,f):!!l;if(c&8){const p=t.dynamicProps;for(let h=0;h<p.length;h++){const v=p[h];if(l[v]!==r[v]&&!od(f,v))return!0}}}else return(o||a)&&(!a||!a.$stable)?!0:r===l?!1:r?l?Jy(r,l,f):!0:!!l;return!1}function Jy(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let o=0;o<r.length;o++){const s=r[o];if(t[s]!==e[s]&&!od(n,s))return!0}return!1}function sm({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const L_=e=>e.__isSuspense,Kk={name:"Suspense",__isSuspense:!0,process(e,t,n,r,o,s,l,a,c,f){e==null?Xk(t,n,r,o,s,l,a,c,f):Jk(e,t,n,r,o,l,a,c,f)},hydrate:Yk,create:lm,normalize:Zk},Gk=Kk;function la(e,t){const n=e.props&&e.props[t];et(n)&&n()}function Xk(e,t,n,r,o,s,l,a,c){const{p:f,o:{createElement:p}}=c,h=p("div"),v=e.suspense=lm(e,o,r,t,h,n,s,l,a,c);f(null,v.pendingBranch=e.ssContent,h,null,r,v,s,l),v.deps>0?(la(e,"onPending"),la(e,"onFallback"),f(null,e.ssFallback,t,n,r,null,s,l),Fs(v,e.ssFallback)):v.resolve()}function Jk(e,t,n,r,o,s,l,a,{p:c,um:f,o:{createElement:p}}){const h=t.suspense=e.suspense;h.vnode=t,t.el=e.el;const v=t.ssContent,y=t.ssFallback,{activeBranch:_,pendingBranch:w,isInFallback:I,isHydrating:O}=h;if(w)h.pendingBranch=v,Kr(v,w)?(c(w,v,h.hiddenContainer,null,o,h,s,l,a),h.deps<=0?h.resolve():I&&(c(_,y,n,r,o,null,s,l,a),Fs(h,y))):(h.pendingId++,O?(h.isHydrating=!1,h.activeBranch=w):f(w,o,h),h.deps=0,h.effects.length=0,h.hiddenContainer=p("div"),I?(c(null,v,h.hiddenContainer,null,o,h,s,l,a),h.deps<=0?h.resolve():(c(_,y,n,r,o,null,s,l,a),Fs(h,y))):_&&Kr(v,_)?(c(_,v,n,r,o,h,s,l,a),h.resolve(!0)):(c(null,v,h.hiddenContainer,null,o,h,s,l,a),h.deps<=0&&h.resolve()));else if(_&&Kr(v,_))c(_,v,n,r,o,h,s,l,a),Fs(h,v);else if(la(t,"onPending"),h.pendingBranch=v,h.pendingId++,c(null,v,h.hiddenContainer,null,o,h,s,l,a),h.deps<=0)h.resolve();else{const{timeout:S,pendingId:E}=h;S>0?setTimeout(()=>{h.pendingId===E&&h.fallback(y)},S):S===0&&h.fallback(y)}}function lm(e,t,n,r,o,s,l,a,c,f,p=!1){const{p:h,m:v,um:y,n:_,o:{parentNode:w,remove:I}}=f,O=e.props?qP(e.props.timeout):void 0,S={vnode:e,parent:t,parentComponent:n,isSVG:l,container:r,hiddenContainer:o,anchor:s,deps:0,pendingId:0,timeout:typeof O=="number"?O:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:p,isUnmounted:!1,effects:[],resolve(E=!1){const{vnode:T,activeBranch:$,pendingBranch:P,pendingId:k,effects:A,parentComponent:H,container:D}=S;if(S.isHydrating)S.isHydrating=!1;else if(!E){const K=$&&P.transition&&P.transition.mode==="out-in";K&&($.transition.afterLeave=()=>{k===S.pendingId&&v(P,D,te,0)});let{anchor:te}=S;$&&(te=_($),y($,H,S,!0)),K||v(P,D,te,0)}Fs(S,P),S.pendingBranch=null,S.isInFallback=!1;let F=S.parent,z=!1;for(;F;){if(F.pendingBranch){F.effects.push(...A),z=!0;break}F=F.parent}z||im(A),S.effects=[],la(T,"onResolve")},fallback(E){if(!S.pendingBranch)return;const{vnode:T,activeBranch:$,parentComponent:P,container:k,isSVG:A}=S;la(T,"onFallback");const H=_($),D=()=>{!S.isInFallback||(h(null,E,k,H,P,null,A,a,c),Fs(S,E))},F=E.transition&&E.transition.mode==="out-in";F&&($.transition.afterLeave=D),S.isInFallback=!0,y($,P,null,!0),F||D()},move(E,T,$){S.activeBranch&&v(S.activeBranch,E,T,$),S.container=E},next(){return S.activeBranch&&_(S.activeBranch)},registerDep(E,T){const $=!!S.pendingBranch;$&&S.deps++;const P=E.vnode.el;E.asyncDep.catch(k=>{us(k,E,0)}).then(k=>{if(E.isUnmounted||S.isUnmounted||S.pendingId!==E.suspenseId)return;E.asyncResolved=!0;const{vnode:A}=E;Qp(E,k,!1),P&&(A.el=P);const H=!P&&E.subTree.el;T(E,A,w(P||E.subTree.el),P?null:_(E.subTree),S,l,c),H&&I(H),sm(E,A.el),$&&--S.deps===0&&S.resolve()})},unmount(E,T){S.isUnmounted=!0,S.activeBranch&&y(S.activeBranch,n,E,T),S.pendingBranch&&y(S.pendingBranch,n,E,T)}};return S}function Yk(e,t,n,r,o,s,l,a,c){const f=t.suspense=lm(t,r,n,e.parentNode,document.createElement("div"),null,o,s,l,a,!0),p=c(e,f.pendingBranch=t.ssContent,n,f,s,l);return f.deps===0&&f.resolve(),p}function Zk(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=Yy(r?n.default:n),e.ssFallback=r?Yy(n.fallback):q(Rn)}function Yy(e){let t;if(et(e)){const n=is&&e._c;n&&(e._d=!1,N()),e=e(),n&&(e._d=!0,t=Jn,uw())}return Je(e)&&(e=Vk(e)),e=fr(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function N_(e,t){t&&t.pendingBranch?Je(e)?t.effects.push(...e):t.effects.push(e):im(e)}function Fs(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e,o=n.el=t.el;r&&r.subTree===n&&(r.vnode.el=o,sm(r,o))}function Yt(e,t){if(Xt){let n=Xt.provides;const r=Xt.parent&&Xt.parent.provides;r===n&&(n=Xt.provides=Object.create(r)),n[e]=t}}function kt(e,t,n=!1){const r=Xt||xn;if(r){const o=r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(o&&e in o)return o[e];if(arguments.length>1)return n&&et(t)?t.call(r.proxy):t}}function jt(e,t){return $a(e,null,t)}function M_(e,t){return $a(e,null,{flush:"post"})}function Qk(e,t){return $a(e,null,{flush:"sync"})}const Uu={};function Ft(e,t,n){return $a(e,t,n)}function $a(e,t,{immediate:n,deep:r,flush:o,onTrack:s,onTrigger:l}=Ut){const a=d_()===(Xt==null?void 0:Xt.scope)?Xt:null;let c,f=!1,p=!1;if(dn(e)?(c=()=>e.value,f=na(e)):Xi(e)?(c=()=>e,r=!0):Je(e)?(p=!0,f=e.some(E=>Xi(E)||na(E)),c=()=>e.map(E=>{if(dn(E))return E.value;if(Xi(E))return zi(E);if(et(E))return Uo(E,a,2)})):et(e)?t?c=()=>Uo(e,a,2):c=()=>{if(!(a&&a.isUnmounted))return h&&h(),mr(e,a,3,[v])}:c=Xr,t&&r){const E=c;c=()=>zi(E())}let h,v=E=>{h=O.onStop=()=>{Uo(E,a,4)}},y;if(Ws)if(v=Xr,t?n&&mr(t,a,3,[c(),p?[]:void 0,v]):c(),o==="sync"){const E=Ew();y=E.__watcherHandles||(E.__watcherHandles=[])}else return Xr;let _=p?new Array(e.length).fill(Uu):Uu;const w=()=>{if(!!O.active)if(t){const E=O.run();(r||f||(p?E.some((T,$)=>Hs(T,_[$])):Hs(E,_)))&&(h&&h(),mr(t,a,3,[E,_===Uu?void 0:p&&_[0]===Uu?[]:_,v]),_=E)}else O.run()};w.allowRecurse=!!t;let I;o==="sync"?I=w:o==="post"?I=()=>Sn(w,a&&a.suspense):(w.pre=!0,a&&(w.id=a.uid),I=()=>rd(w));const O=new xa(c,I);t?n?w():_=O.run():o==="post"?Sn(O.run.bind(O),a&&a.suspense):O.run();const S=()=>{O.stop(),a&&a.scope&&Wh(a.scope.effects,O)};return y&&y.push(S),S}function eR(e,t,n){const r=this.proxy,o=on(e)?e.includes(".")?D_(r,e):()=>r[e]:e.bind(r,r);let s;et(t)?s=t:(s=t.handler,n=t);const l=Xt;yi(this);const a=$a(o,s.bind(r),n);return l?yi(l):hi(),a}function D_(e,t){const n=t.split(".");return()=>{let r=e;for(let o=0;o<n.length&&r;o++)r=r[n[o]];return r}}function zi(e,t){if(!qt(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),dn(e))zi(e.value,t);else if(Je(e))for(let n=0;n<e.length;n++)zi(e[n],t);else if(l_(e)||Ms(e))e.forEach(n=>{zi(n,t)});else if(u_(e))for(const n in e)zi(e[n],t);return e}function am(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return gt(()=>{e.isMounted=!0}),cs(()=>{e.isUnmounting=!0}),e}const Or=[Function,Array],tR={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Or,onEnter:Or,onAfterEnter:Or,onEnterCancelled:Or,onBeforeLeave:Or,onLeave:Or,onAfterLeave:Or,onLeaveCancelled:Or,onBeforeAppear:Or,onAppear:Or,onAfterAppear:Or,onAppearCancelled:Or},setup(e,{slots:t}){const n=Ko(),r=am();let o;return()=>{const s=t.default&&sd(t.default(),!0);if(!s||!s.length)return;let l=s[0];if(s.length>1){for(const w of s)if(w.type!==Rn){l=w;break}}const a=Ue(e),{mode:c}=a;if(r.isLeaving)return up(l);const f=Zy(l);if(!f)return up(l);const p=Vs(f,a,r,n);rs(f,p);const h=n.subTree,v=h&&Zy(h);let y=!1;const{getTransitionKey:_}=f.type;if(_){const w=_();o===void 0?o=w:w!==o&&(o=w,y=!0)}if(v&&v.type!==Rn&&(!Kr(f,v)||y)){const w=Vs(v,a,r,n);if(rs(v,w),c==="out-in")return r.isLeaving=!0,w.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},up(l);c==="in-out"&&f.type!==Rn&&(w.delayLeave=(I,O,S)=>{const E=F_(r,v);E[String(v.key)]=v,I._leaveCb=()=>{O(),I._leaveCb=void 0,delete p.delayedLeave},p.delayedLeave=S})}return l}}},um=tR;function F_(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Vs(e,t,n,r){const{appear:o,mode:s,persisted:l=!1,onBeforeEnter:a,onEnter:c,onAfterEnter:f,onEnterCancelled:p,onBeforeLeave:h,onLeave:v,onAfterLeave:y,onLeaveCancelled:_,onBeforeAppear:w,onAppear:I,onAfterAppear:O,onAppearCancelled:S}=t,E=String(e.key),T=F_(n,e),$=(A,H)=>{A&&mr(A,r,9,H)},P=(A,H)=>{const D=H[1];$(A,H),Je(A)?A.every(F=>F.length<=1)&&D():A.length<=1&&D()},k={mode:s,persisted:l,beforeEnter(A){let H=a;if(!n.isMounted)if(o)H=w||a;else return;A._leaveCb&&A._leaveCb(!0);const D=T[E];D&&Kr(e,D)&&D.el._leaveCb&&D.el._leaveCb(),$(H,[A])},enter(A){let H=c,D=f,F=p;if(!n.isMounted)if(o)H=I||c,D=O||f,F=S||p;else return;let z=!1;const K=A._enterCb=te=>{z||(z=!0,te?$(F,[A]):$(D,[A]),k.delayedLeave&&k.delayedLeave(),A._enterCb=void 0)};H?P(H,[A,K]):K()},leave(A,H){const D=String(e.key);if(A._enterCb&&A._enterCb(!0),n.isUnmounting)return H();$(h,[A]);let F=!1;const z=A._leaveCb=K=>{F||(F=!0,H(),K?$(_,[A]):$(y,[A]),A._leaveCb=void 0,T[D]===e&&delete T[D])};T[D]=e,v?P(v,[A,z]):z()},clone(A){return Vs(A,t,n,r)}};return k}function up(e){if(Ca(e))return e=Dr(e),e.children=null,e}function Zy(e){return Ca(e)?e.children?e.children[0]:void 0:e}function rs(e,t){e.shapeFlag&6&&e.component?rs(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function sd(e,t=!1,n){let r=[],o=0;for(let s=0;s<e.length;s++){let l=e[s];const a=n==null?l.key:String(n)+String(l.key!=null?l.key:s);l.type===Fe?(l.patchFlag&128&&o++,r=r.concat(sd(l.children,t,a))):(t||l.type!==Rn)&&r.push(a!=null?Dr(l,{key:a}):l)}if(o>1)for(let s=0;s<r.length;s++)r[s].patchFlag=-2;return r}function ve(e){return et(e)?{setup:e,name:e.name}:e}const Ji=e=>!!e.type.__asyncLoader;function nR(e){et(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:o=200,timeout:s,suspensible:l=!0,onError:a}=e;let c=null,f,p=0;const h=()=>(p++,c=null,v()),v=()=>{let y;return c||(y=c=t().catch(_=>{if(_=_ instanceof Error?_:new Error(String(_)),a)return new Promise((w,I)=>{a(_,()=>w(h()),()=>I(_),p+1)});throw _}).then(_=>y!==c&&c?c:(_&&(_.__esModule||_[Symbol.toStringTag]==="Module")&&(_=_.default),f=_,_)))};return ve({name:"AsyncComponentWrapper",__asyncLoader:v,get __asyncResolved(){return f},setup(){const y=Xt;if(f)return()=>cp(f,y);const _=S=>{c=null,us(S,y,13,!r)};if(l&&y.suspense||Ws)return v().then(S=>()=>cp(S,y)).catch(S=>(_(S),()=>r?q(r,{error:S}):null));const w=_e(!1),I=_e(),O=_e(!!o);return o&&setTimeout(()=>{O.value=!1},o),s!=null&&setTimeout(()=>{if(!w.value&&!I.value){const S=new Error(`Async component timed out after ${s}ms.`);_(S),I.value=S}},s),v().then(()=>{w.value=!0,y.parent&&Ca(y.parent.vnode)&&rd(y.parent.update)}).catch(S=>{_(S),I.value=S}),()=>{if(w.value&&f)return cp(f,y);if(I.value&&r)return q(r,{error:I.value});if(n&&!O.value)return q(n)}}})}function cp(e,t){const{ref:n,props:r,children:o,ce:s}=t.vnode,l=q(e,r,o);return l.ref=n,l.ce=s,delete t.vnode.ce,l}const Ca=e=>e.type.__isKeepAlive,rR={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Ko(),r=n.ctx;if(!r.renderer)return()=>{const S=t.default&&t.default();return S&&S.length===1?S[0]:S};const o=new Map,s=new Set;let l=null;const a=n.suspense,{renderer:{p:c,m:f,um:p,o:{createElement:h}}}=r,v=h("div");r.activate=(S,E,T,$,P)=>{const k=S.component;f(S,E,T,0,a),c(k.vnode,S,E,T,k,a,$,S.slotScopeIds,P),Sn(()=>{k.isDeactivated=!1,k.a&&Vl(k.a);const A=S.props&&S.props.onVnodeMounted;A&&Xn(A,k.parent,S)},a)},r.deactivate=S=>{const E=S.component;f(S,v,null,1,a),Sn(()=>{E.da&&Vl(E.da);const T=S.props&&S.props.onVnodeUnmounted;T&&Xn(T,E.parent,S),E.isDeactivated=!0},a)};function y(S){dp(S),p(S,n,a,!0)}function _(S){o.forEach((E,T)=>{const $=th(E.type);$&&(!S||!S($))&&w(T)})}function w(S){const E=o.get(S);!l||!Kr(E,l)?y(E):l&&dp(l),o.delete(S),s.delete(S)}Ft(()=>[e.include,e.exclude],([S,E])=>{S&&_(T=>Fl(S,T)),E&&_(T=>!Fl(E,T))},{flush:"post",deep:!0});let I=null;const O=()=>{I!=null&&o.set(I,fp(n.subTree))};return gt(O),ad(O),cs(()=>{o.forEach(S=>{const{subTree:E,suspense:T}=n,$=fp(E);if(S.type===$.type&&S.key===$.key){dp($);const P=$.component.da;P&&Sn(P,T);return}y(S)})}),()=>{if(I=null,!t.default)return null;const S=t.default(),E=S[0];if(S.length>1)return l=null,S;if(!gi(E)||!(E.shapeFlag&4)&&!(E.shapeFlag&128))return l=null,E;let T=fp(E);const $=T.type,P=th(Ji(T)?T.type.__asyncResolved||{}:$),{include:k,exclude:A,max:H}=e;if(k&&(!P||!Fl(k,P))||A&&P&&Fl(A,P))return l=T,E;const D=T.key==null?$:T.key,F=o.get(D);return T.el&&(T=Dr(T),E.shapeFlag&128&&(E.ssContent=T)),I=D,F?(T.el=F.el,T.component=F.component,T.transition&&rs(T,T.transition),T.shapeFlag|=512,s.delete(D),s.add(D)):(s.add(D),H&&s.size>parseInt(H,10)&&w(s.values().next().value)),T.shapeFlag|=256,l=T,L_(E.type)?E:T}}},oR=rR;function Fl(e,t){return Je(e)?e.some(n=>Fl(n,t)):on(e)?e.split(",").includes(t):jP(e)?e.test(t):!1}function B_(e,t){j_(e,"a",t)}function U_(e,t){j_(e,"da",t)}function j_(e,t,n=Xt){const r=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(ld(t,r,n),n){let o=n.parent;for(;o&&o.parent;)Ca(o.parent.vnode)&&iR(r,t,n,o),o=o.parent}}function iR(e,t,n,r){const o=ld(t,e,r,!0);Zt(()=>{Wh(r[t],o)},n)}function dp(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function fp(e){return e.shapeFlag&128?e.ssContent:e}function ld(e,t,n=Xt,r=!1){if(n){const o=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...l)=>{if(n.isUnmounted)return;sl(),yi(n);const a=mr(t,n,e,l);return hi(),ll(),a});return r?o.unshift(s):o.push(s),s}}const qo=e=>(t,n=Xt)=>(!Ws||e==="sp")&&ld(e,(...r)=>t(...r),n),H_=qo("bm"),gt=qo("m"),V_=qo("bu"),ad=qo("u"),cs=qo("bum"),Zt=qo("um"),W_=qo("sp"),z_=qo("rtg"),q_=qo("rtc");function K_(e,t=Xt){ld("ec",e,t)}function G_(e,t){const n=xn;if(n===null)return e;const r=cd(n)||n.proxy,o=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[l,a,c,f=Ut]=t[s];l&&(et(l)&&(l={mounted:l,updated:l}),l.deep&&zi(a),o.push({dir:l,instance:r,value:a,oldValue:void 0,arg:c,modifiers:f}))}return e}function mo(e,t,n,r){const o=e.dirs,s=t&&t.dirs;for(let l=0;l<o.length;l++){const a=o[l];s&&(a.oldValue=s[l].value);let c=a.dir[r];c&&(sl(),mr(c,n,8,[e.el,a,e,t]),ll())}}const cm="components",sR="directives";function X(e,t){return dm(cm,e,!0,t)||e}const X_=Symbol();function lR(e){return on(e)?dm(cm,e,!1)||e:e||X_}function aR(e){return dm(sR,e)}function dm(e,t,n=!0,r=!1){const o=xn||Xt;if(o){const s=o.type;if(e===cm){const a=th(s,!1);if(a&&(a===t||a===eo(t)||a===Jc(eo(t))))return s}const l=Qy(o[e]||s[e],t)||Qy(o.appContext[e],t);return!l&&r?s:l}}function Qy(e,t){return e&&(e[t]||e[eo(t)]||e[Jc(eo(t))])}function Mt(e,t,n,r){let o;const s=n&&n[r];if(Je(e)||on(e)){o=new Array(e.length);for(let l=0,a=e.length;l<a;l++)o[l]=t(e[l],l,void 0,s&&s[l])}else if(typeof e=="number"){o=new Array(e);for(let l=0;l<e;l++)o[l]=t(l+1,l,void 0,s&&s[l])}else if(qt(e))if(e[Symbol.iterator])o=Array.from(e,(l,a)=>t(l,a,void 0,s&&s[a]));else{const l=Object.keys(e);o=new Array(l.length);for(let a=0,c=l.length;a<c;a++){const f=l[a];o[a]=t(e[f],f,a,s&&s[a])}}else o=[];return n&&(n[r]=o),o}function uR(e,t){for(let n=0;n<t.length;n++){const r=t[n];if(Je(r))for(let o=0;o<r.length;o++)e[r[o].name]=r[o].fn;else r&&(e[r.name]=r.key?(...o)=>{const s=r.fn(...o);return s&&(s.key=r.key),s}:r.fn)}return e}function gr(e,t,n={},r,o){if(xn.isCE||xn.parent&&Ji(xn.parent)&&xn.parent.isCE)return t!=="default"&&(n.name=t),q("slot",n,r&&r());let s=e[t];s&&s._c&&(s._d=!1),N();const l=s&&J_(s(n)),a=bt(Fe,{key:n.key||l&&l.key||`_${t}`},l||(r?r():[]),l&&e._===1?64:-2);return!o&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),s&&s._c&&(s._d=!0),a}function J_(e){return e.some(t=>gi(t)?!(t.type===Rn||t.type===Fe&&!J_(t.children)):!0)?e:null}function cR(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:Hl(r)]=e[r];return n}const qp=e=>e?mw(e)?cd(e)||e.proxy:qp(e.parent):null,Wl=$n(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=>qp(e.parent),$root:e=>qp(e.root),$emit:e=>e.emit,$options:e=>fm(e),$forceUpdate:e=>e.f||(e.f=()=>rd(e.update)),$nextTick:e=>e.n||(e.n=rn.bind(e.proxy)),$watch:e=>eR.bind(e)}),pp=(e,t)=>e!==Ut&&!e.__isScriptSetup&&_t(e,t),Kp={get({_:e},t){const{ctx:n,setupState:r,data:o,props:s,accessCache:l,type:a,appContext:c}=e;let f;if(t[0]!=="$"){const y=l[t];if(y!==void 0)switch(y){case 1:return r[t];case 2:return o[t];case 4:return n[t];case 3:return s[t]}else{if(pp(r,t))return l[t]=1,r[t];if(o!==Ut&&_t(o,t))return l[t]=2,o[t];if((f=e.propsOptions[0])&&_t(f,t))return l[t]=3,s[t];if(n!==Ut&&_t(n,t))return l[t]=4,n[t];Gp&&(l[t]=0)}}const p=Wl[t];let h,v;if(p)return t==="$attrs"&&tr(e,"get",t),p(e);if((h=a.__cssModules)&&(h=h[t]))return h;if(n!==Ut&&_t(n,t))return l[t]=4,n[t];if(v=c.config.globalProperties,_t(v,t))return v[t]},set({_:e},t,n){const{data:r,setupState:o,ctx:s}=e;return pp(o,t)?(o[t]=n,!0):r!==Ut&&_t(r,t)?(r[t]=n,!0):_t(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,propsOptions:s}},l){let a;return!!n[l]||e!==Ut&&_t(e,l)||pp(t,l)||(a=s[0])&&_t(a,l)||_t(r,l)||_t(Wl,l)||_t(o.config.globalProperties,l)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:_t(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},dR=$n({},Kp,{get(e,t){if(t!==Symbol.unscopables)return Kp.get(e,t,e)},has(e,t){return t[0]!=="_"&&!kP(t)}});let Gp=!0;function fR(e){const t=fm(e),n=e.proxy,r=e.ctx;Gp=!1,t.beforeCreate&&eb(t.beforeCreate,e,"bc");const{data:o,computed:s,methods:l,watch:a,provide:c,inject:f,created:p,beforeMount:h,mounted:v,beforeUpdate:y,updated:_,activated:w,deactivated:I,beforeDestroy:O,beforeUnmount:S,destroyed:E,unmounted:T,render:$,renderTracked:P,renderTriggered:k,errorCaptured:A,serverPrefetch:H,expose:D,inheritAttrs:F,components:z,directives:K,filters:te}=t;if(f&&pR(f,r,null,e.appContext.config.unwrapInjectedRef),l)for(const Oe in l){const Ae=l[Oe];et(Ae)&&(r[Oe]=Ae.bind(n))}if(o){const Oe=o.call(n,n);qt(Oe)&&(e.data=Si(Oe))}if(Gp=!0,s)for(const Oe in s){const Ae=s[Oe],Ye=et(Ae)?Ae.bind(n,n):et(Ae.get)?Ae.get.bind(n,n):Xr,ft=!et(Ae)&&et(Ae.set)?Ae.set.bind(n):Xr,Le=ce({get:Ye,set:ft});Object.defineProperty(r,Oe,{enumerable:!0,configurable:!0,get:()=>Le.value,set:Ke=>Le.value=Ke})}if(a)for(const Oe in a)Y_(a[Oe],r,n,Oe);if(c){const Oe=et(c)?c.call(n):c;Reflect.ownKeys(Oe).forEach(Ae=>{Yt(Ae,Oe[Ae])})}p&&eb(p,e,"c");function be(Oe,Ae){Je(Ae)?Ae.forEach(Ye=>Oe(Ye.bind(n))):Ae&&Oe(Ae.bind(n))}if(be(H_,h),be(gt,v),be(V_,y),be(ad,_),be(B_,w),be(U_,I),be(K_,A),be(q_,P),be(z_,k),be(cs,S),be(Zt,T),be(W_,H),Je(D))if(D.length){const Oe=e.exposed||(e.exposed={});D.forEach(Ae=>{Object.defineProperty(Oe,Ae,{get:()=>n[Ae],set:Ye=>n[Ae]=Ye})})}else e.exposed||(e.exposed={});$&&e.render===Xr&&(e.render=$),F!=null&&(e.inheritAttrs=F),z&&(e.components=z),K&&(e.directives=K)}function pR(e,t,n=Xr,r=!1){Je(e)&&(e=Xp(e));for(const o in e){const s=e[o];let l;qt(s)?"default"in s?l=kt(s.from||o,s.default,!0):l=kt(s.from||o):l=kt(s),dn(l)&&r?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>l.value,set:a=>l.value=a}):t[o]=l}}function eb(e,t,n){mr(Je(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Y_(e,t,n,r){const o=r.includes(".")?D_(n,r):()=>n[r];if(on(e)){const s=t[e];et(s)&&Ft(o,s)}else if(et(e))Ft(o,e.bind(n));else if(qt(e))if(Je(e))e.forEach(s=>Y_(s,t,n,r));else{const s=et(e.handler)?e.handler.bind(n):t[e.handler];et(s)&&Ft(o,s,e)}}function fm(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:s,config:{optionMergeStrategies:l}}=e.appContext,a=s.get(t);let c;return a?c=a:!o.length&&!n&&!r?c=t:(c={},o.length&&o.forEach(f=>yc(c,f,l,!0)),yc(c,t,l)),qt(t)&&s.set(t,c),c}function yc(e,t,n,r=!1){const{mixins:o,extends:s}=t;s&&yc(e,s,n,!0),o&&o.forEach(l=>yc(e,l,n,!0));for(const l in t)if(!(r&&l==="expose")){const a=hR[l]||n&&n[l];e[l]=a?a(e[l],t[l]):t[l]}return e}const hR={data:tb,props:Ui,emits:Ui,methods:Ui,computed:Ui,beforeCreate:Un,created:Un,beforeMount:Un,mounted:Un,beforeUpdate:Un,updated:Un,beforeDestroy:Un,beforeUnmount:Un,destroyed:Un,unmounted:Un,activated:Un,deactivated:Un,errorCaptured:Un,serverPrefetch:Un,components:Ui,directives:Ui,watch:vR,provide:tb,inject:mR};function tb(e,t){return t?e?function(){return $n(et(e)?e.call(this,this):e,et(t)?t.call(this,this):t)}:t:e}function mR(e,t){return Ui(Xp(e),Xp(t))}function Xp(e){if(Je(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Un(e,t){return e?[...new Set([].concat(e,t))]:t}function Ui(e,t){return e?$n($n(Object.create(null),e),t):t}function vR(e,t){if(!e)return t;if(!t)return e;const n=$n(Object.create(null),e);for(const r in t)n[r]=Un(e[r],t[r]);return n}function gR(e,t,n,r=!1){const o={},s={};mc(s,ud,1),e.propsDefaults=Object.create(null),Z_(e,t,o,s);for(const l in e.propsOptions[0])l in o||(o[l]=void 0);n?e.props=r?o:$_(o):e.type.props?e.props=o:e.props=s,e.attrs=s}function yR(e,t,n,r){const{props:o,attrs:s,vnode:{patchFlag:l}}=e,a=Ue(o),[c]=e.propsOptions;let f=!1;if((r||l>0)&&!(l&16)){if(l&8){const p=e.vnode.dynamicProps;for(let h=0;h<p.length;h++){let v=p[h];if(od(e.emitsOptions,v))continue;const y=t[v];if(c)if(_t(s,v))y!==s[v]&&(s[v]=y,f=!0);else{const _=eo(v);o[_]=Jp(c,a,_,y,e,!1)}else y!==s[v]&&(s[v]=y,f=!0)}}}else{Z_(e,t,o,s)&&(f=!0);let p;for(const h in a)(!t||!_t(t,h)&&((p=Xc(h))===h||!_t(t,p)))&&(c?n&&(n[h]!==void 0||n[p]!==void 0)&&(o[h]=Jp(c,a,h,void 0,e,!0)):delete o[h]);if(s!==a)for(const h in s)(!t||!_t(t,h)&&!0)&&(delete s[h],f=!0)}f&&Vo(e,"set","$attrs")}function Z_(e,t,n,r){const[o,s]=e.propsOptions;let l=!1,a;if(t)for(let c in t){if(jl(c))continue;const f=t[c];let p;o&&_t(o,p=eo(c))?!s||!s.includes(p)?n[p]=f:(a||(a={}))[p]=f:od(e.emitsOptions,c)||(!(c in r)||f!==r[c])&&(r[c]=f,l=!0)}if(s){const c=Ue(n),f=a||Ut;for(let p=0;p<s.length;p++){const h=s[p];n[h]=Jp(o,c,h,f[h],e,!_t(f,h))}}return l}function Jp(e,t,n,r,o,s){const l=e[n];if(l!=null){const a=_t(l,"default");if(a&&r===void 0){const c=l.default;if(l.type!==Function&&et(c)){const{propsDefaults:f}=o;n in f?r=f[n]:(yi(o),r=f[n]=c.call(null,t),hi())}else r=c}l[0]&&(s&&!a?r=!1:l[1]&&(r===""||r===Xc(n))&&(r=!0))}return r}function Q_(e,t,n=!1){const r=t.propsCache,o=r.get(e);if(o)return o;const s=e.props,l={},a=[];let c=!1;if(!et(e)){const p=h=>{c=!0;const[v,y]=Q_(h,t,!0);$n(l,v),y&&a.push(...y)};!n&&t.mixins.length&&t.mixins.forEach(p),e.extends&&p(e.extends),e.mixins&&e.mixins.forEach(p)}if(!s&&!c)return qt(e)&&r.set(e,Ns),Ns;if(Je(s))for(let p=0;p<s.length;p++){const h=eo(s[p]);nb(h)&&(l[h]=Ut)}else if(s)for(const p in s){const h=eo(p);if(nb(h)){const v=s[p],y=l[h]=Je(v)||et(v)?{type:v}:Object.assign({},v);if(y){const _=ib(Boolean,y.type),w=ib(String,y.type);y[0]=_>-1,y[1]=w<0||_<w,(_>-1||_t(y,"default"))&&a.push(h)}}}const f=[l,a];return qt(e)&&r.set(e,f),f}function nb(e){return e[0]!=="$"}function rb(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function ob(e,t){return rb(e)===rb(t)}function ib(e,t){return Je(t)?t.findIndex(n=>ob(n,e)):et(t)&&ob(t,e)?0:-1}const ew=e=>e[0]==="_"||e==="$stable",pm=e=>Je(e)?e.map(fr):[fr(e)],bR=(e,t,n)=>{if(t._n)return t;const r=ye((...o)=>pm(t(...o)),n);return r._c=!1,r},tw=(e,t,n)=>{const r=e._ctx;for(const o in e){if(ew(o))continue;const s=e[o];if(et(s))t[o]=bR(o,s,r);else if(s!=null){const l=pm(s);t[o]=()=>l}}},nw=(e,t)=>{const n=pm(t);e.slots.default=()=>n},_R=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=Ue(t),mc(t,"_",n)):tw(t,e.slots={})}else e.slots={},t&&nw(e,t);mc(e.slots,ud,1)},wR=(e,t,n)=>{const{vnode:r,slots:o}=e;let s=!0,l=Ut;if(r.shapeFlag&32){const a=t._;a?n&&a===1?s=!1:($n(o,t),!n&&a===1&&delete o._):(s=!t.$stable,tw(t,o)),l=t}else t&&(nw(e,t),l={default:1});if(s)for(const a in o)!ew(a)&&!(a in l)&&delete o[a]};function rw(){return{app:null,config:{isNativeTag:FP,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 SR=0;function ER(e,t){return function(r,o=null){et(r)||(r=Object.assign({},r)),o!=null&&!qt(o)&&(o=null);const s=rw(),l=new Set;let a=!1;const c=s.app={_uid:SR++,_component:r,_props:o,_container:null,_context:s,_instance:null,version:$w,get config(){return s.config},set config(f){},use(f,...p){return l.has(f)||(f&&et(f.install)?(l.add(f),f.install(c,...p)):et(f)&&(l.add(f),f(c,...p))),c},mixin(f){return s.mixins.includes(f)||s.mixins.push(f),c},component(f,p){return p?(s.components[f]=p,c):s.components[f]},directive(f,p){return p?(s.directives[f]=p,c):s.directives[f]},mount(f,p,h){if(!a){const v=q(r,o);return v.appContext=s,p&&t?t(v,f):e(v,f,h),a=!0,c._container=f,f.__vue_app__=c,cd(v.component)||v.component.proxy}},unmount(){a&&(e(null,c._container),delete c._container.__vue_app__)},provide(f,p){return s.provides[f]=p,c}};return c}}function bc(e,t,n,r,o=!1){if(Je(e)){e.forEach((v,y)=>bc(v,t&&(Je(t)?t[y]:t),n,r,o));return}if(Ji(r)&&!o)return;const s=r.shapeFlag&4?cd(r.component)||r.component.proxy:r.el,l=o?null:s,{i:a,r:c}=e,f=t&&t.r,p=a.refs===Ut?a.refs={}:a.refs,h=a.setupState;if(f!=null&&f!==c&&(on(f)?(p[f]=null,_t(h,f)&&(h[f]=null)):dn(f)&&(f.value=null)),et(c))Uo(c,a,12,[l,p]);else{const v=on(c),y=dn(c);if(v||y){const _=()=>{if(e.f){const w=v?_t(h,c)?h[c]:p[c]:c.value;o?Je(w)&&Wh(w,s):Je(w)?w.includes(s)||w.push(s):v?(p[c]=[s],_t(h,c)&&(h[c]=p[c])):(c.value=[s],e.k&&(p[e.k]=c.value))}else v?(p[c]=l,_t(h,c)&&(h[c]=l)):y&&(c.value=l,e.k&&(p[e.k]=l))};l?(_.id=-1,Sn(_,n)):_()}}}let ii=!1;const ju=e=>/svg/.test(e.namespaceURI)&&e.tagName!=="foreignObject",Hu=e=>e.nodeType===8;function xR(e){const{mt:t,p:n,o:{patchProp:r,createText:o,nextSibling:s,parentNode:l,remove:a,insert:c,createComment:f}}=e,p=(O,S)=>{if(!S.hasChildNodes()){n(null,O,S),gc(),S._vnode=O;return}ii=!1,h(S.firstChild,O,null,null,null),gc(),S._vnode=O,ii&&console.error("Hydration completed but contains mismatches.")},h=(O,S,E,T,$,P=!1)=>{const k=Hu(O)&&O.data==="[",A=()=>w(O,S,E,T,$,k),{type:H,ref:D,shapeFlag:F,patchFlag:z}=S;let K=O.nodeType;S.el=O,z===-2&&(P=!1,S.dynamicChildren=null);let te=null;switch(H){case os:K!==3?S.children===""?(c(S.el=o(""),l(O),O),te=O):te=A():(O.data!==S.children&&(ii=!0,O.data=S.children),te=s(O));break;case Rn:K!==8||k?te=A():te=s(O);break;case Yi:if(k&&(O=s(O),K=O.nodeType),K===1||K===3){te=O;const we=!S.children.length;for(let be=0;be<S.staticCount;be++)we&&(S.children+=te.nodeType===1?te.outerHTML:te.data),be===S.staticCount-1&&(S.anchor=te),te=s(te);return k?s(te):te}else A();break;case Fe:k?te=_(O,S,E,T,$,P):te=A();break;default:if(F&1)K!==1||S.type.toLowerCase()!==O.tagName.toLowerCase()?te=A():te=v(O,S,E,T,$,P);else if(F&6){S.slotScopeIds=$;const we=l(O);if(t(S,we,null,E,T,ju(we),P),te=k?I(O):s(O),te&&Hu(te)&&te.data==="teleport end"&&(te=s(te)),Ji(S)){let be;k?(be=q(Fe),be.anchor=te?te.previousSibling:we.lastChild):be=O.nodeType===3? Xe(""):q("div"),be.el=O,S.component.subTree=be}}else F&64?K!==8?te=A():te=S.type.hydrate(O,S,E,T,$,P,e,y):F&128&&(te=S.type.hydrate(O,S,E,T,ju(l(O)),$,P,e,h))}return D!=null&&bc(D,null,T,S),te},v=(O,S,E,T,$,P)=>{P=P||!!S.dynamicChildren;const{type:k,props:A,patchFlag:H,shapeFlag:D,dirs:F}=S,z=k==="input"&&F||k==="option";if(z||H!==-1){if(F&&mo(S,null,E,"created"),A)if(z||!P||H&48)for(const te in A)(z&&te.endsWith("value")||Kc(te)&&!jl(te))&&r(O,te,null,A[te],!1,void 0,E);else A.onClick&&r(O,"onClick",null,A.onClick,!1,void 0,E);let K;if((K=A&&A.onVnodeBeforeMount)&&Xn(K,E,S),F&&mo(S,null,E,"beforeMount"),((K=A&&A.onVnodeMounted)||F)&&N_(()=>{K&&Xn(K,E,S),F&&mo(S,null,E,"mounted")},T),D&16&&!(A&&(A.innerHTML||A.textContent))){let te=y(O.firstChild,S,O,E,T,$,P);for(;te;){ii=!0;const we=te;te=te.nextSibling,a(we)}}else D&8&&O.textContent!==S.children&&(ii=!0,O.textContent=S.children)}return O.nextSibling},y=(O,S,E,T,$,P,k)=>{k=k||!!S.dynamicChildren;const A=S.children,H=A.length;for(let D=0;D<H;D++){const F=k?A[D]:A[D]=fr(A[D]);if(O)O=h(O,F,T,$,P,k);else{if(F.type===os&&!F.children)continue;ii=!0,n(null,F,E,null,T,$,ju(E),P)}}return O},_=(O,S,E,T,$,P)=>{const{slotScopeIds:k}=S;k&&($=$?$.concat(k):k);const A=l(O),H=y(s(O),S,A,E,T,$,P);return H&&Hu(H)&&H.data==="]"?s(S.anchor=H):(ii=!0,c(S.anchor=f("]"),A,H),H)},w=(O,S,E,T,$,P)=>{if(ii=!0,S.el=null,P){const H=I(O);for(;;){const D=s(O);if(D&&D!==H)a(D);else break}}const k=s(O),A=l(O);return a(O),n(null,S,A,k,E,T,ju(A),$),k},I=O=>{let S=0;for(;O;)if(O=s(O),O&&Hu(O)&&(O.data==="["&&S++,O.data==="]")){if(S===0)return s(O);S--}return O};return[p,h]}const Sn=N_;function ow(e){return sw(e)}function iw(e){return sw(e,xR)}function sw(e,t){const n=KP();n.__VUE__=!0;const{insert:r,remove:o,patchProp:s,createElement:l,createText:a,createComment:c,setText:f,setElementText:p,parentNode:h,nextSibling:v,setScopeId:y=Xr,insertStaticContent:_}=e,w=(L,B,Z,le=null,ie=null,pe=null,Ee=!1,he=null,me=!!B.dynamicChildren)=>{if(L===B)return;L&&!Kr(L,B)&&(le=He(L),Ke(L,ie,pe,!0),L=null),B.patchFlag===-2&&(me=!1,B.dynamicChildren=null);const{type:se,ref:Re,shapeFlag:Pe}=B;switch(se){case os:I(L,B,Z,le);break;case Rn:O(L,B,Z,le);break;case Yi:L==null&&S(B,Z,le,Ee);break;case Fe:z(L,B,Z,le,ie,pe,Ee,he,me);break;default:Pe&1?$(L,B,Z,le,ie,pe,Ee,he,me):Pe&6?K(L,B,Z,le,ie,pe,Ee,he,me):(Pe&64||Pe&128)&&se.process(L,B,Z,le,ie,pe,Ee,he,me,tt)}Re!=null&&ie&&bc(Re,L&&L.ref,pe,B||L,!B)},I=(L,B,Z,le)=>{if(L==null)r(B.el=a(B.children),Z,le);else{const ie=B.el=L.el;B.children!==L.children&&f(ie,B.children)}},O=(L,B,Z,le)=>{L==null?r(B.el=c(B.children||""),Z,le):B.el=L.el},S=(L,B,Z,le)=>{[L.el,L.anchor]=_(L.children,B,Z,le,L.el,L.anchor)},E=({el:L,anchor:B},Z,le)=>{let ie;for(;L&&L!==B;)ie=v(L),r(L,Z,le),L=ie;r(B,Z,le)},T=({el:L,anchor:B})=>{let Z;for(;L&&L!==B;)Z=v(L),o(L),L=Z;o(B)},$=(L,B,Z,le,ie,pe,Ee,he,me)=>{Ee=Ee||B.type==="svg",L==null?P(B,Z,le,ie,pe,Ee,he,me):H(L,B,ie,pe,Ee,he,me)},P=(L,B,Z,le,ie,pe,Ee,he)=>{let me,se;const{type:Re,props:Pe,shapeFlag:Me,transition:je,dirs:rt}=L;if(me=L.el=l(L.type,pe,Pe&&Pe.is,Pe),Me&8?p(me,L.children):Me&16&&A(L.children,me,null,le,ie,pe&&Re!=="foreignObject",Ee,he),rt&&mo(L,null,le,"created"),k(me,L,L.scopeId,Ee,le),Pe){for(const ct in Pe)ct!=="value"&&!jl(ct)&&s(me,ct,null,Pe[ct],pe,L.children,le,ie,Se);"value"in Pe&&s(me,"value",null,Pe.value),(se=Pe.onVnodeBeforeMount)&&Xn(se,le,L)}rt&&mo(L,null,le,"beforeMount");const mt=(!ie||ie&&!ie.pendingBranch)&&je&&!je.persisted;mt&&je.beforeEnter(me),r(me,B,Z),((se=Pe&&Pe.onVnodeMounted)||mt||rt)&&Sn(()=>{se&&Xn(se,le,L),mt&&je.enter(me),rt&&mo(L,null,le,"mounted")},ie)},k=(L,B,Z,le,ie)=>{if(Z&&y(L,Z),le)for(let pe=0;pe<le.length;pe++)y(L,le[pe]);if(ie){let pe=ie.subTree;if(B===pe){const Ee=ie.vnode;k(L,Ee,Ee.scopeId,Ee.slotScopeIds,ie.parent)}}},A=(L,B,Z,le,ie,pe,Ee,he,me=0)=>{for(let se=me;se<L.length;se++){const Re=L[se]=he?ui(L[se]):fr(L[se]);w(null,Re,B,Z,le,ie,pe,Ee,he)}},H=(L,B,Z,le,ie,pe,Ee)=>{const he=B.el=L.el;let{patchFlag:me,dynamicChildren:se,dirs:Re}=B;me|=L.patchFlag&16;const Pe=L.props||Ut,Me=B.props||Ut;let je;Z&&Mi(Z,!1),(je=Me.onVnodeBeforeUpdate)&&Xn(je,Z,B,L),Re&&mo(B,L,Z,"beforeUpdate"),Z&&Mi(Z,!0);const rt=ie&&B.type!=="foreignObject";if(se?D(L.dynamicChildren,se,he,Z,le,rt,pe):Ee||Ae(L,B,he,null,Z,le,rt,pe,!1),me>0){if(me&16)F(he,B,Pe,Me,Z,le,ie);else if(me&2&&Pe.class!==Me.class&&s(he,"class",null,Me.class,ie),me&4&&s(he,"style",Pe.style,Me.style,ie),me&8){const mt=B.dynamicProps;for(let ct=0;ct<mt.length;ct++){const Ht=mt[ct],Mn=Pe[Ht],uo=Me[Ht];(uo!==Mn||Ht==="value")&&s(he,Ht,Mn,uo,ie,L.children,Z,le,Se)}}me&1&&L.children!==B.children&&p(he,B.children)}else!Ee&&se==null&&F(he,B,Pe,Me,Z,le,ie);((je=Me.onVnodeUpdated)||Re)&&Sn(()=>{je&&Xn(je,Z,B,L),Re&&mo(B,L,Z,"updated")},le)},D=(L,B,Z,le,ie,pe,Ee)=>{for(let he=0;he<B.length;he++){const me=L[he],se=B[he],Re=me.el&&(me.type===Fe||!Kr(me,se)||me.shapeFlag&70)?h(me.el):Z;w(me,se,Re,null,le,ie,pe,Ee,!0)}},F=(L,B,Z,le,ie,pe,Ee)=>{if(Z!==le){if(Z!==Ut)for(const he in Z)!jl(he)&&!(he in le)&&s(L,he,Z[he],null,Ee,B.children,ie,pe,Se);for(const he in le){if(jl(he))continue;const me=le[he],se=Z[he];me!==se&&he!=="value"&&s(L,he,se,me,Ee,B.children,ie,pe,Se)}"value"in le&&s(L,"value",Z.value,le.value)}},z=(L,B,Z,le,ie,pe,Ee,he,me)=>{const se=B.el=L?L.el:a(""),Re=B.anchor=L?L.anchor:a("");let{patchFlag:Pe,dynamicChildren:Me,slotScopeIds:je}=B;je&&(he=he?he.concat(je):je),L==null?(r(se,Z,le),r(Re,Z,le),A(B.children,Z,Re,ie,pe,Ee,he,me)):Pe>0&&Pe&64&&Me&&L.dynamicChildren?(D(L.dynamicChildren,Me,Z,ie,pe,Ee,he),(B.key!=null||ie&&B===ie.subTree)&&hm(L,B,!0)):Ae(L,B,Z,Re,ie,pe,Ee,he,me)},K=(L,B,Z,le,ie,pe,Ee,he,me)=>{B.slotScopeIds=he,L==null?B.shapeFlag&512?ie.ctx.activate(B,Z,le,Ee,me):te(B,Z,le,ie,pe,Ee,me):we(L,B,me)},te=(L,B,Z,le,ie,pe,Ee)=>{const he=L.component=hw(L,le,ie);if(Ca(L)&&(he.ctx.renderer=tt),vw(he),he.asyncDep){if(ie&&ie.registerDep(he,be),!L.el){const me=he.subTree=q(Rn);O(null,me,B,Z)}return}be(he,L,B,Z,ie,pe,Ee)},we=(L,B,Z)=>{const le=B.component=L.component;if(qk(L,B,Z))if(le.asyncDep&&!le.asyncResolved){Oe(le,B,Z);return}else le.next=B,Dk(le.update),le.update();else B.el=L.el,le.vnode=B},be=(L,B,Z,le,ie,pe,Ee)=>{const he=()=>{if(L.isMounted){let{next:Re,bu:Pe,u:Me,parent:je,vnode:rt}=L,mt=Re,ct;Mi(L,!1),Re?(Re.el=rt.el,Oe(L,Re,Ee)):Re=rt,Pe&&Vl(Pe),(ct=Re.props&&Re.props.onVnodeBeforeUpdate)&&Xn(ct,je,Re,rt),Mi(L,!0);const Ht=tc(L),Mn=L.subTree;L.subTree=Ht,w(Mn,Ht,h(Mn.el),He(Mn),L,ie,pe),Re.el=Ht.el,mt===null&&sm(L,Ht.el),Me&&Sn(Me,ie),(ct=Re.props&&Re.props.onVnodeUpdated)&&Sn(()=>Xn(ct,je,Re,rt),ie)}else{let Re;const{el:Pe,props:Me}=B,{bm:je,m:rt,parent:mt}=L,ct=Ji(B);if(Mi(L,!1),je&&Vl(je),!ct&&(Re=Me&&Me.onVnodeBeforeMount)&&Xn(Re,mt,B),Mi(L,!0),Pe&&ln){const Ht=()=>{L.subTree=tc(L),ln(Pe,L.subTree,L,ie,null)};ct?B.type.__asyncLoader().then(()=>!L.isUnmounted&&Ht()):Ht()}else{const Ht=L.subTree=tc(L);w(null,Ht,Z,le,L,ie,pe),B.el=Ht.el}if(rt&&Sn(rt,ie),!ct&&(Re=Me&&Me.onVnodeMounted)){const Ht=B;Sn(()=>Xn(Re,mt,Ht),ie)}(B.shapeFlag&256||mt&&Ji(mt.vnode)&&mt.vnode.shapeFlag&256)&&L.a&&Sn(L.a,ie),L.isMounted=!0,B=Z=le=null}},me=L.effect=new xa(he,()=>rd(se),L.scope),se=L.update=()=>me.run();se.id=L.uid,Mi(L,!0),se()},Oe=(L,B,Z)=>{B.component=L;const le=L.vnode.props;L.vnode=B,L.next=null,yR(L,B.props,le,Z),wR(L,B.children,Z),sl(),Xy(),ll()},Ae=(L,B,Z,le,ie,pe,Ee,he,me=!1)=>{const se=L&&L.children,Re=L?L.shapeFlag:0,Pe=B.children,{patchFlag:Me,shapeFlag:je}=B;if(Me>0){if(Me&128){ft(se,Pe,Z,le,ie,pe,Ee,he,me);return}else if(Me&256){Ye(se,Pe,Z,le,ie,pe,Ee,he,me);return}}je&8?(Re&16&&Se(se,ie,pe),Pe!==se&&p(Z,Pe)):Re&16?je&16?ft(se,Pe,Z,le,ie,pe,Ee,he,me):Se(se,ie,pe,!0):(Re&8&&p(Z,""),je&16&&A(Pe,Z,le,ie,pe,Ee,he,me))},Ye=(L,B,Z,le,ie,pe,Ee,he,me)=>{L=L||Ns,B=B||Ns;const se=L.length,Re=B.length,Pe=Math.min(se,Re);let Me;for(Me=0;Me<Pe;Me++){const je=B[Me]=me?ui(B[Me]):fr(B[Me]);w(L[Me],je,Z,null,ie,pe,Ee,he,me)}se>Re?Se(L,ie,pe,!0,!1,Pe):A(B,Z,le,ie,pe,Ee,he,me,Pe)},ft=(L,B,Z,le,ie,pe,Ee,he,me)=>{let se=0;const Re=B.length;let Pe=L.length-1,Me=Re-1;for(;se<=Pe&&se<=Me;){const je=L[se],rt=B[se]=me?ui(B[se]):fr(B[se]);if(Kr(je,rt))w(je,rt,Z,null,ie,pe,Ee,he,me);else break;se++}for(;se<=Pe&&se<=Me;){const je=L[Pe],rt=B[Me]=me?ui(B[Me]):fr(B[Me]);if(Kr(je,rt))w(je,rt,Z,null,ie,pe,Ee,he,me);else break;Pe--,Me--}if(se>Pe){if(se<=Me){const je=Me+1,rt=je<Re?B[je].el:le;for(;se<=Me;)w(null,B[se]=me?ui(B[se]):fr(B[se]),Z,rt,ie,pe,Ee,he,me),se++}}else if(se>Me)for(;se<=Pe;)Ke(L[se],ie,pe,!0),se++;else{const je=se,rt=se,mt=new Map;for(se=rt;se<=Me;se++){const gn=B[se]=me?ui(B[se]):fr(B[se]);gn.key!=null&&mt.set(gn.key,se)}let ct,Ht=0;const Mn=Me-rt+1;let uo=!1,ms=0;const $o=new Array(Mn);for(se=0;se<Mn;se++)$o[se]=0;for(se=je;se<=Pe;se++){const gn=L[se];if(Ht>=Mn){Ke(gn,ie,pe,!0);continue}let Wn;if(gn.key!=null)Wn=mt.get(gn.key);else for(ct=rt;ct<=Me;ct++)if($o[ct-rt]===0&&Kr(gn,B[ct])){Wn=ct;break}Wn===void 0?Ke(gn,ie,pe,!0):($o[Wn-rt]=se+1,Wn>=ms?ms=Wn:uo=!0,w(gn,B[Wn],Z,null,ie,pe,Ee,he,me),Ht++)}const vs=uo?$R($o):Ns;for(ct=vs.length-1,se=Mn-1;se>=0;se--){const gn=rt+se,Wn=B[gn],gs=gn+1<Re?B[gn+1].el:le;$o[se]===0?w(null,Wn,Z,gs,ie,pe,Ee,he,me):uo&&(ct<0||se!==vs[ct]?Le(Wn,Z,gs,2):ct--)}}},Le=(L,B,Z,le,ie=null)=>{const{el:pe,type:Ee,transition:he,children:me,shapeFlag:se}=L;if(se&6){Le(L.component.subTree,B,Z,le);return}if(se&128){L.suspense.move(B,Z,le);return}if(se&64){Ee.move(L,B,Z,tt);return}if(Ee===Fe){r(pe,B,Z);for(let Pe=0;Pe<me.length;Pe++)Le(me[Pe],B,Z,le);r(L.anchor,B,Z);return}if(Ee===Yi){E(L,B,Z);return}if(le!==2&&se&1&&he)if(le===0)he.beforeEnter(pe),r(pe,B,Z),Sn(()=>he.enter(pe),ie);else{const{leave:Pe,delayLeave:Me,afterLeave:je}=he,rt=()=>r(pe,B,Z),mt=()=>{Pe(pe,()=>{rt(),je&&je()})};Me?Me(pe,rt,mt):mt()}else r(pe,B,Z)},Ke=(L,B,Z,le=!1,ie=!1)=>{const{type:pe,props:Ee,ref:he,children:me,dynamicChildren:se,shapeFlag:Re,patchFlag:Pe,dirs:Me}=L;if(he!=null&&bc(he,null,Z,L,!0),Re&256){B.ctx.deactivate(L);return}const je=Re&1&&Me,rt=!Ji(L);let mt;if(rt&&(mt=Ee&&Ee.onVnodeBeforeUnmount)&&Xn(mt,B,L),Re&6)fe(L.component,Z,le);else{if(Re&128){L.suspense.unmount(Z,le);return}je&&mo(L,null,B,"beforeUnmount"),Re&64?L.type.remove(L,B,Z,ie,tt,le):se&&(pe!==Fe||Pe>0&&Pe&64)?Se(se,B,Z,!1,!0):(pe===Fe&&Pe&384||!ie&&Re&16)&&Se(me,B,Z),le&&Q(L)}(rt&&(mt=Ee&&Ee.onVnodeUnmounted)||je)&&Sn(()=>{mt&&Xn(mt,B,L),je&&mo(L,null,B,"unmounted")},Z)},Q=L=>{const{type:B,el:Z,anchor:le,transition:ie}=L;if(B===Fe){ae(Z,le);return}if(B===Yi){T(L);return}const pe=()=>{o(Z),ie&&!ie.persisted&&ie.afterLeave&&ie.afterLeave()};if(L.shapeFlag&1&&ie&&!ie.persisted){const{leave:Ee,delayLeave:he}=ie,me=()=>Ee(Z,pe);he?he(L.el,pe,me):me()}else pe()},ae=(L,B)=>{let Z;for(;L!==B;)Z=v(L),o(L),L=Z;o(B)},fe=(L,B,Z)=>{const{bum:le,scope:ie,update:pe,subTree:Ee,um:he}=L;le&&Vl(le),ie.stop(),pe&&(pe.active=!1,Ke(Ee,L,B,Z)),he&&Sn(he,B),Sn(()=>{L.isUnmounted=!0},B),B&&B.pendingBranch&&!B.isUnmounted&&L.asyncDep&&!L.asyncResolved&&L.suspenseId===B.pendingId&&(B.deps--,B.deps===0&&B.resolve())},Se=(L,B,Z,le=!1,ie=!1,pe=0)=>{for(let Ee=pe;Ee<L.length;Ee++)Ke(L[Ee],B,Z,le,ie)},He=L=>L.shapeFlag&6?He(L.component.subTree):L.shapeFlag&128?L.suspense.next():v(L.anchor||L.el),De=(L,B,Z)=>{L==null?B._vnode&&Ke(B._vnode,null,null,!0):w(B._vnode||null,L,B,null,null,null,Z),Xy(),gc(),B._vnode=L},tt={p:w,um:Ke,m:Le,r:Q,mt:te,mc:A,pc:Ae,pbc:D,n:He,o:e};let vn,ln;return t&&([vn,ln]=t(tt)),{render:De,hydrate:vn,createApp:ER(De,vn)}}function Mi({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function hm(e,t,n=!1){const r=e.children,o=t.children;if(Je(r)&&Je(o))for(let s=0;s<r.length;s++){const l=r[s];let a=o[s];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=o[s]=ui(o[s]),a.el=l.el),n||hm(l,a)),a.type===os&&(a.el=l.el)}}function $R(e){const t=e.slice(),n=[0];let r,o,s,l,a;const c=e.length;for(r=0;r<c;r++){const f=e[r];if(f!==0){if(o=n[n.length-1],e[o]<f){t[r]=o,n.push(r);continue}for(s=0,l=n.length-1;s<l;)a=s+l>>1,e[n[a]]<f?s=a+1:l=a;f<e[n[s]]&&(s>0&&(t[r]=n[s-1]),n[s]=r)}}for(s=n.length,l=n[s-1];s-- >0;)n[s]=l,l=t[l];return n}const CR=e=>e.__isTeleport,zl=e=>e&&(e.disabled||e.disabled===""),sb=e=>typeof SVGElement!="undefined"&&e instanceof SVGElement,Yp=(e,t)=>{const n=e&&e.to;return on(n)?t?t(n):null:n},TR={__isTeleport:!0,process(e,t,n,r,o,s,l,a,c,f){const{mc:p,pc:h,pbc:v,o:{insert:y,querySelector:_,createText:w,createComment:I}}=f,O=zl(t.props);let{shapeFlag:S,children:E,dynamicChildren:T}=t;if(e==null){const $=t.el=w(""),P=t.anchor=w("");y($,n,r),y(P,n,r);const k=t.target=Yp(t.props,_),A=t.targetAnchor=w("");k&&(y(A,k),l=l||sb(k));const H=(D,F)=>{S&16&&p(E,D,F,o,s,l,a,c)};O?H(n,P):k&&H(k,A)}else{t.el=e.el;const $=t.anchor=e.anchor,P=t.target=e.target,k=t.targetAnchor=e.targetAnchor,A=zl(e.props),H=A?n:P,D=A?$:k;if(l=l||sb(P),T?(v(e.dynamicChildren,T,H,o,s,l,a),hm(e,t,!0)):c||h(e,t,H,D,o,s,l,a,!1),O)A||Vu(t,n,$,f,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const F=t.target=Yp(t.props,_);F&&Vu(t,F,null,f,0)}else A&&Vu(t,P,k,f,1)}aw(t)},remove(e,t,n,r,{um:o,o:{remove:s}},l){const{shapeFlag:a,children:c,anchor:f,targetAnchor:p,target:h,props:v}=e;if(h&&s(p),(l||!zl(v))&&(s(f),a&16))for(let y=0;y<c.length;y++){const _=c[y];o(_,t,n,!0,!!_.dynamicChildren)}},move:Vu,hydrate:OR};function Vu(e,t,n,{o:{insert:r},m:o},s=2){s===0&&r(e.targetAnchor,t,n);const{el:l,anchor:a,shapeFlag:c,children:f,props:p}=e,h=s===2;if(h&&r(l,t,n),(!h||zl(p))&&c&16)for(let v=0;v<f.length;v++)o(f[v],t,n,2);h&&r(a,t,n)}function OR(e,t,n,r,o,s,{o:{nextSibling:l,parentNode:a,querySelector:c}},f){const p=t.target=Yp(t.props,c);if(p){const h=p._lpa||p.firstChild;if(t.shapeFlag&16)if(zl(t.props))t.anchor=f(l(e),t,a(e),n,r,o,s),t.targetAnchor=h;else{t.anchor=l(e);let v=h;for(;v;)if(v=l(v),v&&v.nodeType===8&&v.data==="teleport anchor"){t.targetAnchor=v,p._lpa=t.targetAnchor&&l(t.targetAnchor);break}f(h,t,p,n,r,o,s)}aw(t)}return t.anchor&&l(t.anchor)}const lw=TR;function aw(e){const t=e.ctx;if(t&&t.ut){let n=e.children[0].el;for(;n!==e.targetAnchor;)n.nodeType===1&&n.setAttribute("data-v-owner",t.uid),n=n.nextSibling;t.ut()}}const Fe=Symbol(void 0),os=Symbol(void 0),Rn=Symbol(void 0),Yi=Symbol(void 0),ql=[];let Jn=null;function N(e=!1){ql.push(Jn=e?null:[])}function uw(){ql.pop(),Jn=ql[ql.length-1]||null}let is=1;function Zp(e){is+=e}function cw(e){return e.dynamicChildren=is>0?Jn||Ns:null,uw(),is>0&&Jn&&Jn.push(e),e}function V(e,t,n,r,o,s){return cw(g(e,t,n,r,o,s,!0))}function bt(e,t,n,r,o){return cw(q(e,t,n,r,o,!0))}function gi(e){return e?e.__v_isVNode===!0:!1}function Kr(e,t){return e.type===t.type&&e.key===t.key}function AR(e){}const ud="__vInternal",dw=({key:e})=>e!=null?e:null,nc=({ref:e,ref_key:t,ref_for:n})=>e!=null?on(e)||dn(e)||et(e)?{i:xn,r:e,k:t,f:!!n}:e:null;function g(e,t=null,n=null,r=0,o=null,s=e===Fe?0:1,l=!1,a=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&dw(t),ref:t&&nc(t),scopeId:id,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:xn};return a?(mm(c,n),s&128&&e.normalize(c)):n&&(c.shapeFlag|=on(n)?8:16),is>0&&!l&&Jn&&(c.patchFlag>0||s&6)&&c.patchFlag!==32&&Jn.push(c),c}const q=IR;function IR(e,t=null,n=null,r=0,o=null,s=!1){if((!e||e===X_)&&(e=Rn),gi(e)){const a=Dr(e,t,!0);return n&&mm(a,n),is>0&&!s&&Jn&&(a.shapeFlag&6?Jn[Jn.indexOf(e)]=a:Jn.push(a)),a.patchFlag|=-2,a}if(DR(e)&&(e=e.__vccOpts),t){t=fw(t);let{class:a,style:c}=t;a&&!on(a)&&(t.class=wt(a)),qt(c)&&(Zh(c)&&!Je(c)&&(c=$n({},c)),t.style=as(c))}const l=on(e)?1:L_(e)?128:CR(e)?64:qt(e)?4:et(e)?2:0;return g(e,t,n,r,o,l,s,!0)}function fw(e){return e?Zh(e)||ud in e?$n({},e):e:null}function Dr(e,t,n=!1){const{props:r,ref:o,patchFlag:s,children:l}=e,a=t?pw(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&dw(a),ref:t&&t.ref?n&&o?Je(o)?o.concat(nc(t)):[o,nc(t)]:nc(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Fe?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Dr(e.ssContent),ssFallback:e.ssFallback&&Dr(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Xe(e=" ",t=0){return q(os,null,e,t)}function PR(e,t){const n=q(Yi,null,e);return n.staticCount=t,n}function qe(e="",t=!1){return t?(N(),bt(Rn,null,e)):q(Rn,null,e)}function fr(e){return e==null||typeof e=="boolean"?q(Rn):Je(e)?q(Fe,null,e.slice()):typeof e=="object"?ui(e):q(os,null,String(e))}function ui(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Dr(e)}function mm(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(Je(t))n=16;else if(typeof t=="object")if(r&65){const o=t.default;o&&(o._c&&(o._d=!1),mm(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!(ud in t)?t._ctx=xn:o===3&&xn&&(xn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else et(t)?(t={default:t,_ctx:xn},n=32):(t=String(t),r&64?(n=16,t=[Xe(t)]):n=8);e.children=t,e.shapeFlag|=n}function pw(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const o in r)if(o==="class")t.class!==r.class&&(t.class=wt([t.class,r.class]));else if(o==="style")t.style=as([t.style,r.style]);else if(Kc(o)){const s=t[o],l=r[o];l&&s!==l&&!(Je(s)&&s.includes(l))&&(t[o]=s?[].concat(s,l):l)}else o!==""&&(t[o]=r[o])}return t}function Xn(e,t,n,r=null){mr(e,t,7,[n,r])}const kR=rw();let RR=0;function hw(e,t,n){const r=e.type,o=(t?t.appContext:e.appContext)||kR,s={uid:RR++,vnode:e,type:r,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,scope:new Gh(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Q_(r,o),emitsOptions:R_(r,o),emit:null,emitted:null,propsDefaults:Ut,inheritAttrs:r.inheritAttrs,ctx:Ut,data:Ut,props:Ut,attrs:Ut,slots:Ut,refs:Ut,setupState:Ut,setupContext:null,suspense:n,suspenseId:n?n.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 s.ctx={_:s},s.root=t?t.root:s,s.emit=Bk.bind(null,s),e.ce&&e.ce(s),s}let Xt=null;const Ko=()=>Xt||xn,yi=e=>{Xt=e,e.scope.on()},hi=()=>{Xt&&Xt.scope.off(),Xt=null};function mw(e){return e.vnode.shapeFlag&4}let Ws=!1;function vw(e,t=!1){Ws=t;const{props:n,children:r}=e.vnode,o=mw(e);gR(e,n,o,t),_R(e,r);const s=o?LR(e,t):void 0;return Ws=!1,s}function LR(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Qh(new Proxy(e.ctx,Kp));const{setup:r}=n;if(r){const o=e.setupContext=r.length>1?bw(e):null;yi(e),sl();const s=Uo(r,e,0,[e.props,o]);if(ll(),hi(),qh(s)){if(s.then(hi,hi),t)return s.then(l=>{Qp(e,l,t)}).catch(l=>{us(l,e,0)});e.asyncDep=s}else Qp(e,s,t)}else yw(e,t)}function Qp(e,t,n){et(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:qt(t)&&(e.setupState=nm(t)),yw(e,n)}let _c,eh;function gw(e){_c=e,eh=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,dR))}}const NR=()=>!_c;function yw(e,t,n){const r=e.type;if(!e.render){if(!t&&_c&&!r.render){const o=r.template||fm(e).template;if(o){const{isCustomElement:s,compilerOptions:l}=e.appContext.config,{delimiters:a,compilerOptions:c}=r,f=$n($n({isCustomElement:s,delimiters:a},l),c);r.render=_c(o,f)}}e.render=r.render||Xr,eh&&eh(e)}yi(e),sl(),fR(e),ll(),hi()}function MR(e){return new Proxy(e.attrs,{get(t,n){return tr(e,"get","$attrs"),t[n]}})}function bw(e){const t=r=>{e.exposed=r||{}};let n;return{get attrs(){return n||(n=MR(e))},slots:e.slots,emit:e.emit,expose:t}}function cd(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(nm(Qh(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Wl)return Wl[n](e)},has(t,n){return n in t||n in Wl}}))}function th(e,t=!0){return et(e)?e.displayName||e.name:e.name||t&&e.__name}function DR(e){return et(e)&&"__vccOpts"in e}const ce=(e,t)=>kk(e,t,Ws);function FR(){return null}function BR(){return null}function UR(e){}function jR(e,t){return null}function _w(){return ww().slots}function HR(){return ww().attrs}function ww(){const e=Ko();return e.setupContext||(e.setupContext=bw(e))}function VR(e,t){const n=Je(e)?e.reduce((r,o)=>(r[o]={},r),{}):e;for(const r in t){const o=n[r];o?Je(o)||et(o)?n[r]={type:o,default:t[r]}:o.default=t[r]:o===null&&(n[r]={default:t[r]})}return n}function WR(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function zR(e){const t=Ko();let n=e();return hi(),qh(n)&&(n=n.catch(r=>{throw yi(t),r})),[n,()=>yi(t)]}function dt(e,t,n){const r=arguments.length;return r===2?qt(t)&&!Je(t)?gi(t)?q(e,null,[t]):q(e,t):q(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&gi(n)&&(n=[n]),q(e,t,n))}const Sw=Symbol(""),Ew=()=>kt(Sw);function qR(){}function KR(e,t,n,r){const o=n[r];if(o&&xw(o,e))return o;const s=t();return s.memo=e.slice(),n[r]=s}function xw(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let r=0;r<n.length;r++)if(Hs(n[r],t[r]))return!1;return is>0&&Jn&&Jn.push(e),!0}const $w="3.2.47",GR={createComponentInstance:hw,setupComponent:vw,renderComponentRoot:tc,setCurrentRenderingInstance:sa,isVNode:gi,normalizeVNode:fr},XR=GR,JR=null,YR=null;function ZR(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o<r.length;o++)n[r[o]]=!0;return t?o=>!!n[o.toLowerCase()]:o=>!!n[o]}const QR="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",e4=ZR(QR);function Cw(e){return!!e||e===""}function t4(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=bi(e[r],t[r]);return n}function bi(e,t){if(e===t)return!0;let n=lb(e),r=lb(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=ab(e),r=ab(t),n||r)return e===t;if(n=nr(e),r=nr(t),n||r)return n&&r?t4(e,t):!1;if(n=nh(e),r=nh(t),n||r){if(!n||!r)return!1;const o=Object.keys(e).length,s=Object.keys(t).length;if(o!==s)return!1;for(const l in e){const a=e.hasOwnProperty(l),c=t.hasOwnProperty(l);if(a&&!c||!a&&c||!bi(e[l],t[l]))return!1}}return String(e)===String(t)}function dd(e,t){return e.findIndex(n=>bi(n,t))}const hp={},n4=/^on[^a-z]/,r4=e=>n4.test(e),o4=e=>e.startsWith("onUpdate:"),Ta=Object.assign,nr=Array.isArray,Oa=e=>Ow(e)==="[object Set]",lb=e=>Ow(e)==="[object Date]",Tw=e=>typeof e=="function",aa=e=>typeof e=="string",ab=e=>typeof e=="symbol",nh=e=>e!==null&&typeof e=="object",i4=Object.prototype.toString,Ow=e=>i4.call(e),vm=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},s4=/-(\w)/g,mp=vm(e=>e.replace(s4,(t,n)=>n?n.toUpperCase():"")),l4=/\B([A-Z])/g,ci=vm(e=>e.replace(l4,"-$1").toLowerCase()),a4=vm(e=>e.charAt(0).toUpperCase()+e.slice(1)),u4=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},rh=e=>{const t=parseFloat(e);return isNaN(t)?e:t},oh=e=>{const t=aa(e)?Number(e):NaN;return isNaN(t)?e:t},c4="http://www.w3.org/2000/svg",Vi=typeof document!="undefined"?document:null,ub=Vi&&Vi.createElement("template"),d4={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t?Vi.createElementNS(c4,e):Vi.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>Vi.createTextNode(e),createComment:e=>Vi.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Vi.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,s){const l=n?n.previousSibling:t.lastChild;if(o&&(o===s||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===s||!(o=o.nextSibling)););else{ub.innerHTML=r?`<svg>${e}</svg>`:e;const a=ub.content;if(r){const c=a.firstChild;for(;c.firstChild;)a.appendChild(c.firstChild);a.removeChild(c)}t.insertBefore(a,n)}return[l?l.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function f4(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function p4(e,t,n){const r=e.style,o=aa(n);if(n&&!o){if(t&&!aa(t))for(const s in t)n[s]==null&&ih(r,s,"");for(const s in n)ih(r,s,n[s])}else{const s=r.display;o?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=s)}}const cb=/\s*!important$/;function ih(e,t,n){if(nr(n))n.forEach(r=>ih(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=h4(e,t);cb.test(n)?e.setProperty(ci(r),n.replace(cb,""),"important"):e[r]=n}}const db=["Webkit","Moz","ms"],vp={};function h4(e,t){const n=vp[t];if(n)return n;let r=eo(t);if(r!=="filter"&&r in e)return vp[t]=r;r=a4(r);for(let o=0;o<db.length;o++){const s=db[o]+r;if(s in e)return vp[t]=s}return t}const fb="http://www.w3.org/1999/xlink";function m4(e,t,n,r,o){if(r&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(fb,t.slice(6,t.length)):e.setAttributeNS(fb,t,n);else{const s=e4(t);n==null||s&&!Cw(n)?e.removeAttribute(t):e.setAttribute(t,s?"":n)}}function v4(e,t,n,r,o,s,l){if(t==="innerHTML"||t==="textContent"){r&&l(r,o,s),e[t]=n==null?"":n;return}if(t==="value"&&e.tagName!=="PROGRESS"&&!e.tagName.includes("-")){e._value=n;const c=n==null?"":n;(e.value!==c||e.tagName==="OPTION")&&(e.value=c),n==null&&e.removeAttribute(t);return}let a=!1;if(n===""||n==null){const c=typeof e[t];c==="boolean"?n=Cw(n):n==null&&c==="string"?(n="",a=!0):c==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(t)}function Do(e,t,n,r){e.addEventListener(t,n,r)}function g4(e,t,n,r){e.removeEventListener(t,n,r)}function y4(e,t,n,r,o=null){const s=e._vei||(e._vei={}),l=s[t];if(r&&l)l.value=r;else{const[a,c]=b4(t);if(r){const f=s[t]=S4(r,o);Do(e,a,f,c)}else l&&(g4(e,a,l,c),s[t]=void 0)}}const pb=/(?:Once|Passive|Capture)$/;function b4(e){let t;if(pb.test(e)){t={};let r;for(;r=e.match(pb);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):ci(e.slice(2)),t]}let gp=0;const _4=Promise.resolve(),w4=()=>gp||(_4.then(()=>gp=0),gp=Date.now());function S4(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;mr(E4(r,n.value),t,5,[r])};return n.value=e,n.attached=w4(),n}function E4(e,t){if(nr(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>o=>!o._stopped&&r&&r(o))}else return t}const hb=/^on[a-z]/,x4=(e,t,n,r,o=!1,s,l,a,c)=>{t==="class"?f4(e,r,o):t==="style"?p4(e,n,r):r4(t)?o4(t)||y4(e,t,n,r,l):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):$4(e,t,r,o))?v4(e,t,r,s,l,a,c):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),m4(e,t,r,o))};function $4(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&hb.test(t)&&Tw(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||hb.test(t)&&aa(n)?!1:t in e}function Aw(e,t){const n=ve(e);class r extends fd{constructor(s){super(n,s,t)}}return r.def=n,r}const C4=e=>Aw(e,qw),T4=typeof HTMLElement!="undefined"?HTMLElement:class{};class fd extends T4{constructor(t,n={},r){super(),this._def=t,this._props=n,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&r?r(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,rn(()=>{this._connected||(ah(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let r=0;r<this.attributes.length;r++)this._setAttr(this.attributes[r].name);new MutationObserver(r=>{for(const o of r)this._setAttr(o.attributeName)}).observe(this,{attributes:!0});const t=(r,o=!1)=>{const{props:s,styles:l}=r;let a;if(s&&!nr(s))for(const c in s){const f=s[c];(f===Number||f&&f.type===Number)&&(c in this._props&&(this._props[c]=oh(this._props[c])),(a||(a=Object.create(null)))[mp(c)]=!0)}this._numberProps=a,o&&this._resolveProps(r),this._applyStyles(l),this._update()},n=this._def.__asyncLoader;n?n().then(r=>t(r,!0)):t(this._def)}_resolveProps(t){const{props:n}=t,r=nr(n)?n:Object.keys(n||{});for(const o of Object.keys(this))o[0]!=="_"&&r.includes(o)&&this._setProp(o,this[o],!0,!1);for(const o of r.map(mp))Object.defineProperty(this,o,{get(){return this._getProp(o)},set(s){this._setProp(o,s)}})}_setAttr(t){let n=this.getAttribute(t);const r=mp(t);this._numberProps&&this._numberProps[r]&&(n=oh(n)),this._setProp(r,n,!1)}_getProp(t){return this._props[t]}_setProp(t,n,r=!0,o=!0){n!==this._props[t]&&(this._props[t]=n,o&&this._instance&&this._update(),r&&(n===!0?this.setAttribute(ci(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(ci(t),n+""):n||this.removeAttribute(ci(t))))}_update(){ah(this._createVNode(),this.shadowRoot)}_createVNode(){const t=q(this._def,Ta({},this._props));return this._instance||(t.ce=n=>{this._instance=n,n.isCE=!0;const r=(s,l)=>{this.dispatchEvent(new CustomEvent(s,{detail:l}))};n.emit=(s,...l)=>{r(s,l),ci(s)!==s&&r(ci(s),l)};let o=this;for(;o=o&&(o.parentNode||o.host);)if(o instanceof fd){n.parent=o._instance,n.provides=o._instance.provides;break}}),t}_applyStyles(t){t&&t.forEach(n=>{const r=document.createElement("style");r.textContent=n,this.shadowRoot.appendChild(r)})}}function O4(e="$style"){{const t=Ko();if(!t)return hp;const n=t.type.__cssModules;if(!n)return hp;const r=n[e];return r||hp}}function Iw(e){const t=Ko();if(!t)return;const n=t.ut=(o=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(s=>lh(s,o))},r=()=>{const o=e(t.proxy);sh(t.subTree,o),n(o)};M_(r),gt(()=>{const o=new MutationObserver(r);o.observe(t.subTree.el.parentNode,{childList:!0}),Zt(()=>o.disconnect())})}function sh(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{sh(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)lh(e.el,t);else if(e.type===Fe)e.children.forEach(n=>sh(n,t));else if(e.type===Yi){let{el:n,anchor:r}=e;for(;n&&(lh(n,t),n!==r);)n=n.nextSibling}}function lh(e,t){if(e.nodeType===1){const n=e.style;for(const r in t)n.setProperty(`--${r}`,t[r])}}const si="transition",Cl="animation",Ei=(e,{slots:t})=>dt(um,kw(e),t);Ei.displayName="Transition";const Pw={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},A4=Ei.props=Ta({},um.props,Pw),Di=(e,t=[])=>{nr(e)?e.forEach(n=>n(...t)):e&&e(...t)},mb=e=>e?nr(e)?e.some(t=>t.length>1):e.length>1:!1;function kw(e){const t={};for(const z in e)z in Pw||(t[z]=e[z]);if(e.css===!1)return t;const{name:n="v",type:r,duration:o,enterFromClass:s=`${n}-enter-from`,enterActiveClass:l=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:c=s,appearActiveClass:f=l,appearToClass:p=a,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:v=`${n}-leave-active`,leaveToClass:y=`${n}-leave-to`}=e,_=I4(o),w=_&&_[0],I=_&&_[1],{onBeforeEnter:O,onEnter:S,onEnterCancelled:E,onLeave:T,onLeaveCancelled:$,onBeforeAppear:P=O,onAppear:k=S,onAppearCancelled:A=E}=t,H=(z,K,te)=>{ai(z,K?p:a),ai(z,K?f:l),te&&te()},D=(z,K)=>{z._isLeaving=!1,ai(z,h),ai(z,y),ai(z,v),K&&K()},F=z=>(K,te)=>{const we=z?k:S,be=()=>H(K,z,te);Di(we,[K,be]),vb(()=>{ai(K,z?c:s),No(K,z?p:a),mb(we)||gb(K,r,w,be)})};return Ta(t,{onBeforeEnter(z){Di(O,[z]),No(z,s),No(z,l)},onBeforeAppear(z){Di(P,[z]),No(z,c),No(z,f)},onEnter:F(!1),onAppear:F(!0),onLeave(z,K){z._isLeaving=!0;const te=()=>D(z,K);No(z,h),Lw(),No(z,v),vb(()=>{!z._isLeaving||(ai(z,h),No(z,y),mb(T)||gb(z,r,I,te))}),Di(T,[z,te])},onEnterCancelled(z){H(z,!1),Di(E,[z])},onAppearCancelled(z){H(z,!0),Di(A,[z])},onLeaveCancelled(z){D(z),Di($,[z])}})}function I4(e){if(e==null)return null;if(nh(e))return[yp(e.enter),yp(e.leave)];{const t=yp(e);return[t,t]}}function yp(e){return oh(e)}function No(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function ai(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function vb(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let P4=0;function gb(e,t,n,r){const o=e._endId=++P4,s=()=>{o===e._endId&&r()};if(n)return setTimeout(s,n);const{type:l,timeout:a,propCount:c}=Rw(e,t);if(!l)return r();const f=l+"end";let p=0;const h=()=>{e.removeEventListener(f,v),s()},v=y=>{y.target===e&&++p>=c&&h()};setTimeout(()=>{p<c&&h()},a+1),e.addEventListener(f,v)}function Rw(e,t){const n=window.getComputedStyle(e),r=_=>(n[_]||"").split(", "),o=r(`${si}Delay`),s=r(`${si}Duration`),l=yb(o,s),a=r(`${Cl}Delay`),c=r(`${Cl}Duration`),f=yb(a,c);let p=null,h=0,v=0;t===si?l>0&&(p=si,h=l,v=s.length):t===Cl?f>0&&(p=Cl,h=f,v=c.length):(h=Math.max(l,f),p=h>0?l>f?si:Cl:null,v=p?p===si?s.length:c.length:0);const y=p===si&&/\b(transform|all)(,|$)/.test(r(`${si}Property`).toString());return{type:p,timeout:h,propCount:v,hasTransform:y}}function yb(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>bb(n)+bb(e[r])))}function bb(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function Lw(){return document.body.offsetHeight}const Nw=new WeakMap,Mw=new WeakMap,Dw={name:"TransitionGroup",props:Ta({},A4,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Ko(),r=am();let o,s;return ad(()=>{if(!o.length)return;const l=e.moveClass||`${e.name||"v"}-move`;if(!D4(o[0].el,n.vnode.el,l))return;o.forEach(L4),o.forEach(N4);const a=o.filter(M4);Lw(),a.forEach(c=>{const f=c.el,p=f.style;No(f,l),p.transform=p.webkitTransform=p.transitionDuration="";const h=f._moveCb=v=>{v&&v.target!==f||(!v||/transform$/.test(v.propertyName))&&(f.removeEventListener("transitionend",h),f._moveCb=null,ai(f,l))};f.addEventListener("transitionend",h)})}),()=>{const l=Ue(e),a=kw(l);let c=l.tag||Fe;o=s,s=t.default?sd(t.default()):[];for(let f=0;f<s.length;f++){const p=s[f];p.key!=null&&rs(p,Vs(p,a,r,n))}if(o)for(let f=0;f<o.length;f++){const p=o[f];rs(p,Vs(p,a,r,n)),Nw.set(p,p.el.getBoundingClientRect())}return q(c,null,s)}}},k4=e=>delete e.mode;Dw.props;const R4=Dw;function L4(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function N4(e){Mw.set(e,e.el.getBoundingClientRect())}function M4(e){const t=Nw.get(e),n=Mw.get(e),r=t.left-n.left,o=t.top-n.top;if(r||o){const s=e.el.style;return s.transform=s.webkitTransform=`translate(${r}px,${o}px)`,s.transitionDuration="0s",e}}function D4(e,t,n){const r=e.cloneNode();e._vtc&&e._vtc.forEach(l=>{l.split(/\s+/).forEach(a=>a&&r.classList.remove(a))}),n.split(/\s+/).forEach(l=>l&&r.classList.add(l)),r.style.display="none";const o=t.nodeType===1?t:t.parentNode;o.appendChild(r);const{hasTransform:s}=Rw(r);return o.removeChild(r),s}const _i=e=>{const t=e.props["onUpdate:modelValue"]||!1;return nr(t)?n=>u4(t,n):t};function F4(e){e.target.composing=!0}function _b(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const wc={created(e,{modifiers:{lazy:t,trim:n,number:r}},o){e._assign=_i(o);const s=r||o.props&&o.props.type==="number";Do(e,t?"change":"input",l=>{if(l.target.composing)return;let a=e.value;n&&(a=a.trim()),s&&(a=rh(a)),e._assign(a)}),n&&Do(e,"change",()=>{e.value=e.value.trim()}),t||(Do(e,"compositionstart",F4),Do(e,"compositionend",_b),Do(e,"change",_b))},mounted(e,{value:t}){e.value=t==null?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:o}},s){if(e._assign=_i(s),e.composing||document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===t||(o||e.type==="number")&&rh(e.value)===t))return;const l=t==null?"":t;e.value!==l&&(e.value=l)}},gm={deep:!0,created(e,t,n){e._assign=_i(n),Do(e,"change",()=>{const r=e._modelValue,o=zs(e),s=e.checked,l=e._assign;if(nr(r)){const a=dd(r,o),c=a!==-1;if(s&&!c)l(r.concat(o));else if(!s&&c){const f=[...r];f.splice(a,1),l(f)}}else if(Oa(r)){const a=new Set(r);s?a.add(o):a.delete(o),l(a)}else l(Bw(e,s))})},mounted:wb,beforeUpdate(e,t,n){e._assign=_i(n),wb(e,t,n)}};function wb(e,{value:t,oldValue:n},r){e._modelValue=t,nr(t)?e.checked=dd(t,r.props.value)>-1:Oa(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=bi(t,Bw(e,!0)))}const ym={created(e,{value:t},n){e.checked=bi(t,n.props.value),e._assign=_i(n),Do(e,"change",()=>{e._assign(zs(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e._assign=_i(r),t!==n&&(e.checked=bi(t,r.props.value))}},Fw={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const o=Oa(t);Do(e,"change",()=>{const s=Array.prototype.filter.call(e.options,l=>l.selected).map(l=>n?rh(zs(l)):zs(l));e._assign(e.multiple?o?new Set(s):s:s[0])}),e._assign=_i(r)},mounted(e,{value:t}){Sb(e,t)},beforeUpdate(e,t,n){e._assign=_i(n)},updated(e,{value:t}){Sb(e,t)}};function Sb(e,t){const n=e.multiple;if(!(n&&!nr(t)&&!Oa(t))){for(let r=0,o=e.options.length;r<o;r++){const s=e.options[r],l=zs(s);if(n)nr(t)?s.selected=dd(t,l)>-1:s.selected=t.has(l);else if(bi(zs(s),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function zs(e){return"_value"in e?e._value:e.value}function Bw(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Uw={created(e,t,n){Wu(e,t,n,null,"created")},mounted(e,t,n){Wu(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){Wu(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){Wu(e,t,n,r,"updated")}};function jw(e,t){switch(e){case"SELECT":return Fw;case"TEXTAREA":return wc;default:switch(t){case"checkbox":return gm;case"radio":return ym;default:return wc}}}function Wu(e,t,n,r,o){const l=jw(e.tagName,n.props&&n.props.type)[o];l&&l(e,t,n,r)}function B4(){wc.getSSRProps=({value:e})=>({value:e}),ym.getSSRProps=({value:e},t)=>{if(t.props&&bi(t.props.value,e))return{checked:!0}},gm.getSSRProps=({value:e},t)=>{if(nr(e)){if(t.props&&dd(e,t.props.value)>-1)return{checked:!0}}else if(Oa(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},Uw.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const n=jw(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}const U4=["ctrl","shift","alt","meta"],j4={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&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>U4.some(n=>e[`${n}Key`]&&!t.includes(n))},Sc=(e,t)=>(n,...r)=>{for(let o=0;o<t.length;o++){const s=j4[t[o]];if(s&&s(n,t))return}return e(n,...r)},H4={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Hw=(e,t)=>n=>{if(!("key"in n))return;const r=ci(n.key);if(t.some(o=>o===r||H4[o]===r))return e(n)},bm={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Tl(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Tl(e,!0),r.enter(e)):r.leave(e,()=>{Tl(e,!1)}):Tl(e,t))},beforeUnmount(e,{value:t}){Tl(e,t)}};function Tl(e,t){e.style.display=t?e._vod:"none"}function V4(){bm.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const Vw=Ta({patchProp:x4},d4);let Kl,Eb=!1;function Ww(){return Kl||(Kl=ow(Vw))}function zw(){return Kl=Eb?Kl:iw(Vw),Eb=!0,Kl}const ah=(...e)=>{Ww().render(...e)},qw=(...e)=>{zw().hydrate(...e)},Kw=(...e)=>{const t=Ww().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=Gw(r);if(!o)return;const s=t._component;!Tw(s)&&!s.render&&!s.template&&(s.template=o.innerHTML),o.innerHTML="";const l=n(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),l},t},W4=(...e)=>{const t=zw().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=Gw(r);if(o)return n(o,!0,o instanceof SVGElement)},t};function Gw(e){return aa(e)?document.querySelector(e):e}let xb=!1;const z4=()=>{xb||(xb=!0,B4(),V4())};var q4=Object.freeze(Object.defineProperty({__proto__:null,Transition:Ei,TransitionGroup:R4,VueElement:fd,createApp:Kw,createSSRApp:W4,defineCustomElement:Aw,defineSSRCustomElement:C4,hydrate:qw,initDirectivesForSSR:z4,render:ah,useCssModule:O4,useCssVars:Iw,vModelCheckbox:gm,vModelDynamic:Uw,vModelRadio:ym,vModelSelect:Fw,vModelText:wc,vShow:bm,withKeys:Hw,withModifiers:Sc,EffectScope:Gh,ReactiveEffect:xa,customRef:Ak,effect:YP,effectScope:GP,getCurrentScope:d_,isProxy:Zh,isReactive:Xi,isReadonly:ns,isRef:dn,isShallow:na,markRaw:Qh,onScopeDispose:f_,proxyRefs:nm,reactive:Si,readonly:Yh,ref:_e,shallowReactive:$_,shallowReadonly:$k,shallowRef:nd,stop:ZP,toRaw:Ue,toRef:T_,toRefs:rm,triggerRef:Wp,unref:jn,camelize:eo,capitalize:Jc,normalizeClass:wt,normalizeProps:DP,normalizeStyle:as,toDisplayString:U,toHandlerKey:Hl,BaseTransition:um,Comment:Rn,Fragment:Fe,KeepAlive:oR,Static:Yi,Suspense:Gk,Teleport:lw,Text:os,assertNumber:Lk,callWithAsyncErrorHandling:mr,callWithErrorHandling:Uo,cloneVNode:Dr,compatUtils:YR,computed:ce,createBlock:bt,createCommentVNode:qe,createElementBlock:V,createElementVNode:g,createHydrationRenderer:iw,createPropsRestProxy:WR,createRenderer:ow,createSlots:uR,createStaticVNode:PR,createTextVNode:Xe,createVNode:q,defineAsyncComponent:nR,defineComponent:ve,defineEmits:BR,defineExpose:UR,defineProps:FR,get devtools(){return Rs},getCurrentInstance:Ko,getTransitionRawChildren:sd,guardReactiveProps:fw,h:dt,handleError:us,initCustomFormatter:qR,inject:kt,isMemoSame:xw,isRuntimeOnly:NR,isVNode:gi,mergeDefaults:VR,mergeProps:pw,nextTick:rn,onActivated:B_,onBeforeMount:H_,onBeforeUnmount:cs,onBeforeUpdate:V_,onDeactivated:U_,onErrorCaptured:K_,onMounted:gt,onRenderTracked:q_,onRenderTriggered:z_,onServerPrefetch:W_,onUnmounted:Zt,onUpdated:ad,openBlock:N,popScopeId:jk,provide:Yt,pushScopeId:Uk,queuePostFlushCb:im,registerRuntimeCompiler:gw,renderList:Mt,renderSlot:gr,resolveComponent:X,resolveDirective:aR,resolveDynamicComponent:lR,resolveFilter:JR,resolveTransitionHooks:Vs,setBlockTracking:Zp,setDevtoolsHook:k_,setTransitionHooks:rs,ssrContextKey:Sw,ssrUtils:XR,toHandlers:cR,transformVNodeArgs:AR,useAttrs:HR,useSSRContext:Ew,useSlots:_w,useTransitionState:am,version:$w,warn:Rk,watch:Ft,watchEffect:jt,watchPostEffect:M_,watchSyncEffect:Qk,withAsyncContext:zR,withCtx:ye,withDefaults:jR,withDirectives:G_,withMemo:KR,withScopeId:Hk},Symbol.toStringTag,{value:"Module"}));function oo(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o<r.length;o++)n[r[o]]=!0;return t?o=>!!n[o.toLowerCase()]:o=>!!n[o]}const K4=/;(?![^(]*\))/g,G4=/:([^]+)/,X4=/\/\*.*?\*\//gs;function J4(e){const t={};return e.replace(X4,"").split(K4).forEach(n=>{if(n){const r=n.split(G4);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}const Y4="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot",Z4="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",Q4="area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr",eL=oo(Y4),tL=oo(Z4),nL=oo(Q4),rL={},Ec=()=>{},bp=()=>!1,oL=/^on[^a-z]/,Xw=e=>oL.test(e),jo=Object.assign,qs=Array.isArray,mn=e=>typeof e=="string",_m=e=>typeof e=="symbol",iL=e=>e!==null&&typeof e=="object",$b=oo(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),sL=oo("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),pd=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},lL=/-(\w)/g,hd=pd(e=>e.replace(lL,(t,n)=>n?n.toUpperCase():"")),aL=/\B([A-Z])/g,uL=pd(e=>e.replace(aL,"-$1").toLowerCase()),wm=pd(e=>e.charAt(0).toUpperCase()+e.slice(1)),cL=pd(e=>e?`on${wm(e)}`:"");function Sm(e){throw e}function Jw(e){}function Wt(e,t,n,r){const o=e,s=new SyntaxError(String(o));return s.code=e,s.loc=t,s}const ua=Symbol(""),Gl=Symbol(""),Em=Symbol(""),xc=Symbol(""),Yw=Symbol(""),ss=Symbol(""),Zw=Symbol(""),Qw=Symbol(""),xm=Symbol(""),$m=Symbol(""),Aa=Symbol(""),Cm=Symbol(""),eS=Symbol(""),Tm=Symbol(""),$c=Symbol(""),Om=Symbol(""),Am=Symbol(""),Im=Symbol(""),Pm=Symbol(""),tS=Symbol(""),nS=Symbol(""),md=Symbol(""),Cc=Symbol(""),km=Symbol(""),Rm=Symbol(""),ca=Symbol(""),Ia=Symbol(""),Lm=Symbol(""),uh=Symbol(""),dL=Symbol(""),ch=Symbol(""),Tc=Symbol(""),fL=Symbol(""),pL=Symbol(""),Nm=Symbol(""),hL=Symbol(""),mL=Symbol(""),Mm=Symbol(""),rS=Symbol(""),Ks={[ua]:"Fragment",[Gl]:"Teleport",[Em]:"Suspense",[xc]:"KeepAlive",[Yw]:"BaseTransition",[ss]:"openBlock",[Zw]:"createBlock",[Qw]:"createElementBlock",[xm]:"createVNode",[$m]:"createElementVNode",[Aa]:"createCommentVNode",[Cm]:"createTextVNode",[eS]:"createStaticVNode",[Tm]:"resolveComponent",[$c]:"resolveDynamicComponent",[Om]:"resolveDirective",[Am]:"resolveFilter",[Im]:"withDirectives",[Pm]:"renderList",[tS]:"renderSlot",[nS]:"createSlots",[md]:"toDisplayString",[Cc]:"mergeProps",[km]:"normalizeClass",[Rm]:"normalizeStyle",[ca]:"normalizeProps",[Ia]:"guardReactiveProps",[Lm]:"toHandlers",[uh]:"camelize",[dL]:"capitalize",[ch]:"toHandlerKey",[Tc]:"setBlockTracking",[fL]:"pushScopeId",[pL]:"popScopeId",[Nm]:"withCtx",[hL]:"unref",[mL]:"isRef",[Mm]:"withMemo",[rS]:"isMemoSame"};function vL(e){Object.getOwnPropertySymbols(e).forEach(t=>{Ks[t]=e[t]})}const yr={source:"",start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0}};function gL(e,t=yr){return{type:0,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:t}}function da(e,t,n,r,o,s,l,a=!1,c=!1,f=!1,p=yr){return e&&(a?(e.helper(ss),e.helper(Js(e.inSSR,f))):e.helper(Xs(e.inSSR,f)),l&&e.helper(Im)),{type:13,tag:t,props:n,children:r,patchFlag:o,dynamicProps:s,directives:l,isBlock:a,disableTracking:c,isComponent:f,loc:p}}function Pa(e,t=yr){return{type:17,loc:t,elements:e}}function Ir(e,t=yr){return{type:15,loc:t,properties:e}}function Jt(e,t){return{type:16,loc:yr,key:mn(e)?ut(e,!0):e,value:t}}function ut(e,t=!1,n=yr,r=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:r}}function Jr(e,t=yr){return{type:8,loc:t,children:e}}function nn(e,t=[],n=yr){return{type:14,loc:n,callee:e,arguments:t}}function Gs(e,t=void 0,n=!1,r=!1,o=yr){return{type:18,params:e,returns:t,newline:n,isSlot:r,loc:o}}function dh(e,t,n,r=!0){return{type:19,test:e,consequent:t,alternate:n,newline:r,loc:yr}}function yL(e,t,n=!1){return{type:20,index:e,value:t,isVNode:n,loc:yr}}function bL(e){return{type:21,body:e,loc:yr}}const Yn=e=>e.type===4&&e.isStatic,Ls=(e,t)=>e===t||e===uL(t);function oS(e){if(Ls(e,"Teleport"))return Gl;if(Ls(e,"Suspense"))return Em;if(Ls(e,"KeepAlive"))return xc;if(Ls(e,"BaseTransition"))return Yw}const _L=/^\d|[^\$\w]/,Dm=e=>!_L.test(e),wL=/[A-Za-z_$\xA0-\uFFFF]/,SL=/[\.\?\w$\xA0-\uFFFF]/,EL=/\s+[.[]\s*|\s*[.[]\s+/g,xL=e=>{e=e.trim().replace(EL,l=>l.trim());let t=0,n=[],r=0,o=0,s=null;for(let l=0;l<e.length;l++){const a=e.charAt(l);switch(t){case 0:if(a==="[")n.push(t),t=1,r++;else if(a==="(")n.push(t),t=2,o++;else if(!(l===0?wL:SL).test(a))return!1;break;case 1:a==="'"||a==='"'||a==="`"?(n.push(t),t=3,s=a):a==="["?r++:a==="]"&&(--r||(t=n.pop()));break;case 2:if(a==="'"||a==='"'||a==="`")n.push(t),t=3,s=a;else if(a==="(")o++;else if(a===")"){if(l===e.length-1)return!1;--o||(t=n.pop())}break;case 3:a===s&&(t=n.pop(),s=null);break}}return!r&&!o},iS=xL;function sS(e,t,n){const o={source:e.source.slice(t,t+n),start:Oc(e.start,e.source,t),end:e.end};return n!=null&&(o.end=Oc(e.start,e.source,t+n)),o}function Oc(e,t,n=t.length){return Ac(jo({},e),t,n)}function Ac(e,t,n=t.length){let r=0,o=-1;for(let s=0;s<n;s++)t.charCodeAt(s)===10&&(r++,o=s);return e.offset+=n,e.line+=r,e.column=o===-1?e.column+n:n-o,e}function Ar(e,t,n=!1){for(let r=0;r<e.props.length;r++){const o=e.props[r];if(o.type===7&&(n||o.exp)&&(mn(t)?o.name===t:t.test(o.name)))return o}}function vd(e,t,n=!1,r=!1){for(let o=0;o<e.props.length;o++){const s=e.props[o];if(s.type===6){if(n)continue;if(s.name===t&&(s.value||r))return s}else if(s.name==="bind"&&(s.exp||r)&&qi(s.arg,t))return s}}function qi(e,t){return!!(e&&Yn(e)&&e.content===t)}function $L(e){return e.props.some(t=>t.type===7&&t.name==="bind"&&(!t.arg||t.arg.type!==4||!t.arg.isStatic))}function _p(e){return e.type===5||e.type===2}function CL(e){return e.type===7&&e.name==="slot"}function Ic(e){return e.type===1&&e.tagType===3}function Pc(e){return e.type===1&&e.tagType===2}function Xs(e,t){return e||t?xm:$m}function Js(e,t){return e||t?Zw:Qw}const TL=new Set([ca,Ia]);function lS(e,t=[]){if(e&&!mn(e)&&e.type===14){const n=e.callee;if(!mn(n)&&TL.has(n))return lS(e.arguments[0],t.concat(e))}return[e,t]}function kc(e,t,n){let r,o=e.type===13?e.props:e.arguments[2],s=[],l;if(o&&!mn(o)&&o.type===14){const a=lS(o);o=a[0],s=a[1],l=s[s.length-1]}if(o==null||mn(o))r=Ir([t]);else if(o.type===14){const a=o.arguments[0];!mn(a)&&a.type===15?Cb(t,a)||a.properties.unshift(t):o.callee===Lm?r=nn(n.helper(Cc),[Ir([t]),o]):o.arguments.unshift(Ir([t])),!r&&(r=o)}else o.type===15?(Cb(t,o)||o.properties.unshift(t),r=o):(r=nn(n.helper(Cc),[Ir([t]),o]),l&&l.callee===Ia&&(l=s[s.length-2]));e.type===13?l?l.arguments[0]=r:e.props=r:l?l.arguments[0]=r:e.arguments[2]=r}function Cb(e,t){let n=!1;if(e.key.type===4){const r=e.key.content;n=t.properties.some(o=>o.key.type===4&&o.key.content===r)}return n}function fa(e,t){return`_${t}_${e.replace(/[^\w]/g,(n,r)=>n==="-"?"_":e.charCodeAt(r).toString())}`}function OL(e){return e.type===14&&e.callee===Mm?e.arguments[1].returns:e}function Fm(e,{helper:t,removeHelper:n,inSSR:r}){e.isBlock||(e.isBlock=!0,n(Xs(r,e.isComponent)),t(ss),t(Js(r,e.isComponent)))}function Tb(e,t){const n=t.options?t.options.compatConfig:t.compatConfig,r=n&&n[e];return e==="MODE"?r||3:r}function Zi(e,t){const n=Tb("MODE",t),r=Tb(e,t);return n===3?r===!0:r!==!1}function pa(e,t,n,...r){return Zi(e,t)}const AL=/&(gt|lt|amp|apos|quot);/g,IL={gt:">",lt:"<",amp:"&",apos:"'",quot:'"'},Ob={delimiters:["{{","}}"],getNamespace:()=>0,getTextMode:()=>0,isVoidTag:bp,isPreTag:bp,isCustomElement:bp,decodeEntities:e=>e.replace(AL,(t,n)=>IL[n]),onError:Sm,onWarn:Jw,comments:!1};function PL(e,t={}){const n=kL(e,t),r=vr(n);return gL(Bm(n,0,[]),Fr(n,r))}function kL(e,t){const n=jo({},Ob);let r;for(r in t)n[r]=t[r]===void 0?Ob[r]:t[r];return{options:n,column:1,line:1,offset:0,originalSource:e,source:e,inPre:!1,inVPre:!1,onWarn:n.onWarn}}function Bm(e,t,n){const r=gd(n),o=r?r.ns:0,s=[];for(;!jL(e,t,n);){const a=e.source;let c;if(t===0||t===1){if(!e.inVPre&&kn(a,e.options.delimiters[0]))c=BL(e,t);else if(t===0&&a[0]==="<")if(a.length===1)At(e,5,1);else if(a[1]==="!")kn(a,"<!--")?c=LL(e):kn(a,"<!DOCTYPE")?c=Ol(e):kn(a,"<![CDATA[")?o!==0?c=RL(e,n):(At(e,1),c=Ol(e)):(At(e,11),c=Ol(e));else if(a[1]==="/")if(a.length===2)At(e,5,2);else if(a[2]===">"){At(e,14,2),fn(e,3);continue}else if(/[a-z]/i.test(a[2])){At(e,23),fh(e,1,r);continue}else At(e,12,2),c=Ol(e);else/[a-z]/i.test(a[1])?(c=NL(e,n),Zi("COMPILER_NATIVE_TEMPLATE",e)&&c&&c.tag==="template"&&!c.props.some(f=>f.type===7&&aS(f.name))&&(c=c.children)):a[1]==="?"?(At(e,21,1),c=Ol(e)):At(e,12,1)}if(c||(c=UL(e,t)),qs(c))for(let f=0;f<c.length;f++)Ab(s,c[f]);else Ab(s,c)}let l=!1;if(t!==2&&t!==1){const a=e.options.whitespace!=="preserve";for(let c=0;c<s.length;c++){const f=s[c];if(f.type===2)if(e.inPre)f.content=f.content.replace(/\r\n/g,`1 const IP=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const l of s.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerpolicy&&(s.referrerPolicy=o.referrerpolicy),o.crossorigin==="use-credentials"?s.credentials="include":o.crossorigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}};IP();function Vh(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o<r.length;o++)n[r[o]]=!0;return t?o=>!!n[o.toLowerCase()]:o=>!!n[o]}const PP="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt",kP=Vh(PP);function as(e){if(Je(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],o=on(r)?MP(r):as(r);if(o)for(const s in o)t[s]=o[s]}return t}else{if(on(e))return e;if(qt(e))return e}}const RP=/;(?![^(]*\))/g,LP=/:([^]+)/,NP=/\/\*.*?\*\//gs;function MP(e){const t={};return e.replace(NP,"").split(RP).forEach(n=>{if(n){const r=n.split(LP);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function wt(e){let t="";if(on(e))t=e;else if(Je(e))for(let n=0;n<e.length;n++){const r=wt(e[n]);r&&(t+=r+" ")}else if(qt(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function DP(e){if(!e)return null;let{class:t,style:n}=e;return t&&!on(t)&&(e.class=wt(t)),n&&(e.style=as(n)),e}const U=e=>on(e)?e:e==null?"":Je(e)||qt(e)&&(e.toString===a_||!et(e.toString))?JSON.stringify(e,i_,2):String(e),i_=(e,t)=>t&&t.__v_isRef?i_(e,t.value):Ms(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o])=>(n[`${r} =>`]=o,n),{})}:l_(t)?{[`Set(${t.size})`]:[...t.values()]}:qt(t)&&!Je(t)&&!u_(t)?String(t):t,Ut={},Ns=[],Xr=()=>{},FP=()=>!1,BP=/^on[^a-z]/,Kc=e=>BP.test(e),s_=e=>e.startsWith("onUpdate:"),$n=Object.assign,Wh=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},UP=Object.prototype.hasOwnProperty,_t=(e,t)=>UP.call(e,t),Je=Array.isArray,Ms=e=>Ea(e)==="[object Map]",l_=e=>Ea(e)==="[object Set]",jP=e=>Ea(e)==="[object RegExp]",et=e=>typeof e=="function",on=e=>typeof e=="string",zh=e=>typeof e=="symbol",qt=e=>e!==null&&typeof e=="object",qh=e=>qt(e)&&et(e.then)&&et(e.catch),a_=Object.prototype.toString,Ea=e=>a_.call(e),HP=e=>Ea(e).slice(8,-1),u_=e=>Ea(e)==="[object Object]",Kh=e=>on(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,jl=Vh(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Gc=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},VP=/-(\w)/g,eo=Gc(e=>e.replace(VP,(t,n)=>n?n.toUpperCase():"")),WP=/\B([A-Z])/g,Xc=Gc(e=>e.replace(WP,"-$1").toLowerCase()),Jc=Gc(e=>e.charAt(0).toUpperCase()+e.slice(1)),Hl=Gc(e=>e?`on${Jc(e)}`:""),Hs=(e,t)=>!Object.is(e,t),Vl=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},mc=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},zP=e=>{const t=parseFloat(e);return isNaN(t)?e:t},qP=e=>{const t=on(e)?Number(e):NaN;return isNaN(t)?e:t};let jy;const KP=()=>jy||(jy=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});let dr;class Gh{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=dr,!t&&dr&&(this.index=(dr.scopes||(dr.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=dr;try{return dr=this,t()}finally{dr=n}}}on(){dr=this}off(){dr=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.scopes)for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0,this._active=!1}}}function GP(e){return new Gh(e)}function c_(e,t=dr){t&&t.active&&t.effects.push(e)}function d_(){return dr}function f_(e){dr&&dr.cleanups.push(e)}const Xh=e=>{const t=new Set(e);return t.w=0,t.n=0,t},p_=e=>(e.w&vi)>0,h_=e=>(e.n&vi)>0,XP=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=vi},JP=e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const o=t[r];p_(o)&&!h_(o)?o.delete(e):t[n++]=o,o.w&=~vi,o.n&=~vi}t.length=n}},vc=new WeakMap;let Dl=0,vi=1;const jp=30;let qr;const Gi=Symbol(""),Hp=Symbol("");class xa{constructor(t,n=null,r){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,c_(this,r)}run(){if(!this.active)return this.fn();let t=qr,n=pi;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=qr,qr=this,pi=!0,vi=1<<++Dl,Dl<=jp?XP(this):Hy(this),this.fn()}finally{Dl<=jp&&JP(this),vi=1<<--Dl,qr=this.parent,pi=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){qr===this?this.deferStop=!0:this.active&&(Hy(this),this.onStop&&this.onStop(),this.active=!1)}}function Hy(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}function YP(e,t){e.effect&&(e=e.effect.fn);const n=new xa(e);t&&($n(n,t),t.scope&&c_(n,t.scope)),(!t||!t.lazy)&&n.run();const r=n.run.bind(n);return r.effect=n,r}function ZP(e){e.effect.stop()}let pi=!0;const m_=[];function sl(){m_.push(pi),pi=!1}function ll(){const e=m_.pop();pi=e===void 0?!0:e}function tr(e,t,n){if(pi&&qr){let r=vc.get(e);r||vc.set(e,r=new Map);let o=r.get(n);o||r.set(n,o=Xh()),v_(o)}}function v_(e,t){let n=!1;Dl<=jp?h_(e)||(e.n|=vi,n=!p_(e)):n=!e.has(qr),n&&(e.add(qr),qr.deps.push(e))}function Vo(e,t,n,r,o,s){const l=vc.get(e);if(!l)return;let a=[];if(t==="clear")a=[...l.values()];else if(n==="length"&&Je(e)){const c=Number(r);l.forEach((f,p)=>{(p==="length"||p>=c)&&a.push(f)})}else switch(n!==void 0&&a.push(l.get(n)),t){case"add":Je(e)?Kh(n)&&a.push(l.get("length")):(a.push(l.get(Gi)),Ms(e)&&a.push(l.get(Hp)));break;case"delete":Je(e)||(a.push(l.get(Gi)),Ms(e)&&a.push(l.get(Hp)));break;case"set":Ms(e)&&a.push(l.get(Gi));break}if(a.length===1)a[0]&&Vp(a[0]);else{const c=[];for(const f of a)f&&c.push(...f);Vp(Xh(c))}}function Vp(e,t){const n=Je(e)?e:[...e];for(const r of n)r.computed&&Vy(r);for(const r of n)r.computed||Vy(r)}function Vy(e,t){(e!==qr||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function QP(e,t){var n;return(n=vc.get(e))===null||n===void 0?void 0:n.get(t)}const ek=Vh("__proto__,__v_isRef,__isVue"),g_=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(zh)),tk=Yc(),nk=Yc(!1,!0),rk=Yc(!0),ok=Yc(!0,!0),Wy=ik();function ik(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=Ue(this);for(let s=0,l=this.length;s<l;s++)tr(r,"get",s+"");const o=r[t](...n);return o===-1||o===!1?r[t](...n.map(Ue)):o}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){sl();const r=Ue(this)[t].apply(this,n);return ll(),r}}),e}function sk(e){const t=Ue(this);return tr(t,"has",e),t.hasOwnProperty(e)}function Yc(e=!1,t=!1){return function(r,o,s){if(o==="__v_isReactive")return!e;if(o==="__v_isReadonly")return e;if(o==="__v_isShallow")return t;if(o==="__v_raw"&&s===(e?t?x_:E_:t?S_:w_).get(r))return r;const l=Je(r);if(!e){if(l&&_t(Wy,o))return Reflect.get(Wy,o,s);if(o==="hasOwnProperty")return sk}const a=Reflect.get(r,o,s);return(zh(o)?g_.has(o):ek(o))||(e||tr(r,"get",o),t)?a:dn(a)?l&&Kh(o)?a:a.value:qt(a)?e?Yh(a):Si(a):a}}const lk=y_(),ak=y_(!0);function y_(e=!1){return function(n,r,o,s){let l=n[r];if(ns(l)&&dn(l)&&!dn(o))return!1;if(!e&&(!na(o)&&!ns(o)&&(l=Ue(l),o=Ue(o)),!Je(n)&&dn(l)&&!dn(o)))return l.value=o,!0;const a=Je(n)&&Kh(r)?Number(r)<n.length:_t(n,r),c=Reflect.set(n,r,o,s);return n===Ue(s)&&(a?Hs(o,l)&&Vo(n,"set",r,o):Vo(n,"add",r,o)),c}}function uk(e,t){const n=_t(e,t);e[t];const r=Reflect.deleteProperty(e,t);return r&&n&&Vo(e,"delete",t,void 0),r}function ck(e,t){const n=Reflect.has(e,t);return(!zh(t)||!g_.has(t))&&tr(e,"has",t),n}function dk(e){return tr(e,"iterate",Je(e)?"length":Gi),Reflect.ownKeys(e)}const b_={get:tk,set:lk,deleteProperty:uk,has:ck,ownKeys:dk},__={get:rk,set(e,t){return!0},deleteProperty(e,t){return!0}},fk=$n({},b_,{get:nk,set:ak}),pk=$n({},__,{get:ok}),Jh=e=>e,Zc=e=>Reflect.getPrototypeOf(e);function Lu(e,t,n=!1,r=!1){e=e.__v_raw;const o=Ue(e),s=Ue(t);n||(t!==s&&tr(o,"get",t),tr(o,"get",s));const{has:l}=Zc(o),a=r?Jh:n?em:ra;if(l.call(o,t))return a(e.get(t));if(l.call(o,s))return a(e.get(s));e!==o&&e.get(t)}function Nu(e,t=!1){const n=this.__v_raw,r=Ue(n),o=Ue(e);return t||(e!==o&&tr(r,"has",e),tr(r,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function Mu(e,t=!1){return e=e.__v_raw,!t&&tr(Ue(e),"iterate",Gi),Reflect.get(e,"size",e)}function zy(e){e=Ue(e);const t=Ue(this);return Zc(t).has.call(t,e)||(t.add(e),Vo(t,"add",e,e)),this}function qy(e,t){t=Ue(t);const n=Ue(this),{has:r,get:o}=Zc(n);let s=r.call(n,e);s||(e=Ue(e),s=r.call(n,e));const l=o.call(n,e);return n.set(e,t),s?Hs(t,l)&&Vo(n,"set",e,t):Vo(n,"add",e,t),this}function Ky(e){const t=Ue(this),{has:n,get:r}=Zc(t);let o=n.call(t,e);o||(e=Ue(e),o=n.call(t,e)),r&&r.call(t,e);const s=t.delete(e);return o&&Vo(t,"delete",e,void 0),s}function Gy(){const e=Ue(this),t=e.size!==0,n=e.clear();return t&&Vo(e,"clear",void 0,void 0),n}function Du(e,t){return function(r,o){const s=this,l=s.__v_raw,a=Ue(l),c=t?Jh:e?em:ra;return!e&&tr(a,"iterate",Gi),l.forEach((f,p)=>r.call(o,c(f),c(p),s))}}function Fu(e,t,n){return function(...r){const o=this.__v_raw,s=Ue(o),l=Ms(s),a=e==="entries"||e===Symbol.iterator&&l,c=e==="keys"&&l,f=o[e](...r),p=n?Jh:t?em:ra;return!t&&tr(s,"iterate",c?Hp:Gi),{next(){const{value:h,done:v}=f.next();return v?{value:h,done:v}:{value:a?[p(h[0]),p(h[1])]:p(h),done:v}},[Symbol.iterator](){return this}}}}function oi(e){return function(...t){return e==="delete"?!1:this}}function hk(){const e={get(s){return Lu(this,s)},get size(){return Mu(this)},has:Nu,add:zy,set:qy,delete:Ky,clear:Gy,forEach:Du(!1,!1)},t={get(s){return Lu(this,s,!1,!0)},get size(){return Mu(this)},has:Nu,add:zy,set:qy,delete:Ky,clear:Gy,forEach:Du(!1,!0)},n={get(s){return Lu(this,s,!0)},get size(){return Mu(this,!0)},has(s){return Nu.call(this,s,!0)},add:oi("add"),set:oi("set"),delete:oi("delete"),clear:oi("clear"),forEach:Du(!0,!1)},r={get(s){return Lu(this,s,!0,!0)},get size(){return Mu(this,!0)},has(s){return Nu.call(this,s,!0)},add:oi("add"),set:oi("set"),delete:oi("delete"),clear:oi("clear"),forEach:Du(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=Fu(s,!1,!1),n[s]=Fu(s,!0,!1),t[s]=Fu(s,!1,!0),r[s]=Fu(s,!0,!0)}),[e,n,t,r]}const[mk,vk,gk,yk]=hk();function Qc(e,t){const n=t?e?yk:gk:e?vk:mk;return(r,o,s)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?r:Reflect.get(_t(n,o)&&o in r?n:r,o,s)}const bk={get:Qc(!1,!1)},_k={get:Qc(!1,!0)},wk={get:Qc(!0,!1)},Sk={get:Qc(!0,!0)},w_=new WeakMap,S_=new WeakMap,E_=new WeakMap,x_=new WeakMap;function Ek(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function xk(e){return e.__v_skip||!Object.isExtensible(e)?0:Ek(HP(e))}function Si(e){return ns(e)?e:ed(e,!1,b_,bk,w_)}function $_(e){return ed(e,!1,fk,_k,S_)}function Yh(e){return ed(e,!0,__,wk,E_)}function $k(e){return ed(e,!0,pk,Sk,x_)}function ed(e,t,n,r,o){if(!qt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=o.get(e);if(s)return s;const l=xk(e);if(l===0)return e;const a=new Proxy(e,l===2?r:n);return o.set(e,a),a}function Xi(e){return ns(e)?Xi(e.__v_raw):!!(e&&e.__v_isReactive)}function ns(e){return!!(e&&e.__v_isReadonly)}function na(e){return!!(e&&e.__v_isShallow)}function Zh(e){return Xi(e)||ns(e)}function Ue(e){const t=e&&e.__v_raw;return t?Ue(t):e}function Qh(e){return mc(e,"__v_skip",!0),e}const ra=e=>qt(e)?Si(e):e,em=e=>qt(e)?Yh(e):e;function tm(e){pi&&qr&&(e=Ue(e),v_(e.dep||(e.dep=Xh())))}function td(e,t){e=Ue(e);const n=e.dep;n&&Vp(n)}function dn(e){return!!(e&&e.__v_isRef===!0)}function _e(e){return C_(e,!1)}function nd(e){return C_(e,!0)}function C_(e,t){return dn(e)?e:new Ck(e,t)}class Ck{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:Ue(t),this._value=n?t:ra(t)}get value(){return tm(this),this._value}set value(t){const n=this.__v_isShallow||na(t)||ns(t);t=n?t:Ue(t),Hs(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:ra(t),td(this))}}function Wp(e){td(e)}function jn(e){return dn(e)?e.value:e}const Tk={get:(e,t,n)=>jn(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return dn(o)&&!dn(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function nm(e){return Xi(e)?e:new Proxy(e,Tk)}class Ok{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:r}=t(()=>tm(this),()=>td(this));this._get=n,this._set=r}get value(){return this._get()}set value(t){this._set(t)}}function Ak(e){return new Ok(e)}function rm(e){const t=Je(e)?new Array(e.length):{};for(const n in e)t[n]=T_(e,n);return t}class Ik{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return QP(Ue(this._object),this._key)}}function T_(e,t,n){const r=e[t];return dn(r)?r:new Ik(e,t,n)}var O_;class Pk{constructor(t,n,r,o){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[O_]=!1,this._dirty=!0,this.effect=new xa(t,()=>{this._dirty||(this._dirty=!0,td(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=r}get value(){const t=Ue(this);return tm(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}O_="__v_isReadonly";function kk(e,t,n=!1){let r,o;const s=et(e);return s?(r=e,o=Xr):(r=e.get,o=e.set),new Pk(r,o,s||!o,n)}function Rk(e,...t){}function Lk(e,t){}function Uo(e,t,n,r){let o;try{o=r?e(...r):e()}catch(s){us(s,t,n)}return o}function mr(e,t,n,r){if(et(e)){const s=Uo(e,t,n,r);return s&&qh(s)&&s.catch(l=>{us(l,t,n)}),s}const o=[];for(let s=0;s<e.length;s++)o.push(mr(e[s],t,n,r));return o}function us(e,t,n,r=!0){const o=t?t.vnode:null;if(t){let s=t.parent;const l=t.proxy,a=n;for(;s;){const f=s.ec;if(f){for(let p=0;p<f.length;p++)if(f[p](e,l,a)===!1)return}s=s.parent}const c=t.appContext.config.errorHandler;if(c){Uo(c,null,10,[e,l,a]);return}}Nk(e,n,o,r)}function Nk(e,t,n,r=!0){console.error(e)}let oa=!1,zp=!1;const In=[];let vo=0;const Ds=[];let Mo=null,Hi=0;const A_=Promise.resolve();let om=null;function rn(e){const t=om||A_;return e?t.then(this?e.bind(this):e):t}function Mk(e){let t=vo+1,n=In.length;for(;t<n;){const r=t+n>>>1;ia(In[r])<e?t=r+1:n=r}return t}function rd(e){(!In.length||!In.includes(e,oa&&e.allowRecurse?vo+1:vo))&&(e.id==null?In.push(e):In.splice(Mk(e.id),0,e),I_())}function I_(){!oa&&!zp&&(zp=!0,om=A_.then(P_))}function Dk(e){const t=In.indexOf(e);t>vo&&In.splice(t,1)}function im(e){Je(e)?Ds.push(...e):(!Mo||!Mo.includes(e,e.allowRecurse?Hi+1:Hi))&&Ds.push(e),I_()}function Xy(e,t=oa?vo+1:0){for(;t<In.length;t++){const n=In[t];n&&n.pre&&(In.splice(t,1),t--,n())}}function gc(e){if(Ds.length){const t=[...new Set(Ds)];if(Ds.length=0,Mo){Mo.push(...t);return}for(Mo=t,Mo.sort((n,r)=>ia(n)-ia(r)),Hi=0;Hi<Mo.length;Hi++)Mo[Hi]();Mo=null,Hi=0}}const ia=e=>e.id==null?1/0:e.id,Fk=(e,t)=>{const n=ia(e)-ia(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function P_(e){zp=!1,oa=!0,In.sort(Fk);const t=Xr;try{for(vo=0;vo<In.length;vo++){const n=In[vo];n&&n.active!==!1&&Uo(n,null,14)}}finally{vo=0,In.length=0,gc(),oa=!1,om=null,(In.length||Ds.length)&&P_()}}let Rs,Bu=[];function k_(e,t){var n,r;Rs=e,Rs?(Rs.enabled=!0,Bu.forEach(({event:o,args:s})=>Rs.emit(o,...s)),Bu=[]):typeof window!="undefined"&&window.HTMLElement&&!(!((r=(n=window.navigator)===null||n===void 0?void 0:n.userAgent)===null||r===void 0)&&r.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(s=>{k_(s,t)}),setTimeout(()=>{Rs||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Bu=[])},3e3)):Bu=[]}function Bk(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Ut;let o=n;const s=t.startsWith("update:"),l=s&&t.slice(7);if(l&&l in r){const p=`${l==="modelValue"?"model":l}Modifiers`,{number:h,trim:v}=r[p]||Ut;v&&(o=n.map(y=>on(y)?y.trim():y)),h&&(o=n.map(zP))}let a,c=r[a=Hl(t)]||r[a=Hl(eo(t))];!c&&s&&(c=r[a=Hl(Xc(t))]),c&&mr(c,e,6,o);const f=r[a+"Once"];if(f){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,mr(f,e,6,o)}}function R_(e,t,n=!1){const r=t.emitsCache,o=r.get(e);if(o!==void 0)return o;const s=e.emits;let l={},a=!1;if(!et(e)){const c=f=>{const p=R_(f,t,!0);p&&(a=!0,$n(l,p))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!s&&!a?(qt(e)&&r.set(e,null),null):(Je(s)?s.forEach(c=>l[c]=null):$n(l,s),qt(e)&&r.set(e,l),l)}function od(e,t){return!e||!Kc(t)?!1:(t=t.slice(2).replace(/Once$/,""),_t(e,t[0].toLowerCase()+t.slice(1))||_t(e,Xc(t))||_t(e,t))}let xn=null,id=null;function sa(e){const t=xn;return xn=e,id=e&&e.type.__scopeId||null,t}function Uk(e){id=e}function jk(){id=null}const Hk=e=>ye;function ye(e,t=xn,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&Zp(-1);const s=sa(t);let l;try{l=e(...o)}finally{sa(s),r._d&&Zp(1)}return l};return r._n=!0,r._c=!0,r._d=!0,r}function tc(e){const{type:t,vnode:n,proxy:r,withProxy:o,props:s,propsOptions:[l],slots:a,attrs:c,emit:f,render:p,renderCache:h,data:v,setupState:y,ctx:_,inheritAttrs:w}=e;let I,O;const S=sa(e);try{if(n.shapeFlag&4){const T=o||r;I=fr(p.call(T,T,h,s,y,v,_)),O=c}else{const T=t;I=fr(T.length>1?T(s,{attrs:c,slots:a,emit:f}):T(s,null)),O=t.props?c:Wk(c)}}catch(T){ql.length=0,us(T,e,1),I=q(Rn)}let E=I;if(O&&w!==!1){const T=Object.keys(O),{shapeFlag:$}=E;T.length&&$&7&&(l&&T.some(s_)&&(O=zk(O,l)),E=Dr(E,O))}return n.dirs&&(E=Dr(E),E.dirs=E.dirs?E.dirs.concat(n.dirs):n.dirs),n.transition&&(E.transition=n.transition),I=E,sa(S),I}function Vk(e){let t;for(let n=0;n<e.length;n++){const r=e[n];if(gi(r)){if(r.type!==Rn||r.children==="v-if"){if(t)return;t=r}}else return}return t}const Wk=e=>{let t;for(const n in e)(n==="class"||n==="style"||Kc(n))&&((t||(t={}))[n]=e[n]);return t},zk=(e,t)=>{const n={};for(const r in e)(!s_(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function qk(e,t,n){const{props:r,children:o,component:s}=e,{props:l,children:a,patchFlag:c}=t,f=s.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?Jy(r,l,f):!!l;if(c&8){const p=t.dynamicProps;for(let h=0;h<p.length;h++){const v=p[h];if(l[v]!==r[v]&&!od(f,v))return!0}}}else return(o||a)&&(!a||!a.$stable)?!0:r===l?!1:r?l?Jy(r,l,f):!0:!!l;return!1}function Jy(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let o=0;o<r.length;o++){const s=r[o];if(t[s]!==e[s]&&!od(n,s))return!0}return!1}function sm({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const L_=e=>e.__isSuspense,Kk={name:"Suspense",__isSuspense:!0,process(e,t,n,r,o,s,l,a,c,f){e==null?Xk(t,n,r,o,s,l,a,c,f):Jk(e,t,n,r,o,l,a,c,f)},hydrate:Yk,create:lm,normalize:Zk},Gk=Kk;function la(e,t){const n=e.props&&e.props[t];et(n)&&n()}function Xk(e,t,n,r,o,s,l,a,c){const{p:f,o:{createElement:p}}=c,h=p("div"),v=e.suspense=lm(e,o,r,t,h,n,s,l,a,c);f(null,v.pendingBranch=e.ssContent,h,null,r,v,s,l),v.deps>0?(la(e,"onPending"),la(e,"onFallback"),f(null,e.ssFallback,t,n,r,null,s,l),Fs(v,e.ssFallback)):v.resolve()}function Jk(e,t,n,r,o,s,l,a,{p:c,um:f,o:{createElement:p}}){const h=t.suspense=e.suspense;h.vnode=t,t.el=e.el;const v=t.ssContent,y=t.ssFallback,{activeBranch:_,pendingBranch:w,isInFallback:I,isHydrating:O}=h;if(w)h.pendingBranch=v,Kr(v,w)?(c(w,v,h.hiddenContainer,null,o,h,s,l,a),h.deps<=0?h.resolve():I&&(c(_,y,n,r,o,null,s,l,a),Fs(h,y))):(h.pendingId++,O?(h.isHydrating=!1,h.activeBranch=w):f(w,o,h),h.deps=0,h.effects.length=0,h.hiddenContainer=p("div"),I?(c(null,v,h.hiddenContainer,null,o,h,s,l,a),h.deps<=0?h.resolve():(c(_,y,n,r,o,null,s,l,a),Fs(h,y))):_&&Kr(v,_)?(c(_,v,n,r,o,h,s,l,a),h.resolve(!0)):(c(null,v,h.hiddenContainer,null,o,h,s,l,a),h.deps<=0&&h.resolve()));else if(_&&Kr(v,_))c(_,v,n,r,o,h,s,l,a),Fs(h,v);else if(la(t,"onPending"),h.pendingBranch=v,h.pendingId++,c(null,v,h.hiddenContainer,null,o,h,s,l,a),h.deps<=0)h.resolve();else{const{timeout:S,pendingId:E}=h;S>0?setTimeout(()=>{h.pendingId===E&&h.fallback(y)},S):S===0&&h.fallback(y)}}function lm(e,t,n,r,o,s,l,a,c,f,p=!1){const{p:h,m:v,um:y,n:_,o:{parentNode:w,remove:I}}=f,O=e.props?qP(e.props.timeout):void 0,S={vnode:e,parent:t,parentComponent:n,isSVG:l,container:r,hiddenContainer:o,anchor:s,deps:0,pendingId:0,timeout:typeof O=="number"?O:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:p,isUnmounted:!1,effects:[],resolve(E=!1){const{vnode:T,activeBranch:$,pendingBranch:P,pendingId:k,effects:A,parentComponent:H,container:D}=S;if(S.isHydrating)S.isHydrating=!1;else if(!E){const K=$&&P.transition&&P.transition.mode==="out-in";K&&($.transition.afterLeave=()=>{k===S.pendingId&&v(P,D,te,0)});let{anchor:te}=S;$&&(te=_($),y($,H,S,!0)),K||v(P,D,te,0)}Fs(S,P),S.pendingBranch=null,S.isInFallback=!1;let F=S.parent,z=!1;for(;F;){if(F.pendingBranch){F.effects.push(...A),z=!0;break}F=F.parent}z||im(A),S.effects=[],la(T,"onResolve")},fallback(E){if(!S.pendingBranch)return;const{vnode:T,activeBranch:$,parentComponent:P,container:k,isSVG:A}=S;la(T,"onFallback");const H=_($),D=()=>{!S.isInFallback||(h(null,E,k,H,P,null,A,a,c),Fs(S,E))},F=E.transition&&E.transition.mode==="out-in";F&&($.transition.afterLeave=D),S.isInFallback=!0,y($,P,null,!0),F||D()},move(E,T,$){S.activeBranch&&v(S.activeBranch,E,T,$),S.container=E},next(){return S.activeBranch&&_(S.activeBranch)},registerDep(E,T){const $=!!S.pendingBranch;$&&S.deps++;const P=E.vnode.el;E.asyncDep.catch(k=>{us(k,E,0)}).then(k=>{if(E.isUnmounted||S.isUnmounted||S.pendingId!==E.suspenseId)return;E.asyncResolved=!0;const{vnode:A}=E;Qp(E,k,!1),P&&(A.el=P);const H=!P&&E.subTree.el;T(E,A,w(P||E.subTree.el),P?null:_(E.subTree),S,l,c),H&&I(H),sm(E,A.el),$&&--S.deps===0&&S.resolve()})},unmount(E,T){S.isUnmounted=!0,S.activeBranch&&y(S.activeBranch,n,E,T),S.pendingBranch&&y(S.pendingBranch,n,E,T)}};return S}function Yk(e,t,n,r,o,s,l,a,c){const f=t.suspense=lm(t,r,n,e.parentNode,document.createElement("div"),null,o,s,l,a,!0),p=c(e,f.pendingBranch=t.ssContent,n,f,s,l);return f.deps===0&&f.resolve(),p}function Zk(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=Yy(r?n.default:n),e.ssFallback=r?Yy(n.fallback):q(Rn)}function Yy(e){let t;if(et(e)){const n=is&&e._c;n&&(e._d=!1,N()),e=e(),n&&(e._d=!0,t=Jn,uw())}return Je(e)&&(e=Vk(e)),e=fr(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function N_(e,t){t&&t.pendingBranch?Je(e)?t.effects.push(...e):t.effects.push(e):im(e)}function Fs(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e,o=n.el=t.el;r&&r.subTree===n&&(r.vnode.el=o,sm(r,o))}function Yt(e,t){if(Xt){let n=Xt.provides;const r=Xt.parent&&Xt.parent.provides;r===n&&(n=Xt.provides=Object.create(r)),n[e]=t}}function kt(e,t,n=!1){const r=Xt||xn;if(r){const o=r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(o&&e in o)return o[e];if(arguments.length>1)return n&&et(t)?t.call(r.proxy):t}}function jt(e,t){return $a(e,null,t)}function M_(e,t){return $a(e,null,{flush:"post"})}function Qk(e,t){return $a(e,null,{flush:"sync"})}const Uu={};function Ft(e,t,n){return $a(e,t,n)}function $a(e,t,{immediate:n,deep:r,flush:o,onTrack:s,onTrigger:l}=Ut){const a=d_()===(Xt==null?void 0:Xt.scope)?Xt:null;let c,f=!1,p=!1;if(dn(e)?(c=()=>e.value,f=na(e)):Xi(e)?(c=()=>e,r=!0):Je(e)?(p=!0,f=e.some(E=>Xi(E)||na(E)),c=()=>e.map(E=>{if(dn(E))return E.value;if(Xi(E))return zi(E);if(et(E))return Uo(E,a,2)})):et(e)?t?c=()=>Uo(e,a,2):c=()=>{if(!(a&&a.isUnmounted))return h&&h(),mr(e,a,3,[v])}:c=Xr,t&&r){const E=c;c=()=>zi(E())}let h,v=E=>{h=O.onStop=()=>{Uo(E,a,4)}},y;if(Ws)if(v=Xr,t?n&&mr(t,a,3,[c(),p?[]:void 0,v]):c(),o==="sync"){const E=Ew();y=E.__watcherHandles||(E.__watcherHandles=[])}else return Xr;let _=p?new Array(e.length).fill(Uu):Uu;const w=()=>{if(!!O.active)if(t){const E=O.run();(r||f||(p?E.some((T,$)=>Hs(T,_[$])):Hs(E,_)))&&(h&&h(),mr(t,a,3,[E,_===Uu?void 0:p&&_[0]===Uu?[]:_,v]),_=E)}else O.run()};w.allowRecurse=!!t;let I;o==="sync"?I=w:o==="post"?I=()=>Sn(w,a&&a.suspense):(w.pre=!0,a&&(w.id=a.uid),I=()=>rd(w));const O=new xa(c,I);t?n?w():_=O.run():o==="post"?Sn(O.run.bind(O),a&&a.suspense):O.run();const S=()=>{O.stop(),a&&a.scope&&Wh(a.scope.effects,O)};return y&&y.push(S),S}function eR(e,t,n){const r=this.proxy,o=on(e)?e.includes(".")?D_(r,e):()=>r[e]:e.bind(r,r);let s;et(t)?s=t:(s=t.handler,n=t);const l=Xt;yi(this);const a=$a(o,s.bind(r),n);return l?yi(l):hi(),a}function D_(e,t){const n=t.split(".");return()=>{let r=e;for(let o=0;o<n.length&&r;o++)r=r[n[o]];return r}}function zi(e,t){if(!qt(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),dn(e))zi(e.value,t);else if(Je(e))for(let n=0;n<e.length;n++)zi(e[n],t);else if(l_(e)||Ms(e))e.forEach(n=>{zi(n,t)});else if(u_(e))for(const n in e)zi(e[n],t);return e}function am(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return gt(()=>{e.isMounted=!0}),cs(()=>{e.isUnmounting=!0}),e}const Or=[Function,Array],tR={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Or,onEnter:Or,onAfterEnter:Or,onEnterCancelled:Or,onBeforeLeave:Or,onLeave:Or,onAfterLeave:Or,onLeaveCancelled:Or,onBeforeAppear:Or,onAppear:Or,onAfterAppear:Or,onAppearCancelled:Or},setup(e,{slots:t}){const n=Ko(),r=am();let o;return()=>{const s=t.default&&sd(t.default(),!0);if(!s||!s.length)return;let l=s[0];if(s.length>1){for(const w of s)if(w.type!==Rn){l=w;break}}const a=Ue(e),{mode:c}=a;if(r.isLeaving)return up(l);const f=Zy(l);if(!f)return up(l);const p=Vs(f,a,r,n);rs(f,p);const h=n.subTree,v=h&&Zy(h);let y=!1;const{getTransitionKey:_}=f.type;if(_){const w=_();o===void 0?o=w:w!==o&&(o=w,y=!0)}if(v&&v.type!==Rn&&(!Kr(f,v)||y)){const w=Vs(v,a,r,n);if(rs(v,w),c==="out-in")return r.isLeaving=!0,w.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},up(l);c==="in-out"&&f.type!==Rn&&(w.delayLeave=(I,O,S)=>{const E=F_(r,v);E[String(v.key)]=v,I._leaveCb=()=>{O(),I._leaveCb=void 0,delete p.delayedLeave},p.delayedLeave=S})}return l}}},um=tR;function F_(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Vs(e,t,n,r){const{appear:o,mode:s,persisted:l=!1,onBeforeEnter:a,onEnter:c,onAfterEnter:f,onEnterCancelled:p,onBeforeLeave:h,onLeave:v,onAfterLeave:y,onLeaveCancelled:_,onBeforeAppear:w,onAppear:I,onAfterAppear:O,onAppearCancelled:S}=t,E=String(e.key),T=F_(n,e),$=(A,H)=>{A&&mr(A,r,9,H)},P=(A,H)=>{const D=H[1];$(A,H),Je(A)?A.every(F=>F.length<=1)&&D():A.length<=1&&D()},k={mode:s,persisted:l,beforeEnter(A){let H=a;if(!n.isMounted)if(o)H=w||a;else return;A._leaveCb&&A._leaveCb(!0);const D=T[E];D&&Kr(e,D)&&D.el._leaveCb&&D.el._leaveCb(),$(H,[A])},enter(A){let H=c,D=f,F=p;if(!n.isMounted)if(o)H=I||c,D=O||f,F=S||p;else return;let z=!1;const K=A._enterCb=te=>{z||(z=!0,te?$(F,[A]):$(D,[A]),k.delayedLeave&&k.delayedLeave(),A._enterCb=void 0)};H?P(H,[A,K]):K()},leave(A,H){const D=String(e.key);if(A._enterCb&&A._enterCb(!0),n.isUnmounting)return H();$(h,[A]);let F=!1;const z=A._leaveCb=K=>{F||(F=!0,H(),K?$(_,[A]):$(y,[A]),A._leaveCb=void 0,T[D]===e&&delete T[D])};T[D]=e,v?P(v,[A,z]):z()},clone(A){return Vs(A,t,n,r)}};return k}function up(e){if(Ca(e))return e=Dr(e),e.children=null,e}function Zy(e){return Ca(e)?e.children?e.children[0]:void 0:e}function rs(e,t){e.shapeFlag&6&&e.component?rs(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function sd(e,t=!1,n){let r=[],o=0;for(let s=0;s<e.length;s++){let l=e[s];const a=n==null?l.key:String(n)+String(l.key!=null?l.key:s);l.type===Fe?(l.patchFlag&128&&o++,r=r.concat(sd(l.children,t,a))):(t||l.type!==Rn)&&r.push(a!=null?Dr(l,{key:a}):l)}if(o>1)for(let s=0;s<r.length;s++)r[s].patchFlag=-2;return r}function ve(e){return et(e)?{setup:e,name:e.name}:e}const Ji=e=>!!e.type.__asyncLoader;function nR(e){et(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:o=200,timeout:s,suspensible:l=!0,onError:a}=e;let c=null,f,p=0;const h=()=>(p++,c=null,v()),v=()=>{let y;return c||(y=c=t().catch(_=>{if(_=_ instanceof Error?_:new Error(String(_)),a)return new Promise((w,I)=>{a(_,()=>w(h()),()=>I(_),p+1)});throw _}).then(_=>y!==c&&c?c:(_&&(_.__esModule||_[Symbol.toStringTag]==="Module")&&(_=_.default),f=_,_)))};return ve({name:"AsyncComponentWrapper",__asyncLoader:v,get __asyncResolved(){return f},setup(){const y=Xt;if(f)return()=>cp(f,y);const _=S=>{c=null,us(S,y,13,!r)};if(l&&y.suspense||Ws)return v().then(S=>()=>cp(S,y)).catch(S=>(_(S),()=>r?q(r,{error:S}):null));const w=_e(!1),I=_e(),O=_e(!!o);return o&&setTimeout(()=>{O.value=!1},o),s!=null&&setTimeout(()=>{if(!w.value&&!I.value){const S=new Error(`Async component timed out after ${s}ms.`);_(S),I.value=S}},s),v().then(()=>{w.value=!0,y.parent&&Ca(y.parent.vnode)&&rd(y.parent.update)}).catch(S=>{_(S),I.value=S}),()=>{if(w.value&&f)return cp(f,y);if(I.value&&r)return q(r,{error:I.value});if(n&&!O.value)return q(n)}}})}function cp(e,t){const{ref:n,props:r,children:o,ce:s}=t.vnode,l=q(e,r,o);return l.ref=n,l.ce=s,delete t.vnode.ce,l}const Ca=e=>e.type.__isKeepAlive,rR={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Ko(),r=n.ctx;if(!r.renderer)return()=>{const S=t.default&&t.default();return S&&S.length===1?S[0]:S};const o=new Map,s=new Set;let l=null;const a=n.suspense,{renderer:{p:c,m:f,um:p,o:{createElement:h}}}=r,v=h("div");r.activate=(S,E,T,$,P)=>{const k=S.component;f(S,E,T,0,a),c(k.vnode,S,E,T,k,a,$,S.slotScopeIds,P),Sn(()=>{k.isDeactivated=!1,k.a&&Vl(k.a);const A=S.props&&S.props.onVnodeMounted;A&&Xn(A,k.parent,S)},a)},r.deactivate=S=>{const E=S.component;f(S,v,null,1,a),Sn(()=>{E.da&&Vl(E.da);const T=S.props&&S.props.onVnodeUnmounted;T&&Xn(T,E.parent,S),E.isDeactivated=!0},a)};function y(S){dp(S),p(S,n,a,!0)}function _(S){o.forEach((E,T)=>{const $=th(E.type);$&&(!S||!S($))&&w(T)})}function w(S){const E=o.get(S);!l||!Kr(E,l)?y(E):l&&dp(l),o.delete(S),s.delete(S)}Ft(()=>[e.include,e.exclude],([S,E])=>{S&&_(T=>Fl(S,T)),E&&_(T=>!Fl(E,T))},{flush:"post",deep:!0});let I=null;const O=()=>{I!=null&&o.set(I,fp(n.subTree))};return gt(O),ad(O),cs(()=>{o.forEach(S=>{const{subTree:E,suspense:T}=n,$=fp(E);if(S.type===$.type&&S.key===$.key){dp($);const P=$.component.da;P&&Sn(P,T);return}y(S)})}),()=>{if(I=null,!t.default)return null;const S=t.default(),E=S[0];if(S.length>1)return l=null,S;if(!gi(E)||!(E.shapeFlag&4)&&!(E.shapeFlag&128))return l=null,E;let T=fp(E);const $=T.type,P=th(Ji(T)?T.type.__asyncResolved||{}:$),{include:k,exclude:A,max:H}=e;if(k&&(!P||!Fl(k,P))||A&&P&&Fl(A,P))return l=T,E;const D=T.key==null?$:T.key,F=o.get(D);return T.el&&(T=Dr(T),E.shapeFlag&128&&(E.ssContent=T)),I=D,F?(T.el=F.el,T.component=F.component,T.transition&&rs(T,T.transition),T.shapeFlag|=512,s.delete(D),s.add(D)):(s.add(D),H&&s.size>parseInt(H,10)&&w(s.values().next().value)),T.shapeFlag|=256,l=T,L_(E.type)?E:T}}},oR=rR;function Fl(e,t){return Je(e)?e.some(n=>Fl(n,t)):on(e)?e.split(",").includes(t):jP(e)?e.test(t):!1}function B_(e,t){j_(e,"a",t)}function U_(e,t){j_(e,"da",t)}function j_(e,t,n=Xt){const r=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(ld(t,r,n),n){let o=n.parent;for(;o&&o.parent;)Ca(o.parent.vnode)&&iR(r,t,n,o),o=o.parent}}function iR(e,t,n,r){const o=ld(t,e,r,!0);Zt(()=>{Wh(r[t],o)},n)}function dp(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function fp(e){return e.shapeFlag&128?e.ssContent:e}function ld(e,t,n=Xt,r=!1){if(n){const o=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...l)=>{if(n.isUnmounted)return;sl(),yi(n);const a=mr(t,n,e,l);return hi(),ll(),a});return r?o.unshift(s):o.push(s),s}}const qo=e=>(t,n=Xt)=>(!Ws||e==="sp")&&ld(e,(...r)=>t(...r),n),H_=qo("bm"),gt=qo("m"),V_=qo("bu"),ad=qo("u"),cs=qo("bum"),Zt=qo("um"),W_=qo("sp"),z_=qo("rtg"),q_=qo("rtc");function K_(e,t=Xt){ld("ec",e,t)}function G_(e,t){const n=xn;if(n===null)return e;const r=cd(n)||n.proxy,o=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[l,a,c,f=Ut]=t[s];l&&(et(l)&&(l={mounted:l,updated:l}),l.deep&&zi(a),o.push({dir:l,instance:r,value:a,oldValue:void 0,arg:c,modifiers:f}))}return e}function mo(e,t,n,r){const o=e.dirs,s=t&&t.dirs;for(let l=0;l<o.length;l++){const a=o[l];s&&(a.oldValue=s[l].value);let c=a.dir[r];c&&(sl(),mr(c,n,8,[e.el,a,e,t]),ll())}}const cm="components",sR="directives";function X(e,t){return dm(cm,e,!0,t)||e}const X_=Symbol();function lR(e){return on(e)?dm(cm,e,!1)||e:e||X_}function aR(e){return dm(sR,e)}function dm(e,t,n=!0,r=!1){const o=xn||Xt;if(o){const s=o.type;if(e===cm){const a=th(s,!1);if(a&&(a===t||a===eo(t)||a===Jc(eo(t))))return s}const l=Qy(o[e]||s[e],t)||Qy(o.appContext[e],t);return!l&&r?s:l}}function Qy(e,t){return e&&(e[t]||e[eo(t)]||e[Jc(eo(t))])}function Mt(e,t,n,r){let o;const s=n&&n[r];if(Je(e)||on(e)){o=new Array(e.length);for(let l=0,a=e.length;l<a;l++)o[l]=t(e[l],l,void 0,s&&s[l])}else if(typeof e=="number"){o=new Array(e);for(let l=0;l<e;l++)o[l]=t(l+1,l,void 0,s&&s[l])}else if(qt(e))if(e[Symbol.iterator])o=Array.from(e,(l,a)=>t(l,a,void 0,s&&s[a]));else{const l=Object.keys(e);o=new Array(l.length);for(let a=0,c=l.length;a<c;a++){const f=l[a];o[a]=t(e[f],f,a,s&&s[a])}}else o=[];return n&&(n[r]=o),o}function uR(e,t){for(let n=0;n<t.length;n++){const r=t[n];if(Je(r))for(let o=0;o<r.length;o++)e[r[o].name]=r[o].fn;else r&&(e[r.name]=r.key?(...o)=>{const s=r.fn(...o);return s&&(s.key=r.key),s}:r.fn)}return e}function gr(e,t,n={},r,o){if(xn.isCE||xn.parent&&Ji(xn.parent)&&xn.parent.isCE)return t!=="default"&&(n.name=t),q("slot",n,r&&r());let s=e[t];s&&s._c&&(s._d=!1),N();const l=s&&J_(s(n)),a=bt(Fe,{key:n.key||l&&l.key||`_${t}`},l||(r?r():[]),l&&e._===1?64:-2);return!o&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),s&&s._c&&(s._d=!0),a}function J_(e){return e.some(t=>gi(t)?!(t.type===Rn||t.type===Fe&&!J_(t.children)):!0)?e:null}function cR(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:Hl(r)]=e[r];return n}const qp=e=>e?mw(e)?cd(e)||e.proxy:qp(e.parent):null,Wl=$n(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=>qp(e.parent),$root:e=>qp(e.root),$emit:e=>e.emit,$options:e=>fm(e),$forceUpdate:e=>e.f||(e.f=()=>rd(e.update)),$nextTick:e=>e.n||(e.n=rn.bind(e.proxy)),$watch:e=>eR.bind(e)}),pp=(e,t)=>e!==Ut&&!e.__isScriptSetup&&_t(e,t),Kp={get({_:e},t){const{ctx:n,setupState:r,data:o,props:s,accessCache:l,type:a,appContext:c}=e;let f;if(t[0]!=="$"){const y=l[t];if(y!==void 0)switch(y){case 1:return r[t];case 2:return o[t];case 4:return n[t];case 3:return s[t]}else{if(pp(r,t))return l[t]=1,r[t];if(o!==Ut&&_t(o,t))return l[t]=2,o[t];if((f=e.propsOptions[0])&&_t(f,t))return l[t]=3,s[t];if(n!==Ut&&_t(n,t))return l[t]=4,n[t];Gp&&(l[t]=0)}}const p=Wl[t];let h,v;if(p)return t==="$attrs"&&tr(e,"get",t),p(e);if((h=a.__cssModules)&&(h=h[t]))return h;if(n!==Ut&&_t(n,t))return l[t]=4,n[t];if(v=c.config.globalProperties,_t(v,t))return v[t]},set({_:e},t,n){const{data:r,setupState:o,ctx:s}=e;return pp(o,t)?(o[t]=n,!0):r!==Ut&&_t(r,t)?(r[t]=n,!0):_t(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,propsOptions:s}},l){let a;return!!n[l]||e!==Ut&&_t(e,l)||pp(t,l)||(a=s[0])&&_t(a,l)||_t(r,l)||_t(Wl,l)||_t(o.config.globalProperties,l)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:_t(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},dR=$n({},Kp,{get(e,t){if(t!==Symbol.unscopables)return Kp.get(e,t,e)},has(e,t){return t[0]!=="_"&&!kP(t)}});let Gp=!0;function fR(e){const t=fm(e),n=e.proxy,r=e.ctx;Gp=!1,t.beforeCreate&&eb(t.beforeCreate,e,"bc");const{data:o,computed:s,methods:l,watch:a,provide:c,inject:f,created:p,beforeMount:h,mounted:v,beforeUpdate:y,updated:_,activated:w,deactivated:I,beforeDestroy:O,beforeUnmount:S,destroyed:E,unmounted:T,render:$,renderTracked:P,renderTriggered:k,errorCaptured:A,serverPrefetch:H,expose:D,inheritAttrs:F,components:z,directives:K,filters:te}=t;if(f&&pR(f,r,null,e.appContext.config.unwrapInjectedRef),l)for(const Oe in l){const Ae=l[Oe];et(Ae)&&(r[Oe]=Ae.bind(n))}if(o){const Oe=o.call(n,n);qt(Oe)&&(e.data=Si(Oe))}if(Gp=!0,s)for(const Oe in s){const Ae=s[Oe],Ye=et(Ae)?Ae.bind(n,n):et(Ae.get)?Ae.get.bind(n,n):Xr,ft=!et(Ae)&&et(Ae.set)?Ae.set.bind(n):Xr,Le=ce({get:Ye,set:ft});Object.defineProperty(r,Oe,{enumerable:!0,configurable:!0,get:()=>Le.value,set:Ke=>Le.value=Ke})}if(a)for(const Oe in a)Y_(a[Oe],r,n,Oe);if(c){const Oe=et(c)?c.call(n):c;Reflect.ownKeys(Oe).forEach(Ae=>{Yt(Ae,Oe[Ae])})}p&&eb(p,e,"c");function be(Oe,Ae){Je(Ae)?Ae.forEach(Ye=>Oe(Ye.bind(n))):Ae&&Oe(Ae.bind(n))}if(be(H_,h),be(gt,v),be(V_,y),be(ad,_),be(B_,w),be(U_,I),be(K_,A),be(q_,P),be(z_,k),be(cs,S),be(Zt,T),be(W_,H),Je(D))if(D.length){const Oe=e.exposed||(e.exposed={});D.forEach(Ae=>{Object.defineProperty(Oe,Ae,{get:()=>n[Ae],set:Ye=>n[Ae]=Ye})})}else e.exposed||(e.exposed={});$&&e.render===Xr&&(e.render=$),F!=null&&(e.inheritAttrs=F),z&&(e.components=z),K&&(e.directives=K)}function pR(e,t,n=Xr,r=!1){Je(e)&&(e=Xp(e));for(const o in e){const s=e[o];let l;qt(s)?"default"in s?l=kt(s.from||o,s.default,!0):l=kt(s.from||o):l=kt(s),dn(l)&&r?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>l.value,set:a=>l.value=a}):t[o]=l}}function eb(e,t,n){mr(Je(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Y_(e,t,n,r){const o=r.includes(".")?D_(n,r):()=>n[r];if(on(e)){const s=t[e];et(s)&&Ft(o,s)}else if(et(e))Ft(o,e.bind(n));else if(qt(e))if(Je(e))e.forEach(s=>Y_(s,t,n,r));else{const s=et(e.handler)?e.handler.bind(n):t[e.handler];et(s)&&Ft(o,s,e)}}function fm(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:s,config:{optionMergeStrategies:l}}=e.appContext,a=s.get(t);let c;return a?c=a:!o.length&&!n&&!r?c=t:(c={},o.length&&o.forEach(f=>yc(c,f,l,!0)),yc(c,t,l)),qt(t)&&s.set(t,c),c}function yc(e,t,n,r=!1){const{mixins:o,extends:s}=t;s&&yc(e,s,n,!0),o&&o.forEach(l=>yc(e,l,n,!0));for(const l in t)if(!(r&&l==="expose")){const a=hR[l]||n&&n[l];e[l]=a?a(e[l],t[l]):t[l]}return e}const hR={data:tb,props:Ui,emits:Ui,methods:Ui,computed:Ui,beforeCreate:Un,created:Un,beforeMount:Un,mounted:Un,beforeUpdate:Un,updated:Un,beforeDestroy:Un,beforeUnmount:Un,destroyed:Un,unmounted:Un,activated:Un,deactivated:Un,errorCaptured:Un,serverPrefetch:Un,components:Ui,directives:Ui,watch:vR,provide:tb,inject:mR};function tb(e,t){return t?e?function(){return $n(et(e)?e.call(this,this):e,et(t)?t.call(this,this):t)}:t:e}function mR(e,t){return Ui(Xp(e),Xp(t))}function Xp(e){if(Je(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Un(e,t){return e?[...new Set([].concat(e,t))]:t}function Ui(e,t){return e?$n($n(Object.create(null),e),t):t}function vR(e,t){if(!e)return t;if(!t)return e;const n=$n(Object.create(null),e);for(const r in t)n[r]=Un(e[r],t[r]);return n}function gR(e,t,n,r=!1){const o={},s={};mc(s,ud,1),e.propsDefaults=Object.create(null),Z_(e,t,o,s);for(const l in e.propsOptions[0])l in o||(o[l]=void 0);n?e.props=r?o:$_(o):e.type.props?e.props=o:e.props=s,e.attrs=s}function yR(e,t,n,r){const{props:o,attrs:s,vnode:{patchFlag:l}}=e,a=Ue(o),[c]=e.propsOptions;let f=!1;if((r||l>0)&&!(l&16)){if(l&8){const p=e.vnode.dynamicProps;for(let h=0;h<p.length;h++){let v=p[h];if(od(e.emitsOptions,v))continue;const y=t[v];if(c)if(_t(s,v))y!==s[v]&&(s[v]=y,f=!0);else{const _=eo(v);o[_]=Jp(c,a,_,y,e,!1)}else y!==s[v]&&(s[v]=y,f=!0)}}}else{Z_(e,t,o,s)&&(f=!0);let p;for(const h in a)(!t||!_t(t,h)&&((p=Xc(h))===h||!_t(t,p)))&&(c?n&&(n[h]!==void 0||n[p]!==void 0)&&(o[h]=Jp(c,a,h,void 0,e,!0)):delete o[h]);if(s!==a)for(const h in s)(!t||!_t(t,h)&&!0)&&(delete s[h],f=!0)}f&&Vo(e,"set","$attrs")}function Z_(e,t,n,r){const[o,s]=e.propsOptions;let l=!1,a;if(t)for(let c in t){if(jl(c))continue;const f=t[c];let p;o&&_t(o,p=eo(c))?!s||!s.includes(p)?n[p]=f:(a||(a={}))[p]=f:od(e.emitsOptions,c)||(!(c in r)||f!==r[c])&&(r[c]=f,l=!0)}if(s){const c=Ue(n),f=a||Ut;for(let p=0;p<s.length;p++){const h=s[p];n[h]=Jp(o,c,h,f[h],e,!_t(f,h))}}return l}function Jp(e,t,n,r,o,s){const l=e[n];if(l!=null){const a=_t(l,"default");if(a&&r===void 0){const c=l.default;if(l.type!==Function&&et(c)){const{propsDefaults:f}=o;n in f?r=f[n]:(yi(o),r=f[n]=c.call(null,t),hi())}else r=c}l[0]&&(s&&!a?r=!1:l[1]&&(r===""||r===Xc(n))&&(r=!0))}return r}function Q_(e,t,n=!1){const r=t.propsCache,o=r.get(e);if(o)return o;const s=e.props,l={},a=[];let c=!1;if(!et(e)){const p=h=>{c=!0;const[v,y]=Q_(h,t,!0);$n(l,v),y&&a.push(...y)};!n&&t.mixins.length&&t.mixins.forEach(p),e.extends&&p(e.extends),e.mixins&&e.mixins.forEach(p)}if(!s&&!c)return qt(e)&&r.set(e,Ns),Ns;if(Je(s))for(let p=0;p<s.length;p++){const h=eo(s[p]);nb(h)&&(l[h]=Ut)}else if(s)for(const p in s){const h=eo(p);if(nb(h)){const v=s[p],y=l[h]=Je(v)||et(v)?{type:v}:Object.assign({},v);if(y){const _=ib(Boolean,y.type),w=ib(String,y.type);y[0]=_>-1,y[1]=w<0||_<w,(_>-1||_t(y,"default"))&&a.push(h)}}}const f=[l,a];return qt(e)&&r.set(e,f),f}function nb(e){return e[0]!=="$"}function rb(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function ob(e,t){return rb(e)===rb(t)}function ib(e,t){return Je(t)?t.findIndex(n=>ob(n,e)):et(t)&&ob(t,e)?0:-1}const ew=e=>e[0]==="_"||e==="$stable",pm=e=>Je(e)?e.map(fr):[fr(e)],bR=(e,t,n)=>{if(t._n)return t;const r=ye((...o)=>pm(t(...o)),n);return r._c=!1,r},tw=(e,t,n)=>{const r=e._ctx;for(const o in e){if(ew(o))continue;const s=e[o];if(et(s))t[o]=bR(o,s,r);else if(s!=null){const l=pm(s);t[o]=()=>l}}},nw=(e,t)=>{const n=pm(t);e.slots.default=()=>n},_R=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=Ue(t),mc(t,"_",n)):tw(t,e.slots={})}else e.slots={},t&&nw(e,t);mc(e.slots,ud,1)},wR=(e,t,n)=>{const{vnode:r,slots:o}=e;let s=!0,l=Ut;if(r.shapeFlag&32){const a=t._;a?n&&a===1?s=!1:($n(o,t),!n&&a===1&&delete o._):(s=!t.$stable,tw(t,o)),l=t}else t&&(nw(e,t),l={default:1});if(s)for(const a in o)!ew(a)&&!(a in l)&&delete o[a]};function rw(){return{app:null,config:{isNativeTag:FP,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 SR=0;function ER(e,t){return function(r,o=null){et(r)||(r=Object.assign({},r)),o!=null&&!qt(o)&&(o=null);const s=rw(),l=new Set;let a=!1;const c=s.app={_uid:SR++,_component:r,_props:o,_container:null,_context:s,_instance:null,version:$w,get config(){return s.config},set config(f){},use(f,...p){return l.has(f)||(f&&et(f.install)?(l.add(f),f.install(c,...p)):et(f)&&(l.add(f),f(c,...p))),c},mixin(f){return s.mixins.includes(f)||s.mixins.push(f),c},component(f,p){return p?(s.components[f]=p,c):s.components[f]},directive(f,p){return p?(s.directives[f]=p,c):s.directives[f]},mount(f,p,h){if(!a){const v=q(r,o);return v.appContext=s,p&&t?t(v,f):e(v,f,h),a=!0,c._container=f,f.__vue_app__=c,cd(v.component)||v.component.proxy}},unmount(){a&&(e(null,c._container),delete c._container.__vue_app__)},provide(f,p){return s.provides[f]=p,c}};return c}}function bc(e,t,n,r,o=!1){if(Je(e)){e.forEach((v,y)=>bc(v,t&&(Je(t)?t[y]:t),n,r,o));return}if(Ji(r)&&!o)return;const s=r.shapeFlag&4?cd(r.component)||r.component.proxy:r.el,l=o?null:s,{i:a,r:c}=e,f=t&&t.r,p=a.refs===Ut?a.refs={}:a.refs,h=a.setupState;if(f!=null&&f!==c&&(on(f)?(p[f]=null,_t(h,f)&&(h[f]=null)):dn(f)&&(f.value=null)),et(c))Uo(c,a,12,[l,p]);else{const v=on(c),y=dn(c);if(v||y){const _=()=>{if(e.f){const w=v?_t(h,c)?h[c]:p[c]:c.value;o?Je(w)&&Wh(w,s):Je(w)?w.includes(s)||w.push(s):v?(p[c]=[s],_t(h,c)&&(h[c]=p[c])):(c.value=[s],e.k&&(p[e.k]=c.value))}else v?(p[c]=l,_t(h,c)&&(h[c]=l)):y&&(c.value=l,e.k&&(p[e.k]=l))};l?(_.id=-1,Sn(_,n)):_()}}}let ii=!1;const ju=e=>/svg/.test(e.namespaceURI)&&e.tagName!=="foreignObject",Hu=e=>e.nodeType===8;function xR(e){const{mt:t,p:n,o:{patchProp:r,createText:o,nextSibling:s,parentNode:l,remove:a,insert:c,createComment:f}}=e,p=(O,S)=>{if(!S.hasChildNodes()){n(null,O,S),gc(),S._vnode=O;return}ii=!1,h(S.firstChild,O,null,null,null),gc(),S._vnode=O,ii&&console.error("Hydration completed but contains mismatches.")},h=(O,S,E,T,$,P=!1)=>{const k=Hu(O)&&O.data==="[",A=()=>w(O,S,E,T,$,k),{type:H,ref:D,shapeFlag:F,patchFlag:z}=S;let K=O.nodeType;S.el=O,z===-2&&(P=!1,S.dynamicChildren=null);let te=null;switch(H){case os:K!==3?S.children===""?(c(S.el=o(""),l(O),O),te=O):te=A():(O.data!==S.children&&(ii=!0,O.data=S.children),te=s(O));break;case Rn:K!==8||k?te=A():te=s(O);break;case Yi:if(k&&(O=s(O),K=O.nodeType),K===1||K===3){te=O;const we=!S.children.length;for(let be=0;be<S.staticCount;be++)we&&(S.children+=te.nodeType===1?te.outerHTML:te.data),be===S.staticCount-1&&(S.anchor=te),te=s(te);return k?s(te):te}else A();break;case Fe:k?te=_(O,S,E,T,$,P):te=A();break;default:if(F&1)K!==1||S.type.toLowerCase()!==O.tagName.toLowerCase()?te=A():te=v(O,S,E,T,$,P);else if(F&6){S.slotScopeIds=$;const we=l(O);if(t(S,we,null,E,T,ju(we),P),te=k?I(O):s(O),te&&Hu(te)&&te.data==="teleport end"&&(te=s(te)),Ji(S)){let be;k?(be=q(Fe),be.anchor=te?te.previousSibling:we.lastChild):be=O.nodeType===3?Ge(""):q("div"),be.el=O,S.component.subTree=be}}else F&64?K!==8?te=A():te=S.type.hydrate(O,S,E,T,$,P,e,y):F&128&&(te=S.type.hydrate(O,S,E,T,ju(l(O)),$,P,e,h))}return D!=null&&bc(D,null,T,S),te},v=(O,S,E,T,$,P)=>{P=P||!!S.dynamicChildren;const{type:k,props:A,patchFlag:H,shapeFlag:D,dirs:F}=S,z=k==="input"&&F||k==="option";if(z||H!==-1){if(F&&mo(S,null,E,"created"),A)if(z||!P||H&48)for(const te in A)(z&&te.endsWith("value")||Kc(te)&&!jl(te))&&r(O,te,null,A[te],!1,void 0,E);else A.onClick&&r(O,"onClick",null,A.onClick,!1,void 0,E);let K;if((K=A&&A.onVnodeBeforeMount)&&Xn(K,E,S),F&&mo(S,null,E,"beforeMount"),((K=A&&A.onVnodeMounted)||F)&&N_(()=>{K&&Xn(K,E,S),F&&mo(S,null,E,"mounted")},T),D&16&&!(A&&(A.innerHTML||A.textContent))){let te=y(O.firstChild,S,O,E,T,$,P);for(;te;){ii=!0;const we=te;te=te.nextSibling,a(we)}}else D&8&&O.textContent!==S.children&&(ii=!0,O.textContent=S.children)}return O.nextSibling},y=(O,S,E,T,$,P,k)=>{k=k||!!S.dynamicChildren;const A=S.children,H=A.length;for(let D=0;D<H;D++){const F=k?A[D]:A[D]=fr(A[D]);if(O)O=h(O,F,T,$,P,k);else{if(F.type===os&&!F.children)continue;ii=!0,n(null,F,E,null,T,$,ju(E),P)}}return O},_=(O,S,E,T,$,P)=>{const{slotScopeIds:k}=S;k&&($=$?$.concat(k):k);const A=l(O),H=y(s(O),S,A,E,T,$,P);return H&&Hu(H)&&H.data==="]"?s(S.anchor=H):(ii=!0,c(S.anchor=f("]"),A,H),H)},w=(O,S,E,T,$,P)=>{if(ii=!0,S.el=null,P){const H=I(O);for(;;){const D=s(O);if(D&&D!==H)a(D);else break}}const k=s(O),A=l(O);return a(O),n(null,S,A,k,E,T,ju(A),$),k},I=O=>{let S=0;for(;O;)if(O=s(O),O&&Hu(O)&&(O.data==="["&&S++,O.data==="]")){if(S===0)return s(O);S--}return O};return[p,h]}const Sn=N_;function ow(e){return sw(e)}function iw(e){return sw(e,xR)}function sw(e,t){const n=KP();n.__VUE__=!0;const{insert:r,remove:o,patchProp:s,createElement:l,createText:a,createComment:c,setText:f,setElementText:p,parentNode:h,nextSibling:v,setScopeId:y=Xr,insertStaticContent:_}=e,w=(L,B,Z,le=null,ie=null,pe=null,Ee=!1,he=null,me=!!B.dynamicChildren)=>{if(L===B)return;L&&!Kr(L,B)&&(le=He(L),Ke(L,ie,pe,!0),L=null),B.patchFlag===-2&&(me=!1,B.dynamicChildren=null);const{type:se,ref:Re,shapeFlag:Pe}=B;switch(se){case os:I(L,B,Z,le);break;case Rn:O(L,B,Z,le);break;case Yi:L==null&&S(B,Z,le,Ee);break;case Fe:z(L,B,Z,le,ie,pe,Ee,he,me);break;default:Pe&1?$(L,B,Z,le,ie,pe,Ee,he,me):Pe&6?K(L,B,Z,le,ie,pe,Ee,he,me):(Pe&64||Pe&128)&&se.process(L,B,Z,le,ie,pe,Ee,he,me,tt)}Re!=null&&ie&&bc(Re,L&&L.ref,pe,B||L,!B)},I=(L,B,Z,le)=>{if(L==null)r(B.el=a(B.children),Z,le);else{const ie=B.el=L.el;B.children!==L.children&&f(ie,B.children)}},O=(L,B,Z,le)=>{L==null?r(B.el=c(B.children||""),Z,le):B.el=L.el},S=(L,B,Z,le)=>{[L.el,L.anchor]=_(L.children,B,Z,le,L.el,L.anchor)},E=({el:L,anchor:B},Z,le)=>{let ie;for(;L&&L!==B;)ie=v(L),r(L,Z,le),L=ie;r(B,Z,le)},T=({el:L,anchor:B})=>{let Z;for(;L&&L!==B;)Z=v(L),o(L),L=Z;o(B)},$=(L,B,Z,le,ie,pe,Ee,he,me)=>{Ee=Ee||B.type==="svg",L==null?P(B,Z,le,ie,pe,Ee,he,me):H(L,B,ie,pe,Ee,he,me)},P=(L,B,Z,le,ie,pe,Ee,he)=>{let me,se;const{type:Re,props:Pe,shapeFlag:Me,transition:je,dirs:rt}=L;if(me=L.el=l(L.type,pe,Pe&&Pe.is,Pe),Me&8?p(me,L.children):Me&16&&A(L.children,me,null,le,ie,pe&&Re!=="foreignObject",Ee,he),rt&&mo(L,null,le,"created"),k(me,L,L.scopeId,Ee,le),Pe){for(const ct in Pe)ct!=="value"&&!jl(ct)&&s(me,ct,null,Pe[ct],pe,L.children,le,ie,Se);"value"in Pe&&s(me,"value",null,Pe.value),(se=Pe.onVnodeBeforeMount)&&Xn(se,le,L)}rt&&mo(L,null,le,"beforeMount");const mt=(!ie||ie&&!ie.pendingBranch)&&je&&!je.persisted;mt&&je.beforeEnter(me),r(me,B,Z),((se=Pe&&Pe.onVnodeMounted)||mt||rt)&&Sn(()=>{se&&Xn(se,le,L),mt&&je.enter(me),rt&&mo(L,null,le,"mounted")},ie)},k=(L,B,Z,le,ie)=>{if(Z&&y(L,Z),le)for(let pe=0;pe<le.length;pe++)y(L,le[pe]);if(ie){let pe=ie.subTree;if(B===pe){const Ee=ie.vnode;k(L,Ee,Ee.scopeId,Ee.slotScopeIds,ie.parent)}}},A=(L,B,Z,le,ie,pe,Ee,he,me=0)=>{for(let se=me;se<L.length;se++){const Re=L[se]=he?ui(L[se]):fr(L[se]);w(null,Re,B,Z,le,ie,pe,Ee,he)}},H=(L,B,Z,le,ie,pe,Ee)=>{const he=B.el=L.el;let{patchFlag:me,dynamicChildren:se,dirs:Re}=B;me|=L.patchFlag&16;const Pe=L.props||Ut,Me=B.props||Ut;let je;Z&&Mi(Z,!1),(je=Me.onVnodeBeforeUpdate)&&Xn(je,Z,B,L),Re&&mo(B,L,Z,"beforeUpdate"),Z&&Mi(Z,!0);const rt=ie&&B.type!=="foreignObject";if(se?D(L.dynamicChildren,se,he,Z,le,rt,pe):Ee||Ae(L,B,he,null,Z,le,rt,pe,!1),me>0){if(me&16)F(he,B,Pe,Me,Z,le,ie);else if(me&2&&Pe.class!==Me.class&&s(he,"class",null,Me.class,ie),me&4&&s(he,"style",Pe.style,Me.style,ie),me&8){const mt=B.dynamicProps;for(let ct=0;ct<mt.length;ct++){const Ht=mt[ct],Mn=Pe[Ht],uo=Me[Ht];(uo!==Mn||Ht==="value")&&s(he,Ht,Mn,uo,ie,L.children,Z,le,Se)}}me&1&&L.children!==B.children&&p(he,B.children)}else!Ee&&se==null&&F(he,B,Pe,Me,Z,le,ie);((je=Me.onVnodeUpdated)||Re)&&Sn(()=>{je&&Xn(je,Z,B,L),Re&&mo(B,L,Z,"updated")},le)},D=(L,B,Z,le,ie,pe,Ee)=>{for(let he=0;he<B.length;he++){const me=L[he],se=B[he],Re=me.el&&(me.type===Fe||!Kr(me,se)||me.shapeFlag&70)?h(me.el):Z;w(me,se,Re,null,le,ie,pe,Ee,!0)}},F=(L,B,Z,le,ie,pe,Ee)=>{if(Z!==le){if(Z!==Ut)for(const he in Z)!jl(he)&&!(he in le)&&s(L,he,Z[he],null,Ee,B.children,ie,pe,Se);for(const he in le){if(jl(he))continue;const me=le[he],se=Z[he];me!==se&&he!=="value"&&s(L,he,se,me,Ee,B.children,ie,pe,Se)}"value"in le&&s(L,"value",Z.value,le.value)}},z=(L,B,Z,le,ie,pe,Ee,he,me)=>{const se=B.el=L?L.el:a(""),Re=B.anchor=L?L.anchor:a("");let{patchFlag:Pe,dynamicChildren:Me,slotScopeIds:je}=B;je&&(he=he?he.concat(je):je),L==null?(r(se,Z,le),r(Re,Z,le),A(B.children,Z,Re,ie,pe,Ee,he,me)):Pe>0&&Pe&64&&Me&&L.dynamicChildren?(D(L.dynamicChildren,Me,Z,ie,pe,Ee,he),(B.key!=null||ie&&B===ie.subTree)&&hm(L,B,!0)):Ae(L,B,Z,Re,ie,pe,Ee,he,me)},K=(L,B,Z,le,ie,pe,Ee,he,me)=>{B.slotScopeIds=he,L==null?B.shapeFlag&512?ie.ctx.activate(B,Z,le,Ee,me):te(B,Z,le,ie,pe,Ee,me):we(L,B,me)},te=(L,B,Z,le,ie,pe,Ee)=>{const he=L.component=hw(L,le,ie);if(Ca(L)&&(he.ctx.renderer=tt),vw(he),he.asyncDep){if(ie&&ie.registerDep(he,be),!L.el){const me=he.subTree=q(Rn);O(null,me,B,Z)}return}be(he,L,B,Z,ie,pe,Ee)},we=(L,B,Z)=>{const le=B.component=L.component;if(qk(L,B,Z))if(le.asyncDep&&!le.asyncResolved){Oe(le,B,Z);return}else le.next=B,Dk(le.update),le.update();else B.el=L.el,le.vnode=B},be=(L,B,Z,le,ie,pe,Ee)=>{const he=()=>{if(L.isMounted){let{next:Re,bu:Pe,u:Me,parent:je,vnode:rt}=L,mt=Re,ct;Mi(L,!1),Re?(Re.el=rt.el,Oe(L,Re,Ee)):Re=rt,Pe&&Vl(Pe),(ct=Re.props&&Re.props.onVnodeBeforeUpdate)&&Xn(ct,je,Re,rt),Mi(L,!0);const Ht=tc(L),Mn=L.subTree;L.subTree=Ht,w(Mn,Ht,h(Mn.el),He(Mn),L,ie,pe),Re.el=Ht.el,mt===null&&sm(L,Ht.el),Me&&Sn(Me,ie),(ct=Re.props&&Re.props.onVnodeUpdated)&&Sn(()=>Xn(ct,je,Re,rt),ie)}else{let Re;const{el:Pe,props:Me}=B,{bm:je,m:rt,parent:mt}=L,ct=Ji(B);if(Mi(L,!1),je&&Vl(je),!ct&&(Re=Me&&Me.onVnodeBeforeMount)&&Xn(Re,mt,B),Mi(L,!0),Pe&&ln){const Ht=()=>{L.subTree=tc(L),ln(Pe,L.subTree,L,ie,null)};ct?B.type.__asyncLoader().then(()=>!L.isUnmounted&&Ht()):Ht()}else{const Ht=L.subTree=tc(L);w(null,Ht,Z,le,L,ie,pe),B.el=Ht.el}if(rt&&Sn(rt,ie),!ct&&(Re=Me&&Me.onVnodeMounted)){const Ht=B;Sn(()=>Xn(Re,mt,Ht),ie)}(B.shapeFlag&256||mt&&Ji(mt.vnode)&&mt.vnode.shapeFlag&256)&&L.a&&Sn(L.a,ie),L.isMounted=!0,B=Z=le=null}},me=L.effect=new xa(he,()=>rd(se),L.scope),se=L.update=()=>me.run();se.id=L.uid,Mi(L,!0),se()},Oe=(L,B,Z)=>{B.component=L;const le=L.vnode.props;L.vnode=B,L.next=null,yR(L,B.props,le,Z),wR(L,B.children,Z),sl(),Xy(),ll()},Ae=(L,B,Z,le,ie,pe,Ee,he,me=!1)=>{const se=L&&L.children,Re=L?L.shapeFlag:0,Pe=B.children,{patchFlag:Me,shapeFlag:je}=B;if(Me>0){if(Me&128){ft(se,Pe,Z,le,ie,pe,Ee,he,me);return}else if(Me&256){Ye(se,Pe,Z,le,ie,pe,Ee,he,me);return}}je&8?(Re&16&&Se(se,ie,pe),Pe!==se&&p(Z,Pe)):Re&16?je&16?ft(se,Pe,Z,le,ie,pe,Ee,he,me):Se(se,ie,pe,!0):(Re&8&&p(Z,""),je&16&&A(Pe,Z,le,ie,pe,Ee,he,me))},Ye=(L,B,Z,le,ie,pe,Ee,he,me)=>{L=L||Ns,B=B||Ns;const se=L.length,Re=B.length,Pe=Math.min(se,Re);let Me;for(Me=0;Me<Pe;Me++){const je=B[Me]=me?ui(B[Me]):fr(B[Me]);w(L[Me],je,Z,null,ie,pe,Ee,he,me)}se>Re?Se(L,ie,pe,!0,!1,Pe):A(B,Z,le,ie,pe,Ee,he,me,Pe)},ft=(L,B,Z,le,ie,pe,Ee,he,me)=>{let se=0;const Re=B.length;let Pe=L.length-1,Me=Re-1;for(;se<=Pe&&se<=Me;){const je=L[se],rt=B[se]=me?ui(B[se]):fr(B[se]);if(Kr(je,rt))w(je,rt,Z,null,ie,pe,Ee,he,me);else break;se++}for(;se<=Pe&&se<=Me;){const je=L[Pe],rt=B[Me]=me?ui(B[Me]):fr(B[Me]);if(Kr(je,rt))w(je,rt,Z,null,ie,pe,Ee,he,me);else break;Pe--,Me--}if(se>Pe){if(se<=Me){const je=Me+1,rt=je<Re?B[je].el:le;for(;se<=Me;)w(null,B[se]=me?ui(B[se]):fr(B[se]),Z,rt,ie,pe,Ee,he,me),se++}}else if(se>Me)for(;se<=Pe;)Ke(L[se],ie,pe,!0),se++;else{const je=se,rt=se,mt=new Map;for(se=rt;se<=Me;se++){const gn=B[se]=me?ui(B[se]):fr(B[se]);gn.key!=null&&mt.set(gn.key,se)}let ct,Ht=0;const Mn=Me-rt+1;let uo=!1,ms=0;const $o=new Array(Mn);for(se=0;se<Mn;se++)$o[se]=0;for(se=je;se<=Pe;se++){const gn=L[se];if(Ht>=Mn){Ke(gn,ie,pe,!0);continue}let Wn;if(gn.key!=null)Wn=mt.get(gn.key);else for(ct=rt;ct<=Me;ct++)if($o[ct-rt]===0&&Kr(gn,B[ct])){Wn=ct;break}Wn===void 0?Ke(gn,ie,pe,!0):($o[Wn-rt]=se+1,Wn>=ms?ms=Wn:uo=!0,w(gn,B[Wn],Z,null,ie,pe,Ee,he,me),Ht++)}const vs=uo?$R($o):Ns;for(ct=vs.length-1,se=Mn-1;se>=0;se--){const gn=rt+se,Wn=B[gn],gs=gn+1<Re?B[gn+1].el:le;$o[se]===0?w(null,Wn,Z,gs,ie,pe,Ee,he,me):uo&&(ct<0||se!==vs[ct]?Le(Wn,Z,gs,2):ct--)}}},Le=(L,B,Z,le,ie=null)=>{const{el:pe,type:Ee,transition:he,children:me,shapeFlag:se}=L;if(se&6){Le(L.component.subTree,B,Z,le);return}if(se&128){L.suspense.move(B,Z,le);return}if(se&64){Ee.move(L,B,Z,tt);return}if(Ee===Fe){r(pe,B,Z);for(let Pe=0;Pe<me.length;Pe++)Le(me[Pe],B,Z,le);r(L.anchor,B,Z);return}if(Ee===Yi){E(L,B,Z);return}if(le!==2&&se&1&&he)if(le===0)he.beforeEnter(pe),r(pe,B,Z),Sn(()=>he.enter(pe),ie);else{const{leave:Pe,delayLeave:Me,afterLeave:je}=he,rt=()=>r(pe,B,Z),mt=()=>{Pe(pe,()=>{rt(),je&&je()})};Me?Me(pe,rt,mt):mt()}else r(pe,B,Z)},Ke=(L,B,Z,le=!1,ie=!1)=>{const{type:pe,props:Ee,ref:he,children:me,dynamicChildren:se,shapeFlag:Re,patchFlag:Pe,dirs:Me}=L;if(he!=null&&bc(he,null,Z,L,!0),Re&256){B.ctx.deactivate(L);return}const je=Re&1&&Me,rt=!Ji(L);let mt;if(rt&&(mt=Ee&&Ee.onVnodeBeforeUnmount)&&Xn(mt,B,L),Re&6)fe(L.component,Z,le);else{if(Re&128){L.suspense.unmount(Z,le);return}je&&mo(L,null,B,"beforeUnmount"),Re&64?L.type.remove(L,B,Z,ie,tt,le):se&&(pe!==Fe||Pe>0&&Pe&64)?Se(se,B,Z,!1,!0):(pe===Fe&&Pe&384||!ie&&Re&16)&&Se(me,B,Z),le&&Q(L)}(rt&&(mt=Ee&&Ee.onVnodeUnmounted)||je)&&Sn(()=>{mt&&Xn(mt,B,L),je&&mo(L,null,B,"unmounted")},Z)},Q=L=>{const{type:B,el:Z,anchor:le,transition:ie}=L;if(B===Fe){ae(Z,le);return}if(B===Yi){T(L);return}const pe=()=>{o(Z),ie&&!ie.persisted&&ie.afterLeave&&ie.afterLeave()};if(L.shapeFlag&1&&ie&&!ie.persisted){const{leave:Ee,delayLeave:he}=ie,me=()=>Ee(Z,pe);he?he(L.el,pe,me):me()}else pe()},ae=(L,B)=>{let Z;for(;L!==B;)Z=v(L),o(L),L=Z;o(B)},fe=(L,B,Z)=>{const{bum:le,scope:ie,update:pe,subTree:Ee,um:he}=L;le&&Vl(le),ie.stop(),pe&&(pe.active=!1,Ke(Ee,L,B,Z)),he&&Sn(he,B),Sn(()=>{L.isUnmounted=!0},B),B&&B.pendingBranch&&!B.isUnmounted&&L.asyncDep&&!L.asyncResolved&&L.suspenseId===B.pendingId&&(B.deps--,B.deps===0&&B.resolve())},Se=(L,B,Z,le=!1,ie=!1,pe=0)=>{for(let Ee=pe;Ee<L.length;Ee++)Ke(L[Ee],B,Z,le,ie)},He=L=>L.shapeFlag&6?He(L.component.subTree):L.shapeFlag&128?L.suspense.next():v(L.anchor||L.el),De=(L,B,Z)=>{L==null?B._vnode&&Ke(B._vnode,null,null,!0):w(B._vnode||null,L,B,null,null,null,Z),Xy(),gc(),B._vnode=L},tt={p:w,um:Ke,m:Le,r:Q,mt:te,mc:A,pc:Ae,pbc:D,n:He,o:e};let vn,ln;return t&&([vn,ln]=t(tt)),{render:De,hydrate:vn,createApp:ER(De,vn)}}function Mi({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function hm(e,t,n=!1){const r=e.children,o=t.children;if(Je(r)&&Je(o))for(let s=0;s<r.length;s++){const l=r[s];let a=o[s];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=o[s]=ui(o[s]),a.el=l.el),n||hm(l,a)),a.type===os&&(a.el=l.el)}}function $R(e){const t=e.slice(),n=[0];let r,o,s,l,a;const c=e.length;for(r=0;r<c;r++){const f=e[r];if(f!==0){if(o=n[n.length-1],e[o]<f){t[r]=o,n.push(r);continue}for(s=0,l=n.length-1;s<l;)a=s+l>>1,e[n[a]]<f?s=a+1:l=a;f<e[n[s]]&&(s>0&&(t[r]=n[s-1]),n[s]=r)}}for(s=n.length,l=n[s-1];s-- >0;)n[s]=l,l=t[l];return n}const CR=e=>e.__isTeleport,zl=e=>e&&(e.disabled||e.disabled===""),sb=e=>typeof SVGElement!="undefined"&&e instanceof SVGElement,Yp=(e,t)=>{const n=e&&e.to;return on(n)?t?t(n):null:n},TR={__isTeleport:!0,process(e,t,n,r,o,s,l,a,c,f){const{mc:p,pc:h,pbc:v,o:{insert:y,querySelector:_,createText:w,createComment:I}}=f,O=zl(t.props);let{shapeFlag:S,children:E,dynamicChildren:T}=t;if(e==null){const $=t.el=w(""),P=t.anchor=w("");y($,n,r),y(P,n,r);const k=t.target=Yp(t.props,_),A=t.targetAnchor=w("");k&&(y(A,k),l=l||sb(k));const H=(D,F)=>{S&16&&p(E,D,F,o,s,l,a,c)};O?H(n,P):k&&H(k,A)}else{t.el=e.el;const $=t.anchor=e.anchor,P=t.target=e.target,k=t.targetAnchor=e.targetAnchor,A=zl(e.props),H=A?n:P,D=A?$:k;if(l=l||sb(P),T?(v(e.dynamicChildren,T,H,o,s,l,a),hm(e,t,!0)):c||h(e,t,H,D,o,s,l,a,!1),O)A||Vu(t,n,$,f,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const F=t.target=Yp(t.props,_);F&&Vu(t,F,null,f,0)}else A&&Vu(t,P,k,f,1)}aw(t)},remove(e,t,n,r,{um:o,o:{remove:s}},l){const{shapeFlag:a,children:c,anchor:f,targetAnchor:p,target:h,props:v}=e;if(h&&s(p),(l||!zl(v))&&(s(f),a&16))for(let y=0;y<c.length;y++){const _=c[y];o(_,t,n,!0,!!_.dynamicChildren)}},move:Vu,hydrate:OR};function Vu(e,t,n,{o:{insert:r},m:o},s=2){s===0&&r(e.targetAnchor,t,n);const{el:l,anchor:a,shapeFlag:c,children:f,props:p}=e,h=s===2;if(h&&r(l,t,n),(!h||zl(p))&&c&16)for(let v=0;v<f.length;v++)o(f[v],t,n,2);h&&r(a,t,n)}function OR(e,t,n,r,o,s,{o:{nextSibling:l,parentNode:a,querySelector:c}},f){const p=t.target=Yp(t.props,c);if(p){const h=p._lpa||p.firstChild;if(t.shapeFlag&16)if(zl(t.props))t.anchor=f(l(e),t,a(e),n,r,o,s),t.targetAnchor=h;else{t.anchor=l(e);let v=h;for(;v;)if(v=l(v),v&&v.nodeType===8&&v.data==="teleport anchor"){t.targetAnchor=v,p._lpa=t.targetAnchor&&l(t.targetAnchor);break}f(h,t,p,n,r,o,s)}aw(t)}return t.anchor&&l(t.anchor)}const lw=TR;function aw(e){const t=e.ctx;if(t&&t.ut){let n=e.children[0].el;for(;n!==e.targetAnchor;)n.nodeType===1&&n.setAttribute("data-v-owner",t.uid),n=n.nextSibling;t.ut()}}const Fe=Symbol(void 0),os=Symbol(void 0),Rn=Symbol(void 0),Yi=Symbol(void 0),ql=[];let Jn=null;function N(e=!1){ql.push(Jn=e?null:[])}function uw(){ql.pop(),Jn=ql[ql.length-1]||null}let is=1;function Zp(e){is+=e}function cw(e){return e.dynamicChildren=is>0?Jn||Ns:null,uw(),is>0&&Jn&&Jn.push(e),e}function V(e,t,n,r,o,s){return cw(g(e,t,n,r,o,s,!0))}function bt(e,t,n,r,o){return cw(q(e,t,n,r,o,!0))}function gi(e){return e?e.__v_isVNode===!0:!1}function Kr(e,t){return e.type===t.type&&e.key===t.key}function AR(e){}const ud="__vInternal",dw=({key:e})=>e!=null?e:null,nc=({ref:e,ref_key:t,ref_for:n})=>e!=null?on(e)||dn(e)||et(e)?{i:xn,r:e,k:t,f:!!n}:e:null;function g(e,t=null,n=null,r=0,o=null,s=e===Fe?0:1,l=!1,a=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&dw(t),ref:t&&nc(t),scopeId:id,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:xn};return a?(mm(c,n),s&128&&e.normalize(c)):n&&(c.shapeFlag|=on(n)?8:16),is>0&&!l&&Jn&&(c.patchFlag>0||s&6)&&c.patchFlag!==32&&Jn.push(c),c}const q=IR;function IR(e,t=null,n=null,r=0,o=null,s=!1){if((!e||e===X_)&&(e=Rn),gi(e)){const a=Dr(e,t,!0);return n&&mm(a,n),is>0&&!s&&Jn&&(a.shapeFlag&6?Jn[Jn.indexOf(e)]=a:Jn.push(a)),a.patchFlag|=-2,a}if(DR(e)&&(e=e.__vccOpts),t){t=fw(t);let{class:a,style:c}=t;a&&!on(a)&&(t.class=wt(a)),qt(c)&&(Zh(c)&&!Je(c)&&(c=$n({},c)),t.style=as(c))}const l=on(e)?1:L_(e)?128:CR(e)?64:qt(e)?4:et(e)?2:0;return g(e,t,n,r,o,l,s,!0)}function fw(e){return e?Zh(e)||ud in e?$n({},e):e:null}function Dr(e,t,n=!1){const{props:r,ref:o,patchFlag:s,children:l}=e,a=t?pw(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&dw(a),ref:t&&t.ref?n&&o?Je(o)?o.concat(nc(t)):[o,nc(t)]:nc(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Fe?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Dr(e.ssContent),ssFallback:e.ssFallback&&Dr(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Ge(e=" ",t=0){return q(os,null,e,t)}function PR(e,t){const n=q(Yi,null,e);return n.staticCount=t,n}function qe(e="",t=!1){return t?(N(),bt(Rn,null,e)):q(Rn,null,e)}function fr(e){return e==null||typeof e=="boolean"?q(Rn):Je(e)?q(Fe,null,e.slice()):typeof e=="object"?ui(e):q(os,null,String(e))}function ui(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Dr(e)}function mm(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(Je(t))n=16;else if(typeof t=="object")if(r&65){const o=t.default;o&&(o._c&&(o._d=!1),mm(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!(ud in t)?t._ctx=xn:o===3&&xn&&(xn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else et(t)?(t={default:t,_ctx:xn},n=32):(t=String(t),r&64?(n=16,t=[Ge(t)]):n=8);e.children=t,e.shapeFlag|=n}function pw(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const o in r)if(o==="class")t.class!==r.class&&(t.class=wt([t.class,r.class]));else if(o==="style")t.style=as([t.style,r.style]);else if(Kc(o)){const s=t[o],l=r[o];l&&s!==l&&!(Je(s)&&s.includes(l))&&(t[o]=s?[].concat(s,l):l)}else o!==""&&(t[o]=r[o])}return t}function Xn(e,t,n,r=null){mr(e,t,7,[n,r])}const kR=rw();let RR=0;function hw(e,t,n){const r=e.type,o=(t?t.appContext:e.appContext)||kR,s={uid:RR++,vnode:e,type:r,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,scope:new Gh(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Q_(r,o),emitsOptions:R_(r,o),emit:null,emitted:null,propsDefaults:Ut,inheritAttrs:r.inheritAttrs,ctx:Ut,data:Ut,props:Ut,attrs:Ut,slots:Ut,refs:Ut,setupState:Ut,setupContext:null,suspense:n,suspenseId:n?n.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 s.ctx={_:s},s.root=t?t.root:s,s.emit=Bk.bind(null,s),e.ce&&e.ce(s),s}let Xt=null;const Ko=()=>Xt||xn,yi=e=>{Xt=e,e.scope.on()},hi=()=>{Xt&&Xt.scope.off(),Xt=null};function mw(e){return e.vnode.shapeFlag&4}let Ws=!1;function vw(e,t=!1){Ws=t;const{props:n,children:r}=e.vnode,o=mw(e);gR(e,n,o,t),_R(e,r);const s=o?LR(e,t):void 0;return Ws=!1,s}function LR(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Qh(new Proxy(e.ctx,Kp));const{setup:r}=n;if(r){const o=e.setupContext=r.length>1?bw(e):null;yi(e),sl();const s=Uo(r,e,0,[e.props,o]);if(ll(),hi(),qh(s)){if(s.then(hi,hi),t)return s.then(l=>{Qp(e,l,t)}).catch(l=>{us(l,e,0)});e.asyncDep=s}else Qp(e,s,t)}else yw(e,t)}function Qp(e,t,n){et(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:qt(t)&&(e.setupState=nm(t)),yw(e,n)}let _c,eh;function gw(e){_c=e,eh=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,dR))}}const NR=()=>!_c;function yw(e,t,n){const r=e.type;if(!e.render){if(!t&&_c&&!r.render){const o=r.template||fm(e).template;if(o){const{isCustomElement:s,compilerOptions:l}=e.appContext.config,{delimiters:a,compilerOptions:c}=r,f=$n($n({isCustomElement:s,delimiters:a},l),c);r.render=_c(o,f)}}e.render=r.render||Xr,eh&&eh(e)}yi(e),sl(),fR(e),ll(),hi()}function MR(e){return new Proxy(e.attrs,{get(t,n){return tr(e,"get","$attrs"),t[n]}})}function bw(e){const t=r=>{e.exposed=r||{}};let n;return{get attrs(){return n||(n=MR(e))},slots:e.slots,emit:e.emit,expose:t}}function cd(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(nm(Qh(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Wl)return Wl[n](e)},has(t,n){return n in t||n in Wl}}))}function th(e,t=!0){return et(e)?e.displayName||e.name:e.name||t&&e.__name}function DR(e){return et(e)&&"__vccOpts"in e}const ce=(e,t)=>kk(e,t,Ws);function FR(){return null}function BR(){return null}function UR(e){}function jR(e,t){return null}function _w(){return ww().slots}function HR(){return ww().attrs}function ww(){const e=Ko();return e.setupContext||(e.setupContext=bw(e))}function VR(e,t){const n=Je(e)?e.reduce((r,o)=>(r[o]={},r),{}):e;for(const r in t){const o=n[r];o?Je(o)||et(o)?n[r]={type:o,default:t[r]}:o.default=t[r]:o===null&&(n[r]={default:t[r]})}return n}function WR(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function zR(e){const t=Ko();let n=e();return hi(),qh(n)&&(n=n.catch(r=>{throw yi(t),r})),[n,()=>yi(t)]}function dt(e,t,n){const r=arguments.length;return r===2?qt(t)&&!Je(t)?gi(t)?q(e,null,[t]):q(e,t):q(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&gi(n)&&(n=[n]),q(e,t,n))}const Sw=Symbol(""),Ew=()=>kt(Sw);function qR(){}function KR(e,t,n,r){const o=n[r];if(o&&xw(o,e))return o;const s=t();return s.memo=e.slice(),n[r]=s}function xw(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let r=0;r<n.length;r++)if(Hs(n[r],t[r]))return!1;return is>0&&Jn&&Jn.push(e),!0}const $w="3.2.47",GR={createComponentInstance:hw,setupComponent:vw,renderComponentRoot:tc,setCurrentRenderingInstance:sa,isVNode:gi,normalizeVNode:fr},XR=GR,JR=null,YR=null;function ZR(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o<r.length;o++)n[r[o]]=!0;return t?o=>!!n[o.toLowerCase()]:o=>!!n[o]}const QR="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",e4=ZR(QR);function Cw(e){return!!e||e===""}function t4(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=bi(e[r],t[r]);return n}function bi(e,t){if(e===t)return!0;let n=lb(e),r=lb(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=ab(e),r=ab(t),n||r)return e===t;if(n=nr(e),r=nr(t),n||r)return n&&r?t4(e,t):!1;if(n=nh(e),r=nh(t),n||r){if(!n||!r)return!1;const o=Object.keys(e).length,s=Object.keys(t).length;if(o!==s)return!1;for(const l in e){const a=e.hasOwnProperty(l),c=t.hasOwnProperty(l);if(a&&!c||!a&&c||!bi(e[l],t[l]))return!1}}return String(e)===String(t)}function dd(e,t){return e.findIndex(n=>bi(n,t))}const hp={},n4=/^on[^a-z]/,r4=e=>n4.test(e),o4=e=>e.startsWith("onUpdate:"),Ta=Object.assign,nr=Array.isArray,Oa=e=>Ow(e)==="[object Set]",lb=e=>Ow(e)==="[object Date]",Tw=e=>typeof e=="function",aa=e=>typeof e=="string",ab=e=>typeof e=="symbol",nh=e=>e!==null&&typeof e=="object",i4=Object.prototype.toString,Ow=e=>i4.call(e),vm=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},s4=/-(\w)/g,mp=vm(e=>e.replace(s4,(t,n)=>n?n.toUpperCase():"")),l4=/\B([A-Z])/g,ci=vm(e=>e.replace(l4,"-$1").toLowerCase()),a4=vm(e=>e.charAt(0).toUpperCase()+e.slice(1)),u4=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},rh=e=>{const t=parseFloat(e);return isNaN(t)?e:t},oh=e=>{const t=aa(e)?Number(e):NaN;return isNaN(t)?e:t},c4="http://www.w3.org/2000/svg",Vi=typeof document!="undefined"?document:null,ub=Vi&&Vi.createElement("template"),d4={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t?Vi.createElementNS(c4,e):Vi.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>Vi.createTextNode(e),createComment:e=>Vi.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Vi.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,s){const l=n?n.previousSibling:t.lastChild;if(o&&(o===s||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===s||!(o=o.nextSibling)););else{ub.innerHTML=r?`<svg>${e}</svg>`:e;const a=ub.content;if(r){const c=a.firstChild;for(;c.firstChild;)a.appendChild(c.firstChild);a.removeChild(c)}t.insertBefore(a,n)}return[l?l.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function f4(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function p4(e,t,n){const r=e.style,o=aa(n);if(n&&!o){if(t&&!aa(t))for(const s in t)n[s]==null&&ih(r,s,"");for(const s in n)ih(r,s,n[s])}else{const s=r.display;o?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=s)}}const cb=/\s*!important$/;function ih(e,t,n){if(nr(n))n.forEach(r=>ih(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=h4(e,t);cb.test(n)?e.setProperty(ci(r),n.replace(cb,""),"important"):e[r]=n}}const db=["Webkit","Moz","ms"],vp={};function h4(e,t){const n=vp[t];if(n)return n;let r=eo(t);if(r!=="filter"&&r in e)return vp[t]=r;r=a4(r);for(let o=0;o<db.length;o++){const s=db[o]+r;if(s in e)return vp[t]=s}return t}const fb="http://www.w3.org/1999/xlink";function m4(e,t,n,r,o){if(r&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(fb,t.slice(6,t.length)):e.setAttributeNS(fb,t,n);else{const s=e4(t);n==null||s&&!Cw(n)?e.removeAttribute(t):e.setAttribute(t,s?"":n)}}function v4(e,t,n,r,o,s,l){if(t==="innerHTML"||t==="textContent"){r&&l(r,o,s),e[t]=n==null?"":n;return}if(t==="value"&&e.tagName!=="PROGRESS"&&!e.tagName.includes("-")){e._value=n;const c=n==null?"":n;(e.value!==c||e.tagName==="OPTION")&&(e.value=c),n==null&&e.removeAttribute(t);return}let a=!1;if(n===""||n==null){const c=typeof e[t];c==="boolean"?n=Cw(n):n==null&&c==="string"?(n="",a=!0):c==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(t)}function Do(e,t,n,r){e.addEventListener(t,n,r)}function g4(e,t,n,r){e.removeEventListener(t,n,r)}function y4(e,t,n,r,o=null){const s=e._vei||(e._vei={}),l=s[t];if(r&&l)l.value=r;else{const[a,c]=b4(t);if(r){const f=s[t]=S4(r,o);Do(e,a,f,c)}else l&&(g4(e,a,l,c),s[t]=void 0)}}const pb=/(?:Once|Passive|Capture)$/;function b4(e){let t;if(pb.test(e)){t={};let r;for(;r=e.match(pb);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):ci(e.slice(2)),t]}let gp=0;const _4=Promise.resolve(),w4=()=>gp||(_4.then(()=>gp=0),gp=Date.now());function S4(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;mr(E4(r,n.value),t,5,[r])};return n.value=e,n.attached=w4(),n}function E4(e,t){if(nr(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>o=>!o._stopped&&r&&r(o))}else return t}const hb=/^on[a-z]/,x4=(e,t,n,r,o=!1,s,l,a,c)=>{t==="class"?f4(e,r,o):t==="style"?p4(e,n,r):r4(t)?o4(t)||y4(e,t,n,r,l):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):$4(e,t,r,o))?v4(e,t,r,s,l,a,c):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),m4(e,t,r,o))};function $4(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&hb.test(t)&&Tw(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||hb.test(t)&&aa(n)?!1:t in e}function Aw(e,t){const n=ve(e);class r extends fd{constructor(s){super(n,s,t)}}return r.def=n,r}const C4=e=>Aw(e,qw),T4=typeof HTMLElement!="undefined"?HTMLElement:class{};class fd extends T4{constructor(t,n={},r){super(),this._def=t,this._props=n,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&r?r(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,rn(()=>{this._connected||(ah(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let r=0;r<this.attributes.length;r++)this._setAttr(this.attributes[r].name);new MutationObserver(r=>{for(const o of r)this._setAttr(o.attributeName)}).observe(this,{attributes:!0});const t=(r,o=!1)=>{const{props:s,styles:l}=r;let a;if(s&&!nr(s))for(const c in s){const f=s[c];(f===Number||f&&f.type===Number)&&(c in this._props&&(this._props[c]=oh(this._props[c])),(a||(a=Object.create(null)))[mp(c)]=!0)}this._numberProps=a,o&&this._resolveProps(r),this._applyStyles(l),this._update()},n=this._def.__asyncLoader;n?n().then(r=>t(r,!0)):t(this._def)}_resolveProps(t){const{props:n}=t,r=nr(n)?n:Object.keys(n||{});for(const o of Object.keys(this))o[0]!=="_"&&r.includes(o)&&this._setProp(o,this[o],!0,!1);for(const o of r.map(mp))Object.defineProperty(this,o,{get(){return this._getProp(o)},set(s){this._setProp(o,s)}})}_setAttr(t){let n=this.getAttribute(t);const r=mp(t);this._numberProps&&this._numberProps[r]&&(n=oh(n)),this._setProp(r,n,!1)}_getProp(t){return this._props[t]}_setProp(t,n,r=!0,o=!0){n!==this._props[t]&&(this._props[t]=n,o&&this._instance&&this._update(),r&&(n===!0?this.setAttribute(ci(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(ci(t),n+""):n||this.removeAttribute(ci(t))))}_update(){ah(this._createVNode(),this.shadowRoot)}_createVNode(){const t=q(this._def,Ta({},this._props));return this._instance||(t.ce=n=>{this._instance=n,n.isCE=!0;const r=(s,l)=>{this.dispatchEvent(new CustomEvent(s,{detail:l}))};n.emit=(s,...l)=>{r(s,l),ci(s)!==s&&r(ci(s),l)};let o=this;for(;o=o&&(o.parentNode||o.host);)if(o instanceof fd){n.parent=o._instance,n.provides=o._instance.provides;break}}),t}_applyStyles(t){t&&t.forEach(n=>{const r=document.createElement("style");r.textContent=n,this.shadowRoot.appendChild(r)})}}function O4(e="$style"){{const t=Ko();if(!t)return hp;const n=t.type.__cssModules;if(!n)return hp;const r=n[e];return r||hp}}function Iw(e){const t=Ko();if(!t)return;const n=t.ut=(o=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(s=>lh(s,o))},r=()=>{const o=e(t.proxy);sh(t.subTree,o),n(o)};M_(r),gt(()=>{const o=new MutationObserver(r);o.observe(t.subTree.el.parentNode,{childList:!0}),Zt(()=>o.disconnect())})}function sh(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{sh(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)lh(e.el,t);else if(e.type===Fe)e.children.forEach(n=>sh(n,t));else if(e.type===Yi){let{el:n,anchor:r}=e;for(;n&&(lh(n,t),n!==r);)n=n.nextSibling}}function lh(e,t){if(e.nodeType===1){const n=e.style;for(const r in t)n.setProperty(`--${r}`,t[r])}}const si="transition",Cl="animation",Ei=(e,{slots:t})=>dt(um,kw(e),t);Ei.displayName="Transition";const Pw={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},A4=Ei.props=Ta({},um.props,Pw),Di=(e,t=[])=>{nr(e)?e.forEach(n=>n(...t)):e&&e(...t)},mb=e=>e?nr(e)?e.some(t=>t.length>1):e.length>1:!1;function kw(e){const t={};for(const z in e)z in Pw||(t[z]=e[z]);if(e.css===!1)return t;const{name:n="v",type:r,duration:o,enterFromClass:s=`${n}-enter-from`,enterActiveClass:l=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:c=s,appearActiveClass:f=l,appearToClass:p=a,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:v=`${n}-leave-active`,leaveToClass:y=`${n}-leave-to`}=e,_=I4(o),w=_&&_[0],I=_&&_[1],{onBeforeEnter:O,onEnter:S,onEnterCancelled:E,onLeave:T,onLeaveCancelled:$,onBeforeAppear:P=O,onAppear:k=S,onAppearCancelled:A=E}=t,H=(z,K,te)=>{ai(z,K?p:a),ai(z,K?f:l),te&&te()},D=(z,K)=>{z._isLeaving=!1,ai(z,h),ai(z,y),ai(z,v),K&&K()},F=z=>(K,te)=>{const we=z?k:S,be=()=>H(K,z,te);Di(we,[K,be]),vb(()=>{ai(K,z?c:s),No(K,z?p:a),mb(we)||gb(K,r,w,be)})};return Ta(t,{onBeforeEnter(z){Di(O,[z]),No(z,s),No(z,l)},onBeforeAppear(z){Di(P,[z]),No(z,c),No(z,f)},onEnter:F(!1),onAppear:F(!0),onLeave(z,K){z._isLeaving=!0;const te=()=>D(z,K);No(z,h),Lw(),No(z,v),vb(()=>{!z._isLeaving||(ai(z,h),No(z,y),mb(T)||gb(z,r,I,te))}),Di(T,[z,te])},onEnterCancelled(z){H(z,!1),Di(E,[z])},onAppearCancelled(z){H(z,!0),Di(A,[z])},onLeaveCancelled(z){D(z),Di($,[z])}})}function I4(e){if(e==null)return null;if(nh(e))return[yp(e.enter),yp(e.leave)];{const t=yp(e);return[t,t]}}function yp(e){return oh(e)}function No(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function ai(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function vb(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let P4=0;function gb(e,t,n,r){const o=e._endId=++P4,s=()=>{o===e._endId&&r()};if(n)return setTimeout(s,n);const{type:l,timeout:a,propCount:c}=Rw(e,t);if(!l)return r();const f=l+"end";let p=0;const h=()=>{e.removeEventListener(f,v),s()},v=y=>{y.target===e&&++p>=c&&h()};setTimeout(()=>{p<c&&h()},a+1),e.addEventListener(f,v)}function Rw(e,t){const n=window.getComputedStyle(e),r=_=>(n[_]||"").split(", "),o=r(`${si}Delay`),s=r(`${si}Duration`),l=yb(o,s),a=r(`${Cl}Delay`),c=r(`${Cl}Duration`),f=yb(a,c);let p=null,h=0,v=0;t===si?l>0&&(p=si,h=l,v=s.length):t===Cl?f>0&&(p=Cl,h=f,v=c.length):(h=Math.max(l,f),p=h>0?l>f?si:Cl:null,v=p?p===si?s.length:c.length:0);const y=p===si&&/\b(transform|all)(,|$)/.test(r(`${si}Property`).toString());return{type:p,timeout:h,propCount:v,hasTransform:y}}function yb(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>bb(n)+bb(e[r])))}function bb(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function Lw(){return document.body.offsetHeight}const Nw=new WeakMap,Mw=new WeakMap,Dw={name:"TransitionGroup",props:Ta({},A4,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Ko(),r=am();let o,s;return ad(()=>{if(!o.length)return;const l=e.moveClass||`${e.name||"v"}-move`;if(!D4(o[0].el,n.vnode.el,l))return;o.forEach(L4),o.forEach(N4);const a=o.filter(M4);Lw(),a.forEach(c=>{const f=c.el,p=f.style;No(f,l),p.transform=p.webkitTransform=p.transitionDuration="";const h=f._moveCb=v=>{v&&v.target!==f||(!v||/transform$/.test(v.propertyName))&&(f.removeEventListener("transitionend",h),f._moveCb=null,ai(f,l))};f.addEventListener("transitionend",h)})}),()=>{const l=Ue(e),a=kw(l);let c=l.tag||Fe;o=s,s=t.default?sd(t.default()):[];for(let f=0;f<s.length;f++){const p=s[f];p.key!=null&&rs(p,Vs(p,a,r,n))}if(o)for(let f=0;f<o.length;f++){const p=o[f];rs(p,Vs(p,a,r,n)),Nw.set(p,p.el.getBoundingClientRect())}return q(c,null,s)}}},k4=e=>delete e.mode;Dw.props;const R4=Dw;function L4(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function N4(e){Mw.set(e,e.el.getBoundingClientRect())}function M4(e){const t=Nw.get(e),n=Mw.get(e),r=t.left-n.left,o=t.top-n.top;if(r||o){const s=e.el.style;return s.transform=s.webkitTransform=`translate(${r}px,${o}px)`,s.transitionDuration="0s",e}}function D4(e,t,n){const r=e.cloneNode();e._vtc&&e._vtc.forEach(l=>{l.split(/\s+/).forEach(a=>a&&r.classList.remove(a))}),n.split(/\s+/).forEach(l=>l&&r.classList.add(l)),r.style.display="none";const o=t.nodeType===1?t:t.parentNode;o.appendChild(r);const{hasTransform:s}=Rw(r);return o.removeChild(r),s}const _i=e=>{const t=e.props["onUpdate:modelValue"]||!1;return nr(t)?n=>u4(t,n):t};function F4(e){e.target.composing=!0}function _b(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const wc={created(e,{modifiers:{lazy:t,trim:n,number:r}},o){e._assign=_i(o);const s=r||o.props&&o.props.type==="number";Do(e,t?"change":"input",l=>{if(l.target.composing)return;let a=e.value;n&&(a=a.trim()),s&&(a=rh(a)),e._assign(a)}),n&&Do(e,"change",()=>{e.value=e.value.trim()}),t||(Do(e,"compositionstart",F4),Do(e,"compositionend",_b),Do(e,"change",_b))},mounted(e,{value:t}){e.value=t==null?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:o}},s){if(e._assign=_i(s),e.composing||document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===t||(o||e.type==="number")&&rh(e.value)===t))return;const l=t==null?"":t;e.value!==l&&(e.value=l)}},gm={deep:!0,created(e,t,n){e._assign=_i(n),Do(e,"change",()=>{const r=e._modelValue,o=zs(e),s=e.checked,l=e._assign;if(nr(r)){const a=dd(r,o),c=a!==-1;if(s&&!c)l(r.concat(o));else if(!s&&c){const f=[...r];f.splice(a,1),l(f)}}else if(Oa(r)){const a=new Set(r);s?a.add(o):a.delete(o),l(a)}else l(Bw(e,s))})},mounted:wb,beforeUpdate(e,t,n){e._assign=_i(n),wb(e,t,n)}};function wb(e,{value:t,oldValue:n},r){e._modelValue=t,nr(t)?e.checked=dd(t,r.props.value)>-1:Oa(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=bi(t,Bw(e,!0)))}const ym={created(e,{value:t},n){e.checked=bi(t,n.props.value),e._assign=_i(n),Do(e,"change",()=>{e._assign(zs(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e._assign=_i(r),t!==n&&(e.checked=bi(t,r.props.value))}},Fw={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const o=Oa(t);Do(e,"change",()=>{const s=Array.prototype.filter.call(e.options,l=>l.selected).map(l=>n?rh(zs(l)):zs(l));e._assign(e.multiple?o?new Set(s):s:s[0])}),e._assign=_i(r)},mounted(e,{value:t}){Sb(e,t)},beforeUpdate(e,t,n){e._assign=_i(n)},updated(e,{value:t}){Sb(e,t)}};function Sb(e,t){const n=e.multiple;if(!(n&&!nr(t)&&!Oa(t))){for(let r=0,o=e.options.length;r<o;r++){const s=e.options[r],l=zs(s);if(n)nr(t)?s.selected=dd(t,l)>-1:s.selected=t.has(l);else if(bi(zs(s),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function zs(e){return"_value"in e?e._value:e.value}function Bw(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Uw={created(e,t,n){Wu(e,t,n,null,"created")},mounted(e,t,n){Wu(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){Wu(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){Wu(e,t,n,r,"updated")}};function jw(e,t){switch(e){case"SELECT":return Fw;case"TEXTAREA":return wc;default:switch(t){case"checkbox":return gm;case"radio":return ym;default:return wc}}}function Wu(e,t,n,r,o){const l=jw(e.tagName,n.props&&n.props.type)[o];l&&l(e,t,n,r)}function B4(){wc.getSSRProps=({value:e})=>({value:e}),ym.getSSRProps=({value:e},t)=>{if(t.props&&bi(t.props.value,e))return{checked:!0}},gm.getSSRProps=({value:e},t)=>{if(nr(e)){if(t.props&&dd(e,t.props.value)>-1)return{checked:!0}}else if(Oa(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},Uw.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const n=jw(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}const U4=["ctrl","shift","alt","meta"],j4={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&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>U4.some(n=>e[`${n}Key`]&&!t.includes(n))},Sc=(e,t)=>(n,...r)=>{for(let o=0;o<t.length;o++){const s=j4[t[o]];if(s&&s(n,t))return}return e(n,...r)},H4={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Hw=(e,t)=>n=>{if(!("key"in n))return;const r=ci(n.key);if(t.some(o=>o===r||H4[o]===r))return e(n)},bm={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Tl(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Tl(e,!0),r.enter(e)):r.leave(e,()=>{Tl(e,!1)}):Tl(e,t))},beforeUnmount(e,{value:t}){Tl(e,t)}};function Tl(e,t){e.style.display=t?e._vod:"none"}function V4(){bm.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const Vw=Ta({patchProp:x4},d4);let Kl,Eb=!1;function Ww(){return Kl||(Kl=ow(Vw))}function zw(){return Kl=Eb?Kl:iw(Vw),Eb=!0,Kl}const ah=(...e)=>{Ww().render(...e)},qw=(...e)=>{zw().hydrate(...e)},Kw=(...e)=>{const t=Ww().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=Gw(r);if(!o)return;const s=t._component;!Tw(s)&&!s.render&&!s.template&&(s.template=o.innerHTML),o.innerHTML="";const l=n(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),l},t},W4=(...e)=>{const t=zw().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=Gw(r);if(o)return n(o,!0,o instanceof SVGElement)},t};function Gw(e){return aa(e)?document.querySelector(e):e}let xb=!1;const z4=()=>{xb||(xb=!0,B4(),V4())};var q4=Object.freeze(Object.defineProperty({__proto__:null,Transition:Ei,TransitionGroup:R4,VueElement:fd,createApp:Kw,createSSRApp:W4,defineCustomElement:Aw,defineSSRCustomElement:C4,hydrate:qw,initDirectivesForSSR:z4,render:ah,useCssModule:O4,useCssVars:Iw,vModelCheckbox:gm,vModelDynamic:Uw,vModelRadio:ym,vModelSelect:Fw,vModelText:wc,vShow:bm,withKeys:Hw,withModifiers:Sc,EffectScope:Gh,ReactiveEffect:xa,customRef:Ak,effect:YP,effectScope:GP,getCurrentScope:d_,isProxy:Zh,isReactive:Xi,isReadonly:ns,isRef:dn,isShallow:na,markRaw:Qh,onScopeDispose:f_,proxyRefs:nm,reactive:Si,readonly:Yh,ref:_e,shallowReactive:$_,shallowReadonly:$k,shallowRef:nd,stop:ZP,toRaw:Ue,toRef:T_,toRefs:rm,triggerRef:Wp,unref:jn,camelize:eo,capitalize:Jc,normalizeClass:wt,normalizeProps:DP,normalizeStyle:as,toDisplayString:U,toHandlerKey:Hl,BaseTransition:um,Comment:Rn,Fragment:Fe,KeepAlive:oR,Static:Yi,Suspense:Gk,Teleport:lw,Text:os,assertNumber:Lk,callWithAsyncErrorHandling:mr,callWithErrorHandling:Uo,cloneVNode:Dr,compatUtils:YR,computed:ce,createBlock:bt,createCommentVNode:qe,createElementBlock:V,createElementVNode:g,createHydrationRenderer:iw,createPropsRestProxy:WR,createRenderer:ow,createSlots:uR,createStaticVNode:PR,createTextVNode:Ge,createVNode:q,defineAsyncComponent:nR,defineComponent:ve,defineEmits:BR,defineExpose:UR,defineProps:FR,get devtools(){return Rs},getCurrentInstance:Ko,getTransitionRawChildren:sd,guardReactiveProps:fw,h:dt,handleError:us,initCustomFormatter:qR,inject:kt,isMemoSame:xw,isRuntimeOnly:NR,isVNode:gi,mergeDefaults:VR,mergeProps:pw,nextTick:rn,onActivated:B_,onBeforeMount:H_,onBeforeUnmount:cs,onBeforeUpdate:V_,onDeactivated:U_,onErrorCaptured:K_,onMounted:gt,onRenderTracked:q_,onRenderTriggered:z_,onServerPrefetch:W_,onUnmounted:Zt,onUpdated:ad,openBlock:N,popScopeId:jk,provide:Yt,pushScopeId:Uk,queuePostFlushCb:im,registerRuntimeCompiler:gw,renderList:Mt,renderSlot:gr,resolveComponent:X,resolveDirective:aR,resolveDynamicComponent:lR,resolveFilter:JR,resolveTransitionHooks:Vs,setBlockTracking:Zp,setDevtoolsHook:k_,setTransitionHooks:rs,ssrContextKey:Sw,ssrUtils:XR,toHandlers:cR,transformVNodeArgs:AR,useAttrs:HR,useSSRContext:Ew,useSlots:_w,useTransitionState:am,version:$w,warn:Rk,watch:Ft,watchEffect:jt,watchPostEffect:M_,watchSyncEffect:Qk,withAsyncContext:zR,withCtx:ye,withDefaults:jR,withDirectives:G_,withMemo:KR,withScopeId:Hk},Symbol.toStringTag,{value:"Module"}));function oo(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o<r.length;o++)n[r[o]]=!0;return t?o=>!!n[o.toLowerCase()]:o=>!!n[o]}const K4=/;(?![^(]*\))/g,G4=/:([^]+)/,X4=/\/\*.*?\*\//gs;function J4(e){const t={};return e.replace(X4,"").split(K4).forEach(n=>{if(n){const r=n.split(G4);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}const Y4="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot",Z4="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",Q4="area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr",eL=oo(Y4),tL=oo(Z4),nL=oo(Q4),rL={},Ec=()=>{},bp=()=>!1,oL=/^on[^a-z]/,Xw=e=>oL.test(e),jo=Object.assign,qs=Array.isArray,mn=e=>typeof e=="string",_m=e=>typeof e=="symbol",iL=e=>e!==null&&typeof e=="object",$b=oo(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),sL=oo("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),pd=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},lL=/-(\w)/g,hd=pd(e=>e.replace(lL,(t,n)=>n?n.toUpperCase():"")),aL=/\B([A-Z])/g,uL=pd(e=>e.replace(aL,"-$1").toLowerCase()),wm=pd(e=>e.charAt(0).toUpperCase()+e.slice(1)),cL=pd(e=>e?`on${wm(e)}`:"");function Sm(e){throw e}function Jw(e){}function Wt(e,t,n,r){const o=e,s=new SyntaxError(String(o));return s.code=e,s.loc=t,s}const ua=Symbol(""),Gl=Symbol(""),Em=Symbol(""),xc=Symbol(""),Yw=Symbol(""),ss=Symbol(""),Zw=Symbol(""),Qw=Symbol(""),xm=Symbol(""),$m=Symbol(""),Aa=Symbol(""),Cm=Symbol(""),eS=Symbol(""),Tm=Symbol(""),$c=Symbol(""),Om=Symbol(""),Am=Symbol(""),Im=Symbol(""),Pm=Symbol(""),tS=Symbol(""),nS=Symbol(""),md=Symbol(""),Cc=Symbol(""),km=Symbol(""),Rm=Symbol(""),ca=Symbol(""),Ia=Symbol(""),Lm=Symbol(""),uh=Symbol(""),dL=Symbol(""),ch=Symbol(""),Tc=Symbol(""),fL=Symbol(""),pL=Symbol(""),Nm=Symbol(""),hL=Symbol(""),mL=Symbol(""),Mm=Symbol(""),rS=Symbol(""),Ks={[ua]:"Fragment",[Gl]:"Teleport",[Em]:"Suspense",[xc]:"KeepAlive",[Yw]:"BaseTransition",[ss]:"openBlock",[Zw]:"createBlock",[Qw]:"createElementBlock",[xm]:"createVNode",[$m]:"createElementVNode",[Aa]:"createCommentVNode",[Cm]:"createTextVNode",[eS]:"createStaticVNode",[Tm]:"resolveComponent",[$c]:"resolveDynamicComponent",[Om]:"resolveDirective",[Am]:"resolveFilter",[Im]:"withDirectives",[Pm]:"renderList",[tS]:"renderSlot",[nS]:"createSlots",[md]:"toDisplayString",[Cc]:"mergeProps",[km]:"normalizeClass",[Rm]:"normalizeStyle",[ca]:"normalizeProps",[Ia]:"guardReactiveProps",[Lm]:"toHandlers",[uh]:"camelize",[dL]:"capitalize",[ch]:"toHandlerKey",[Tc]:"setBlockTracking",[fL]:"pushScopeId",[pL]:"popScopeId",[Nm]:"withCtx",[hL]:"unref",[mL]:"isRef",[Mm]:"withMemo",[rS]:"isMemoSame"};function vL(e){Object.getOwnPropertySymbols(e).forEach(t=>{Ks[t]=e[t]})}const yr={source:"",start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0}};function gL(e,t=yr){return{type:0,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:t}}function da(e,t,n,r,o,s,l,a=!1,c=!1,f=!1,p=yr){return e&&(a?(e.helper(ss),e.helper(Js(e.inSSR,f))):e.helper(Xs(e.inSSR,f)),l&&e.helper(Im)),{type:13,tag:t,props:n,children:r,patchFlag:o,dynamicProps:s,directives:l,isBlock:a,disableTracking:c,isComponent:f,loc:p}}function Pa(e,t=yr){return{type:17,loc:t,elements:e}}function Ir(e,t=yr){return{type:15,loc:t,properties:e}}function Jt(e,t){return{type:16,loc:yr,key:mn(e)?ut(e,!0):e,value:t}}function ut(e,t=!1,n=yr,r=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:r}}function Jr(e,t=yr){return{type:8,loc:t,children:e}}function nn(e,t=[],n=yr){return{type:14,loc:n,callee:e,arguments:t}}function Gs(e,t=void 0,n=!1,r=!1,o=yr){return{type:18,params:e,returns:t,newline:n,isSlot:r,loc:o}}function dh(e,t,n,r=!0){return{type:19,test:e,consequent:t,alternate:n,newline:r,loc:yr}}function yL(e,t,n=!1){return{type:20,index:e,value:t,isVNode:n,loc:yr}}function bL(e){return{type:21,body:e,loc:yr}}const Yn=e=>e.type===4&&e.isStatic,Ls=(e,t)=>e===t||e===uL(t);function oS(e){if(Ls(e,"Teleport"))return Gl;if(Ls(e,"Suspense"))return Em;if(Ls(e,"KeepAlive"))return xc;if(Ls(e,"BaseTransition"))return Yw}const _L=/^\d|[^\$\w]/,Dm=e=>!_L.test(e),wL=/[A-Za-z_$\xA0-\uFFFF]/,SL=/[\.\?\w$\xA0-\uFFFF]/,EL=/\s+[.[]\s*|\s*[.[]\s+/g,xL=e=>{e=e.trim().replace(EL,l=>l.trim());let t=0,n=[],r=0,o=0,s=null;for(let l=0;l<e.length;l++){const a=e.charAt(l);switch(t){case 0:if(a==="[")n.push(t),t=1,r++;else if(a==="(")n.push(t),t=2,o++;else if(!(l===0?wL:SL).test(a))return!1;break;case 1:a==="'"||a==='"'||a==="`"?(n.push(t),t=3,s=a):a==="["?r++:a==="]"&&(--r||(t=n.pop()));break;case 2:if(a==="'"||a==='"'||a==="`")n.push(t),t=3,s=a;else if(a==="(")o++;else if(a===")"){if(l===e.length-1)return!1;--o||(t=n.pop())}break;case 3:a===s&&(t=n.pop(),s=null);break}}return!r&&!o},iS=xL;function sS(e,t,n){const o={source:e.source.slice(t,t+n),start:Oc(e.start,e.source,t),end:e.end};return n!=null&&(o.end=Oc(e.start,e.source,t+n)),o}function Oc(e,t,n=t.length){return Ac(jo({},e),t,n)}function Ac(e,t,n=t.length){let r=0,o=-1;for(let s=0;s<n;s++)t.charCodeAt(s)===10&&(r++,o=s);return e.offset+=n,e.line+=r,e.column=o===-1?e.column+n:n-o,e}function Ar(e,t,n=!1){for(let r=0;r<e.props.length;r++){const o=e.props[r];if(o.type===7&&(n||o.exp)&&(mn(t)?o.name===t:t.test(o.name)))return o}}function vd(e,t,n=!1,r=!1){for(let o=0;o<e.props.length;o++){const s=e.props[o];if(s.type===6){if(n)continue;if(s.name===t&&(s.value||r))return s}else if(s.name==="bind"&&(s.exp||r)&&qi(s.arg,t))return s}}function qi(e,t){return!!(e&&Yn(e)&&e.content===t)}function $L(e){return e.props.some(t=>t.type===7&&t.name==="bind"&&(!t.arg||t.arg.type!==4||!t.arg.isStatic))}function _p(e){return e.type===5||e.type===2}function CL(e){return e.type===7&&e.name==="slot"}function Ic(e){return e.type===1&&e.tagType===3}function Pc(e){return e.type===1&&e.tagType===2}function Xs(e,t){return e||t?xm:$m}function Js(e,t){return e||t?Zw:Qw}const TL=new Set([ca,Ia]);function lS(e,t=[]){if(e&&!mn(e)&&e.type===14){const n=e.callee;if(!mn(n)&&TL.has(n))return lS(e.arguments[0],t.concat(e))}return[e,t]}function kc(e,t,n){let r,o=e.type===13?e.props:e.arguments[2],s=[],l;if(o&&!mn(o)&&o.type===14){const a=lS(o);o=a[0],s=a[1],l=s[s.length-1]}if(o==null||mn(o))r=Ir([t]);else if(o.type===14){const a=o.arguments[0];!mn(a)&&a.type===15?Cb(t,a)||a.properties.unshift(t):o.callee===Lm?r=nn(n.helper(Cc),[Ir([t]),o]):o.arguments.unshift(Ir([t])),!r&&(r=o)}else o.type===15?(Cb(t,o)||o.properties.unshift(t),r=o):(r=nn(n.helper(Cc),[Ir([t]),o]),l&&l.callee===Ia&&(l=s[s.length-2]));e.type===13?l?l.arguments[0]=r:e.props=r:l?l.arguments[0]=r:e.arguments[2]=r}function Cb(e,t){let n=!1;if(e.key.type===4){const r=e.key.content;n=t.properties.some(o=>o.key.type===4&&o.key.content===r)}return n}function fa(e,t){return`_${t}_${e.replace(/[^\w]/g,(n,r)=>n==="-"?"_":e.charCodeAt(r).toString())}`}function OL(e){return e.type===14&&e.callee===Mm?e.arguments[1].returns:e}function Fm(e,{helper:t,removeHelper:n,inSSR:r}){e.isBlock||(e.isBlock=!0,n(Xs(r,e.isComponent)),t(ss),t(Js(r,e.isComponent)))}function Tb(e,t){const n=t.options?t.options.compatConfig:t.compatConfig,r=n&&n[e];return e==="MODE"?r||3:r}function Zi(e,t){const n=Tb("MODE",t),r=Tb(e,t);return n===3?r===!0:r!==!1}function pa(e,t,n,...r){return Zi(e,t)}const AL=/&(gt|lt|amp|apos|quot);/g,IL={gt:">",lt:"<",amp:"&",apos:"'",quot:'"'},Ob={delimiters:["{{","}}"],getNamespace:()=>0,getTextMode:()=>0,isVoidTag:bp,isPreTag:bp,isCustomElement:bp,decodeEntities:e=>e.replace(AL,(t,n)=>IL[n]),onError:Sm,onWarn:Jw,comments:!1};function PL(e,t={}){const n=kL(e,t),r=vr(n);return gL(Bm(n,0,[]),Fr(n,r))}function kL(e,t){const n=jo({},Ob);let r;for(r in t)n[r]=t[r]===void 0?Ob[r]:t[r];return{options:n,column:1,line:1,offset:0,originalSource:e,source:e,inPre:!1,inVPre:!1,onWarn:n.onWarn}}function Bm(e,t,n){const r=gd(n),o=r?r.ns:0,s=[];for(;!jL(e,t,n);){const a=e.source;let c;if(t===0||t===1){if(!e.inVPre&&kn(a,e.options.delimiters[0]))c=BL(e,t);else if(t===0&&a[0]==="<")if(a.length===1)At(e,5,1);else if(a[1]==="!")kn(a,"<!--")?c=LL(e):kn(a,"<!DOCTYPE")?c=Ol(e):kn(a,"<![CDATA[")?o!==0?c=RL(e,n):(At(e,1),c=Ol(e)):(At(e,11),c=Ol(e));else if(a[1]==="/")if(a.length===2)At(e,5,2);else if(a[2]===">"){At(e,14,2),fn(e,3);continue}else if(/[a-z]/i.test(a[2])){At(e,23),fh(e,1,r);continue}else At(e,12,2),c=Ol(e);else/[a-z]/i.test(a[1])?(c=NL(e,n),Zi("COMPILER_NATIVE_TEMPLATE",e)&&c&&c.tag==="template"&&!c.props.some(f=>f.type===7&&aS(f.name))&&(c=c.children)):a[1]==="?"?(At(e,21,1),c=Ol(e)):At(e,12,1)}if(c||(c=UL(e,t)),qs(c))for(let f=0;f<c.length;f++)Ab(s,c[f]);else Ab(s,c)}let l=!1;if(t!==2&&t!==1){const a=e.options.whitespace!=="preserve";for(let c=0;c<s.length;c++){const f=s[c];if(f.type===2)if(e.inPre)f.content=f.content.replace(/\r\n/g,` 2 2 `);else if(/[^\t\r\n\f ]/.test(f.content))a&&(f.content=f.content.replace(/[\t\r\n\f ]+/g," "));else{const p=s[c-1],h=s[c+1];!p||!h||a&&(p.type===3&&h.type===3||p.type===3&&h.type===1||p.type===1&&h.type===3||p.type===1&&h.type===1&&/[\r\n]/.test(f.content))?(l=!0,s[c]=null):f.content=" "}else f.type===3&&!e.options.comments&&(l=!0,s[c]=null)}if(e.inPre&&r&&e.options.isPreTag(r.tag)){const c=s[0];c&&c.type===2&&(c.content=c.content.replace(/^\r?\n/,""))}}return l?s.filter(Boolean):s}function Ab(e,t){if(t.type===2){const n=gd(e);if(n&&n.type===2&&n.loc.end.offset===t.loc.start.offset){n.content+=t.content,n.loc.end=t.loc.end,n.loc.source+=t.loc.source;return}}e.push(t)}function RL(e,t){fn(e,9);const n=Bm(e,3,t);return e.source.length===0?At(e,6):fn(e,3),n}function LL(e){const t=vr(e);let n;const r=/--(\!)?>/.exec(e.source);if(!r)n=e.source.slice(4),fn(e,e.source.length),At(e,7);else{r.index<=3&&At(e,0),r[1]&&At(e,10),n=e.source.slice(4,r.index);const o=e.source.slice(0,r.index);let s=1,l=0;for(;(l=o.indexOf("<!--",s))!==-1;)fn(e,l-s+1),l+4<o.length&&At(e,16),s=l+1;fn(e,r.index+r[0].length-s+1)}return{type:3,content:n,loc:Fr(e,t)}}function Ol(e){const t=vr(e),n=e.source[1]==="?"?1:2;let r;const o=e.source.indexOf(">");return o===-1?(r=e.source.slice(n),fn(e,e.source.length)):(r=e.source.slice(n,o),fn(e,o+1)),{type:3,content:r,loc:Fr(e,t)}}function NL(e,t){const n=e.inPre,r=e.inVPre,o=gd(t),s=fh(e,0,o),l=e.inPre&&!n,a=e.inVPre&&!r;if(s.isSelfClosing||e.options.isVoidTag(s.tag))return l&&(e.inPre=!1),a&&(e.inVPre=!1),s;t.push(s);const c=e.options.getTextMode(s,o),f=Bm(e,c,t);t.pop();{const p=s.props.find(h=>h.type===6&&h.name==="inline-template");if(p&&pa("COMPILER_INLINE_TEMPLATE",e,p.loc)){const h=Fr(e,s.loc.end);p.value={type:2,content:h.source,loc:h}}}if(s.children=f,ph(e.source,s.tag))fh(e,1,o);else if(At(e,24,0,s.loc.start),e.source.length===0&&s.tag.toLowerCase()==="script"){const p=f[0];p&&kn(p.loc.source,"<!--")&&At(e,8)}return s.loc=Fr(e,s.loc.start),l&&(e.inPre=!1),a&&(e.inVPre=!1),s}const aS=oo("if,else,else-if,for,slot");function fh(e,t,n){const r=vr(e),o=/^<\/?([a-z][^\t\r\n\f />]*)/i.exec(e.source),s=o[1],l=e.options.getNamespace(s,n);fn(e,o[0].length),ha(e);const a=vr(e),c=e.source;e.options.isPreTag(s)&&(e.inPre=!0);let f=Ib(e,t);t===0&&!e.inVPre&&f.some(v=>v.type===7&&v.name==="pre")&&(e.inVPre=!0,jo(e,a),e.source=c,f=Ib(e,t).filter(v=>v.name!=="v-pre"));let p=!1;if(e.source.length===0?At(e,9):(p=kn(e.source,"/>"),t===1&&p&&At(e,4),fn(e,p?2:1)),t===1)return;let h=0;return e.inVPre||(s==="slot"?h=2:s==="template"?f.some(v=>v.type===7&&aS(v.name))&&(h=3):ML(s,f,e)&&(h=1)),{type:1,ns:l,tag:s,tagType:h,props:f,isSelfClosing:p,children:[],loc:Fr(e,r),codegenNode:void 0}}function ML(e,t,n){const r=n.options;if(r.isCustomElement(e))return!1;if(e==="component"||/^[A-Z]/.test(e)||oS(e)||r.isBuiltInComponent&&r.isBuiltInComponent(e)||r.isNativeTag&&!r.isNativeTag(e))return!0;for(let o=0;o<t.length;o++){const s=t[o];if(s.type===6){if(s.name==="is"&&s.value){if(s.value.content.startsWith("vue:"))return!0;if(pa("COMPILER_IS_ON_ELEMENT",n,s.loc))return!0}}else{if(s.name==="is")return!0;if(s.name==="bind"&&qi(s.arg,"is")&&!0&&pa("COMPILER_IS_ON_ELEMENT",n,s.loc))return!0}}}function Ib(e,t){const n=[],r=new Set;for(;e.source.length>0&&!kn(e.source,">")&&!kn(e.source,"/>");){if(kn(e.source,"/")){At(e,22),fn(e,1),ha(e);continue}t===1&&At(e,3);const o=DL(e,r);o.type===6&&o.value&&o.name==="class"&&(o.value.content=o.value.content.replace(/\s+/g," ").trim()),t===0&&n.push(o),/^[^\t\r\n\f />]/.test(e.source)&&At(e,15),ha(e)}return n}function DL(e,t){const n=vr(e),o=/^[^\t\r\n\f />][^\t\r\n\f />=]*/.exec(e.source)[0];t.has(o)&&At(e,2),t.add(o),o[0]==="="&&At(e,19);{const a=/["'<]/g;let c;for(;c=a.exec(o);)At(e,17,c.index)}fn(e,o.length);let s;/^[\t\r\n\f ]*=/.test(e.source)&&(ha(e),fn(e,1),ha(e),s=FL(e),s||At(e,13));const l=Fr(e,n);if(!e.inVPre&&/^(v-[A-Za-z0-9-]|:|\.|@|#)/.test(o)){const a=/(?:^v-([a-z0-9-]+))?(?:(?::|^\.|^@|^#)(\[[^\]]+\]|[^\.]+))?(.+)?$/i.exec(o);let c=kn(o,"."),f=a[1]||(c||kn(o,":")?"bind":kn(o,"@")?"on":"slot"),p;if(a[2]){const v=f==="slot",y=o.lastIndexOf(a[2]),_=Fr(e,Pb(e,n,y),Pb(e,n,y+a[2].length+(v&&a[3]||"").length));let w=a[2],I=!0;w.startsWith("[")?(I=!1,w.endsWith("]")?w=w.slice(1,w.length-1):(At(e,27),w=w.slice(1))):v&&(w+=a[3]||""),p={type:4,content:w,isStatic:I,constType:I?3:0,loc:_}}if(s&&s.isQuoted){const v=s.loc;v.start.offset++,v.start.column++,v.end=Oc(v.start,s.content),v.source=v.source.slice(1,-1)}const h=a[3]?a[3].slice(1).split("."):[];return c&&h.push("prop"),f==="bind"&&p&&h.includes("sync")&&pa("COMPILER_V_BIND_SYNC",e,l,p.loc.source)&&(f="model",h.splice(h.indexOf("sync"),1)),{type:7,name:f,exp:s&&{type:4,content:s.content,isStatic:!1,constType:0,loc:s.loc},arg:p,modifiers:h,loc:l}}return!e.inVPre&&kn(o,"v-")&&At(e,26),{type:6,name:o,value:s&&{type:2,content:s.content,loc:s.loc},loc:l}}function FL(e){const t=vr(e);let n;const r=e.source[0],o=r==='"'||r==="'";if(o){fn(e,1);const s=e.source.indexOf(r);s===-1?n=Xl(e,e.source.length,4):(n=Xl(e,s,4),fn(e,1))}else{const s=/^[^\t\r\n\f >]+/.exec(e.source);if(!s)return;const l=/["'<=`]/g;let a;for(;a=l.exec(s[0]);)At(e,18,a.index);n=Xl(e,s[0].length,4)}return{content:n,isQuoted:o,loc:Fr(e,t)}}function BL(e,t){const[n,r]=e.options.delimiters,o=e.source.indexOf(r,n.length);if(o===-1){At(e,25);return}const s=vr(e);fn(e,n.length);const l=vr(e),a=vr(e),c=o-n.length,f=e.source.slice(0,c),p=Xl(e,c,t),h=p.trim(),v=p.indexOf(h);v>0&&Ac(l,f,v);const y=c-(p.length-h.length-v);return Ac(a,f,y),fn(e,r.length),{type:5,content:{type:4,isStatic:!1,constType:0,content:h,loc:Fr(e,l,a)},loc:Fr(e,s)}}function UL(e,t){const n=t===3?["]]>"]:["<",e.options.delimiters[0]];let r=e.source.length;for(let l=0;l<n.length;l++){const a=e.source.indexOf(n[l],1);a!==-1&&r>a&&(r=a)}const o=vr(e),s=Xl(e,r,t);return{type:2,content:s,loc:Fr(e,o)}}function Xl(e,t,n){const r=e.source.slice(0,t);return fn(e,t),n===2||n===3||!r.includes("&")?r:e.options.decodeEntities(r,n===4)}function vr(e){const{column:t,line:n,offset:r}=e;return{column:t,line:n,offset:r}}function Fr(e,t,n){return n=n||vr(e),{start:t,end:n,source:e.originalSource.slice(t.offset,n.offset)}}function gd(e){return e[e.length-1]}function kn(e,t){return e.startsWith(t)}function fn(e,t){const{source:n}=e;Ac(e,n,t),e.source=n.slice(t)}function ha(e){const t=/^[\t\r\n\f ]+/.exec(e.source);t&&fn(e,t[0].length)}function Pb(e,t,n){return Oc(t,e.originalSource.slice(t.offset,n),n)}function At(e,t,n,r=vr(e)){n&&(r.offset+=n,r.column+=n),e.options.onError(Wt(t,{start:r,end:r,source:""}))}function jL(e,t,n){const r=e.source;switch(t){case 0:if(kn(r,"</")){for(let o=n.length-1;o>=0;--o)if(ph(r,n[o].tag))return!0}break;case 1:case 2:{const o=gd(n);if(o&&ph(r,o.tag))return!0;break}case 3:if(kn(r,"]]>"))return!0;break}return!r}function ph(e,t){return kn(e,"</")&&e.slice(2,2+t.length).toLowerCase()===t.toLowerCase()&&/[\t\r\n\f />]/.test(e[2+t.length]||">")}function HL(e,t){rc(e,t,uS(e,e.children[0]))}function uS(e,t){const{children:n}=e;return n.length===1&&t.type===1&&!Pc(t)}function rc(e,t,n=!1){const{children:r}=e,o=r.length;let s=0;for(let l=0;l<r.length;l++){const a=r[l];if(a.type===1&&a.tagType===0){const c=n?0:Pr(a,t);if(c>0){if(c>=2){a.codegenNode.patchFlag=-1+"",a.codegenNode=t.hoist(a.codegenNode),s++;continue}}else{const f=a.codegenNode;if(f.type===13){const p=pS(f);if((!p||p===512||p===1)&&dS(a,t)>=2){const h=fS(a);h&&(f.props=t.hoist(h))}f.dynamicProps&&(f.dynamicProps=t.hoist(f.dynamicProps))}}}if(a.type===1){const c=a.tagType===1;c&&t.scopes.vSlot++,rc(a,t),c&&t.scopes.vSlot--}else if(a.type===11)rc(a,t,a.children.length===1);else if(a.type===9)for(let c=0;c<a.branches.length;c++)rc(a.branches[c],t,a.branches[c].children.length===1)}s&&t.transformHoist&&t.transformHoist(r,t,e),s&&s===o&&e.type===1&&e.tagType===0&&e.codegenNode&&e.codegenNode.type===13&&qs(e.codegenNode.children)&&(e.codegenNode.children=t.hoist(Pa(e.codegenNode.children)))}function Pr(e,t){const{constantCache:n}=t;switch(e.type){case 1:if(e.tagType!==0)return 0;const r=n.get(e);if(r!==void 0)return r;const o=e.codegenNode;if(o.type!==13||o.isBlock&&e.tag!=="svg"&&e.tag!=="foreignObject")return 0;if(pS(o))return n.set(e,0),0;{let a=3;const c=dS(e,t);if(c===0)return n.set(e,0),0;c<a&&(a=c);for(let f=0;f<e.children.length;f++){const p=Pr(e.children[f],t);if(p===0)return n.set(e,0),0;p<a&&(a=p)}if(a>1)for(let f=0;f<e.props.length;f++){const p=e.props[f];if(p.type===7&&p.name==="bind"&&p.exp){const h=Pr(p.exp,t);if(h===0)return n.set(e,0),0;h<a&&(a=h)}}if(o.isBlock){for(let f=0;f<e.props.length;f++)if(e.props[f].type===7)return n.set(e,0),0;t.removeHelper(ss),t.removeHelper(Js(t.inSSR,o.isComponent)),o.isBlock=!1,t.helper(Xs(t.inSSR,o.isComponent))}return n.set(e,a),a}case 2:case 3:return 3;case 9:case 11:case 10:return 0;case 5:case 12:return Pr(e.content,t);case 4:return e.constType;case 8:let l=3;for(let a=0;a<e.children.length;a++){const c=e.children[a];if(mn(c)||_m(c))continue;const f=Pr(c,t);if(f===0)return 0;f<l&&(l=f)}return l;default:return 0}}const VL=new Set([km,Rm,ca,Ia]);function cS(e,t){if(e.type===14&&!mn(e.callee)&&VL.has(e.callee)){const n=e.arguments[0];if(n.type===4)return Pr(n,t);if(n.type===14)return cS(n,t)}return 0}function dS(e,t){let n=3;const r=fS(e);if(r&&r.type===15){const{properties:o}=r;for(let s=0;s<o.length;s++){const{key:l,value:a}=o[s],c=Pr(l,t);if(c===0)return c;c<n&&(n=c);let f;if(a.type===4?f=Pr(a,t):a.type===14?f=cS(a,t):f=0,f===0)return f;f<n&&(n=f)}}return n}function fS(e){const t=e.codegenNode;if(t.type===13)return t.props}function pS(e){const t=e.patchFlag;return t?parseInt(t,10):void 0}function WL(e,{filename:t="",prefixIdentifiers:n=!1,hoistStatic:r=!1,cacheHandlers:o=!1,nodeTransforms:s=[],directiveTransforms:l={},transformHoist:a=null,isBuiltInComponent:c=Ec,isCustomElement:f=Ec,expressionPlugins:p=[],scopeId:h=null,slotted:v=!0,ssr:y=!1,inSSR:_=!1,ssrCssVars:w="",bindingMetadata:I=rL,inline:O=!1,isTS:S=!1,onError:E=Sm,onWarn:T=Jw,compatConfig:$}){const P=t.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),k={selfName:P&&wm(hd(P[1])),prefixIdentifiers:n,hoistStatic:r,cacheHandlers:o,nodeTransforms:s,directiveTransforms:l,transformHoist:a,isBuiltInComponent:c,isCustomElement:f,expressionPlugins:p,scopeId:h,slotted:v,ssr:y,inSSR:_,ssrCssVars:w,bindingMetadata:I,inline:O,isTS:S,onError:E,onWarn:T,compatConfig:$,root:e,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],constantCache:new Map,temps:0,cached:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,currentNode:e,childIndex:0,inVOnce:!1,helper(A){const H=k.helpers.get(A)||0;return k.helpers.set(A,H+1),A},removeHelper(A){const H=k.helpers.get(A);if(H){const D=H-1;D?k.helpers.set(A,D):k.helpers.delete(A)}},helperString(A){return`_${Ks[k.helper(A)]}`},replaceNode(A){k.parent.children[k.childIndex]=k.currentNode=A},removeNode(A){const H=k.parent.children,D=A?H.indexOf(A):k.currentNode?k.childIndex:-1;!A||A===k.currentNode?(k.currentNode=null,k.onNodeRemoved()):k.childIndex>D&&(k.childIndex--,k.onNodeRemoved()),k.parent.children.splice(D,1)},onNodeRemoved:()=>{},addIdentifiers(A){},removeIdentifiers(A){},hoist(A){mn(A)&&(A=ut(A)),k.hoists.push(A);const H=ut(`_hoisted_${k.hoists.length}`,!1,A.loc,2);return H.hoisted=A,H},cache(A,H=!1){return yL(k.cached++,A,H)}};return k.filters=new Set,k}function zL(e,t){const n=WL(e,t);yd(e,n),t.hoistStatic&&HL(e,n),t.ssr||qL(e,n),e.helpers=new Set([...n.helpers.keys()]),e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached,e.filters=[...n.filters]}function qL(e,t){const{helper:n}=t,{children:r}=e;if(r.length===1){const o=r[0];if(uS(e,o)&&o.codegenNode){const s=o.codegenNode;s.type===13&&Fm(s,t),e.codegenNode=s}else e.codegenNode=o}else if(r.length>1){let o=64;e.codegenNode=da(t,n(ua),void 0,e.children,o+"",void 0,void 0,!0,void 0,!1)}}function KL(e,t){let n=0;const r=()=>{n--};for(;n<e.children.length;n++){const o=e.children[n];mn(o)||(t.parent=e,t.childIndex=n,t.onNodeRemoved=r,yd(o,t))}}function yd(e,t){t.currentNode=e;const{nodeTransforms:n}=t,r=[];for(let s=0;s<n.length;s++){const l=n[s](e,t);if(l&&(qs(l)?r.push(...l):r.push(l)),t.currentNode)e=t.currentNode;else return}switch(e.type){case 3:t.ssr||t.helper(Aa);break;case 5:t.ssr||t.helper(md);break;case 9:for(let s=0;s<e.branches.length;s++)yd(e.branches[s],t);break;case 10:case 11:case 1:case 0:KL(e,t);break}t.currentNode=e;let o=r.length;for(;o--;)r[o]()}function hS(e,t){const n=mn(e)?r=>r===e:r=>e.test(r);return(r,o)=>{if(r.type===1){const{props:s}=r;if(r.tagType===3&&s.some(CL))return;const l=[];for(let a=0;a<s.length;a++){const c=s[a];if(c.type===7&&n(c.name)){s.splice(a,1),a--;const f=t(r,c,o);f&&l.push(f)}}return l}}}const bd="/*#__PURE__*/",mS=e=>`${Ks[e]}: _${Ks[e]}`;function kb(e,{mode:t="function",prefixIdentifiers:n=t==="module",sourceMap:r=!1,filename:o="template.vue.html",scopeId:s=null,optimizeImports:l=!1,runtimeGlobalName:a="Vue",runtimeModuleName:c="vue",ssrRuntimeModuleName:f="vue/server-renderer",ssr:p=!1,isTS:h=!1,inSSR:v=!1}){const y={mode:t,prefixIdentifiers:n,sourceMap:r,filename:o,scopeId:s,optimizeImports:l,runtimeGlobalName:a,runtimeModuleName:c,ssrRuntimeModuleName:f,ssr:p,isTS:h,inSSR:v,source:e.loc.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(w){return`_${Ks[w]}`},push(w,I){y.code+=w},indent(){_(++y.indentLevel)},deindent(w=!1){w?--y.indentLevel:_(--y.indentLevel)},newline(){_(y.indentLevel)}};function _(w){y.push(` 3 3 `+" ".repeat(w))}return y}function GL(e,t={}){const n=kb(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:r,push:o,prefixIdentifiers:s,indent:l,deindent:a,newline:c,scopeId:f,ssr:p}=n,h=Array.from(e.helpers),v=h.length>0,y=!s&&r!=="module",_=!1,w=_?kb(e,t):n;XL(e,w);const I=p?"ssrRender":"render",S=(p?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ");if(o(`function ${I}(${S}) {`),l(),y&&(o("with (_ctx) {"),l(),v&&(o(`const { ${h.map(mS).join(", ")} } = _Vue`),o(` … … 44 44 `:`; 45 45 `)+de+`return __p 46 }`;var st=Fy(function(){return Et(C,Ne+"return "+de).apply(n,R)});if(st.source=de,Zf(st))throw st;return st}function DI(i){return Ct(i).toLowerCase()}function FI(i){return Ct(i).toUpperCase()}function BI(i,u,d){if(i=Ct(i),i&&(d||u===n))return Kg(i);if(!i||!(u=lr(u)))return i;var m=Hr(i),b=Hr(u),C=Gg(m,b),R=Xg(m,b)+1;return ni(m,C,R).join("")}function UI(i,u,d){if(i=Ct(i),i&&(d||u===n))return i.slice(0,Yg(i)+1);if(!i||!(u=lr(u)))return i;var m=Hr(i),b=Xg(m,Hr(u))+1;return ni(m,0,b).join("")}function jI(i,u,d){if(i=Ct(i),i&&(d||u===n))return i.replace(Yd,"");if(!i||!(u=lr(u)))return i;var m=Hr(i),b=Gg(m,Hr(u));return ni(m,b).join("")}function HI(i,u){var d=D,m=F;if(Kt(u)){var b="separator"in u?u.separator:b;d="length"in u?ot(u.length):d,m="omission"in u?lr(u.omission):m}i=Ct(i);var C=i.length;if(_s(i)){var R=Hr(i);C=R.length}if(d>=C)return i;var M=d-ws(m);if(M<1)return m;var W=R?ni(R,0,M).join(""):i.slice(0,M);if(b===n)return W+m;if(R&&(M+=W.length-M),Qf(b)){if(i.slice(M).search(b)){var re,oe=W;for(b.global||(b=mf(b.source,Ct(mg.exec(b))+"g")),b.lastIndex=0;re=b.exec(oe);)var de=re.index;W=W.slice(0,de===n?M:de)}}else if(i.indexOf(lr(b),M)!=M){var Ce=W.lastIndexOf(b);Ce>-1&&(W=W.slice(0,Ce))}return W+m}function VI(i){return i=Ct(i),i&&eC.test(i)?i.replace(fg,yT):i}var WI=Os(function(i,u,d){return i+(d?" ":"")+u.toUpperCase()}),np=B0("toUpperCase");function Dy(i,u,d){return i=Ct(i),u=d?n:u,u===n?pT(i)?wT(i):oT(i):i.match(u)||[]}var Fy=at(function(i,u){try{return ir(i,n,u)}catch(d){return Zf(d)?d:new Ze(d)}}),zI=Io(function(i,u){return wr(u,function(d){d=po(d),Oo(i,d,Jf(i[d],i))}),i});function qI(i){var u=i==null?0:i.length,d=Ve();return i=u?Vt(i,function(m){if(typeof m[1]!="function")throw new Sr(l);return[d(m[0]),m[1]]}):[],at(function(m){for(var b=-1;++b<u;){var C=i[b];if(ir(C[0],this,m))return ir(C[1],this,m)}})}function KI(i){return yO(xr(i,h))}function rp(i){return function(){return i}}function GI(i,u){return i==null||i!==i?u:i}var XI=j0(),JI=j0(!0);function Gn(i){return i}function op(i){return g0(typeof i=="function"?i:xr(i,h))}function YI(i){return b0(xr(i,h))}function ZI(i,u){return _0(i,xr(u,h))}var QI=at(function(i,u){return function(d){return bl(d,i,u)}}),eP=at(function(i,u){return function(d){return bl(i,d,u)}});function ip(i,u,d){var m=pn(u),b=hu(u,m);d==null&&!(Kt(u)&&(b.length||!m.length))&&(d=u,u=i,i=this,b=hu(u,pn(u)));var C=!(Kt(d)&&"chain"in d)||!!d.chain,R=ko(i);return wr(b,function(M){var W=u[M];i[M]=W,R&&(i.prototype[M]=function(){var re=this.__chain__;if(C||re){var oe=i(this.__wrapped__),de=oe.__actions__=zn(this.__actions__);return de.push({func:W,args:arguments,thisArg:i}),oe.__chain__=re,oe}return W.apply(i,Jo([this.value()],arguments))})}),i}function tP(){return yn._===this&&(yn._=TT),this}function sp(){}function nP(i){return i=ot(i),at(function(u){return w0(u,i)})}var rP=Df(Vt),oP=Df(Hg),iP=Df(af);function By(i){return Wf(i)?uf(po(i)):NO(i)}function sP(i){return function(u){return i==null?n:ki(i,u)}}var lP=V0(),aP=V0(!0);function lp(){return[]}function ap(){return!1}function uP(){return{}}function cP(){return""}function dP(){return!0}function fP(i,u){if(i=ot(i),i<1||i>Ae)return[];var d=Le,m=Cn(i,Le);u=Ve(u),i-=Le;for(var b=ff(m,u);++d<i;)u(d);return b}function pP(i){return Qe(i)?Vt(i,po):ar(i)?[i]:zn(iy(Ct(i)))}function hP(i){var u=++$T;return Ct(i)+u}var mP=_u(function(i,u){return i+u},0),vP=Ff("ceil"),gP=_u(function(i,u){return i/u},1),yP=Ff("floor");function bP(i){return i&&i.length?pu(i,Gn,Ef):n}function _P(i,u){return i&&i.length?pu(i,Ve(u,2),Ef):n}function wP(i){return zg(i,Gn)}function SP(i,u){return zg(i,Ve(u,2))}function EP(i){return i&&i.length?pu(i,Gn,Tf):n}function xP(i,u){return i&&i.length?pu(i,Ve(u,2),Tf):n}var $P=_u(function(i,u){return i*u},1),CP=Ff("round"),TP=_u(function(i,u){return i-u},0);function OP(i){return i&&i.length?df(i,Gn):0}function AP(i,u){return i&&i.length?df(i,Ve(u,2)):0}return x.after=YA,x.ary=vy,x.assign=F3,x.assignIn=Iy,x.assignInWith=Ru,x.assignWith=B3,x.at=U3,x.before=gy,x.bind=Jf,x.bindAll=zI,x.bindKey=yy,x.castArray=u3,x.chain=py,x.chunk=y5,x.compact=b5,x.concat=_5,x.cond=qI,x.conforms=KI,x.constant=rp,x.countBy=OA,x.create=j3,x.curry=by,x.curryRight=_y,x.debounce=wy,x.defaults=H3,x.defaultsDeep=V3,x.defer=ZA,x.delay=QA,x.difference=w5,x.differenceBy=S5,x.differenceWith=E5,x.drop=x5,x.dropRight=$5,x.dropRightWhile=C5,x.dropWhile=T5,x.fill=O5,x.filter=IA,x.flatMap=RA,x.flatMapDeep=LA,x.flatMapDepth=NA,x.flatten=uy,x.flattenDeep=A5,x.flattenDepth=I5,x.flip=e3,x.flow=XI,x.flowRight=JI,x.fromPairs=P5,x.functions=J3,x.functionsIn=Y3,x.groupBy=MA,x.initial=R5,x.intersection=L5,x.intersectionBy=N5,x.intersectionWith=M5,x.invert=Q3,x.invertBy=eI,x.invokeMap=FA,x.iteratee=op,x.keyBy=BA,x.keys=pn,x.keysIn=Kn,x.map=Tu,x.mapKeys=nI,x.mapValues=rI,x.matches=YI,x.matchesProperty=ZI,x.memoize=Au,x.merge=oI,x.mergeWith=Py,x.method=QI,x.methodOf=eP,x.mixin=ip,x.negate=Iu,x.nthArg=nP,x.omit=iI,x.omitBy=sI,x.once=t3,x.orderBy=UA,x.over=rP,x.overArgs=n3,x.overEvery=oP,x.overSome=iP,x.partial=Yf,x.partialRight=Sy,x.partition=jA,x.pick=lI,x.pickBy=ky,x.property=By,x.propertyOf=sP,x.pull=U5,x.pullAll=dy,x.pullAllBy=j5,x.pullAllWith=H5,x.pullAt=V5,x.range=lP,x.rangeRight=aP,x.rearg=r3,x.reject=WA,x.remove=W5,x.rest=o3,x.reverse=Gf,x.sampleSize=qA,x.set=uI,x.setWith=cI,x.shuffle=KA,x.slice=z5,x.sortBy=JA,x.sortedUniq=Z5,x.sortedUniqBy=Q5,x.split=RI,x.spread=i3,x.tail=eA,x.take=tA,x.takeRight=nA,x.takeRightWhile=rA,x.takeWhile=oA,x.tap=bA,x.throttle=s3,x.thru=Cu,x.toArray=Ty,x.toPairs=Ry,x.toPairsIn=Ly,x.toPath=pP,x.toPlainObject=Ay,x.transform=dI,x.unary=l3,x.union=iA,x.unionBy=sA,x.unionWith=lA,x.uniq=aA,x.uniqBy=uA,x.uniqWith=cA,x.unset=fI,x.unzip=Xf,x.unzipWith=fy,x.update=pI,x.updateWith=hI,x.values=Ps,x.valuesIn=mI,x.without=dA,x.words=Dy,x.wrap=a3,x.xor=fA,x.xorBy=pA,x.xorWith=hA,x.zip=mA,x.zipObject=vA,x.zipObjectDeep=gA,x.zipWith=yA,x.entries=Ry,x.entriesIn=Ly,x.extend=Iy,x.extendWith=Ru,ip(x,x),x.add=mP,x.attempt=Fy,x.camelCase=bI,x.capitalize=Ny,x.ceil=vP,x.clamp=vI,x.clone=c3,x.cloneDeep=f3,x.cloneDeepWith=p3,x.cloneWith=d3,x.conformsTo=h3,x.deburr=My,x.defaultTo=GI,x.divide=gP,x.endsWith=_I,x.eq=Wr,x.escape=wI,x.escapeRegExp=SI,x.every=AA,x.find=PA,x.findIndex=ly,x.findKey=W3,x.findLast=kA,x.findLastIndex=ay,x.findLastKey=z3,x.floor=yP,x.forEach=hy,x.forEachRight=my,x.forIn=q3,x.forInRight=K3,x.forOwn=G3,x.forOwnRight=X3,x.get=ep,x.gt=m3,x.gte=v3,x.has=Z3,x.hasIn=tp,x.head=cy,x.identity=Gn,x.includes=DA,x.indexOf=k5,x.inRange=gI,x.invoke=tI,x.isArguments=Ni,x.isArray=Qe,x.isArrayBuffer=g3,x.isArrayLike=qn,x.isArrayLikeObject=Qt,x.isBoolean=y3,x.isBuffer=ri,x.isDate=b3,x.isElement=_3,x.isEmpty=w3,x.isEqual=S3,x.isEqualWith=E3,x.isError=Zf,x.isFinite=x3,x.isFunction=ko,x.isInteger=Ey,x.isLength=Pu,x.isMap=xy,x.isMatch=$3,x.isMatchWith=C3,x.isNaN=T3,x.isNative=O3,x.isNil=I3,x.isNull=A3,x.isNumber=$y,x.isObject=Kt,x.isObjectLike=Gt,x.isPlainObject=$l,x.isRegExp=Qf,x.isSafeInteger=P3,x.isSet=Cy,x.isString=ku,x.isSymbol=ar,x.isTypedArray=Is,x.isUndefined=k3,x.isWeakMap=R3,x.isWeakSet=L3,x.join=D5,x.kebabCase=EI,x.last=Cr,x.lastIndexOf=F5,x.lowerCase=xI,x.lowerFirst=$I,x.lt=N3,x.lte=M3,x.max=bP,x.maxBy=_P,x.mean=wP,x.meanBy=SP,x.min=EP,x.minBy=xP,x.stubArray=lp,x.stubFalse=ap,x.stubObject=uP,x.stubString=cP,x.stubTrue=dP,x.multiply=$P,x.nth=B5,x.noConflict=tP,x.noop=sp,x.now=Ou,x.pad=CI,x.padEnd=TI,x.padStart=OI,x.parseInt=AI,x.random=yI,x.reduce=HA,x.reduceRight=VA,x.repeat=II,x.replace=PI,x.result=aI,x.round=CP,x.runInContext=j,x.sample=zA,x.size=GA,x.snakeCase=kI,x.some=XA,x.sortedIndex=q5,x.sortedIndexBy=K5,x.sortedIndexOf=G5,x.sortedLastIndex=X5,x.sortedLastIndexBy=J5,x.sortedLastIndexOf=Y5,x.startCase=LI,x.startsWith=NI,x.subtract=TP,x.sum=OP,x.sumBy=AP,x.template=MI,x.times=fP,x.toFinite=Ro,x.toInteger=ot,x.toLength=Oy,x.toLower=DI,x.toNumber=Tr,x.toSafeInteger=D3,x.toString=Ct,x.toUpper=FI,x.trim=BI,x.trimEnd=UI,x.trimStart=jI,x.truncate=HI,x.unescape=VI,x.uniqueId=hP,x.upperCase=WI,x.upperFirst=np,x.each=hy,x.eachRight=my,x.first=cy,ip(x,function(){var i={};return co(x,function(u,d){Ot.call(x.prototype,d)||(i[d]=u)}),i}(),{chain:!1}),x.VERSION=r,wr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(i){x[i].placeholder=x}),wr(["drop","take"],function(i,u){ht.prototype[i]=function(d){d=d===n?1:un(ot(d),0);var m=this.__filtered__&&!u?new ht(this):this.clone();return m.__filtered__?m.__takeCount__=Cn(d,m.__takeCount__):m.__views__.push({size:Cn(d,Le),type:i+(m.__dir__<0?"Right":"")}),m},ht.prototype[i+"Right"]=function(d){return this.reverse()[i](d).reverse()}}),wr(["filter","map","takeWhile"],function(i,u){var d=u+1,m=d==te||d==be;ht.prototype[i]=function(b){var C=this.clone();return C.__iteratees__.push({iteratee:Ve(b,3),type:d}),C.__filtered__=C.__filtered__||m,C}}),wr(["head","last"],function(i,u){var d="take"+(u?"Right":"");ht.prototype[i]=function(){return this[d](1).value()[0]}}),wr(["initial","tail"],function(i,u){var d="drop"+(u?"":"Right");ht.prototype[i]=function(){return this.__filtered__?new ht(this):this[d](1)}}),ht.prototype.compact=function(){return this.filter(Gn)},ht.prototype.find=function(i){return this.filter(i).head()},ht.prototype.findLast=function(i){return this.reverse().find(i)},ht.prototype.invokeMap=at(function(i,u){return typeof i=="function"?new ht(this):this.map(function(d){return bl(d,i,u)})}),ht.prototype.reject=function(i){return this.filter(Iu(Ve(i)))},ht.prototype.slice=function(i,u){i=ot(i);var d=this;return d.__filtered__&&(i>0||u<0)?new ht(d):(i<0?d=d.takeRight(-i):i&&(d=d.drop(i)),u!==n&&(u=ot(u),d=u<0?d.dropRight(-u):d.take(u-i)),d)},ht.prototype.takeRightWhile=function(i){return this.reverse().takeWhile(i).reverse()},ht.prototype.toArray=function(){return this.take(Le)},co(ht.prototype,function(i,u){var d=/^(?:filter|find|map|reject)|While$/.test(u),m=/^(?:head|last)$/.test(u),b=x[m?"take"+(u=="last"?"Right":""):u],C=m||/^find/.test(u);!b||(x.prototype[u]=function(){var R=this.__wrapped__,M=m?[1]:arguments,W=R instanceof ht,re=M[0],oe=W||Qe(R),de=function(pt){var vt=b.apply(x,Jo([pt],M));return m&&Ce?vt[0]:vt};oe&&d&&typeof re=="function"&&re.length!=1&&(W=oe=!1);var Ce=this.__chain__,Ne=!!this.__actions__.length,We=C&&!Ce,st=W&&!Ne;if(!C&&oe){R=st?R:new ht(this);var ze=i.apply(R,M);return ze.__actions__.push({func:Cu,args:[de],thisArg:n}),new Er(ze,Ce)}return We&&st?i.apply(this,M):(ze=this.thru(de),We?m?ze.value()[0]:ze.value():ze)})}),wr(["pop","push","shift","sort","splice","unshift"],function(i){var u=Za[i],d=/^(?:push|sort|unshift)$/.test(i)?"tap":"thru",m=/^(?:pop|shift)$/.test(i);x.prototype[i]=function(){var b=arguments;if(m&&!this.__chain__){var C=this.value();return u.apply(Qe(C)?C:[],b)}return this[d](function(R){return u.apply(Qe(R)?R:[],b)})}}),co(ht.prototype,function(i,u){var d=x[u];if(d){var m=d.name+"";Ot.call($s,m)||($s[m]=[]),$s[m].push({name:u,func:d})}}),$s[bu(n,O).name]=[{name:"wrapper",func:n}],ht.prototype.clone=VT,ht.prototype.reverse=WT,ht.prototype.value=zT,x.prototype.at=_A,x.prototype.chain=wA,x.prototype.commit=SA,x.prototype.next=EA,x.prototype.plant=$A,x.prototype.reverse=CA,x.prototype.toJSON=x.prototype.valueOf=x.prototype.value=TA,x.prototype.first=x.prototype.head,fl&&(x.prototype[fl]=xA),x},Ss=ST();Ti?((Ti.exports=Ss)._=Ss,rf._=Ss):yn._=Ss}).call(Al)})(Y,Y.exports);const YM={chapters:[],selected:null},AE="podlove/publisher/chapter/INIT",Qm="podlove/publisher/chapter/UPDATE",IE="podlove/publisher/chapter/SELECT",ev="podlove/publisher/chapter/REMOVE",tv="podlove/publisher/chapter/ADD",PE="podlove/publisher/chapter/PARSE",nv="podlove/publisher/chapter/PARSED",kE="podlove/publisher/chapter/SET",RE="podlove/publisher/chapter/DOWNLOAD",rv="podlove/publisher/chapter/SELECT_IMAGE",ov="podlove/publisher/chapter/SET_IMAGE",ZM=ge(AE),QM=ge(Qm),di=ge(IE),eD=ge(ev),tD=ge(tv),nD=ge(PE),LE=ge(nv),rD=ge(kE),oD=ge(RE),iD=ge(rv);ge(ov);const sD=or({[nv]:(e,t)=>({...e,selected:null,chapters:Y.exports.get(t,["payload"],[])}),[kE]:(e,t)=>({...e,selected:null,chapters:Y.exports.get(t,["payload"],[])}),[Qm]:(e,t)=>{let n=NE(e);const r=ME(e),s=e.chapters.reduce((a,c,f)=>[...a,f===t.payload.index?{...c,...t.payload.chapter}:c],[]).sort((a,c)=>a.start-c.start),l=s.findIndex(a=>r&&a.title==r.title);return{...e,chapters:s,selected:l>=0?l:n}},[IE]:(e,t)=>({...e,selected:t.payload}),[tv]:e=>({...e,chapters:[...e.chapters,{start:Y.exports.get(e,["chapters",e.chapters.length-1,"start"],0),title:"",href:"",image:""}]}),[ev]:(e,t)=>({...e,selected:null,chapters:e.chapters.filter((n,r)=>r!==t.payload)}),[ov]:(e,t)=>({...e,chapters:e.chapters.map((n,r)=>r!==e.selected?n:{...n,image:t.payload})})},YM),lD=e=>e.chapters,NE=e=>e.selected,ME=e=>e.selected!==null?Y.exports.get(e,["chapters",e.selected],null):null,$p={chapters:lD,selectedIndex:NE,selected:ME},Cp=function(e){if(!e)return 0;switch(e.length){case 0:return 0;case 1:return parseInt(e,10)*100;case 2:return parseInt(e,10)*10;default:return parseInt(e.substr(0,3),10)}},La=function(e){e=(e||"").trim();const t=/^(\d+)(?:\.(\d+))?$/,n=/^(\d+):(\d\d?)(?:\.(\d+))?$/,r=/^(\d+):(\d\d?):(\d\d?)(?:\.(\d+))?$/;let o,s=0,l=0,a=0,c=0;if(o=e.match(t))s=Cp(o[2]),l=o[1]?parseInt(o[1],10):0;else if(o=e.match(n))s=Cp(o[3]),l=o[2]?parseInt(o[2],10):0,a=o[1]?parseInt(o[1],10):0;else if(o=e.match(r))s=Cp(o[4]),l=o[3]?parseInt(o[3],10):0,a=o[2]?parseInt(o[2],10):0,c=o[1]?parseInt(o[1],10):0;else return null;return((c*60+a)*60+l)*1e3+s};class Nt{constructor(t){this.totalMs=t}get totalSeconds(){return Math.floor(this.totalMs/1e3)}get totalMinutes(){return Math.floor(this.totalSeconds/60)}get totalHours(){return Math.floor(this.totalMinutes/60)}get milliseconds(){return this.totalMs%1e3}get seconds(){return this.totalSeconds%60}get minutes(){return this.totalMinutes%60}get hours(){return this.totalHours%60}get pretty(){return this.pad(this.totalHours)+":"+this.pad(this.minutes)+":"+this.pad(this.seconds)+"."+this.pad(this.milliseconds,"000")}get prettyShort(){return this.totalHours?this.pad(this.totalHours)+":"+this.pad(this.minutes)+":"+this.pad(this.seconds):this.pad(this.minutes)+":"+this.pad(this.seconds)}pad(t,n="00"){let r=""+t;return r.length<n.length?n.substring(0,n.length-r.length)+r:t}static fromString(t){let n=0;return t==parseInt(t,10)?n=parseInt(t,10):n=La(t)||0,new Nt(n)}}const s1=(e,t,n)=>{const r=[...e];return r.splice(n,0,r.splice(t,1)[0]),r},DE="podlove/publisher/episode/INIT",Ys="podlove/publisher/episode/UPDATE",FE="podlove/publisher/episode/QUICKSAVE",BE="podlove/publisher/episode/SAVED",UE="podlove/publisher/episode/SLUG_CHANGED",Td="podlove/publisher/episode/SET",jE="podlove/publisher/episode/SET_POSTER",HE="podlove/publisher/episode/SELECT_POSTER",iv="podlove/publisher/episode/MOVE_CONTRIBUTION_UP",sv="podlove/publisher/episode/MOVE_CONTRIBUTION_DOWN",lv="podlove/publisher/episode/DELETE_CONTRIBUTION",av="podlove/publisher/episode/UPDATE_CONTRIBUTION",uv="podlove/publisher/episode/ADD_CONTRIBUTION",VE="podlove/publisher/episode/CREATE_CONTRIBUTION",aD={id:null,slug:null,duration:null,number:null,subtitle:null,title:null,summary:null,type:null,episode_poster:null,poster:null,mnemonic:null,explicit:null,auphonic_production_id:null,auphonic_webhook_config:null,soundbite_start:null,soundbite_duration:null,soundbite_title:null,contributions:[],license_name:null,license_url:null,show:null},$t=ge(Ys),uD=ge(FE),Od=ge(DE),cD=ge(HE),WE=ge(Td),dD=ge(iv),fD=ge(sv),pD=ge(lv),Tp=ge(av),zE=ge(uv),hD=ge(VE),mD=ge(BE),vD=ge(UE),gD=or({[Eo]:(e,t)=>({...e,id:Y.exports.get(t,["payload","episode","id"],null),duration:Nt.fromString(Y.exports.get(t,["payload","episode","duration"],null)).totalMs}),[Ys]:(e,t)=>{const n=Y.exports.get(t,["payload","prop"]),r=Y.exports.get(t,["payload","value"],null);return["title","subtitle","summary","duration","slug","auphonic_webhook_config","soundbite_start","soundbite_duration","soundbite_title","license_name","license_url","show","number" ].includes(n)?{...e,[n]:r}:n=="image"?{...e,episode_poster:r}:(console.debug("todo",n,r),{...e})},[Td]:(e,t)=>({...e,slug:Y.exports.get(t,["payload","slug"],e.slug),number:Y.exports.get(t,["payload","number"],e.number),duration:Y.exports.get(t,["payload","duration"],e.duration),title:Y.exports.get(t,["payload","title_clean"],e.title),subtitle:Y.exports.get(t,["payload","subtitle"],e.subtitle),summary:Y.exports.get(t,["payload","summary"],e.summary),type:Y.exports.get(t,["payload","type"],e.type),episode_poster:Y.exports.get(t,["payload","episode_poster"],e.episode_poster),poster:Y.exports.get(t,["payload","poster"],e.poster),mnemonic:Y.exports.get(t,["payload","mnemonic"],e.mnemonic),explicit:Y.exports.get(t,["payload","explicit"],e.explicit),auphonic_production_id:Y.exports.get(t,["payload","auphonic_production_id"],e.auphonic_production_id),auphonic_webhook_config:Y.exports.get(t,["payload","auphonic_webhook_config"],e.auphonic_webhook_config),soundbite_start:Y.exports.get(t,["payload","soundbite_start"],e.soundbite_start),soundbite_duration:Y.exports.get(t,["payload","soundbite_duration"],e.soundbite_duration),soundbite_title:Y.exports.get(t,["payload","soundbite_title"],e.soundbite_title),license_name:Y.exports.get(t,["payload","license_name"],e.license_name),license_url:Y.exports.get(t,["payload","license_url"],e.license_url),contributions:Y.exports.get(t,["payload","contributions"],e.contributions),show:Y.exports.get(t,["payload","show"],e.show)}),[iv]:(e,t)=>{const n=e.contributions.findIndex(r=>r.position===Y.exports.get(t,["payload","position"]));return n<1?e:{...e,contributions:s1(e.contributions,n,n-1).map((r,o)=>({...r,position:o}))}},[sv]:(e,t)=>{const n=e.contributions.findIndex(r=>r.position===Y.exports.get(t,["payload","position"]));return n>e.contributions.length?e:{...e,contributions:s1(e.contributions,n,n+1).map((r,o)=>({...r,position:o}))}},[lv]:(e,t)=>({...e,contributions:e.contributions.filter(({position:n})=>Y.exports.get(t,["payload","position"])!==n).map((n,r)=>({...n,position:r}))}),[av]:(e,t)=>({...e,contributions:e.contributions.map(n=>n.contributor_id!==Y.exports.get(t,["payload","contributor_id"])?n:Y.exports.pick(Y.exports.get(t,["payload"],{}),["id","contributor_id","role_id","group_id","position","comment"]))}),[uv]:(e,t)=>({...e,contributions:[...e.contributions,{id:null,contributor_id:Y.exports.get(t,["payload","id"],null),role_id:null,group_id:null,position:e.contributions.length,comment:null}]})},aD),tn={id:e=>e.id,slug:e=>e.slug,duration:e=>e.duration,number:e=>e.number,title:e=>e.title,subtitle:e=>e.subtitle,summary:e=>e.summary,type:e=>e.type,poster:e=>e.poster,episodePoster:e=>e.episode_poster,mnemonic:e=>e.mnemonic,explicit:e=>e.explicit,auphonicProductionId:e=>e.auphonic_production_id,auphonicWebhookConfig:e=>e.auphonic_webhook_config,soundbite_start:e=>e.soundbite_start,soundbite_duration:e=>e.soundbite_duration,soundbite_title:e=>e.soundbite_title,license_name:e=>e.license_name,license_url:e=>e.license_url,contributions:e=>e.contributions,currentShow:e=>e.show},yD={baseUrl:null,api:{nonce:null,base:null,auth:null,bearer:null}},bD=or({[Eo]:(e,t)=>({...e,baseUrl:Y.exports.get(t,["payload","baseUrl"],null),api:{base:Y.exports.get(t,["payload","api","base"],null),nonce:Y.exports.get(t,["payload","api","nonce"],null),auth:Y.exports.get(t,["payload","api","auth"],null),bearer:Y.exports.get(t,["payload","api","bearer"],null)}})},yD),Il={baseUrl:e=>e.baseUrl,nonce:e=>e.api.nonce,base:e=>e.api.base,auth:e=>e.api.auth,bearer:e=>e.api.bearer},cv="podlove/publisher/wordpress/UPDATE",qE="podlove/publisher/wordpress/SELECT_MEDIA_FROM_LIBRARY",KE=ge(cv),dv=ge(qE),_D={id:null,title:null},wD=or({[Eo]:(e,t)=>({...e,id:Y.exports.get(t,["payload","post","id"],null),title:Y.exports.get(t,["payload","post","title"],null)}),[cv]:(e,t)=>t.payload.prop!=="title"?e:{...e,title:t.payload.value}},_D),l1={id:e=>e.id,title:e=>e.title},GE="podlove/publisher/transcript/INIT",XE="podlove/publisher/transcript/SET_TRANSCRIPTS",JE="podlove/publisher/transcript/SET_VOICES",fv="podlove/publisher/transcript/UPDATE_VOICE",YE="podlove/publisher/transcript/IMPORT_TRANSCRIPTS",ZE="podlove/publisher/transcript/IMPORT_ASSET_TRANSCRIPTS",QE="podlove/publisher/transcript/DELETE_TRANSCRIPTS",SD=ge(GE),ED=ge(XE),xD=ge(JE),$D=ge(fv),CD=ge(YE),TD=ge(ZE),OD=ge(QE),AD={transcripts:[],voices:[]},ID=or({[XE]:(e,t)=>({...e,transcripts:t.payload}),[JE]:(e,t)=>({...e,voices:t.payload.map(n=>({voice:n.voice,contributor:n.contributor_id}))}),[fv]:(e,t)=>({...e,voices:e.voices.map(n=>n.voice===t.payload.voice?{...n,contributor:t.payload.contributor}:n)})},AD),a1={transcripts:e=>e.transcripts,voices:e=>e.voices},PD={contributors:[],roles:[],groups:[]},ex="podlove/publisher/contributors/INIT",tx="podlove/publisher/contributors/SET_CONTRIBUTORS",nx="podlove/publisher/contributors/SET_ROLES",rx="podlove/publisher/contributors/SET_GROUPS",ox="podlove/publisher/contributors/ADD",ix=ge(ex),kD=ge(tx),RD=ge(nx),LD=ge(rx),ND=ge(ox),MD=or({[tx]:(e,t)=>({...e,contributors:t.payload}),[nx]:(e,t)=>({...e,roles:t.payload}),[rx]:(e,t)=>({...e,groups:t.payload}),[ox]:(e,t)=>({...e,contributors:[...e.contributors,t.payload]})},PD),Op={contributors:e=>e.contributors,roles:e=>e.roles,groups:e=>e.groups},DD={metadata:{enable_episode_explicit:null,enable_episode_license:null,enable_episode_recording_date:null},tracking:{mode:null,window:null},website:{blog_title_template:null,custom_episode_slug:null,enable_generated_blog_post_title:null,episode_archive:null,episode_archive_slug:null,episode_number_padding:null,feeds_skip_redirect:null,hide_wp_feed_discovery:null,landing_page:null,merge_episodes:null,ssl_verify_peer:null,url_template:null,use_post_permastruct:null},assets:{image:null,chapter:null,transcript:null},media:{base_uri:null},modules:[]},FD=e=>{switch(e){case"0":return"podcast-cover";case"post-thumbnail":return"post-thumbnail";case"manual":return"manual";default:return null}},BD=e=>{switch(e){case"0":return"none";case"manual":return"manual";default:return null}},UD=or({[Eo]:(e,t)=>({...e,metadata:{enable_episode_explicit:Y.exports.get(t,["payload","expert_settings","metadata","enable_episode_explicit"],null)==="1",enable_episode_license:Y.exports.get(t,["payload","expert_settings","metadata","enable_episode_license"],null)==="1",enable_episode_recording_date:Y.exports.get(t,["payload","expert_settings","metadata","enable_episode_license"],null)==="1"},tracking:{mode:Y.exports.get(t,["payload","expert_settings","tracking","mode"],null),window:Y.exports.get(t,["payload","expert_settings","tracking","mode"],null)},media:{base_uri:Y.exports.get(t,["payload","media","base_uri"],null)},website:{blog_title_template:Y.exports.get(t,["payload","expert_settings","website","blog_title_template"],null),custom_episode_slug:Y.exports.get(t,["payload","expert_settings","website","custom_episode_slug"],null),enable_generated_blog_post_title:Y.exports.get(t,["payload","expert_settings","website","enable_generated_blog_post_title"],null)==="on",episode_archive:Y.exports.get(t,["payload","expert_settings","website","episode_archive"],null)==="on",episode_archive_slug:Y.exports.get(t,["payload","expert_settings","website","episode_archive_slug"],null),episode_number_padding:Y.exports.get(t,["payload","expert_settings","website","episode_number_padding"],null),feeds_skip_redirect:Y.exports.get(t,["payload","expert_settings","website","feeds_skip_redirect"],null)==="on",hide_wp_feed_discovery:Y.exports.get(t,["payload","expert_settings","website","hide_wp_feed_discovery"],null)==="on",landing_page:Y.exports.get(t,["payload","expert_settings","website","landing_page"],null),merge_episodes:Y.exports.get(t,["payload","expert_settings","website","merge_episodes"],null)==="on",ssl_verify_peer:Y.exports.get(t,["payload","expert_settings","website","ssl_verify_peer"],null)==="on",url_template:Y.exports.get(t,["payload","expert_settings","website","url_template"],null),use_post_permastruct:Y.exports.get(t,["payload","expert_settings","website","use_post_permastruct"],null)==="on"},assets:{image:FD(Y.exports.get(t,["payload","assignments","image"],null)),chapter:BD(Y.exports.get(t,["payload","assignments","chapter"],null)),transcript:Y.exports.get(t,["payload","assignments","transcript"],null)},modules:Y.exports.get(t,["payload","modules"])})},DD),Fi={autoGenerateEpisodeTitle:e=>e.website.enable_generated_blog_post_title,blogTitleTemplate:e=>e.website.blog_title_template,episodeNumberPadding:e=>e.website.episode_number_padding,imageAsset:e=>e.assets.image,enableEpisodeExplicit:e=>e.metadata.enable_episode_explicit,mediaFileBaseUri:e=>e.media.base_uri,modules:e=>e.modules},jD="podlove/publisher/podcast/INIT",sx="podlove/publisher/podcast/SET",HD="podlove/publisher/podcasr/SAVED",pv="podlove/publisher/podcast/UPDATE",VD={title:null,subtitle:null,summary:null,mnemonic:null,itunes_type:null,author_name:null,poster:null,link:null,license_name:null,license_url:null};ge(jD);const WD=ge(sx);ge(HD);const Zl=ge(pv),zD=or({[sx]:(e,t)=>({title:Y.exports.get(t,["payload","title"],e.title),subtitle:Y.exports.get(t,["payload","subtitle"],e.subtitle),summary:Y.exports.get(t,["payload","summary"],e.summary),mnemonic:Y.exports.get(t,["payload","mnemonic"],e.mnemonic),itunes_type:Y.exports.get(t,["payload","itunes_type"],e.itunes_type),author_name:Y.exports.get(t,["payload","author_name"],e.author_name),poster:Y.exports.get(t,["payload","poster"],e.poster),link:Y.exports.get(t,["payload","link"],e.link),license_name:Y.exports.get(t,["payload","license_name"],e.license_name),license_url:Y.exports.get(t,["payload","license_url"],e.license_url)}),[pv]:(e,t)=>{const n=Y.exports.get(t,["payload","prop"]),r=Y.exports.get(t,["payload","value"],null);return["title","subtitle","summary","author_name","podcast_email","funding_url","funding_label","license_name","license_url"].includes(n)?{...e,[n]:r}:(console.debug("todo",n,r),{...e})}},VD),ho={title:e=>e.title,subtitle:e=>e.subtitle,summary:e=>e.summary,mnemonic:e=>e.mnemonic,itunesType:e=>e.itunes_type,author:e=>e.author_name,poster:e=>e.poster,link:e=>e.link,license_name:e=>e.license_name,license_url:e=>e.license_url},qD={token:null,production:null,productions:[],presets:[],preset:null,services:[],service_files:{},tracks:[],file_selections:{},current_file_selection:null,is_saving:!1,is_initializing:!0,publish_when_done:!1},lx="podlove/publisher/auphonic/INIT",ax="podlove/publisher/auphonic/INIT_DONE",ux="podlove/publisher/auphonic/SET_TOKEN",Bc="podlove/publisher/auphonic/SET_PRODUCTION",cx="podlove/publisher/auphonic/SET_PRODUCTIONS",dx="podlove/publisher/auphonic/SET_SERVICES",fx="podlove/publisher/auphonic/CREATE_PRODUCTION",px="podlove/publisher/auphonic/CREATE_MULTITRACK_PRODUCTION",hx="podlove/publisher/auphonic/SAVE_PRODUCTION",KD="podlove/publisher/auphonic/START_PRODUCTION",hv="podlove/publisher/auphonic/DESELECT_PRODUCTION",GD="podlove/publisher/auphonic/SELECT_SERVICE",mv="podlove/publisher/auphonic/SET_SERVICE_FILES",XD="podlove/publisher/auphonic/SELECT_TRACKS",mx="podlove/publisher/auphonic/ADD_TRACK",vx="podlove/publisher/auphonic/REMOVE_TRACK",gx="podlove/publisher/auphonic/UPDATE_TRACK",yx="podlove/publisher/auphonic/SET_PRESETS",vv="podlove/publisher/auphonic/SET_PRESET",gv="podlove/publisher/auphonic/UPDATE_FILE_SELECTION",bx="podlove/publisher/auphonic/START_POLLING",_h="podlove/publisher/auphonic/STOP_POLLING",_x="podlove/publisher/auphonic/START_SAVING",wx="podlove/publisher/auphonic/STOP_SAVING",yv="podlove/publisher/auphonic/UPDATE_WEBHOOK",JD=ge(lx),YD=ge(ax),ZD=ge(ux),ds=ge(Bc),Sx=ge(hv),Ex=ge(cx),QD=ge(fx),e7=ge(px),xx=ge(hx),wh=ge(KD),t7=ge(yx),bv=ge(vv),n7=ge(dx),r7=ge(mv),$x=ge(GD),Cx=ge(gv);ge(XD);const o7=ge(mx),Tx=ge(vx),Ox=ge(gx),i7=ge(bx),u1=ge(_h),s7=ge(_x),l7=ge(wx),Ax=ge(yv),a7=or({[ax]:e=>({...e,is_initializing:!1}),[gv]:(e,t)=>({...e,current_file_selection:t.payload.key,file_selections:{...e.file_selections,[t.payload.key]:{...e.file_selections[t.payload.key],[t.payload.prop]:t.payload.value}}}),[mx]:(e,t)=>{const n=`Track ${e.tracks.length+1}`;return{...e,tracks:[...e.tracks,{identifier:n,identifier_new:n,fileSelection:null,input_file_name:"",filtering:!0,noise_and_hum_reduction:!1,fore_background:"auto",track_gain:"0",save_state:"new"}]}},[vx]:(e,t)=>({...e,tracks:e.tracks.filter((n,r)=>n.identifier!=t.payload)}),[gx]:(e,t)=>{const n=(o,s)=>o.save_state=="new"?{save_state:"new"}:{save_state:"edited"},r=e.tracks.reduce((o,s,l)=>[...o,l===t.payload.index?{...s,...t.payload.track,...n(s,t.payload.track)}:s],[]);return{...e,tracks:r}},[mv]:(e,t)=>{const{uuid:n,files:r}=t.payload;return{...e,service_files:{...e.service_files,[n]:r}}},[dx]:(e,t)=>({...e,services:t.payload}),[yx]:(e,t)=>({...e,presets:t.payload}),[cx]:(e,t)=>({...e,productions:t.payload}),[Bc]:(e,t)=>{var o,s;const n=t.payload;return{...e,production:n,file_selections:(()=>{var l;if(n!=null&&n.is_multitrack)return((l=n==null?void 0:n.multi_input_files)==null?void 0:l.reduce((a,c,f)=>{let p=c.service;return p||(c.input_file.substring(0,4)=="http"?p="url":p="file"),{...a,[`${n==null?void 0:n.uuid}_t${f}`]:{currentServiceSelection:p,fileSelection:c.service?c.input_file:null,urlValue:p=="url"?c.input_file:null,fileValue:null}}},{}))||{};{let a=n==null?void 0:n.service;const c=n==null?void 0:n.input_file;return a||((c==null?void 0:c.substring(0,4))=="http"?a="url":a="file"),{[`${n==null?void 0:n.uuid}`]:{currentServiceSelection:a,fileSelection:a?c:null,urlValue:a=="url"?c:null,fileValue:null}}}})(),tracks:((s=(o=t.payload)==null?void 0:o.multi_input_files)==null?void 0:s.reduce((l,a)=>{var c,f,p;return[...l,{identifier:a.id,identifier_new:a.id,filtering:(c=a.algorithms)==null?void 0:c.filtering,noise_and_hum_reduction:(f=a.algorithms)==null?void 0:f.denoise,fore_background:(p=a.algorithms)==null?void 0:p.backforeground,input_file_name:a.input_file,save_state:"unchanged"}]},[]))||[]}},[hv]:e=>({...e,production:null,tracks:[],file_selections:[],current_file_selection:null}),[vv]:(e,t)=>({...e,preset:t.payload}),[ux]:(e,t)=>({...e,token:t.payload}),[_x]:(e,t)=>({...e,is_saving:!0}),[wx]:(e,t)=>({...e,is_saving:!1}),[yv]:(e,t)=>({...e,publish_when_done:t.payload})},qD),u7=e=>e?e.map(t=>{let n={start:t.start,title:t.title};return t.image&&(n.image=t.image),t.url&&(n.url=t.url),n}):[],c7=e=>e?e.map(t=>({format:t.format,bitrate:t.bitrate,suffix:t.suffix,ending:t.ending,filename:t.filename,mono_mixdown:t.mono_mixdown,split_on_chapters:t.split_on_chapters,outgoing_services:t.outgoing_services})):[],d7=e=>{const t=e.production;return{uuid:t==null?void 0:t.uuid,metadata:t==null?void 0:t.metadata,input_file:t==null?void 0:t.input_file,chapters:u7(t==null?void 0:t.chapters),output_files:c7(t==null?void 0:t.output_files),output_basename:t==null?void 0:t.output_basename,outgoing_services:t==null?void 0:t.outgoing_services,algorithms:t==null?void 0:t.algorithms,speech_recognition:t==null?void 0:t.speech_recognition}},On={token:e=>e.token,production:e=>e.production,productionId:e=>{var t;return(t=e.production)==null?void 0:t.uuid},productions:e=>e.productions,presets:e=>e.presets,preset:e=>e.preset,productionPayload:d7,services:e=>e.services,incomingServices:e=>e.services.filter(t=>t.incoming),outgoingServices:e=>e.services.filter(t=>t.outgoing),serviceFiles:e=>e.service_files,tracks:e=>e.tracks,fileSelections:e=>e.file_selections,currentFileSelection:e=>e.current_file_selection,isSaving:e=>e.is_saving,isInitializing:e=>e.is_initializing,publishWhenDone:e=>e.publish_when_done},f7={is_initializing:!0,slug_autogeneration_enabled:!1,files:[]},Ix="podlove/publisher/mediafiles/INIT",Px="podlove/publisher/mediafiles/INIT_DONE",kx="podlove/publisher/mediafiles/SET",_v="podlove/publisher/mediafiles/UPDATE",Uc="podlove/publisher/mediafiles/ENABLE",jc="podlove/publisher/mediafiles/DISABLE",Rx="podlove/publisher/mediafiles/VERIFY",Lx="podlove/publisher/mediafiles/UPLOAD_INTENT",wv="podlove/publisher/mediafiles/SET_UPLOAD_URL",Nx="podlove/publisher/mediafiles/ENABLE_SLUG_AUTOGEN",Mx="podlove/publisher/mediafiles/DISABLE_SLUG_AUTOGEN",p7=ge(Ix),h7=ge(Px),m7=ge(kx),Sh=ge(_v),v7=ge(Uc),g7=ge(jc),y7=ge(Rx),b7=ge(Lx);ge(wv);const _7=ge(Nx),Dx=ge(Mx),w7=or({[Px]:e=>({...e,is_initializing:!1}),[kx]:(e,t)=>({...e,files:t.payload}),[_v]:(e,t)=>({...e,files:e.files.reduce((n,r)=>[...n,r.asset_id==t.payload.asset_id?{...r,...t.payload}:r],[])}),[Uc]:(e,t)=>({...e,files:e.files.reduce((n,r)=>[...n,r.asset_id==t.payload?{...r,enable:!0}:r],[])}),[jc]:(e,t)=>({...e,files:e.files.reduce((n,r)=>[...n,r.asset_id==t.payload?{...r,enable:!1}:r],[])}),[Nx]:e=>({...e,slug_autogeneration_enabled:!0}),[Mx]:e=>({...e,slug_autogeneration_enabled:!1})},f7),Ap={isInitializing:e=>e.is_initializing,slugAutogenerationEnabled:e=>e.slug_autogeneration_enabled,files:e=>e.files},S7={episodeList:[],selectEpisodes:[]},Fx="podlove/publisher/relatedEpisodes/INIT",Bx="podlove/publisher/relatedEpisodes/SET_EPISODE_LIST",Sv="podlove/publisher/relatedEpisodes/SET_SELECTED_EPISODES",E7="podlove/publisher/relatedEpisodes/UPDATE_RELATED_EPISODES",x7=ge(Fx),$7=ge(Bx),Ux=ge(Sv);ge(E7);const C7=or({[Eo]:(e,t)=>({...e}),[Bx]:(e,t)=>({...e,episodeList:t.payload}),[Sv]:(e,t)=>({...e,selectEpisodes:t.payload})},S7),c1={episodeList:e=>e.episodeList,selectEpisodes:e=>e.selectEpisodes},Ev="podlove/publisher/shows/INIT",xv="podlove/publisher/shows/SET",Hc="podlove/publisher/shows/SELECT",jx=ge(Ev),Hx=ge(xv),Vx=ge(Hc),Wx={shows:[]},zx=or({[xv]:(e,t)=>({...e,shows:Y.exports.get(t,["payload"],[])})},Wx),qx={shows:e=>e.shows};var T7=Object.freeze(Object.defineProperty({__proto__:null,INIT:Ev,SET:xv,SELECT:Hc,init:jx,set:Hx,select:Vx,initialState:Wx,reducer:zx,selectors:qx},Symbol.toStringTag,{value:"Module"}));const $e={lifecycle:e=>e.lifecycle,chapters:e=>e.chapters,podcast:e=>e.podcast,episode:e=>e.episode,runtime:e=>e.runtime,post:e=>e.post,transcripts:e=>e.transcripts,contributors:e=>e.contributors,auphonic:e=>e.auphonic,mediafiles:e=>e.mediafiles,settings:e=>e.settings,relatedEpisodes:e=>e.relatedEpisodes,shows:e=>e.shows},O7={bootstrapped:xe($e.lifecycle,JM.bootstrapped)},A7={token:xe($e.auphonic,On.token),productionId:xe($e.auphonic,On.productionId),productions:xe($e.auphonic,On.productions),production:xe($e.auphonic,On.production),presets:xe($e.auphonic,On.presets),preset:xe($e.auphonic,On.preset),productionPayload:xe($e.auphonic,On.productionPayload),incomingServices:xe($e.auphonic,On.incomingServices),outgoingServices:xe($e.auphonic,On.outgoingServices),serviceFiles:xe($e.auphonic,On.serviceFiles),tracks:xe($e.auphonic,On.tracks),fileSelections:xe($e.auphonic,On.fileSelections),currentFileSelection:xe($e.auphonic,On.currentFileSelection),isSaving:xe($e.auphonic,On.isSaving),isInitializing:xe($e.auphonic,On.isInitializing),publishWhenDone:xe($e.auphonic,On.publishWhenDone)},I7={title:xe($e.podcast,ho.title),subtitle:xe($e.podcast,ho.subtitle),summary:xe($e.podcast,ho.summary),mnemonic:xe($e.podcast,ho.mnemonic),itunesType:xe($e.podcast,ho.itunesType),author:xe($e.podcast,ho.author),poster:xe($e.podcast,ho.poster),link:xe($e.podcast,ho.link),license_name:xe($e.podcast,ho.license_name),license_url:xe($e.podcast,ho.license_url)},P7={list:xe($e.chapters,$p.chapters),selected:xe($e.chapters,$p.selected),selectedIndex:xe($e.chapters,$p.selectedIndex)},Kx={contributors:xe($e.contributors,Op.contributors),roles:xe($e.contributors,Op.roles),groups:xe($e.contributors,Op.groups)},k7={id:xe($e.episode,tn.id),slug:xe($e.episode,tn.slug),duration:xe($e.episode,tn.duration),number:xe($e.episode,tn.number),title:xe($e.episode,tn.title),subtitle:xe($e.episode,tn.subtitle),summary:xe($e.episode,tn.summary),type:xe($e.episode,tn.type),poster:xe($e.episode,tn.poster),episodePoster:xe($e.episode,tn.episodePoster),mnemonic:xe($e.episode,tn.mnemonic),explicit:xe($e.episode,tn.explicit),soundbite_start:xe($e.episode,tn.soundbite_start),soundbite_duration:xe($e.episode,tn.soundbite_duration),soundbite_title:xe($e.episode,tn.soundbite_title),auphonicProductionId:xe($e.episode,tn.auphonicProductionId),auphonicWebhookConfig:xe($e.episode,tn.auphonicWebhookConfig),license_name:xe($e.episode,tn.license_name),license_url:xe($e.episode,tn.license_url),contributions:xe(xe($e.episode,tn.contributions),Kx.contributors,(e,t)=>e.map(r=>({...r,...r.contributor_id?t.find(({id:o})=>o.toString()===r.contributor_id.toString()):{}}))),currentShow:xe($e.episode,tn.currentShow)},R7={isInitializing:xe($e.mediafiles,Ap.isInitializing),files:xe($e.mediafiles,Ap.files),slugAutogenerationEnabled:xe($e.mediafiles,Ap.slugAutogenerationEnabled)},L7={baseUrl:xe($e.runtime,Il.baseUrl),nonce:xe($e.runtime,Il.nonce),base:xe($e.runtime,Il.base),auth:xe($e.runtime,Il.auth),bearer:xe($e.runtime,Il.bearer)},N7={id:xe($e.post,l1.id),title:xe($e.post,l1.title)},M7={list:xe($e.transcripts,a1.transcripts),voices:xe($e.transcripts,a1.voices)},D7={autoGenerateEpisodeTitle:xe($e.settings,Fi.autoGenerateEpisodeTitle),blogTitleTemplate:xe($e.settings,Fi.blogTitleTemplate),episodeNumberPadding:xe($e.settings,Fi.episodeNumberPadding),mediaFileBaseUri:xe($e.settings,Fi.mediaFileBaseUri),imageAsset:xe($e.settings,Fi.imageAsset),enableEpisodeExplicit:xe($e.settings,Fi.enableEpisodeExplicit),modules:xe($e.settings,Fi.modules)},F7={episodeList:xe($e.relatedEpisodes,c1.episodeList),selectEpisode:xe($e.relatedEpisodes,c1.selectEpisodes)},B7={list:xe($e.shows,qx.shows)};var G={lifecycle:O7,podcast:I7,chapters:P7,episode:k7,runtime:L7,post:N7,transcripts:M7,contributors:Kx,settings:D7,auphonic:A7,mediafiles:R7,relatedEpisodes:F7,shows:B7},U7=LS({lifecycle:XM,chapters:sD,episode:gD,runtime:bD,post:wD,transcripts:ID,contributors:MD,settings:UD,podcast:zD,auphonic:a7,mediafiles:w7,relatedEpisodes:C7,shows:zx}),d1=function(t){return{done:!0,value:t}},Ip={};function Ad(e){return wd(e)?"channel":zS(e)?String(e):Hn(e)?e.name:String(e)}function Id(e,t,n){var r,o,s,l=t;function a(c,f){if(l===Ip)return d1(c);if(f&&!o)throw l=Ip,f;r&&r(c);var p=f?e[o](f):e[l]();return l=p.nextState,s=p.effect,r=p.stateUpdater,o=p.errorState,l===Ip?d1(c):s}return yh(a,function(c){return a(null,c)},n)}function j7(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var s={done:!1,value:go(e)},l=function(p){return{done:!1,value:Dt.apply(void 0,[t].concat(r,[p]))}},a,c=function(p){return a=p};return Id({q1:function(){return{nextState:"q2",effect:s,stateUpdater:c}},q2:function(){return{nextState:"q1",effect:l(a)}}},"q1","takeEvery("+Ad(e)+", "+t.name+")")}function H7(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var s={done:!1,value:go(e)},l=function(y){return{done:!1,value:Dt.apply(void 0,[t].concat(r,[y]))}},a=function(y){return{done:!1,value:W6(y)}},c,f,p=function(y){return c=y},h=function(y){return f=y};return Id({q1:function(){return{nextState:"q2",effect:s,stateUpdater:h}},q2:function(){return c?{nextState:"q3",effect:a(c)}:{nextState:"q1",effect:l(f),stateUpdater:p}},q3:function(){return{nextState:"q1",effect:l(f),stateUpdater:p}}},"q1","takeLatest("+Ad(e)+", "+t.name+")")}function V7(e,t,n){for(var r=arguments.length,o=new Array(r>3?r-3:0),s=3;s<r;s++)o[s-3]=arguments[s];var l,a,c=function(){return{done:!1,value:go(a)}},f=function(w){return{done:!1,value:Dt.apply(void 0,[n].concat(o,[w]))}},p={done:!1,value:qm(e)},h=function(w){return l=w},v=function(w){return a=w},y=!wd(t);return y||v(t),Id({q1:function(){var w={done:!1,value:z6(t,M6(1))};return{nextState:"q2",effect:w,stateUpdater:v}},q2:function(){return{nextState:"q3",effect:c(),stateUpdater:h}},q3:function(){return{nextState:"q4",effect:f(l)}},q4:function(){return{nextState:"q2",effect:p}}},y?"q1":"q2","throttle("+Ad(t)+", "+n.name+")")}function W7(e,t,n){for(var r=arguments.length,o=new Array(r>3?r-3:0),s=3;s<r;s++)o[s-3]=arguments[s];var l,a,c={done:!1,value:go(t)},f={done:!1,value:bh({action:go(t),debounce:qm(e)})},p=function(w){return{done:!1,value:Dt.apply(void 0,[n].concat(o,[w]))}},h=function(w){return{done:!1,value:w}},v=function(w){return l=w},y=function(w){return a=w};return Id({q1:function(){return{nextState:"q2",effect:c,stateUpdater:v}},q2:function(){return{nextState:"q3",effect:f,stateUpdater:y}},q3:function(){return a.debounce?{nextState:"q1",effect:p(l)}:{nextState:"q2",effect:h(a.action),stateUpdater:v}}},"q1","debounce("+Ad(t)+", "+n.name+")")}function Ge(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return Dt.apply(void 0,[j7,e,t].concat(r))}function z7(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return Dt.apply(void 0,[H7,e,t].concat(r))}function Gx(e,t,n){for(var r=arguments.length,o=new Array(r>3?r-3:0),s=3;s<r;s++)o[s-3]=arguments[s];return Dt.apply(void 0,[V7,e,t,n].concat(o))}function Eh(e,t,n){for(var r=arguments.length,o=new Array(r>3?r-3:0),s=3;s<r;s++)o[s-3]=arguments[s];return Dt.apply(void 0,[W7,e,t,n].concat(o))}function q7(){return function*(){const e=yield Zn(X7,"click","button.editor-post-publish-button");yield Ge(e,K7),yield Ge(Eo,G7)}}function*K7(){yield Ie(qM())}function*G7(){yield Ie(KM())}function X7(e,t){return SE(n=>{let r;const o=s=>{n(s)};return window.addEventListener("load",()=>{r=document.querySelector(t),r==null||r.addEventListener(e,o)}),()=>{r==null||r.removeEventListener(e,o),n(Us)}})}const xh=e=>SE(t=>(e(r=>{t(r||{})}),()=>{}));function*xo(e,t,...n){return yield Dt(function*(){for(;;){const o=yield go(e);yield Zn(t,...n.concat(o))}})}function*J7(e){if(!(yield Te(e))){for(;;)if(yield go("*"),yield Te(e))return}}const al=(e,t={})=>{const n=Object.keys(t).map(r=>encodeURIComponent(r)+"="+encodeURIComponent(t[r])).join("&");return e+=(e.indexOf("?")===-1?"?":"&")+n},Na=(e=console.error)=>async t=>{let n;try{n=await t.json()}catch{n={}}return t.status>=300?(e(n),{error:n}):{result:n}},Xx=({nonce:e,auth:t,bearer:n},r={})=>({"Content-Type":"application/json",Accept:"application/json",...n?{Authorization:`Bearer ${n}`}:{},...t?{Authorization:`Basic ${t}`}:{},...e?{"X-WP-Nonce":e}:{},...r}),f1=({errorHandler:e,nonce:t,auth:n,bearer:r,method:o,urlProcessor:s})=>(l,{headers:a,query:c}={})=>fetch(al(s?s(l):l,c),{method:o,headers:Xx({nonce:t,auth:n,bearer:r},a)}).then(Na(e)),p1=({errorHandler:e,nonce:t,auth:n,bearer:r,method:o,urlProcessor:s})=>(l,a,{headers:c,query:f}={})=>fetch(al(s?s(l):l,f),{method:o,headers:Xx({nonce:t,auth:n,bearer:r},c),body:JSON.stringify(a)}).then(Na(e)),Y7=Y.exports.curry(({base:e,version:t,nonce:n,auth:r,bearer:o,errorHandler:s})=>({get:f1({nonce:n,auth:r,bearer:o,method:"GET",errorHandler:s,urlProcessor:l=>`${e}/${t}/${l}`}),delete:f1({nonce:n,auth:r,bearer:o,errorHandler:s,method:"DELETE",urlProcessor:l=>`${e}/${t}/${l}`}),post:p1({nonce:n,auth:r,bearer:o,errorHandler:s,method:"POST",urlProcessor:l=>`${e}/${t}/${l}`}),put:p1({nonce:n,auth:r,bearer:o,errorHandler:s,method:"PUT",urlProcessor:l=>`${e}/${t}/${l}`})})),Jx="podlove/publisher/NOTIFY",$v=ge(Jx),Z7={};or({},Z7);function*Go(){yield Zn(J7,G.lifecycle.bootstrapped);const e=yield Te(G.runtime.base),t=yield Te(G.runtime.nonce),n=yield Te(G.runtime.auth),r=yield Te(G.runtime.bearer);return Y7({base:e,version:"v2",nonce:t,auth:n,bearer:r,errorHandler:function(s){Fd.dispatch($v({type:"error",message:s}))}})}function*Q7(){const e=yield Go();yield Dt(eF,e),yield Ge(pv,tF)}function*eF(e){const{result:t}=yield e.get("podcast");t&&(yield Ie(WD(t)))}function tF(e){const t=Y.exports.get(e,["payload","prop"]);Y.exports.get(e,["payload","value"],null)}function nF(){return function*(){yield xo(Eo,Q7)}}function rF(){return function*(){yield Ge(Jx,oF)}}function*oF(e){const t=Y.exports.get(globalThis,["wp","data","dispatch"]);t?iF(t,Y.exports.get(e,["payload"])):sF(e.payload)}function iF(e,{type:t,message:n}){!n||e("core/notices").createNotice(t,n,{type:"snackbar",isDismissible:!0})}function sF({type:e,message:t}){switch(e){case"success":case"info":console.log(t);break;case"warning":console.warn(t);break;case"error":console.error(t);break}}var Yx={};/*! For license information please see keyboard.js.LICENSE.txt */(()=>{var e={9620:(o,s)=>{function l(v){if(v&&typeof v=="object"){var y=v.which||v.keyCode||v.charCode;y&&(v=y)}if(typeof v=="number")return p[v];var _,w=String(v);return(_=a[w.toLowerCase()])?_:(_=c[w.toLowerCase()])||(w.length===1?w.charCodeAt(0):void 0)}l.isEventKey=function(v,y){if(v&&typeof v=="object"){var _=v.which||v.keyCode||v.charCode;if(_==null)return!1;if(typeof y=="string"){var w;if((w=a[y.toLowerCase()])||(w=c[y.toLowerCase()]))return w===_}else if(typeof y=="number")return y===_;return!1}};var a=(s=o.exports=l).code=s.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},c=s.aliases={windows:91,"\u21E7":16,"\u2325":18,"\u2303":17,"\u2318":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};for(f=97;f<123;f++)a[String.fromCharCode(f)]=f-32;for(var f=48;f<58;f++)a[f-48]=f;for(f=1;f<13;f++)a["f"+f]=f+111;for(f=0;f<10;f++)a["numpad "+f]=f+96;var p=s.names=s.title={};for(f in a)p[a[f]]=f;for(var h in c)a[h]=c[h]}},t={};function n(o){var s=t[o];if(s!==void 0)return s.exports;var l=t[o]={exports:{}};return e[o](l,l.exports,n),l.exports}n.n=o=>{var s=o&&o.__esModule?()=>o.default:()=>o;return n.d(s,{a:s}),s},n.d=(o,s)=>{for(var l in s)n.o(s,l)&&!n.o(o,l)&&Object.defineProperty(o,l,{enumerable:!0,get:s[l]})},n.o=(o,s)=>Object.prototype.hasOwnProperty.call(o,s),n.r=o=>{typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})};var r={};(()=>{function o(Q){return Q!=null&&typeof Q=="object"&&Q["@@functional/placeholder"]===!0}function s(Q){return function ae(fe){return arguments.length===0||o(fe)?ae:Q.apply(this,arguments)}}function l(Q){return function ae(fe,Se){switch(arguments.length){case 0:return ae;case 1:return o(fe)?ae:s(function(He){return Q(fe,He)});default:return o(fe)&&o(Se)?ae:o(fe)?s(function(He){return Q(He,Se)}):o(Se)?s(function(He){return Q(fe,He)}):Q(fe,Se)}}}n.r(r),n.d(r,{keydown:()=>Le,keyup:()=>Ke});const a=Number.isInteger||function(Q){return Q<<0===Q};function c(Q){return Object.prototype.toString.call(Q)==="[object String]"}const f=l(function(Q,ae){var fe=Q<0?ae.length+Q:Q;return c(ae)?ae.charAt(fe):ae[fe]}),p=l(function(Q,ae){return Q.map(function(fe){for(var Se,He=ae,De=0;De<fe.length;){if(He==null)return;Se=fe[De],He=a(Se)?f(Se,He):He[Se],De+=1}return He})}),h=l(function(Q,ae){return p([Q],ae)[0]}),v=l(function(Q,ae){return h([Q],ae)});function y(Q){return function ae(fe,Se,He){switch(arguments.length){case 0:return ae;case 1:return o(fe)?ae:l(function(De,tt){return Q(fe,De,tt)});case 2:return o(fe)&&o(Se)?ae:o(fe)?l(function(De,tt){return Q(De,Se,tt)}):o(Se)?l(function(De,tt){return Q(fe,De,tt)}):s(function(De){return Q(fe,Se,De)});default:return o(fe)&&o(Se)&&o(He)?ae:o(fe)&&o(Se)?l(function(De,tt){return Q(De,tt,He)}):o(fe)&&o(He)?l(function(De,tt){return Q(De,Se,tt)}):o(Se)&&o(He)?l(function(De,tt){return Q(fe,De,tt)}):o(fe)?s(function(De){return Q(De,Se,He)}):o(Se)?s(function(De){return Q(fe,De,He)}):o(He)?s(function(De){return Q(fe,Se,De)}):Q(fe,Se,He)}}}const _=l(function(Q,ae){return ae==null||ae!=ae?Q:ae}),w=y(function(Q,ae,fe){return _(Q,h(ae,fe))}),I=y(function(Q,ae,fe){return w(Q,[ae],fe)});function O(Q,ae){switch(Q){case 0:return function(){return ae.apply(this,arguments)};case 1:return function(fe){return ae.apply(this,arguments)};case 2:return function(fe,Se){return ae.apply(this,arguments)};case 3:return function(fe,Se,He){return ae.apply(this,arguments)};case 4:return function(fe,Se,He,De){return ae.apply(this,arguments)};case 5:return function(fe,Se,He,De,tt){return ae.apply(this,arguments)};case 6:return function(fe,Se,He,De,tt,vn){return ae.apply(this,arguments)};case 7:return function(fe,Se,He,De,tt,vn,ln){return ae.apply(this,arguments)};case 8:return function(fe,Se,He,De,tt,vn,ln,L){return ae.apply(this,arguments)};case 9:return function(fe,Se,He,De,tt,vn,ln,L,B){return ae.apply(this,arguments)};case 10:return function(fe,Se,He,De,tt,vn,ln,L,B,Z){return ae.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function S(Q,ae){return function(){return ae.call(this,Q.apply(this,arguments))}}const E=Array.isArray||function(Q){return Q!=null&&Q.length>=0&&Object.prototype.toString.call(Q)==="[object Array]"},T=s(function(Q){return!!E(Q)||!!Q&&typeof Q=="object"&&!c(Q)&&(Q.nodeType===1?!!Q.length:Q.length===0||Q.length>0&&Q.hasOwnProperty(0)&&Q.hasOwnProperty(Q.length-1))});var $=function(){function Q(ae){this.f=ae}return Q.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},Q.prototype["@@transducer/result"]=function(ae){return ae},Q.prototype["@@transducer/step"]=function(ae,fe){return this.f(ae,fe)},Q}();const P=l(function(Q,ae){return O(Q.length,function(){return Q.apply(ae,arguments)})});function k(Q,ae,fe){for(var Se=fe.next();!Se.done;){if((ae=Q["@@transducer/step"](ae,Se.value))&&ae["@@transducer/reduced"]){ae=ae["@@transducer/value"];break}Se=fe.next()}return Q["@@transducer/result"](ae)}function A(Q,ae,fe,Se){return Q["@@transducer/result"](fe[Se](P(Q["@@transducer/step"],Q),ae))}var H=typeof Symbol!="undefined"?Symbol.iterator:"@@iterator";function D(Q,ae,fe){if(typeof Q=="function"&&(Q=function(Se){return new $(Se)}(Q)),T(fe))return function(Se,He,De){for(var tt=0,vn=De.length;tt<vn;){if((He=Se["@@transducer/step"](He,De[tt]))&&He["@@transducer/reduced"]){He=He["@@transducer/value"];break}tt+=1}return Se["@@transducer/result"](He)}(Q,ae,fe);if(typeof fe["fantasy-land/reduce"]=="function")return A(Q,ae,fe,"fantasy-land/reduce");if(fe[H]!=null)return k(Q,ae,fe[H]());if(typeof fe.next=="function")return k(Q,ae,fe);if(typeof fe.reduce=="function")return A(Q,ae,fe,"reduce");throw new TypeError("reduce: list must be array or iterable")}const F=y(D);function z(Q,ae){return function(){var fe=arguments.length;if(fe===0)return ae();var Se=arguments[fe-1];return E(Se)||typeof Se[Q]!="function"?ae.apply(this,arguments):Se[Q].apply(Se,Array.prototype.slice.call(arguments,0,fe-1))}}const K=s(z("tail",y(z("slice",function(Q,ae,fe){return Array.prototype.slice.call(fe,Q,ae)}))(1,1/0)));function te(){if(arguments.length===0)throw new Error("pipe requires at least one argument");return O(arguments[0].length,F(S,arguments[0],K(arguments)))}const we=s(function(Q){return c(Q)?Q.split("").reverse().join(""):Array.prototype.slice.call(Q,0).reverse()});function be(){if(arguments.length===0)throw new Error("compose requires at least one argument");return te.apply(this,we(arguments))}var Oe=n(9620),Ae=n.n(Oe);const Ye=Q=>ae=>{v("nodeName",ae.target)==="BODY"&&Q(ae)},ft=Q=>({key:Ae()(Q),ctrl:I(!1,"ctrlKey",Q),shift:I(!1,"shiftKey",Q),meta:I(!1,"metaKey",Q),alt:I(!1,"altKey",Q)}),Le=Q=>document.addEventListener("keydown",Ye(be(Q,ft))),Ke=Q=>document.addEventListener("keyup",Ye(be(Q,ft)))})(),Yx.utils=r})();function lF(e){const t=/^([\d\.:]+)\s(.*)$/;return e.trim().split(/(\r?\n)/).reduce(function(n,r){var o=r.match(t);if(o){var s=La(o[1]);s!==null&&n.push({title:o[2].trim(),start:s})}return n},[])}function aF(e){const t=/^([\d\.,]+)\s+([\d\.,]+)\s+(.*)$/;return e.trim().split(/(\r\n|\r|\n)/).reduce(function(n,r){var o=r.match(t);if(o){var s=La(o[1].replace(",",".")),l=o[3].trim();s!==null&&n.push({title:l,start:s})}return n},[])}function uF(e){const r=new window.DOMParser().parseFromString(e,"text/xml").getElementsByTagName("Marker");let o=Array.from(r).reduce((s,l)=>{var p;if(!l||!l.getAttribute("Type")||((p=l.getAttribute("Type"))==null?void 0:p.toLowerCase())!=="chapter")return s;const a=La(l.getAttribute("Time")||""),c=l.getAttribute("Name")||"",f=l.getAttribute("URL")||"";return a!==null&&s.push({start:a,title:c.trim(),...f?{href:f.trim()}:{}}),s},[]);return o.sort(function(s,l){return s.start-l.start}),o}function cF(e){const r=new window.DOMParser().parseFromString(e,"text/xml").getElementsByTagNameNS("http://podlove.org/simple-chapters","chapter");return Array.from(r).reduce((o,s)=>{var l=La(s.getAttribute("start")||""),a=s.getAttribute("title")||"",c=s.getAttribute("href")||"",f=s.getAttribute("image")||"";return l!==null&&o.push({start:l,title:a.trim(),...c?{href:c.trim()}:{},...f?{image:f.trim()}:{}}),o},[])}const Zx=Y.exports.get(window,["wp","i18n","__"],e=>e),dF=Zx;var fF={install(e){e.config.globalProperties.__=(t,n)=>Zx(t,n)}};function*pF(){const e=yield Go();yield Dt(hF,e),yield Ge([PE],bF),yield Ge(RE,vF),yield Ge([Qm,nv,tv,ev,ov],mF,e);const t=yield Zn(xh,Yx.utils.keydown);yield Ge(t,_F),yield Ge(rv,wF)}function*hF(e){const t=yield Te(G.episode.id),{result:n}=yield e.get(`chapters/${t}`);n&&(yield Ie(rD(n.chapters.map(r=>({...r,start:Nt.fromString(r.start).totalMs})))))}function*mF(e){const t=yield Te(G.episode.id),n=yield Te(G.chapters.list);yield e.put(`chapters/${t}`,{chapters:n.map(r=>({...r,start:new Nt(r.start).pretty}))})}function*vF(e){const t=yield Te(G.chapters.list);switch(e.payload){case"psc":h1("chapters.psc",gF(t));break;case"mp4":h1("chapters.txt",yF(t));break}}function gF(e){const t=new XMLSerializer,n='<psc:chapters version="1.2" xmlns:psc="http://podlove.org/simple-chapters"/>',o=new DOMParser().parseFromString(n,"text/xml");let s=o.getElementsByTagName("chapters");return s.length||(s=o.getElementsByTagName("psc:chapters")),s=s[0],e.forEach(c=>{let f=o.createElement("psc:chapter");f.setAttribute("title",c.title||""),f.setAttribute("start",c.start?new Nt(c.start).pretty:"00:00:00"),c.href&&f.setAttribute("href",c.href),c.image&&f.setAttribute("image",c.image),s.appendChild(f)}),t.serializeToString(o).replace(/\<psc:chapter\s/gi,`46 }`;var st=Fy(function(){return Et(C,Ne+"return "+de).apply(n,R)});if(st.source=de,Zf(st))throw st;return st}function DI(i){return Ct(i).toLowerCase()}function FI(i){return Ct(i).toUpperCase()}function BI(i,u,d){if(i=Ct(i),i&&(d||u===n))return Kg(i);if(!i||!(u=lr(u)))return i;var m=Hr(i),b=Hr(u),C=Gg(m,b),R=Xg(m,b)+1;return ni(m,C,R).join("")}function UI(i,u,d){if(i=Ct(i),i&&(d||u===n))return i.slice(0,Yg(i)+1);if(!i||!(u=lr(u)))return i;var m=Hr(i),b=Xg(m,Hr(u))+1;return ni(m,0,b).join("")}function jI(i,u,d){if(i=Ct(i),i&&(d||u===n))return i.replace(Yd,"");if(!i||!(u=lr(u)))return i;var m=Hr(i),b=Gg(m,Hr(u));return ni(m,b).join("")}function HI(i,u){var d=D,m=F;if(Kt(u)){var b="separator"in u?u.separator:b;d="length"in u?ot(u.length):d,m="omission"in u?lr(u.omission):m}i=Ct(i);var C=i.length;if(_s(i)){var R=Hr(i);C=R.length}if(d>=C)return i;var M=d-ws(m);if(M<1)return m;var W=R?ni(R,0,M).join(""):i.slice(0,M);if(b===n)return W+m;if(R&&(M+=W.length-M),Qf(b)){if(i.slice(M).search(b)){var re,oe=W;for(b.global||(b=mf(b.source,Ct(mg.exec(b))+"g")),b.lastIndex=0;re=b.exec(oe);)var de=re.index;W=W.slice(0,de===n?M:de)}}else if(i.indexOf(lr(b),M)!=M){var Ce=W.lastIndexOf(b);Ce>-1&&(W=W.slice(0,Ce))}return W+m}function VI(i){return i=Ct(i),i&&eC.test(i)?i.replace(fg,yT):i}var WI=Os(function(i,u,d){return i+(d?" ":"")+u.toUpperCase()}),np=B0("toUpperCase");function Dy(i,u,d){return i=Ct(i),u=d?n:u,u===n?pT(i)?wT(i):oT(i):i.match(u)||[]}var Fy=at(function(i,u){try{return ir(i,n,u)}catch(d){return Zf(d)?d:new Ze(d)}}),zI=Io(function(i,u){return wr(u,function(d){d=po(d),Oo(i,d,Jf(i[d],i))}),i});function qI(i){var u=i==null?0:i.length,d=Ve();return i=u?Vt(i,function(m){if(typeof m[1]!="function")throw new Sr(l);return[d(m[0]),m[1]]}):[],at(function(m){for(var b=-1;++b<u;){var C=i[b];if(ir(C[0],this,m))return ir(C[1],this,m)}})}function KI(i){return yO(xr(i,h))}function rp(i){return function(){return i}}function GI(i,u){return i==null||i!==i?u:i}var XI=j0(),JI=j0(!0);function Gn(i){return i}function op(i){return g0(typeof i=="function"?i:xr(i,h))}function YI(i){return b0(xr(i,h))}function ZI(i,u){return _0(i,xr(u,h))}var QI=at(function(i,u){return function(d){return bl(d,i,u)}}),eP=at(function(i,u){return function(d){return bl(i,d,u)}});function ip(i,u,d){var m=pn(u),b=hu(u,m);d==null&&!(Kt(u)&&(b.length||!m.length))&&(d=u,u=i,i=this,b=hu(u,pn(u)));var C=!(Kt(d)&&"chain"in d)||!!d.chain,R=ko(i);return wr(b,function(M){var W=u[M];i[M]=W,R&&(i.prototype[M]=function(){var re=this.__chain__;if(C||re){var oe=i(this.__wrapped__),de=oe.__actions__=zn(this.__actions__);return de.push({func:W,args:arguments,thisArg:i}),oe.__chain__=re,oe}return W.apply(i,Jo([this.value()],arguments))})}),i}function tP(){return yn._===this&&(yn._=TT),this}function sp(){}function nP(i){return i=ot(i),at(function(u){return w0(u,i)})}var rP=Df(Vt),oP=Df(Hg),iP=Df(af);function By(i){return Wf(i)?uf(po(i)):NO(i)}function sP(i){return function(u){return i==null?n:ki(i,u)}}var lP=V0(),aP=V0(!0);function lp(){return[]}function ap(){return!1}function uP(){return{}}function cP(){return""}function dP(){return!0}function fP(i,u){if(i=ot(i),i<1||i>Ae)return[];var d=Le,m=Cn(i,Le);u=Ve(u),i-=Le;for(var b=ff(m,u);++d<i;)u(d);return b}function pP(i){return Qe(i)?Vt(i,po):ar(i)?[i]:zn(iy(Ct(i)))}function hP(i){var u=++$T;return Ct(i)+u}var mP=_u(function(i,u){return i+u},0),vP=Ff("ceil"),gP=_u(function(i,u){return i/u},1),yP=Ff("floor");function bP(i){return i&&i.length?pu(i,Gn,Ef):n}function _P(i,u){return i&&i.length?pu(i,Ve(u,2),Ef):n}function wP(i){return zg(i,Gn)}function SP(i,u){return zg(i,Ve(u,2))}function EP(i){return i&&i.length?pu(i,Gn,Tf):n}function xP(i,u){return i&&i.length?pu(i,Ve(u,2),Tf):n}var $P=_u(function(i,u){return i*u},1),CP=Ff("round"),TP=_u(function(i,u){return i-u},0);function OP(i){return i&&i.length?df(i,Gn):0}function AP(i,u){return i&&i.length?df(i,Ve(u,2)):0}return x.after=YA,x.ary=vy,x.assign=F3,x.assignIn=Iy,x.assignInWith=Ru,x.assignWith=B3,x.at=U3,x.before=gy,x.bind=Jf,x.bindAll=zI,x.bindKey=yy,x.castArray=u3,x.chain=py,x.chunk=y5,x.compact=b5,x.concat=_5,x.cond=qI,x.conforms=KI,x.constant=rp,x.countBy=OA,x.create=j3,x.curry=by,x.curryRight=_y,x.debounce=wy,x.defaults=H3,x.defaultsDeep=V3,x.defer=ZA,x.delay=QA,x.difference=w5,x.differenceBy=S5,x.differenceWith=E5,x.drop=x5,x.dropRight=$5,x.dropRightWhile=C5,x.dropWhile=T5,x.fill=O5,x.filter=IA,x.flatMap=RA,x.flatMapDeep=LA,x.flatMapDepth=NA,x.flatten=uy,x.flattenDeep=A5,x.flattenDepth=I5,x.flip=e3,x.flow=XI,x.flowRight=JI,x.fromPairs=P5,x.functions=J3,x.functionsIn=Y3,x.groupBy=MA,x.initial=R5,x.intersection=L5,x.intersectionBy=N5,x.intersectionWith=M5,x.invert=Q3,x.invertBy=eI,x.invokeMap=FA,x.iteratee=op,x.keyBy=BA,x.keys=pn,x.keysIn=Kn,x.map=Tu,x.mapKeys=nI,x.mapValues=rI,x.matches=YI,x.matchesProperty=ZI,x.memoize=Au,x.merge=oI,x.mergeWith=Py,x.method=QI,x.methodOf=eP,x.mixin=ip,x.negate=Iu,x.nthArg=nP,x.omit=iI,x.omitBy=sI,x.once=t3,x.orderBy=UA,x.over=rP,x.overArgs=n3,x.overEvery=oP,x.overSome=iP,x.partial=Yf,x.partialRight=Sy,x.partition=jA,x.pick=lI,x.pickBy=ky,x.property=By,x.propertyOf=sP,x.pull=U5,x.pullAll=dy,x.pullAllBy=j5,x.pullAllWith=H5,x.pullAt=V5,x.range=lP,x.rangeRight=aP,x.rearg=r3,x.reject=WA,x.remove=W5,x.rest=o3,x.reverse=Gf,x.sampleSize=qA,x.set=uI,x.setWith=cI,x.shuffle=KA,x.slice=z5,x.sortBy=JA,x.sortedUniq=Z5,x.sortedUniqBy=Q5,x.split=RI,x.spread=i3,x.tail=eA,x.take=tA,x.takeRight=nA,x.takeRightWhile=rA,x.takeWhile=oA,x.tap=bA,x.throttle=s3,x.thru=Cu,x.toArray=Ty,x.toPairs=Ry,x.toPairsIn=Ly,x.toPath=pP,x.toPlainObject=Ay,x.transform=dI,x.unary=l3,x.union=iA,x.unionBy=sA,x.unionWith=lA,x.uniq=aA,x.uniqBy=uA,x.uniqWith=cA,x.unset=fI,x.unzip=Xf,x.unzipWith=fy,x.update=pI,x.updateWith=hI,x.values=Ps,x.valuesIn=mI,x.without=dA,x.words=Dy,x.wrap=a3,x.xor=fA,x.xorBy=pA,x.xorWith=hA,x.zip=mA,x.zipObject=vA,x.zipObjectDeep=gA,x.zipWith=yA,x.entries=Ry,x.entriesIn=Ly,x.extend=Iy,x.extendWith=Ru,ip(x,x),x.add=mP,x.attempt=Fy,x.camelCase=bI,x.capitalize=Ny,x.ceil=vP,x.clamp=vI,x.clone=c3,x.cloneDeep=f3,x.cloneDeepWith=p3,x.cloneWith=d3,x.conformsTo=h3,x.deburr=My,x.defaultTo=GI,x.divide=gP,x.endsWith=_I,x.eq=Wr,x.escape=wI,x.escapeRegExp=SI,x.every=AA,x.find=PA,x.findIndex=ly,x.findKey=W3,x.findLast=kA,x.findLastIndex=ay,x.findLastKey=z3,x.floor=yP,x.forEach=hy,x.forEachRight=my,x.forIn=q3,x.forInRight=K3,x.forOwn=G3,x.forOwnRight=X3,x.get=ep,x.gt=m3,x.gte=v3,x.has=Z3,x.hasIn=tp,x.head=cy,x.identity=Gn,x.includes=DA,x.indexOf=k5,x.inRange=gI,x.invoke=tI,x.isArguments=Ni,x.isArray=Qe,x.isArrayBuffer=g3,x.isArrayLike=qn,x.isArrayLikeObject=Qt,x.isBoolean=y3,x.isBuffer=ri,x.isDate=b3,x.isElement=_3,x.isEmpty=w3,x.isEqual=S3,x.isEqualWith=E3,x.isError=Zf,x.isFinite=x3,x.isFunction=ko,x.isInteger=Ey,x.isLength=Pu,x.isMap=xy,x.isMatch=$3,x.isMatchWith=C3,x.isNaN=T3,x.isNative=O3,x.isNil=I3,x.isNull=A3,x.isNumber=$y,x.isObject=Kt,x.isObjectLike=Gt,x.isPlainObject=$l,x.isRegExp=Qf,x.isSafeInteger=P3,x.isSet=Cy,x.isString=ku,x.isSymbol=ar,x.isTypedArray=Is,x.isUndefined=k3,x.isWeakMap=R3,x.isWeakSet=L3,x.join=D5,x.kebabCase=EI,x.last=Cr,x.lastIndexOf=F5,x.lowerCase=xI,x.lowerFirst=$I,x.lt=N3,x.lte=M3,x.max=bP,x.maxBy=_P,x.mean=wP,x.meanBy=SP,x.min=EP,x.minBy=xP,x.stubArray=lp,x.stubFalse=ap,x.stubObject=uP,x.stubString=cP,x.stubTrue=dP,x.multiply=$P,x.nth=B5,x.noConflict=tP,x.noop=sp,x.now=Ou,x.pad=CI,x.padEnd=TI,x.padStart=OI,x.parseInt=AI,x.random=yI,x.reduce=HA,x.reduceRight=VA,x.repeat=II,x.replace=PI,x.result=aI,x.round=CP,x.runInContext=j,x.sample=zA,x.size=GA,x.snakeCase=kI,x.some=XA,x.sortedIndex=q5,x.sortedIndexBy=K5,x.sortedIndexOf=G5,x.sortedLastIndex=X5,x.sortedLastIndexBy=J5,x.sortedLastIndexOf=Y5,x.startCase=LI,x.startsWith=NI,x.subtract=TP,x.sum=OP,x.sumBy=AP,x.template=MI,x.times=fP,x.toFinite=Ro,x.toInteger=ot,x.toLength=Oy,x.toLower=DI,x.toNumber=Tr,x.toSafeInteger=D3,x.toString=Ct,x.toUpper=FI,x.trim=BI,x.trimEnd=UI,x.trimStart=jI,x.truncate=HI,x.unescape=VI,x.uniqueId=hP,x.upperCase=WI,x.upperFirst=np,x.each=hy,x.eachRight=my,x.first=cy,ip(x,function(){var i={};return co(x,function(u,d){Ot.call(x.prototype,d)||(i[d]=u)}),i}(),{chain:!1}),x.VERSION=r,wr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(i){x[i].placeholder=x}),wr(["drop","take"],function(i,u){ht.prototype[i]=function(d){d=d===n?1:un(ot(d),0);var m=this.__filtered__&&!u?new ht(this):this.clone();return m.__filtered__?m.__takeCount__=Cn(d,m.__takeCount__):m.__views__.push({size:Cn(d,Le),type:i+(m.__dir__<0?"Right":"")}),m},ht.prototype[i+"Right"]=function(d){return this.reverse()[i](d).reverse()}}),wr(["filter","map","takeWhile"],function(i,u){var d=u+1,m=d==te||d==be;ht.prototype[i]=function(b){var C=this.clone();return C.__iteratees__.push({iteratee:Ve(b,3),type:d}),C.__filtered__=C.__filtered__||m,C}}),wr(["head","last"],function(i,u){var d="take"+(u?"Right":"");ht.prototype[i]=function(){return this[d](1).value()[0]}}),wr(["initial","tail"],function(i,u){var d="drop"+(u?"":"Right");ht.prototype[i]=function(){return this.__filtered__?new ht(this):this[d](1)}}),ht.prototype.compact=function(){return this.filter(Gn)},ht.prototype.find=function(i){return this.filter(i).head()},ht.prototype.findLast=function(i){return this.reverse().find(i)},ht.prototype.invokeMap=at(function(i,u){return typeof i=="function"?new ht(this):this.map(function(d){return bl(d,i,u)})}),ht.prototype.reject=function(i){return this.filter(Iu(Ve(i)))},ht.prototype.slice=function(i,u){i=ot(i);var d=this;return d.__filtered__&&(i>0||u<0)?new ht(d):(i<0?d=d.takeRight(-i):i&&(d=d.drop(i)),u!==n&&(u=ot(u),d=u<0?d.dropRight(-u):d.take(u-i)),d)},ht.prototype.takeRightWhile=function(i){return this.reverse().takeWhile(i).reverse()},ht.prototype.toArray=function(){return this.take(Le)},co(ht.prototype,function(i,u){var d=/^(?:filter|find|map|reject)|While$/.test(u),m=/^(?:head|last)$/.test(u),b=x[m?"take"+(u=="last"?"Right":""):u],C=m||/^find/.test(u);!b||(x.prototype[u]=function(){var R=this.__wrapped__,M=m?[1]:arguments,W=R instanceof ht,re=M[0],oe=W||Qe(R),de=function(pt){var vt=b.apply(x,Jo([pt],M));return m&&Ce?vt[0]:vt};oe&&d&&typeof re=="function"&&re.length!=1&&(W=oe=!1);var Ce=this.__chain__,Ne=!!this.__actions__.length,We=C&&!Ce,st=W&&!Ne;if(!C&&oe){R=st?R:new ht(this);var ze=i.apply(R,M);return ze.__actions__.push({func:Cu,args:[de],thisArg:n}),new Er(ze,Ce)}return We&&st?i.apply(this,M):(ze=this.thru(de),We?m?ze.value()[0]:ze.value():ze)})}),wr(["pop","push","shift","sort","splice","unshift"],function(i){var u=Za[i],d=/^(?:push|sort|unshift)$/.test(i)?"tap":"thru",m=/^(?:pop|shift)$/.test(i);x.prototype[i]=function(){var b=arguments;if(m&&!this.__chain__){var C=this.value();return u.apply(Qe(C)?C:[],b)}return this[d](function(R){return u.apply(Qe(R)?R:[],b)})}}),co(ht.prototype,function(i,u){var d=x[u];if(d){var m=d.name+"";Ot.call($s,m)||($s[m]=[]),$s[m].push({name:u,func:d})}}),$s[bu(n,O).name]=[{name:"wrapper",func:n}],ht.prototype.clone=VT,ht.prototype.reverse=WT,ht.prototype.value=zT,x.prototype.at=_A,x.prototype.chain=wA,x.prototype.commit=SA,x.prototype.next=EA,x.prototype.plant=$A,x.prototype.reverse=CA,x.prototype.toJSON=x.prototype.valueOf=x.prototype.value=TA,x.prototype.first=x.prototype.head,fl&&(x.prototype[fl]=xA),x},Ss=ST();Ti?((Ti.exports=Ss)._=Ss,rf._=Ss):yn._=Ss}).call(Al)})(Y,Y.exports);const YM={chapters:[],selected:null},AE="podlove/publisher/chapter/INIT",Qm="podlove/publisher/chapter/UPDATE",IE="podlove/publisher/chapter/SELECT",ev="podlove/publisher/chapter/REMOVE",tv="podlove/publisher/chapter/ADD",PE="podlove/publisher/chapter/PARSE",nv="podlove/publisher/chapter/PARSED",kE="podlove/publisher/chapter/SET",RE="podlove/publisher/chapter/DOWNLOAD",rv="podlove/publisher/chapter/SELECT_IMAGE",ov="podlove/publisher/chapter/SET_IMAGE",ZM=ge(AE),QM=ge(Qm),di=ge(IE),eD=ge(ev),tD=ge(tv),nD=ge(PE),LE=ge(nv),rD=ge(kE),oD=ge(RE),iD=ge(rv);ge(ov);const sD=or({[nv]:(e,t)=>({...e,selected:null,chapters:Y.exports.get(t,["payload"],[])}),[kE]:(e,t)=>({...e,selected:null,chapters:Y.exports.get(t,["payload"],[])}),[Qm]:(e,t)=>{let n=NE(e);const r=ME(e),s=e.chapters.reduce((a,c,f)=>[...a,f===t.payload.index?{...c,...t.payload.chapter}:c],[]).sort((a,c)=>a.start-c.start),l=s.findIndex(a=>r&&a.title==r.title);return{...e,chapters:s,selected:l>=0?l:n}},[IE]:(e,t)=>({...e,selected:t.payload}),[tv]:e=>({...e,chapters:[...e.chapters,{start:Y.exports.get(e,["chapters",e.chapters.length-1,"start"],0),title:"",href:"",image:""}]}),[ev]:(e,t)=>({...e,selected:null,chapters:e.chapters.filter((n,r)=>r!==t.payload)}),[ov]:(e,t)=>({...e,chapters:e.chapters.map((n,r)=>r!==e.selected?n:{...n,image:t.payload})})},YM),lD=e=>e.chapters,NE=e=>e.selected,ME=e=>e.selected!==null?Y.exports.get(e,["chapters",e.selected],null):null,$p={chapters:lD,selectedIndex:NE,selected:ME},Cp=function(e){if(!e)return 0;switch(e.length){case 0:return 0;case 1:return parseInt(e,10)*100;case 2:return parseInt(e,10)*10;default:return parseInt(e.substr(0,3),10)}},La=function(e){e=(e||"").trim();const t=/^(\d+)(?:\.(\d+))?$/,n=/^(\d+):(\d\d?)(?:\.(\d+))?$/,r=/^(\d+):(\d\d?):(\d\d?)(?:\.(\d+))?$/;let o,s=0,l=0,a=0,c=0;if(o=e.match(t))s=Cp(o[2]),l=o[1]?parseInt(o[1],10):0;else if(o=e.match(n))s=Cp(o[3]),l=o[2]?parseInt(o[2],10):0,a=o[1]?parseInt(o[1],10):0;else if(o=e.match(r))s=Cp(o[4]),l=o[3]?parseInt(o[3],10):0,a=o[2]?parseInt(o[2],10):0,c=o[1]?parseInt(o[1],10):0;else return null;return((c*60+a)*60+l)*1e3+s};class Nt{constructor(t){this.totalMs=t}get totalSeconds(){return Math.floor(this.totalMs/1e3)}get totalMinutes(){return Math.floor(this.totalSeconds/60)}get totalHours(){return Math.floor(this.totalMinutes/60)}get milliseconds(){return this.totalMs%1e3}get seconds(){return this.totalSeconds%60}get minutes(){return this.totalMinutes%60}get hours(){return this.totalHours%60}get pretty(){return this.pad(this.totalHours)+":"+this.pad(this.minutes)+":"+this.pad(this.seconds)+"."+this.pad(this.milliseconds,"000")}get prettyShort(){return this.totalHours?this.pad(this.totalHours)+":"+this.pad(this.minutes)+":"+this.pad(this.seconds):this.pad(this.minutes)+":"+this.pad(this.seconds)}pad(t,n="00"){let r=""+t;return r.length<n.length?n.substring(0,n.length-r.length)+r:t}static fromString(t){let n=0;return t==parseInt(t,10)?n=parseInt(t,10):n=La(t)||0,new Nt(n)}}const s1=(e,t,n)=>{const r=[...e];return r.splice(n,0,r.splice(t,1)[0]),r},DE="podlove/publisher/episode/INIT",Ys="podlove/publisher/episode/UPDATE",FE="podlove/publisher/episode/QUICKSAVE",BE="podlove/publisher/episode/SAVED",UE="podlove/publisher/episode/SLUG_CHANGED",Td="podlove/publisher/episode/SET",jE="podlove/publisher/episode/SET_POSTER",HE="podlove/publisher/episode/SELECT_POSTER",iv="podlove/publisher/episode/MOVE_CONTRIBUTION_UP",sv="podlove/publisher/episode/MOVE_CONTRIBUTION_DOWN",lv="podlove/publisher/episode/DELETE_CONTRIBUTION",av="podlove/publisher/episode/UPDATE_CONTRIBUTION",uv="podlove/publisher/episode/ADD_CONTRIBUTION",VE="podlove/publisher/episode/CREATE_CONTRIBUTION",aD={id:null,slug:null,duration:null,number:null,subtitle:null,title:null,summary:null,type:null,episode_poster:null,poster:null,mnemonic:null,explicit:null,auphonic_production_id:null,auphonic_webhook_config:null,soundbite_start:null,soundbite_duration:null,soundbite_title:null,contributions:[],license_name:null,license_url:null,show:null},$t=ge(Ys),uD=ge(FE),Od=ge(DE),cD=ge(HE),WE=ge(Td),dD=ge(iv),fD=ge(sv),pD=ge(lv),Tp=ge(av),zE=ge(uv),hD=ge(VE),mD=ge(BE),vD=ge(UE),gD=or({[Eo]:(e,t)=>({...e,id:Y.exports.get(t,["payload","episode","id"],null),duration:Nt.fromString(Y.exports.get(t,["payload","episode","duration"],null)).totalMs}),[Ys]:(e,t)=>{const n=Y.exports.get(t,["payload","prop"]),r=Y.exports.get(t,["payload","value"],null);return["title","subtitle","summary","duration","slug","auphonic_webhook_config","soundbite_start","soundbite_duration","soundbite_title","license_name","license_url","show","number","episode_poster"].includes(n)?{...e,[n]:r}:(console.debug("todo",n,r),{...e})},[Td]:(e,t)=>({...e,slug:Y.exports.get(t,["payload","slug"],e.slug),number:Y.exports.get(t,["payload","number"],e.number),duration:Y.exports.get(t,["payload","duration"],e.duration),title:Y.exports.get(t,["payload","title_clean"],e.title),subtitle:Y.exports.get(t,["payload","subtitle"],e.subtitle),summary:Y.exports.get(t,["payload","summary"],e.summary),type:Y.exports.get(t,["payload","type"],e.type),episode_poster:Y.exports.get(t,["payload","episode_poster"],e.episode_poster),poster:Y.exports.get(t,["payload","poster"],e.poster),mnemonic:Y.exports.get(t,["payload","mnemonic"],e.mnemonic),explicit:Y.exports.get(t,["payload","explicit"],e.explicit),auphonic_production_id:Y.exports.get(t,["payload","auphonic_production_id"],e.auphonic_production_id),auphonic_webhook_config:Y.exports.get(t,["payload","auphonic_webhook_config"],e.auphonic_webhook_config),soundbite_start:Y.exports.get(t,["payload","soundbite_start"],e.soundbite_start),soundbite_duration:Y.exports.get(t,["payload","soundbite_duration"],e.soundbite_duration),soundbite_title:Y.exports.get(t,["payload","soundbite_title"],e.soundbite_title),license_name:Y.exports.get(t,["payload","license_name"],e.license_name),license_url:Y.exports.get(t,["payload","license_url"],e.license_url),contributions:Y.exports.get(t,["payload","contributions"],e.contributions),show:Y.exports.get(t,["payload","show"],e.show)}),[iv]:(e,t)=>{const n=e.contributions.findIndex(r=>r.position===Y.exports.get(t,["payload","position"]));return n<1?e:{...e,contributions:s1(e.contributions,n,n-1).map((r,o)=>({...r,position:o}))}},[sv]:(e,t)=>{const n=e.contributions.findIndex(r=>r.position===Y.exports.get(t,["payload","position"]));return n>e.contributions.length?e:{...e,contributions:s1(e.contributions,n,n+1).map((r,o)=>({...r,position:o}))}},[lv]:(e,t)=>({...e,contributions:e.contributions.filter(({position:n})=>Y.exports.get(t,["payload","position"])!==n).map((n,r)=>({...n,position:r}))}),[av]:(e,t)=>({...e,contributions:e.contributions.map(n=>n.contributor_id!==Y.exports.get(t,["payload","contributor_id"])?n:Y.exports.pick(Y.exports.get(t,["payload"],{}),["id","contributor_id","role_id","group_id","position","comment"]))}),[uv]:(e,t)=>({...e,contributions:[...e.contributions,{id:null,contributor_id:Y.exports.get(t,["payload","id"],null),role_id:null,group_id:null,position:e.contributions.length,comment:null}]})},aD),tn={id:e=>e.id,slug:e=>e.slug,duration:e=>e.duration,number:e=>e.number,title:e=>e.title,subtitle:e=>e.subtitle,summary:e=>e.summary,type:e=>e.type,poster:e=>e.poster,episodePoster:e=>e.episode_poster,mnemonic:e=>e.mnemonic,explicit:e=>e.explicit,auphonicProductionId:e=>e.auphonic_production_id,auphonicWebhookConfig:e=>e.auphonic_webhook_config,soundbite_start:e=>e.soundbite_start,soundbite_duration:e=>e.soundbite_duration,soundbite_title:e=>e.soundbite_title,license_name:e=>e.license_name,license_url:e=>e.license_url,contributions:e=>e.contributions,currentShow:e=>e.show},yD={baseUrl:null,api:{nonce:null,base:null,auth:null,bearer:null}},bD=or({[Eo]:(e,t)=>({...e,baseUrl:Y.exports.get(t,["payload","baseUrl"],null),api:{base:Y.exports.get(t,["payload","api","base"],null),nonce:Y.exports.get(t,["payload","api","nonce"],null),auth:Y.exports.get(t,["payload","api","auth"],null),bearer:Y.exports.get(t,["payload","api","bearer"],null)}})},yD),Il={baseUrl:e=>e.baseUrl,nonce:e=>e.api.nonce,base:e=>e.api.base,auth:e=>e.api.auth,bearer:e=>e.api.bearer},cv="podlove/publisher/wordpress/UPDATE",qE="podlove/publisher/wordpress/SELECT_MEDIA_FROM_LIBRARY",KE=ge(cv),dv=ge(qE),_D={id:null,title:null},wD=or({[Eo]:(e,t)=>({...e,id:Y.exports.get(t,["payload","post","id"],null),title:Y.exports.get(t,["payload","post","title"],null)}),[cv]:(e,t)=>t.payload.prop!=="title"?e:{...e,title:t.payload.value}},_D),l1={id:e=>e.id,title:e=>e.title},GE="podlove/publisher/transcript/INIT",XE="podlove/publisher/transcript/SET_TRANSCRIPTS",JE="podlove/publisher/transcript/SET_VOICES",fv="podlove/publisher/transcript/UPDATE_VOICE",YE="podlove/publisher/transcript/IMPORT_TRANSCRIPTS",ZE="podlove/publisher/transcript/IMPORT_ASSET_TRANSCRIPTS",QE="podlove/publisher/transcript/DELETE_TRANSCRIPTS",SD=ge(GE),ED=ge(XE),xD=ge(JE),$D=ge(fv),CD=ge(YE),TD=ge(ZE),OD=ge(QE),AD={transcripts:[],voices:[]},ID=or({[XE]:(e,t)=>({...e,transcripts:t.payload}),[JE]:(e,t)=>({...e,voices:t.payload.map(n=>({voice:n.voice,contributor:n.contributor_id}))}),[fv]:(e,t)=>({...e,voices:e.voices.map(n=>n.voice===t.payload.voice?{...n,contributor:t.payload.contributor}:n)})},AD),a1={transcripts:e=>e.transcripts,voices:e=>e.voices},PD={contributors:[],roles:[],groups:[]},ex="podlove/publisher/contributors/INIT",tx="podlove/publisher/contributors/SET_CONTRIBUTORS",nx="podlove/publisher/contributors/SET_ROLES",rx="podlove/publisher/contributors/SET_GROUPS",ox="podlove/publisher/contributors/ADD",ix=ge(ex),kD=ge(tx),RD=ge(nx),LD=ge(rx),ND=ge(ox),MD=or({[tx]:(e,t)=>({...e,contributors:t.payload}),[nx]:(e,t)=>({...e,roles:t.payload}),[rx]:(e,t)=>({...e,groups:t.payload}),[ox]:(e,t)=>({...e,contributors:[...e.contributors,t.payload]})},PD),Op={contributors:e=>e.contributors,roles:e=>e.roles,groups:e=>e.groups},DD={metadata:{enable_episode_explicit:null,enable_episode_license:null,enable_episode_recording_date:null},tracking:{mode:null,window:null},website:{blog_title_template:null,custom_episode_slug:null,enable_generated_blog_post_title:null,episode_archive:null,episode_archive_slug:null,episode_number_padding:null,feeds_skip_redirect:null,hide_wp_feed_discovery:null,landing_page:null,merge_episodes:null,ssl_verify_peer:null,url_template:null,use_post_permastruct:null},assets:{image:null,chapter:null,transcript:null},media:{base_uri:null},modules:[]},FD=e=>{switch(e){case"0":return"podcast-cover";case"post-thumbnail":return"post-thumbnail";case"manual":return"manual";default:return null}},BD=e=>{switch(e){case"0":return"none";case"manual":return"manual";default:return null}},UD=or({[Eo]:(e,t)=>({...e,metadata:{enable_episode_explicit:Y.exports.get(t,["payload","expert_settings","metadata","enable_episode_explicit"],null)==="1",enable_episode_license:Y.exports.get(t,["payload","expert_settings","metadata","enable_episode_license"],null)==="1",enable_episode_recording_date:Y.exports.get(t,["payload","expert_settings","metadata","enable_episode_license"],null)==="1"},tracking:{mode:Y.exports.get(t,["payload","expert_settings","tracking","mode"],null),window:Y.exports.get(t,["payload","expert_settings","tracking","mode"],null)},media:{base_uri:Y.exports.get(t,["payload","media","base_uri"],null)},website:{blog_title_template:Y.exports.get(t,["payload","expert_settings","website","blog_title_template"],null),custom_episode_slug:Y.exports.get(t,["payload","expert_settings","website","custom_episode_slug"],null),enable_generated_blog_post_title:Y.exports.get(t,["payload","expert_settings","website","enable_generated_blog_post_title"],null)==="on",episode_archive:Y.exports.get(t,["payload","expert_settings","website","episode_archive"],null)==="on",episode_archive_slug:Y.exports.get(t,["payload","expert_settings","website","episode_archive_slug"],null),episode_number_padding:Y.exports.get(t,["payload","expert_settings","website","episode_number_padding"],null),feeds_skip_redirect:Y.exports.get(t,["payload","expert_settings","website","feeds_skip_redirect"],null)==="on",hide_wp_feed_discovery:Y.exports.get(t,["payload","expert_settings","website","hide_wp_feed_discovery"],null)==="on",landing_page:Y.exports.get(t,["payload","expert_settings","website","landing_page"],null),merge_episodes:Y.exports.get(t,["payload","expert_settings","website","merge_episodes"],null)==="on",ssl_verify_peer:Y.exports.get(t,["payload","expert_settings","website","ssl_verify_peer"],null)==="on",url_template:Y.exports.get(t,["payload","expert_settings","website","url_template"],null),use_post_permastruct:Y.exports.get(t,["payload","expert_settings","website","use_post_permastruct"],null)==="on"},assets:{image:FD(Y.exports.get(t,["payload","assignments","image"],null)),chapter:BD(Y.exports.get(t,["payload","assignments","chapter"],null)),transcript:Y.exports.get(t,["payload","assignments","transcript"],null)},modules:Y.exports.get(t,["payload","modules"])})},DD),Fi={autoGenerateEpisodeTitle:e=>e.website.enable_generated_blog_post_title,blogTitleTemplate:e=>e.website.blog_title_template,episodeNumberPadding:e=>e.website.episode_number_padding,imageAsset:e=>e.assets.image,enableEpisodeExplicit:e=>e.metadata.enable_episode_explicit,mediaFileBaseUri:e=>e.media.base_uri,modules:e=>e.modules},jD="podlove/publisher/podcast/INIT",sx="podlove/publisher/podcast/SET",HD="podlove/publisher/podcasr/SAVED",pv="podlove/publisher/podcast/UPDATE",VD={title:null,subtitle:null,summary:null,mnemonic:null,itunes_type:null,author_name:null,poster:null,link:null,license_name:null,license_url:null};ge(jD);const WD=ge(sx);ge(HD);const Zl=ge(pv),zD=or({[sx]:(e,t)=>({title:Y.exports.get(t,["payload","title"],e.title),subtitle:Y.exports.get(t,["payload","subtitle"],e.subtitle),summary:Y.exports.get(t,["payload","summary"],e.summary),mnemonic:Y.exports.get(t,["payload","mnemonic"],e.mnemonic),itunes_type:Y.exports.get(t,["payload","itunes_type"],e.itunes_type),author_name:Y.exports.get(t,["payload","author_name"],e.author_name),poster:Y.exports.get(t,["payload","poster"],e.poster),link:Y.exports.get(t,["payload","link"],e.link),license_name:Y.exports.get(t,["payload","license_name"],e.license_name),license_url:Y.exports.get(t,["payload","license_url"],e.license_url)}),[pv]:(e,t)=>{const n=Y.exports.get(t,["payload","prop"]),r=Y.exports.get(t,["payload","value"],null);return["title","subtitle","summary","author_name","podcast_email","funding_url","funding_label","license_name","license_url"].includes(n)?{...e,[n]:r}:(console.debug("todo",n,r),{...e})}},VD),ho={title:e=>e.title,subtitle:e=>e.subtitle,summary:e=>e.summary,mnemonic:e=>e.mnemonic,itunesType:e=>e.itunes_type,author:e=>e.author_name,poster:e=>e.poster,link:e=>e.link,license_name:e=>e.license_name,license_url:e=>e.license_url},qD={token:null,production:null,productions:[],presets:[],preset:null,services:[],service_files:{},tracks:[],file_selections:{},current_file_selection:null,is_saving:!1,is_initializing:!0,publish_when_done:!1},lx="podlove/publisher/auphonic/INIT",ax="podlove/publisher/auphonic/INIT_DONE",ux="podlove/publisher/auphonic/SET_TOKEN",Bc="podlove/publisher/auphonic/SET_PRODUCTION",cx="podlove/publisher/auphonic/SET_PRODUCTIONS",dx="podlove/publisher/auphonic/SET_SERVICES",fx="podlove/publisher/auphonic/CREATE_PRODUCTION",px="podlove/publisher/auphonic/CREATE_MULTITRACK_PRODUCTION",hx="podlove/publisher/auphonic/SAVE_PRODUCTION",KD="podlove/publisher/auphonic/START_PRODUCTION",hv="podlove/publisher/auphonic/DESELECT_PRODUCTION",GD="podlove/publisher/auphonic/SELECT_SERVICE",mv="podlove/publisher/auphonic/SET_SERVICE_FILES",XD="podlove/publisher/auphonic/SELECT_TRACKS",mx="podlove/publisher/auphonic/ADD_TRACK",vx="podlove/publisher/auphonic/REMOVE_TRACK",gx="podlove/publisher/auphonic/UPDATE_TRACK",yx="podlove/publisher/auphonic/SET_PRESETS",vv="podlove/publisher/auphonic/SET_PRESET",gv="podlove/publisher/auphonic/UPDATE_FILE_SELECTION",bx="podlove/publisher/auphonic/START_POLLING",_h="podlove/publisher/auphonic/STOP_POLLING",_x="podlove/publisher/auphonic/START_SAVING",wx="podlove/publisher/auphonic/STOP_SAVING",yv="podlove/publisher/auphonic/UPDATE_WEBHOOK",JD=ge(lx),YD=ge(ax),ZD=ge(ux),ds=ge(Bc),Sx=ge(hv),Ex=ge(cx),QD=ge(fx),e7=ge(px),xx=ge(hx),wh=ge(KD),t7=ge(yx),bv=ge(vv),n7=ge(dx),r7=ge(mv),$x=ge(GD),Cx=ge(gv);ge(XD);const o7=ge(mx),Tx=ge(vx),Ox=ge(gx),i7=ge(bx),u1=ge(_h),s7=ge(_x),l7=ge(wx),Ax=ge(yv),a7=or({[ax]:e=>({...e,is_initializing:!1}),[gv]:(e,t)=>({...e,current_file_selection:t.payload.key,file_selections:{...e.file_selections,[t.payload.key]:{...e.file_selections[t.payload.key],[t.payload.prop]:t.payload.value}}}),[mx]:(e,t)=>{const n=`Track ${e.tracks.length+1}`;return{...e,tracks:[...e.tracks,{identifier:n,identifier_new:n,fileSelection:null,input_file_name:"",filtering:!0,noise_and_hum_reduction:!1,fore_background:"auto",track_gain:"0",save_state:"new"}]}},[vx]:(e,t)=>({...e,tracks:e.tracks.filter((n,r)=>n.identifier!=t.payload)}),[gx]:(e,t)=>{const n=(o,s)=>o.save_state=="new"?{save_state:"new"}:{save_state:"edited"},r=e.tracks.reduce((o,s,l)=>[...o,l===t.payload.index?{...s,...t.payload.track,...n(s,t.payload.track)}:s],[]);return{...e,tracks:r}},[mv]:(e,t)=>{const{uuid:n,files:r}=t.payload;return{...e,service_files:{...e.service_files,[n]:r}}},[dx]:(e,t)=>({...e,services:t.payload}),[yx]:(e,t)=>({...e,presets:t.payload}),[cx]:(e,t)=>({...e,productions:t.payload}),[Bc]:(e,t)=>{var o,s;const n=t.payload;return{...e,production:n,file_selections:(()=>{var l;if(n!=null&&n.is_multitrack)return((l=n==null?void 0:n.multi_input_files)==null?void 0:l.reduce((a,c,f)=>{let p=c.service;return p||(c.input_file.substring(0,4)=="http"?p="url":p="file"),{...a,[`${n==null?void 0:n.uuid}_t${f}`]:{currentServiceSelection:p,fileSelection:c.service?c.input_file:null,urlValue:p=="url"?c.input_file:null,fileValue:null}}},{}))||{};{let a=n==null?void 0:n.service;const c=n==null?void 0:n.input_file;return a||((c==null?void 0:c.substring(0,4))=="http"?a="url":a="file"),{[`${n==null?void 0:n.uuid}`]:{currentServiceSelection:a,fileSelection:a?c:null,urlValue:a=="url"?c:null,fileValue:null}}}})(),tracks:((s=(o=t.payload)==null?void 0:o.multi_input_files)==null?void 0:s.reduce((l,a)=>{var c,f,p;return[...l,{identifier:a.id,identifier_new:a.id,filtering:(c=a.algorithms)==null?void 0:c.filtering,noise_and_hum_reduction:(f=a.algorithms)==null?void 0:f.denoise,fore_background:(p=a.algorithms)==null?void 0:p.backforeground,input_file_name:a.input_file,save_state:"unchanged"}]},[]))||[]}},[hv]:e=>({...e,production:null,tracks:[],file_selections:[],current_file_selection:null}),[vv]:(e,t)=>({...e,preset:t.payload}),[ux]:(e,t)=>({...e,token:t.payload}),[_x]:(e,t)=>({...e,is_saving:!0}),[wx]:(e,t)=>({...e,is_saving:!1}),[yv]:(e,t)=>({...e,publish_when_done:t.payload})},qD),u7=e=>e?e.map(t=>{let n={start:t.start,title:t.title};return t.image&&(n.image=t.image),t.url&&(n.url=t.url),n}):[],c7=e=>e?e.map(t=>({format:t.format,bitrate:t.bitrate,suffix:t.suffix,ending:t.ending,filename:t.filename,mono_mixdown:t.mono_mixdown,split_on_chapters:t.split_on_chapters,outgoing_services:t.outgoing_services})):[],d7=e=>{const t=e.production;return{uuid:t==null?void 0:t.uuid,metadata:t==null?void 0:t.metadata,input_file:t==null?void 0:t.input_file,chapters:u7(t==null?void 0:t.chapters),output_files:c7(t==null?void 0:t.output_files),output_basename:t==null?void 0:t.output_basename,outgoing_services:t==null?void 0:t.outgoing_services,algorithms:t==null?void 0:t.algorithms,speech_recognition:t==null?void 0:t.speech_recognition}},On={token:e=>e.token,production:e=>e.production,productionId:e=>{var t;return(t=e.production)==null?void 0:t.uuid},productions:e=>e.productions,presets:e=>e.presets,preset:e=>e.preset,productionPayload:d7,services:e=>e.services,incomingServices:e=>e.services.filter(t=>t.incoming),outgoingServices:e=>e.services.filter(t=>t.outgoing),serviceFiles:e=>e.service_files,tracks:e=>e.tracks,fileSelections:e=>e.file_selections,currentFileSelection:e=>e.current_file_selection,isSaving:e=>e.is_saving,isInitializing:e=>e.is_initializing,publishWhenDone:e=>e.publish_when_done},f7={is_initializing:!0,slug_autogeneration_enabled:!1,files:[]},Ix="podlove/publisher/mediafiles/INIT",Px="podlove/publisher/mediafiles/INIT_DONE",kx="podlove/publisher/mediafiles/SET",_v="podlove/publisher/mediafiles/UPDATE",Uc="podlove/publisher/mediafiles/ENABLE",jc="podlove/publisher/mediafiles/DISABLE",Rx="podlove/publisher/mediafiles/VERIFY",Lx="podlove/publisher/mediafiles/UPLOAD_INTENT",wv="podlove/publisher/mediafiles/SET_UPLOAD_URL",Nx="podlove/publisher/mediafiles/ENABLE_SLUG_AUTOGEN",Mx="podlove/publisher/mediafiles/DISABLE_SLUG_AUTOGEN",p7=ge(Ix),h7=ge(Px),m7=ge(kx),Sh=ge(_v),v7=ge(Uc),g7=ge(jc),y7=ge(Rx),b7=ge(Lx);ge(wv);const _7=ge(Nx),Dx=ge(Mx),w7=or({[Px]:e=>({...e,is_initializing:!1}),[kx]:(e,t)=>({...e,files:t.payload}),[_v]:(e,t)=>({...e,files:e.files.reduce((n,r)=>[...n,r.asset_id==t.payload.asset_id?{...r,...t.payload}:r],[])}),[Uc]:(e,t)=>({...e,files:e.files.reduce((n,r)=>[...n,r.asset_id==t.payload?{...r,enable:!0}:r],[])}),[jc]:(e,t)=>({...e,files:e.files.reduce((n,r)=>[...n,r.asset_id==t.payload?{...r,enable:!1}:r],[])}),[Nx]:e=>({...e,slug_autogeneration_enabled:!0}),[Mx]:e=>({...e,slug_autogeneration_enabled:!1})},f7),Ap={isInitializing:e=>e.is_initializing,slugAutogenerationEnabled:e=>e.slug_autogeneration_enabled,files:e=>e.files},S7={episodeList:[],selectEpisodes:[]},Fx="podlove/publisher/relatedEpisodes/INIT",Bx="podlove/publisher/relatedEpisodes/SET_EPISODE_LIST",Sv="podlove/publisher/relatedEpisodes/SET_SELECTED_EPISODES",E7="podlove/publisher/relatedEpisodes/UPDATE_RELATED_EPISODES",x7=ge(Fx),$7=ge(Bx),Ux=ge(Sv);ge(E7);const C7=or({[Eo]:(e,t)=>({...e}),[Bx]:(e,t)=>({...e,episodeList:t.payload}),[Sv]:(e,t)=>({...e,selectEpisodes:t.payload})},S7),c1={episodeList:e=>e.episodeList,selectEpisodes:e=>e.selectEpisodes},Ev="podlove/publisher/shows/INIT",xv="podlove/publisher/shows/SET",Hc="podlove/publisher/shows/SELECT",jx=ge(Ev),Hx=ge(xv),Vx=ge(Hc),Wx={shows:[]},zx=or({[xv]:(e,t)=>({...e,shows:Y.exports.get(t,["payload"],[])})},Wx),qx={shows:e=>e.shows};var T7=Object.freeze(Object.defineProperty({__proto__:null,INIT:Ev,SET:xv,SELECT:Hc,init:jx,set:Hx,select:Vx,initialState:Wx,reducer:zx,selectors:qx},Symbol.toStringTag,{value:"Module"}));const $e={lifecycle:e=>e.lifecycle,chapters:e=>e.chapters,podcast:e=>e.podcast,episode:e=>e.episode,runtime:e=>e.runtime,post:e=>e.post,transcripts:e=>e.transcripts,contributors:e=>e.contributors,auphonic:e=>e.auphonic,mediafiles:e=>e.mediafiles,settings:e=>e.settings,relatedEpisodes:e=>e.relatedEpisodes,shows:e=>e.shows},O7={bootstrapped:xe($e.lifecycle,JM.bootstrapped)},A7={token:xe($e.auphonic,On.token),productionId:xe($e.auphonic,On.productionId),productions:xe($e.auphonic,On.productions),production:xe($e.auphonic,On.production),presets:xe($e.auphonic,On.presets),preset:xe($e.auphonic,On.preset),productionPayload:xe($e.auphonic,On.productionPayload),incomingServices:xe($e.auphonic,On.incomingServices),outgoingServices:xe($e.auphonic,On.outgoingServices),serviceFiles:xe($e.auphonic,On.serviceFiles),tracks:xe($e.auphonic,On.tracks),fileSelections:xe($e.auphonic,On.fileSelections),currentFileSelection:xe($e.auphonic,On.currentFileSelection),isSaving:xe($e.auphonic,On.isSaving),isInitializing:xe($e.auphonic,On.isInitializing),publishWhenDone:xe($e.auphonic,On.publishWhenDone)},I7={title:xe($e.podcast,ho.title),subtitle:xe($e.podcast,ho.subtitle),summary:xe($e.podcast,ho.summary),mnemonic:xe($e.podcast,ho.mnemonic),itunesType:xe($e.podcast,ho.itunesType),author:xe($e.podcast,ho.author),poster:xe($e.podcast,ho.poster),link:xe($e.podcast,ho.link),license_name:xe($e.podcast,ho.license_name),license_url:xe($e.podcast,ho.license_url)},P7={list:xe($e.chapters,$p.chapters),selected:xe($e.chapters,$p.selected),selectedIndex:xe($e.chapters,$p.selectedIndex)},Kx={contributors:xe($e.contributors,Op.contributors),roles:xe($e.contributors,Op.roles),groups:xe($e.contributors,Op.groups)},k7={id:xe($e.episode,tn.id),slug:xe($e.episode,tn.slug),duration:xe($e.episode,tn.duration),number:xe($e.episode,tn.number),title:xe($e.episode,tn.title),subtitle:xe($e.episode,tn.subtitle),summary:xe($e.episode,tn.summary),type:xe($e.episode,tn.type),poster:xe($e.episode,tn.poster),episodePoster:xe($e.episode,tn.episodePoster),mnemonic:xe($e.episode,tn.mnemonic),explicit:xe($e.episode,tn.explicit),soundbite_start:xe($e.episode,tn.soundbite_start),soundbite_duration:xe($e.episode,tn.soundbite_duration),soundbite_title:xe($e.episode,tn.soundbite_title),auphonicProductionId:xe($e.episode,tn.auphonicProductionId),auphonicWebhookConfig:xe($e.episode,tn.auphonicWebhookConfig),license_name:xe($e.episode,tn.license_name),license_url:xe($e.episode,tn.license_url),contributions:xe(xe($e.episode,tn.contributions),Kx.contributors,(e,t)=>e.map(r=>({...r,...r.contributor_id?t.find(({id:o})=>o.toString()===r.contributor_id.toString()):{}}))),currentShow:xe($e.episode,tn.currentShow)},R7={isInitializing:xe($e.mediafiles,Ap.isInitializing),files:xe($e.mediafiles,Ap.files),slugAutogenerationEnabled:xe($e.mediafiles,Ap.slugAutogenerationEnabled)},L7={baseUrl:xe($e.runtime,Il.baseUrl),nonce:xe($e.runtime,Il.nonce),base:xe($e.runtime,Il.base),auth:xe($e.runtime,Il.auth),bearer:xe($e.runtime,Il.bearer)},N7={id:xe($e.post,l1.id),title:xe($e.post,l1.title)},M7={list:xe($e.transcripts,a1.transcripts),voices:xe($e.transcripts,a1.voices)},D7={autoGenerateEpisodeTitle:xe($e.settings,Fi.autoGenerateEpisodeTitle),blogTitleTemplate:xe($e.settings,Fi.blogTitleTemplate),episodeNumberPadding:xe($e.settings,Fi.episodeNumberPadding),mediaFileBaseUri:xe($e.settings,Fi.mediaFileBaseUri),imageAsset:xe($e.settings,Fi.imageAsset),enableEpisodeExplicit:xe($e.settings,Fi.enableEpisodeExplicit),modules:xe($e.settings,Fi.modules)},F7={episodeList:xe($e.relatedEpisodes,c1.episodeList),selectEpisode:xe($e.relatedEpisodes,c1.selectEpisodes)},B7={list:xe($e.shows,qx.shows)};var G={lifecycle:O7,podcast:I7,chapters:P7,episode:k7,runtime:L7,post:N7,transcripts:M7,contributors:Kx,settings:D7,auphonic:A7,mediafiles:R7,relatedEpisodes:F7,shows:B7},U7=LS({lifecycle:XM,chapters:sD,episode:gD,runtime:bD,post:wD,transcripts:ID,contributors:MD,settings:UD,podcast:zD,auphonic:a7,mediafiles:w7,relatedEpisodes:C7,shows:zx}),d1=function(t){return{done:!0,value:t}},Ip={};function Ad(e){return wd(e)?"channel":zS(e)?String(e):Hn(e)?e.name:String(e)}function Id(e,t,n){var r,o,s,l=t;function a(c,f){if(l===Ip)return d1(c);if(f&&!o)throw l=Ip,f;r&&r(c);var p=f?e[o](f):e[l]();return l=p.nextState,s=p.effect,r=p.stateUpdater,o=p.errorState,l===Ip?d1(c):s}return yh(a,function(c){return a(null,c)},n)}function j7(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var s={done:!1,value:go(e)},l=function(p){return{done:!1,value:Dt.apply(void 0,[t].concat(r,[p]))}},a,c=function(p){return a=p};return Id({q1:function(){return{nextState:"q2",effect:s,stateUpdater:c}},q2:function(){return{nextState:"q1",effect:l(a)}}},"q1","takeEvery("+Ad(e)+", "+t.name+")")}function H7(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var s={done:!1,value:go(e)},l=function(y){return{done:!1,value:Dt.apply(void 0,[t].concat(r,[y]))}},a=function(y){return{done:!1,value:W6(y)}},c,f,p=function(y){return c=y},h=function(y){return f=y};return Id({q1:function(){return{nextState:"q2",effect:s,stateUpdater:h}},q2:function(){return c?{nextState:"q3",effect:a(c)}:{nextState:"q1",effect:l(f),stateUpdater:p}},q3:function(){return{nextState:"q1",effect:l(f),stateUpdater:p}}},"q1","takeLatest("+Ad(e)+", "+t.name+")")}function V7(e,t,n){for(var r=arguments.length,o=new Array(r>3?r-3:0),s=3;s<r;s++)o[s-3]=arguments[s];var l,a,c=function(){return{done:!1,value:go(a)}},f=function(w){return{done:!1,value:Dt.apply(void 0,[n].concat(o,[w]))}},p={done:!1,value:qm(e)},h=function(w){return l=w},v=function(w){return a=w},y=!wd(t);return y||v(t),Id({q1:function(){var w={done:!1,value:z6(t,M6(1))};return{nextState:"q2",effect:w,stateUpdater:v}},q2:function(){return{nextState:"q3",effect:c(),stateUpdater:h}},q3:function(){return{nextState:"q4",effect:f(l)}},q4:function(){return{nextState:"q2",effect:p}}},y?"q1":"q2","throttle("+Ad(t)+", "+n.name+")")}function W7(e,t,n){for(var r=arguments.length,o=new Array(r>3?r-3:0),s=3;s<r;s++)o[s-3]=arguments[s];var l,a,c={done:!1,value:go(t)},f={done:!1,value:bh({action:go(t),debounce:qm(e)})},p=function(w){return{done:!1,value:Dt.apply(void 0,[n].concat(o,[w]))}},h=function(w){return{done:!1,value:w}},v=function(w){return l=w},y=function(w){return a=w};return Id({q1:function(){return{nextState:"q2",effect:c,stateUpdater:v}},q2:function(){return{nextState:"q3",effect:f,stateUpdater:y}},q3:function(){return a.debounce?{nextState:"q1",effect:p(l)}:{nextState:"q2",effect:h(a.action),stateUpdater:v}}},"q1","debounce("+Ad(t)+", "+n.name+")")}function Xe(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return Dt.apply(void 0,[j7,e,t].concat(r))}function z7(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return Dt.apply(void 0,[H7,e,t].concat(r))}function Gx(e,t,n){for(var r=arguments.length,o=new Array(r>3?r-3:0),s=3;s<r;s++)o[s-3]=arguments[s];return Dt.apply(void 0,[V7,e,t,n].concat(o))}function Eh(e,t,n){for(var r=arguments.length,o=new Array(r>3?r-3:0),s=3;s<r;s++)o[s-3]=arguments[s];return Dt.apply(void 0,[W7,e,t,n].concat(o))}function q7(){return function*(){const e=yield Zn(X7,"click","button.editor-post-publish-button");yield Xe(e,K7),yield Xe(Eo,G7)}}function*K7(){yield Ie(qM())}function*G7(){yield Ie(KM())}function X7(e,t){return SE(n=>{let r;const o=s=>{n(s)};return window.addEventListener("load",()=>{r=document.querySelector(t),r==null||r.addEventListener(e,o)}),()=>{r==null||r.removeEventListener(e,o),n(Us)}})}const xh=e=>SE(t=>(e(r=>{t(r||{})}),()=>{}));function*xo(e,t,...n){return yield Dt(function*(){for(;;){const o=yield go(e);yield Zn(t,...n.concat(o))}})}function*J7(e){if(!(yield Te(e))){for(;;)if(yield go("*"),yield Te(e))return}}const al=(e,t={})=>{const n=Object.keys(t).map(r=>encodeURIComponent(r)+"="+encodeURIComponent(t[r])).join("&");return e+=(e.indexOf("?")===-1?"?":"&")+n},Na=(e=console.error)=>async t=>{let n;try{n=await t.json()}catch{n={}}return t.status>=300?(e(n),{error:n}):{result:n}},Xx=({nonce:e,auth:t,bearer:n},r={})=>({"Content-Type":"application/json",Accept:"application/json",...n?{Authorization:`Bearer ${n}`}:{},...t?{Authorization:`Basic ${t}`}:{},...e?{"X-WP-Nonce":e}:{},...r}),f1=({errorHandler:e,nonce:t,auth:n,bearer:r,method:o,urlProcessor:s})=>(l,{headers:a,query:c}={})=>fetch(al(s?s(l):l,c),{method:o,headers:Xx({nonce:t,auth:n,bearer:r},a)}).then(Na(e)),p1=({errorHandler:e,nonce:t,auth:n,bearer:r,method:o,urlProcessor:s})=>(l,a,{headers:c,query:f}={})=>fetch(al(s?s(l):l,f),{method:o,headers:Xx({nonce:t,auth:n,bearer:r},c),body:JSON.stringify(a)}).then(Na(e)),Y7=Y.exports.curry(({base:e,version:t,nonce:n,auth:r,bearer:o,errorHandler:s})=>({get:f1({nonce:n,auth:r,bearer:o,method:"GET",errorHandler:s,urlProcessor:l=>`${e}/${t}/${l}`}),delete:f1({nonce:n,auth:r,bearer:o,errorHandler:s,method:"DELETE",urlProcessor:l=>`${e}/${t}/${l}`}),post:p1({nonce:n,auth:r,bearer:o,errorHandler:s,method:"POST",urlProcessor:l=>`${e}/${t}/${l}`}),put:p1({nonce:n,auth:r,bearer:o,errorHandler:s,method:"PUT",urlProcessor:l=>`${e}/${t}/${l}`})})),Jx="podlove/publisher/NOTIFY",$v=ge(Jx),Z7={};or({},Z7);function*Go(){yield Zn(J7,G.lifecycle.bootstrapped);const e=yield Te(G.runtime.base),t=yield Te(G.runtime.nonce),n=yield Te(G.runtime.auth),r=yield Te(G.runtime.bearer);return Y7({base:e,version:"v2",nonce:t,auth:n,bearer:r,errorHandler:function(s){Fd.dispatch($v({type:"error",message:s}))}})}function*Q7(){const e=yield Go();yield Dt(eF,e),yield Xe(pv,tF)}function*eF(e){const{result:t}=yield e.get("podcast");t&&(yield Ie(WD(t)))}function tF(e){const t=Y.exports.get(e,["payload","prop"]);Y.exports.get(e,["payload","value"],null)}function nF(){return function*(){yield xo(Eo,Q7)}}function rF(){return function*(){yield Xe(Jx,oF)}}function*oF(e){const t=Y.exports.get(globalThis,["wp","data","dispatch"]);t?iF(t,Y.exports.get(e,["payload"])):sF(e.payload)}function iF(e,{type:t,message:n}){!n||e("core/notices").createNotice(t,n,{type:"snackbar",isDismissible:!0})}function sF({type:e,message:t}){switch(e){case"success":case"info":console.log(t);break;case"warning":console.warn(t);break;case"error":console.error(t);break}}var Yx={};/*! For license information please see keyboard.js.LICENSE.txt */(()=>{var e={9620:(o,s)=>{function l(v){if(v&&typeof v=="object"){var y=v.which||v.keyCode||v.charCode;y&&(v=y)}if(typeof v=="number")return p[v];var _,w=String(v);return(_=a[w.toLowerCase()])?_:(_=c[w.toLowerCase()])||(w.length===1?w.charCodeAt(0):void 0)}l.isEventKey=function(v,y){if(v&&typeof v=="object"){var _=v.which||v.keyCode||v.charCode;if(_==null)return!1;if(typeof y=="string"){var w;if((w=a[y.toLowerCase()])||(w=c[y.toLowerCase()]))return w===_}else if(typeof y=="number")return y===_;return!1}};var a=(s=o.exports=l).code=s.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},c=s.aliases={windows:91,"\u21E7":16,"\u2325":18,"\u2303":17,"\u2318":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};for(f=97;f<123;f++)a[String.fromCharCode(f)]=f-32;for(var f=48;f<58;f++)a[f-48]=f;for(f=1;f<13;f++)a["f"+f]=f+111;for(f=0;f<10;f++)a["numpad "+f]=f+96;var p=s.names=s.title={};for(f in a)p[a[f]]=f;for(var h in c)a[h]=c[h]}},t={};function n(o){var s=t[o];if(s!==void 0)return s.exports;var l=t[o]={exports:{}};return e[o](l,l.exports,n),l.exports}n.n=o=>{var s=o&&o.__esModule?()=>o.default:()=>o;return n.d(s,{a:s}),s},n.d=(o,s)=>{for(var l in s)n.o(s,l)&&!n.o(o,l)&&Object.defineProperty(o,l,{enumerable:!0,get:s[l]})},n.o=(o,s)=>Object.prototype.hasOwnProperty.call(o,s),n.r=o=>{typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})};var r={};(()=>{function o(Q){return Q!=null&&typeof Q=="object"&&Q["@@functional/placeholder"]===!0}function s(Q){return function ae(fe){return arguments.length===0||o(fe)?ae:Q.apply(this,arguments)}}function l(Q){return function ae(fe,Se){switch(arguments.length){case 0:return ae;case 1:return o(fe)?ae:s(function(He){return Q(fe,He)});default:return o(fe)&&o(Se)?ae:o(fe)?s(function(He){return Q(He,Se)}):o(Se)?s(function(He){return Q(fe,He)}):Q(fe,Se)}}}n.r(r),n.d(r,{keydown:()=>Le,keyup:()=>Ke});const a=Number.isInteger||function(Q){return Q<<0===Q};function c(Q){return Object.prototype.toString.call(Q)==="[object String]"}const f=l(function(Q,ae){var fe=Q<0?ae.length+Q:Q;return c(ae)?ae.charAt(fe):ae[fe]}),p=l(function(Q,ae){return Q.map(function(fe){for(var Se,He=ae,De=0;De<fe.length;){if(He==null)return;Se=fe[De],He=a(Se)?f(Se,He):He[Se],De+=1}return He})}),h=l(function(Q,ae){return p([Q],ae)[0]}),v=l(function(Q,ae){return h([Q],ae)});function y(Q){return function ae(fe,Se,He){switch(arguments.length){case 0:return ae;case 1:return o(fe)?ae:l(function(De,tt){return Q(fe,De,tt)});case 2:return o(fe)&&o(Se)?ae:o(fe)?l(function(De,tt){return Q(De,Se,tt)}):o(Se)?l(function(De,tt){return Q(fe,De,tt)}):s(function(De){return Q(fe,Se,De)});default:return o(fe)&&o(Se)&&o(He)?ae:o(fe)&&o(Se)?l(function(De,tt){return Q(De,tt,He)}):o(fe)&&o(He)?l(function(De,tt){return Q(De,Se,tt)}):o(Se)&&o(He)?l(function(De,tt){return Q(fe,De,tt)}):o(fe)?s(function(De){return Q(De,Se,He)}):o(Se)?s(function(De){return Q(fe,De,He)}):o(He)?s(function(De){return Q(fe,Se,De)}):Q(fe,Se,He)}}}const _=l(function(Q,ae){return ae==null||ae!=ae?Q:ae}),w=y(function(Q,ae,fe){return _(Q,h(ae,fe))}),I=y(function(Q,ae,fe){return w(Q,[ae],fe)});function O(Q,ae){switch(Q){case 0:return function(){return ae.apply(this,arguments)};case 1:return function(fe){return ae.apply(this,arguments)};case 2:return function(fe,Se){return ae.apply(this,arguments)};case 3:return function(fe,Se,He){return ae.apply(this,arguments)};case 4:return function(fe,Se,He,De){return ae.apply(this,arguments)};case 5:return function(fe,Se,He,De,tt){return ae.apply(this,arguments)};case 6:return function(fe,Se,He,De,tt,vn){return ae.apply(this,arguments)};case 7:return function(fe,Se,He,De,tt,vn,ln){return ae.apply(this,arguments)};case 8:return function(fe,Se,He,De,tt,vn,ln,L){return ae.apply(this,arguments)};case 9:return function(fe,Se,He,De,tt,vn,ln,L,B){return ae.apply(this,arguments)};case 10:return function(fe,Se,He,De,tt,vn,ln,L,B,Z){return ae.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function S(Q,ae){return function(){return ae.call(this,Q.apply(this,arguments))}}const E=Array.isArray||function(Q){return Q!=null&&Q.length>=0&&Object.prototype.toString.call(Q)==="[object Array]"},T=s(function(Q){return!!E(Q)||!!Q&&typeof Q=="object"&&!c(Q)&&(Q.nodeType===1?!!Q.length:Q.length===0||Q.length>0&&Q.hasOwnProperty(0)&&Q.hasOwnProperty(Q.length-1))});var $=function(){function Q(ae){this.f=ae}return Q.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},Q.prototype["@@transducer/result"]=function(ae){return ae},Q.prototype["@@transducer/step"]=function(ae,fe){return this.f(ae,fe)},Q}();const P=l(function(Q,ae){return O(Q.length,function(){return Q.apply(ae,arguments)})});function k(Q,ae,fe){for(var Se=fe.next();!Se.done;){if((ae=Q["@@transducer/step"](ae,Se.value))&&ae["@@transducer/reduced"]){ae=ae["@@transducer/value"];break}Se=fe.next()}return Q["@@transducer/result"](ae)}function A(Q,ae,fe,Se){return Q["@@transducer/result"](fe[Se](P(Q["@@transducer/step"],Q),ae))}var H=typeof Symbol!="undefined"?Symbol.iterator:"@@iterator";function D(Q,ae,fe){if(typeof Q=="function"&&(Q=function(Se){return new $(Se)}(Q)),T(fe))return function(Se,He,De){for(var tt=0,vn=De.length;tt<vn;){if((He=Se["@@transducer/step"](He,De[tt]))&&He["@@transducer/reduced"]){He=He["@@transducer/value"];break}tt+=1}return Se["@@transducer/result"](He)}(Q,ae,fe);if(typeof fe["fantasy-land/reduce"]=="function")return A(Q,ae,fe,"fantasy-land/reduce");if(fe[H]!=null)return k(Q,ae,fe[H]());if(typeof fe.next=="function")return k(Q,ae,fe);if(typeof fe.reduce=="function")return A(Q,ae,fe,"reduce");throw new TypeError("reduce: list must be array or iterable")}const F=y(D);function z(Q,ae){return function(){var fe=arguments.length;if(fe===0)return ae();var Se=arguments[fe-1];return E(Se)||typeof Se[Q]!="function"?ae.apply(this,arguments):Se[Q].apply(Se,Array.prototype.slice.call(arguments,0,fe-1))}}const K=s(z("tail",y(z("slice",function(Q,ae,fe){return Array.prototype.slice.call(fe,Q,ae)}))(1,1/0)));function te(){if(arguments.length===0)throw new Error("pipe requires at least one argument");return O(arguments[0].length,F(S,arguments[0],K(arguments)))}const we=s(function(Q){return c(Q)?Q.split("").reverse().join(""):Array.prototype.slice.call(Q,0).reverse()});function be(){if(arguments.length===0)throw new Error("compose requires at least one argument");return te.apply(this,we(arguments))}var Oe=n(9620),Ae=n.n(Oe);const Ye=Q=>ae=>{v("nodeName",ae.target)==="BODY"&&Q(ae)},ft=Q=>({key:Ae()(Q),ctrl:I(!1,"ctrlKey",Q),shift:I(!1,"shiftKey",Q),meta:I(!1,"metaKey",Q),alt:I(!1,"altKey",Q)}),Le=Q=>document.addEventListener("keydown",Ye(be(Q,ft))),Ke=Q=>document.addEventListener("keyup",Ye(be(Q,ft)))})(),Yx.utils=r})();function lF(e){const t=/^([\d\.:]+)\s(.*)$/;return e.trim().split(/(\r?\n)/).reduce(function(n,r){var o=r.match(t);if(o){var s=La(o[1]);s!==null&&n.push({title:o[2].trim(),start:s})}return n},[])}function aF(e){const t=/^([\d\.,]+)\s+([\d\.,]+)\s+(.*)$/;return e.trim().split(/(\r\n|\r|\n)/).reduce(function(n,r){var o=r.match(t);if(o){var s=La(o[1].replace(",",".")),l=o[3].trim();s!==null&&n.push({title:l,start:s})}return n},[])}function uF(e){const r=new window.DOMParser().parseFromString(e,"text/xml").getElementsByTagName("Marker");let o=Array.from(r).reduce((s,l)=>{var p;if(!l||!l.getAttribute("Type")||((p=l.getAttribute("Type"))==null?void 0:p.toLowerCase())!=="chapter")return s;const a=La(l.getAttribute("Time")||""),c=l.getAttribute("Name")||"",f=l.getAttribute("URL")||"";return a!==null&&s.push({start:a,title:c.trim(),...f?{href:f.trim()}:{}}),s},[]);return o.sort(function(s,l){return s.start-l.start}),o}function cF(e){const r=new window.DOMParser().parseFromString(e,"text/xml").getElementsByTagNameNS("http://podlove.org/simple-chapters","chapter");return Array.from(r).reduce((o,s)=>{var l=La(s.getAttribute("start")||""),a=s.getAttribute("title")||"",c=s.getAttribute("href")||"",f=s.getAttribute("image")||"";return l!==null&&o.push({start:l,title:a.trim(),...c?{href:c.trim()}:{},...f?{image:f.trim()}:{}}),o},[])}const Zx=Y.exports.get(window,["wp","i18n","__"],e=>e),dF=Zx;var fF={install(e){e.config.globalProperties.__=(t,n)=>Zx(t,n)}};function*pF(){const e=yield Go();yield Dt(hF,e),yield Xe([PE],bF),yield Xe(RE,vF),yield Xe([Qm,nv,tv,ev,ov],mF,e);const t=yield Zn(xh,Yx.utils.keydown);yield Xe(t,_F),yield Xe(rv,wF)}function*hF(e){const t=yield Te(G.episode.id),{result:n}=yield e.get(`chapters/${t}`);n&&(yield Ie(rD(n.chapters.map(r=>({...r,start:Nt.fromString(r.start).totalMs})))))}function*mF(e){const t=yield Te(G.episode.id),n=yield Te(G.chapters.list);yield e.put(`chapters/${t}`,{chapters:n.map(r=>({...r,start:new Nt(r.start).pretty}))})}function*vF(e){const t=yield Te(G.chapters.list);switch(e.payload){case"psc":h1("chapters.psc",gF(t));break;case"mp4":h1("chapters.txt",yF(t));break}}function gF(e){const t=new XMLSerializer,n='<psc:chapters version="1.2" xmlns:psc="http://podlove.org/simple-chapters"/>',o=new DOMParser().parseFromString(n,"text/xml");let s=o.getElementsByTagName("chapters");return s.length||(s=o.getElementsByTagName("psc:chapters")),s=s[0],e.forEach(c=>{let f=o.createElement("psc:chapter");f.setAttribute("title",c.title||""),f.setAttribute("start",c.start?new Nt(c.start).pretty:"00:00:00"),c.href&&f.setAttribute("href",c.href),c.image&&f.setAttribute("image",c.image),s.appendChild(f)}),t.serializeToString(o).replace(/\<psc:chapter\s/gi,` 47 47 <psc:chapter `).replace("</psc:chapters>",` 48 48 </psc:chapters>`)}function yF(e){const t=r=>isNaN(r.start)?"":new Nt(r.start).pretty,n=r=>r.href?"<"+r.href+">":"";return e.reduce((r,o)=>{let s=t(o)+" "+o.title+" "+n(o);return[...r,s.trim()]},[]).join(` 49 49 `)+` 50 `}function h1(e,t){var n=new Blob([t],{type:"text/plain"});const r=document.createElement("a");r.href=window.URL.createObjectURL(n),r.download=e,document.body.appendChild(r),r.click(),document.body.removeChild(r)}function*bF(e){const t=[lF,aF,uF,cF];let n=[];if(t.forEach(r=>{if(!(n!==null&&n.length>0))try{n=r(e.payload)}catch{n=null}}),n===null){yield Ie($v({type:"error",message:dF("Unable to parse PSC chapters.","podlove-podcasting-plugin-for-wordpress")}));return}yield Ie(LE(n))}function*_F(e){const t=yield Te(G.chapters.selectedIndex);if(t===null)return;const n=yield Te(G.chapters.list);switch(!0){case e.key==="up":t===0?yield Ie(di(n.length-1)):yield Ie(di(t-1));break;case e.key==="down":t===n.length-1?yield Ie(di(0)):yield Ie(di(t+1));break;case e.key==="esc":yield Ie(di(null));break}}function*wF(){yield Ie(dv({onSuccess:{type:rv}}))}function SF(){return function*(){yield xo(AE,pF)}}function*EF(){const e=yield Go();yield Dt(Pd,e),yield Ge(YE,xF,e),yield Ge(fv,CF,e),yield Ge(QE,TF,e),yield Ge(ZE,$F,e)}function*Pd(e){const t=yield Te(G.episode.id),[n,r]=yield Promise.all([e.get(`transcripts/${t}`),e.get(`transcripts/voices/${t}`)]);yield Ie(ED(Y.exports.get(n,["result","transcript"],[]))),yield Ie(xD(Y.exports.get(r,["result","voices"],[])))}function*xF(e,t){const n=yield Te(G.episode.id),{result:r}=yield e.put(`transcripts/${n}`,{content:t.payload});r&&(yield Dt(Pd,e))}function*$F(e,t){const n=yield Te(G.episode.id),{result:r}=yield e.put(`transcripts/${n}`,{asset:1});r&&(yield Dt(Pd,e))}function*CF(e,t){const n=yield Te(G.episode.id);yield e.post(`transcripts/voices/${n}`,{voice:t.payload.voice,contributor_id:t.payload.contributor})}function*TF(e){const t=yield Te(G.episode.id),{result:n}=yield e.delete(`transcripts/${t}`);n&&(yield Dt(Pd,e))}function OF(){return function*(){yield xo(GE,EF)}}function*AF(){const e=yield Go();yield Dt(kF,e),yield Dt(RF,e),yield Dt(LF,e),yield Dt(IF,e),yield Ge(VE,NF,e),yield Gx(3e3,[sv,iv,lv,av,uv],PF,e)}function*IF(e){const t=yield Te(G.episode.id);if(!t)return;const{result:n}=yield e.get(`episodes/${t}/contributions`);!n||(yield Ie(WE({contributions:Y.exports.get(n,["contribution"],[])})))}function*PF(e){const t=yield Te(G.episode.id);if(!t)return;const n=yield Te(G.contributors.roles),r=yield Te(G.contributors.groups);let s=(yield Te(G.episode.contributions)).map(function({contributor_id:l,role_id:a,group_id:c,position:f,comment:p}){return{contributor_id:Y.exports.toInteger(l),role_id:Y.exports.toInteger(a)==0&&n.length>0?n[0].id:Y.exports.toInteger(a),group_id:Y.exports.toInteger(c)==0&&r.length>0?r[0].id:Y.exports.toInteger(c),position:Y.exports.toInteger(f),comment:p||""}});yield e.put(`episodes/${t}/contributions`,{contributors:s})}function*kF(e){const{result:t}=yield e.get("contributors",{query:{filter:"all"}});!t||(yield Ie(kD(Y.exports.get(t,"contributors",[]))))}function*RF(e){const{result:t}=yield e.get("contributors/roles");!t||(yield Ie(RD(Y.exports.get(t,"roles",[]))))}function*LF(e){const{result:t}=yield e.get("contributors/groups");!t||(yield Ie(LD(Y.exports.get(t,"groups",[]))))}function*NF(e,t){const{result:n,error:r}=yield e.post("contributors",{});if(r)return;const o=n==null?void 0:n.id,s=Y.exports.get(t,["payload"]),{error:l}=yield e.put(`contributors/${o}`,{realname:s});if(l)return;const a={id:o,realname:s};yield Ie(ND(a)),yield Ie(zE(a))}function MF(){return function*(){yield xo(ex,AF)}}const ji=Y.exports.get(window,["wp","data"],null),Qx=Y.exports.get(window,["wp","media"],null),Qi=document.querySelector('input[name="post_title"]'),DF=e=>Qi==null?void 0:Qi.addEventListener("change",t=>e(Y.exports.get(t,["target","value"])));function*FF(){const e=yield Te(G.settings.autoGenerateEpisodeTitle);typeof(ji==null?void 0:ji.subscribe)!="undefined"&&(yield Ge(yield Zn(xh,ji==null?void 0:ji.subscribe),BF)),Qi&&(yield Ge(yield Zn(xh,DF),e2)),e&&(yield Ge(Td,m1),yield Ge(Ys,m1)),Qx&&(yield Ge(qE,UF))}function*BF(){yield Ie(KE({prop:"title",value:ji.select("core/editor").getEditedPostAttribute("title")}))}function*e2(e){yield Ie(KE({prop:"title",value:e}))}function*m1(){if(!Qi)return;const e=yield Te(G.settings.blogTitleTemplate);if(!e)return;const t=yield Te(G.episode.title),n=yield Te(G.episode.number),r=yield Te(G.podcast.mnemonic),o=yield Te(G.settings.episodeNumberPadding),s=e.replace("%mnemonic%",r||"").replace("%episode_number%",(n||"").padStart(o||0,"0")).replace("%season_number%","").replace("%episode_title%",t||"");Qi.value!=s&&(Qi.value=s,yield e2(s))}function*UF(e){const t=Y.exports.get(e,["payload","onSuccess"]);if(!t){console.warn("Missing successAction");return}const n=Qx({title:"Select or Upload Media Of Your Chosen Persuasion",button:{text:"Use this media"},multiple:!1}),r=new Promise(o=>{n.on("select",()=>{const{url:s}=n.state().get("selection").first().toJSON();o(s)})});n.open();try{const o=yield r;yield Ie({...t,payload:o})}finally{}}function jF(){return function*(){yield xo(Eo,FF)}}let Bl={};function*HF(){const e=yield Go();yield Dt(WF,e),yield Ge(Ys,zF),yield Eh(1e3,Ys,v1,e),yield Eh(50,FE,v1,e),yield Ge(BE,qF),yield Ge(HE,KF),yield Ge(jE,GF),yield Ge(Td,VF)}function*VF(){const e=yield Te(G.episode.auphonicWebhookConfig);e&&(yield Ie(Ax(e.enabled)))}function*WF(e){const t=yield Te(G.episode.id),{result:n}=yield e.get(`episodes/${t}`);n&&(n.slug===null&&(yield Ie(_7())),yield Ie(WE(n)))}function zF(e){const t=Y.exports.get(e,["payload","prop"]),n=Y.exports.get(e,["payload","value"],null);!t||(Bl[t]=n)}function*v1(e,t){const n=yield Te(G.episode.id);Y.exports.isEmpty(Bl)||(yield e.put(`episodes/${n}`,Bl,{query:{skip_validation:"1"}}),yield Ie(mD(Bl)),Bl={})}function*qF(e){Object.keys(e.payload).includes("slug")&&(yield Ie(vD()))}function*KF(){yield Ie(dv({onSuccess:{type:jE}}))}function*GF(e){yield Ie($t({prop:"episode_poster",value:Y.exports.get(e,["payload"])}))}function XF(){return function*(){yield xo(DE,HF)}}function t2(e,t){return function(){return e.apply(t,arguments)}}const{toString:JF}=Object.prototype,{getPrototypeOf:Cv}=Object,kd=(e=>t=>{const n=JF.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),so=e=>(e=e.toLowerCase(),t=>kd(t)===e),Rd=e=>t=>typeof t===e,{isArray:ul}=Array,va=Rd("undefined");function YF(e){return e!==null&&!va(e)&&e.constructor!==null&&!va(e.constructor)&&kr(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const n2=so("ArrayBuffer");function ZF(e){let t;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&n2(e.buffer),t}const QF=Rd("string"),kr=Rd("function"),r2=Rd("number"),Ld=e=>e!==null&&typeof e=="object",e8=e=>e===!0||e===!1,uc=e=>{if(kd(e)!=="object")return!1;const t=Cv(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},t8=so("Date"),n8=so("File"),r8=so("Blob"),o8=so("FileList"),i8=e=>Ld(e)&&kr(e.pipe),s8=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||kr(e.append)&&((t=kd(e))==="formdata"||t==="object"&&kr(e.toString)&&e.toString()==="[object FormData]"))},l8=so("URLSearchParams"),[a8,u8,c8,d8]=["ReadableStream","Request","Response","Headers"].map(so),f8=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ma(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e=="undefined")return;let r,o;if(typeof e!="object"&&(e=[e]),ul(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const s=n?Object.getOwnPropertyNames(e):Object.keys(e),l=s.length;let a;for(r=0;r<l;r++)a=s[r],t.call(null,e[a],a,e)}}function o2(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const i2=(()=>typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:global)(),s2=e=>!va(e)&&e!==i2;function $h(){const{caseless:e}=s2(this)&&this||{},t={},n=(r,o)=>{const s=e&&o2(t,o)||o;uc(t[s])&&uc(r)?t[s]=$h(t[s],r):uc(r)?t[s]=$h({},r):ul(r)?t[s]=r.slice():t[s]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&Ma(arguments[r],n);return t}const p8=(e,t,n,{allOwnKeys:r}={})=>(Ma(t,(o,s)=>{n&&kr(o)?e[s]=t2(o,n):e[s]=o},{allOwnKeys:r}),e),h8=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),m8=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},v8=(e,t,n,r)=>{let o,s,l;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)l=o[s],(!r||r(l,e,t))&&!a[l]&&(t[l]=e[l],a[l]=!0);e=n!==!1&&Cv(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},g8=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},y8=e=>{if(!e)return null;if(ul(e))return e;let t=e.length;if(!r2(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},b8=(e=>t=>e&&t instanceof e)(typeof Uint8Array!="undefined"&&Cv(Uint8Array)),_8=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const s=o.value;t.call(e,s[0],s[1])}},w8=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},S8=so("HTMLFormElement"),E8=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),g1=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),x8=so("RegExp"),l2=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Ma(n,(o,s)=>{let l;(l=t(o,s,e))!==!1&&(r[s]=l||o)}),Object.defineProperties(e,r)},$8=e=>{l2(e,(t,n)=>{if(kr(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(!!kr(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},C8=(e,t)=>{const n={},r=o=>{o.forEach(s=>{n[s]=!0})};return ul(e)?r(e):r(String(e).split(t)),n},T8=()=>{},O8=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Pp="abcdefghijklmnopqrstuvwxyz",y1="0123456789",a2={DIGIT:y1,ALPHA:Pp,ALPHA_DIGIT:Pp+Pp.toUpperCase()+y1},A8=(e=16,t=a2.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function I8(e){return!!(e&&kr(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const P8=e=>{const t=new Array(10),n=(r,o)=>{if(Ld(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const s=ul(r)?[]:{};return Ma(r,(l,a)=>{const c=n(l,o+1);!va(c)&&(s[a]=c)}),t[o]=void 0,s}}return r};return n(e,0)},k8=so("AsyncFunction"),R8=e=>e&&(Ld(e)||kr(e))&&kr(e.then)&&kr(e.catch);var ee={isArray:ul,isArrayBuffer:n2,isBuffer:YF,isFormData:s8,isArrayBufferView:ZF,isString:QF,isNumber:r2,isBoolean:e8,isObject:Ld,isPlainObject:uc,isReadableStream:a8,isRequest:u8,isResponse:c8,isHeaders:d8,isUndefined:va,isDate:t8,isFile:n8,isBlob:r8,isRegExp:x8,isFunction:kr,isStream:i8,isURLSearchParams:l8,isTypedArray:b8,isFileList:o8,forEach:Ma,merge:$h,extend:p8,trim:f8,stripBOM:h8,inherits:m8,toFlatObject:v8,kindOf:kd,kindOfTest:so,endsWith:g8,toArray:y8,forEachEntry:_8,matchAll:w8,isHTMLForm:S8,hasOwnProperty:g1,hasOwnProp:g1,reduceDescriptors:l2,freezeMethods:$8,toObjectSet:C8,toCamelCase:E8,noop:T8,toFiniteNumber:O8,findKey:o2,global:i2,isContextDefined:s2,ALPHABET:a2,generateString:A8,isSpecCompliantForm:I8,toJSONObject:P8,isAsyncFn:k8,isThenable:R8};function nt(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}ee.inherits(nt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ee.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const u2=nt.prototype,c2={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{c2[e]={value:e}});Object.defineProperties(nt,c2);Object.defineProperty(u2,"isAxiosError",{value:!0});nt.from=(e,t,n,r,o,s)=>{const l=Object.create(u2);return ee.toFlatObject(e,l,function(c){return c!==Error.prototype},a=>a!=="isAxiosError"),nt.call(l,e.message,t,n,r,o),l.cause=e,l.name=e.name,s&&Object.assign(l,s),l};var L8=null;function Ch(e){return ee.isPlainObject(e)||ee.isArray(e)}function d2(e){return ee.endsWith(e,"[]")?e.slice(0,-2):e}function b1(e,t,n){return e?e.concat(t).map(function(o,s){return o=d2(o),!n&&s?"["+o+"]":o}).join(n?".":""):t}function N8(e){return ee.isArray(e)&&!e.some(Ch)}const M8=ee.toFlatObject(ee,{},null,function(t){return/^is[A-Z]/.test(t)});function Nd(e,t,n){if(!ee.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=ee.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(w,I){return!ee.isUndefined(I[w])});const r=n.metaTokens,o=n.visitor||p,s=n.dots,l=n.indexes,c=(n.Blob||typeof Blob!="undefined"&&Blob)&&ee.isSpecCompliantForm(t);if(!ee.isFunction(o))throw new TypeError("visitor must be a function");function f(_){if(_===null)return"";if(ee.isDate(_))return _.toISOString();if(!c&&ee.isBlob(_))throw new nt("Blob is not supported. Use a Buffer instead.");return ee.isArrayBuffer(_)||ee.isTypedArray(_)?c&&typeof Blob=="function"?new Blob([_]):Buffer.from(_):_}function p(_,w,I){let O=_;if(_&&!I&&typeof _=="object"){if(ee.endsWith(w,"{}"))w=r?w:w.slice(0,-2),_=JSON.stringify(_);else if(ee.isArray(_)&&N8(_)||(ee.isFileList(_)||ee.endsWith(w,"[]"))&&(O=ee.toArray(_)))return w=d2(w),O.forEach(function(E,T){!(ee.isUndefined(E)||E===null)&&t.append(l===!0?b1([w],T,s):l===null?w:w+"[]",f(E))}),!1}return Ch(_)?!0:(t.append(b1(I,w,s),f(_)),!1)}const h=[],v=Object.assign(M8,{defaultVisitor:p,convertValue:f,isVisitable:Ch});function y(_,w){if(!ee.isUndefined(_)){if(h.indexOf(_)!==-1)throw Error("Circular reference detected in "+w.join("."));h.push(_),ee.forEach(_,function(O,S){(!(ee.isUndefined(O)||O===null)&&o.call(t,O,ee.isString(S)?S.trim():S,w,v))===!0&&y(O,w?w.concat(S):[S])}),h.pop()}}if(!ee.isObject(e))throw new TypeError("data must be an object");return y(e),t}function _1(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Tv(e,t){this._pairs=[],e&&Nd(e,this,t)}const f2=Tv.prototype;f2.append=function(t,n){this._pairs.push([t,n])};f2.toString=function(t){const n=t?function(r){return t.call(this,r,_1)}:_1;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function D8(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function p2(e,t,n){if(!t)return e;const r=n&&n.encode||D8,o=n&&n.serialize;let s;if(o?s=o(t,n):s=ee.isURLSearchParams(t)?t.toString():new Tv(t,n).toString(r),s){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class F8{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){ee.forEach(this.handlers,function(r){r!==null&&t(r)})}}var w1=F8,h2={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},B8=typeof URLSearchParams!="undefined"?URLSearchParams:Tv,U8=typeof FormData!="undefined"?FormData:null,j8=typeof Blob!="undefined"?Blob:null,H8={isBrowser:!0,classes:{URLSearchParams:B8,FormData:U8,Blob:j8},protocols:["http","https","file","blob","url","data"]};const Ov=typeof window!="undefined"&&typeof document!="undefined",V8=(e=>Ov&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator!="undefined"&&navigator.product),W8=(()=>typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),z8=Ov&&window.location.href||"http://localhost";var q8=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ov,hasStandardBrowserWebWorkerEnv:W8,hasStandardBrowserEnv:V8,origin:z8},Symbol.toStringTag,{value:"Module"})),Zr={...q8,...H8};function K8(e,t){return Nd(e,new Zr.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,s){return Zr.isNode&&ee.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function G8(e){return ee.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function X8(e){const t={},n=Object.keys(e);let r;const o=n.length;let s;for(r=0;r<o;r++)s=n[r],t[s]=e[s];return t}function m2(e){function t(n,r,o,s){let l=n[s++];if(l==="__proto__")return!0;const a=Number.isFinite(+l),c=s>=n.length;return l=!l&&ee.isArray(o)?o.length:l,c?(ee.hasOwnProp(o,l)?o[l]=[o[l],r]:o[l]=r,!a):((!o[l]||!ee.isObject(o[l]))&&(o[l]=[]),t(n,r,o[l],s)&&ee.isArray(o[l])&&(o[l]=X8(o[l])),!a)}if(ee.isFormData(e)&&ee.isFunction(e.entries)){const n={};return ee.forEachEntry(e,(r,o)=>{t(G8(r),o,n,0)}),n}return null}function J8(e,t,n){if(ee.isString(e))try{return(t||JSON.parse)(e),ee.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Av={transitional:h2,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,s=ee.isObject(t);if(s&&ee.isHTMLForm(t)&&(t=new FormData(t)),ee.isFormData(t))return o?JSON.stringify(m2(t)):t;if(ee.isArrayBuffer(t)||ee.isBuffer(t)||ee.isStream(t)||ee.isFile(t)||ee.isBlob(t)||ee.isReadableStream(t))return t;if(ee.isArrayBufferView(t))return t.buffer;if(ee.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return K8(t,this.formSerializer).toString();if((a=ee.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Nd(a?{"files[]":t}:t,c&&new c,this.formSerializer)}}return s||o?(n.setContentType("application/json",!1),J8(t)):t}],transformResponse:[function(t){const n=this.transitional||Av.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(ee.isResponse(t)||ee.isReadableStream(t))return t;if(t&&ee.isString(t)&&(r&&!this.responseType||o)){const l=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(a){if(l)throw a.name==="SyntaxError"?nt.from(a,nt.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Zr.classes.FormData,Blob:Zr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ee.forEach(["delete","get","head","post","put","patch"],e=>{Av.headers[e]={}});var Iv=Av;const Y8=ee.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var Z8=e=>{const t={};let n,r,o;return e&&e.split(`50 `}function h1(e,t){var n=new Blob([t],{type:"text/plain"});const r=document.createElement("a");r.href=window.URL.createObjectURL(n),r.download=e,document.body.appendChild(r),r.click(),document.body.removeChild(r)}function*bF(e){const t=[lF,aF,uF,cF];let n=[];if(t.forEach(r=>{if(!(n!==null&&n.length>0))try{n=r(e.payload)}catch{n=null}}),n===null){yield Ie($v({type:"error",message:dF("Unable to parse PSC chapters.","podlove-podcasting-plugin-for-wordpress")}));return}yield Ie(LE(n))}function*_F(e){const t=yield Te(G.chapters.selectedIndex);if(t===null)return;const n=yield Te(G.chapters.list);switch(!0){case e.key==="up":t===0?yield Ie(di(n.length-1)):yield Ie(di(t-1));break;case e.key==="down":t===n.length-1?yield Ie(di(0)):yield Ie(di(t+1));break;case e.key==="esc":yield Ie(di(null));break}}function*wF(){yield Ie(dv({onSuccess:{type:rv}}))}function SF(){return function*(){yield xo(AE,pF)}}function*EF(){const e=yield Go();yield Dt(Pd,e),yield Xe(YE,xF,e),yield Xe(fv,CF,e),yield Xe(QE,TF,e),yield Xe(ZE,$F,e)}function*Pd(e){const t=yield Te(G.episode.id),[n,r]=yield Promise.all([e.get(`transcripts/${t}`),e.get(`transcripts/voices/${t}`)]);yield Ie(ED(Y.exports.get(n,["result","transcript"],[]))),yield Ie(xD(Y.exports.get(r,["result","voices"],[])))}function*xF(e,t){const n=yield Te(G.episode.id),{result:r}=yield e.put(`transcripts/${n}`,{content:t.payload});r&&(yield Dt(Pd,e))}function*$F(e,t){const n=yield Te(G.episode.id),{result:r}=yield e.put(`transcripts/${n}`,{asset:1});r&&(yield Dt(Pd,e))}function*CF(e,t){const n=yield Te(G.episode.id);yield e.post(`transcripts/voices/${n}`,{voice:t.payload.voice,contributor_id:t.payload.contributor})}function*TF(e){const t=yield Te(G.episode.id),{result:n}=yield e.delete(`transcripts/${t}`);n&&(yield Dt(Pd,e))}function OF(){return function*(){yield xo(GE,EF)}}function*AF(){const e=yield Go();yield Dt(kF,e),yield Dt(RF,e),yield Dt(LF,e),yield Dt(IF,e),yield Xe(VE,NF,e),yield Gx(3e3,[sv,iv,lv,av,uv],PF,e)}function*IF(e){const t=yield Te(G.episode.id);if(!t)return;const{result:n}=yield e.get(`episodes/${t}/contributions`);!n||(yield Ie(WE({contributions:Y.exports.get(n,["contribution"],[])})))}function*PF(e){const t=yield Te(G.episode.id);if(!t)return;const n=yield Te(G.contributors.roles),r=yield Te(G.contributors.groups);let s=(yield Te(G.episode.contributions)).map(function({contributor_id:l,role_id:a,group_id:c,position:f,comment:p}){return{contributor_id:Y.exports.toInteger(l),role_id:Y.exports.toInteger(a)==0&&n.length>0?n[0].id:Y.exports.toInteger(a),group_id:Y.exports.toInteger(c)==0&&r.length>0?r[0].id:Y.exports.toInteger(c),position:Y.exports.toInteger(f),comment:p||""}});yield e.put(`episodes/${t}/contributions`,{contributors:s})}function*kF(e){const{result:t}=yield e.get("contributors",{query:{filter:"all"}});!t||(yield Ie(kD(Y.exports.get(t,"contributors",[]))))}function*RF(e){const{result:t}=yield e.get("contributors/roles");!t||(yield Ie(RD(Y.exports.get(t,"roles",[]))))}function*LF(e){const{result:t}=yield e.get("contributors/groups");!t||(yield Ie(LD(Y.exports.get(t,"groups",[]))))}function*NF(e,t){const{result:n,error:r}=yield e.post("contributors",{});if(r)return;const o=n==null?void 0:n.id,s=Y.exports.get(t,["payload"]),{error:l}=yield e.put(`contributors/${o}`,{realname:s});if(l)return;const a={id:o,realname:s};yield Ie(ND(a)),yield Ie(zE(a))}function MF(){return function*(){yield xo(ex,AF)}}const ji=Y.exports.get(window,["wp","data"],null),Qx=Y.exports.get(window,["wp","media"],null),Qi=document.querySelector('input[name="post_title"]'),DF=e=>Qi==null?void 0:Qi.addEventListener("change",t=>e(Y.exports.get(t,["target","value"])));function*FF(){const e=yield Te(G.settings.autoGenerateEpisodeTitle);typeof(ji==null?void 0:ji.subscribe)!="undefined"&&(yield Xe(yield Zn(xh,ji==null?void 0:ji.subscribe),BF)),Qi&&(yield Xe(yield Zn(xh,DF),e2)),e&&(yield Xe(Td,m1),yield Xe(Ys,m1)),Qx&&(yield Xe(qE,UF))}function*BF(){yield Ie(KE({prop:"title",value:ji.select("core/editor").getEditedPostAttribute("title")}))}function*e2(e){yield Ie(KE({prop:"title",value:e}))}function*m1(){if(!Qi)return;const e=yield Te(G.settings.blogTitleTemplate);if(!e)return;const t=yield Te(G.episode.title),n=yield Te(G.episode.number),r=yield Te(G.podcast.mnemonic),o=yield Te(G.settings.episodeNumberPadding),s=e.replace("%mnemonic%",r||"").replace("%episode_number%",(n||"").padStart(o||0,"0")).replace("%season_number%","").replace("%episode_title%",t||"");Qi.value!=s&&(Qi.value=s,yield e2(s))}function*UF(e){const t=Y.exports.get(e,["payload","onSuccess"]);if(!t){console.warn("Missing successAction");return}const n=Qx({title:"Select or Upload Media Of Your Chosen Persuasion",button:{text:"Use this media"},multiple:!1}),r=new Promise(o=>{n.on("select",()=>{const{url:s}=n.state().get("selection").first().toJSON();o(s)})});n.open();try{const o=yield r;yield Ie({...t,payload:o})}finally{}}function jF(){return function*(){yield xo(Eo,FF)}}let Bl={};function*HF(){const e=yield Go();yield Dt(WF,e),yield Xe(Ys,zF),yield Eh(1e3,Ys,v1,e),yield Eh(50,FE,v1,e),yield Xe(BE,qF),yield Xe(HE,KF),yield Xe(jE,GF),yield Xe(Td,VF)}function*VF(){const e=yield Te(G.episode.auphonicWebhookConfig);e&&(yield Ie(Ax(e.enabled)))}function*WF(e){const t=yield Te(G.episode.id),{result:n}=yield e.get(`episodes/${t}`);n&&(n.slug===null&&(yield Ie(_7())),yield Ie(WE(n)))}function zF(e){const t=Y.exports.get(e,["payload","prop"]),n=Y.exports.get(e,["payload","value"],null);!t||(Bl[t]=n)}function*v1(e,t){const n=yield Te(G.episode.id);Y.exports.isEmpty(Bl)||(yield e.put(`episodes/${n}`,Bl,{query:{skip_validation:"1"}}),yield Ie(mD(Bl)),Bl={})}function*qF(e){Object.keys(e.payload).includes("slug")&&(yield Ie(vD()))}function*KF(){yield Ie(dv({onSuccess:{type:jE}}))}function*GF(e){yield Ie($t({prop:"episode_poster",value:Y.exports.get(e,["payload"])}))}function XF(){return function*(){yield xo(DE,HF)}}function t2(e,t){return function(){return e.apply(t,arguments)}}const{toString:JF}=Object.prototype,{getPrototypeOf:Cv}=Object,kd=(e=>t=>{const n=JF.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),so=e=>(e=e.toLowerCase(),t=>kd(t)===e),Rd=e=>t=>typeof t===e,{isArray:ul}=Array,va=Rd("undefined");function YF(e){return e!==null&&!va(e)&&e.constructor!==null&&!va(e.constructor)&&kr(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const n2=so("ArrayBuffer");function ZF(e){let t;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&n2(e.buffer),t}const QF=Rd("string"),kr=Rd("function"),r2=Rd("number"),Ld=e=>e!==null&&typeof e=="object",e8=e=>e===!0||e===!1,uc=e=>{if(kd(e)!=="object")return!1;const t=Cv(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},t8=so("Date"),n8=so("File"),r8=so("Blob"),o8=so("FileList"),i8=e=>Ld(e)&&kr(e.pipe),s8=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||kr(e.append)&&((t=kd(e))==="formdata"||t==="object"&&kr(e.toString)&&e.toString()==="[object FormData]"))},l8=so("URLSearchParams"),[a8,u8,c8,d8]=["ReadableStream","Request","Response","Headers"].map(so),f8=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ma(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e=="undefined")return;let r,o;if(typeof e!="object"&&(e=[e]),ul(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const s=n?Object.getOwnPropertyNames(e):Object.keys(e),l=s.length;let a;for(r=0;r<l;r++)a=s[r],t.call(null,e[a],a,e)}}function o2(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const i2=(()=>typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:global)(),s2=e=>!va(e)&&e!==i2;function $h(){const{caseless:e}=s2(this)&&this||{},t={},n=(r,o)=>{const s=e&&o2(t,o)||o;uc(t[s])&&uc(r)?t[s]=$h(t[s],r):uc(r)?t[s]=$h({},r):ul(r)?t[s]=r.slice():t[s]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&Ma(arguments[r],n);return t}const p8=(e,t,n,{allOwnKeys:r}={})=>(Ma(t,(o,s)=>{n&&kr(o)?e[s]=t2(o,n):e[s]=o},{allOwnKeys:r}),e),h8=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),m8=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},v8=(e,t,n,r)=>{let o,s,l;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)l=o[s],(!r||r(l,e,t))&&!a[l]&&(t[l]=e[l],a[l]=!0);e=n!==!1&&Cv(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},g8=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},y8=e=>{if(!e)return null;if(ul(e))return e;let t=e.length;if(!r2(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},b8=(e=>t=>e&&t instanceof e)(typeof Uint8Array!="undefined"&&Cv(Uint8Array)),_8=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const s=o.value;t.call(e,s[0],s[1])}},w8=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},S8=so("HTMLFormElement"),E8=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),g1=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),x8=so("RegExp"),l2=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Ma(n,(o,s)=>{let l;(l=t(o,s,e))!==!1&&(r[s]=l||o)}),Object.defineProperties(e,r)},$8=e=>{l2(e,(t,n)=>{if(kr(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(!!kr(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},C8=(e,t)=>{const n={},r=o=>{o.forEach(s=>{n[s]=!0})};return ul(e)?r(e):r(String(e).split(t)),n},T8=()=>{},O8=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Pp="abcdefghijklmnopqrstuvwxyz",y1="0123456789",a2={DIGIT:y1,ALPHA:Pp,ALPHA_DIGIT:Pp+Pp.toUpperCase()+y1},A8=(e=16,t=a2.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function I8(e){return!!(e&&kr(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const P8=e=>{const t=new Array(10),n=(r,o)=>{if(Ld(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const s=ul(r)?[]:{};return Ma(r,(l,a)=>{const c=n(l,o+1);!va(c)&&(s[a]=c)}),t[o]=void 0,s}}return r};return n(e,0)},k8=so("AsyncFunction"),R8=e=>e&&(Ld(e)||kr(e))&&kr(e.then)&&kr(e.catch);var ee={isArray:ul,isArrayBuffer:n2,isBuffer:YF,isFormData:s8,isArrayBufferView:ZF,isString:QF,isNumber:r2,isBoolean:e8,isObject:Ld,isPlainObject:uc,isReadableStream:a8,isRequest:u8,isResponse:c8,isHeaders:d8,isUndefined:va,isDate:t8,isFile:n8,isBlob:r8,isRegExp:x8,isFunction:kr,isStream:i8,isURLSearchParams:l8,isTypedArray:b8,isFileList:o8,forEach:Ma,merge:$h,extend:p8,trim:f8,stripBOM:h8,inherits:m8,toFlatObject:v8,kindOf:kd,kindOfTest:so,endsWith:g8,toArray:y8,forEachEntry:_8,matchAll:w8,isHTMLForm:S8,hasOwnProperty:g1,hasOwnProp:g1,reduceDescriptors:l2,freezeMethods:$8,toObjectSet:C8,toCamelCase:E8,noop:T8,toFiniteNumber:O8,findKey:o2,global:i2,isContextDefined:s2,ALPHABET:a2,generateString:A8,isSpecCompliantForm:I8,toJSONObject:P8,isAsyncFn:k8,isThenable:R8};function nt(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}ee.inherits(nt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ee.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const u2=nt.prototype,c2={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{c2[e]={value:e}});Object.defineProperties(nt,c2);Object.defineProperty(u2,"isAxiosError",{value:!0});nt.from=(e,t,n,r,o,s)=>{const l=Object.create(u2);return ee.toFlatObject(e,l,function(c){return c!==Error.prototype},a=>a!=="isAxiosError"),nt.call(l,e.message,t,n,r,o),l.cause=e,l.name=e.name,s&&Object.assign(l,s),l};var L8=null;function Ch(e){return ee.isPlainObject(e)||ee.isArray(e)}function d2(e){return ee.endsWith(e,"[]")?e.slice(0,-2):e}function b1(e,t,n){return e?e.concat(t).map(function(o,s){return o=d2(o),!n&&s?"["+o+"]":o}).join(n?".":""):t}function N8(e){return ee.isArray(e)&&!e.some(Ch)}const M8=ee.toFlatObject(ee,{},null,function(t){return/^is[A-Z]/.test(t)});function Nd(e,t,n){if(!ee.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=ee.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(w,I){return!ee.isUndefined(I[w])});const r=n.metaTokens,o=n.visitor||p,s=n.dots,l=n.indexes,c=(n.Blob||typeof Blob!="undefined"&&Blob)&&ee.isSpecCompliantForm(t);if(!ee.isFunction(o))throw new TypeError("visitor must be a function");function f(_){if(_===null)return"";if(ee.isDate(_))return _.toISOString();if(!c&&ee.isBlob(_))throw new nt("Blob is not supported. Use a Buffer instead.");return ee.isArrayBuffer(_)||ee.isTypedArray(_)?c&&typeof Blob=="function"?new Blob([_]):Buffer.from(_):_}function p(_,w,I){let O=_;if(_&&!I&&typeof _=="object"){if(ee.endsWith(w,"{}"))w=r?w:w.slice(0,-2),_=JSON.stringify(_);else if(ee.isArray(_)&&N8(_)||(ee.isFileList(_)||ee.endsWith(w,"[]"))&&(O=ee.toArray(_)))return w=d2(w),O.forEach(function(E,T){!(ee.isUndefined(E)||E===null)&&t.append(l===!0?b1([w],T,s):l===null?w:w+"[]",f(E))}),!1}return Ch(_)?!0:(t.append(b1(I,w,s),f(_)),!1)}const h=[],v=Object.assign(M8,{defaultVisitor:p,convertValue:f,isVisitable:Ch});function y(_,w){if(!ee.isUndefined(_)){if(h.indexOf(_)!==-1)throw Error("Circular reference detected in "+w.join("."));h.push(_),ee.forEach(_,function(O,S){(!(ee.isUndefined(O)||O===null)&&o.call(t,O,ee.isString(S)?S.trim():S,w,v))===!0&&y(O,w?w.concat(S):[S])}),h.pop()}}if(!ee.isObject(e))throw new TypeError("data must be an object");return y(e),t}function _1(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Tv(e,t){this._pairs=[],e&&Nd(e,this,t)}const f2=Tv.prototype;f2.append=function(t,n){this._pairs.push([t,n])};f2.toString=function(t){const n=t?function(r){return t.call(this,r,_1)}:_1;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function D8(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function p2(e,t,n){if(!t)return e;const r=n&&n.encode||D8,o=n&&n.serialize;let s;if(o?s=o(t,n):s=ee.isURLSearchParams(t)?t.toString():new Tv(t,n).toString(r),s){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class F8{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){ee.forEach(this.handlers,function(r){r!==null&&t(r)})}}var w1=F8,h2={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},B8=typeof URLSearchParams!="undefined"?URLSearchParams:Tv,U8=typeof FormData!="undefined"?FormData:null,j8=typeof Blob!="undefined"?Blob:null,H8={isBrowser:!0,classes:{URLSearchParams:B8,FormData:U8,Blob:j8},protocols:["http","https","file","blob","url","data"]};const Ov=typeof window!="undefined"&&typeof document!="undefined",V8=(e=>Ov&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator!="undefined"&&navigator.product),W8=(()=>typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),z8=Ov&&window.location.href||"http://localhost";var q8=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ov,hasStandardBrowserWebWorkerEnv:W8,hasStandardBrowserEnv:V8,origin:z8},Symbol.toStringTag,{value:"Module"})),Zr={...q8,...H8};function K8(e,t){return Nd(e,new Zr.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,s){return Zr.isNode&&ee.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function G8(e){return ee.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function X8(e){const t={},n=Object.keys(e);let r;const o=n.length;let s;for(r=0;r<o;r++)s=n[r],t[s]=e[s];return t}function m2(e){function t(n,r,o,s){let l=n[s++];if(l==="__proto__")return!0;const a=Number.isFinite(+l),c=s>=n.length;return l=!l&&ee.isArray(o)?o.length:l,c?(ee.hasOwnProp(o,l)?o[l]=[o[l],r]:o[l]=r,!a):((!o[l]||!ee.isObject(o[l]))&&(o[l]=[]),t(n,r,o[l],s)&&ee.isArray(o[l])&&(o[l]=X8(o[l])),!a)}if(ee.isFormData(e)&&ee.isFunction(e.entries)){const n={};return ee.forEachEntry(e,(r,o)=>{t(G8(r),o,n,0)}),n}return null}function J8(e,t,n){if(ee.isString(e))try{return(t||JSON.parse)(e),ee.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Av={transitional:h2,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,s=ee.isObject(t);if(s&&ee.isHTMLForm(t)&&(t=new FormData(t)),ee.isFormData(t))return o?JSON.stringify(m2(t)):t;if(ee.isArrayBuffer(t)||ee.isBuffer(t)||ee.isStream(t)||ee.isFile(t)||ee.isBlob(t)||ee.isReadableStream(t))return t;if(ee.isArrayBufferView(t))return t.buffer;if(ee.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return K8(t,this.formSerializer).toString();if((a=ee.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Nd(a?{"files[]":t}:t,c&&new c,this.formSerializer)}}return s||o?(n.setContentType("application/json",!1),J8(t)):t}],transformResponse:[function(t){const n=this.transitional||Av.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(ee.isResponse(t)||ee.isReadableStream(t))return t;if(t&&ee.isString(t)&&(r&&!this.responseType||o)){const l=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(a){if(l)throw a.name==="SyntaxError"?nt.from(a,nt.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Zr.classes.FormData,Blob:Zr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ee.forEach(["delete","get","head","post","put","patch"],e=>{Av.headers[e]={}});var Iv=Av;const Y8=ee.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var Z8=e=>{const t={};let n,r,o;return e&&e.split(` 51 51 `).forEach(function(l){o=l.indexOf(":"),n=l.substring(0,o).trim().toLowerCase(),r=l.substring(o+1).trim(),!(!n||t[n]&&Y8[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t};const S1=Symbol("internals");function Pl(e){return e&&String(e).trim().toLowerCase()}function cc(e){return e===!1||e==null?e:ee.isArray(e)?e.map(cc):String(e)}function Q8(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const eB=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function kp(e,t,n,r,o){if(ee.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!ee.isString(t)){if(ee.isString(r))return t.indexOf(r)!==-1;if(ee.isRegExp(r))return r.test(t)}}function tB(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function nB(e,t){const n=ee.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,s,l){return this[r].call(this,t,o,s,l)},configurable:!0})})}class Md{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function s(a,c,f){const p=Pl(c);if(!p)throw new Error("header name must be a non-empty string");const h=ee.findKey(o,p);(!h||o[h]===void 0||f===!0||f===void 0&&o[h]!==!1)&&(o[h||c]=cc(a))}const l=(a,c)=>ee.forEach(a,(f,p)=>s(f,p,c));if(ee.isPlainObject(t)||t instanceof this.constructor)l(t,n);else if(ee.isString(t)&&(t=t.trim())&&!eB(t))l(Z8(t),n);else if(ee.isHeaders(t))for(const[a,c]of t.entries())s(c,a,r);else t!=null&&s(n,t,r);return this}get(t,n){if(t=Pl(t),t){const r=ee.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return Q8(o);if(ee.isFunction(n))return n.call(this,o,r);if(ee.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Pl(t),t){const r=ee.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||kp(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function s(l){if(l=Pl(l),l){const a=ee.findKey(r,l);a&&(!n||kp(r,r[a],a,n))&&(delete r[a],o=!0)}}return ee.isArray(t)?t.forEach(s):s(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const s=n[r];(!t||kp(this,this[s],s,t,!0))&&(delete this[s],o=!0)}return o}normalize(t){const n=this,r={};return ee.forEach(this,(o,s)=>{const l=ee.findKey(r,s);if(l){n[l]=cc(o),delete n[s];return}const a=t?tB(s):String(s).trim();a!==s&&delete n[s],n[a]=cc(o),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return ee.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&ee.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` 52 52 `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[S1]=this[S1]={accessors:{}}).accessors,o=this.prototype;function s(l){const a=Pl(l);r[a]||(nB(o,l),r[a]=!0)}return ee.isArray(t)?t.forEach(s):s(t),this}}Md.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ee.reduceDescriptors(Md.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});ee.freezeMethods(Md);var Qr=Md;function Rp(e,t){const n=this||Iv,r=t||n,o=Qr.from(r.headers);let s=r.data;return ee.forEach(e,function(a){s=a.call(n,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}function v2(e){return!!(e&&e.__CANCEL__)}function cl(e,t,n){nt.call(this,e==null?"canceled":e,nt.ERR_CANCELED,t,n),this.name="CanceledError"}ee.inherits(cl,nt,{__CANCEL__:!0});function g2(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new nt("Request failed with status code "+n.status,[nt.ERR_BAD_REQUEST,nt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function rB(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function oB(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,s=0,l;return t=t!==void 0?t:1e3,function(c){const f=Date.now(),p=r[s];l||(l=f),n[o]=c,r[o]=f;let h=s,v=0;for(;h!==o;)v+=n[h++],h=h%e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),f-l<t)return;const y=p&&f-p;return y?Math.round(v*1e3/y):void 0}}function iB(e,t){let n=0;const r=1e3/t;let o=null;return function(){const l=this===!0,a=Date.now();if(l||a-n>r)return o&&(clearTimeout(o),o=null),n=a,e.apply(null,arguments);o||(o=setTimeout(()=>(o=null,n=Date.now(),e.apply(null,arguments)),r-(a-n)))}}var Vc=(e,t,n=3)=>{let r=0;const o=oB(50,250);return iB(s=>{const l=s.loaded,a=s.lengthComputable?s.total:void 0,c=l-r,f=o(c),p=l<=a;r=l;const h={loaded:l,total:a,progress:a?l/a:void 0,bytes:c,rate:f||void 0,estimated:f&&a&&p?(a-l)/f:void 0,event:s,lengthComputable:a!=null};h[t?"download":"upload"]=!0,e(h)},n)},sB=Zr.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(s){let l=s;return t&&(n.setAttribute("href",l),l=n.href),n.setAttribute("href",l),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(l){const a=ee.isString(l)?o(l):l;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}(),lB=Zr.hasStandardBrowserEnv?{write(e,t,n,r,o,s){const l=[e+"="+encodeURIComponent(t)];ee.isNumber(n)&&l.push("expires="+new Date(n).toGMTString()),ee.isString(r)&&l.push("path="+r),ee.isString(o)&&l.push("domain="+o),s===!0&&l.push("secure"),document.cookie=l.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function aB(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function uB(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function y2(e,t){return e&&!aB(t)?uB(e,t):t}const E1=e=>e instanceof Qr?{...e}:e;function ls(e,t){t=t||{};const n={};function r(f,p,h){return ee.isPlainObject(f)&&ee.isPlainObject(p)?ee.merge.call({caseless:h},f,p):ee.isPlainObject(p)?ee.merge({},p):ee.isArray(p)?p.slice():p}function o(f,p,h){if(ee.isUndefined(p)){if(!ee.isUndefined(f))return r(void 0,f,h)}else return r(f,p,h)}function s(f,p){if(!ee.isUndefined(p))return r(void 0,p)}function l(f,p){if(ee.isUndefined(p)){if(!ee.isUndefined(f))return r(void 0,f)}else return r(void 0,p)}function a(f,p,h){if(h in t)return r(f,p);if(h in e)return r(void 0,f)}const c={url:s,method:s,data:s,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:a,headers:(f,p)=>o(E1(f),E1(p),!0)};return ee.forEach(Object.keys(Object.assign({},e,t)),function(p){const h=c[p]||o,v=h(e[p],t[p],p);ee.isUndefined(v)&&h!==a||(n[p]=v)}),n}var b2=e=>{const t=ls({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:s,headers:l,auth:a}=t;t.headers=l=Qr.from(l),t.url=p2(y2(t.baseURL,t.url),e.params,e.paramsSerializer),a&&l.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let c;if(ee.isFormData(n)){if(Zr.hasStandardBrowserEnv||Zr.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else if((c=l.getContentType())!==!1){const[f,...p]=c?c.split(";").map(h=>h.trim()).filter(Boolean):[];l.setContentType([f||"multipart/form-data",...p].join("; "))}}if(Zr.hasStandardBrowserEnv&&(r&&ee.isFunction(r)&&(r=r(t)),r||r!==!1&&sB(t.url))){const f=o&&s&&lB.read(s);f&&l.set(o,f)}return t};const cB=typeof XMLHttpRequest!="undefined";var dB=cB&&function(e){return new Promise(function(n,r){const o=b2(e);let s=o.data;const l=Qr.from(o.headers).normalize();let{responseType:a}=o,c;function f(){o.cancelToken&&o.cancelToken.unsubscribe(c),o.signal&&o.signal.removeEventListener("abort",c)}let p=new XMLHttpRequest;p.open(o.method.toUpperCase(),o.url,!0),p.timeout=o.timeout;function h(){if(!p)return;const y=Qr.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),w={data:!a||a==="text"||a==="json"?p.responseText:p.response,status:p.status,statusText:p.statusText,headers:y,config:e,request:p};g2(function(O){n(O),f()},function(O){r(O),f()},w),p=null}"onloadend"in p?p.onloadend=h:p.onreadystatechange=function(){!p||p.readyState!==4||p.status===0&&!(p.responseURL&&p.responseURL.indexOf("file:")===0)||setTimeout(h)},p.onabort=function(){!p||(r(new nt("Request aborted",nt.ECONNABORTED,o,p)),p=null)},p.onerror=function(){r(new nt("Network Error",nt.ERR_NETWORK,o,p)),p=null},p.ontimeout=function(){let _=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const w=o.transitional||h2;o.timeoutErrorMessage&&(_=o.timeoutErrorMessage),r(new nt(_,w.clarifyTimeoutError?nt.ETIMEDOUT:nt.ECONNABORTED,o,p)),p=null},s===void 0&&l.setContentType(null),"setRequestHeader"in p&&ee.forEach(l.toJSON(),function(_,w){p.setRequestHeader(w,_)}),ee.isUndefined(o.withCredentials)||(p.withCredentials=!!o.withCredentials),a&&a!=="json"&&(p.responseType=o.responseType),typeof o.onDownloadProgress=="function"&&p.addEventListener("progress",Vc(o.onDownloadProgress,!0)),typeof o.onUploadProgress=="function"&&p.upload&&p.upload.addEventListener("progress",Vc(o.onUploadProgress)),(o.cancelToken||o.signal)&&(c=y=>{!p||(r(!y||y.type?new cl(null,e,p):y),p.abort(),p=null)},o.cancelToken&&o.cancelToken.subscribe(c),o.signal&&(o.signal.aborted?c():o.signal.addEventListener("abort",c)));const v=rB(o.url);if(v&&Zr.protocols.indexOf(v)===-1){r(new nt("Unsupported protocol "+v+":",nt.ERR_BAD_REQUEST,e));return}p.send(s||null)})};const fB=(e,t)=>{let n=new AbortController,r;const o=function(c){if(!r){r=!0,l();const f=c instanceof Error?c:this.reason;n.abort(f instanceof nt?f:new cl(f instanceof Error?f.message:f))}};let s=t&&setTimeout(()=>{o(new nt(`timeout ${t} of ms exceeded`,nt.ETIMEDOUT))},t);const l=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(c=>{c&&(c.removeEventListener?c.removeEventListener("abort",o):c.unsubscribe(o))}),e=null)};e.forEach(c=>c&&c.addEventListener&&c.addEventListener("abort",o));const{signal:a}=n;return a.unsubscribe=l,[a,()=>{s&&clearTimeout(s),s=null}]};var pB=fB;const hB=function*(e,t){let n=e.byteLength;if(!t||n<t){yield e;return}let r=0,o;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},mB=async function*(e,t,n){for await(const r of e)yield*hB(ArrayBuffer.isView(r)?r:await n(String(r)),t)},x1=(e,t,n,r,o)=>{const s=mB(e,t,o);let l=0;return new ReadableStream({type:"bytes",async pull(a){const{done:c,value:f}=await s.next();if(c){a.close(),r();return}let p=f.byteLength;n&&n(l+=p),a.enqueue(new Uint8Array(f))},cancel(a){return r(a),s.return()}},{highWaterMark:2})},$1=(e,t)=>{const n=e!=null;return r=>setTimeout(()=>t({lengthComputable:n,total:e,loaded:r}))},Dd=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",_2=Dd&&typeof ReadableStream=="function",Th=Dd&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),vB=_2&&(()=>{let e=!1;const t=new Request(Zr.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})(),C1=64*1024,Oh=_2&&!!(()=>{try{return ee.isReadableStream(new Response("").body)}catch{}})(),Wc={stream:Oh&&(e=>e.body)};Dd&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Wc[t]&&(Wc[t]=ee.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new nt(`Response type '${t}' is not supported`,nt.ERR_NOT_SUPPORT,r)})})})(new Response);const gB=async e=>{if(e==null)return 0;if(ee.isBlob(e))return e.size;if(ee.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(ee.isArrayBufferView(e))return e.byteLength;if(ee.isURLSearchParams(e)&&(e=e+""),ee.isString(e))return(await Th(e)).byteLength},yB=async(e,t)=>{const n=ee.toFiniteNumber(e.getContentLength());return n==null?gB(t):n};var bB=Dd&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:s,timeout:l,onDownloadProgress:a,onUploadProgress:c,responseType:f,headers:p,withCredentials:h="same-origin",fetchOptions:v}=b2(e);f=f?(f+"").toLowerCase():"text";let[y,_]=o||s||l?pB([o,s],l):[],w,I;const O=()=>{!w&&setTimeout(()=>{y&&y.unsubscribe()}),w=!0};let S;try{if(c&&vB&&n!=="get"&&n!=="head"&&(S=await yB(p,r))!==0){let P=new Request(t,{method:"POST",body:r,duplex:"half"}),k;ee.isFormData(r)&&(k=P.headers.get("content-type"))&&p.setContentType(k),P.body&&(r=x1(P.body,C1,$1(S,Vc(c)),null,Th))}ee.isString(h)||(h=h?"cors":"omit"),I=new Request(t,{...v,signal:y,method:n.toUpperCase(),headers:p.normalize().toJSON(),body:r,duplex:"half",withCredentials:h});let E=await fetch(I);const T=Oh&&(f==="stream"||f==="response");if(Oh&&(a||T)){const P={};["status","statusText","headers"].forEach(A=>{P[A]=E[A]});const k=ee.toFiniteNumber(E.headers.get("content-length"));E=new Response(x1(E.body,C1,a&&$1(k,Vc(a,!0)),T&&O,Th),P)}f=f||"text";let $=await Wc[ee.findKey(Wc,f)||"text"](E,e);return!T&&O(),_&&_(),await new Promise((P,k)=>{g2(P,k,{data:$,headers:Qr.from(E.headers),status:E.status,statusText:E.statusText,config:e,request:I})})}catch(E){throw O(),E&&E.name==="TypeError"&&/fetch/i.test(E.message)?Object.assign(new nt("Network Error",nt.ERR_NETWORK,e,I),{cause:E.cause||E}):nt.from(E,E&&E.code,e,I)}});const Ah={http:L8,xhr:dB,fetch:bB};ee.forEach(Ah,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const T1=e=>`- ${e}`,_B=e=>ee.isFunction(e)||e===null||e===!1;var w2={getAdapter:e=>{e=ee.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let s=0;s<t;s++){n=e[s];let l;if(r=n,!_B(n)&&(r=Ah[(l=String(n)).toLowerCase()],r===void 0))throw new nt(`Unknown adapter '${l}'`);if(r)break;o[l||"#"+s]=r}if(!r){const s=Object.entries(o).map(([a,c])=>`adapter ${a} `+(c===!1?"is not supported by the environment":"is not available in the build"));let l=t?s.length>1?`since : 53 53 `+s.map(T1).join(` 54 54 `):" "+T1(s[0]):"as no adapter specified";throw new nt("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return r},adapters:Ah};function Lp(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new cl(null,e)}function O1(e){return Lp(e),e.headers=Qr.from(e.headers),e.data=Rp.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),w2.getAdapter(e.adapter||Iv.adapter)(e).then(function(r){return Lp(e),r.data=Rp.call(e,e.transformResponse,r),r.headers=Qr.from(r.headers),r},function(r){return v2(r)||(Lp(e),r&&r.response&&(r.response.data=Rp.call(e,e.transformResponse,r.response),r.response.headers=Qr.from(r.response.headers))),Promise.reject(r)})}const S2="1.7.2",Pv={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Pv[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const A1={};Pv.transitional=function(t,n,r){function o(s,l){return"[Axios v"+S2+"] Transitional option '"+s+"'"+l+(r?". "+r:"")}return(s,l,a)=>{if(t===!1)throw new nt(o(l," has been removed"+(n?" in "+n:"")),nt.ERR_DEPRECATED);return n&&!A1[l]&&(A1[l]=!0,console.warn(o(l," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(s,l,a):!0}};function wB(e,t,n){if(typeof e!="object")throw new nt("options must be an object",nt.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const s=r[o],l=t[s];if(l){const a=e[s],c=a===void 0||l(a,s,e);if(c!==!0)throw new nt("option "+s+" must be "+c,nt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new nt("Unknown option "+s,nt.ERR_BAD_OPTION)}}var Ih={assertOptions:wB,validators:Pv};const li=Ih.validators;class zc{constructor(t){this.defaults=t,this.interceptors={request:new w1,response:new w1}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const s=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?s&&!String(r.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(r.stack+=` 55 `+s):r.stack=s}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=ls(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:s}=n;r!==void 0&&Ih.assertOptions(r,{silentJSONParsing:li.transitional(li.boolean),forcedJSONParsing:li.transitional(li.boolean),clarifyTimeoutError:li.transitional(li.boolean)},!1),o!=null&&(ee.isFunction(o)?n.paramsSerializer={serialize:o}:Ih.assertOptions(o,{encode:li.function,serialize:li.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l=s&&ee.merge(s.common,s[n.method]);s&&ee.forEach(["delete","get","head","post","put","patch","common"],_=>{delete s[_]}),n.headers=Qr.concat(l,s);const a=[];let c=!0;this.interceptors.request.forEach(function(w){typeof w.runWhen=="function"&&w.runWhen(n)===!1||(c=c&&w.synchronous,a.unshift(w.fulfilled,w.rejected))});const f=[];this.interceptors.response.forEach(function(w){f.push(w.fulfilled,w.rejected)});let p,h=0,v;if(!c){const _=[O1.bind(this),void 0];for(_.unshift.apply(_,a),_.push.apply(_,f),v=_.length,p=Promise.resolve(n);h<v;)p=p.then(_[h++],_[h++]);return p}v=a.length;let y=n;for(h=0;h<v;){const _=a[h++],w=a[h++];try{y=_(y)}catch(I){w.call(this,I);break}}try{p=O1.call(this,y)}catch(_){return Promise.reject(_)}for(h=0,v=f.length;h<v;)p=p.then(f[h++],f[h++]);return p}getUri(t){t=ls(this.defaults,t);const n=y2(t.baseURL,t.url);return p2(n,t.params,t.paramsSerializer)}}ee.forEach(["delete","get","head","options"],function(t){zc.prototype[t]=function(n,r){return this.request(ls(r||{},{method:t,url:n,data:(r||{}).data}))}});ee.forEach(["post","put","patch"],function(t){function n(r){return function(s,l,a){return this.request(ls(a||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:l}))}}zc.prototype[t]=n(),zc.prototype[t+"Form"]=n(!0)});var dc=zc;class kv{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const r=this;this.promise.then(o=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](o);r._listeners=null}),this.promise.then=o=>{let s;const l=new Promise(a=>{r.subscribe(a),s=a}).then(o);return l.cancel=function(){r.unsubscribe(s)},l},t(function(s,l,a){r.reason||(r.reason=new cl(s,l,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new kv(function(o){t=o}),cancel:t}}}var SB=kv;function EB(e){return function(n){return e.apply(null,n)}}function xB(e){return ee.isObject(e)&&e.isAxiosError===!0}const Ph={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ph).forEach(([e,t])=>{Ph[t]=e});var $B=Ph;function E2(e){const t=new dc(e),n=t2(dc.prototype.request,t);return ee.extend(n,dc.prototype,t,{allOwnKeys:!0}),ee.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return E2(ls(e,o))},n}const sn=E2(Iv);sn.Axios=dc;sn.CanceledError=cl;sn.CancelToken=SB;sn.isCancel=v2;sn.VERSION=S2;sn.toFormData=Nd;sn.AxiosError=nt;sn.Cancel=sn.CanceledError;sn.all=function(t){return Promise.all(t)};sn.spread=EB;sn.isAxiosError=xB;sn.mergeConfig=ls;sn.AxiosHeaders=Qr;sn.formToJSON=e=>m2(ee.isHTMLForm(e)?new FormData(e):e);sn.getAdapter=w2.getAdapter;sn.HttpStatusCode=$B;sn.default=sn;var CB=sn;const Rv=({bearer:e},t={})=>({"Content-Type":"application/json",Accept:"application/json",...x2({bearer:e}),...t}),x2=({bearer:e})=>({...e?{Authorization:`Bearer ${e}`}:{}}),TB=({errorHandler:e,bearer:t,method:n,urlProcessor:r})=>(o,{headers:s,query:l}={})=>fetch(al(r?r(o):o,l),{method:n,headers:Rv({bearer:t},s)}).then(Na(e)),OB=({errorHandler:e,bearer:t,method:n,urlProcessor:r})=>(o,s,{headers:l,query:a}={})=>fetch(al(r?r(o):o,a),{method:n,headers:Rv({bearer:t},l),body:JSON.stringify(s)}).then(Na(e)),AB=({errorHandler:e,bearer:t,method:n,urlProcessor:r})=>(o,s,{headers:l,query:a}={})=>fetch(al(r?r(o):o,a),{method:n,headers:Rv({bearer:t},l),body:JSON.stringify(s)}).then(Na(e)),IB=({errorHandler:e,bearer:t,urlProcessor:n})=>(r,o,{query:s}={})=>{const l=new FormData;if(o.file){const a=o.track_id||"input_file";l.append(a,o.file)}return o.image&&l.append("image",o.image),CB.post(al(n?n(r):r,s),l,{headers:{...x2({bearer:t})},onUploadProgress:a=>console.log("progress",a)})},PB=Y.exports.curry(({base:e,bearer:t,errorHandler:n})=>({get:TB({bearer:t,method:"GET",errorHandler:n,urlProcessor:r=>`${e}/${r}`}),post:OB({bearer:t,errorHandler:n,method:"POST",urlProcessor:r=>`${e}/${r}`}),delete:AB({bearer:t,errorHandler:n,method:"DELETE",urlProcessor:r=>`${e}/${r}`}),upload:IB({bearer:t,errorHandler:n,urlProcessor:r=>`${e}/${r}`})}));function*kB(){const e="https://auphonic.com/api",t=yield Te(G.auphonic.token);return PB({base:e,bearer:t,errorHandler:function(r){Fd.dispatch($v({type:"error",message:`Auphonic: ${r.error_message}`}))}})}let Gu;const RB=new Uint8Array(16);function LB(){if(!Gu&&(Gu=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Gu))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Gu(RB)}const wn=[];for(let e=0;e<256;++e)wn.push((e+256).toString(16).slice(1));function NB(e,t=0){return wn[e[t+0]]+wn[e[t+1]]+wn[e[t+2]]+wn[e[t+3]]+"-"+wn[e[t+4]]+wn[e[t+5]]+"-"+wn[e[t+6]]+wn[e[t+7]]+"-"+wn[e[t+8]]+wn[e[t+9]]+"-"+wn[e[t+10]]+wn[e[t+11]]+wn[e[t+12]]+wn[e[t+13]]+wn[e[t+14]]+wn[e[t+15]]}const MB=typeof crypto!="undefined"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);var I1={randomUUID:MB};function DB(e,t,n){if(I1.randomUUID&&!t&&!e)return I1.randomUUID();e=e||{};const r=e.random||(e.rng||LB)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(let o=0;o<16;++o)t[n+o]=r[o];return t}return NB(r)}function*FB(){const e=yield Go();yield Dt(BB,e),yield Ge(gv,t9),yield Ge(mv,e9)}function*BB(e){const{result:t}=yield e.get("auphonic/token");t&&(yield Ie(ZD(t)),yield Dt(UB),yield Ge(Bc,r9,e),yield Ge(yv,n9,e),yield Ge(Bc,o9,e),yield Ge(hv,i9,e),yield Ge(vv,l9))}function*UB(){const e=yield kB(),{result:{data:t}}=yield e.get("presets.json"),{result:{data:n}}=yield e.get("productions.json",{limit:10,minimal_data:!0});let{result:{data:r}}=yield e.get("services.json");yield Ie(Ex(n)),yield Ie(t7(t)),yield Ie(n7([{uuid:"url",display_name:"From URL",email:"",incoming:!0,outgoing:!1,type:"url"},{uuid:"file",display_name:"Upload from computer",email:"",incoming:!0,outgoing:!1,type:"file"},...r])),yield Zn(s9),yield Zn(a9),yield Ie(YD()),yield Ge(fx,ZB,e),yield Ge(px,QB,e),yield Ge($x,YB,e),yield Ge(xx,C2,e),yield Ge(wh,WB,e),yield Ge(Sx,HB,e),yield Ge(Tx,VB,e),yield Ge(wh,function*(){yield Ie(i7())}),yield Zn(jB,e)}function*jB(e){for(yield bh([Zn(P1,e),go(_h)]);;)yield go(bx),yield bh([Zn(P1,e),go(_h)])}function*P1(e){for(;;){let t=yield Te(G.auphonic.productionId);t||(yield Ie(u1()));let{result:{data:n}}=yield e.get(`production/${t}.json`);yield Ie(ds(n)),n.status==3&&(yield Ie($t({prop:"slug",value:n.output_basename}))),[0,1,4,5,6,7,8,12,13,14].includes(n.status)||(yield Ie(u1())),yield qm(2500)}}function*HB(e){const{result:{data:t}}=yield e.get("productions.json",{limit:10,minimal_data:!0});yield Ie(Ex(t))}function*VB(e,t){let n=yield Te(G.auphonic.productionId);yield e.delete(`production/${n}/multi_input_files/${t.payload}.json`)}function*WB(e,t){const n=t.payload.uuid;yield Zn(C2,e,{type:hx,payload:{uuid:n}});const r=yield Te(G.episode.auphonicWebhookConfig),o=yield Te(G.auphonic.publishWhenDone),s=yield Te(G.runtime.baseUrl),l=yield Te(G.post.id),a=s+"/?podlove-auphonic-production="+l+"&authkey="+(r==null?void 0:r.authkey),c={webhook:r&&o?a:""};yield e.post(`production/${n}.json`,c);const f=yield e.post(`production/${n}/start.json`,{});f.result?yield Ie(ds(f.result.data)):console.warn(f.error.error_message)}function*zB(e,t,n){var a;let r=n.payload;const o=r.id,s=r.id_new,l=!!((a=n.upload)!=null&&a.file);switch(delete r.id_new,r.id=s,n.state){case"edited":yield e.post(`production/${t}/multi_input_files/${o}.json`,r),l&&(yield e.upload(`production/${t}/upload.json`,n.upload));break;case"new":yield e.post(`production/${t}.json`,{multi_input_files:[n.payload]}),l&&(yield e.upload(`production/${t}/upload.json`,n.upload));break}}const $2=e=>{if(!e)return{};switch(e.currentServiceSelection){case"url":return{service:"url",value:e.urlValue};case"file":return{service:"file",value:e.fileValue};default:return{service:e.currentServiceSelection,value:e.fileSelection}}};function qB(e){const t=Y.exports.get(e,["auphonic","file_selections"]),n=Y.exports.get(e,["auphonic","production","uuid"],"");return $2(Y.exports.get(t,n))}function KB(e){const t=Y.exports.get(e,["auphonic","file_selections"]),n=Y.exports.get(e,["auphonic","production","uuid"],"");return Y.exports.get(e,["auphonic","tracks"],[]).reduce((o,s,l)=>(o.push($2(Y.exports.get(t,`${n}_t${l}`))),o),[])}function GB(e){const t=Y.exports.get(e,["auphonic","production","is_multitrack"],!1),n=Y.exports.get(e,["auphonic","tracks"],[]);if(!t)return[];const r=KB(e);return n.map((o,s)=>{const l=o.save_state;if(l=="unchanged")return{};let a={},c={};return r[s].service=="url"?c={input_file:r[s].value}:r[s].service=="file"?a={track_id:o.identifier_new,file:r[s].value}:c={service:r[s].service,input_file:r[s].value},{state:l,upload:a,payload:{type:"multitrack",id:o.identifier,id_new:o.identifier_new,...c,algorithms:{denoise:o.noise_and_hum_reduction,filtering:o.filtering,backforeground:o.fore_background}}}}).filter(o=>Object.keys(o).length>0)}function XB(e){let t=Y.exports.get(e,["auphonic","productionPayload"],{});const{output_files:n,...r}=t,o=e.episode.poster||e.podcast.poster,s=e.episode.slug?{output_basename:e.episode.slug}:{};return{...r,...s,image:o,metadata:{...r.metadata,title:e.episode.title||e.post.title,subtitle:e.episode.subtitle,summary:e.episode.summary,artist:e.podcast.author_name,album:e.podcast.title,url:e.podcast.link,track:e.episode.number},chapters:e.chapters.chapters.map(l=>({title:l.title,url:l.href,start:new Nt(l.start).pretty}))}}function JB(e){const t=Y.exports.get(e,["auphonic","production","is_multitrack"],!1),n=XB(e);let r={};if(!t){const o=qB(e);o.service=="url"?r={input_file:o.value}:o.service=="file"?r={input_file:o.value}:r={service:o.service,input_file:o.value}}return{...n,...r}}function*C2(e,t){yield Ie(s7());const n=t.payload.uuid,r=yield Te(JB),o=yield Te(GB);yield e.delete(`production/${n}/chapters.json`),yield pE(o.map(c=>Zn(zB,e,n,c)));const s=r.input_file;typeof s=="object"&&(yield e.upload(`production/${n}/upload.json`,{file:s}),delete r.input_file);const l=r.image;fetch(l).then(c=>c.blob()).then(c=>{const f=c.type.includes("png")?"png":"jpg",p="image."+f,h=new File([c],p,{type:c.type});e.upload(`production/${n}/upload.json`,{image:h})}),delete r.image;const{result:{data:a}}=yield e.post(`production/${n}.json`,r);yield Ie(ds(a)),yield Ie(l7())}function*YB(e,t){const n=t.payload;if(n=="file"||n=="url")return;const{result:r}=yield e.get(`service/${n}/ls.json`);yield Ie(r7({uuid:n,files:r.data}))}function*T2(){const e=yield Te(G.episode.title),t=yield Te(G.post.title);return e||t||"New Production"}function*ZB(e){const t=yield Te(G.auphonic.preset),n=yield T2(),{result:r}=yield e.post("productions.json",{preset:t,metadata:{title:n}}),o=r.data;yield Ie(ds(o))}function*QB(e){const t=yield Te(G.auphonic.preset),n=yield T2(),{result:r}=yield e.post("productions.json",{preset:t,metadata:{title:n},is_multitrack:!0}),o=r.data;yield Ie(ds(o))}function*e9(e){const t=yield Te(G.auphonic.currentFileSelection);(yield Te(G.auphonic.fileSelections))[t].fileSelection||(yield Ie(Cx({key:t,prop:"fileSelection",value:e.payload.files[0]})))}function*t9(e){const{prop:t,value:n}=e.payload;t==="currentServiceSelection"&&(yield Ie($x(n)))}function*n9(e){const t=yield Te(G.episode.auphonicWebhookConfig),n=yield Te(G.auphonic.publishWhenDone);!t||t.enabled==n||(yield Ie($t({prop:"auphonic_webhook_config",value:{...t,enabled:n}})))}function*r9(e){const t=yield Te(G.episode.auphonicWebhookConfig),n=yield Te(G.auphonic.publishWhenDone);if(t&&t.authkey)return;const r=DB();yield Ie($t({prop:"auphonic_webhook_config",value:{authkey:r,enabled:n||!1}}))}function*o9(e){const t=yield Te(G.episode.id),n=yield Te(G.auphonic.productionId);yield e.put(`episodes/${t}`,{auphonic_production_id:n})}function*i9(e){const t=yield Te(G.episode.id);yield e.put(`episodes/${t}`,{auphonic_production_id:""})}function*s9(){const e=yield Te(G.episode.id),t=yield Te(G.episode.auphonicProductionId),n=yield Te(G.auphonic.productionId),r=yield Te(G.auphonic.productions);if(!n&&t&&e){const o=r.find(s=>s.uuid==t);o&&(yield Ie(ds(o)))}}function*l9(){const e=yield Te(G.auphonic.preset);localStorage&&localStorage.setItem("podlove-auphonic-preset",e)}function*a9(){let e=null;localStorage&&(e=localStorage.getItem("podlove-auphonic-preset"),e&&(yield Ie(bv(e))))}function u9(){return function*(){yield xo(lx,FB)}}function*c9(){const e=yield Go();yield Dt(d9,e)}function*d9(e){const t=yield Te(G.episode.id);yield Te(G.episode.slug);const{result:{results:n}}=yield e.get(`episodes/${t}/media`);n&&(yield Ie(m7(n))),yield Ge(Uc,m9,e),yield Ge(jc,v9,e),yield Ge(Rx,b9,e),yield z7(UE,g9,e),yield Eh(2e3,cv,y9,e),yield Gx(2e3,[Uc,jc,_v],h9,e),yield Ge(Lx,f9),yield Ge(wv,p9),yield Ie(h7())}function*f9(){yield Ie(dv({onSuccess:{type:wv}}))}function*p9(e){const n=Y.exports.get(e,["payload"]).split("\\").pop().split("/").pop().split(".").shift();yield Ie($t({prop:"slug",value:n})),yield Ie(uD())}function*h9(e){const t=yield Te(G.mediafiles.files),n=yield Te(G.episode.duration),o=t.filter(l=>l.enable&&l.size&&l.url).filter(l=>l.url.match(/\.(mp3|mp4|m4a|ogg|oga|opus)$/));let s;if(o.length===0)s="0";else{const l=o[0].url;s=(yield w9(l)).toString()}parseFloat(n)!==parseFloat(s)&&(yield Ie($t({prop:"duration",value:s})))}function*m9(e,t){const n=yield Te(G.episode.id),r=t.payload,{result:o}=yield e.put(`episodes/${n}/media/${r}/enable`,{}),s={asset_id:r,url:o.file_url,size:o.file_size,enable:!0};yield Ie(Sh(s))}function*v9(e,t){const n=yield Te(G.episode.id),r=t.payload;yield e.put(`episodes/${n}/media/${r}/disable`,{})}function*g9(e){const t=yield Te(G.episode.id),n=yield Te(G.mediafiles.files);yield pE(n.map(r=>Dt(O2,e,t,r.asset_id)))}function*y9(e,t){const n=yield Te(G.episode.id),r=yield Te(G.episode.slug);if((yield Te(G.mediafiles.slugAutogenerationEnabled))&&t.payload.prop=="title"&&t.payload.value){const s=t.payload.value,{result:l}=yield e.get(`episodes/${n}/build_slug`,{query:{title:s}});r!=l.slug&&(yield Ie($t({prop:"slug",value:l.slug})))}}function*O2(e,t,n){const o=(yield Te(G.mediafiles.files)).find(c=>c.asset_id==n);yield Ie(Sh({asset_id:n,is_verifying:!0}));const{result:s}=yield e.put(`episodes/${t}/media/${n}/verify`,{}),l=!(o!=null&&o.size)&&s.file_size||(o==null?void 0:o.enable),a={asset_id:n,url:s.file_url,size:s.file_size,enable:l,is_verifying:!1};yield Ie(Sh(a))}function*b9(e,t){const n=yield Te(G.episode.id),r=t.payload;yield O2(e,n,r)}async function _9(e){return new Promise(t=>e.onloadedmetadata=()=>t())}async function w9(e){var t=new Audio;return t.setAttribute("preload","metadata"),t.setAttribute("src",e),t.load(),await _9(t),t.duration}function S9(){return function*(){yield xo(Ix,c9)}}function*E9(){const e=yield Go();yield Dt(x9,e),yield Ge(Sv,$9,e)}function*x9(e){const t=yield Te(G.episode.id),[n,r]=yield Promise.all([e.get(`episodes/${t}/related?status=all`),e.get("episodes?status=all&sort_by=post_id&order_by=asc")]),o=Y.exports.get(n,["result","relatedEpisodes"],[]),s=Y.exports.get(r,["result","results"],[]),l=o.map(a=>a.related_episode_id);yield Ie(Ux(l)),yield Ie($7(s))}function*$9(e,t){const n=yield Te(G.episode.id),r=yield Te(G.relatedEpisodes.selectEpisode);yield e.post(`episodes/${n}/related`,{related:r})}function C9(){return function*(){yield xo(Fx,E9)}}function*T9(){const e=yield Go();yield Dt(O9,e)}function*O9(e){const t=yield Te(G.settings.modules),{result:n}=yield e.get("shows");T7&&(yield Ie(Hx(n)),yield Ge(Ys,I9),t.includes("automatic_numbering")&&(yield Ge(Hc,P9,e)),t.includes("auphonic")&&(yield Ge(Hc,A9,n)))}function*A9(e,t){const n=e.find(r=>r.slug===t.payload);n&&n.auphonic_preset&&(yield Ie(bv(n.auphonic_preset)))}function*I9(e){const t=Y.exports.get(e,["payload","prop"]),n=Y.exports.get(e,["payload","value"],null);t==="show"&&(yield Ie(Vx(n)))}function*P9(e,t){const{result:n}=yield e.get("shows/next_episode_number",{query:{show:t.payload}});yield Ie($t({prop:"number",value:n.toString()}))}function k9(){return function*(){yield xo(Ev,T9)}}const br=xM(),R9=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||NS,Fd=jm(U7,R9(c6(br)));br.run(q7());br.run(rF());br.run(SF());br.run(OF());br.run(MF());br.run(jF());br.run(XF());br.run(nF());br.run(u9());br.run(S9());br.run(C9());br.run(k9());var Be=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n};const L9=ve({props:{name:{type:String,default:null},title:{type:String,default:null}}}),N9={class:"bg-white font-sans sm:rounded-lg sm:shadow-md"},M9={class:"bg-white px-4 py-5 border-b border-gray-200 sm:px-6"},D9={class:"-ml-4 -mt-2 flex items-center justify-between flex-wrap sm:flex-nowrap"},F9={class:"ml-4 mt-2"},B9=["for"],U9={class:"ml-4 mt-2 flex flex-shrink-0"};function j9(e,t,n,r,o,s){return N(),V("section",N9,[g("div",M9,[g("div",D9,[g("div",F9,[g("h3",{class:"text-lg leading-6 font-medium text-gray-900",for:`podlove-module-${e.name}`},U(e.title),9,B9)]),g("div",U9,[gr(e.$slots,"actions")])])]),g("div",null,[gr(e.$slots,"default")])])}var Nn=Be(L9,[["render",j9]]);function H9(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5M16.5 12 12 16.5m0 0L7.5 12m4.5 4.5V3"})])}function A2(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 13.5 12 21m0 0-7.5-7.5M12 21V3"})])}function I2(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"})])}function P2(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M13.5 6H5.25A2.25 2.25 0 0 0 3 8.25v10.5A2.25 2.25 0 0 0 5.25 21h10.5A2.25 2.25 0 0 0 18 18.75V10.5m-10.5 6L21 3m0 0h-5.25M21 3v5.25"})])}function V9(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5m-13.5-9L12 3m0 0 4.5 4.5M12 3v13.5"})])}function W9(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4.5 10.5 12 3m0 0 7.5 7.5M12 3v18"})])}function z9(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M17.593 3.322c1.1.128 1.907 1.077 1.907 2.185V21L12 17.25 4.5 21V5.507c0-1.108.806-2.057 1.907-2.185a48.507 48.507 0 0 1 11.186 0Z"})])}function q9(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m4.5 12.75 6 6 9-13.5"})])}function k2(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"})])}function K9(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})])}function G9(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M20.25 6.375c0 2.278-3.694 4.125-8.25 4.125S3.75 8.653 3.75 6.375m16.5 0c0-2.278-3.694-4.125-8.25-4.125S3.75 4.097 3.75 6.375m16.5 0v11.25c0 2.278-3.694 4.125-8.25 4.125s-8.25-1.847-8.25-4.125V6.375m16.5 0v3.75m-16.5-3.75v3.75m16.5 0v3.75C20.25 16.153 16.556 18 12 18s-8.25-1.847-8.25-4.125v-3.75m16.5 0c0 2.278-3.694 4.125-8.25 4.125s-8.25-1.847-8.25-4.125"})])}function X9(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M11.35 3.836c-.065.21-.1.433-.1.664 0 .414.336.75.75.75h4.5a.75.75 0 0 0 .75-.75 2.25 2.25 0 0 0-.1-.664m-5.8 0A2.251 2.251 0 0 1 13.5 2.25H15c1.012 0 1.867.668 2.15 1.586m-5.8 0c-.376.023-.75.05-1.124.08C9.095 4.01 8.25 4.973 8.25 6.108V8.25m8.9-4.414c.376.023.75.05 1.124.08 1.131.094 1.976 1.057 1.976 2.192V16.5A2.25 2.25 0 0 1 18 18.75h-2.25m-7.5-10.5H4.875c-.621 0-1.125.504-1.125 1.125v11.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V18.75m-7.5-10.5h6.375c.621 0 1.125.504 1.125 1.125v9.375m-8.25-3 1.5 1.5 3-3.75"})])}function R2(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 16.5V9.75m0 0 3 3m-3-3-3 3M6.75 19.5a4.5 4.5 0 0 1-1.41-8.775 5.25 5.25 0 0 1 10.233-2.33 3 3 0 0 1 3.758 3.848A3.752 3.752 0 0 1 18 19.5H6.75Z"})])}function L2(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M2.25 15a4.5 4.5 0 0 0 4.5 4.5H18a3.75 3.75 0 0 0 1.332-7.257 3 3 0 0 0-3.758-3.848 5.25 5.25 0 0 0-10.233 2.33A4.502 4.502 0 0 0 2.25 15Z"})])}function J9(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4.5 12a7.5 7.5 0 0 0 15 0m-15 0a7.5 7.5 0 1 1 15 0m-15 0H3m16.5 0H21m-1.5 0H12m-8.457 3.077 1.41-.513m14.095-5.13 1.41-.513M5.106 17.785l1.15-.964m11.49-9.642 1.149-.964M7.501 19.795l.75-1.3m7.5-12.99.75-1.3m-6.063 16.658.26-1.477m2.605-14.772.26-1.477m0 17.726-.26-1.477M10.698 4.614l-.26-1.477M16.5 19.794l-.75-1.299M7.5 4.205 12 12m6.894 5.785-1.149-.964M6.256 7.178l-1.15-.964m15.352 8.864-1.41-.513M4.954 9.435l-1.41-.514M12.002 12l-3.75 6.495"})])}function Y9(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M10.125 2.25h-4.5c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125v-9M10.125 2.25h.375a9 9 0 0 1 9 9v.375M10.125 2.25A3.375 3.375 0 0 1 13.5 5.625v1.5c0 .621.504 1.125 1.125 1.125h1.5a3.375 3.375 0 0 1 3.375 3.375M9 15l2.25 2.25L15 12"})])}function N2(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"})])}function M2(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z"})])}function D2(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L6.832 19.82a4.5 4.5 0 0 1-1.897 1.13l-2.685.8.8-2.685a4.5 4.5 0 0 1 1.13-1.897L16.863 4.487Zm0 0L19.5 7.125"})])}function Lv(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 4.5v15m7.5-7.5h-15"})])}function Z9(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"})])}function F2(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M17.982 18.725A7.488 7.488 0 0 0 12 15.75a7.488 7.488 0 0 0-5.982 2.975m11.963 0a9 9 0 1 0-11.963 0m11.963 0A8.966 8.966 0 0 1 12 21a8.966 8.966 0 0 1-5.982-2.275M15 9.75a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})])}function Da(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18 18 6M6 6l12 12"})])}function kl(e,t,n){var s;let r=(s=n.initialDeps)!=null?s:[],o;return()=>{var l,a,c,f;let p;n.key&&((l=n.debug)==null?void 0:l.call(n))&&(p=Date.now());const h=e();if(!(h.length!==r.length||h.some((_,w)=>r[w]!==_)))return o;r=h;let y;if(n.key&&((a=n.debug)==null?void 0:a.call(n))&&(y=Date.now()),o=t(...h),n.key&&((c=n.debug)==null?void 0:c.call(n))){const _=Math.round((Date.now()-p)*100)/100,w=Math.round((Date.now()-y)*100)/100,I=w/16,O=(S,E)=>{for(S=String(S);S.length<E;)S=" "+S;return S};console.info(`%c\u23F1 ${O(w,5)} /${O(_,5)} ms`,`55 `+s):r.stack=s}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=ls(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:s}=n;r!==void 0&&Ih.assertOptions(r,{silentJSONParsing:li.transitional(li.boolean),forcedJSONParsing:li.transitional(li.boolean),clarifyTimeoutError:li.transitional(li.boolean)},!1),o!=null&&(ee.isFunction(o)?n.paramsSerializer={serialize:o}:Ih.assertOptions(o,{encode:li.function,serialize:li.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l=s&&ee.merge(s.common,s[n.method]);s&&ee.forEach(["delete","get","head","post","put","patch","common"],_=>{delete s[_]}),n.headers=Qr.concat(l,s);const a=[];let c=!0;this.interceptors.request.forEach(function(w){typeof w.runWhen=="function"&&w.runWhen(n)===!1||(c=c&&w.synchronous,a.unshift(w.fulfilled,w.rejected))});const f=[];this.interceptors.response.forEach(function(w){f.push(w.fulfilled,w.rejected)});let p,h=0,v;if(!c){const _=[O1.bind(this),void 0];for(_.unshift.apply(_,a),_.push.apply(_,f),v=_.length,p=Promise.resolve(n);h<v;)p=p.then(_[h++],_[h++]);return p}v=a.length;let y=n;for(h=0;h<v;){const _=a[h++],w=a[h++];try{y=_(y)}catch(I){w.call(this,I);break}}try{p=O1.call(this,y)}catch(_){return Promise.reject(_)}for(h=0,v=f.length;h<v;)p=p.then(f[h++],f[h++]);return p}getUri(t){t=ls(this.defaults,t);const n=y2(t.baseURL,t.url);return p2(n,t.params,t.paramsSerializer)}}ee.forEach(["delete","get","head","options"],function(t){zc.prototype[t]=function(n,r){return this.request(ls(r||{},{method:t,url:n,data:(r||{}).data}))}});ee.forEach(["post","put","patch"],function(t){function n(r){return function(s,l,a){return this.request(ls(a||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:l}))}}zc.prototype[t]=n(),zc.prototype[t+"Form"]=n(!0)});var dc=zc;class kv{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const r=this;this.promise.then(o=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](o);r._listeners=null}),this.promise.then=o=>{let s;const l=new Promise(a=>{r.subscribe(a),s=a}).then(o);return l.cancel=function(){r.unsubscribe(s)},l},t(function(s,l,a){r.reason||(r.reason=new cl(s,l,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new kv(function(o){t=o}),cancel:t}}}var SB=kv;function EB(e){return function(n){return e.apply(null,n)}}function xB(e){return ee.isObject(e)&&e.isAxiosError===!0}const Ph={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ph).forEach(([e,t])=>{Ph[t]=e});var $B=Ph;function E2(e){const t=new dc(e),n=t2(dc.prototype.request,t);return ee.extend(n,dc.prototype,t,{allOwnKeys:!0}),ee.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return E2(ls(e,o))},n}const sn=E2(Iv);sn.Axios=dc;sn.CanceledError=cl;sn.CancelToken=SB;sn.isCancel=v2;sn.VERSION=S2;sn.toFormData=Nd;sn.AxiosError=nt;sn.Cancel=sn.CanceledError;sn.all=function(t){return Promise.all(t)};sn.spread=EB;sn.isAxiosError=xB;sn.mergeConfig=ls;sn.AxiosHeaders=Qr;sn.formToJSON=e=>m2(ee.isHTMLForm(e)?new FormData(e):e);sn.getAdapter=w2.getAdapter;sn.HttpStatusCode=$B;sn.default=sn;var CB=sn;const Rv=({bearer:e},t={})=>({"Content-Type":"application/json",Accept:"application/json",...x2({bearer:e}),...t}),x2=({bearer:e})=>({...e?{Authorization:`Bearer ${e}`}:{}}),TB=({errorHandler:e,bearer:t,method:n,urlProcessor:r})=>(o,{headers:s,query:l}={})=>fetch(al(r?r(o):o,l),{method:n,headers:Rv({bearer:t},s)}).then(Na(e)),OB=({errorHandler:e,bearer:t,method:n,urlProcessor:r})=>(o,s,{headers:l,query:a}={})=>fetch(al(r?r(o):o,a),{method:n,headers:Rv({bearer:t},l),body:JSON.stringify(s)}).then(Na(e)),AB=({errorHandler:e,bearer:t,method:n,urlProcessor:r})=>(o,s,{headers:l,query:a}={})=>fetch(al(r?r(o):o,a),{method:n,headers:Rv({bearer:t},l),body:JSON.stringify(s)}).then(Na(e)),IB=({errorHandler:e,bearer:t,urlProcessor:n})=>(r,o,{query:s}={})=>{const l=new FormData;if(o.file){const a=o.track_id||"input_file";l.append(a,o.file)}return o.image&&l.append("image",o.image),CB.post(al(n?n(r):r,s),l,{headers:{...x2({bearer:t})},onUploadProgress:a=>console.log("progress",a)})},PB=Y.exports.curry(({base:e,bearer:t,errorHandler:n})=>({get:TB({bearer:t,method:"GET",errorHandler:n,urlProcessor:r=>`${e}/${r}`}),post:OB({bearer:t,errorHandler:n,method:"POST",urlProcessor:r=>`${e}/${r}`}),delete:AB({bearer:t,errorHandler:n,method:"DELETE",urlProcessor:r=>`${e}/${r}`}),upload:IB({bearer:t,errorHandler:n,urlProcessor:r=>`${e}/${r}`})}));function*kB(){const e="https://auphonic.com/api",t=yield Te(G.auphonic.token);return PB({base:e,bearer:t,errorHandler:function(r){Fd.dispatch($v({type:"error",message:`Auphonic: ${r.error_message}`}))}})}let Gu;const RB=new Uint8Array(16);function LB(){if(!Gu&&(Gu=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Gu))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Gu(RB)}const wn=[];for(let e=0;e<256;++e)wn.push((e+256).toString(16).slice(1));function NB(e,t=0){return wn[e[t+0]]+wn[e[t+1]]+wn[e[t+2]]+wn[e[t+3]]+"-"+wn[e[t+4]]+wn[e[t+5]]+"-"+wn[e[t+6]]+wn[e[t+7]]+"-"+wn[e[t+8]]+wn[e[t+9]]+"-"+wn[e[t+10]]+wn[e[t+11]]+wn[e[t+12]]+wn[e[t+13]]+wn[e[t+14]]+wn[e[t+15]]}const MB=typeof crypto!="undefined"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);var I1={randomUUID:MB};function DB(e,t,n){if(I1.randomUUID&&!t&&!e)return I1.randomUUID();e=e||{};const r=e.random||(e.rng||LB)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(let o=0;o<16;++o)t[n+o]=r[o];return t}return NB(r)}function*FB(){const e=yield Go();yield Dt(BB,e),yield Xe(gv,t9),yield Xe(mv,e9)}function*BB(e){const{result:t}=yield e.get("auphonic/token");t&&(yield Ie(ZD(t)),yield Dt(UB),yield Xe(Bc,r9,e),yield Xe(yv,n9,e),yield Xe(Bc,o9,e),yield Xe(hv,i9,e),yield Xe(vv,l9))}function*UB(){const e=yield kB(),{result:{data:t}}=yield e.get("presets.json"),{result:{data:n}}=yield e.get("productions.json",{limit:10,minimal_data:!0});let{result:{data:r}}=yield e.get("services.json");yield Ie(Ex(n)),yield Ie(t7(t)),yield Ie(n7([{uuid:"url",display_name:"From URL",email:"",incoming:!0,outgoing:!1,type:"url"},{uuid:"file",display_name:"Upload from computer",email:"",incoming:!0,outgoing:!1,type:"file"},...r])),yield Zn(s9),yield Zn(a9),yield Ie(YD()),yield Xe(fx,ZB,e),yield Xe(px,QB,e),yield Xe($x,YB,e),yield Xe(xx,C2,e),yield Xe(wh,WB,e),yield Xe(Sx,HB,e),yield Xe(Tx,VB,e),yield Xe(wh,function*(){yield Ie(i7())}),yield Zn(jB,e)}function*jB(e){for(yield bh([Zn(P1,e),go(_h)]);;)yield go(bx),yield bh([Zn(P1,e),go(_h)])}function*P1(e){for(;;){let t=yield Te(G.auphonic.productionId);t||(yield Ie(u1()));let{result:{data:n}}=yield e.get(`production/${t}.json`);yield Ie(ds(n)),n.status==3&&(yield Ie($t({prop:"slug",value:n.output_basename}))),[0,1,4,5,6,7,8,12,13,14].includes(n.status)||(yield Ie(u1())),yield qm(2500)}}function*HB(e){const{result:{data:t}}=yield e.get("productions.json",{limit:10,minimal_data:!0});yield Ie(Ex(t))}function*VB(e,t){let n=yield Te(G.auphonic.productionId);yield e.delete(`production/${n}/multi_input_files/${t.payload}.json`)}function*WB(e,t){const n=t.payload.uuid;yield Zn(C2,e,{type:hx,payload:{uuid:n}});const r=yield Te(G.episode.auphonicWebhookConfig),o=yield Te(G.auphonic.publishWhenDone),s=yield Te(G.runtime.baseUrl),l=yield Te(G.post.id),a=s+"/?podlove-auphonic-production="+l+"&authkey="+(r==null?void 0:r.authkey),c={webhook:r&&o?a:""};yield e.post(`production/${n}.json`,c);const f=yield e.post(`production/${n}/start.json`,{});f.result?yield Ie(ds(f.result.data)):console.warn(f.error.error_message)}function*zB(e,t,n){var a;let r=n.payload;const o=r.id,s=r.id_new,l=!!((a=n.upload)!=null&&a.file);switch(delete r.id_new,r.id=s,n.state){case"edited":yield e.post(`production/${t}/multi_input_files/${o}.json`,r),l&&(yield e.upload(`production/${t}/upload.json`,n.upload));break;case"new":yield e.post(`production/${t}.json`,{multi_input_files:[n.payload]}),l&&(yield e.upload(`production/${t}/upload.json`,n.upload));break}}const $2=e=>{if(!e)return{};switch(e.currentServiceSelection){case"url":return{service:"url",value:e.urlValue};case"file":return{service:"file",value:e.fileValue};default:return{service:e.currentServiceSelection,value:e.fileSelection}}};function qB(e){const t=Y.exports.get(e,["auphonic","file_selections"]),n=Y.exports.get(e,["auphonic","production","uuid"],"");return $2(Y.exports.get(t,n))}function KB(e){const t=Y.exports.get(e,["auphonic","file_selections"]),n=Y.exports.get(e,["auphonic","production","uuid"],"");return Y.exports.get(e,["auphonic","tracks"],[]).reduce((o,s,l)=>(o.push($2(Y.exports.get(t,`${n}_t${l}`))),o),[])}function GB(e){const t=Y.exports.get(e,["auphonic","production","is_multitrack"],!1),n=Y.exports.get(e,["auphonic","tracks"],[]);if(!t)return[];const r=KB(e);return n.map((o,s)=>{const l=o.save_state;if(l=="unchanged")return{};let a={},c={};return r[s].service=="url"?c={input_file:r[s].value}:r[s].service=="file"?a={track_id:o.identifier_new,file:r[s].value}:c={service:r[s].service,input_file:r[s].value},{state:l,upload:a,payload:{type:"multitrack",id:o.identifier,id_new:o.identifier_new,...c,algorithms:{denoise:o.noise_and_hum_reduction,filtering:o.filtering,backforeground:o.fore_background}}}}).filter(o=>Object.keys(o).length>0)}function XB(e){let t=Y.exports.get(e,["auphonic","productionPayload"],{});const{output_files:n,...r}=t,o=e.episode.poster||e.podcast.poster,s=e.episode.slug?{output_basename:e.episode.slug}:{};return{...r,...s,image:o,metadata:{...r.metadata,title:e.episode.title||e.post.title,subtitle:e.episode.subtitle,summary:e.episode.summary,artist:e.podcast.author_name,album:e.podcast.title,url:e.podcast.link,track:e.episode.number},chapters:e.chapters.chapters.map(l=>({title:l.title,url:l.href,start:new Nt(l.start).pretty}))}}function JB(e){const t=Y.exports.get(e,["auphonic","production","is_multitrack"],!1),n=XB(e);let r={};if(!t){const o=qB(e);o.service=="url"?r={input_file:o.value}:o.service=="file"?r={input_file:o.value}:r={service:o.service,input_file:o.value}}return{...n,...r}}function*C2(e,t){yield Ie(s7());const n=t.payload.uuid,r=yield Te(JB),o=yield Te(GB);yield e.delete(`production/${n}/chapters.json`),yield pE(o.map(c=>Zn(zB,e,n,c)));const s=r.input_file;typeof s=="object"&&(yield e.upload(`production/${n}/upload.json`,{file:s}),delete r.input_file);const l=r.image;fetch(l).then(c=>c.blob()).then(c=>{const f=c.type.includes("png")?"png":"jpg",p="image."+f,h=new File([c],p,{type:c.type});e.upload(`production/${n}/upload.json`,{image:h})}),delete r.image;const{result:{data:a}}=yield e.post(`production/${n}.json`,r);yield Ie(ds(a)),yield Ie(l7())}function*YB(e,t){const n=t.payload;if(n=="file"||n=="url")return;const{result:r}=yield e.get(`service/${n}/ls.json`);yield Ie(r7({uuid:n,files:r.data}))}function*T2(){const e=yield Te(G.episode.title),t=yield Te(G.post.title);return e||t||"New Production"}function*ZB(e){const t=yield Te(G.auphonic.preset),n=yield T2(),{result:r}=yield e.post("productions.json",{preset:t,metadata:{title:n}}),o=r.data;yield Ie(ds(o))}function*QB(e){const t=yield Te(G.auphonic.preset),n=yield T2(),{result:r}=yield e.post("productions.json",{preset:t,metadata:{title:n},is_multitrack:!0}),o=r.data;yield Ie(ds(o))}function*e9(e){const t=yield Te(G.auphonic.currentFileSelection);(yield Te(G.auphonic.fileSelections))[t].fileSelection||(yield Ie(Cx({key:t,prop:"fileSelection",value:e.payload.files[0]})))}function*t9(e){const{prop:t,value:n}=e.payload;t==="currentServiceSelection"&&(yield Ie($x(n)))}function*n9(e){const t=yield Te(G.episode.auphonicWebhookConfig),n=yield Te(G.auphonic.publishWhenDone);!t||t.enabled==n||(yield Ie($t({prop:"auphonic_webhook_config",value:{...t,enabled:n}})))}function*r9(e){const t=yield Te(G.episode.auphonicWebhookConfig),n=yield Te(G.auphonic.publishWhenDone);if(t&&t.authkey)return;const r=DB();yield Ie($t({prop:"auphonic_webhook_config",value:{authkey:r,enabled:n||!1}}))}function*o9(e){const t=yield Te(G.episode.id),n=yield Te(G.auphonic.productionId);yield e.put(`episodes/${t}`,{auphonic_production_id:n})}function*i9(e){const t=yield Te(G.episode.id);yield e.put(`episodes/${t}`,{auphonic_production_id:""})}function*s9(){const e=yield Te(G.episode.id),t=yield Te(G.episode.auphonicProductionId),n=yield Te(G.auphonic.productionId),r=yield Te(G.auphonic.productions);if(!n&&t&&e){const o=r.find(s=>s.uuid==t);o&&(yield Ie(ds(o)))}}function*l9(){const e=yield Te(G.auphonic.preset);localStorage&&localStorage.setItem("podlove-auphonic-preset",e)}function*a9(){let e=null;localStorage&&(e=localStorage.getItem("podlove-auphonic-preset"),e&&(yield Ie(bv(e))))}function u9(){return function*(){yield xo(lx,FB)}}function*c9(){const e=yield Go();yield Dt(d9,e)}function*d9(e){const t=yield Te(G.episode.id);yield Te(G.episode.slug);const{result:{results:n}}=yield e.get(`episodes/${t}/media`);n&&(yield Ie(m7(n))),yield Xe(Uc,m9,e),yield Xe(jc,v9,e),yield Xe(Rx,b9,e),yield z7(UE,g9,e),yield Eh(2e3,cv,y9,e),yield Gx(2e3,[Uc,jc,_v],h9,e),yield Xe(Lx,f9),yield Xe(wv,p9),yield Ie(h7())}function*f9(){yield Ie(dv({onSuccess:{type:wv}}))}function*p9(e){const n=Y.exports.get(e,["payload"]).split("\\").pop().split("/").pop().split(".").shift();yield Ie($t({prop:"slug",value:n})),yield Ie(uD())}function*h9(e){const t=yield Te(G.mediafiles.files),n=yield Te(G.episode.duration),o=t.filter(l=>l.enable&&l.size&&l.url).filter(l=>l.url.match(/\.(mp3|mp4|m4a|ogg|oga|opus)$/));let s;if(o.length===0)s="0";else{const l=o[0].url;s=(yield w9(l)).toString()}parseFloat(n)!==parseFloat(s)&&(yield Ie($t({prop:"duration",value:s})))}function*m9(e,t){const n=yield Te(G.episode.id),r=t.payload,{result:o}=yield e.put(`episodes/${n}/media/${r}/enable`,{}),s={asset_id:r,url:o.file_url,size:o.file_size,enable:!0};yield Ie(Sh(s))}function*v9(e,t){const n=yield Te(G.episode.id),r=t.payload;yield e.put(`episodes/${n}/media/${r}/disable`,{})}function*g9(e){const t=yield Te(G.episode.id),n=yield Te(G.mediafiles.files);yield pE(n.map(r=>Dt(O2,e,t,r.asset_id)))}function*y9(e,t){const n=yield Te(G.episode.id),r=yield Te(G.episode.slug);if((yield Te(G.mediafiles.slugAutogenerationEnabled))&&t.payload.prop=="title"&&t.payload.value){const s=t.payload.value,{result:l}=yield e.get(`episodes/${n}/build_slug`,{query:{title:s}});r!=l.slug&&(yield Ie($t({prop:"slug",value:l.slug})))}}function*O2(e,t,n){const o=(yield Te(G.mediafiles.files)).find(c=>c.asset_id==n);yield Ie(Sh({asset_id:n,is_verifying:!0}));const{result:s}=yield e.put(`episodes/${t}/media/${n}/verify`,{}),l=!(o!=null&&o.size)&&s.file_size||(o==null?void 0:o.enable),a={asset_id:n,url:s.file_url,size:s.file_size,enable:l,is_verifying:!1};yield Ie(Sh(a))}function*b9(e,t){const n=yield Te(G.episode.id),r=t.payload;yield O2(e,n,r)}async function _9(e){return new Promise(t=>e.onloadedmetadata=()=>t())}async function w9(e){var t=new Audio;return t.setAttribute("preload","metadata"),t.setAttribute("src",e),t.load(),await _9(t),t.duration}function S9(){return function*(){yield xo(Ix,c9)}}function*E9(){const e=yield Go();yield Dt(x9,e),yield Xe(Sv,$9,e)}function*x9(e){const t=yield Te(G.episode.id),[n,r]=yield Promise.all([e.get(`episodes/${t}/related?status=all`),e.get("episodes?status=all&sort_by=post_id&order_by=asc")]),o=Y.exports.get(n,["result","relatedEpisodes"],[]),s=Y.exports.get(r,["result","results"],[]),l=o.map(a=>a.related_episode_id);yield Ie(Ux(l)),yield Ie($7(s))}function*$9(e,t){const n=yield Te(G.episode.id),r=yield Te(G.relatedEpisodes.selectEpisode);yield e.post(`episodes/${n}/related`,{related:r})}function C9(){return function*(){yield xo(Fx,E9)}}function*T9(){const e=yield Go();yield Dt(O9,e)}function*O9(e){const t=yield Te(G.settings.modules),{result:n}=yield e.get("shows");T7&&(yield Ie(Hx(n)),yield Xe(Ys,I9),t.includes("automatic_numbering")&&(yield Xe(Hc,P9,e)),t.includes("auphonic")&&(yield Xe(Hc,A9,n)))}function*A9(e,t){const n=e.find(r=>r.slug===t.payload);n&&n.auphonic_preset&&(yield Ie(bv(n.auphonic_preset)))}function*I9(e){const t=Y.exports.get(e,["payload","prop"]),n=Y.exports.get(e,["payload","value"],null);t==="show"&&(yield Ie(Vx(n)))}function*P9(e,t){const{result:n}=yield e.get("shows/next_episode_number",{query:{show:t.payload}});yield Ie($t({prop:"number",value:n.toString()}))}function k9(){return function*(){yield xo(Ev,T9)}}const br=xM(),R9=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||NS,Fd=jm(U7,R9(c6(br)));br.run(q7());br.run(rF());br.run(SF());br.run(OF());br.run(MF());br.run(jF());br.run(XF());br.run(nF());br.run(u9());br.run(S9());br.run(C9());br.run(k9());var Be=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n};const L9=ve({props:{name:{type:String,default:null},title:{type:String,default:null}}}),N9={class:"bg-white font-sans sm:rounded-lg sm:shadow-md"},M9={class:"bg-white px-4 py-5 border-b border-gray-200 sm:px-6"},D9={class:"-ml-4 -mt-2 flex items-center justify-between flex-wrap sm:flex-nowrap"},F9={class:"ml-4 mt-2"},B9=["for"],U9={class:"ml-4 mt-2 flex flex-shrink-0"};function j9(e,t,n,r,o,s){return N(),V("section",N9,[g("div",M9,[g("div",D9,[g("div",F9,[g("h3",{class:"text-lg leading-6 font-medium text-gray-900",for:`podlove-module-${e.name}`},U(e.title),9,B9)]),g("div",U9,[gr(e.$slots,"actions")])])]),g("div",null,[gr(e.$slots,"default")])])}var Nn=Be(L9,[["render",j9]]);function H9(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5M16.5 12 12 16.5m0 0L7.5 12m4.5 4.5V3"})])}function A2(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 13.5 12 21m0 0-7.5-7.5M12 21V3"})])}function I2(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"})])}function P2(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M13.5 6H5.25A2.25 2.25 0 0 0 3 8.25v10.5A2.25 2.25 0 0 0 5.25 21h10.5A2.25 2.25 0 0 0 18 18.75V10.5m-10.5 6L21 3m0 0h-5.25M21 3v5.25"})])}function V9(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5m-13.5-9L12 3m0 0 4.5 4.5M12 3v13.5"})])}function W9(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4.5 10.5 12 3m0 0 7.5 7.5M12 3v18"})])}function z9(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M17.593 3.322c1.1.128 1.907 1.077 1.907 2.185V21L12 17.25 4.5 21V5.507c0-1.108.806-2.057 1.907-2.185a48.507 48.507 0 0 1 11.186 0Z"})])}function q9(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m4.5 12.75 6 6 9-13.5"})])}function k2(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"})])}function K9(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})])}function G9(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M20.25 6.375c0 2.278-3.694 4.125-8.25 4.125S3.75 8.653 3.75 6.375m16.5 0c0-2.278-3.694-4.125-8.25-4.125S3.75 4.097 3.75 6.375m16.5 0v11.25c0 2.278-3.694 4.125-8.25 4.125s-8.25-1.847-8.25-4.125V6.375m16.5 0v3.75m-16.5-3.75v3.75m16.5 0v3.75C20.25 16.153 16.556 18 12 18s-8.25-1.847-8.25-4.125v-3.75m16.5 0c0 2.278-3.694 4.125-8.25 4.125s-8.25-1.847-8.25-4.125"})])}function X9(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M11.35 3.836c-.065.21-.1.433-.1.664 0 .414.336.75.75.75h4.5a.75.75 0 0 0 .75-.75 2.25 2.25 0 0 0-.1-.664m-5.8 0A2.251 2.251 0 0 1 13.5 2.25H15c1.012 0 1.867.668 2.15 1.586m-5.8 0c-.376.023-.75.05-1.124.08C9.095 4.01 8.25 4.973 8.25 6.108V8.25m8.9-4.414c.376.023.75.05 1.124.08 1.131.094 1.976 1.057 1.976 2.192V16.5A2.25 2.25 0 0 1 18 18.75h-2.25m-7.5-10.5H4.875c-.621 0-1.125.504-1.125 1.125v11.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V18.75m-7.5-10.5h6.375c.621 0 1.125.504 1.125 1.125v9.375m-8.25-3 1.5 1.5 3-3.75"})])}function R2(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 16.5V9.75m0 0 3 3m-3-3-3 3M6.75 19.5a4.5 4.5 0 0 1-1.41-8.775 5.25 5.25 0 0 1 10.233-2.33 3 3 0 0 1 3.758 3.848A3.752 3.752 0 0 1 18 19.5H6.75Z"})])}function L2(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M2.25 15a4.5 4.5 0 0 0 4.5 4.5H18a3.75 3.75 0 0 0 1.332-7.257 3 3 0 0 0-3.758-3.848 5.25 5.25 0 0 0-10.233 2.33A4.502 4.502 0 0 0 2.25 15Z"})])}function J9(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4.5 12a7.5 7.5 0 0 0 15 0m-15 0a7.5 7.5 0 1 1 15 0m-15 0H3m16.5 0H21m-1.5 0H12m-8.457 3.077 1.41-.513m14.095-5.13 1.41-.513M5.106 17.785l1.15-.964m11.49-9.642 1.149-.964M7.501 19.795l.75-1.3m7.5-12.99.75-1.3m-6.063 16.658.26-1.477m2.605-14.772.26-1.477m0 17.726-.26-1.477M10.698 4.614l-.26-1.477M16.5 19.794l-.75-1.299M7.5 4.205 12 12m6.894 5.785-1.149-.964M6.256 7.178l-1.15-.964m15.352 8.864-1.41-.513M4.954 9.435l-1.41-.514M12.002 12l-3.75 6.495"})])}function Y9(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M10.125 2.25h-4.5c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125v-9M10.125 2.25h.375a9 9 0 0 1 9 9v.375M10.125 2.25A3.375 3.375 0 0 1 13.5 5.625v1.5c0 .621.504 1.125 1.125 1.125h1.5a3.375 3.375 0 0 1 3.375 3.375M9 15l2.25 2.25L15 12"})])}function N2(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"})])}function M2(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z"})])}function D2(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L6.832 19.82a4.5 4.5 0 0 1-1.897 1.13l-2.685.8.8-2.685a4.5 4.5 0 0 1 1.13-1.897L16.863 4.487Zm0 0L19.5 7.125"})])}function Lv(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 4.5v15m7.5-7.5h-15"})])}function Z9(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"})])}function F2(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M17.982 18.725A7.488 7.488 0 0 0 12 15.75a7.488 7.488 0 0 0-5.982 2.975m11.963 0a9 9 0 1 0-11.963 0m11.963 0A8.966 8.966 0 0 1 12 21a8.966 8.966 0 0 1-5.982-2.275M15 9.75a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})])}function Da(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18 18 6M6 6l12 12"})])}function kl(e,t,n){var s;let r=(s=n.initialDeps)!=null?s:[],o;return()=>{var l,a,c,f;let p;n.key&&((l=n.debug)==null?void 0:l.call(n))&&(p=Date.now());const h=e();if(!(h.length!==r.length||h.some((_,w)=>r[w]!==_)))return o;r=h;let y;if(n.key&&((a=n.debug)==null?void 0:a.call(n))&&(y=Date.now()),o=t(...h),n.key&&((c=n.debug)==null?void 0:c.call(n))){const _=Math.round((Date.now()-p)*100)/100,w=Math.round((Date.now()-y)*100)/100,I=w/16,O=(S,E)=>{for(S=String(S);S.length<E;)S=" "+S;return S};console.info(`%c\u23F1 ${O(w,5)} /${O(_,5)} ms`,` 56 56 font-size: .6rem; 57 57 font-weight: bold; … … 59 59 `),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".',"Render a single element as the child so that we can forward the props onto that element."].map(w=>` - ${w}`).join(` 60 60 `)].join(` 61 `));let y=z2((l=h.props)!=null?l:{},c,p),_=Dr(h,y,!0);for(let w in y)w.startsWith("on")&&(_.props||(_.props={}),_.props[w]=y[w]);return _}return Array.isArray(f)&&f.length===1?f[0]:f}return dt(a,Object.assign({},c,p),{default:()=>f})}function W2(e){return e.flatMap(t=>t.type===Fe?W2(t.children):[t])}function z2(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let o in r)o.startsWith("on")&&typeof r[o]=="function"?(n[o]!=null||(n[o]=[]),n[o].push(r[o])):t[o]=r[o];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(r=>[r,void 0])));for(let r in n)Object.assign(t,{[r](o,...s){let l=n[r];for(let a of l){if(o instanceof Event&&o.defaultPrevented)return;a(o,...s)}}});return t}function Bv(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function fs(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function $U(e){return e==null?!1:typeof e.type=="string"||typeof e.type=="object"||typeof e.type=="function"}var to=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(to||{});let _o=ve({name:"Hidden",props:{as:{type:[Object,String],default:"div"},features:{type:Number,default:1}},setup(e,{slots:t,attrs:n}){return()=>{var r;let{features:o,...s}=e,l={"aria-hidden":(o&2)===2?!0:(r=s["aria-hidden"])!=null?r:void 0,hidden:(o&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(o&4)===4&&(o&2)!==2&&{display:"none"}}};return St({ourProps:l,theirProps:s,slot:{},attrs:n,slots:t,name:"Hidden"})}}}),q2=Symbol("Context");var Pt=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Pt||{});function CU(){return ps()!==null}function ps(){return kt(q2,null)}function Vd(e){Yt(q2,e)}var lt=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(lt||{}),K2=(e=>(e[e.Left=0]="Left",e[e.Right=2]="Right",e))(K2||{});function TU(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window!="undefined"&&typeof document!="undefined"&&(document.addEventListener("DOMContentLoaded",t),t())}let Bo=[];TU(()=>{function e(t){t.target instanceof HTMLElement&&t.target!==document.body&&Bo[0]!==t.target&&(Bo.unshift(t.target),Bo=Bo.filter(n=>n!=null&&n.isConnected),Bo.splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function OU(e){throw new Error("Unexpected object: "+e)}var xt=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(xt||{});function Rh(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),o=r!=null?r:-1;switch(e.focus){case 0:{for(let s=0;s<n.length;++s)if(!t.resolveDisabled(n[s],s,n))return s;return r}case 1:{o===-1&&(o=n.length);for(let s=o-1;s>=0;--s)if(!t.resolveDisabled(n[s],s,n))return s;return r}case 2:{for(let s=o+1;s<n.length;++s)if(!t.resolveDisabled(n[s],s,n))return s;return r}case 3:{for(let s=n.length-1;s>=0;--s)if(!t.resolveDisabled(n[s],s,n))return s;return r}case 4:{for(let s=0;s<n.length;++s)if(t.resolveId(n[s],s,n)===e.id)return s;return r}case 5:return null;default:OU(e)}}function Uv(e={},t=null,n=[]){for(let[r,o]of Object.entries(e))X2(n,G2(t,r),o);return n}function G2(e,t){return e?e+"["+t+"]":t}function X2(e,t,n){if(Array.isArray(n))for(let[r,o]of n.entries())X2(e,G2(t,r.toString()),o);else n instanceof Date?e.push([t,n.toISOString()]):typeof n=="boolean"?e.push([t,n?"1":"0"]):typeof n=="string"?e.push([t,n]):typeof n=="number"?e.push([t,`${n}`]):n==null?e.push([t,""]):Uv(n,t,e)}function AU(e){var t,n;let r=(t=e==null?void 0:e.form)!=null?t:e.closest("form");if(r){for(let o of r.elements)if(o!==e&&(o.tagName==="INPUT"&&o.type==="submit"||o.tagName==="BUTTON"&&o.type==="submit"||o.nodeName==="INPUT"&&o.type==="image")){o.click();return}(n=r.requestSubmit)==null||n.call(r)}}function IU(e,t){return e===t}var PU=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(PU||{}),kU=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(kU||{}),RU=(e=>(e[e.Pointer=0]="Pointer",e[e.Focus=1]="Focus",e[e.Other=2]="Other",e))(RU||{});let J2=Symbol("ComboboxContext");function hs(e){let t=kt(J2,null);if(t===null){let n=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,hs),n}return t}let Y2=Symbol("VirtualContext"),LU=ve({name:"VirtualProvider",setup(e,{slots:t}){let n=hs("VirtualProvider"),r=ce(()=>{let a=ue(n.optionsRef);if(!a)return{start:0,end:0};let c=window.getComputedStyle(a);return{start:parseFloat(c.paddingBlockStart||c.paddingTop),end:parseFloat(c.paddingBlockEnd||c.paddingBottom)}}),o=dU(ce(()=>({scrollPaddingStart:r.value.start,scrollPaddingEnd:r.value.end,count:n.virtual.value.options.length,estimateSize(){return 40},getScrollElement(){return ue(n.optionsRef)},overscan:12}))),s=ce(()=>{var a;return(a=n.virtual.value)==null?void 0:a.options}),l=_e(0);return Ft([s],()=>{l.value+=1}),Yt(Y2,n.virtual.value?o:null),()=>[dt("div",{style:{position:"relative",width:"100%",height:`${o.value.getTotalSize()}px`},ref:a=>{if(a){if(typeof process!="undefined"&&{}.JEST_WORKER_ID!==void 0||n.activationTrigger.value===0)return;n.activeOptionIndex.value!==null&&n.virtual.value.options.length>n.activeOptionIndex.value&&o.value.scrollToIndex(n.activeOptionIndex.value)}}},o.value.getVirtualItems().map(a=>Dr(t.default({option:n.virtual.value.options[a.index],open:n.comboboxState.value===0})[0],{key:`${l.value}-${a.index}`,"data-index":a.index,"aria-setsize":n.virtual.value.options.length,"aria-posinset":a.index+1,style:{position:"absolute",top:0,left:0,transform:`translateY(${a.start}px)`,overflowAnchor:"none"}})))]}}),Z2=ve({name:"Combobox",emits:{"update:modelValue":e=>!0},props:{as:{type:[Object,String],default:"template"},disabled:{type:[Boolean],default:!1},by:{type:[String,Function],nullable:!0,default:null},modelValue:{type:[Object,String,Number,Boolean],default:void 0},defaultValue:{type:[Object,String,Number,Boolean],default:void 0},form:{type:String,optional:!0},name:{type:String,optional:!0},nullable:{type:Boolean,default:!1},multiple:{type:[Boolean],default:!1},immediate:{type:[Boolean],default:!1},virtual:{type:Object,default:null}},inheritAttrs:!1,setup(e,{slots:t,attrs:n,emit:r}){let o=_e(1),s=_e(null),l=_e(null),a=_e(null),c=_e(null),f=_e({static:!1,hold:!1}),p=_e([]),h=_e(null),v=_e(2),y=_e(!1);function _(D=F=>F){let F=h.value!==null?p.value[h.value]:null,z=D(p.value.slice()),K=z.length>0&&z[0].dataRef.order.value!==null?z.sort((we,be)=>we.dataRef.order.value-be.dataRef.order.value):Fv(z,we=>ue(we.dataRef.domRef)),te=F?K.indexOf(F):null;return te===-1&&(te=null),{options:K,activeOptionIndex:te}}let w=ce(()=>e.multiple?1:0),I=ce(()=>e.nullable),[O,S]=Nv(ce(()=>e.modelValue),D=>r("update:modelValue",D),ce(()=>e.defaultValue)),E=ce(()=>O.value===void 0?Tt(w.value,{[1]:[],[0]:void 0}):O.value),T=null,$=null;function P(D){return Tt(w.value,{[0](){return S==null?void 0:S(D)},[1]:()=>{let F=Ue(A.value.value).slice(),z=Ue(D),K=F.findIndex(te=>A.compare(z,Ue(te)));return K===-1?F.push(z):F.splice(K,1),S==null?void 0:S(F)}})}let k=ce(()=>{});Ft([k],([D],[F])=>{if(A.virtual.value&&D&&F&&h.value!==null){let z=D.indexOf(F[h.value]);z!==-1?h.value=z:h.value=null}});let A={comboboxState:o,value:E,mode:w,compare(D,F){if(typeof e.by=="string"){let z=e.by;return(D==null?void 0:D[z])===(F==null?void 0:F[z])}return e.by===null?IU(D,F):e.by(D,F)},calculateIndex(D){return A.virtual.value?e.by===null?A.virtual.value.options.indexOf(D):A.virtual.value.options.findIndex(F=>A.compare(F,D)):p.value.findIndex(F=>A.compare(F.dataRef.value,D))},defaultValue:ce(()=>e.defaultValue),nullable:I,immediate:ce(()=>!1),virtual:ce(()=>null),inputRef:l,labelRef:s,buttonRef:a,optionsRef:c,disabled:ce(()=>e.disabled),options:p,change(D){S(D)},activeOptionIndex:ce(()=>{if(y.value&&h.value===null&&(A.virtual.value?A.virtual.value.options.length>0:p.value.length>0)){if(A.virtual.value){let F=A.virtual.value.options.findIndex(z=>{var K;return!((K=A.virtual.value)!=null&&K.disabled(z))});if(F!==-1)return F}let D=p.value.findIndex(F=>!F.dataRef.disabled);if(D!==-1)return D}return h.value}),activationTrigger:v,optionsPropsRef:f,closeCombobox(){y.value=!1,!e.disabled&&o.value!==1&&(o.value=1,h.value=null)},openCombobox(){if(y.value=!0,!e.disabled&&o.value!==0){if(A.value.value){let D=A.calculateIndex(A.value.value);D!==-1&&(h.value=D)}o.value=0}},setActivationTrigger(D){v.value=D},goToOption(D,F,z){y.value=!1,T!==null&&cancelAnimationFrame(T),T=requestAnimationFrame(()=>{if(e.disabled||c.value&&!f.value.static&&o.value===1)return;if(A.virtual.value){h.value=D===xt.Specific?F:Rh({focus:D},{resolveItems:()=>A.virtual.value.options,resolveActiveIndex:()=>{var we,be;return(be=(we=A.activeOptionIndex.value)!=null?we:A.virtual.value.options.findIndex(Oe=>{var Ae;return!((Ae=A.virtual.value)!=null&&Ae.disabled(Oe))}))!=null?be:null},resolveDisabled:we=>A.virtual.value.disabled(we),resolveId(){throw new Error("Function not implemented.")}}),v.value=z!=null?z:2;return}let K=_();if(K.activeOptionIndex===null){let we=K.options.findIndex(be=>!be.dataRef.disabled);we!==-1&&(K.activeOptionIndex=we)}let te=D===xt.Specific?F:Rh({focus:D},{resolveItems:()=>K.options,resolveActiveIndex:()=>K.activeOptionIndex,resolveId:we=>we.id,resolveDisabled:we=>we.dataRef.disabled});h.value=te,v.value=z!=null?z:2,p.value=K.options})},selectOption(D){let F=p.value.find(K=>K.id===D);if(!F)return;let{dataRef:z}=F;P(z.value)},selectActiveOption(){if(A.activeOptionIndex.value!==null){if(A.virtual.value)P(A.virtual.value.options[A.activeOptionIndex.value]);else{let{dataRef:D}=p.value[A.activeOptionIndex.value];P(D.value)}A.goToOption(xt.Specific,A.activeOptionIndex.value)}},registerOption(D,F){let z=Si({id:D,dataRef:F});if(A.virtual.value){p.value.push(z);return}$&&cancelAnimationFrame($);let K=_(te=>(te.push(z),te));h.value===null&&A.isSelected(F.value.value)&&(K.activeOptionIndex=K.options.indexOf(z)),p.value=K.options,h.value=K.activeOptionIndex,v.value=2,K.options.some(te=>!ue(te.dataRef.domRef))&&($=requestAnimationFrame(()=>{let te=_();p.value=te.options,h.value=te.activeOptionIndex}))},unregisterOption(D,F){if(T!==null&&cancelAnimationFrame(T),F&&(y.value=!0),A.virtual.value){p.value=p.value.filter(K=>K.id!==D);return}let z=_(K=>{let te=K.findIndex(we=>we.id===D);return te!==-1&&K.splice(te,1),K});p.value=z.options,h.value=z.activeOptionIndex,v.value=2},isSelected(D){return Tt(w.value,{[0]:()=>A.compare(Ue(A.value.value),Ue(D)),[1]:()=>Ue(A.value.value).some(F=>A.compare(Ue(F),Ue(D)))})},isActive(D){return h.value===A.calculateIndex(D)}};jd([l,a,c],()=>A.closeCombobox(),ce(()=>o.value===0)),Yt(J2,A),Vd(ce(()=>Tt(o.value,{[0]:Pt.Open,[1]:Pt.Closed})));let H=ce(()=>{var D;return(D=ue(l))==null?void 0:D.closest("form")});return gt(()=>{Ft([H],()=>{if(!H.value||e.defaultValue===void 0)return;function D(){A.change(e.defaultValue)}return H.value.addEventListener("reset",D),()=>{var F;(F=H.value)==null||F.removeEventListener("reset",D)}},{immediate:!0})}),()=>{var D,F,z;let{name:K,disabled:te,form:we,...be}=e,Oe={open:o.value===0,disabled:te,activeIndex:A.activeOptionIndex.value,activeOption:A.activeOptionIndex.value===null?null:A.virtual.value?A.virtual.value.options[(D=A.activeOptionIndex.value)!=null?D:0]:(z=(F=A.options.value[A.activeOptionIndex.value])==null?void 0:F.dataRef.value)!=null?z:null,value:E.value};return dt(Fe,[...K!=null&&E.value!=null?Uv({[K]:E.value}).map(([Ae,Ye])=>dt(_o,Bv({features:to.Hidden,key:Ae,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:we,disabled:te,name:Ae,value:Ye}))):[],St({theirProps:{...n,...fs(be,["by","defaultValue","immediate","modelValue","multiple","nullable","onUpdate:modelValue","virtual"])},ourProps:{},slot:Oe,slots:t,attrs:n,name:"Combobox"})])}}}),NU=ve({name:"ComboboxLabel",props:{as:{type:[Object,String],default:"label"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n}){var r;let o=(r=e.id)!=null?r:`headlessui-combobox-label-${zt()}`,s=hs("ComboboxLabel");function l(){var a;(a=ue(s.inputRef))==null||a.focus({preventScroll:!0})}return()=>{let a={open:s.comboboxState.value===0,disabled:s.disabled.value},{...c}=e,f={id:o,ref:s.labelRef,onClick:l};return St({ourProps:f,theirProps:c,slot:a,attrs:t,slots:n,name:"ComboboxLabel"})}}}),Q2=ve({name:"ComboboxButton",props:{as:{type:[Object,String],default:"button"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:r}){var o;let s=(o=e.id)!=null?o:`headlessui-combobox-button-${zt()}`,l=hs("ComboboxButton");r({el:l.buttonRef,$el:l.buttonRef});function a(p){l.disabled.value||(l.comboboxState.value===0?l.closeCombobox():(p.preventDefault(),l.openCombobox()),rn(()=>{var h;return(h=ue(l.inputRef))==null?void 0:h.focus({preventScroll:!0})}))}function c(p){switch(p.key){case lt.ArrowDown:p.preventDefault(),p.stopPropagation(),l.comboboxState.value===1&&l.openCombobox(),rn(()=>{var h;return(h=l.inputRef.value)==null?void 0:h.focus({preventScroll:!0})});return;case lt.ArrowUp:p.preventDefault(),p.stopPropagation(),l.comboboxState.value===1&&(l.openCombobox(),rn(()=>{l.value.value||l.goToOption(xt.Last)})),rn(()=>{var h;return(h=l.inputRef.value)==null?void 0:h.focus({preventScroll:!0})});return;case lt.Escape:if(l.comboboxState.value!==0)return;p.preventDefault(),l.optionsRef.value&&!l.optionsPropsRef.value.static&&p.stopPropagation(),l.closeCombobox(),rn(()=>{var h;return(h=l.inputRef.value)==null?void 0:h.focus({preventScroll:!0})});return}}let f=Hd(ce(()=>({as:e.as,type:t.type})),l.buttonRef);return()=>{var p,h;let v={open:l.comboboxState.value===0,disabled:l.disabled.value,value:l.value.value},{...y}=e,_={ref:l.buttonRef,id:s,type:f.value,tabindex:"-1","aria-haspopup":"listbox","aria-controls":(p=ue(l.optionsRef))==null?void 0:p.id,"aria-expanded":l.comboboxState.value===0,"aria-labelledby":l.labelRef.value?[(h=ue(l.labelRef))==null?void 0:h.id,s].join(" "):void 0,disabled:l.disabled.value===!0?!0:void 0,onKeydown:c,onClick:a};return St({ourProps:_,theirProps:y,slot:v,attrs:t,slots:n,name:"ComboboxButton"})}}}),e$=ve({name:"ComboboxInput",props:{as:{type:[Object,String],default:"input"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},displayValue:{type:Function},defaultValue:{type:String,default:void 0},id:{type:String,default:null}},emits:{change:e=>!0},setup(e,{emit:t,attrs:n,slots:r,expose:o}){var s;let l=(s=e.id)!=null?s:`headlessui-combobox-input-${zt()}`,a=hs("ComboboxInput"),c=ce(()=>jr(ue(a.inputRef))),f={value:!1};o({el:a.inputRef,$el:a.inputRef});function p(){a.change(null);let $=ue(a.optionsRef);$&&($.scrollTop=0),a.goToOption(xt.Nothing)}let h=ce(()=>{var $;let P=a.value.value;return ue(a.inputRef)?typeof e.displayValue!="undefined"&&P!==void 0?($=e.displayValue(P))!=null?$:"":typeof P=="string"?P:"":""});gt(()=>{Ft([h,a.comboboxState,c],([$,P],[k,A])=>{if(f.value)return;let H=ue(a.inputRef);H&&((A===0&&P===1||$!==k)&&(H.value=$),requestAnimationFrame(()=>{var D;if(f.value||!H||((D=c.value)==null?void 0:D.activeElement)!==H)return;let{selectionStart:F,selectionEnd:z}=H;Math.abs((z!=null?z:0)-(F!=null?F:0))===0&&F===0&&H.setSelectionRange(H.value.length,H.value.length)}))},{immediate:!0}),Ft([a.comboboxState],([$],[P])=>{if($===0&&P===1){if(f.value)return;let k=ue(a.inputRef);if(!k)return;let A=k.value,{selectionStart:H,selectionEnd:D,selectionDirection:F}=k;k.value="",k.value=A,F!==null?k.setSelectionRange(H,D,F):k.setSelectionRange(H,D)}})});let v=_e(!1);function y(){v.value=!0}function _(){wi().nextFrame(()=>{v.value=!1})}let w=pU();function I($){switch(f.value=!0,w(()=>{f.value=!1}),$.key){case lt.Enter:if(f.value=!1,a.comboboxState.value!==0||v.value)return;if($.preventDefault(),$.stopPropagation(),a.activeOptionIndex.value===null){a.closeCombobox();return}a.selectActiveOption(),a.mode.value===0&&a.closeCombobox();break;case lt.ArrowDown:return f.value=!1,$.preventDefault(),$.stopPropagation(),Tt(a.comboboxState.value,{[0]:()=>a.goToOption(xt.Next),[1]:()=>a.openCombobox()});case lt.ArrowUp:return f.value=!1,$.preventDefault(),$.stopPropagation(),Tt(a.comboboxState.value,{[0]:()=>a.goToOption(xt.Previous),[1]:()=>{a.openCombobox(),rn(()=>{a.value.value||a.goToOption(xt.Last)})}});case lt.Home:if($.shiftKey)break;return f.value=!1,$.preventDefault(),$.stopPropagation(),a.goToOption(xt.First);case lt.PageUp:return f.value=!1,$.preventDefault(),$.stopPropagation(),a.goToOption(xt.First);case lt.End:if($.shiftKey)break;return f.value=!1,$.preventDefault(),$.stopPropagation(),a.goToOption(xt.Last);case lt.PageDown:return f.value=!1,$.preventDefault(),$.stopPropagation(),a.goToOption(xt.Last);case lt.Escape:if(f.value=!1,a.comboboxState.value!==0)return;$.preventDefault(),a.optionsRef.value&&!a.optionsPropsRef.value.static&&$.stopPropagation(),a.nullable.value&&a.mode.value===0&&a.value.value===null&&p(),a.closeCombobox();break;case lt.Tab:if(f.value=!1,a.comboboxState.value!==0)return;a.mode.value===0&&a.activationTrigger.value!==1&&a.selectActiveOption(),a.closeCombobox();break}}function O($){t("change",$),a.nullable.value&&a.mode.value===0&&$.target.value===""&&p(),a.openCombobox()}function S($){var P,k,A;let H=(P=$.relatedTarget)!=null?P:Bo.find(D=>D!==$.currentTarget);if(f.value=!1,!((k=ue(a.optionsRef))!=null&&k.contains(H))&&!((A=ue(a.buttonRef))!=null&&A.contains(H))&&a.comboboxState.value===0)return $.preventDefault(),a.mode.value===0&&(a.nullable.value&&a.value.value===null?p():a.activationTrigger.value!==1&&a.selectActiveOption()),a.closeCombobox()}function E($){var P,k,A;let H=(P=$.relatedTarget)!=null?P:Bo.find(D=>D!==$.currentTarget);(k=ue(a.buttonRef))!=null&&k.contains(H)||(A=ue(a.optionsRef))!=null&&A.contains(H)||a.disabled.value||a.immediate.value&&a.comboboxState.value!==0&&(a.openCombobox(),wi().nextFrame(()=>{a.setActivationTrigger(1)}))}let T=ce(()=>{var $,P,k,A;return(A=(k=(P=e.defaultValue)!=null?P:a.defaultValue.value!==void 0?($=e.displayValue)==null?void 0:$.call(e,a.defaultValue.value):null)!=null?k:a.defaultValue.value)!=null?A:""});return()=>{var $,P,k,A,H,D,F;let z={open:a.comboboxState.value===0},{displayValue:K,onChange:te,...we}=e,be={"aria-controls":($=a.optionsRef.value)==null?void 0:$.id,"aria-expanded":a.comboboxState.value===0,"aria-activedescendant":a.activeOptionIndex.value===null?void 0:a.virtual.value?(P=a.options.value.find(Oe=>!a.virtual.value.disabled(Oe.dataRef.value)&&a.compare(Oe.dataRef.value,a.virtual.value.options[a.activeOptionIndex.value])))==null?void 0:P.id:(k=a.options.value[a.activeOptionIndex.value])==null?void 0:k.id,"aria-labelledby":(D=(A=ue(a.labelRef))==null?void 0:A.id)!=null?D:(H=ue(a.buttonRef))==null?void 0:H.id,"aria-autocomplete":"list",id:l,onCompositionstart:y,onCompositionend:_,onKeydown:I,onInput:O,onFocus:E,onBlur:S,role:"combobox",type:(F=n.type)!=null?F:"text",tabIndex:0,ref:a.inputRef,defaultValue:T.value,disabled:a.disabled.value===!0?!0:void 0};return St({ourProps:be,theirProps:we,slot:z,attrs:n,slots:r,features:rr.RenderStrategy|rr.Static,name:"ComboboxInput"})}}}),t$=ve({name:"ComboboxOptions",props:{as:{type:[Object,String],default:"ul"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},hold:{type:[Boolean],default:!1}},setup(e,{attrs:t,slots:n,expose:r}){let o=hs("ComboboxOptions"),s=`headlessui-combobox-options-${zt()}`;r({el:o.optionsRef,$el:o.optionsRef}),jt(()=>{o.optionsPropsRef.value.static=e.static}),jt(()=>{o.optionsPropsRef.value.hold=e.hold});let l=ps(),a=ce(()=>l!==null?(l.value&Pt.Open)===Pt.Open:o.comboboxState.value===0);xU({container:ce(()=>ue(o.optionsRef)),enabled:ce(()=>o.comboboxState.value===0),accept(f){return f.getAttribute("role")==="option"?NodeFilter.FILTER_REJECT:f.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(f){f.setAttribute("role","none")}});function c(f){f.preventDefault()}return()=>{var f,p,h;let v={open:o.comboboxState.value===0},y={"aria-labelledby":(h=(f=ue(o.labelRef))==null?void 0:f.id)!=null?h:(p=ue(o.buttonRef))==null?void 0:p.id,id:s,ref:o.optionsRef,role:"listbox","aria-multiselectable":o.mode.value===1?!0:void 0,onMousedown:c},_=fs(e,["hold"]);return St({ourProps:y,theirProps:_,slot:v,attrs:t,slots:o.virtual.value&&o.comboboxState.value===0?{...n,default:()=>[dt(LU,{},n.default)]}:n,features:rr.RenderStrategy|rr.Static,visible:a.value,name:"ComboboxOptions"})}}}),n$=ve({name:"ComboboxOption",props:{as:{type:[Object,String],default:"li"},value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1},order:{type:[Number],default:null}},setup(e,{slots:t,attrs:n,expose:r}){let o=hs("ComboboxOption"),s=`headlessui-combobox-option-${zt()}`,l=_e(null),a=ce(()=>e.disabled);r({el:l,$el:l});let c=ce(()=>{var S;return o.virtual.value?o.activeOptionIndex.value===o.calculateIndex(e.value):o.activeOptionIndex.value===null?!1:((S=o.options.value[o.activeOptionIndex.value])==null?void 0:S.id)===s}),f=ce(()=>o.isSelected(e.value)),p=kt(Y2,null),h=ce(()=>({disabled:e.disabled,value:e.value,domRef:l,order:ce(()=>e.order)}));gt(()=>o.registerOption(s,h)),Zt(()=>o.unregisterOption(s,c.value)),jt(()=>{let S=ue(l);S&&(p==null||p.value.measureElement(S))}),jt(()=>{o.comboboxState.value===0&&c.value&&(o.virtual.value||o.activationTrigger.value!==0&&rn(()=>{var S,E;return(E=(S=ue(l))==null?void 0:S.scrollIntoView)==null?void 0:E.call(S,{block:"nearest"})}))});function v(S){S.preventDefault(),S.button===K2.Left&&(a.value||(o.selectOption(s),j2()||requestAnimationFrame(()=>{var E;return(E=ue(o.inputRef))==null?void 0:E.focus({preventScroll:!0})}),o.mode.value===0&&o.closeCombobox()))}function y(){var S;if(e.disabled||(S=o.virtual.value)!=null&&S.disabled(e.value))return o.goToOption(xt.Nothing);let E=o.calculateIndex(e.value);o.goToOption(xt.Specific,E)}let _=V2();function w(S){_.update(S)}function I(S){var E;if(!_.wasMoved(S)||e.disabled||(E=o.virtual.value)!=null&&E.disabled(e.value)||c.value)return;let T=o.calculateIndex(e.value);o.goToOption(xt.Specific,T,0)}function O(S){var E;_.wasMoved(S)&&(e.disabled||(E=o.virtual.value)!=null&&E.disabled(e.value)||c.value&&(o.optionsPropsRef.value.hold||o.goToOption(xt.Nothing)))}return()=>{let{disabled:S}=e,E={active:c.value,selected:f.value,disabled:S},T={id:s,ref:l,role:"option",tabIndex:S===!0?void 0:-1,"aria-disabled":S===!0?!0:void 0,"aria-selected":f.value,disabled:void 0,onMousedown:v,onFocus:y,onPointerenter:w,onMouseenter:w,onPointermove:I,onMousemove:I,onPointerleave:O,onMouseleave:O},$=fs(e,["order","value"]);return St({ourProps:T,theirProps:$,slot:E,attrs:n,slots:t,name:"ComboboxOption"})}}});function jv(e,t,n,r){Fa.isServer||jt(o=>{e=e!=null?e:window,e.addEventListener(t,n,r),o(()=>e.removeEventListener(t,n,r))})}var pr=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(pr||{});function Hv(){let e=_e(0);return H2("keydown",t=>{t.key==="Tab"&&(e.value=t.shiftKey?1:0)}),e}function r$(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let n of e.value){let r=ue(n);r instanceof HTMLElement&&t.add(r)}return t}var o$=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(o$||{});let Rl=Object.assign(ve({name:"FocusTrap",props:{as:{type:[Object,String],default:"div"},initialFocus:{type:Object,default:null},features:{type:Number,default:30},containers:{type:[Object,Function],default:_e(new Set)}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:r}){let o=_e(null);r({el:o,$el:o});let s=ce(()=>jr(o)),l=_e(!1);gt(()=>l.value=!0),Zt(()=>l.value=!1),DU({ownerDocument:s},ce(()=>l.value&&Boolean(e.features&16)));let a=FU({ownerDocument:s,container:o,initialFocus:ce(()=>e.initialFocus)},ce(()=>l.value&&Boolean(e.features&2)));BU({ownerDocument:s,container:o,containers:e.containers,previousActiveElement:a},ce(()=>l.value&&Boolean(e.features&8)));let c=Hv();function f(y){let _=ue(o);!_||(w=>w())(()=>{Tt(c.value,{[pr.Forwards]:()=>{Gr(_,Pn.First,{skipElements:[y.relatedTarget]})},[pr.Backwards]:()=>{Gr(_,Pn.Last,{skipElements:[y.relatedTarget]})}})})}let p=_e(!1);function h(y){y.key==="Tab"&&(p.value=!0,requestAnimationFrame(()=>{p.value=!1}))}function v(y){if(!l.value)return;let _=r$(e.containers);ue(o)instanceof HTMLElement&&_.add(ue(o));let w=y.relatedTarget;w instanceof HTMLElement&&w.dataset.headlessuiFocusGuard!=="true"&&(i$(_,w)||(p.value?Gr(ue(o),Tt(c.value,{[pr.Forwards]:()=>Pn.Next,[pr.Backwards]:()=>Pn.Previous})|Pn.WrapAround,{relativeTo:y.target}):y.target instanceof HTMLElement&&es(y.target)))}return()=>{let y={},_={ref:o,onKeydown:h,onFocusout:v},{features:w,initialFocus:I,containers:O,...S}=e;return dt(Fe,[Boolean(w&4)&&dt(_o,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:f,features:to.Focusable}),St({ourProps:_,theirProps:{...t,...S},slot:y,attrs:t,slots:n,name:"FocusTrap"}),Boolean(w&4)&&dt(_o,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:f,features:to.Focusable})])}}}),{features:o$});function MU(e){let t=_e(Bo.slice());return Ft([e],([n],[r])=>{r===!0&&n===!1?Mv(()=>{t.value.splice(0)}):r===!1&&n===!0&&(t.value=Bo.slice())},{flush:"post"}),()=>{var n;return(n=t.value.find(r=>r!=null&&r.isConnected))!=null?n:null}}function DU({ownerDocument:e},t){let n=MU(t);gt(()=>{jt(()=>{var r,o;t.value||((r=e.value)==null?void 0:r.activeElement)===((o=e.value)==null?void 0:o.body)&&es(n())},{flush:"post"})}),Zt(()=>{t.value&&es(n())})}function FU({ownerDocument:e,container:t,initialFocus:n},r){let o=_e(null),s=_e(!1);return gt(()=>s.value=!0),Zt(()=>s.value=!1),gt(()=>{Ft([t,n,r],(l,a)=>{if(l.every((f,p)=>(a==null?void 0:a[p])===f)||!r.value)return;let c=ue(t);c&&Mv(()=>{var f,p;if(!s.value)return;let h=ue(n),v=(f=e.value)==null?void 0:f.activeElement;if(h){if(h===v){o.value=v;return}}else if(c.contains(v)){o.value=v;return}h?es(h):Gr(c,Pn.First|Pn.NoScroll)===ga.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),o.value=(p=e.value)==null?void 0:p.activeElement})},{immediate:!0,flush:"post"})}),o}function BU({ownerDocument:e,container:t,containers:n,previousActiveElement:r},o){var s;jv((s=e.value)==null?void 0:s.defaultView,"focus",l=>{if(!o.value)return;let a=r$(n);ue(t)instanceof HTMLElement&&a.add(ue(t));let c=r.value;if(!c)return;let f=l.target;f&&f instanceof HTMLElement?i$(a,f)?(r.value=f,es(f)):(l.preventDefault(),l.stopPropagation(),es(c)):es(r.value)},!0)}function i$(e,t){for(let n of e)if(n.contains(t))return!0;return!1}function UU(e){let t=nd(e.getSnapshot());return Zt(e.subscribe(()=>{t.value=e.getSnapshot()})),t}function jU(e,t){let n=e(),r=new Set;return{getSnapshot(){return n},subscribe(o){return r.add(o),()=>r.delete(o)},dispatch(o,...s){let l=t[o].call(n,...s);l&&(n=l,r.forEach(a=>a()))}}}function HU(){let e;return{before({doc:t}){var n;let r=t.documentElement;e=((n=t.defaultView)!=null?n:window).innerWidth-r.clientWidth},after({doc:t,d:n}){let r=t.documentElement,o=r.clientWidth-r.offsetWidth,s=e-o;n.style(r,"paddingRight",`${s}px`)}}}function VU(){return U2()?{before({doc:e,d:t,meta:n}){function r(o){return n.containers.flatMap(s=>s()).some(s=>s.contains(o))}t.microTask(()=>{var o;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let a=wi();a.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>a.dispose()))}let s=(o=window.scrollY)!=null?o:window.pageYOffset,l=null;t.addEventListener(e,"click",a=>{if(a.target instanceof HTMLElement)try{let c=a.target.closest("a");if(!c)return;let{hash:f}=new URL(c.href),p=e.querySelector(f);p&&!r(p)&&(l=p)}catch{}},!0),t.addEventListener(e,"touchstart",a=>{if(a.target instanceof HTMLElement)if(r(a.target)){let c=a.target;for(;c.parentElement&&r(c.parentElement);)c=c.parentElement;t.style(c,"overscrollBehavior","contain")}else t.style(a.target,"touchAction","none")}),t.addEventListener(e,"touchmove",a=>{if(a.target instanceof HTMLElement){if(a.target.tagName==="INPUT")return;if(r(a.target)){let c=a.target;for(;c.parentElement&&c.dataset.headlessuiPortal!==""&&!(c.scrollHeight>c.clientHeight||c.scrollWidth>c.clientWidth);)c=c.parentElement;c.dataset.headlessuiPortal===""&&a.preventDefault()}else a.preventDefault()}},{passive:!1}),t.add(()=>{var a;let c=(a=window.scrollY)!=null?a:window.pageYOffset;s!==c&&window.scrollTo(0,s),l&&l.isConnected&&(l.scrollIntoView({block:"nearest"}),l=null)})})}}:{}}function WU(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function zU(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let Ki=jU(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:wi(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let r={doc:e,d:t,meta:zU(n)},o=[VU(),HU(),WU()];o.forEach(({before:s})=>s==null?void 0:s(r)),o.forEach(({after:s})=>s==null?void 0:s(r))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});Ki.subscribe(()=>{let e=Ki.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let r=t.get(n.doc)==="hidden",o=n.count!==0;(o&&!r||!o&&r)&&Ki.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&Ki.dispatch("TEARDOWN",n)}});function qU(e,t,n){let r=UU(Ki),o=ce(()=>{let s=e.value?r.value.get(e.value):void 0;return s?s.count>0:!1});return Ft([e,t],([s,l],[a],c)=>{if(!s||!l)return;Ki.dispatch("PUSH",s,n);let f=!1;c(()=>{f||(Ki.dispatch("POP",a!=null?a:s,n),f=!0)})},{immediate:!0}),o}let Dp=new Map,Ll=new Map;function M1(e,t=_e(!0)){jt(n=>{var r;if(!t.value)return;let o=ue(e);if(!o)return;n(function(){var l;if(!o)return;let a=(l=Ll.get(o))!=null?l:1;if(a===1?Ll.delete(o):Ll.set(o,a-1),a!==1)return;let c=Dp.get(o);c&&(c["aria-hidden"]===null?o.removeAttribute("aria-hidden"):o.setAttribute("aria-hidden",c["aria-hidden"]),o.inert=c.inert,Dp.delete(o))});let s=(r=Ll.get(o))!=null?r:0;Ll.set(o,s+1),s===0&&(Dp.set(o,{"aria-hidden":o.getAttribute("aria-hidden"),inert:o.inert}),o.setAttribute("aria-hidden","true"),o.inert=!0)})}function s$({defaultContainers:e=[],portals:t,mainTreeNodeRef:n}={}){let r=_e(null),o=jr(r);function s(){var l,a,c;let f=[];for(let p of e)p!==null&&(p instanceof HTMLElement?f.push(p):"value"in p&&p.value instanceof HTMLElement&&f.push(p.value));if(t!=null&&t.value)for(let p of t.value)f.push(p);for(let p of(l=o==null?void 0:o.querySelectorAll("html > *, body > *"))!=null?l:[])p!==document.body&&p!==document.head&&p instanceof HTMLElement&&p.id!=="headlessui-portal-root"&&(p.contains(ue(r))||p.contains((c=(a=ue(r))==null?void 0:a.getRootNode())==null?void 0:c.host)||f.some(h=>p.contains(h))||f.push(p));return f}return{resolveContainers:s,contains(l){return s().some(a=>a.contains(l))},mainTreeNodeRef:r,MainTreeNode(){return n!=null?null:dt(_o,{features:to.Hidden,ref:r})}}}function KU(){let e=_e(null);return{mainTreeNodeRef:e,MainTreeNode(){return dt(_o,{features:to.Hidden,ref:e})}}}let l$=Symbol("ForcePortalRootContext");function GU(){return kt(l$,!1)}let Lh=ve({name:"ForcePortalRoot",props:{as:{type:[Object,String],default:"template"},force:{type:Boolean,default:!1}},setup(e,{slots:t,attrs:n}){return Yt(l$,e.force),()=>{let{force:r,...o}=e;return St({theirProps:o,ourProps:{},slot:{},slots:t,attrs:n,name:"ForcePortalRoot"})}}}),a$=Symbol("StackContext");var Nh=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(Nh||{});function XU(){return kt(a$,()=>{})}function JU({type:e,enabled:t,element:n,onUpdate:r}){let o=XU();function s(...l){r==null||r(...l),o(...l)}gt(()=>{Ft(t,(l,a)=>{l?s(0,e,n):a===!0&&s(1,e,n)},{immediate:!0,flush:"sync"})}),Zt(()=>{t.value&&s(1,e,n)}),Yt(a$,s)}let u$=Symbol("DescriptionContext");function YU(){let e=kt(u$,null);if(e===null)throw new Error("Missing parent");return e}function c$({slot:e=_e({}),name:t="Description",props:n={}}={}){let r=_e([]);function o(s){return r.value.push(s),()=>{let l=r.value.indexOf(s);l!==-1&&r.value.splice(l,1)}}return Yt(u$,{register:o,slot:e,name:t,props:n}),ce(()=>r.value.length>0?r.value.join(" "):void 0)}let Bte=ve({name:"Description",props:{as:{type:[Object,String],default:"p"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n}){var r;let o=(r=e.id)!=null?r:`headlessui-description-${zt()}`,s=YU();return gt(()=>Zt(s.register(o))),()=>{let{name:l="Description",slot:a=_e({}),props:c={}}=s,{...f}=e,p={...Object.entries(c).reduce((h,[v,y])=>Object.assign(h,{[v]:jn(y)}),{}),id:o};return St({ourProps:p,theirProps:f,slot:a.value,attrs:t,slots:n,name:l})}}});function ZU(e){let t=jr(e);if(!t){if(e===null)return null;throw new Error(`[Headless UI]: Cannot find ownerDocument for contextElement: ${e}`)}let n=t.getElementById("headlessui-portal-root");if(n)return n;let r=t.createElement("div");return r.setAttribute("id","headlessui-portal-root"),t.body.appendChild(r)}const Mh=new WeakMap;function QU(e){var t;return(t=Mh.get(e))!=null?t:0}function D1(e,t){let n=t(QU(e));return n<=0?Mh.delete(e):Mh.set(e,n),n}let d$=ve({name:"Portal",props:{as:{type:[Object,String],default:"div"}},setup(e,{slots:t,attrs:n}){let r=_e(null),o=ce(()=>jr(r)),s=GU(),l=kt(p$,null),a=_e(s===!0||l==null?ZU(r.value):l.resolveTarget());a.value&&D1(a.value,v=>v+1);let c=_e(!1);gt(()=>{c.value=!0}),jt(()=>{s||l!=null&&(a.value=l.resolveTarget())});let f=kt(Dh,null),p=!1,h=Ko();return Ft(r,()=>{if(p||!f)return;let v=ue(r);v&&(Zt(f.register(v),h),p=!0)}),Zt(()=>{var v,y;let _=(v=o.value)==null?void 0:v.getElementById("headlessui-portal-root");!_||a.value!==_||D1(a.value,w=>w-1)||a.value.children.length>0||(y=a.value.parentElement)==null||y.removeChild(a.value)}),()=>{if(!c.value||a.value===null)return null;let v={ref:r,"data-headlessui-portal":""};return dt(lw,{to:a.value},St({ourProps:v,theirProps:e,slot:{},attrs:n,slots:t,name:"Portal"}))}}}),Dh=Symbol("PortalParentContext");function f$(){let e=kt(Dh,null),t=_e([]);function n(s){return t.value.push(s),e&&e.register(s),()=>r(s)}function r(s){let l=t.value.indexOf(s);l!==-1&&t.value.splice(l,1),e&&e.unregister(s)}let o={register:n,unregister:r,portals:t};return[t,ve({name:"PortalWrapper",setup(s,{slots:l}){return Yt(Dh,o),()=>{var a;return(a=l.default)==null?void 0:a.call(l)}}})]}let p$=Symbol("PortalGroupContext"),ej=ve({name:"PortalGroup",props:{as:{type:[Object,String],default:"template"},target:{type:Object,default:null}},setup(e,{attrs:t,slots:n}){let r=Si({resolveTarget(){return e.target}});return Yt(p$,r),()=>{let{target:o,...s}=e;return St({theirProps:s,ourProps:{},slot:{},attrs:t,slots:n,name:"PortalGroup"})}}});var tj=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(tj||{});let Fh=Symbol("DialogContext");function Ba(e){let t=kt(Fh,null);if(t===null){let n=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Ba),n}return t}let Ju="DC8F892D-2EBD-447C-A4C8-A03058436FF4",nj=ve({name:"Dialog",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},open:{type:[Boolean,String],default:Ju},initialFocus:{type:Object,default:null},id:{type:String,default:null},role:{type:String,default:"dialog"}},emits:{close:e=>!0},setup(e,{emit:t,attrs:n,slots:r,expose:o}){var s,l;let a=(s=e.id)!=null?s:`headlessui-dialog-${zt()}`,c=_e(!1);gt(()=>{c.value=!0});let f=!1,p=ce(()=>e.role==="dialog"||e.role==="alertdialog"?e.role:(f||(f=!0,console.warn(`Invalid role [${p}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")),h=_e(0),v=ps(),y=ce(()=>e.open===Ju&&v!==null?(v.value&Pt.Open)===Pt.Open:e.open),_=_e(null),w=ce(()=>jr(_));if(o({el:_,$el:_}),!(e.open!==Ju||v!==null))throw new Error("You forgot to provide an `open` prop to the `Dialog`.");if(typeof y.value!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${y.value===Ju?void 0:e.open}`);let I=ce(()=>c.value&&y.value?0:1),O=ce(()=>I.value===0),S=ce(()=>h.value>1),E=kt(Fh,null)!==null,[T,$]=f$(),{resolveContainers:P,mainTreeNodeRef:k,MainTreeNode:A}=s$({portals:T,defaultContainers:[ce(()=>{var Le;return(Le=Oe.panelRef.value)!=null?Le:_.value})]}),H=ce(()=>S.value?"parent":"leaf"),D=ce(()=>v!==null?(v.value&Pt.Closing)===Pt.Closing:!1),F=ce(()=>E||D.value?!1:O.value),z=ce(()=>{var Le,Ke,Q;return(Q=Array.from((Ke=(Le=w.value)==null?void 0:Le.querySelectorAll("body > *"))!=null?Ke:[]).find(ae=>ae.id==="headlessui-portal-root"?!1:ae.contains(ue(k))&&ae instanceof HTMLElement))!=null?Q:null});M1(z,F);let K=ce(()=>S.value?!0:O.value),te=ce(()=>{var Le,Ke,Q;return(Q=Array.from((Ke=(Le=w.value)==null?void 0:Le.querySelectorAll("[data-headlessui-portal]"))!=null?Ke:[]).find(ae=>ae.contains(ue(k))&&ae instanceof HTMLElement))!=null?Q:null});M1(te,K),JU({type:"Dialog",enabled:ce(()=>I.value===0),element:_,onUpdate:(Le,Ke)=>{if(Ke==="Dialog")return Tt(Le,{[Nh.Add]:()=>h.value+=1,[Nh.Remove]:()=>h.value-=1})}});let we=c$({name:"DialogDescription",slot:ce(()=>({open:y.value}))}),be=_e(null),Oe={titleId:be,panelRef:_e(null),dialogState:I,setTitleId(Le){be.value!==Le&&(be.value=Le)},close(){t("close",!1)}};Yt(Fh,Oe);let Ae=ce(()=>!(!O.value||S.value));jd(P,(Le,Ke)=>{Le.preventDefault(),Oe.close(),rn(()=>Ke==null?void 0:Ke.focus())},Ae);let Ye=ce(()=>!(S.value||I.value!==0));jv((l=w.value)==null?void 0:l.defaultView,"keydown",Le=>{Ye.value&&(Le.defaultPrevented||Le.key===lt.Escape&&(Le.preventDefault(),Le.stopPropagation(),Oe.close()))});let ft=ce(()=>!(D.value||I.value!==0||E));return qU(w,ft,Le=>{var Ke;return{containers:[...(Ke=Le.containers)!=null?Ke:[],P]}}),jt(Le=>{if(I.value!==0)return;let Ke=ue(_);if(!Ke)return;let Q=new ResizeObserver(ae=>{for(let fe of ae){let Se=fe.target.getBoundingClientRect();Se.x===0&&Se.y===0&&Se.width===0&&Se.height===0&&Oe.close()}});Q.observe(Ke),Le(()=>Q.disconnect())}),()=>{let{open:Le,initialFocus:Ke,...Q}=e,ae={...n,ref:_,id:a,role:p.value,"aria-modal":I.value===0?!0:void 0,"aria-labelledby":be.value,"aria-describedby":we.value},fe={open:I.value===0};return dt(Lh,{force:!0},()=>[dt(d$,()=>dt(ej,{target:_.value},()=>dt(Lh,{force:!1},()=>dt(Rl,{initialFocus:Ke,containers:P,features:O.value?Tt(H.value,{parent:Rl.features.RestoreFocus,leaf:Rl.features.All&~Rl.features.FocusLock}):Rl.features.None},()=>dt($,{},()=>St({ourProps:ae,theirProps:{...Q,...n},slot:fe,attrs:n,slots:r,visible:I.value===0,features:rr.RenderStrategy|rr.Static,name:"Dialog"})))))),dt(A)])}}}),rj=ve({name:"DialogOverlay",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n}){var r;let o=(r=e.id)!=null?r:`headlessui-dialog-overlay-${zt()}`,s=Ba("DialogOverlay");function l(a){a.target===a.currentTarget&&(a.preventDefault(),a.stopPropagation(),s.close())}return()=>{let{...a}=e;return St({ourProps:{id:o,"aria-hidden":!0,onClick:l},theirProps:a,slot:{open:s.dialogState.value===0},attrs:t,slots:n,name:"DialogOverlay"})}}});ve({name:"DialogBackdrop",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:null}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:r}){var o;let s=(o=e.id)!=null?o:`headlessui-dialog-backdrop-${zt()}`,l=Ba("DialogBackdrop"),a=_e(null);return r({el:a,$el:a}),gt(()=>{if(l.panelRef.value===null)throw new Error("A <DialogBackdrop /> component is being used, but a <DialogPanel /> component is missing.")}),()=>{let{...c}=e,f={id:s,ref:a,"aria-hidden":!0};return dt(Lh,{force:!0},()=>dt(d$,()=>St({ourProps:f,theirProps:{...t,...c},slot:{open:l.dialogState.value===0},attrs:t,slots:n,name:"DialogBackdrop"})))}}});ve({name:"DialogPanel",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:r}){var o;let s=(o=e.id)!=null?o:`headlessui-dialog-panel-${zt()}`,l=Ba("DialogPanel");r({el:l.panelRef,$el:l.panelRef});function a(c){c.stopPropagation()}return()=>{let{...c}=e,f={id:s,ref:l.panelRef,onClick:a};return St({ourProps:f,theirProps:c,slot:{open:l.dialogState.value===0},attrs:t,slots:n,name:"DialogPanel"})}}});let oj=ve({name:"DialogTitle",props:{as:{type:[Object,String],default:"h2"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n}){var r;let o=(r=e.id)!=null?r:`headlessui-dialog-title-${zt()}`,s=Ba("DialogTitle");return gt(()=>{s.setTitleId(o),Zt(()=>s.setTitleId(null))}),()=>{let{...l}=e;return St({ourProps:{id:o},theirProps:l,slot:{open:s.dialogState.value===0},attrs:t,slots:n,name:"DialogTitle"})}}}),F1=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function B1(e){var t,n;let r=(t=e.innerText)!=null?t:"",o=e.cloneNode(!0);if(!(o instanceof HTMLElement))return r;let s=!1;for(let a of o.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))a.remove(),s=!0;let l=s?(n=o.innerText)!=null?n:"":r;return F1.test(l)&&(l=l.replace(F1,"")),l}function ij(e){let t=e.getAttribute("aria-label");if(typeof t=="string")return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let r=n.split(" ").map(o=>{let s=document.getElementById(o);if(s){let l=s.getAttribute("aria-label");return typeof l=="string"?l.trim():B1(s).trim()}return null}).filter(Boolean);if(r.length>0)return r.join(", ")}return B1(e).trim()}function sj(e){let t=_e(""),n=_e("");return()=>{let r=ue(e);if(!r)return"";let o=r.innerText;if(t.value===o)return n.value;let s=ij(r).trim().toLowerCase();return t.value=o,n.value=s,s}}function lj(e,t){return e===t}var aj=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(aj||{}),uj=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(uj||{}),cj=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(cj||{});function dj(e){requestAnimationFrame(()=>requestAnimationFrame(e))}let h$=Symbol("ListboxContext");function Ua(e){let t=kt(h$,null);if(t===null){let n=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Ua),n}return t}let Vv=ve({name:"Listbox",emits:{"update:modelValue":e=>!0},props:{as:{type:[Object,String],default:"template"},disabled:{type:[Boolean],default:!1},by:{type:[String,Function],default:()=>lj},horizontal:{type:[Boolean],default:!1},modelValue:{type:[Object,String,Number,Boolean],default:void 0},defaultValue:{type:[Object,String,Number,Boolean],default:void 0},form:{type:String,optional:!0},name:{type:String,optional:!0},multiple:{type:[Boolean],default:!1}},inheritAttrs:!1,setup(e,{slots:t,attrs:n,emit:r}){let o=_e(1),s=_e(null),l=_e(null),a=_e(null),c=_e([]),f=_e(""),p=_e(null),h=_e(1);function v(E=T=>T){let T=p.value!==null?c.value[p.value]:null,$=Fv(E(c.value.slice()),k=>ue(k.dataRef.domRef)),P=T?$.indexOf(T):null;return P===-1&&(P=null),{options:$,activeOptionIndex:P}}let y=ce(()=>e.multiple?1:0),[_,w]=Nv(ce(()=>e.modelValue),E=>r("update:modelValue",E),ce(()=>e.defaultValue)),I=ce(()=>_.value===void 0?Tt(y.value,{[1]:[],[0]:void 0}):_.value),O={listboxState:o,value:I,mode:y,compare(E,T){if(typeof e.by=="string"){let $=e.by;return(E==null?void 0:E[$])===(T==null?void 0:T[$])}return e.by(E,T)},orientation:ce(()=>e.horizontal?"horizontal":"vertical"),labelRef:s,buttonRef:l,optionsRef:a,disabled:ce(()=>e.disabled),options:c,searchQuery:f,activeOptionIndex:p,activationTrigger:h,closeListbox(){e.disabled||o.value!==1&&(o.value=1,p.value=null)},openListbox(){e.disabled||o.value!==0&&(o.value=0)},goToOption(E,T,$){if(e.disabled||o.value===1)return;let P=v(),k=Rh(E===xt.Specific?{focus:xt.Specific,id:T}:{focus:E},{resolveItems:()=>P.options,resolveActiveIndex:()=>P.activeOptionIndex,resolveId:A=>A.id,resolveDisabled:A=>A.dataRef.disabled});f.value="",p.value=k,h.value=$!=null?$:1,c.value=P.options},search(E){if(e.disabled||o.value===1)return;let T=f.value!==""?0:1;f.value+=E.toLowerCase();let $=(p.value!==null?c.value.slice(p.value+T).concat(c.value.slice(0,p.value+T)):c.value).find(k=>k.dataRef.textValue.startsWith(f.value)&&!k.dataRef.disabled),P=$?c.value.indexOf($):-1;P===-1||P===p.value||(p.value=P,h.value=1)},clearSearch(){e.disabled||o.value!==1&&f.value!==""&&(f.value="")},registerOption(E,T){let $=v(P=>[...P,{id:E,dataRef:T}]);c.value=$.options,p.value=$.activeOptionIndex},unregisterOption(E){let T=v($=>{let P=$.findIndex(k=>k.id===E);return P!==-1&&$.splice(P,1),$});c.value=T.options,p.value=T.activeOptionIndex,h.value=1},theirOnChange(E){e.disabled||w(E)},select(E){e.disabled||w(Tt(y.value,{[0]:()=>E,[1]:()=>{let T=Ue(O.value.value).slice(),$=Ue(E),P=T.findIndex(k=>O.compare($,Ue(k)));return P===-1?T.push($):T.splice(P,1),T}}))}};jd([l,a],(E,T)=>{var $;O.closeListbox(),Dv(T,Ud.Loose)||(E.preventDefault(),($=ue(l))==null||$.focus())},ce(()=>o.value===0)),Yt(h$,O),Vd(ce(()=>Tt(o.value,{[0]:Pt.Open,[1]:Pt.Closed})));let S=ce(()=>{var E;return(E=ue(l))==null?void 0:E.closest("form")});return gt(()=>{Ft([S],()=>{if(!S.value||e.defaultValue===void 0)return;function E(){O.theirOnChange(e.defaultValue)}return S.value.addEventListener("reset",E),()=>{var T;(T=S.value)==null||T.removeEventListener("reset",E)}},{immediate:!0})}),()=>{let{name:E,modelValue:T,disabled:$,form:P,...k}=e,A={open:o.value===0,disabled:$,value:I.value};return dt(Fe,[...E!=null&&I.value!=null?Uv({[E]:I.value}).map(([H,D])=>dt(_o,Bv({features:to.Hidden,key:H,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:P,disabled:$,name:H,value:D}))):[],St({ourProps:{},theirProps:{...n,...fs(k,["defaultValue","onUpdate:modelValue","horizontal","multiple","by"])},slot:A,slots:t,attrs:n,name:"Listbox"})])}}}),Wv=ve({name:"ListboxLabel",props:{as:{type:[Object,String],default:"label"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n}){var r;let o=(r=e.id)!=null?r:`headlessui-listbox-label-${zt()}`,s=Ua("ListboxLabel");function l(){var a;(a=ue(s.buttonRef))==null||a.focus({preventScroll:!0})}return()=>{let a={open:s.listboxState.value===0,disabled:s.disabled.value},{...c}=e,f={id:o,ref:s.labelRef,onClick:l};return St({ourProps:f,theirProps:c,slot:a,attrs:t,slots:n,name:"ListboxLabel"})}}}),zv=ve({name:"ListboxButton",props:{as:{type:[Object,String],default:"button"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:r}){var o;let s=(o=e.id)!=null?o:`headlessui-listbox-button-${zt()}`,l=Ua("ListboxButton");r({el:l.buttonRef,$el:l.buttonRef});function a(h){switch(h.key){case lt.Space:case lt.Enter:case lt.ArrowDown:h.preventDefault(),l.openListbox(),rn(()=>{var v;(v=ue(l.optionsRef))==null||v.focus({preventScroll:!0}),l.value.value||l.goToOption(xt.First)});break;case lt.ArrowUp:h.preventDefault(),l.openListbox(),rn(()=>{var v;(v=ue(l.optionsRef))==null||v.focus({preventScroll:!0}),l.value.value||l.goToOption(xt.Last)});break}}function c(h){switch(h.key){case lt.Space:h.preventDefault();break}}function f(h){l.disabled.value||(l.listboxState.value===0?(l.closeListbox(),rn(()=>{var v;return(v=ue(l.buttonRef))==null?void 0:v.focus({preventScroll:!0})})):(h.preventDefault(),l.openListbox(),dj(()=>{var v;return(v=ue(l.optionsRef))==null?void 0:v.focus({preventScroll:!0})})))}let p=Hd(ce(()=>({as:e.as,type:t.type})),l.buttonRef);return()=>{var h,v;let y={open:l.listboxState.value===0,disabled:l.disabled.value,value:l.value.value},{..._}=e,w={ref:l.buttonRef,id:s,type:p.value,"aria-haspopup":"listbox","aria-controls":(h=ue(l.optionsRef))==null?void 0:h.id,"aria-expanded":l.listboxState.value===0,"aria-labelledby":l.labelRef.value?[(v=ue(l.labelRef))==null?void 0:v.id,s].join(" "):void 0,disabled:l.disabled.value===!0?!0:void 0,onKeydown:a,onKeyup:c,onClick:f};return St({ourProps:w,theirProps:_,slot:y,attrs:t,slots:n,name:"ListboxButton"})}}}),qv=ve({name:"ListboxOptions",props:{as:{type:[Object,String],default:"ul"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:r}){var o;let s=(o=e.id)!=null?o:`headlessui-listbox-options-${zt()}`,l=Ua("ListboxOptions"),a=_e(null);r({el:l.optionsRef,$el:l.optionsRef});function c(h){switch(a.value&&clearTimeout(a.value),h.key){case lt.Space:if(l.searchQuery.value!=="")return h.preventDefault(),h.stopPropagation(),l.search(h.key);case lt.Enter:if(h.preventDefault(),h.stopPropagation(),l.activeOptionIndex.value!==null){let v=l.options.value[l.activeOptionIndex.value];l.select(v.dataRef.value)}l.mode.value===0&&(l.closeListbox(),rn(()=>{var v;return(v=ue(l.buttonRef))==null?void 0:v.focus({preventScroll:!0})}));break;case Tt(l.orientation.value,{vertical:lt.ArrowDown,horizontal:lt.ArrowRight}):return h.preventDefault(),h.stopPropagation(),l.goToOption(xt.Next);case Tt(l.orientation.value,{vertical:lt.ArrowUp,horizontal:lt.ArrowLeft}):return h.preventDefault(),h.stopPropagation(),l.goToOption(xt.Previous);case lt.Home:case lt.PageUp:return h.preventDefault(),h.stopPropagation(),l.goToOption(xt.First);case lt.End:case lt.PageDown:return h.preventDefault(),h.stopPropagation(),l.goToOption(xt.Last);case lt.Escape:h.preventDefault(),h.stopPropagation(),l.closeListbox(),rn(()=>{var v;return(v=ue(l.buttonRef))==null?void 0:v.focus({preventScroll:!0})});break;case lt.Tab:h.preventDefault(),h.stopPropagation();break;default:h.key.length===1&&(l.search(h.key),a.value=setTimeout(()=>l.clearSearch(),350));break}}let f=ps(),p=ce(()=>f!==null?(f.value&Pt.Open)===Pt.Open:l.listboxState.value===0);return()=>{var h,v;let y={open:l.listboxState.value===0},{..._}=e,w={"aria-activedescendant":l.activeOptionIndex.value===null||(h=l.options.value[l.activeOptionIndex.value])==null?void 0:h.id,"aria-multiselectable":l.mode.value===1?!0:void 0,"aria-labelledby":(v=ue(l.buttonRef))==null?void 0:v.id,"aria-orientation":l.orientation.value,id:s,onKeydown:c,role:"listbox",tabIndex:0,ref:l.optionsRef};return St({ourProps:w,theirProps:_,slot:y,attrs:t,slots:n,features:rr.RenderStrategy|rr.Static,visible:p.value,name:"ListboxOptions"})}}}),Kv=ve({name:"ListboxOption",props:{as:{type:[Object,String],default:"li"},value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1},id:{type:String,default:null}},setup(e,{slots:t,attrs:n,expose:r}){var o;let s=(o=e.id)!=null?o:`headlessui-listbox-option-${zt()}`,l=Ua("ListboxOption"),a=_e(null);r({el:a,$el:a});let c=ce(()=>l.activeOptionIndex.value!==null?l.options.value[l.activeOptionIndex.value].id===s:!1),f=ce(()=>Tt(l.mode.value,{[0]:()=>l.compare(Ue(l.value.value),Ue(e.value)),[1]:()=>Ue(l.value.value).some(E=>l.compare(Ue(E),Ue(e.value)))})),p=ce(()=>Tt(l.mode.value,{[1]:()=>{var E;let T=Ue(l.value.value);return((E=l.options.value.find($=>T.some(P=>l.compare(Ue(P),Ue($.dataRef.value)))))==null?void 0:E.id)===s},[0]:()=>f.value})),h=sj(a),v=ce(()=>({disabled:e.disabled,value:e.value,get textValue(){return h()},domRef:a}));gt(()=>l.registerOption(s,v)),Zt(()=>l.unregisterOption(s)),gt(()=>{Ft([l.listboxState,f],()=>{l.listboxState.value===0&&f.value&&Tt(l.mode.value,{[1]:()=>{p.value&&l.goToOption(xt.Specific,s)},[0]:()=>{l.goToOption(xt.Specific,s)}})},{immediate:!0})}),jt(()=>{l.listboxState.value===0&&c.value&&l.activationTrigger.value!==0&&rn(()=>{var E,T;return(T=(E=ue(a))==null?void 0:E.scrollIntoView)==null?void 0:T.call(E,{block:"nearest"})})});function y(E){if(e.disabled)return E.preventDefault();l.select(e.value),l.mode.value===0&&(l.closeListbox(),rn(()=>{var T;return(T=ue(l.buttonRef))==null?void 0:T.focus({preventScroll:!0})}))}function _(){if(e.disabled)return l.goToOption(xt.Nothing);l.goToOption(xt.Specific,s)}let w=V2();function I(E){w.update(E)}function O(E){w.wasMoved(E)&&(e.disabled||c.value||l.goToOption(xt.Specific,s,0))}function S(E){w.wasMoved(E)&&(e.disabled||c.value&&l.goToOption(xt.Nothing))}return()=>{let{disabled:E}=e,T={active:c.value,selected:f.value,disabled:E},{value:$,disabled:P,...k}=e,A={id:s,ref:a,role:"option",tabIndex:E===!0?void 0:-1,"aria-disabled":E===!0?!0:void 0,"aria-selected":f.value,disabled:void 0,onClick:y,onFocus:_,onPointerenter:I,onMouseenter:I,onPointermove:O,onMousemove:O,onPointerleave:S,onMouseleave:S};return St({ourProps:A,theirProps:k,slot:T,attrs:n,slots:t,name:"ListboxOption"})}}});var fj=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(fj||{});let m$=Symbol("PopoverContext");function Wd(e){let t=kt(m$,null);if(t===null){let n=new Error(`<${e} /> is missing a parent <${b$.name} /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Wd),n}return t}let v$=Symbol("PopoverGroupContext");function g$(){return kt(v$,null)}let y$=Symbol("PopoverPanelContext");function pj(){return kt(y$,null)}let b$=ve({name:"Popover",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"}},setup(e,{slots:t,attrs:n,expose:r}){var o;let s=_e(null);r({el:s,$el:s});let l=_e(1),a=_e(null),c=_e(null),f=_e(null),p=_e(null),h=ce(()=>jr(s)),v=ce(()=>{var $,P;if(!ue(a)||!ue(p))return!1;for(let K of document.querySelectorAll("body > *"))if(Number(K==null?void 0:K.contains(ue(a)))^Number(K==null?void 0:K.contains(ue(p))))return!0;let k=Bd(),A=k.indexOf(ue(a)),H=(A+k.length-1)%k.length,D=(A+1)%k.length,F=k[H],z=k[D];return!(($=ue(p))!=null&&$.contains(F))&&!((P=ue(p))!=null&&P.contains(z))}),y={popoverState:l,buttonId:_e(null),panelId:_e(null),panel:p,button:a,isPortalled:v,beforePanelSentinel:c,afterPanelSentinel:f,togglePopover(){l.value=Tt(l.value,{[0]:1,[1]:0})},closePopover(){l.value!==1&&(l.value=1)},close($){y.closePopover();let P=(()=>$?$ instanceof HTMLElement?$:$.value instanceof HTMLElement?ue($):ue(y.button):ue(y.button))();P==null||P.focus()}};Yt(m$,y),Vd(ce(()=>Tt(l.value,{[0]:Pt.Open,[1]:Pt.Closed})));let _={buttonId:y.buttonId,panelId:y.panelId,close(){y.closePopover()}},w=g$(),I=w==null?void 0:w.registerPopover,[O,S]=f$(),E=s$({mainTreeNodeRef:w==null?void 0:w.mainTreeNodeRef,portals:O,defaultContainers:[a,p]});function T(){var $,P,k,A;return(A=w==null?void 0:w.isFocusWithinPopoverGroup())!=null?A:(($=h.value)==null?void 0:$.activeElement)&&(((P=ue(a))==null?void 0:P.contains(h.value.activeElement))||((k=ue(p))==null?void 0:k.contains(h.value.activeElement)))}return jt(()=>I==null?void 0:I(_)),jv((o=h.value)==null?void 0:o.defaultView,"focus",$=>{var P,k;$.target!==window&&$.target instanceof HTMLElement&&l.value===0&&(T()||a&&p&&(E.contains($.target)||(P=ue(y.beforePanelSentinel))!=null&&P.contains($.target)||(k=ue(y.afterPanelSentinel))!=null&&k.contains($.target)||y.closePopover()))},!0),jd(E.resolveContainers,($,P)=>{var k;y.closePopover(),Dv(P,Ud.Loose)||($.preventDefault(),(k=ue(a))==null||k.focus())},ce(()=>l.value===0)),()=>{let $={open:l.value===0,close:y.close};return dt(Fe,[dt(S,{},()=>St({theirProps:{...e,...n},ourProps:{ref:s},slot:$,slots:t,attrs:n,name:"Popover"})),dt(E.MainTreeNode)])}}}),hj=ve({name:"PopoverButton",props:{as:{type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1},id:{type:String,default:null}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:r}){var o;let s=(o=e.id)!=null?o:`headlessui-popover-button-${zt()}`,l=Wd("PopoverButton"),a=ce(()=>jr(l.button));r({el:l.button,$el:l.button}),gt(()=>{l.buttonId.value=s}),Zt(()=>{l.buttonId.value=null});let c=g$(),f=c==null?void 0:c.closeOthers,p=pj(),h=ce(()=>p===null?!1:p.value===l.panelId.value),v=_e(null),y=`headlessui-focus-sentinel-${zt()}`;h.value||jt(()=>{l.button.value=ue(v)});let _=Hd(ce(()=>({as:e.as,type:t.type})),v);function w($){var P,k,A,H,D;if(h.value){if(l.popoverState.value===1)return;switch($.key){case lt.Space:case lt.Enter:$.preventDefault(),(k=(P=$.target).click)==null||k.call(P),l.closePopover(),(A=ue(l.button))==null||A.focus();break}}else switch($.key){case lt.Space:case lt.Enter:$.preventDefault(),$.stopPropagation(),l.popoverState.value===1&&(f==null||f(l.buttonId.value)),l.togglePopover();break;case lt.Escape:if(l.popoverState.value!==0)return f==null?void 0:f(l.buttonId.value);if(!ue(l.button)||(H=a.value)!=null&&H.activeElement&&!((D=ue(l.button))!=null&&D.contains(a.value.activeElement)))return;$.preventDefault(),$.stopPropagation(),l.closePopover();break}}function I($){h.value||$.key===lt.Space&&$.preventDefault()}function O($){var P,k;e.disabled||(h.value?(l.closePopover(),(P=ue(l.button))==null||P.focus()):($.preventDefault(),$.stopPropagation(),l.popoverState.value===1&&(f==null||f(l.buttonId.value)),l.togglePopover(),(k=ue(l.button))==null||k.focus()))}function S($){$.preventDefault(),$.stopPropagation()}let E=Hv();function T(){let $=ue(l.panel);if(!$)return;function P(){Tt(E.value,{[pr.Forwards]:()=>Gr($,Pn.First),[pr.Backwards]:()=>Gr($,Pn.Last)})===ga.Error&&Gr(Bd().filter(k=>k.dataset.headlessuiFocusGuard!=="true"),Tt(E.value,{[pr.Forwards]:Pn.Next,[pr.Backwards]:Pn.Previous}),{relativeTo:ue(l.button)})}P()}return()=>{let $=l.popoverState.value===0,P={open:$},{...k}=e,A=h.value?{ref:v,type:_.value,onKeydown:w,onClick:O}:{ref:v,id:s,type:_.value,"aria-expanded":l.popoverState.value===0,"aria-controls":ue(l.panel)?l.panelId.value:void 0,disabled:e.disabled?!0:void 0,onKeydown:w,onKeyup:I,onClick:O,onMousedown:S};return dt(Fe,[St({ourProps:A,theirProps:{...t,...k},slot:P,attrs:t,slots:n,name:"PopoverButton"}),$&&!h.value&&l.isPortalled.value&&dt(_o,{id:y,features:to.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:T})])}}});ve({name:"PopoverOverlay",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0}},setup(e,{attrs:t,slots:n}){let r=Wd("PopoverOverlay"),o=`headlessui-popover-overlay-${zt()}`,s=ps(),l=ce(()=>s!==null?(s.value&Pt.Open)===Pt.Open:r.popoverState.value===0);function a(){r.closePopover()}return()=>{let c={open:r.popoverState.value===0};return St({ourProps:{id:o,"aria-hidden":!0,onClick:a},theirProps:e,slot:c,attrs:t,slots:n,features:rr.RenderStrategy|rr.Static,visible:l.value,name:"PopoverOverlay"})}}});let mj=ve({name:"PopoverPanel",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},focus:{type:Boolean,default:!1},id:{type:String,default:null}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:r}){var o;let s=(o=e.id)!=null?o:`headlessui-popover-panel-${zt()}`,{focus:l}=e,a=Wd("PopoverPanel"),c=ce(()=>jr(a.panel)),f=`headlessui-focus-sentinel-before-${zt()}`,p=`headlessui-focus-sentinel-after-${zt()}`;r({el:a.panel,$el:a.panel}),gt(()=>{a.panelId.value=s}),Zt(()=>{a.panelId.value=null}),Yt(y$,a.panelId),jt(()=>{var S,E;if(!l||a.popoverState.value!==0||!a.panel)return;let T=(S=c.value)==null?void 0:S.activeElement;(E=ue(a.panel))!=null&&E.contains(T)||Gr(ue(a.panel),Pn.First)});let h=ps(),v=ce(()=>h!==null?(h.value&Pt.Open)===Pt.Open:a.popoverState.value===0);function y(S){var E,T;switch(S.key){case lt.Escape:if(a.popoverState.value!==0||!ue(a.panel)||c.value&&!((E=ue(a.panel))!=null&&E.contains(c.value.activeElement)))return;S.preventDefault(),S.stopPropagation(),a.closePopover(),(T=ue(a.button))==null||T.focus();break}}function _(S){var E,T,$,P,k;let A=S.relatedTarget;A&&ue(a.panel)&&((E=ue(a.panel))!=null&&E.contains(A)||(a.closePopover(),(($=(T=ue(a.beforePanelSentinel))==null?void 0:T.contains)!=null&&$.call(T,A)||(k=(P=ue(a.afterPanelSentinel))==null?void 0:P.contains)!=null&&k.call(P,A))&&A.focus({preventScroll:!0})))}let w=Hv();function I(){let S=ue(a.panel);if(!S)return;function E(){Tt(w.value,{[pr.Forwards]:()=>{var T;Gr(S,Pn.First)===ga.Error&&((T=ue(a.afterPanelSentinel))==null||T.focus())},[pr.Backwards]:()=>{var T;(T=ue(a.button))==null||T.focus({preventScroll:!0})}})}E()}function O(){let S=ue(a.panel);if(!S)return;function E(){Tt(w.value,{[pr.Forwards]:()=>{let T=ue(a.button),$=ue(a.panel);if(!T)return;let P=Bd(),k=P.indexOf(T),A=P.slice(0,k+1),H=[...P.slice(k+1),...A];for(let D of H.slice())if(D.dataset.headlessuiFocusGuard==="true"||$!=null&&$.contains(D)){let F=H.indexOf(D);F!==-1&&H.splice(F,1)}Gr(H,Pn.First,{sorted:!1})},[pr.Backwards]:()=>{var T;Gr(S,Pn.Previous)===ga.Error&&((T=ue(a.button))==null||T.focus())}})}E()}return()=>{let S={open:a.popoverState.value===0,close:a.close},{focus:E,...T}=e,$={ref:a.panel,id:s,onKeydown:y,onFocusout:l&&a.popoverState.value===0?_:void 0,tabIndex:-1};return St({ourProps:$,theirProps:{...t,...T},attrs:t,slot:S,slots:{...n,default:(...P)=>{var k;return[dt(Fe,[v.value&&a.isPortalled.value&&dt(_o,{id:f,ref:a.beforePanelSentinel,features:to.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:I}),(k=n.default)==null?void 0:k.call(n,...P),v.value&&a.isPortalled.value&&dt(_o,{id:p,ref:a.afterPanelSentinel,features:to.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:O})])]}},features:rr.RenderStrategy|rr.Static,visible:v.value,name:"PopoverPanel"})}}});ve({name:"PopoverGroup",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"}},setup(e,{attrs:t,slots:n,expose:r}){let o=_e(null),s=nd([]),l=ce(()=>jr(o)),a=KU();r({el:o,$el:o});function c(v){let y=s.value.indexOf(v);y!==-1&&s.value.splice(y,1)}function f(v){return s.value.push(v),()=>{c(v)}}function p(){var v;let y=l.value;if(!y)return!1;let _=y.activeElement;return(v=ue(o))!=null&&v.contains(_)?!0:s.value.some(w=>{var I,O;return((I=y.getElementById(w.buttonId.value))==null?void 0:I.contains(_))||((O=y.getElementById(w.panelId.value))==null?void 0:O.contains(_))})}function h(v){for(let y of s.value)y.buttonId.value!==v&&y.close()}return Yt(v$,{registerPopover:f,unregisterPopover:c,isFocusWithinPopoverGroup:p,closeOthers:h,mainTreeNodeRef:a.mainTreeNodeRef}),()=>dt(Fe,[St({ourProps:{ref:o},theirProps:{...e,...t},slot:{},attrs:t,slots:n,name:"PopoverGroup"}),dt(a.MainTreeNode)])}});let _$=Symbol("LabelContext");function w$(){let e=kt(_$,null);if(e===null){let t=new Error("You used a <Label /> component, but it is not inside a parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,w$),t}return e}function vj({slot:e={},name:t="Label",props:n={}}={}){let r=_e([]);function o(s){return r.value.push(s),()=>{let l=r.value.indexOf(s);l!==-1&&r.value.splice(l,1)}}return Yt(_$,{register:o,slot:e,name:t,props:n}),ce(()=>r.value.length>0?r.value.join(" "):void 0)}let gj=ve({name:"Label",props:{as:{type:[Object,String],default:"label"},passive:{type:[Boolean],default:!1},id:{type:String,default:null}},setup(e,{slots:t,attrs:n}){var r;let o=(r=e.id)!=null?r:`headlessui-label-${zt()}`,s=w$();return gt(()=>Zt(s.register(o))),()=>{let{name:l="Label",slot:a={},props:c={}}=s,{passive:f,...p}=e,h={...Object.entries(c).reduce((v,[y,_])=>Object.assign(v,{[y]:jn(_)}),{}),id:o};return f&&(delete h.onClick,delete h.htmlFor,delete p.onClick),St({ourProps:h,theirProps:p,slot:a,attrs:n,slots:t,name:l})}}}),S$=Symbol("GroupContext"),yj=ve({name:"SwitchGroup",props:{as:{type:[Object,String],default:"template"}},setup(e,{slots:t,attrs:n}){let r=_e(null),o=vj({name:"SwitchLabel",props:{htmlFor:ce(()=>{var l;return(l=r.value)==null?void 0:l.id}),onClick(l){r.value&&(l.currentTarget.tagName==="LABEL"&&l.preventDefault(),r.value.click(),r.value.focus({preventScroll:!0}))}}}),s=c$({name:"SwitchDescription"});return Yt(S$,{switchRef:r,labelledby:o,describedby:s}),()=>St({theirProps:e,ourProps:{},slot:{},slots:t,attrs:n,name:"SwitchGroup"})}}),bj=ve({name:"Switch",emits:{"update:modelValue":e=>!0},props:{as:{type:[Object,String],default:"button"},modelValue:{type:Boolean,default:void 0},defaultChecked:{type:Boolean,optional:!0},form:{type:String,optional:!0},name:{type:String,optional:!0},value:{type:String,optional:!0},id:{type:String,default:null},disabled:{type:Boolean,default:!1},tabIndex:{type:Number,default:0}},inheritAttrs:!1,setup(e,{emit:t,attrs:n,slots:r,expose:o}){var s;let l=(s=e.id)!=null?s:`headlessui-switch-${zt()}`,a=kt(S$,null),[c,f]=Nv(ce(()=>e.modelValue),S=>t("update:modelValue",S),ce(()=>e.defaultChecked));function p(){f(!c.value)}let h=_e(null),v=a===null?h:a.switchRef,y=Hd(ce(()=>({as:e.as,type:n.type})),v);o({el:v,$el:v});function _(S){S.preventDefault(),p()}function w(S){S.key===lt.Space?(S.preventDefault(),p()):S.key===lt.Enter&&AU(S.currentTarget)}function I(S){S.preventDefault()}let O=ce(()=>{var S,E;return(E=(S=ue(v))==null?void 0:S.closest)==null?void 0:E.call(S,"form")});return gt(()=>{Ft([O],()=>{if(!O.value||e.defaultChecked===void 0)return;function S(){f(e.defaultChecked)}return O.value.addEventListener("reset",S),()=>{var E;(E=O.value)==null||E.removeEventListener("reset",S)}},{immediate:!0})}),()=>{let{name:S,value:E,form:T,tabIndex:$,...P}=e,k={checked:c.value},A={id:l,ref:v,role:"switch",type:y.value,tabIndex:$===-1?0:$,"aria-checked":c.value,"aria-labelledby":a==null?void 0:a.labelledby.value,"aria-describedby":a==null?void 0:a.describedby.value,onClick:_,onKeyup:w,onKeypress:I};return dt(Fe,[S!=null&&c.value!=null?dt(_o,Bv({features:to.Hidden,as:"input",type:"checkbox",hidden:!0,readOnly:!0,checked:c.value,form:T,disabled:P.disabled,name:S,value:E})):null,St({ourProps:A,theirProps:{...n,...fs(P,["modelValue","defaultChecked"])},slot:k,attrs:n,slots:r,name:"Switch"})])}}}),_j=gj;function wj(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function Fp(e,...t){e&&t.length>0&&e.classList.add(...t)}function Yu(e,...t){e&&t.length>0&&e.classList.remove(...t)}var Bh=(e=>(e.Finished="finished",e.Cancelled="cancelled",e))(Bh||{});function Sj(e,t){let n=wi();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:o}=getComputedStyle(e),[s,l]=[r,o].map(a=>{let[c=0]=a.split(",").filter(Boolean).map(f=>f.includes("ms")?parseFloat(f):parseFloat(f)*1e3).sort((f,p)=>p-f);return c});return s!==0?n.setTimeout(()=>t("finished"),s+l):t("finished"),n.add(()=>t("cancelled")),n.dispose}function U1(e,t,n,r,o,s){let l=wi(),a=s!==void 0?wj(s):()=>{};return Yu(e,...o),Fp(e,...t,...n),l.nextFrame(()=>{Yu(e,...n),Fp(e,...r),l.add(Sj(e,c=>(Yu(e,...r,...t),Fp(e,...o),a(c))))}),l.add(()=>Yu(e,...t,...n,...r,...o)),l.add(()=>a("cancelled")),l.dispose}function Bi(e=""){return e.split(/\s+/).filter(t=>t.length>1)}let Gv=Symbol("TransitionContext");var Ej=(e=>(e.Visible="visible",e.Hidden="hidden",e))(Ej||{});function xj(){return kt(Gv,null)!==null}function $j(){let e=kt(Gv,null);if(e===null)throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");return e}function Cj(){let e=kt(Xv,null);if(e===null)throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");return e}let Xv=Symbol("NestingContext");function zd(e){return"children"in e?zd(e.children):e.value.filter(({state:t})=>t==="visible").length>0}function E$(e){let t=_e([]),n=_e(!1);gt(()=>n.value=!0),Zt(()=>n.value=!1);function r(s,l=fi.Hidden){let a=t.value.findIndex(({id:c})=>c===s);a!==-1&&(Tt(l,{[fi.Unmount](){t.value.splice(a,1)},[fi.Hidden](){t.value[a].state="hidden"}}),!zd(t)&&n.value&&(e==null||e()))}function o(s){let l=t.value.find(({id:a})=>a===s);return l?l.state!=="visible"&&(l.state="visible"):t.value.push({id:s,state:"visible"}),()=>r(s,fi.Unmount)}return{children:t,register:o,unregister:r}}let x$=rr.RenderStrategy,$$=ve({props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(e,{emit:t,attrs:n,slots:r,expose:o}){let s=_e(0);function l(){s.value|=Pt.Opening,t("beforeEnter")}function a(){s.value&=~Pt.Opening,t("afterEnter")}function c(){s.value|=Pt.Closing,t("beforeLeave")}function f(){s.value&=~Pt.Closing,t("afterLeave")}if(!xj()&&CU())return()=>dt(C$,{...e,onBeforeEnter:l,onAfterEnter:a,onBeforeLeave:c,onAfterLeave:f},r);let p=_e(null),h=ce(()=>e.unmount?fi.Unmount:fi.Hidden);o({el:p,$el:p});let{show:v,appear:y}=$j(),{register:_,unregister:w}=Cj(),I=_e(v.value?"visible":"hidden"),O={value:!0},S=zt(),E={value:!1},T=E$(()=>{!E.value&&I.value!=="hidden"&&(I.value="hidden",w(S),f())});gt(()=>{let K=_(S);Zt(K)}),jt(()=>{if(h.value===fi.Hidden&&S){if(v.value&&I.value!=="visible"){I.value="visible";return}Tt(I.value,{hidden:()=>w(S),visible:()=>_(S)})}});let $=Bi(e.enter),P=Bi(e.enterFrom),k=Bi(e.enterTo),A=Bi(e.entered),H=Bi(e.leave),D=Bi(e.leaveFrom),F=Bi(e.leaveTo);gt(()=>{jt(()=>{if(I.value==="visible"){let K=ue(p);if(K instanceof Comment&&K.data==="")throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}})});function z(K){let te=O.value&&!y.value,we=ue(p);!we||!(we instanceof HTMLElement)||te||(E.value=!0,v.value&&l(),v.value||c(),K(v.value?U1(we,$,P,k,A,be=>{E.value=!1,be===Bh.Finished&&a()}):U1(we,H,D,F,A,be=>{E.value=!1,be===Bh.Finished&&(zd(T)||(I.value="hidden",w(S),f()))})))}return gt(()=>{Ft([v],(K,te,we)=>{z(we),O.value=!1},{immediate:!0})}),Yt(Xv,T),Vd(ce(()=>Tt(I.value,{visible:Pt.Open,hidden:Pt.Closed})|s.value)),()=>{let{appear:K,show:te,enter:we,enterFrom:be,enterTo:Oe,entered:Ae,leave:Ye,leaveFrom:ft,leaveTo:Le,...Ke}=e,Q={ref:p},ae={...Ke,...y.value&&v.value&&Fa.isServer?{class:wt([n.class,Ke.class,...$,...P])}:{}};return St({theirProps:ae,ourProps:Q,slot:{},slots:r,attrs:n,features:x$,visible:I.value==="visible",name:"TransitionChild"})}}}),Tj=$$,C$=ve({inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(e,{emit:t,attrs:n,slots:r}){let o=ps(),s=ce(()=>e.show===null&&o!==null?(o.value&Pt.Open)===Pt.Open:e.show);jt(()=>{if(![!0,!1].includes(s.value))throw new Error('A <Transition /> is used but it is missing a `:show="true | false"` prop.')});let l=_e(s.value?"visible":"hidden"),a=E$(()=>{l.value="hidden"}),c=_e(!0),f={show:s,appear:ce(()=>e.appear||!c.value)};return gt(()=>{jt(()=>{c.value=!1,s.value?l.value="visible":zd(a)||(l.value="hidden")})}),Yt(Xv,a),Yt(Gv,f),()=>{let p=fs(e,["show","appear","unmount","onBeforeEnter","onBeforeLeave","onAfterEnter","onAfterLeave"]),h={unmount:e.unmount};return St({ourProps:{...h,as:"template"},theirProps:{},slot:{},slots:{...r,default:()=>[dt(Tj,{onBeforeEnter:()=>t("beforeEnter"),onAfterEnter:()=>t("afterEnter"),onBeforeLeave:()=>t("beforeLeave"),onAfterLeave:()=>t("afterLeave"),...n,...h,...p},r.default)]},attrs:{},features:x$,visible:l.value==="visible",name:"Transition"})}}});const Oj=ve({components:{Dialog:nj,DialogOverlay:rj,TransitionChild:$$,TransitionRoot:C$,XIcon:Da},props:{open:{type:Boolean,default:!0},size:{type:String,default:"small"}},methods:{close(){this.$emit("close")}}}),Aj={class:"fixed inset-0 overflow-y-auto font-sans",style:{"z-index":"10000"}},Ij={class:"flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0"},Pj=g("span",{class:"hidden sm:inline-block sm:align-middle sm:h-screen","aria-hidden":"true"},"\u200B",-1),kj={class:"hidden sm:block absolute top-0 right-0 pt-4 pr-4"},Rj=g("span",{class:"sr-only"},"Close",-1);function Lj(e,t,n,r,o,s){const l=X("DialogOverlay"),a=X("TransitionChild"),c=X("XIcon"),f=X("Dialog"),p=X("TransitionRoot");return N(),bt(p,{as:"template",show:e.open},{default:ye(()=>[q(f,{as:"div",onClose:t[1]||(t[1]=h=>e.close()),"data-client":"podlove"},{default:ye(()=>[g("div",Aj,[g("div",Ij,[q(a,{as:"template",enter:"ease-out duration-300","enter-from":"opacity-0","enter-to":"opacity-100",leave:"ease-in duration-200","leave-from":"opacity-100","leave-to":"opacity-0"},{default:ye(()=>[q(l,{class:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"})]),_:1}),Pj,q(a,{as:"template",enter:"ease-out duration-300","enter-from":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95","enter-to":"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200","leave-from":"opacity-100 translate-y-0 sm:scale-100","leave-to":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"},{default:ye(()=>[g("div",{class:wt(["relative inline-block align-bottom bg-white rounded-lg px-4 pt-5 pb-4 text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:w-full sm:p-6",{"sm:max-w-sm":e.size==="small","sm:max-w-md":e.size==="medium"}])},[g("div",kj,[g("button",{type:"button",class:"bg-white rounded-md text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500",onClick:t[0]||(t[0]=h=>e.close())},[Rj,q(c,{class:"h-6 w-6","aria-hidden":"true"})])]),gr(e.$slots,"default")],2)]),_:3})])])]),_:3})]),_:3},8,["show"])}var ja=Be(Oj,[["render",Lj]]);const Nj=ve({props:{variant:{type:String,default:"default"},size:{type:String,default:"medium"},disabled:{type:Boolean,default:!1}},computed:{variantClass(){switch(this.variant){case"default":return"focus:outline-none text-gray-700 bg-white border border-gray-300 hover:bg-gray-50 focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 disabled:bg-gray-100";case"primary":return"focus:ring-offset-2 text-white focus:ring-indigo-500 bg-indigo-600 hover:bg-indigo-700 disabled:bg-indigo-300";case"primary-disabled":return"focus:ring-offset-2 text-white focus:ring-indigo-500 bg-indigo-600 opacity-50 cursor-not-allowed";case"secondary":return"focus:ring-offset-2 text-indigo-700 focus:ring-indigo-500 bg-indigo-100 hover:bg-indigo-200 disabled:bg-indigo-50";case"secondary-disabled":return"focus:ring-offset-2 text-indigo-700 focus:ring-indigo-500 bg-indigo-100 disabled:bg-indigo-50 opacity-50 cursor-not-allowed";case"danger":return"bg-red-600 text-white hover:bg-red-700 focus:ring-2 focus:ring-offset-2 focus:ring-red-500 disabled:bg-red-300"}},sizeClass(){switch(this.size){case"small":return"px-2.5 py-1.5 text-xs font-medium rounded ";case"medium":return"px-3 py-2 text-sm leading-4 font-medium rounded-md";case"large":return"px-6 py-3 text-base font-medium rounded-md"}}}}),Mj=["disabled"];function Dj(e,t,n,r,o,s){return N(),V("button",{type:"button",class:wt(["inline-flex items-center focus:outline-none focus:ring-2 border border-transparent shadow-sm whitespace-nowrap disabled:opacity-75",[e.variantClass,e.sizeClass]]),disabled:e.disabled},[gr(e.$slots,"default")],10,Mj)}var Vn=Be(Nj,[["render",Dj]]);const Fj=ve({components:{PodloveButton:Vn,Modal:ja,PencilIcon:D2,XIcon:Da},setup(){return{state:yt({poster:G.episode.poster,episodePoster:G.episode.episodePoster,asset:G.settings.imageAsset}),dispatch:it().dispatch}},data(){return{modalOpen:!1,inputValue:null}},computed:{posterStyle(){const e=this.state.episodePoster||this.state.poster;return e===null?{}:{"background-image":`url(${e})`}}},methods:{openModal(){this.modalOpen=!0},closeModal(){this.modalOpen=!1},selectImage(){this.dispatch(cD())},updatePoster(e){const t=Y.exports.get(e,["target","value"],null);this.dispatch($t({prop:"episode_poster",value:t}))}}}),Bj={class:"border-gray-200 border-b pb-2 px-4 -mx-6 mb-4"},Uj={class:"text-lg leading-6 font-medium text-gray-900"},jj={class:"relative"},Hj=["value"],Vj=["title"],Wj={class:"mt-2 text-sm text-gray-500"},zj={class:"block text-sm font-medium text-gray-700"},qj={key:0,class:"absolute z-10 left-0 top-0 w-full h-full flex justify-center items-center bg-white bg-opacity-40 hover:opacity-0 text-gray-500 opacity-100"},Kj={key:1,class:"absolute z-10 left-0 top-0 w-full h-full flex flex-col justify-center items-center bg-white bg-opacity-50 text-gray-500 opacity-0 hover:opacity-100"},Gj={class:"w-full text-center"},Xj={class:"w-full text-center"},Jj={class:"w-full text-center"};function Yj(e,t,n,r,o,s){const l=X("x-icon"),a=X("modal"),c=X("pencil-icon"),f=X("podlove-button");return N(),V("div",null,[q(a,{size:"medium",open:e.modalOpen,onClose:t[2]||(t[2]=p=>e.closeModal())},{default:ye(()=>[g("div",Bj,[g("h3",Uj,U(e.__("Episode Poster","podlove-podcasting-plugin-for-wordpress")),1)]),g("div",jj,[g("input",{name:"episode-poster",type:"text",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md pr-8",value:e.state.episodePoster,onChange:t[0]||(t[0]=p=>e.updatePoster(p))},null,40,Hj),g("button",{class:"absolute right-2 top-1/2 -mt-3 text-gray-400 hover:text-gray-700",title:e.__("Clear Input","podlove-podcasting-plugin-for-wordpress"),onClick:t[1]||(t[1]=p=>e.updatePoster(null))},[q(l,{class:"w-6 h-6"})],8,Vj)]),g("p",Wj,U(e.__("Enter URL or select image from media library. Apple/iTunes recommends 3000 x 3000 pixel JPG or PNG","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["open"]),g("label",zj,U(e.__("Poster","podlove-podcasting-plugin-for-wordpress")),1),g("div",{class:"border shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block relative w-44 h-44 sm:text-sm border-gray-300 rounded-md mt-1 overflow-hidden bg-cover bg-no-repeat bg-center",style:as(e.posterStyle)},[e.state.asset==="manual"?(N(),V("div",qj,[q(c,{class:"h-6 w-6","aria-hidden":"true"})])):qe("",!0),e.state.asset==="manual"?(N(),V("div",Kj,[q(f,{onClick:t[3]||(t[3]=p=>e.openModal()),class:"w-32 mb-2"},{default:ye(()=>[g("span",Gj,U(e.__("URL","podlove-podcasting-plugin-for-wordpress")),1)]),_:1}),q(f,{class:"w-32 text-center mb-2",onClick:t[4]||(t[4]=p=>e.selectImage())},{default:ye(()=>[g("span",Xj,U(e.__("Media","podlove-podcasting-plugin-for-wordpress")),1)]),_:1}),q(f,{variant:"danger",class:"w-32 text-center",disabled:e.state.episodePoster===null,onClick:t[5]||(t[5]=p=>e.updatePoster(null))},{default:ye(()=>[g("span",Jj,U(e.__("Reset","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["disabled"])])):qe("",!0)],4)])}var Zj=Be(Fj,[["render",Yj]]);const Qj=ve({components:{Module:Nn},setup(){return{state:yt({number:G.episode.number}),dispatch:it().dispatch}},methods:{updateNumber(e){this.dispatch($t({prop:"number",value:e.target.value}))}}}),eH={for:"episode-number",class:"block text-sm font-medium text-gray-700"},tH={class:"mt-1 mb-1"},nH=["value"],rH={class:"mt-2 text-sm text-gray-500"};function oH(e,t,n,r,o,s){return N(),V("div",null,[g("label",eH,U(e.__("Number","podlove-podcasting-plugin-for-wordpress")),1),g("div",tH,[g("input",{name:"episode-number",type:"number",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",value:e.state.number,onInput:t[0]||(t[0]=l=>e.updateNumber(l))},null,40,nH)]),g("p",rH,U(e.__("An episode number (1, 2, 3 etc.)","podlove-podcasting-plugin-for-wordpress")),1)])}var iH=Be(Qj,[["render",oH]]);const sH=ve({setup(){return{state:yt({explicit:G.episode.explicit}),dispatch:it().dispatch}},methods:{updateExplicit(e){this.dispatch($t({prop:"explicit",value:e.target.checked}))}}}),lH={class:"relative flex items-start"},aH={class:"flex items-center h-5"},uH=["checked"],cH={class:"ml-3 text-sm"},dH={for:"explicit-content",class:"font-medium text-gray-700"},fH={class:"text-gray-500"};function pH(e,t,n,r,o,s){return N(),V("div",lH,[g("div",aH,[g("input",{id:"explicit-content",type:"checkbox",class:"focus:ring-indigo-500 h-4 w-4 text-indigo-600 border-gray-300 rounded",checked:e.state.explicit,onInput:t[0]||(t[0]=l=>e.updateExplicit(l))},null,40,uH)]),g("div",cH,[g("label",dH,U(e.state.explicit?e.__("Explicit Content!","podlove-podcasting-plugin-for-wordpress"):e.__("Explicit Content?","podlove-podcasting-plugin-for-wordpress")),1),g("p",fH,U(e.__("For example, profanity or content that may not be suitable for children","podlove-podcasting-plugin-for-wordpress")),1)])])}var hH=Be(sH,[["render",pH]]);const mH=ve({components:{Module:Nn},setup(){return{state:yt({title:G.episode.title,post_title:G.post.title}),dispatch:it().dispatch}},methods:{updateTitle(e){this.dispatch($t({prop:"title",value:e.target.value}))}}}),vH={for:"episode-title",class:"block text-sm font-medium text-gray-700"},gH={class:"mt-1"},yH=["value","placeholder"],bH={class:"mt-2 text-sm text-gray-500"};function _H(e,t,n,r,o,s){return N(),V("div",null,[g("label",vH,U(e.__("Title","podlove-podcasting-plugin-for-wordpress")),1),g("div",gH,[g("input",{name:"episode-title",type:"text",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",value:e.state.title,placeholder:e.state.post_title,onInput:t[0]||(t[0]=l=>e.updateTitle(l))},null,40,yH)]),g("p",bH,U(e.__("Clear, concise name for your episode. It is recommended to not include the podcast title, episode number, season number or date in this tag.","podlove-podcasting-plugin-for-wordpress")),1)])}var wH=Be(mH,[["render",_H]]);const SH=ve({setup(){const e=yt({subtitle:G.episode.subtitle}),t=ce(()=>{var n;return 255-(((n=e==null?void 0:e.subtitle)==null?void 0:n.length)||"")});return{state:e,charactersLeft:t,dispatch:it().dispatch}},methods:{updateSubtitle(e){this.dispatch($t({prop:"subtitle",value:e.target.value}))}}}),EH={for:"subtitle",class:"block text-sm font-medium text-gray-700"},xH={class:"mt-1"},$H=["value"],CH={class:"mt-2 text-sm text-gray-500 flex justify-between"};function TH(e,t,n,r,o,s){return N(),V("div",null,[g("label",EH,U(e.__("Subtitle","podlove-podcasting-plugin-for-wordpress")),1),g("div",xH,[g("textarea",{id:"subtitle",name:"subtitle",maxlength:"250",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 mt-1 block w-full sm:text-sm border border-gray-300 rounded-md resize-y",value:e.state.subtitle,onInput:t[0]||(t[0]=l=>e.updateSubtitle(l))},null,40,$H)]),g("p",CH,[g("span",null,U(e.__("Single sentence describing the episode.","podlove-podcasting-plugin-for-wordpress")),1),g("span",null,U(e.charactersLeft),1)])])}var OH=Be(SH,[["render",TH]]);const AH=ve({setup(){const e=yt({summary:G.episode.summary}),t=ce(()=>{var n;return 4e3-(((n=e==null?void 0:e.summary)==null?void 0:n.length)||"")});return{state:e,charactersLeft:t,dispatch:it().dispatch}},methods:{updateSummary(e){this.dispatch($t({prop:"summary",value:e.target.value}))}}}),IH={for:"summary",class:"block text-sm font-medium text-gray-700"},PH={class:"mt-1"},kH=["value"],RH={class:"mt-2 text-sm text-gray-500 flex justify-end"};function LH(e,t,n,r,o,s){return N(),V("div",null,[g("label",IH,U(e.__("Summary","podlove-podcasting-plugin-for-wordpress")),1),g("div",PH,[g("textarea",{id:"summary",name:"summary",maxlength:"4000",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 mt-1 block w-full sm:text-sm border border-gray-300 rounded-md resize-y",value:e.state.summary,onInput:t[0]||(t[0]=l=>e.updateSummary(l))},null,40,kH)]),g("p",RH,[g("span",null,U(e.charactersLeft),1)])])}var NH=Be(AH,[["render",LH]]);const MH=ve({components:{Module:Nn},setup(){return{state:yt({type:G.episode.type}),dispatch:it().dispatch}},methods:{updateType(e){this.dispatch($t({prop:"type",value:e.target.value}))}}}),DH={for:"episode-type",class:"block text-sm font-medium text-gray-700"},FH={class:"mt-1"},BH=["value"],UH={value:"full"},jH={value:"trailer"},HH={value:"bonus"},VH={class:"mt-2 text-sm text-gray-500"};function WH(e,t,n,r,o,s){return N(),V("div",null,[g("label",DH,U(e.__("Type","podlove-podcasting-plugin-for-wordpress")),1),g("div",FH,[g("select",{name:"episode-type",class:"block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm rounded-md",value:e.state.type,onInput:t[0]||(t[0]=l=>e.updateType(l))},[g("option",null,U(e.__("Please choose ...","podlove-podcasting-plugin-for-wordpress")),1),g("option",UH,U(e.__("full (complete content of an episode)","podlove-podcasting-plugin-for-wordpress")),1),g("option",jH,U(e.__("trailer (short, promotional piece of content that represents a preview of an episode)","podlove-podcasting-plugin-for-wordpress")),1),g("option",HH,U(e.__("bonus (extra content for an episode, for example behind the scenes information)","podlove-podcasting-plugin-for-wordpress")),1)],40,BH)]),g("p",VH,U(e.__("Episode type. May be used by podcast clients.","podlove-podcasting-plugin-for-wordpress")),1)])}var zH=Be(MH,[["render",WH]]);const qH=ve({components:{Module:Nn,EpisodePoster:Zj,EpisodeNumber:iH,EpisodeContent:hH,EpisodeTitle:wH,EpisodeSubtitle:OH,EpisodeSummary:NH,EpisodeType:zH},setup(){return{state:yt({explicitContentEnabled:G.settings.enableEpisodeExplicit}),dispatch:it().dispatch}},created(){this.dispatch(Od())}}),KH={class:"p-3"},GH={class:"flex justify-items-stretch mb-5"},XH={class:"mb-2 w-full"},JH={class:"flex mb-5"},YH={class:"mb-5"},ZH={class:"mb-5"};function QH(e,t,n,r,o,s){const l=X("episode-poster"),a=X("episode-number"),c=X("episode-content"),f=X("episode-type"),p=X("episode-title"),h=X("episode-subtitle"),v=X("episode-summary"),y=X("module");return N(),bt(y,{name:"description",title:e.__("Episode Description","podlove-podcasting-plugin-for-wordpress")},{default:ye(()=>[g("div",KH,[g("div",GH,[q(l,{class:"mr-5"}),g("div",XH,[g("div",JH,[q(a,{class:"w-full"}),e.state.explicitContentEnabled?(N(),bt(c,{key:0,class:"ml-5 w-full"})):qe("",!0)]),q(f,{class:"w-full"})])]),g("div",YH,[q(p,{class:"w-full"})]),g("div",ZH,[q(h,{class:"w-full"})]),g("div",null,[q(v,{class:"w-full"})])])]),_:1},8,["title"])}var eV=Be(qH,[["render",QH]]);const tV=ve({data(){return{visible:!1}},props:{name:String},methods:{}}),nV=["data-tab"];function rV(e,t,n,r,o,s){return N(),V("div",{class:"hidden","data-tab":e.name},[gr(e.$slots,"default")],8,nV)}var T$=Be(tV,[["render",rV]]);const oV=ve({data(){return{activeTab:"",tabs:[]}},props:{active:{type:String,default:null}},created(){var e,t;this.tabs=((t=(e=this.$slots).default)==null?void 0:t.call(e).map(n=>({name:Y.exports.get(n,["props","name"]),title:Y.exports.get(n,["props","title"])})))||[]},mounted(){this.active?this.toggleTab(this.active):this.toggleTab(Y.exports.get(this.tabs,[0,"name"]))},methods:{toggleTab(e){this.activeTab=e,Array.from(this.$refs.tabs.children).forEach(t=>{t.dataset.tab===e?t.classList.remove("hidden"):t.classList.add("hidden")})}}}),iV={class:"block"},sV={class:"border-b border-gray-200"},lV={class:"-mb-px flex space-x-8 mx-2","aria-label":"Tabs"},aV=["onClick"],uV={ref:"tabs"};function cV(e,t,n,r,o,s){return N(),V("div",null,[g("div",iV,[g("div",sV,[g("nav",lV,[(N(!0),V(Fe,null,Mt(e.tabs,l=>(N(),V("button",{onClick:a=>e.toggleTab(l.name),key:l.name,class:wt([l.name===e.activeTab?"border-indigo-500 text-indigo-600":"border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300","group inline-flex items-center py-4 px-1 border-b-2 font-medium text-sm"])},[g("span",null,U(l.title),1)],10,aV))),128))])])]),g("div",uV,[gr(e.$slots,"default")],512)])}var O$=Be(oV,[["render",cV]]);const dV=ve({components:{PodloveButton:Vn,PlusSmIcon:Lv,BookmarkAltIcon:z9,UploadIcon:V9},setup(){return{state:yt({chapters:G.chapters.list,selected:G.chapters.selected,selectedIndex:G.chapters.selectedIndex,episodeDuration:G.episode.duration}),dispatch:it().dispatch}},computed:{selectedIndex(){return this.state.selectedIndex},episodeDuration(){return this.state.episodeDuration?Nt.fromString(this.state.episodeDuration).totalMs:0},chapters(){return this.state.chapters.reduce((e,t,n,r)=>{const o=Y.exports.get(r,n+1),s=o===void 0;let l;s?l=this.episodeDuration?this.episodeDuration-(t.start||0):-1:l=(o.start||0)-(t.start||0);const a=l<=0?"Unknown":new Nt(l).prettyShort;return[...e,{index:n,title:t.title,start:t.start?new Nt(t.start).pretty:new Nt(0).pretty,image:t.image,duration:a}]},[])},hasChapterImages(){return this.chapters.reduce((e,t)=>e||!!t.image,!1)}},methods:{selectChapter(e){e===this.state.selectedIndex?this.dispatch(di(null)):this.dispatch(di(e))},updateChapter(e,t){const n=t.target.value;if(this.state.selectedIndex===null)return;let r;switch(e){case"start":r=Nt.fromString(n).totalMs;break;default:r=n}this.dispatch(QM({chapter:{[e]:r},index:this.state.selectedIndex}))},removeChapter(){this.dispatch(eD(this.state.selectedIndex))},async addChapter(){this.dispatch(tD()),this.dispatch(di(this.state.chapters.length-1));const e=this.$refs.chaptersContainer;await rn(),e.scrollTo({top:e.scrollHeight-e.clientHeight,behavior:"smooth"})},formatTime(e){return new Nt(e).pretty},selectImage(){this.dispatch(iD())}}}),fV={key:0},pV={class:"md:flex p-2 sm:block"},hV={class:"w-full"},mV={class:"h-96 overflow-x-auto",ref:"chaptersContainer"},vV={class:"min-w-full divide-y divide-gray-200 mb-2"},gV={ref:"chapters"},yV=["onClick"],bV={key:0,class:"px-2 py-2 w-16"},_V=["src"],wV={class:"px-3 py-2 w-32 whitespace-nowrap text-sm font-medium text-gray-900 tabular-nums"},SV={class:"px-3 py-2 whitespace-nowrap text-sm text-gray-600"},EV={class:"px-3 py-2 whitespace-nowrap text-sm text-gray-600 text-right tabular-nums"},xV={key:0,class:"md:w-4/12 sm:w-full md:mx-4 md:my-2 mt-0"},$V={class:"mb-5 mt-2"},CV={for:"chapter-title",class:"block text-sm font-medium text-gray-700"},TV={class:"mt-1"},OV=["value"],AV={class:"mb-5"},IV={for:"chapter-href",class:"block text-sm font-medium text-gray-700"},PV={class:"text-xs"},kV={class:"mt-1"},RV=["value"],LV={class:"mb-5"},NV={for:"chapter-start",class:"block text-sm font-medium text-gray-700"},MV={class:"mt-1"},DV=["value"],FV={class:"mb-5"},BV={for:"chapter-image",class:"block text-sm font-medium text-gray-700"},UV={class:"text-xs"},jV={class:"mt-1 relative"},HV=["value"],VV=["title"],WV={class:"mb-5 ml-1"},zV={class:"mt-5 ml-5 pb-5"},qV={key:1,class:"text-center h-96 flex items-center justify-center flex-col"},KV={class:"mt-2 text-sm font-medium text-gray-900"},GV={class:"mt-1 text-sm text-gray-500"},XV={class:"mt-6"};function JV(e,t,n,r,o,s){const l=X("upload-icon"),a=X("podlove-button"),c=X("plus-sm-icon"),f=X("bookmark-alt-icon");return e.chapters.length>0?(N(),V("div",fV,[g("div",pV,[g("div",hV,[g("div",mV,[g("table",vV,[g("tbody",gV,[(N(!0),V(Fe,null,Mt(e.chapters,(p,h)=>(N(),V("tr",{onClick:v=>e.selectChapter(h),key:`chapter-${h}`,class:wt(["cursor-pointer",{"bg-indigo-100":e.selectedIndex===h,active:e.selectedIndex===h,"bg-white":h%2===0&&e.selectedIndex!==h,"bg-gray-50":h%2!==0&&e.selectedIndex!==h}])},[e.hasChapterImages?(N(),V("td",bV,[p!=null&&p.image?(N(),V("img",{key:0,class:"w-12 h-12 rounded",src:p==null?void 0:p.image},null,8,_V)):qe("",!0)])):qe("",!0),g("td",wV,U(p.start),1),g("td",SV,U(p.title),1),g("td",EV,U(p.duration),1)],10,yV))),128))],512)])],512)]),e.state.selected?(N(),V("div",xV,[g("div",$V,[g("label",CV,U(e.__("Title","podlove-podcasting-plugin-for-wordpress")),1),g("div",TV,[g("input",{name:"chapter-title",type:"text",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",onChange:t[0]||(t[0]=p=>e.updateChapter("title",p)),value:e.state.selected.title},null,40,OV)])]),g("div",AV,[g("label",IV,[Xe("Url "),g("span",PV,U(e.__("(optional)","podlove-podcasting-plugin-for-wordpress")),1)]),g("div",kV,[g("input",{name:"chapter-href",type:"text",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",onChange:t[1]||(t[1]=p=>e.updateChapter("href",p)),value:e.state.selected.href},null,40,RV)])]),g("div",LV,[g("label",NV,U(e.__("Start","podlove-podcasting-plugin-for-wordpress")),1),g("div",MV,[g("input",{name:"chapter-title",type:"text",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",onChange:t[2]||(t[2]=p=>e.updateChapter("start",p)),value:e.formatTime(e.state.selected.start)},null,40,DV)])]),g("div",FV,[g("label",BV,[Xe(U(e.__("Image","podlove-podcasting-plugin-for-wordpress"))+" ",1),g("span",UV,U(e.__("(optional)","podlove-podcasting-plugin-for-wordpress")),1)]),g("div",jV,[g("input",{name:"chapter-image",type:"text",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",onChange:t[3]||(t[3]=p=>e.updateChapter("image",p)),value:e.state.selected.image},null,40,HV),g("button",{onClick:t[4]||(t[4]=Sc(p=>e.selectImage(),["prevent"])),title:e.__("Select Chapter Image","podlove-podcasting-plugin-for-wordpress"),class:"absolute right-2 top-1/2 -mt-3 text-gray-400 hover:text-gray-700"},[q(l,{class:"w-6 h-6"})],8,VV)])]),g("div",WV,[q(a,{variant:"danger",onClick:t[5]||(t[5]=p=>e.removeChapter())},{default:ye(()=>[Xe(U(e.__("Delete Chapter","podlove-podcasting-plugin-for-wordpress")),1)]),_:1})])])):qe("",!0)]),g("div",zV,[q(a,{variant:"primary",onClick:t[6]||(t[6]=p=>e.addChapter())},{default:ye(()=>[q(c,{class:"-ml-0.5 mr-2 h-4 w-4","aria-hidden":"true"}),Xe(" "+U(e.__("Add Chapter","podlove-podcasting-plugin-for-wordpress")),1)]),_:1})])])):(N(),V("div",qV,[q(f,{class:"mx-auto h-12 w-12 text-gray-400"}),g("h3",KV,U(e.__("No chapters","podlove-podcasting-plugin-for-wordpress")),1),g("p",GV,U(e.__("Get started by creating a new chapter.","podlove-podcasting-plugin-for-wordpress")),1),g("div",XV,[q(a,{variant:"primary",onClick:t[7]||(t[7]=p=>e.addChapter()),class:"ml-1"},{default:ye(()=>[q(c,{class:"-ml-0.5 mr-2 h-4 w-4","aria-hidden":"true"}),Xe(" "+U(e.__("Add Chapter","podlove-podcasting-plugin-for-wordpress")),1)]),_:1})])]))}var YV=Be(dV,[["render",JV]]);function Uh(e,t,n){var r,o,s,l,a;t==null&&(t=100);function c(){var p=Date.now()-l;p<t&&p>=0?r=setTimeout(c,t-p):(r=null,n||(a=e.apply(s,o),s=o=null))}var f=function(){s=this,o=arguments,l=Date.now();var p=n&&!r;return r||(r=setTimeout(c,t)),p&&(a=e.apply(s,o),s=o=null),a};return f.clear=function(){r&&(clearTimeout(r),r=null)},f.flush=function(){r&&(a=e.apply(s,o),s=o=null,clearTimeout(r),r=null)},f}Uh.debounce=Uh;var Bp=Uh;function ZV(e,t,n){dn(e)?Ft(e,(r,o)=>{o==null||o.removeEventListener(t,n),r==null||r.addEventListener(t,n)}):gt(()=>{e.addEventListener(t,n)}),cs(()=>{var r;(r=jn(e))===null||r===void 0||r.removeEventListener(t,n)})}function QV(e,t){const n="pointerdown";return typeof window=="undefined"||!window?void 0:ZV(window,n,o=>{const s=jn(e);!s||s===o.target||o.composedPath().includes(s)||t(o)})}function eW(e,t,n){let r=null;const o=_e(!1);gt(()=>{(e.content!==void 0||n.value)&&(o.value=!0),r=new MutationObserver(s),r.observe(t.value,{childList:!0,subtree:!0})}),cs(()=>r.disconnect()),Ft(n,l=>{l?o.value=!0:o.value=!1});const s=()=>{e.content?o.value=!0:o.value=!1};return{hasContent:o}}function Zs(e,t){var n=e.getBoundingClientRect(),r=1,o=1;return{width:n.width/r,height:n.height/o,top:n.top/o,right:n.right/r,bottom:n.bottom/o,left:n.left/r,x:n.left/r,y:n.top/o}}function lo(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Jv(e){var t=lo(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function ya(e){var t=lo(e).Element;return e instanceof t||e instanceof Element}function Rr(e){var t=lo(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function A$(e){if(typeof ShadowRoot=="undefined")return!1;var t=lo(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function tW(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function nW(e){return e===lo(e)||!Rr(e)?Jv(e):tW(e)}function wo(e){return e?(e.nodeName||"").toLowerCase():null}function $i(e){return((ya(e)?e.ownerDocument:e.document)||window.document).documentElement}function Yv(e){return Zs($i(e)).left+Jv(e).scrollLeft}function Wo(e){return lo(e).getComputedStyle(e)}function Zv(e){var t=Wo(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function rW(e){var t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,r=t.height/e.offsetHeight||1;return n!==1||r!==1}function oW(e,t,n){n===void 0&&(n=!1);var r=Rr(t);Rr(t)&&rW(t);var o=$i(t),s=Zs(e),l={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(r||!r&&!n)&&((wo(t)!=="body"||Zv(o))&&(l=nW(t)),Rr(t)?(a=Zs(t),a.x+=t.clientLeft,a.y+=t.clientTop):o&&(a.x=Yv(o))),{x:s.left+l.scrollLeft-a.x,y:s.top+l.scrollTop-a.y,width:s.width,height:s.height}}function Qv(e){var t=Zs(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function qd(e){return wo(e)==="html"?e:e.assignedSlot||e.parentNode||(A$(e)?e.host:null)||$i(e)}function I$(e){return["html","body","#document"].indexOf(wo(e))>=0?e.ownerDocument.body:Rr(e)&&Zv(e)?e:I$(qd(e))}function Ql(e,t){var n;t===void 0&&(t=[]);var r=I$(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),s=lo(r),l=o?[s].concat(s.visualViewport||[],Zv(r)?r:[]):r,a=t.concat(l);return o?a:a.concat(Ql(qd(l)))}function iW(e){return["table","td","th"].indexOf(wo(e))>=0}function j1(e){return!Rr(e)||Wo(e).position==="fixed"?null:e.offsetParent}function sW(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&Rr(e)){var r=Wo(e);if(r.position==="fixed")return null}for(var o=qd(e);Rr(o)&&["html","body"].indexOf(wo(o))<0;){var s=Wo(o);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return o;o=o.parentNode}return null}function Ha(e){for(var t=lo(e),n=j1(e);n&&iW(n)&&Wo(n).position==="static";)n=j1(n);return n&&(wo(n)==="html"||wo(n)==="body"&&Wo(n).position==="static")?t:n||sW(e)||t}var Lr="top",no="bottom",ro="right",Nr="left",eg="auto",Va=[Lr,no,ro,Nr],Qs="start",ba="end",lW="clippingParents",P$="viewport",Nl="popper",aW="reference",H1=Va.reduce(function(e,t){return e.concat([t+"-"+Qs,t+"-"+ba])},[]),k$=[].concat(Va,[eg]).reduce(function(e,t){return e.concat([t,t+"-"+Qs,t+"-"+ba])},[]),uW="beforeRead",cW="read",dW="afterRead",fW="beforeMain",pW="main",hW="afterMain",mW="beforeWrite",vW="write",gW="afterWrite",yW=[uW,cW,dW,fW,pW,hW,mW,vW,gW];function bW(e){var t=new Map,n=new Set,r=[];e.forEach(function(s){t.set(s.name,s)});function o(s){n.add(s.name);var l=[].concat(s.requires||[],s.requiresIfExists||[]);l.forEach(function(a){if(!n.has(a)){var c=t.get(a);c&&o(c)}}),r.push(s)}return e.forEach(function(s){n.has(s.name)||o(s)}),r}function _W(e){var t=bW(e);return yW.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function wW(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function yo(e){return e.split("-")[0]}function SW(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}function EW(e){var t=lo(e),n=$i(e),r=t.visualViewport,o=n.clientWidth,s=n.clientHeight,l=0,a=0;return r&&(o=r.width,s=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(l=r.offsetLeft,a=r.offsetTop)),{width:o,height:s,x:l+Yv(e),y:a}}var mi=Math.max,_a=Math.min,Zu=Math.round;function xW(e){var t,n=$i(e),r=Jv(e),o=(t=e.ownerDocument)==null?void 0:t.body,s=mi(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),l=mi(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+Yv(e),c=-r.scrollTop;return Wo(o||n).direction==="rtl"&&(a+=mi(n.clientWidth,o?o.clientWidth:0)-s),{width:s,height:l,x:a,y:c}}function R$(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&A$(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function jh(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function $W(e){var t=Zs(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function V1(e,t){return t===P$?jh(EW(e)):Rr(t)?$W(t):jh(xW($i(e)))}function CW(e){var t=Ql(qd(e)),n=["absolute","fixed"].indexOf(Wo(e).position)>=0,r=n&&Rr(e)?Ha(e):e;return ya(r)?t.filter(function(o){return ya(o)&&R$(o,r)&&wo(o)!=="body"}):[]}function TW(e,t,n){var r=t==="clippingParents"?CW(e):[].concat(t),o=[].concat(r,[n]),s=o[0],l=o.reduce(function(a,c){var f=V1(e,c);return a.top=mi(f.top,a.top),a.right=_a(f.right,a.right),a.bottom=_a(f.bottom,a.bottom),a.left=mi(f.left,a.left),a},V1(e,s));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function el(e){return e.split("-")[1]}function tg(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function L$(e){var t=e.reference,n=e.element,r=e.placement,o=r?yo(r):null,s=r?el(r):null,l=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,c;switch(o){case Lr:c={x:l,y:t.y-n.height};break;case no:c={x:l,y:t.y+t.height};break;case ro:c={x:t.x+t.width,y:a};break;case Nr:c={x:t.x-n.width,y:a};break;default:c={x:t.x,y:t.y}}var f=o?tg(o):null;if(f!=null){var p=f==="y"?"height":"width";switch(s){case Qs:c[f]=c[f]-(t[p]/2-n[p]/2);break;case ba:c[f]=c[f]+(t[p]/2-n[p]/2);break}}return c}function N$(){return{top:0,right:0,bottom:0,left:0}}function M$(e){return Object.assign({},N$(),e)}function D$(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}function ng(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,s=n.boundary,l=s===void 0?lW:s,a=n.rootBoundary,c=a===void 0?P$:a,f=n.elementContext,p=f===void 0?Nl:f,h=n.altBoundary,v=h===void 0?!1:h,y=n.padding,_=y===void 0?0:y,w=M$(typeof _!="number"?_:D$(_,Va)),I=p===Nl?aW:Nl,O=e.rects.popper,S=e.elements[v?I:p],E=TW(ya(S)?S:S.contextElement||$i(e.elements.popper),l,c),T=Zs(e.elements.reference),$=L$({reference:T,element:O,strategy:"absolute",placement:o}),P=jh(Object.assign({},O,$)),k=p===Nl?P:T,A={top:E.top-k.top+w.top,bottom:k.bottom-E.bottom+w.bottom,left:E.left-k.left+w.left,right:k.right-E.right+w.right},H=e.modifiersData.offset;if(p===Nl&&H){var D=H[o];Object.keys(A).forEach(function(F){var z=[ro,no].indexOf(F)>=0?1:-1,K=[Lr,no].indexOf(F)>=0?"y":"x";A[F]+=D[K]*z})}return A}var W1={placement:"bottom",modifiers:[],strategy:"absolute"};function z1(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function OW(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,s=o===void 0?W1:o;return function(a,c,f){f===void 0&&(f=s);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},W1,s),modifiersData:{},elements:{reference:a,popper:c},attributes:{},styles:{}},h=[],v=!1,y={state:p,setOptions:function(O){var S=typeof O=="function"?O(p.options):O;w(),p.options=Object.assign({},s,p.options,S),p.scrollParents={reference:ya(a)?Ql(a):a.contextElement?Ql(a.contextElement):[],popper:Ql(c)};var E=_W(SW([].concat(r,p.options.modifiers)));return p.orderedModifiers=E.filter(function(T){return T.enabled}),_(),y.update()},forceUpdate:function(){if(!v){var O=p.elements,S=O.reference,E=O.popper;if(!!z1(S,E)){p.rects={reference:oW(S,Ha(E),p.options.strategy==="fixed"),popper:Qv(E)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(D){return p.modifiersData[D.name]=Object.assign({},D.data)});for(var T=0;T<p.orderedModifiers.length;T++){if(p.reset===!0){p.reset=!1,T=-1;continue}var $=p.orderedModifiers[T],P=$.fn,k=$.options,A=k===void 0?{}:k,H=$.name;typeof P=="function"&&(p=P({state:p,options:A,name:H,instance:y})||p)}}}},update:wW(function(){return new Promise(function(I){y.forceUpdate(),I(p)})}),destroy:function(){w(),v=!0}};if(!z1(a,c))return y;y.setOptions(f).then(function(I){!v&&f.onFirstUpdate&&f.onFirstUpdate(I)});function _(){p.orderedModifiers.forEach(function(I){var O=I.name,S=I.options,E=S===void 0?{}:S,T=I.effect;if(typeof T=="function"){var $=T({state:p,name:O,instance:y,options:E}),P=function(){};h.push($||P)}})}function w(){h.forEach(function(I){return I()}),h=[]}return y}}var Qu={passive:!0};function AW(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,s=o===void 0?!0:o,l=r.resize,a=l===void 0?!0:l,c=lo(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&f.forEach(function(p){p.addEventListener("scroll",n.update,Qu)}),a&&c.addEventListener("resize",n.update,Qu),function(){s&&f.forEach(function(p){p.removeEventListener("scroll",n.update,Qu)}),a&&c.removeEventListener("resize",n.update,Qu)}}var IW={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:AW,data:{}};function PW(e){var t=e.state,n=e.name;t.modifiersData[n]=L$({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var kW={name:"popperOffsets",enabled:!0,phase:"read",fn:PW,data:{}},RW={top:"auto",right:"auto",bottom:"auto",left:"auto"};function LW(e){var t=e.x,n=e.y,r=window,o=r.devicePixelRatio||1;return{x:Zu(Zu(t*o)/o)||0,y:Zu(Zu(n*o)/o)||0}}function q1(e){var t,n=e.popper,r=e.popperRect,o=e.placement,s=e.variation,l=e.offsets,a=e.position,c=e.gpuAcceleration,f=e.adaptive,p=e.roundOffsets,h=p===!0?LW(l):typeof p=="function"?p(l):l,v=h.x,y=v===void 0?0:v,_=h.y,w=_===void 0?0:_,I=l.hasOwnProperty("x"),O=l.hasOwnProperty("y"),S=Nr,E=Lr,T=window;if(f){var $=Ha(n),P="clientHeight",k="clientWidth";$===lo(n)&&($=$i(n),Wo($).position!=="static"&&a==="absolute"&&(P="scrollHeight",k="scrollWidth")),$=$,(o===Lr||(o===Nr||o===ro)&&s===ba)&&(E=no,w-=$[P]-r.height,w*=c?1:-1),(o===Nr||(o===Lr||o===no)&&s===ba)&&(S=ro,y-=$[k]-r.width,y*=c?1:-1)}var A=Object.assign({position:a},f&&RW);if(c){var H;return Object.assign({},A,(H={},H[E]=O?"0":"",H[S]=I?"0":"",H.transform=(T.devicePixelRatio||1)<=1?"translate("+y+"px, "+w+"px)":"translate3d("+y+"px, "+w+"px, 0)",H))}return Object.assign({},A,(t={},t[E]=O?w+"px":"",t[S]=I?y+"px":"",t.transform="",t))}function NW(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,s=n.adaptive,l=s===void 0?!0:s,a=n.roundOffsets,c=a===void 0?!0:a,f={placement:yo(t.placement),variation:el(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,q1(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,q1(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var MW={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:NW,data:{}};function DW(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},s=t.elements[n];!Rr(s)||!wo(s)||(Object.assign(s.style,r),Object.keys(o).forEach(function(l){var a=o[l];a===!1?s.removeAttribute(l):s.setAttribute(l,a===!0?"":a)}))})}function FW(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],s=t.attributes[r]||{},l=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=l.reduce(function(c,f){return c[f]="",c},{});!Rr(o)||!wo(o)||(Object.assign(o.style,a),Object.keys(s).forEach(function(c){o.removeAttribute(c)}))})}}var BW={name:"applyStyles",enabled:!0,phase:"write",fn:DW,effect:FW,requires:["computeStyles"]},UW=[IW,kW,MW,BW],jW=OW({defaultModifiers:UW});function HW(e){return e==="x"?"y":"x"}function fc(e,t,n){return mi(e,_a(t,n))}function VW(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,s=o===void 0?!0:o,l=n.altAxis,a=l===void 0?!1:l,c=n.boundary,f=n.rootBoundary,p=n.altBoundary,h=n.padding,v=n.tether,y=v===void 0?!0:v,_=n.tetherOffset,w=_===void 0?0:_,I=ng(t,{boundary:c,rootBoundary:f,padding:h,altBoundary:p}),O=yo(t.placement),S=el(t.placement),E=!S,T=tg(O),$=HW(T),P=t.modifiersData.popperOffsets,k=t.rects.reference,A=t.rects.popper,H=typeof w=="function"?w(Object.assign({},t.rects,{placement:t.placement})):w,D={x:0,y:0};if(!!P){if(s||a){var F=T==="y"?Lr:Nr,z=T==="y"?no:ro,K=T==="y"?"height":"width",te=P[T],we=P[T]+I[F],be=P[T]-I[z],Oe=y?-A[K]/2:0,Ae=S===Qs?k[K]:A[K],Ye=S===Qs?-A[K]:-k[K],ft=t.elements.arrow,Le=y&&ft?Qv(ft):{width:0,height:0},Ke=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:N$(),Q=Ke[F],ae=Ke[z],fe=fc(0,k[K],Le[K]),Se=E?k[K]/2-Oe-fe-Q-H:Ae-fe-Q-H,He=E?-k[K]/2+Oe+fe+ae+H:Ye+fe+ae+H,De=t.elements.arrow&&Ha(t.elements.arrow),tt=De?T==="y"?De.clientTop||0:De.clientLeft||0:0,vn=t.modifiersData.offset?t.modifiersData.offset[t.placement][T]:0,ln=P[T]+Se-vn-tt,L=P[T]+He-vn;if(s){var B=fc(y?_a(we,ln):we,te,y?mi(be,L):be);P[T]=B,D[T]=B-te}if(a){var Z=T==="x"?Lr:Nr,le=T==="x"?no:ro,ie=P[$],pe=ie+I[Z],Ee=ie-I[le],he=fc(y?_a(pe,ln):pe,ie,y?mi(Ee,L):Ee);P[$]=he,D[$]=he-ie}}t.modifiersData[r]=D}}var WW={name:"preventOverflow",enabled:!0,phase:"main",fn:VW,requiresIfExists:["offset"]},zW={left:"right",right:"left",bottom:"top",top:"bottom"};function pc(e){return e.replace(/left|right|bottom|top/g,function(t){return zW[t]})}var qW={start:"end",end:"start"};function K1(e){return e.replace(/start|end/g,function(t){return qW[t]})}function KW(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,s=n.rootBoundary,l=n.padding,a=n.flipVariations,c=n.allowedAutoPlacements,f=c===void 0?k$:c,p=el(r),h=p?a?H1:H1.filter(function(_){return el(_)===p}):Va,v=h.filter(function(_){return f.indexOf(_)>=0});v.length===0&&(v=h);var y=v.reduce(function(_,w){return _[w]=ng(e,{placement:w,boundary:o,rootBoundary:s,padding:l})[yo(w)],_},{});return Object.keys(y).sort(function(_,w){return y[_]-y[w]})}function GW(e){if(yo(e)===eg)return[];var t=pc(e);return[K1(e),t,K1(t)]}function XW(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,s=o===void 0?!0:o,l=n.altAxis,a=l===void 0?!0:l,c=n.fallbackPlacements,f=n.padding,p=n.boundary,h=n.rootBoundary,v=n.altBoundary,y=n.flipVariations,_=y===void 0?!0:y,w=n.allowedAutoPlacements,I=t.options.placement,O=yo(I),S=O===I,E=c||(S||!_?[pc(I)]:GW(I)),T=[I].concat(E).reduce(function(ae,fe){return ae.concat(yo(fe)===eg?KW(t,{placement:fe,boundary:p,rootBoundary:h,padding:f,flipVariations:_,allowedAutoPlacements:w}):fe)},[]),$=t.rects.reference,P=t.rects.popper,k=new Map,A=!0,H=T[0],D=0;D<T.length;D++){var F=T[D],z=yo(F),K=el(F)===Qs,te=[Lr,no].indexOf(z)>=0,we=te?"width":"height",be=ng(t,{placement:F,boundary:p,rootBoundary:h,altBoundary:v,padding:f}),Oe=te?K?ro:Nr:K?no:Lr;$[we]>P[we]&&(Oe=pc(Oe));var Ae=pc(Oe),Ye=[];if(s&&Ye.push(be[z]<=0),a&&Ye.push(be[Oe]<=0,be[Ae]<=0),Ye.every(function(ae){return ae})){H=F,A=!1;break}k.set(F,Ye)}if(A)for(var ft=_?3:1,Le=function(fe){var Se=T.find(function(He){var De=k.get(He);if(De)return De.slice(0,fe).every(function(tt){return tt})});if(Se)return H=Se,"break"},Ke=ft;Ke>0;Ke--){var Q=Le(Ke);if(Q==="break")break}t.placement!==H&&(t.modifiersData[r]._skip=!0,t.placement=H,t.reset=!0)}}var JW={name:"flip",enabled:!0,phase:"main",fn:XW,requiresIfExists:["offset"],data:{_skip:!1}};function YW(e,t,n){var r=yo(e),o=[Nr,Lr].indexOf(r)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,l=s[0],a=s[1];return l=l||0,a=(a||0)*o,[Nr,ro].indexOf(r)>=0?{x:a,y:l}:{x:l,y:a}}function ZW(e){var t=e.state,n=e.options,r=e.name,o=n.offset,s=o===void 0?[0,0]:o,l=k$.reduce(function(p,h){return p[h]=YW(h,t.rects,s),p},{}),a=l[t.placement],c=a.x,f=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=f),t.modifiersData[r]=l}var QW={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:ZW},ez=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,M$(typeof t!="number"?t:D$(t,Va))};function tz(e){var t,n=e.state,r=e.name,o=e.options,s=n.elements.arrow,l=n.modifiersData.popperOffsets,a=yo(n.placement),c=tg(a),f=[Nr,ro].indexOf(a)>=0,p=f?"height":"width";if(!(!s||!l)){var h=ez(o.padding,n),v=Qv(s),y=c==="y"?Lr:Nr,_=c==="y"?no:ro,w=n.rects.reference[p]+n.rects.reference[c]-l[c]-n.rects.popper[p],I=l[c]-n.rects.reference[c],O=Ha(s),S=O?c==="y"?O.clientHeight||0:O.clientWidth||0:0,E=w/2-I/2,T=h[y],$=S-v[p]-h[_],P=S/2-v[p]/2+E,k=fc(T,P,$),A=c;n.modifiersData[r]=(t={},t[A]=k,t.centerOffset=k-P,t)}}function nz(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||!R$(t.elements.popper,o)||(t.elements.arrow=o))}var rz={name:"arrow",enabled:!0,phase:"main",fn:tz,effect:nz,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};const Up=e=>parseInt(e,10);function oz({arrowPadding:e,emit:t,locked:n,offsetDistance:r,offsetSkid:o,placement:s,popperNode:l,triggerNode:a}){const c=Si({isOpen:!1,popperInstance:null}),f=w=>{var I;(I=c.popperInstance)===null||I===void 0||I.setOptions(O=>({...O,modifiers:[...O.modifiers,{name:"eventListeners",enabled:w}]}))},p=()=>f(!0),h=()=>f(!1),v=()=>{!c.isOpen||(c.isOpen=!1,t("close:popper"))},y=()=>{c.isOpen||(c.isOpen=!0,t("open:popper"))};Ft([()=>c.isOpen,s],async([w])=>{w?(await _(),p()):h()});const _=async()=>{await rn(),c.popperInstance=jW(a.value,l.value,{placement:s.value,modifiers:[WW,JW,{name:"flip",enabled:!n.value},rz,{name:"arrow",options:{padding:Up(e.value)}},QW,{name:"offset",options:{offset:[Up(o.value),Up(r.value)]}}]}),c.popperInstance.update()};return cs(()=>{var w;(w=c.popperInstance)===null||w===void 0||w.destroy()}),{...rm(c),open:y,close:v}}const iz={id:"arrow","data-popper-arrow":""};function sz(e,t){return N(),V("div",iz)}function F$(e,t){t===void 0&&(t={});var n=t.insertAt;if(!(!e||typeof document=="undefined")){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",n==="top"&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}var lz=`61 `));let y=z2((l=h.props)!=null?l:{},c,p),_=Dr(h,y,!0);for(let w in y)w.startsWith("on")&&(_.props||(_.props={}),_.props[w]=y[w]);return _}return Array.isArray(f)&&f.length===1?f[0]:f}return dt(a,Object.assign({},c,p),{default:()=>f})}function W2(e){return e.flatMap(t=>t.type===Fe?W2(t.children):[t])}function z2(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let o in r)o.startsWith("on")&&typeof r[o]=="function"?(n[o]!=null||(n[o]=[]),n[o].push(r[o])):t[o]=r[o];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(r=>[r,void 0])));for(let r in n)Object.assign(t,{[r](o,...s){let l=n[r];for(let a of l){if(o instanceof Event&&o.defaultPrevented)return;a(o,...s)}}});return t}function Bv(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function fs(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function $U(e){return e==null?!1:typeof e.type=="string"||typeof e.type=="object"||typeof e.type=="function"}var to=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(to||{});let _o=ve({name:"Hidden",props:{as:{type:[Object,String],default:"div"},features:{type:Number,default:1}},setup(e,{slots:t,attrs:n}){return()=>{var r;let{features:o,...s}=e,l={"aria-hidden":(o&2)===2?!0:(r=s["aria-hidden"])!=null?r:void 0,hidden:(o&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(o&4)===4&&(o&2)!==2&&{display:"none"}}};return St({ourProps:l,theirProps:s,slot:{},attrs:n,slots:t,name:"Hidden"})}}}),q2=Symbol("Context");var Pt=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Pt||{});function CU(){return ps()!==null}function ps(){return kt(q2,null)}function Vd(e){Yt(q2,e)}var lt=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(lt||{}),K2=(e=>(e[e.Left=0]="Left",e[e.Right=2]="Right",e))(K2||{});function TU(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window!="undefined"&&typeof document!="undefined"&&(document.addEventListener("DOMContentLoaded",t),t())}let Bo=[];TU(()=>{function e(t){t.target instanceof HTMLElement&&t.target!==document.body&&Bo[0]!==t.target&&(Bo.unshift(t.target),Bo=Bo.filter(n=>n!=null&&n.isConnected),Bo.splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function OU(e){throw new Error("Unexpected object: "+e)}var xt=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(xt||{});function Rh(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),o=r!=null?r:-1;switch(e.focus){case 0:{for(let s=0;s<n.length;++s)if(!t.resolveDisabled(n[s],s,n))return s;return r}case 1:{o===-1&&(o=n.length);for(let s=o-1;s>=0;--s)if(!t.resolveDisabled(n[s],s,n))return s;return r}case 2:{for(let s=o+1;s<n.length;++s)if(!t.resolveDisabled(n[s],s,n))return s;return r}case 3:{for(let s=n.length-1;s>=0;--s)if(!t.resolveDisabled(n[s],s,n))return s;return r}case 4:{for(let s=0;s<n.length;++s)if(t.resolveId(n[s],s,n)===e.id)return s;return r}case 5:return null;default:OU(e)}}function Uv(e={},t=null,n=[]){for(let[r,o]of Object.entries(e))X2(n,G2(t,r),o);return n}function G2(e,t){return e?e+"["+t+"]":t}function X2(e,t,n){if(Array.isArray(n))for(let[r,o]of n.entries())X2(e,G2(t,r.toString()),o);else n instanceof Date?e.push([t,n.toISOString()]):typeof n=="boolean"?e.push([t,n?"1":"0"]):typeof n=="string"?e.push([t,n]):typeof n=="number"?e.push([t,`${n}`]):n==null?e.push([t,""]):Uv(n,t,e)}function AU(e){var t,n;let r=(t=e==null?void 0:e.form)!=null?t:e.closest("form");if(r){for(let o of r.elements)if(o!==e&&(o.tagName==="INPUT"&&o.type==="submit"||o.tagName==="BUTTON"&&o.type==="submit"||o.nodeName==="INPUT"&&o.type==="image")){o.click();return}(n=r.requestSubmit)==null||n.call(r)}}function IU(e,t){return e===t}var PU=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(PU||{}),kU=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(kU||{}),RU=(e=>(e[e.Pointer=0]="Pointer",e[e.Focus=1]="Focus",e[e.Other=2]="Other",e))(RU||{});let J2=Symbol("ComboboxContext");function hs(e){let t=kt(J2,null);if(t===null){let n=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,hs),n}return t}let Y2=Symbol("VirtualContext"),LU=ve({name:"VirtualProvider",setup(e,{slots:t}){let n=hs("VirtualProvider"),r=ce(()=>{let a=ue(n.optionsRef);if(!a)return{start:0,end:0};let c=window.getComputedStyle(a);return{start:parseFloat(c.paddingBlockStart||c.paddingTop),end:parseFloat(c.paddingBlockEnd||c.paddingBottom)}}),o=dU(ce(()=>({scrollPaddingStart:r.value.start,scrollPaddingEnd:r.value.end,count:n.virtual.value.options.length,estimateSize(){return 40},getScrollElement(){return ue(n.optionsRef)},overscan:12}))),s=ce(()=>{var a;return(a=n.virtual.value)==null?void 0:a.options}),l=_e(0);return Ft([s],()=>{l.value+=1}),Yt(Y2,n.virtual.value?o:null),()=>[dt("div",{style:{position:"relative",width:"100%",height:`${o.value.getTotalSize()}px`},ref:a=>{if(a){if(typeof process!="undefined"&&{}.JEST_WORKER_ID!==void 0||n.activationTrigger.value===0)return;n.activeOptionIndex.value!==null&&n.virtual.value.options.length>n.activeOptionIndex.value&&o.value.scrollToIndex(n.activeOptionIndex.value)}}},o.value.getVirtualItems().map(a=>Dr(t.default({option:n.virtual.value.options[a.index],open:n.comboboxState.value===0})[0],{key:`${l.value}-${a.index}`,"data-index":a.index,"aria-setsize":n.virtual.value.options.length,"aria-posinset":a.index+1,style:{position:"absolute",top:0,left:0,transform:`translateY(${a.start}px)`,overflowAnchor:"none"}})))]}}),Z2=ve({name:"Combobox",emits:{"update:modelValue":e=>!0},props:{as:{type:[Object,String],default:"template"},disabled:{type:[Boolean],default:!1},by:{type:[String,Function],nullable:!0,default:null},modelValue:{type:[Object,String,Number,Boolean],default:void 0},defaultValue:{type:[Object,String,Number,Boolean],default:void 0},form:{type:String,optional:!0},name:{type:String,optional:!0},nullable:{type:Boolean,default:!1},multiple:{type:[Boolean],default:!1},immediate:{type:[Boolean],default:!1},virtual:{type:Object,default:null}},inheritAttrs:!1,setup(e,{slots:t,attrs:n,emit:r}){let o=_e(1),s=_e(null),l=_e(null),a=_e(null),c=_e(null),f=_e({static:!1,hold:!1}),p=_e([]),h=_e(null),v=_e(2),y=_e(!1);function _(D=F=>F){let F=h.value!==null?p.value[h.value]:null,z=D(p.value.slice()),K=z.length>0&&z[0].dataRef.order.value!==null?z.sort((we,be)=>we.dataRef.order.value-be.dataRef.order.value):Fv(z,we=>ue(we.dataRef.domRef)),te=F?K.indexOf(F):null;return te===-1&&(te=null),{options:K,activeOptionIndex:te}}let w=ce(()=>e.multiple?1:0),I=ce(()=>e.nullable),[O,S]=Nv(ce(()=>e.modelValue),D=>r("update:modelValue",D),ce(()=>e.defaultValue)),E=ce(()=>O.value===void 0?Tt(w.value,{[1]:[],[0]:void 0}):O.value),T=null,$=null;function P(D){return Tt(w.value,{[0](){return S==null?void 0:S(D)},[1]:()=>{let F=Ue(A.value.value).slice(),z=Ue(D),K=F.findIndex(te=>A.compare(z,Ue(te)));return K===-1?F.push(z):F.splice(K,1),S==null?void 0:S(F)}})}let k=ce(()=>{});Ft([k],([D],[F])=>{if(A.virtual.value&&D&&F&&h.value!==null){let z=D.indexOf(F[h.value]);z!==-1?h.value=z:h.value=null}});let A={comboboxState:o,value:E,mode:w,compare(D,F){if(typeof e.by=="string"){let z=e.by;return(D==null?void 0:D[z])===(F==null?void 0:F[z])}return e.by===null?IU(D,F):e.by(D,F)},calculateIndex(D){return A.virtual.value?e.by===null?A.virtual.value.options.indexOf(D):A.virtual.value.options.findIndex(F=>A.compare(F,D)):p.value.findIndex(F=>A.compare(F.dataRef.value,D))},defaultValue:ce(()=>e.defaultValue),nullable:I,immediate:ce(()=>!1),virtual:ce(()=>null),inputRef:l,labelRef:s,buttonRef:a,optionsRef:c,disabled:ce(()=>e.disabled),options:p,change(D){S(D)},activeOptionIndex:ce(()=>{if(y.value&&h.value===null&&(A.virtual.value?A.virtual.value.options.length>0:p.value.length>0)){if(A.virtual.value){let F=A.virtual.value.options.findIndex(z=>{var K;return!((K=A.virtual.value)!=null&&K.disabled(z))});if(F!==-1)return F}let D=p.value.findIndex(F=>!F.dataRef.disabled);if(D!==-1)return D}return h.value}),activationTrigger:v,optionsPropsRef:f,closeCombobox(){y.value=!1,!e.disabled&&o.value!==1&&(o.value=1,h.value=null)},openCombobox(){if(y.value=!0,!e.disabled&&o.value!==0){if(A.value.value){let D=A.calculateIndex(A.value.value);D!==-1&&(h.value=D)}o.value=0}},setActivationTrigger(D){v.value=D},goToOption(D,F,z){y.value=!1,T!==null&&cancelAnimationFrame(T),T=requestAnimationFrame(()=>{if(e.disabled||c.value&&!f.value.static&&o.value===1)return;if(A.virtual.value){h.value=D===xt.Specific?F:Rh({focus:D},{resolveItems:()=>A.virtual.value.options,resolveActiveIndex:()=>{var we,be;return(be=(we=A.activeOptionIndex.value)!=null?we:A.virtual.value.options.findIndex(Oe=>{var Ae;return!((Ae=A.virtual.value)!=null&&Ae.disabled(Oe))}))!=null?be:null},resolveDisabled:we=>A.virtual.value.disabled(we),resolveId(){throw new Error("Function not implemented.")}}),v.value=z!=null?z:2;return}let K=_();if(K.activeOptionIndex===null){let we=K.options.findIndex(be=>!be.dataRef.disabled);we!==-1&&(K.activeOptionIndex=we)}let te=D===xt.Specific?F:Rh({focus:D},{resolveItems:()=>K.options,resolveActiveIndex:()=>K.activeOptionIndex,resolveId:we=>we.id,resolveDisabled:we=>we.dataRef.disabled});h.value=te,v.value=z!=null?z:2,p.value=K.options})},selectOption(D){let F=p.value.find(K=>K.id===D);if(!F)return;let{dataRef:z}=F;P(z.value)},selectActiveOption(){if(A.activeOptionIndex.value!==null){if(A.virtual.value)P(A.virtual.value.options[A.activeOptionIndex.value]);else{let{dataRef:D}=p.value[A.activeOptionIndex.value];P(D.value)}A.goToOption(xt.Specific,A.activeOptionIndex.value)}},registerOption(D,F){let z=Si({id:D,dataRef:F});if(A.virtual.value){p.value.push(z);return}$&&cancelAnimationFrame($);let K=_(te=>(te.push(z),te));h.value===null&&A.isSelected(F.value.value)&&(K.activeOptionIndex=K.options.indexOf(z)),p.value=K.options,h.value=K.activeOptionIndex,v.value=2,K.options.some(te=>!ue(te.dataRef.domRef))&&($=requestAnimationFrame(()=>{let te=_();p.value=te.options,h.value=te.activeOptionIndex}))},unregisterOption(D,F){if(T!==null&&cancelAnimationFrame(T),F&&(y.value=!0),A.virtual.value){p.value=p.value.filter(K=>K.id!==D);return}let z=_(K=>{let te=K.findIndex(we=>we.id===D);return te!==-1&&K.splice(te,1),K});p.value=z.options,h.value=z.activeOptionIndex,v.value=2},isSelected(D){return Tt(w.value,{[0]:()=>A.compare(Ue(A.value.value),Ue(D)),[1]:()=>Ue(A.value.value).some(F=>A.compare(Ue(F),Ue(D)))})},isActive(D){return h.value===A.calculateIndex(D)}};jd([l,a,c],()=>A.closeCombobox(),ce(()=>o.value===0)),Yt(J2,A),Vd(ce(()=>Tt(o.value,{[0]:Pt.Open,[1]:Pt.Closed})));let H=ce(()=>{var D;return(D=ue(l))==null?void 0:D.closest("form")});return gt(()=>{Ft([H],()=>{if(!H.value||e.defaultValue===void 0)return;function D(){A.change(e.defaultValue)}return H.value.addEventListener("reset",D),()=>{var F;(F=H.value)==null||F.removeEventListener("reset",D)}},{immediate:!0})}),()=>{var D,F,z;let{name:K,disabled:te,form:we,...be}=e,Oe={open:o.value===0,disabled:te,activeIndex:A.activeOptionIndex.value,activeOption:A.activeOptionIndex.value===null?null:A.virtual.value?A.virtual.value.options[(D=A.activeOptionIndex.value)!=null?D:0]:(z=(F=A.options.value[A.activeOptionIndex.value])==null?void 0:F.dataRef.value)!=null?z:null,value:E.value};return dt(Fe,[...K!=null&&E.value!=null?Uv({[K]:E.value}).map(([Ae,Ye])=>dt(_o,Bv({features:to.Hidden,key:Ae,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:we,disabled:te,name:Ae,value:Ye}))):[],St({theirProps:{...n,...fs(be,["by","defaultValue","immediate","modelValue","multiple","nullable","onUpdate:modelValue","virtual"])},ourProps:{},slot:Oe,slots:t,attrs:n,name:"Combobox"})])}}}),NU=ve({name:"ComboboxLabel",props:{as:{type:[Object,String],default:"label"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n}){var r;let o=(r=e.id)!=null?r:`headlessui-combobox-label-${zt()}`,s=hs("ComboboxLabel");function l(){var a;(a=ue(s.inputRef))==null||a.focus({preventScroll:!0})}return()=>{let a={open:s.comboboxState.value===0,disabled:s.disabled.value},{...c}=e,f={id:o,ref:s.labelRef,onClick:l};return St({ourProps:f,theirProps:c,slot:a,attrs:t,slots:n,name:"ComboboxLabel"})}}}),Q2=ve({name:"ComboboxButton",props:{as:{type:[Object,String],default:"button"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:r}){var o;let s=(o=e.id)!=null?o:`headlessui-combobox-button-${zt()}`,l=hs("ComboboxButton");r({el:l.buttonRef,$el:l.buttonRef});function a(p){l.disabled.value||(l.comboboxState.value===0?l.closeCombobox():(p.preventDefault(),l.openCombobox()),rn(()=>{var h;return(h=ue(l.inputRef))==null?void 0:h.focus({preventScroll:!0})}))}function c(p){switch(p.key){case lt.ArrowDown:p.preventDefault(),p.stopPropagation(),l.comboboxState.value===1&&l.openCombobox(),rn(()=>{var h;return(h=l.inputRef.value)==null?void 0:h.focus({preventScroll:!0})});return;case lt.ArrowUp:p.preventDefault(),p.stopPropagation(),l.comboboxState.value===1&&(l.openCombobox(),rn(()=>{l.value.value||l.goToOption(xt.Last)})),rn(()=>{var h;return(h=l.inputRef.value)==null?void 0:h.focus({preventScroll:!0})});return;case lt.Escape:if(l.comboboxState.value!==0)return;p.preventDefault(),l.optionsRef.value&&!l.optionsPropsRef.value.static&&p.stopPropagation(),l.closeCombobox(),rn(()=>{var h;return(h=l.inputRef.value)==null?void 0:h.focus({preventScroll:!0})});return}}let f=Hd(ce(()=>({as:e.as,type:t.type})),l.buttonRef);return()=>{var p,h;let v={open:l.comboboxState.value===0,disabled:l.disabled.value,value:l.value.value},{...y}=e,_={ref:l.buttonRef,id:s,type:f.value,tabindex:"-1","aria-haspopup":"listbox","aria-controls":(p=ue(l.optionsRef))==null?void 0:p.id,"aria-expanded":l.comboboxState.value===0,"aria-labelledby":l.labelRef.value?[(h=ue(l.labelRef))==null?void 0:h.id,s].join(" "):void 0,disabled:l.disabled.value===!0?!0:void 0,onKeydown:c,onClick:a};return St({ourProps:_,theirProps:y,slot:v,attrs:t,slots:n,name:"ComboboxButton"})}}}),e$=ve({name:"ComboboxInput",props:{as:{type:[Object,String],default:"input"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},displayValue:{type:Function},defaultValue:{type:String,default:void 0},id:{type:String,default:null}},emits:{change:e=>!0},setup(e,{emit:t,attrs:n,slots:r,expose:o}){var s;let l=(s=e.id)!=null?s:`headlessui-combobox-input-${zt()}`,a=hs("ComboboxInput"),c=ce(()=>jr(ue(a.inputRef))),f={value:!1};o({el:a.inputRef,$el:a.inputRef});function p(){a.change(null);let $=ue(a.optionsRef);$&&($.scrollTop=0),a.goToOption(xt.Nothing)}let h=ce(()=>{var $;let P=a.value.value;return ue(a.inputRef)?typeof e.displayValue!="undefined"&&P!==void 0?($=e.displayValue(P))!=null?$:"":typeof P=="string"?P:"":""});gt(()=>{Ft([h,a.comboboxState,c],([$,P],[k,A])=>{if(f.value)return;let H=ue(a.inputRef);H&&((A===0&&P===1||$!==k)&&(H.value=$),requestAnimationFrame(()=>{var D;if(f.value||!H||((D=c.value)==null?void 0:D.activeElement)!==H)return;let{selectionStart:F,selectionEnd:z}=H;Math.abs((z!=null?z:0)-(F!=null?F:0))===0&&F===0&&H.setSelectionRange(H.value.length,H.value.length)}))},{immediate:!0}),Ft([a.comboboxState],([$],[P])=>{if($===0&&P===1){if(f.value)return;let k=ue(a.inputRef);if(!k)return;let A=k.value,{selectionStart:H,selectionEnd:D,selectionDirection:F}=k;k.value="",k.value=A,F!==null?k.setSelectionRange(H,D,F):k.setSelectionRange(H,D)}})});let v=_e(!1);function y(){v.value=!0}function _(){wi().nextFrame(()=>{v.value=!1})}let w=pU();function I($){switch(f.value=!0,w(()=>{f.value=!1}),$.key){case lt.Enter:if(f.value=!1,a.comboboxState.value!==0||v.value)return;if($.preventDefault(),$.stopPropagation(),a.activeOptionIndex.value===null){a.closeCombobox();return}a.selectActiveOption(),a.mode.value===0&&a.closeCombobox();break;case lt.ArrowDown:return f.value=!1,$.preventDefault(),$.stopPropagation(),Tt(a.comboboxState.value,{[0]:()=>a.goToOption(xt.Next),[1]:()=>a.openCombobox()});case lt.ArrowUp:return f.value=!1,$.preventDefault(),$.stopPropagation(),Tt(a.comboboxState.value,{[0]:()=>a.goToOption(xt.Previous),[1]:()=>{a.openCombobox(),rn(()=>{a.value.value||a.goToOption(xt.Last)})}});case lt.Home:if($.shiftKey)break;return f.value=!1,$.preventDefault(),$.stopPropagation(),a.goToOption(xt.First);case lt.PageUp:return f.value=!1,$.preventDefault(),$.stopPropagation(),a.goToOption(xt.First);case lt.End:if($.shiftKey)break;return f.value=!1,$.preventDefault(),$.stopPropagation(),a.goToOption(xt.Last);case lt.PageDown:return f.value=!1,$.preventDefault(),$.stopPropagation(),a.goToOption(xt.Last);case lt.Escape:if(f.value=!1,a.comboboxState.value!==0)return;$.preventDefault(),a.optionsRef.value&&!a.optionsPropsRef.value.static&&$.stopPropagation(),a.nullable.value&&a.mode.value===0&&a.value.value===null&&p(),a.closeCombobox();break;case lt.Tab:if(f.value=!1,a.comboboxState.value!==0)return;a.mode.value===0&&a.activationTrigger.value!==1&&a.selectActiveOption(),a.closeCombobox();break}}function O($){t("change",$),a.nullable.value&&a.mode.value===0&&$.target.value===""&&p(),a.openCombobox()}function S($){var P,k,A;let H=(P=$.relatedTarget)!=null?P:Bo.find(D=>D!==$.currentTarget);if(f.value=!1,!((k=ue(a.optionsRef))!=null&&k.contains(H))&&!((A=ue(a.buttonRef))!=null&&A.contains(H))&&a.comboboxState.value===0)return $.preventDefault(),a.mode.value===0&&(a.nullable.value&&a.value.value===null?p():a.activationTrigger.value!==1&&a.selectActiveOption()),a.closeCombobox()}function E($){var P,k,A;let H=(P=$.relatedTarget)!=null?P:Bo.find(D=>D!==$.currentTarget);(k=ue(a.buttonRef))!=null&&k.contains(H)||(A=ue(a.optionsRef))!=null&&A.contains(H)||a.disabled.value||a.immediate.value&&a.comboboxState.value!==0&&(a.openCombobox(),wi().nextFrame(()=>{a.setActivationTrigger(1)}))}let T=ce(()=>{var $,P,k,A;return(A=(k=(P=e.defaultValue)!=null?P:a.defaultValue.value!==void 0?($=e.displayValue)==null?void 0:$.call(e,a.defaultValue.value):null)!=null?k:a.defaultValue.value)!=null?A:""});return()=>{var $,P,k,A,H,D,F;let z={open:a.comboboxState.value===0},{displayValue:K,onChange:te,...we}=e,be={"aria-controls":($=a.optionsRef.value)==null?void 0:$.id,"aria-expanded":a.comboboxState.value===0,"aria-activedescendant":a.activeOptionIndex.value===null?void 0:a.virtual.value?(P=a.options.value.find(Oe=>!a.virtual.value.disabled(Oe.dataRef.value)&&a.compare(Oe.dataRef.value,a.virtual.value.options[a.activeOptionIndex.value])))==null?void 0:P.id:(k=a.options.value[a.activeOptionIndex.value])==null?void 0:k.id,"aria-labelledby":(D=(A=ue(a.labelRef))==null?void 0:A.id)!=null?D:(H=ue(a.buttonRef))==null?void 0:H.id,"aria-autocomplete":"list",id:l,onCompositionstart:y,onCompositionend:_,onKeydown:I,onInput:O,onFocus:E,onBlur:S,role:"combobox",type:(F=n.type)!=null?F:"text",tabIndex:0,ref:a.inputRef,defaultValue:T.value,disabled:a.disabled.value===!0?!0:void 0};return St({ourProps:be,theirProps:we,slot:z,attrs:n,slots:r,features:rr.RenderStrategy|rr.Static,name:"ComboboxInput"})}}}),t$=ve({name:"ComboboxOptions",props:{as:{type:[Object,String],default:"ul"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},hold:{type:[Boolean],default:!1}},setup(e,{attrs:t,slots:n,expose:r}){let o=hs("ComboboxOptions"),s=`headlessui-combobox-options-${zt()}`;r({el:o.optionsRef,$el:o.optionsRef}),jt(()=>{o.optionsPropsRef.value.static=e.static}),jt(()=>{o.optionsPropsRef.value.hold=e.hold});let l=ps(),a=ce(()=>l!==null?(l.value&Pt.Open)===Pt.Open:o.comboboxState.value===0);xU({container:ce(()=>ue(o.optionsRef)),enabled:ce(()=>o.comboboxState.value===0),accept(f){return f.getAttribute("role")==="option"?NodeFilter.FILTER_REJECT:f.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(f){f.setAttribute("role","none")}});function c(f){f.preventDefault()}return()=>{var f,p,h;let v={open:o.comboboxState.value===0},y={"aria-labelledby":(h=(f=ue(o.labelRef))==null?void 0:f.id)!=null?h:(p=ue(o.buttonRef))==null?void 0:p.id,id:s,ref:o.optionsRef,role:"listbox","aria-multiselectable":o.mode.value===1?!0:void 0,onMousedown:c},_=fs(e,["hold"]);return St({ourProps:y,theirProps:_,slot:v,attrs:t,slots:o.virtual.value&&o.comboboxState.value===0?{...n,default:()=>[dt(LU,{},n.default)]}:n,features:rr.RenderStrategy|rr.Static,visible:a.value,name:"ComboboxOptions"})}}}),n$=ve({name:"ComboboxOption",props:{as:{type:[Object,String],default:"li"},value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1},order:{type:[Number],default:null}},setup(e,{slots:t,attrs:n,expose:r}){let o=hs("ComboboxOption"),s=`headlessui-combobox-option-${zt()}`,l=_e(null),a=ce(()=>e.disabled);r({el:l,$el:l});let c=ce(()=>{var S;return o.virtual.value?o.activeOptionIndex.value===o.calculateIndex(e.value):o.activeOptionIndex.value===null?!1:((S=o.options.value[o.activeOptionIndex.value])==null?void 0:S.id)===s}),f=ce(()=>o.isSelected(e.value)),p=kt(Y2,null),h=ce(()=>({disabled:e.disabled,value:e.value,domRef:l,order:ce(()=>e.order)}));gt(()=>o.registerOption(s,h)),Zt(()=>o.unregisterOption(s,c.value)),jt(()=>{let S=ue(l);S&&(p==null||p.value.measureElement(S))}),jt(()=>{o.comboboxState.value===0&&c.value&&(o.virtual.value||o.activationTrigger.value!==0&&rn(()=>{var S,E;return(E=(S=ue(l))==null?void 0:S.scrollIntoView)==null?void 0:E.call(S,{block:"nearest"})}))});function v(S){S.preventDefault(),S.button===K2.Left&&(a.value||(o.selectOption(s),j2()||requestAnimationFrame(()=>{var E;return(E=ue(o.inputRef))==null?void 0:E.focus({preventScroll:!0})}),o.mode.value===0&&o.closeCombobox()))}function y(){var S;if(e.disabled||(S=o.virtual.value)!=null&&S.disabled(e.value))return o.goToOption(xt.Nothing);let E=o.calculateIndex(e.value);o.goToOption(xt.Specific,E)}let _=V2();function w(S){_.update(S)}function I(S){var E;if(!_.wasMoved(S)||e.disabled||(E=o.virtual.value)!=null&&E.disabled(e.value)||c.value)return;let T=o.calculateIndex(e.value);o.goToOption(xt.Specific,T,0)}function O(S){var E;_.wasMoved(S)&&(e.disabled||(E=o.virtual.value)!=null&&E.disabled(e.value)||c.value&&(o.optionsPropsRef.value.hold||o.goToOption(xt.Nothing)))}return()=>{let{disabled:S}=e,E={active:c.value,selected:f.value,disabled:S},T={id:s,ref:l,role:"option",tabIndex:S===!0?void 0:-1,"aria-disabled":S===!0?!0:void 0,"aria-selected":f.value,disabled:void 0,onMousedown:v,onFocus:y,onPointerenter:w,onMouseenter:w,onPointermove:I,onMousemove:I,onPointerleave:O,onMouseleave:O},$=fs(e,["order","value"]);return St({ourProps:T,theirProps:$,slot:E,attrs:n,slots:t,name:"ComboboxOption"})}}});function jv(e,t,n,r){Fa.isServer||jt(o=>{e=e!=null?e:window,e.addEventListener(t,n,r),o(()=>e.removeEventListener(t,n,r))})}var pr=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(pr||{});function Hv(){let e=_e(0);return H2("keydown",t=>{t.key==="Tab"&&(e.value=t.shiftKey?1:0)}),e}function r$(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let n of e.value){let r=ue(n);r instanceof HTMLElement&&t.add(r)}return t}var o$=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(o$||{});let Rl=Object.assign(ve({name:"FocusTrap",props:{as:{type:[Object,String],default:"div"},initialFocus:{type:Object,default:null},features:{type:Number,default:30},containers:{type:[Object,Function],default:_e(new Set)}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:r}){let o=_e(null);r({el:o,$el:o});let s=ce(()=>jr(o)),l=_e(!1);gt(()=>l.value=!0),Zt(()=>l.value=!1),DU({ownerDocument:s},ce(()=>l.value&&Boolean(e.features&16)));let a=FU({ownerDocument:s,container:o,initialFocus:ce(()=>e.initialFocus)},ce(()=>l.value&&Boolean(e.features&2)));BU({ownerDocument:s,container:o,containers:e.containers,previousActiveElement:a},ce(()=>l.value&&Boolean(e.features&8)));let c=Hv();function f(y){let _=ue(o);!_||(w=>w())(()=>{Tt(c.value,{[pr.Forwards]:()=>{Gr(_,Pn.First,{skipElements:[y.relatedTarget]})},[pr.Backwards]:()=>{Gr(_,Pn.Last,{skipElements:[y.relatedTarget]})}})})}let p=_e(!1);function h(y){y.key==="Tab"&&(p.value=!0,requestAnimationFrame(()=>{p.value=!1}))}function v(y){if(!l.value)return;let _=r$(e.containers);ue(o)instanceof HTMLElement&&_.add(ue(o));let w=y.relatedTarget;w instanceof HTMLElement&&w.dataset.headlessuiFocusGuard!=="true"&&(i$(_,w)||(p.value?Gr(ue(o),Tt(c.value,{[pr.Forwards]:()=>Pn.Next,[pr.Backwards]:()=>Pn.Previous})|Pn.WrapAround,{relativeTo:y.target}):y.target instanceof HTMLElement&&es(y.target)))}return()=>{let y={},_={ref:o,onKeydown:h,onFocusout:v},{features:w,initialFocus:I,containers:O,...S}=e;return dt(Fe,[Boolean(w&4)&&dt(_o,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:f,features:to.Focusable}),St({ourProps:_,theirProps:{...t,...S},slot:y,attrs:t,slots:n,name:"FocusTrap"}),Boolean(w&4)&&dt(_o,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:f,features:to.Focusable})])}}}),{features:o$});function MU(e){let t=_e(Bo.slice());return Ft([e],([n],[r])=>{r===!0&&n===!1?Mv(()=>{t.value.splice(0)}):r===!1&&n===!0&&(t.value=Bo.slice())},{flush:"post"}),()=>{var n;return(n=t.value.find(r=>r!=null&&r.isConnected))!=null?n:null}}function DU({ownerDocument:e},t){let n=MU(t);gt(()=>{jt(()=>{var r,o;t.value||((r=e.value)==null?void 0:r.activeElement)===((o=e.value)==null?void 0:o.body)&&es(n())},{flush:"post"})}),Zt(()=>{t.value&&es(n())})}function FU({ownerDocument:e,container:t,initialFocus:n},r){let o=_e(null),s=_e(!1);return gt(()=>s.value=!0),Zt(()=>s.value=!1),gt(()=>{Ft([t,n,r],(l,a)=>{if(l.every((f,p)=>(a==null?void 0:a[p])===f)||!r.value)return;let c=ue(t);c&&Mv(()=>{var f,p;if(!s.value)return;let h=ue(n),v=(f=e.value)==null?void 0:f.activeElement;if(h){if(h===v){o.value=v;return}}else if(c.contains(v)){o.value=v;return}h?es(h):Gr(c,Pn.First|Pn.NoScroll)===ga.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),o.value=(p=e.value)==null?void 0:p.activeElement})},{immediate:!0,flush:"post"})}),o}function BU({ownerDocument:e,container:t,containers:n,previousActiveElement:r},o){var s;jv((s=e.value)==null?void 0:s.defaultView,"focus",l=>{if(!o.value)return;let a=r$(n);ue(t)instanceof HTMLElement&&a.add(ue(t));let c=r.value;if(!c)return;let f=l.target;f&&f instanceof HTMLElement?i$(a,f)?(r.value=f,es(f)):(l.preventDefault(),l.stopPropagation(),es(c)):es(r.value)},!0)}function i$(e,t){for(let n of e)if(n.contains(t))return!0;return!1}function UU(e){let t=nd(e.getSnapshot());return Zt(e.subscribe(()=>{t.value=e.getSnapshot()})),t}function jU(e,t){let n=e(),r=new Set;return{getSnapshot(){return n},subscribe(o){return r.add(o),()=>r.delete(o)},dispatch(o,...s){let l=t[o].call(n,...s);l&&(n=l,r.forEach(a=>a()))}}}function HU(){let e;return{before({doc:t}){var n;let r=t.documentElement;e=((n=t.defaultView)!=null?n:window).innerWidth-r.clientWidth},after({doc:t,d:n}){let r=t.documentElement,o=r.clientWidth-r.offsetWidth,s=e-o;n.style(r,"paddingRight",`${s}px`)}}}function VU(){return U2()?{before({doc:e,d:t,meta:n}){function r(o){return n.containers.flatMap(s=>s()).some(s=>s.contains(o))}t.microTask(()=>{var o;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let a=wi();a.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>a.dispose()))}let s=(o=window.scrollY)!=null?o:window.pageYOffset,l=null;t.addEventListener(e,"click",a=>{if(a.target instanceof HTMLElement)try{let c=a.target.closest("a");if(!c)return;let{hash:f}=new URL(c.href),p=e.querySelector(f);p&&!r(p)&&(l=p)}catch{}},!0),t.addEventListener(e,"touchstart",a=>{if(a.target instanceof HTMLElement)if(r(a.target)){let c=a.target;for(;c.parentElement&&r(c.parentElement);)c=c.parentElement;t.style(c,"overscrollBehavior","contain")}else t.style(a.target,"touchAction","none")}),t.addEventListener(e,"touchmove",a=>{if(a.target instanceof HTMLElement){if(a.target.tagName==="INPUT")return;if(r(a.target)){let c=a.target;for(;c.parentElement&&c.dataset.headlessuiPortal!==""&&!(c.scrollHeight>c.clientHeight||c.scrollWidth>c.clientWidth);)c=c.parentElement;c.dataset.headlessuiPortal===""&&a.preventDefault()}else a.preventDefault()}},{passive:!1}),t.add(()=>{var a;let c=(a=window.scrollY)!=null?a:window.pageYOffset;s!==c&&window.scrollTo(0,s),l&&l.isConnected&&(l.scrollIntoView({block:"nearest"}),l=null)})})}}:{}}function WU(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function zU(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let Ki=jU(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:wi(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let r={doc:e,d:t,meta:zU(n)},o=[VU(),HU(),WU()];o.forEach(({before:s})=>s==null?void 0:s(r)),o.forEach(({after:s})=>s==null?void 0:s(r))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});Ki.subscribe(()=>{let e=Ki.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let r=t.get(n.doc)==="hidden",o=n.count!==0;(o&&!r||!o&&r)&&Ki.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&Ki.dispatch("TEARDOWN",n)}});function qU(e,t,n){let r=UU(Ki),o=ce(()=>{let s=e.value?r.value.get(e.value):void 0;return s?s.count>0:!1});return Ft([e,t],([s,l],[a],c)=>{if(!s||!l)return;Ki.dispatch("PUSH",s,n);let f=!1;c(()=>{f||(Ki.dispatch("POP",a!=null?a:s,n),f=!0)})},{immediate:!0}),o}let Dp=new Map,Ll=new Map;function M1(e,t=_e(!0)){jt(n=>{var r;if(!t.value)return;let o=ue(e);if(!o)return;n(function(){var l;if(!o)return;let a=(l=Ll.get(o))!=null?l:1;if(a===1?Ll.delete(o):Ll.set(o,a-1),a!==1)return;let c=Dp.get(o);c&&(c["aria-hidden"]===null?o.removeAttribute("aria-hidden"):o.setAttribute("aria-hidden",c["aria-hidden"]),o.inert=c.inert,Dp.delete(o))});let s=(r=Ll.get(o))!=null?r:0;Ll.set(o,s+1),s===0&&(Dp.set(o,{"aria-hidden":o.getAttribute("aria-hidden"),inert:o.inert}),o.setAttribute("aria-hidden","true"),o.inert=!0)})}function s$({defaultContainers:e=[],portals:t,mainTreeNodeRef:n}={}){let r=_e(null),o=jr(r);function s(){var l,a,c;let f=[];for(let p of e)p!==null&&(p instanceof HTMLElement?f.push(p):"value"in p&&p.value instanceof HTMLElement&&f.push(p.value));if(t!=null&&t.value)for(let p of t.value)f.push(p);for(let p of(l=o==null?void 0:o.querySelectorAll("html > *, body > *"))!=null?l:[])p!==document.body&&p!==document.head&&p instanceof HTMLElement&&p.id!=="headlessui-portal-root"&&(p.contains(ue(r))||p.contains((c=(a=ue(r))==null?void 0:a.getRootNode())==null?void 0:c.host)||f.some(h=>p.contains(h))||f.push(p));return f}return{resolveContainers:s,contains(l){return s().some(a=>a.contains(l))},mainTreeNodeRef:r,MainTreeNode(){return n!=null?null:dt(_o,{features:to.Hidden,ref:r})}}}function KU(){let e=_e(null);return{mainTreeNodeRef:e,MainTreeNode(){return dt(_o,{features:to.Hidden,ref:e})}}}let l$=Symbol("ForcePortalRootContext");function GU(){return kt(l$,!1)}let Lh=ve({name:"ForcePortalRoot",props:{as:{type:[Object,String],default:"template"},force:{type:Boolean,default:!1}},setup(e,{slots:t,attrs:n}){return Yt(l$,e.force),()=>{let{force:r,...o}=e;return St({theirProps:o,ourProps:{},slot:{},slots:t,attrs:n,name:"ForcePortalRoot"})}}}),a$=Symbol("StackContext");var Nh=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(Nh||{});function XU(){return kt(a$,()=>{})}function JU({type:e,enabled:t,element:n,onUpdate:r}){let o=XU();function s(...l){r==null||r(...l),o(...l)}gt(()=>{Ft(t,(l,a)=>{l?s(0,e,n):a===!0&&s(1,e,n)},{immediate:!0,flush:"sync"})}),Zt(()=>{t.value&&s(1,e,n)}),Yt(a$,s)}let u$=Symbol("DescriptionContext");function YU(){let e=kt(u$,null);if(e===null)throw new Error("Missing parent");return e}function c$({slot:e=_e({}),name:t="Description",props:n={}}={}){let r=_e([]);function o(s){return r.value.push(s),()=>{let l=r.value.indexOf(s);l!==-1&&r.value.splice(l,1)}}return Yt(u$,{register:o,slot:e,name:t,props:n}),ce(()=>r.value.length>0?r.value.join(" "):void 0)}let Ute=ve({name:"Description",props:{as:{type:[Object,String],default:"p"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n}){var r;let o=(r=e.id)!=null?r:`headlessui-description-${zt()}`,s=YU();return gt(()=>Zt(s.register(o))),()=>{let{name:l="Description",slot:a=_e({}),props:c={}}=s,{...f}=e,p={...Object.entries(c).reduce((h,[v,y])=>Object.assign(h,{[v]:jn(y)}),{}),id:o};return St({ourProps:p,theirProps:f,slot:a.value,attrs:t,slots:n,name:l})}}});function ZU(e){let t=jr(e);if(!t){if(e===null)return null;throw new Error(`[Headless UI]: Cannot find ownerDocument for contextElement: ${e}`)}let n=t.getElementById("headlessui-portal-root");if(n)return n;let r=t.createElement("div");return r.setAttribute("id","headlessui-portal-root"),t.body.appendChild(r)}const Mh=new WeakMap;function QU(e){var t;return(t=Mh.get(e))!=null?t:0}function D1(e,t){let n=t(QU(e));return n<=0?Mh.delete(e):Mh.set(e,n),n}let d$=ve({name:"Portal",props:{as:{type:[Object,String],default:"div"}},setup(e,{slots:t,attrs:n}){let r=_e(null),o=ce(()=>jr(r)),s=GU(),l=kt(p$,null),a=_e(s===!0||l==null?ZU(r.value):l.resolveTarget());a.value&&D1(a.value,v=>v+1);let c=_e(!1);gt(()=>{c.value=!0}),jt(()=>{s||l!=null&&(a.value=l.resolveTarget())});let f=kt(Dh,null),p=!1,h=Ko();return Ft(r,()=>{if(p||!f)return;let v=ue(r);v&&(Zt(f.register(v),h),p=!0)}),Zt(()=>{var v,y;let _=(v=o.value)==null?void 0:v.getElementById("headlessui-portal-root");!_||a.value!==_||D1(a.value,w=>w-1)||a.value.children.length>0||(y=a.value.parentElement)==null||y.removeChild(a.value)}),()=>{if(!c.value||a.value===null)return null;let v={ref:r,"data-headlessui-portal":""};return dt(lw,{to:a.value},St({ourProps:v,theirProps:e,slot:{},attrs:n,slots:t,name:"Portal"}))}}}),Dh=Symbol("PortalParentContext");function f$(){let e=kt(Dh,null),t=_e([]);function n(s){return t.value.push(s),e&&e.register(s),()=>r(s)}function r(s){let l=t.value.indexOf(s);l!==-1&&t.value.splice(l,1),e&&e.unregister(s)}let o={register:n,unregister:r,portals:t};return[t,ve({name:"PortalWrapper",setup(s,{slots:l}){return Yt(Dh,o),()=>{var a;return(a=l.default)==null?void 0:a.call(l)}}})]}let p$=Symbol("PortalGroupContext"),ej=ve({name:"PortalGroup",props:{as:{type:[Object,String],default:"template"},target:{type:Object,default:null}},setup(e,{attrs:t,slots:n}){let r=Si({resolveTarget(){return e.target}});return Yt(p$,r),()=>{let{target:o,...s}=e;return St({theirProps:s,ourProps:{},slot:{},attrs:t,slots:n,name:"PortalGroup"})}}});var tj=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(tj||{});let Fh=Symbol("DialogContext");function Ba(e){let t=kt(Fh,null);if(t===null){let n=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Ba),n}return t}let Ju="DC8F892D-2EBD-447C-A4C8-A03058436FF4",nj=ve({name:"Dialog",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},open:{type:[Boolean,String],default:Ju},initialFocus:{type:Object,default:null},id:{type:String,default:null},role:{type:String,default:"dialog"}},emits:{close:e=>!0},setup(e,{emit:t,attrs:n,slots:r,expose:o}){var s,l;let a=(s=e.id)!=null?s:`headlessui-dialog-${zt()}`,c=_e(!1);gt(()=>{c.value=!0});let f=!1,p=ce(()=>e.role==="dialog"||e.role==="alertdialog"?e.role:(f||(f=!0,console.warn(`Invalid role [${p}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")),h=_e(0),v=ps(),y=ce(()=>e.open===Ju&&v!==null?(v.value&Pt.Open)===Pt.Open:e.open),_=_e(null),w=ce(()=>jr(_));if(o({el:_,$el:_}),!(e.open!==Ju||v!==null))throw new Error("You forgot to provide an `open` prop to the `Dialog`.");if(typeof y.value!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${y.value===Ju?void 0:e.open}`);let I=ce(()=>c.value&&y.value?0:1),O=ce(()=>I.value===0),S=ce(()=>h.value>1),E=kt(Fh,null)!==null,[T,$]=f$(),{resolveContainers:P,mainTreeNodeRef:k,MainTreeNode:A}=s$({portals:T,defaultContainers:[ce(()=>{var Le;return(Le=Oe.panelRef.value)!=null?Le:_.value})]}),H=ce(()=>S.value?"parent":"leaf"),D=ce(()=>v!==null?(v.value&Pt.Closing)===Pt.Closing:!1),F=ce(()=>E||D.value?!1:O.value),z=ce(()=>{var Le,Ke,Q;return(Q=Array.from((Ke=(Le=w.value)==null?void 0:Le.querySelectorAll("body > *"))!=null?Ke:[]).find(ae=>ae.id==="headlessui-portal-root"?!1:ae.contains(ue(k))&&ae instanceof HTMLElement))!=null?Q:null});M1(z,F);let K=ce(()=>S.value?!0:O.value),te=ce(()=>{var Le,Ke,Q;return(Q=Array.from((Ke=(Le=w.value)==null?void 0:Le.querySelectorAll("[data-headlessui-portal]"))!=null?Ke:[]).find(ae=>ae.contains(ue(k))&&ae instanceof HTMLElement))!=null?Q:null});M1(te,K),JU({type:"Dialog",enabled:ce(()=>I.value===0),element:_,onUpdate:(Le,Ke)=>{if(Ke==="Dialog")return Tt(Le,{[Nh.Add]:()=>h.value+=1,[Nh.Remove]:()=>h.value-=1})}});let we=c$({name:"DialogDescription",slot:ce(()=>({open:y.value}))}),be=_e(null),Oe={titleId:be,panelRef:_e(null),dialogState:I,setTitleId(Le){be.value!==Le&&(be.value=Le)},close(){t("close",!1)}};Yt(Fh,Oe);let Ae=ce(()=>!(!O.value||S.value));jd(P,(Le,Ke)=>{Le.preventDefault(),Oe.close(),rn(()=>Ke==null?void 0:Ke.focus())},Ae);let Ye=ce(()=>!(S.value||I.value!==0));jv((l=w.value)==null?void 0:l.defaultView,"keydown",Le=>{Ye.value&&(Le.defaultPrevented||Le.key===lt.Escape&&(Le.preventDefault(),Le.stopPropagation(),Oe.close()))});let ft=ce(()=>!(D.value||I.value!==0||E));return qU(w,ft,Le=>{var Ke;return{containers:[...(Ke=Le.containers)!=null?Ke:[],P]}}),jt(Le=>{if(I.value!==0)return;let Ke=ue(_);if(!Ke)return;let Q=new ResizeObserver(ae=>{for(let fe of ae){let Se=fe.target.getBoundingClientRect();Se.x===0&&Se.y===0&&Se.width===0&&Se.height===0&&Oe.close()}});Q.observe(Ke),Le(()=>Q.disconnect())}),()=>{let{open:Le,initialFocus:Ke,...Q}=e,ae={...n,ref:_,id:a,role:p.value,"aria-modal":I.value===0?!0:void 0,"aria-labelledby":be.value,"aria-describedby":we.value},fe={open:I.value===0};return dt(Lh,{force:!0},()=>[dt(d$,()=>dt(ej,{target:_.value},()=>dt(Lh,{force:!1},()=>dt(Rl,{initialFocus:Ke,containers:P,features:O.value?Tt(H.value,{parent:Rl.features.RestoreFocus,leaf:Rl.features.All&~Rl.features.FocusLock}):Rl.features.None},()=>dt($,{},()=>St({ourProps:ae,theirProps:{...Q,...n},slot:fe,attrs:n,slots:r,visible:I.value===0,features:rr.RenderStrategy|rr.Static,name:"Dialog"})))))),dt(A)])}}}),rj=ve({name:"DialogOverlay",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n}){var r;let o=(r=e.id)!=null?r:`headlessui-dialog-overlay-${zt()}`,s=Ba("DialogOverlay");function l(a){a.target===a.currentTarget&&(a.preventDefault(),a.stopPropagation(),s.close())}return()=>{let{...a}=e;return St({ourProps:{id:o,"aria-hidden":!0,onClick:l},theirProps:a,slot:{open:s.dialogState.value===0},attrs:t,slots:n,name:"DialogOverlay"})}}});ve({name:"DialogBackdrop",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:null}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:r}){var o;let s=(o=e.id)!=null?o:`headlessui-dialog-backdrop-${zt()}`,l=Ba("DialogBackdrop"),a=_e(null);return r({el:a,$el:a}),gt(()=>{if(l.panelRef.value===null)throw new Error("A <DialogBackdrop /> component is being used, but a <DialogPanel /> component is missing.")}),()=>{let{...c}=e,f={id:s,ref:a,"aria-hidden":!0};return dt(Lh,{force:!0},()=>dt(d$,()=>St({ourProps:f,theirProps:{...t,...c},slot:{open:l.dialogState.value===0},attrs:t,slots:n,name:"DialogBackdrop"})))}}});ve({name:"DialogPanel",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:r}){var o;let s=(o=e.id)!=null?o:`headlessui-dialog-panel-${zt()}`,l=Ba("DialogPanel");r({el:l.panelRef,$el:l.panelRef});function a(c){c.stopPropagation()}return()=>{let{...c}=e,f={id:s,ref:l.panelRef,onClick:a};return St({ourProps:f,theirProps:c,slot:{open:l.dialogState.value===0},attrs:t,slots:n,name:"DialogPanel"})}}});let oj=ve({name:"DialogTitle",props:{as:{type:[Object,String],default:"h2"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n}){var r;let o=(r=e.id)!=null?r:`headlessui-dialog-title-${zt()}`,s=Ba("DialogTitle");return gt(()=>{s.setTitleId(o),Zt(()=>s.setTitleId(null))}),()=>{let{...l}=e;return St({ourProps:{id:o},theirProps:l,slot:{open:s.dialogState.value===0},attrs:t,slots:n,name:"DialogTitle"})}}}),F1=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function B1(e){var t,n;let r=(t=e.innerText)!=null?t:"",o=e.cloneNode(!0);if(!(o instanceof HTMLElement))return r;let s=!1;for(let a of o.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))a.remove(),s=!0;let l=s?(n=o.innerText)!=null?n:"":r;return F1.test(l)&&(l=l.replace(F1,"")),l}function ij(e){let t=e.getAttribute("aria-label");if(typeof t=="string")return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let r=n.split(" ").map(o=>{let s=document.getElementById(o);if(s){let l=s.getAttribute("aria-label");return typeof l=="string"?l.trim():B1(s).trim()}return null}).filter(Boolean);if(r.length>0)return r.join(", ")}return B1(e).trim()}function sj(e){let t=_e(""),n=_e("");return()=>{let r=ue(e);if(!r)return"";let o=r.innerText;if(t.value===o)return n.value;let s=ij(r).trim().toLowerCase();return t.value=o,n.value=s,s}}function lj(e,t){return e===t}var aj=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(aj||{}),uj=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(uj||{}),cj=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(cj||{});function dj(e){requestAnimationFrame(()=>requestAnimationFrame(e))}let h$=Symbol("ListboxContext");function Ua(e){let t=kt(h$,null);if(t===null){let n=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Ua),n}return t}let Vv=ve({name:"Listbox",emits:{"update:modelValue":e=>!0},props:{as:{type:[Object,String],default:"template"},disabled:{type:[Boolean],default:!1},by:{type:[String,Function],default:()=>lj},horizontal:{type:[Boolean],default:!1},modelValue:{type:[Object,String,Number,Boolean],default:void 0},defaultValue:{type:[Object,String,Number,Boolean],default:void 0},form:{type:String,optional:!0},name:{type:String,optional:!0},multiple:{type:[Boolean],default:!1}},inheritAttrs:!1,setup(e,{slots:t,attrs:n,emit:r}){let o=_e(1),s=_e(null),l=_e(null),a=_e(null),c=_e([]),f=_e(""),p=_e(null),h=_e(1);function v(E=T=>T){let T=p.value!==null?c.value[p.value]:null,$=Fv(E(c.value.slice()),k=>ue(k.dataRef.domRef)),P=T?$.indexOf(T):null;return P===-1&&(P=null),{options:$,activeOptionIndex:P}}let y=ce(()=>e.multiple?1:0),[_,w]=Nv(ce(()=>e.modelValue),E=>r("update:modelValue",E),ce(()=>e.defaultValue)),I=ce(()=>_.value===void 0?Tt(y.value,{[1]:[],[0]:void 0}):_.value),O={listboxState:o,value:I,mode:y,compare(E,T){if(typeof e.by=="string"){let $=e.by;return(E==null?void 0:E[$])===(T==null?void 0:T[$])}return e.by(E,T)},orientation:ce(()=>e.horizontal?"horizontal":"vertical"),labelRef:s,buttonRef:l,optionsRef:a,disabled:ce(()=>e.disabled),options:c,searchQuery:f,activeOptionIndex:p,activationTrigger:h,closeListbox(){e.disabled||o.value!==1&&(o.value=1,p.value=null)},openListbox(){e.disabled||o.value!==0&&(o.value=0)},goToOption(E,T,$){if(e.disabled||o.value===1)return;let P=v(),k=Rh(E===xt.Specific?{focus:xt.Specific,id:T}:{focus:E},{resolveItems:()=>P.options,resolveActiveIndex:()=>P.activeOptionIndex,resolveId:A=>A.id,resolveDisabled:A=>A.dataRef.disabled});f.value="",p.value=k,h.value=$!=null?$:1,c.value=P.options},search(E){if(e.disabled||o.value===1)return;let T=f.value!==""?0:1;f.value+=E.toLowerCase();let $=(p.value!==null?c.value.slice(p.value+T).concat(c.value.slice(0,p.value+T)):c.value).find(k=>k.dataRef.textValue.startsWith(f.value)&&!k.dataRef.disabled),P=$?c.value.indexOf($):-1;P===-1||P===p.value||(p.value=P,h.value=1)},clearSearch(){e.disabled||o.value!==1&&f.value!==""&&(f.value="")},registerOption(E,T){let $=v(P=>[...P,{id:E,dataRef:T}]);c.value=$.options,p.value=$.activeOptionIndex},unregisterOption(E){let T=v($=>{let P=$.findIndex(k=>k.id===E);return P!==-1&&$.splice(P,1),$});c.value=T.options,p.value=T.activeOptionIndex,h.value=1},theirOnChange(E){e.disabled||w(E)},select(E){e.disabled||w(Tt(y.value,{[0]:()=>E,[1]:()=>{let T=Ue(O.value.value).slice(),$=Ue(E),P=T.findIndex(k=>O.compare($,Ue(k)));return P===-1?T.push($):T.splice(P,1),T}}))}};jd([l,a],(E,T)=>{var $;O.closeListbox(),Dv(T,Ud.Loose)||(E.preventDefault(),($=ue(l))==null||$.focus())},ce(()=>o.value===0)),Yt(h$,O),Vd(ce(()=>Tt(o.value,{[0]:Pt.Open,[1]:Pt.Closed})));let S=ce(()=>{var E;return(E=ue(l))==null?void 0:E.closest("form")});return gt(()=>{Ft([S],()=>{if(!S.value||e.defaultValue===void 0)return;function E(){O.theirOnChange(e.defaultValue)}return S.value.addEventListener("reset",E),()=>{var T;(T=S.value)==null||T.removeEventListener("reset",E)}},{immediate:!0})}),()=>{let{name:E,modelValue:T,disabled:$,form:P,...k}=e,A={open:o.value===0,disabled:$,value:I.value};return dt(Fe,[...E!=null&&I.value!=null?Uv({[E]:I.value}).map(([H,D])=>dt(_o,Bv({features:to.Hidden,key:H,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:P,disabled:$,name:H,value:D}))):[],St({ourProps:{},theirProps:{...n,...fs(k,["defaultValue","onUpdate:modelValue","horizontal","multiple","by"])},slot:A,slots:t,attrs:n,name:"Listbox"})])}}}),Wv=ve({name:"ListboxLabel",props:{as:{type:[Object,String],default:"label"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n}){var r;let o=(r=e.id)!=null?r:`headlessui-listbox-label-${zt()}`,s=Ua("ListboxLabel");function l(){var a;(a=ue(s.buttonRef))==null||a.focus({preventScroll:!0})}return()=>{let a={open:s.listboxState.value===0,disabled:s.disabled.value},{...c}=e,f={id:o,ref:s.labelRef,onClick:l};return St({ourProps:f,theirProps:c,slot:a,attrs:t,slots:n,name:"ListboxLabel"})}}}),zv=ve({name:"ListboxButton",props:{as:{type:[Object,String],default:"button"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:r}){var o;let s=(o=e.id)!=null?o:`headlessui-listbox-button-${zt()}`,l=Ua("ListboxButton");r({el:l.buttonRef,$el:l.buttonRef});function a(h){switch(h.key){case lt.Space:case lt.Enter:case lt.ArrowDown:h.preventDefault(),l.openListbox(),rn(()=>{var v;(v=ue(l.optionsRef))==null||v.focus({preventScroll:!0}),l.value.value||l.goToOption(xt.First)});break;case lt.ArrowUp:h.preventDefault(),l.openListbox(),rn(()=>{var v;(v=ue(l.optionsRef))==null||v.focus({preventScroll:!0}),l.value.value||l.goToOption(xt.Last)});break}}function c(h){switch(h.key){case lt.Space:h.preventDefault();break}}function f(h){l.disabled.value||(l.listboxState.value===0?(l.closeListbox(),rn(()=>{var v;return(v=ue(l.buttonRef))==null?void 0:v.focus({preventScroll:!0})})):(h.preventDefault(),l.openListbox(),dj(()=>{var v;return(v=ue(l.optionsRef))==null?void 0:v.focus({preventScroll:!0})})))}let p=Hd(ce(()=>({as:e.as,type:t.type})),l.buttonRef);return()=>{var h,v;let y={open:l.listboxState.value===0,disabled:l.disabled.value,value:l.value.value},{..._}=e,w={ref:l.buttonRef,id:s,type:p.value,"aria-haspopup":"listbox","aria-controls":(h=ue(l.optionsRef))==null?void 0:h.id,"aria-expanded":l.listboxState.value===0,"aria-labelledby":l.labelRef.value?[(v=ue(l.labelRef))==null?void 0:v.id,s].join(" "):void 0,disabled:l.disabled.value===!0?!0:void 0,onKeydown:a,onKeyup:c,onClick:f};return St({ourProps:w,theirProps:_,slot:y,attrs:t,slots:n,name:"ListboxButton"})}}}),qv=ve({name:"ListboxOptions",props:{as:{type:[Object,String],default:"ul"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:r}){var o;let s=(o=e.id)!=null?o:`headlessui-listbox-options-${zt()}`,l=Ua("ListboxOptions"),a=_e(null);r({el:l.optionsRef,$el:l.optionsRef});function c(h){switch(a.value&&clearTimeout(a.value),h.key){case lt.Space:if(l.searchQuery.value!=="")return h.preventDefault(),h.stopPropagation(),l.search(h.key);case lt.Enter:if(h.preventDefault(),h.stopPropagation(),l.activeOptionIndex.value!==null){let v=l.options.value[l.activeOptionIndex.value];l.select(v.dataRef.value)}l.mode.value===0&&(l.closeListbox(),rn(()=>{var v;return(v=ue(l.buttonRef))==null?void 0:v.focus({preventScroll:!0})}));break;case Tt(l.orientation.value,{vertical:lt.ArrowDown,horizontal:lt.ArrowRight}):return h.preventDefault(),h.stopPropagation(),l.goToOption(xt.Next);case Tt(l.orientation.value,{vertical:lt.ArrowUp,horizontal:lt.ArrowLeft}):return h.preventDefault(),h.stopPropagation(),l.goToOption(xt.Previous);case lt.Home:case lt.PageUp:return h.preventDefault(),h.stopPropagation(),l.goToOption(xt.First);case lt.End:case lt.PageDown:return h.preventDefault(),h.stopPropagation(),l.goToOption(xt.Last);case lt.Escape:h.preventDefault(),h.stopPropagation(),l.closeListbox(),rn(()=>{var v;return(v=ue(l.buttonRef))==null?void 0:v.focus({preventScroll:!0})});break;case lt.Tab:h.preventDefault(),h.stopPropagation();break;default:h.key.length===1&&(l.search(h.key),a.value=setTimeout(()=>l.clearSearch(),350));break}}let f=ps(),p=ce(()=>f!==null?(f.value&Pt.Open)===Pt.Open:l.listboxState.value===0);return()=>{var h,v;let y={open:l.listboxState.value===0},{..._}=e,w={"aria-activedescendant":l.activeOptionIndex.value===null||(h=l.options.value[l.activeOptionIndex.value])==null?void 0:h.id,"aria-multiselectable":l.mode.value===1?!0:void 0,"aria-labelledby":(v=ue(l.buttonRef))==null?void 0:v.id,"aria-orientation":l.orientation.value,id:s,onKeydown:c,role:"listbox",tabIndex:0,ref:l.optionsRef};return St({ourProps:w,theirProps:_,slot:y,attrs:t,slots:n,features:rr.RenderStrategy|rr.Static,visible:p.value,name:"ListboxOptions"})}}}),Kv=ve({name:"ListboxOption",props:{as:{type:[Object,String],default:"li"},value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1},id:{type:String,default:null}},setup(e,{slots:t,attrs:n,expose:r}){var o;let s=(o=e.id)!=null?o:`headlessui-listbox-option-${zt()}`,l=Ua("ListboxOption"),a=_e(null);r({el:a,$el:a});let c=ce(()=>l.activeOptionIndex.value!==null?l.options.value[l.activeOptionIndex.value].id===s:!1),f=ce(()=>Tt(l.mode.value,{[0]:()=>l.compare(Ue(l.value.value),Ue(e.value)),[1]:()=>Ue(l.value.value).some(E=>l.compare(Ue(E),Ue(e.value)))})),p=ce(()=>Tt(l.mode.value,{[1]:()=>{var E;let T=Ue(l.value.value);return((E=l.options.value.find($=>T.some(P=>l.compare(Ue(P),Ue($.dataRef.value)))))==null?void 0:E.id)===s},[0]:()=>f.value})),h=sj(a),v=ce(()=>({disabled:e.disabled,value:e.value,get textValue(){return h()},domRef:a}));gt(()=>l.registerOption(s,v)),Zt(()=>l.unregisterOption(s)),gt(()=>{Ft([l.listboxState,f],()=>{l.listboxState.value===0&&f.value&&Tt(l.mode.value,{[1]:()=>{p.value&&l.goToOption(xt.Specific,s)},[0]:()=>{l.goToOption(xt.Specific,s)}})},{immediate:!0})}),jt(()=>{l.listboxState.value===0&&c.value&&l.activationTrigger.value!==0&&rn(()=>{var E,T;return(T=(E=ue(a))==null?void 0:E.scrollIntoView)==null?void 0:T.call(E,{block:"nearest"})})});function y(E){if(e.disabled)return E.preventDefault();l.select(e.value),l.mode.value===0&&(l.closeListbox(),rn(()=>{var T;return(T=ue(l.buttonRef))==null?void 0:T.focus({preventScroll:!0})}))}function _(){if(e.disabled)return l.goToOption(xt.Nothing);l.goToOption(xt.Specific,s)}let w=V2();function I(E){w.update(E)}function O(E){w.wasMoved(E)&&(e.disabled||c.value||l.goToOption(xt.Specific,s,0))}function S(E){w.wasMoved(E)&&(e.disabled||c.value&&l.goToOption(xt.Nothing))}return()=>{let{disabled:E}=e,T={active:c.value,selected:f.value,disabled:E},{value:$,disabled:P,...k}=e,A={id:s,ref:a,role:"option",tabIndex:E===!0?void 0:-1,"aria-disabled":E===!0?!0:void 0,"aria-selected":f.value,disabled:void 0,onClick:y,onFocus:_,onPointerenter:I,onMouseenter:I,onPointermove:O,onMousemove:O,onPointerleave:S,onMouseleave:S};return St({ourProps:A,theirProps:k,slot:T,attrs:n,slots:t,name:"ListboxOption"})}}});var fj=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(fj||{});let m$=Symbol("PopoverContext");function Wd(e){let t=kt(m$,null);if(t===null){let n=new Error(`<${e} /> is missing a parent <${b$.name} /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Wd),n}return t}let v$=Symbol("PopoverGroupContext");function g$(){return kt(v$,null)}let y$=Symbol("PopoverPanelContext");function pj(){return kt(y$,null)}let b$=ve({name:"Popover",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"}},setup(e,{slots:t,attrs:n,expose:r}){var o;let s=_e(null);r({el:s,$el:s});let l=_e(1),a=_e(null),c=_e(null),f=_e(null),p=_e(null),h=ce(()=>jr(s)),v=ce(()=>{var $,P;if(!ue(a)||!ue(p))return!1;for(let K of document.querySelectorAll("body > *"))if(Number(K==null?void 0:K.contains(ue(a)))^Number(K==null?void 0:K.contains(ue(p))))return!0;let k=Bd(),A=k.indexOf(ue(a)),H=(A+k.length-1)%k.length,D=(A+1)%k.length,F=k[H],z=k[D];return!(($=ue(p))!=null&&$.contains(F))&&!((P=ue(p))!=null&&P.contains(z))}),y={popoverState:l,buttonId:_e(null),panelId:_e(null),panel:p,button:a,isPortalled:v,beforePanelSentinel:c,afterPanelSentinel:f,togglePopover(){l.value=Tt(l.value,{[0]:1,[1]:0})},closePopover(){l.value!==1&&(l.value=1)},close($){y.closePopover();let P=(()=>$?$ instanceof HTMLElement?$:$.value instanceof HTMLElement?ue($):ue(y.button):ue(y.button))();P==null||P.focus()}};Yt(m$,y),Vd(ce(()=>Tt(l.value,{[0]:Pt.Open,[1]:Pt.Closed})));let _={buttonId:y.buttonId,panelId:y.panelId,close(){y.closePopover()}},w=g$(),I=w==null?void 0:w.registerPopover,[O,S]=f$(),E=s$({mainTreeNodeRef:w==null?void 0:w.mainTreeNodeRef,portals:O,defaultContainers:[a,p]});function T(){var $,P,k,A;return(A=w==null?void 0:w.isFocusWithinPopoverGroup())!=null?A:(($=h.value)==null?void 0:$.activeElement)&&(((P=ue(a))==null?void 0:P.contains(h.value.activeElement))||((k=ue(p))==null?void 0:k.contains(h.value.activeElement)))}return jt(()=>I==null?void 0:I(_)),jv((o=h.value)==null?void 0:o.defaultView,"focus",$=>{var P,k;$.target!==window&&$.target instanceof HTMLElement&&l.value===0&&(T()||a&&p&&(E.contains($.target)||(P=ue(y.beforePanelSentinel))!=null&&P.contains($.target)||(k=ue(y.afterPanelSentinel))!=null&&k.contains($.target)||y.closePopover()))},!0),jd(E.resolveContainers,($,P)=>{var k;y.closePopover(),Dv(P,Ud.Loose)||($.preventDefault(),(k=ue(a))==null||k.focus())},ce(()=>l.value===0)),()=>{let $={open:l.value===0,close:y.close};return dt(Fe,[dt(S,{},()=>St({theirProps:{...e,...n},ourProps:{ref:s},slot:$,slots:t,attrs:n,name:"Popover"})),dt(E.MainTreeNode)])}}}),hj=ve({name:"PopoverButton",props:{as:{type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1},id:{type:String,default:null}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:r}){var o;let s=(o=e.id)!=null?o:`headlessui-popover-button-${zt()}`,l=Wd("PopoverButton"),a=ce(()=>jr(l.button));r({el:l.button,$el:l.button}),gt(()=>{l.buttonId.value=s}),Zt(()=>{l.buttonId.value=null});let c=g$(),f=c==null?void 0:c.closeOthers,p=pj(),h=ce(()=>p===null?!1:p.value===l.panelId.value),v=_e(null),y=`headlessui-focus-sentinel-${zt()}`;h.value||jt(()=>{l.button.value=ue(v)});let _=Hd(ce(()=>({as:e.as,type:t.type})),v);function w($){var P,k,A,H,D;if(h.value){if(l.popoverState.value===1)return;switch($.key){case lt.Space:case lt.Enter:$.preventDefault(),(k=(P=$.target).click)==null||k.call(P),l.closePopover(),(A=ue(l.button))==null||A.focus();break}}else switch($.key){case lt.Space:case lt.Enter:$.preventDefault(),$.stopPropagation(),l.popoverState.value===1&&(f==null||f(l.buttonId.value)),l.togglePopover();break;case lt.Escape:if(l.popoverState.value!==0)return f==null?void 0:f(l.buttonId.value);if(!ue(l.button)||(H=a.value)!=null&&H.activeElement&&!((D=ue(l.button))!=null&&D.contains(a.value.activeElement)))return;$.preventDefault(),$.stopPropagation(),l.closePopover();break}}function I($){h.value||$.key===lt.Space&&$.preventDefault()}function O($){var P,k;e.disabled||(h.value?(l.closePopover(),(P=ue(l.button))==null||P.focus()):($.preventDefault(),$.stopPropagation(),l.popoverState.value===1&&(f==null||f(l.buttonId.value)),l.togglePopover(),(k=ue(l.button))==null||k.focus()))}function S($){$.preventDefault(),$.stopPropagation()}let E=Hv();function T(){let $=ue(l.panel);if(!$)return;function P(){Tt(E.value,{[pr.Forwards]:()=>Gr($,Pn.First),[pr.Backwards]:()=>Gr($,Pn.Last)})===ga.Error&&Gr(Bd().filter(k=>k.dataset.headlessuiFocusGuard!=="true"),Tt(E.value,{[pr.Forwards]:Pn.Next,[pr.Backwards]:Pn.Previous}),{relativeTo:ue(l.button)})}P()}return()=>{let $=l.popoverState.value===0,P={open:$},{...k}=e,A=h.value?{ref:v,type:_.value,onKeydown:w,onClick:O}:{ref:v,id:s,type:_.value,"aria-expanded":l.popoverState.value===0,"aria-controls":ue(l.panel)?l.panelId.value:void 0,disabled:e.disabled?!0:void 0,onKeydown:w,onKeyup:I,onClick:O,onMousedown:S};return dt(Fe,[St({ourProps:A,theirProps:{...t,...k},slot:P,attrs:t,slots:n,name:"PopoverButton"}),$&&!h.value&&l.isPortalled.value&&dt(_o,{id:y,features:to.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:T})])}}});ve({name:"PopoverOverlay",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0}},setup(e,{attrs:t,slots:n}){let r=Wd("PopoverOverlay"),o=`headlessui-popover-overlay-${zt()}`,s=ps(),l=ce(()=>s!==null?(s.value&Pt.Open)===Pt.Open:r.popoverState.value===0);function a(){r.closePopover()}return()=>{let c={open:r.popoverState.value===0};return St({ourProps:{id:o,"aria-hidden":!0,onClick:a},theirProps:e,slot:c,attrs:t,slots:n,features:rr.RenderStrategy|rr.Static,visible:l.value,name:"PopoverOverlay"})}}});let mj=ve({name:"PopoverPanel",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},focus:{type:Boolean,default:!1},id:{type:String,default:null}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:r}){var o;let s=(o=e.id)!=null?o:`headlessui-popover-panel-${zt()}`,{focus:l}=e,a=Wd("PopoverPanel"),c=ce(()=>jr(a.panel)),f=`headlessui-focus-sentinel-before-${zt()}`,p=`headlessui-focus-sentinel-after-${zt()}`;r({el:a.panel,$el:a.panel}),gt(()=>{a.panelId.value=s}),Zt(()=>{a.panelId.value=null}),Yt(y$,a.panelId),jt(()=>{var S,E;if(!l||a.popoverState.value!==0||!a.panel)return;let T=(S=c.value)==null?void 0:S.activeElement;(E=ue(a.panel))!=null&&E.contains(T)||Gr(ue(a.panel),Pn.First)});let h=ps(),v=ce(()=>h!==null?(h.value&Pt.Open)===Pt.Open:a.popoverState.value===0);function y(S){var E,T;switch(S.key){case lt.Escape:if(a.popoverState.value!==0||!ue(a.panel)||c.value&&!((E=ue(a.panel))!=null&&E.contains(c.value.activeElement)))return;S.preventDefault(),S.stopPropagation(),a.closePopover(),(T=ue(a.button))==null||T.focus();break}}function _(S){var E,T,$,P,k;let A=S.relatedTarget;A&&ue(a.panel)&&((E=ue(a.panel))!=null&&E.contains(A)||(a.closePopover(),(($=(T=ue(a.beforePanelSentinel))==null?void 0:T.contains)!=null&&$.call(T,A)||(k=(P=ue(a.afterPanelSentinel))==null?void 0:P.contains)!=null&&k.call(P,A))&&A.focus({preventScroll:!0})))}let w=Hv();function I(){let S=ue(a.panel);if(!S)return;function E(){Tt(w.value,{[pr.Forwards]:()=>{var T;Gr(S,Pn.First)===ga.Error&&((T=ue(a.afterPanelSentinel))==null||T.focus())},[pr.Backwards]:()=>{var T;(T=ue(a.button))==null||T.focus({preventScroll:!0})}})}E()}function O(){let S=ue(a.panel);if(!S)return;function E(){Tt(w.value,{[pr.Forwards]:()=>{let T=ue(a.button),$=ue(a.panel);if(!T)return;let P=Bd(),k=P.indexOf(T),A=P.slice(0,k+1),H=[...P.slice(k+1),...A];for(let D of H.slice())if(D.dataset.headlessuiFocusGuard==="true"||$!=null&&$.contains(D)){let F=H.indexOf(D);F!==-1&&H.splice(F,1)}Gr(H,Pn.First,{sorted:!1})},[pr.Backwards]:()=>{var T;Gr(S,Pn.Previous)===ga.Error&&((T=ue(a.button))==null||T.focus())}})}E()}return()=>{let S={open:a.popoverState.value===0,close:a.close},{focus:E,...T}=e,$={ref:a.panel,id:s,onKeydown:y,onFocusout:l&&a.popoverState.value===0?_:void 0,tabIndex:-1};return St({ourProps:$,theirProps:{...t,...T},attrs:t,slot:S,slots:{...n,default:(...P)=>{var k;return[dt(Fe,[v.value&&a.isPortalled.value&&dt(_o,{id:f,ref:a.beforePanelSentinel,features:to.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:I}),(k=n.default)==null?void 0:k.call(n,...P),v.value&&a.isPortalled.value&&dt(_o,{id:p,ref:a.afterPanelSentinel,features:to.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:O})])]}},features:rr.RenderStrategy|rr.Static,visible:v.value,name:"PopoverPanel"})}}});ve({name:"PopoverGroup",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"}},setup(e,{attrs:t,slots:n,expose:r}){let o=_e(null),s=nd([]),l=ce(()=>jr(o)),a=KU();r({el:o,$el:o});function c(v){let y=s.value.indexOf(v);y!==-1&&s.value.splice(y,1)}function f(v){return s.value.push(v),()=>{c(v)}}function p(){var v;let y=l.value;if(!y)return!1;let _=y.activeElement;return(v=ue(o))!=null&&v.contains(_)?!0:s.value.some(w=>{var I,O;return((I=y.getElementById(w.buttonId.value))==null?void 0:I.contains(_))||((O=y.getElementById(w.panelId.value))==null?void 0:O.contains(_))})}function h(v){for(let y of s.value)y.buttonId.value!==v&&y.close()}return Yt(v$,{registerPopover:f,unregisterPopover:c,isFocusWithinPopoverGroup:p,closeOthers:h,mainTreeNodeRef:a.mainTreeNodeRef}),()=>dt(Fe,[St({ourProps:{ref:o},theirProps:{...e,...t},slot:{},attrs:t,slots:n,name:"PopoverGroup"}),dt(a.MainTreeNode)])}});let _$=Symbol("LabelContext");function w$(){let e=kt(_$,null);if(e===null){let t=new Error("You used a <Label /> component, but it is not inside a parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,w$),t}return e}function vj({slot:e={},name:t="Label",props:n={}}={}){let r=_e([]);function o(s){return r.value.push(s),()=>{let l=r.value.indexOf(s);l!==-1&&r.value.splice(l,1)}}return Yt(_$,{register:o,slot:e,name:t,props:n}),ce(()=>r.value.length>0?r.value.join(" "):void 0)}let gj=ve({name:"Label",props:{as:{type:[Object,String],default:"label"},passive:{type:[Boolean],default:!1},id:{type:String,default:null}},setup(e,{slots:t,attrs:n}){var r;let o=(r=e.id)!=null?r:`headlessui-label-${zt()}`,s=w$();return gt(()=>Zt(s.register(o))),()=>{let{name:l="Label",slot:a={},props:c={}}=s,{passive:f,...p}=e,h={...Object.entries(c).reduce((v,[y,_])=>Object.assign(v,{[y]:jn(_)}),{}),id:o};return f&&(delete h.onClick,delete h.htmlFor,delete p.onClick),St({ourProps:h,theirProps:p,slot:a,attrs:n,slots:t,name:l})}}}),S$=Symbol("GroupContext"),yj=ve({name:"SwitchGroup",props:{as:{type:[Object,String],default:"template"}},setup(e,{slots:t,attrs:n}){let r=_e(null),o=vj({name:"SwitchLabel",props:{htmlFor:ce(()=>{var l;return(l=r.value)==null?void 0:l.id}),onClick(l){r.value&&(l.currentTarget.tagName==="LABEL"&&l.preventDefault(),r.value.click(),r.value.focus({preventScroll:!0}))}}}),s=c$({name:"SwitchDescription"});return Yt(S$,{switchRef:r,labelledby:o,describedby:s}),()=>St({theirProps:e,ourProps:{},slot:{},slots:t,attrs:n,name:"SwitchGroup"})}}),bj=ve({name:"Switch",emits:{"update:modelValue":e=>!0},props:{as:{type:[Object,String],default:"button"},modelValue:{type:Boolean,default:void 0},defaultChecked:{type:Boolean,optional:!0},form:{type:String,optional:!0},name:{type:String,optional:!0},value:{type:String,optional:!0},id:{type:String,default:null},disabled:{type:Boolean,default:!1},tabIndex:{type:Number,default:0}},inheritAttrs:!1,setup(e,{emit:t,attrs:n,slots:r,expose:o}){var s;let l=(s=e.id)!=null?s:`headlessui-switch-${zt()}`,a=kt(S$,null),[c,f]=Nv(ce(()=>e.modelValue),S=>t("update:modelValue",S),ce(()=>e.defaultChecked));function p(){f(!c.value)}let h=_e(null),v=a===null?h:a.switchRef,y=Hd(ce(()=>({as:e.as,type:n.type})),v);o({el:v,$el:v});function _(S){S.preventDefault(),p()}function w(S){S.key===lt.Space?(S.preventDefault(),p()):S.key===lt.Enter&&AU(S.currentTarget)}function I(S){S.preventDefault()}let O=ce(()=>{var S,E;return(E=(S=ue(v))==null?void 0:S.closest)==null?void 0:E.call(S,"form")});return gt(()=>{Ft([O],()=>{if(!O.value||e.defaultChecked===void 0)return;function S(){f(e.defaultChecked)}return O.value.addEventListener("reset",S),()=>{var E;(E=O.value)==null||E.removeEventListener("reset",S)}},{immediate:!0})}),()=>{let{name:S,value:E,form:T,tabIndex:$,...P}=e,k={checked:c.value},A={id:l,ref:v,role:"switch",type:y.value,tabIndex:$===-1?0:$,"aria-checked":c.value,"aria-labelledby":a==null?void 0:a.labelledby.value,"aria-describedby":a==null?void 0:a.describedby.value,onClick:_,onKeyup:w,onKeypress:I};return dt(Fe,[S!=null&&c.value!=null?dt(_o,Bv({features:to.Hidden,as:"input",type:"checkbox",hidden:!0,readOnly:!0,checked:c.value,form:T,disabled:P.disabled,name:S,value:E})):null,St({ourProps:A,theirProps:{...n,...fs(P,["modelValue","defaultChecked"])},slot:k,attrs:n,slots:r,name:"Switch"})])}}}),_j=gj;function wj(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function Fp(e,...t){e&&t.length>0&&e.classList.add(...t)}function Yu(e,...t){e&&t.length>0&&e.classList.remove(...t)}var Bh=(e=>(e.Finished="finished",e.Cancelled="cancelled",e))(Bh||{});function Sj(e,t){let n=wi();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:o}=getComputedStyle(e),[s,l]=[r,o].map(a=>{let[c=0]=a.split(",").filter(Boolean).map(f=>f.includes("ms")?parseFloat(f):parseFloat(f)*1e3).sort((f,p)=>p-f);return c});return s!==0?n.setTimeout(()=>t("finished"),s+l):t("finished"),n.add(()=>t("cancelled")),n.dispose}function U1(e,t,n,r,o,s){let l=wi(),a=s!==void 0?wj(s):()=>{};return Yu(e,...o),Fp(e,...t,...n),l.nextFrame(()=>{Yu(e,...n),Fp(e,...r),l.add(Sj(e,c=>(Yu(e,...r,...t),Fp(e,...o),a(c))))}),l.add(()=>Yu(e,...t,...n,...r,...o)),l.add(()=>a("cancelled")),l.dispose}function Bi(e=""){return e.split(/\s+/).filter(t=>t.length>1)}let Gv=Symbol("TransitionContext");var Ej=(e=>(e.Visible="visible",e.Hidden="hidden",e))(Ej||{});function xj(){return kt(Gv,null)!==null}function $j(){let e=kt(Gv,null);if(e===null)throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");return e}function Cj(){let e=kt(Xv,null);if(e===null)throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");return e}let Xv=Symbol("NestingContext");function zd(e){return"children"in e?zd(e.children):e.value.filter(({state:t})=>t==="visible").length>0}function E$(e){let t=_e([]),n=_e(!1);gt(()=>n.value=!0),Zt(()=>n.value=!1);function r(s,l=fi.Hidden){let a=t.value.findIndex(({id:c})=>c===s);a!==-1&&(Tt(l,{[fi.Unmount](){t.value.splice(a,1)},[fi.Hidden](){t.value[a].state="hidden"}}),!zd(t)&&n.value&&(e==null||e()))}function o(s){let l=t.value.find(({id:a})=>a===s);return l?l.state!=="visible"&&(l.state="visible"):t.value.push({id:s,state:"visible"}),()=>r(s,fi.Unmount)}return{children:t,register:o,unregister:r}}let x$=rr.RenderStrategy,$$=ve({props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(e,{emit:t,attrs:n,slots:r,expose:o}){let s=_e(0);function l(){s.value|=Pt.Opening,t("beforeEnter")}function a(){s.value&=~Pt.Opening,t("afterEnter")}function c(){s.value|=Pt.Closing,t("beforeLeave")}function f(){s.value&=~Pt.Closing,t("afterLeave")}if(!xj()&&CU())return()=>dt(C$,{...e,onBeforeEnter:l,onAfterEnter:a,onBeforeLeave:c,onAfterLeave:f},r);let p=_e(null),h=ce(()=>e.unmount?fi.Unmount:fi.Hidden);o({el:p,$el:p});let{show:v,appear:y}=$j(),{register:_,unregister:w}=Cj(),I=_e(v.value?"visible":"hidden"),O={value:!0},S=zt(),E={value:!1},T=E$(()=>{!E.value&&I.value!=="hidden"&&(I.value="hidden",w(S),f())});gt(()=>{let K=_(S);Zt(K)}),jt(()=>{if(h.value===fi.Hidden&&S){if(v.value&&I.value!=="visible"){I.value="visible";return}Tt(I.value,{hidden:()=>w(S),visible:()=>_(S)})}});let $=Bi(e.enter),P=Bi(e.enterFrom),k=Bi(e.enterTo),A=Bi(e.entered),H=Bi(e.leave),D=Bi(e.leaveFrom),F=Bi(e.leaveTo);gt(()=>{jt(()=>{if(I.value==="visible"){let K=ue(p);if(K instanceof Comment&&K.data==="")throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}})});function z(K){let te=O.value&&!y.value,we=ue(p);!we||!(we instanceof HTMLElement)||te||(E.value=!0,v.value&&l(),v.value||c(),K(v.value?U1(we,$,P,k,A,be=>{E.value=!1,be===Bh.Finished&&a()}):U1(we,H,D,F,A,be=>{E.value=!1,be===Bh.Finished&&(zd(T)||(I.value="hidden",w(S),f()))})))}return gt(()=>{Ft([v],(K,te,we)=>{z(we),O.value=!1},{immediate:!0})}),Yt(Xv,T),Vd(ce(()=>Tt(I.value,{visible:Pt.Open,hidden:Pt.Closed})|s.value)),()=>{let{appear:K,show:te,enter:we,enterFrom:be,enterTo:Oe,entered:Ae,leave:Ye,leaveFrom:ft,leaveTo:Le,...Ke}=e,Q={ref:p},ae={...Ke,...y.value&&v.value&&Fa.isServer?{class:wt([n.class,Ke.class,...$,...P])}:{}};return St({theirProps:ae,ourProps:Q,slot:{},slots:r,attrs:n,features:x$,visible:I.value==="visible",name:"TransitionChild"})}}}),Tj=$$,C$=ve({inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(e,{emit:t,attrs:n,slots:r}){let o=ps(),s=ce(()=>e.show===null&&o!==null?(o.value&Pt.Open)===Pt.Open:e.show);jt(()=>{if(![!0,!1].includes(s.value))throw new Error('A <Transition /> is used but it is missing a `:show="true | false"` prop.')});let l=_e(s.value?"visible":"hidden"),a=E$(()=>{l.value="hidden"}),c=_e(!0),f={show:s,appear:ce(()=>e.appear||!c.value)};return gt(()=>{jt(()=>{c.value=!1,s.value?l.value="visible":zd(a)||(l.value="hidden")})}),Yt(Xv,a),Yt(Gv,f),()=>{let p=fs(e,["show","appear","unmount","onBeforeEnter","onBeforeLeave","onAfterEnter","onAfterLeave"]),h={unmount:e.unmount};return St({ourProps:{...h,as:"template"},theirProps:{},slot:{},slots:{...r,default:()=>[dt(Tj,{onBeforeEnter:()=>t("beforeEnter"),onAfterEnter:()=>t("afterEnter"),onBeforeLeave:()=>t("beforeLeave"),onAfterLeave:()=>t("afterLeave"),...n,...h,...p},r.default)]},attrs:{},features:x$,visible:l.value==="visible",name:"Transition"})}}});const Oj=ve({components:{Dialog:nj,DialogOverlay:rj,TransitionChild:$$,TransitionRoot:C$,XIcon:Da},props:{open:{type:Boolean,default:!0},size:{type:String,default:"small"}},methods:{close(){this.$emit("close")}}}),Aj={class:"fixed inset-0 overflow-y-auto font-sans",style:{"z-index":"10000"}},Ij={class:"flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0"},Pj=g("span",{class:"hidden sm:inline-block sm:align-middle sm:h-screen","aria-hidden":"true"},"\u200B",-1),kj={class:"hidden sm:block absolute top-0 right-0 pt-4 pr-4"},Rj=g("span",{class:"sr-only"},"Close",-1);function Lj(e,t,n,r,o,s){const l=X("DialogOverlay"),a=X("TransitionChild"),c=X("XIcon"),f=X("Dialog"),p=X("TransitionRoot");return N(),bt(p,{as:"template",show:e.open},{default:ye(()=>[q(f,{as:"div",onClose:t[1]||(t[1]=h=>e.close()),"data-client":"podlove"},{default:ye(()=>[g("div",Aj,[g("div",Ij,[q(a,{as:"template",enter:"ease-out duration-300","enter-from":"opacity-0","enter-to":"opacity-100",leave:"ease-in duration-200","leave-from":"opacity-100","leave-to":"opacity-0"},{default:ye(()=>[q(l,{class:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"})]),_:1}),Pj,q(a,{as:"template",enter:"ease-out duration-300","enter-from":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95","enter-to":"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200","leave-from":"opacity-100 translate-y-0 sm:scale-100","leave-to":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"},{default:ye(()=>[g("div",{class:wt(["relative inline-block align-bottom bg-white rounded-lg px-4 pt-5 pb-4 text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:w-full sm:p-6",{"sm:max-w-sm":e.size==="small","sm:max-w-md":e.size==="medium"}])},[g("div",kj,[g("button",{type:"button",class:"bg-white rounded-md text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500",onClick:t[0]||(t[0]=h=>e.close())},[Rj,q(c,{class:"h-6 w-6","aria-hidden":"true"})])]),gr(e.$slots,"default")],2)]),_:3})])])]),_:3})]),_:3},8,["show"])}var ja=Be(Oj,[["render",Lj]]);const Nj=ve({props:{variant:{type:String,default:"default"},size:{type:String,default:"medium"},disabled:{type:Boolean,default:!1}},computed:{variantClass(){switch(this.variant){case"default":return"focus:outline-none text-gray-700 bg-white border border-gray-300 hover:bg-gray-50 focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 disabled:bg-gray-100";case"primary":return"focus:ring-offset-2 text-white focus:ring-indigo-500 bg-indigo-600 hover:bg-indigo-700 disabled:bg-indigo-300";case"primary-disabled":return"focus:ring-offset-2 text-white focus:ring-indigo-500 bg-indigo-600 opacity-50 cursor-not-allowed";case"secondary":return"focus:ring-offset-2 text-indigo-700 focus:ring-indigo-500 bg-indigo-100 hover:bg-indigo-200 disabled:bg-indigo-50";case"secondary-disabled":return"focus:ring-offset-2 text-indigo-700 focus:ring-indigo-500 bg-indigo-100 disabled:bg-indigo-50 opacity-50 cursor-not-allowed";case"danger":return"bg-red-600 text-white hover:bg-red-700 focus:ring-2 focus:ring-offset-2 focus:ring-red-500 disabled:bg-red-300"}},sizeClass(){switch(this.size){case"small":return"px-2.5 py-1.5 text-xs font-medium rounded ";case"medium":return"px-3 py-2 text-sm leading-4 font-medium rounded-md";case"large":return"px-6 py-3 text-base font-medium rounded-md"}}}}),Mj=["disabled"];function Dj(e,t,n,r,o,s){return N(),V("button",{type:"button",class:wt(["inline-flex items-center focus:outline-none focus:ring-2 border border-transparent shadow-sm whitespace-nowrap disabled:opacity-75",[e.variantClass,e.sizeClass]]),disabled:e.disabled},[gr(e.$slots,"default")],10,Mj)}var Vn=Be(Nj,[["render",Dj]]);const Fj=ve({components:{PodloveButton:Vn,Modal:ja,PencilIcon:D2,XIcon:Da},setup(){return{state:yt({poster:G.episode.poster,episodePoster:G.episode.episodePoster,asset:G.settings.imageAsset}),dispatch:it().dispatch}},data(){return{modalOpen:!1,inputValue:null}},computed:{posterStyle(){const e=this.state.episodePoster||this.state.poster;return e===null?{}:{"background-image":`url(${e})`}}},methods:{openModal(){this.modalOpen=!0},closeModal(){this.modalOpen=!1},selectImage(){this.dispatch(cD())},updatePoster(e){const t=Y.exports.get(e,["target","value"],null);this.dispatch($t({prop:"episode_poster",value:t}))}}}),Bj={class:"border-gray-200 border-b pb-2 px-4 -mx-6 mb-4"},Uj={class:"text-lg leading-6 font-medium text-gray-900"},jj={class:"relative"},Hj=["value"],Vj=["title"],Wj={class:"mt-2 text-sm text-gray-500"},zj={class:"mt-2 flex justify-end"},qj={class:"block text-sm font-medium text-gray-700"},Kj={key:0,class:"absolute z-10 left-0 top-0 w-full h-full flex justify-center items-center bg-white bg-opacity-40 hover:opacity-0 text-gray-500 opacity-100"},Gj={key:1,class:"absolute z-10 left-0 top-0 w-full h-full flex flex-col justify-center items-center bg-white bg-opacity-50 text-gray-500 opacity-0 hover:opacity-100"},Xj={class:"w-full text-center"},Jj={class:"w-full text-center"},Yj={class:"w-full text-center"};function Zj(e,t,n,r,o,s){const l=X("x-icon"),a=X("podlove-button"),c=X("modal"),f=X("pencil-icon");return N(),V("div",null,[q(c,{size:"medium",open:e.modalOpen,onClose:t[3]||(t[3]=p=>e.closeModal())},{default:ye(()=>[g("div",Bj,[g("h3",Uj,U(e.__("Episode Poster","podlove-podcasting-plugin-for-wordpress")),1)]),g("div",jj,[g("input",{name:"episode-poster",type:"text",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md pr-8",value:e.state.episodePoster,onChange:t[0]||(t[0]=p=>e.updatePoster(p))},null,40,Hj),g("button",{class:"absolute right-2 top-1/2 -mt-3 text-gray-400 hover:text-gray-700",title:e.__("Clear Input","podlove-podcasting-plugin-for-wordpress"),onClick:t[1]||(t[1]=p=>e.updatePoster(null))},[q(l,{class:"w-6 h-6"})],8,Vj)]),g("p",Wj,U(e.__("Enter URL or select image from media library. Apple/iTunes recommends 3000 x 3000 pixel JPG or PNG","podlove-podcasting-plugin-for-wordpress")),1),g("p",zj,[q(a,{variant:"primary",onClick:t[2]||(t[2]=p=>e.closeModal())},{default:ye(()=>[Ge(U(e.__("Use this URL","podlove-podcasting-plugin-for-wordpress")),1)]),_:1})])]),_:1},8,["open"]),g("label",qj,U(e.__("Poster","podlove-podcasting-plugin-for-wordpress")),1),g("div",{class:"border shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block relative w-44 h-44 sm:text-sm border-gray-300 rounded-md mt-1 overflow-hidden bg-cover bg-no-repeat bg-center",style:as(e.posterStyle)},[e.state.asset==="manual"?(N(),V("div",Kj,[q(f,{class:"h-6 w-6","aria-hidden":"true"})])):qe("",!0),e.state.asset==="manual"?(N(),V("div",Gj,[q(a,{onClick:t[4]||(t[4]=p=>e.openModal()),class:"w-32 mb-2"},{default:ye(()=>[g("span",Xj,U(e.__("URL","podlove-podcasting-plugin-for-wordpress")),1)]),_:1}),q(a,{class:"w-32 text-center mb-2",onClick:t[5]||(t[5]=p=>e.selectImage())},{default:ye(()=>[g("span",Jj,U(e.__("Media","podlove-podcasting-plugin-for-wordpress")),1)]),_:1}),q(a,{variant:"danger",class:"w-32 text-center",disabled:e.state.episodePoster===null,onClick:t[6]||(t[6]=p=>e.updatePoster(null))},{default:ye(()=>[g("span",Yj,U(e.__("Reset","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["disabled"])])):qe("",!0)],4)])}var Qj=Be(Fj,[["render",Zj]]);const eH=ve({components:{Module:Nn},setup(){return{state:yt({number:G.episode.number}),dispatch:it().dispatch}},methods:{updateNumber(e){this.dispatch($t({prop:"number",value:e.target.value}))}}}),tH={for:"episode-number",class:"block text-sm font-medium text-gray-700"},nH={class:"mt-1 mb-1"},rH=["value"],oH={class:"mt-2 text-sm text-gray-500"};function iH(e,t,n,r,o,s){return N(),V("div",null,[g("label",tH,U(e.__("Number","podlove-podcasting-plugin-for-wordpress")),1),g("div",nH,[g("input",{name:"episode-number",type:"number",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",value:e.state.number,onInput:t[0]||(t[0]=l=>e.updateNumber(l))},null,40,rH)]),g("p",oH,U(e.__("An episode number (1, 2, 3 etc.)","podlove-podcasting-plugin-for-wordpress")),1)])}var sH=Be(eH,[["render",iH]]);const lH=ve({setup(){return{state:yt({explicit:G.episode.explicit}),dispatch:it().dispatch}},methods:{updateExplicit(e){this.dispatch($t({prop:"explicit",value:e.target.checked}))}}}),aH={class:"relative flex items-start"},uH={class:"flex items-center h-5"},cH=["checked"],dH={class:"ml-3 text-sm"},fH={for:"explicit-content",class:"font-medium text-gray-700"},pH={class:"text-gray-500"};function hH(e,t,n,r,o,s){return N(),V("div",aH,[g("div",uH,[g("input",{id:"explicit-content",type:"checkbox",class:"focus:ring-indigo-500 h-4 w-4 text-indigo-600 border-gray-300 rounded",checked:e.state.explicit,onInput:t[0]||(t[0]=l=>e.updateExplicit(l))},null,40,cH)]),g("div",dH,[g("label",fH,U(e.state.explicit?e.__("Explicit Content!","podlove-podcasting-plugin-for-wordpress"):e.__("Explicit Content?","podlove-podcasting-plugin-for-wordpress")),1),g("p",pH,U(e.__("For example, profanity or content that may not be suitable for children","podlove-podcasting-plugin-for-wordpress")),1)])])}var mH=Be(lH,[["render",hH]]);const vH=ve({components:{Module:Nn},setup(){return{state:yt({title:G.episode.title,post_title:G.post.title}),dispatch:it().dispatch}},methods:{updateTitle(e){this.dispatch($t({prop:"title",value:e.target.value}))}}}),gH={for:"episode-title",class:"block text-sm font-medium text-gray-700"},yH={class:"mt-1"},bH=["value","placeholder"],_H={class:"mt-2 text-sm text-gray-500"};function wH(e,t,n,r,o,s){return N(),V("div",null,[g("label",gH,U(e.__("Title","podlove-podcasting-plugin-for-wordpress")),1),g("div",yH,[g("input",{name:"episode-title",type:"text",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",value:e.state.title,placeholder:e.state.post_title,onInput:t[0]||(t[0]=l=>e.updateTitle(l))},null,40,bH)]),g("p",_H,U(e.__("Clear, concise name for your episode. It is recommended to not include the podcast title, episode number, season number or date in this tag.","podlove-podcasting-plugin-for-wordpress")),1)])}var SH=Be(vH,[["render",wH]]);const EH=ve({setup(){const e=yt({subtitle:G.episode.subtitle}),t=ce(()=>{var n;return 255-(((n=e==null?void 0:e.subtitle)==null?void 0:n.length)||"")});return{state:e,charactersLeft:t,dispatch:it().dispatch}},methods:{updateSubtitle(e){this.dispatch($t({prop:"subtitle",value:e.target.value}))}}}),xH={for:"subtitle",class:"block text-sm font-medium text-gray-700"},$H={class:"mt-1"},CH=["value"],TH={class:"mt-2 text-sm text-gray-500 flex justify-between"};function OH(e,t,n,r,o,s){return N(),V("div",null,[g("label",xH,U(e.__("Subtitle","podlove-podcasting-plugin-for-wordpress")),1),g("div",$H,[g("textarea",{id:"subtitle",name:"subtitle",maxlength:"250",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 mt-1 block w-full sm:text-sm border border-gray-300 rounded-md resize-y",value:e.state.subtitle,onInput:t[0]||(t[0]=l=>e.updateSubtitle(l))},null,40,CH)]),g("p",TH,[g("span",null,U(e.__("Single sentence describing the episode.","podlove-podcasting-plugin-for-wordpress")),1),g("span",null,U(e.charactersLeft),1)])])}var AH=Be(EH,[["render",OH]]);const IH=ve({setup(){const e=yt({summary:G.episode.summary}),t=ce(()=>{var n;return 4e3-(((n=e==null?void 0:e.summary)==null?void 0:n.length)||"")});return{state:e,charactersLeft:t,dispatch:it().dispatch}},methods:{updateSummary(e){this.dispatch($t({prop:"summary",value:e.target.value}))}}}),PH={for:"summary",class:"block text-sm font-medium text-gray-700"},kH={class:"mt-1"},RH=["value"],LH={class:"mt-2 text-sm text-gray-500 flex justify-end"};function NH(e,t,n,r,o,s){return N(),V("div",null,[g("label",PH,U(e.__("Summary","podlove-podcasting-plugin-for-wordpress")),1),g("div",kH,[g("textarea",{id:"summary",name:"summary",maxlength:"4000",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 mt-1 block w-full sm:text-sm border border-gray-300 rounded-md resize-y",value:e.state.summary,onInput:t[0]||(t[0]=l=>e.updateSummary(l))},null,40,RH)]),g("p",LH,[g("span",null,U(e.charactersLeft),1)])])}var MH=Be(IH,[["render",NH]]);const DH=ve({components:{Module:Nn},setup(){return{state:yt({type:G.episode.type}),dispatch:it().dispatch}},methods:{updateType(e){this.dispatch($t({prop:"type",value:e.target.value}))}}}),FH={for:"episode-type",class:"block text-sm font-medium text-gray-700"},BH={class:"mt-1"},UH=["value"],jH={value:"full"},HH={value:"trailer"},VH={value:"bonus"},WH={class:"mt-2 text-sm text-gray-500"};function zH(e,t,n,r,o,s){return N(),V("div",null,[g("label",FH,U(e.__("Type","podlove-podcasting-plugin-for-wordpress")),1),g("div",BH,[g("select",{name:"episode-type",class:"block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm rounded-md",value:e.state.type,onInput:t[0]||(t[0]=l=>e.updateType(l))},[g("option",null,U(e.__("Please choose ...","podlove-podcasting-plugin-for-wordpress")),1),g("option",jH,U(e.__("full (complete content of an episode)","podlove-podcasting-plugin-for-wordpress")),1),g("option",HH,U(e.__("trailer (short, promotional piece of content that represents a preview of an episode)","podlove-podcasting-plugin-for-wordpress")),1),g("option",VH,U(e.__("bonus (extra content for an episode, for example behind the scenes information)","podlove-podcasting-plugin-for-wordpress")),1)],40,UH)]),g("p",WH,U(e.__("Episode type. May be used by podcast clients.","podlove-podcasting-plugin-for-wordpress")),1)])}var qH=Be(DH,[["render",zH]]);const KH=ve({components:{Module:Nn,EpisodePoster:Qj,EpisodeNumber:sH,EpisodeContent:mH,EpisodeTitle:SH,EpisodeSubtitle:AH,EpisodeSummary:MH,EpisodeType:qH},setup(){return{state:yt({explicitContentEnabled:G.settings.enableEpisodeExplicit}),dispatch:it().dispatch}},created(){this.dispatch(Od())}}),GH={class:"p-3"},XH={class:"flex justify-items-stretch mb-5"},JH={class:"mb-2 w-full"},YH={class:"flex mb-5"},ZH={class:"mb-5"},QH={class:"mb-5"};function eV(e,t,n,r,o,s){const l=X("episode-poster"),a=X("episode-number"),c=X("episode-content"),f=X("episode-type"),p=X("episode-title"),h=X("episode-subtitle"),v=X("episode-summary"),y=X("module");return N(),bt(y,{name:"description",title:e.__("Episode Description","podlove-podcasting-plugin-for-wordpress")},{default:ye(()=>[g("div",GH,[g("div",XH,[q(l,{class:"mr-5"}),g("div",JH,[g("div",YH,[q(a,{class:"w-full"}),e.state.explicitContentEnabled?(N(),bt(c,{key:0,class:"ml-5 w-full"})):qe("",!0)]),q(f,{class:"w-full"})])]),g("div",ZH,[q(p,{class:"w-full"})]),g("div",QH,[q(h,{class:"w-full"})]),g("div",null,[q(v,{class:"w-full"})])])]),_:1},8,["title"])}var tV=Be(KH,[["render",eV]]);const nV=ve({data(){return{visible:!1}},props:{name:String},methods:{}}),rV=["data-tab"];function oV(e,t,n,r,o,s){return N(),V("div",{class:"hidden","data-tab":e.name},[gr(e.$slots,"default")],8,rV)}var T$=Be(nV,[["render",oV]]);const iV=ve({data(){return{activeTab:"",tabs:[]}},props:{active:{type:String,default:null}},created(){var e,t;this.tabs=((t=(e=this.$slots).default)==null?void 0:t.call(e).map(n=>({name:Y.exports.get(n,["props","name"]),title:Y.exports.get(n,["props","title"])})))||[]},mounted(){this.active?this.toggleTab(this.active):this.toggleTab(Y.exports.get(this.tabs,[0,"name"]))},methods:{toggleTab(e){this.activeTab=e,Array.from(this.$refs.tabs.children).forEach(t=>{t.dataset.tab===e?t.classList.remove("hidden"):t.classList.add("hidden")})}}}),sV={class:"block"},lV={class:"border-b border-gray-200"},aV={class:"-mb-px flex space-x-8 mx-2","aria-label":"Tabs"},uV=["onClick"],cV={ref:"tabs"};function dV(e,t,n,r,o,s){return N(),V("div",null,[g("div",sV,[g("div",lV,[g("nav",aV,[(N(!0),V(Fe,null,Mt(e.tabs,l=>(N(),V("button",{onClick:a=>e.toggleTab(l.name),key:l.name,class:wt([l.name===e.activeTab?"border-indigo-500 text-indigo-600":"border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300","group inline-flex items-center py-4 px-1 border-b-2 font-medium text-sm"])},[g("span",null,U(l.title),1)],10,uV))),128))])])]),g("div",cV,[gr(e.$slots,"default")],512)])}var O$=Be(iV,[["render",dV]]);const fV=ve({components:{PodloveButton:Vn,PlusSmIcon:Lv,BookmarkAltIcon:z9,UploadIcon:V9},setup(){return{state:yt({chapters:G.chapters.list,selected:G.chapters.selected,selectedIndex:G.chapters.selectedIndex,episodeDuration:G.episode.duration}),dispatch:it().dispatch}},computed:{selectedIndex(){return this.state.selectedIndex},episodeDuration(){return this.state.episodeDuration?Nt.fromString(this.state.episodeDuration).totalMs:0},chapters(){return this.state.chapters.reduce((e,t,n,r)=>{const o=Y.exports.get(r,n+1),s=o===void 0;let l;s?l=this.episodeDuration?this.episodeDuration-(t.start||0):-1:l=(o.start||0)-(t.start||0);const a=l<=0?"Unknown":new Nt(l).prettyShort;return[...e,{index:n,title:t.title,start:t.start?new Nt(t.start).pretty:new Nt(0).pretty,image:t.image,duration:a}]},[])},hasChapterImages(){return this.chapters.reduce((e,t)=>e||!!t.image,!1)}},methods:{selectChapter(e){e===this.state.selectedIndex?this.dispatch(di(null)):this.dispatch(di(e))},updateChapter(e,t){const n=t.target.value;if(this.state.selectedIndex===null)return;let r;switch(e){case"start":r=Nt.fromString(n).totalMs;break;default:r=n}this.dispatch(QM({chapter:{[e]:r},index:this.state.selectedIndex}))},removeChapter(){this.dispatch(eD(this.state.selectedIndex))},async addChapter(){this.dispatch(tD()),this.dispatch(di(this.state.chapters.length-1));const e=this.$refs.chaptersContainer;await rn(),e.scrollTo({top:e.scrollHeight-e.clientHeight,behavior:"smooth"})},formatTime(e){return new Nt(e).pretty},selectImage(){this.dispatch(iD())}}}),pV={key:0},hV={class:"md:flex p-2 sm:block"},mV={class:"w-full"},vV={class:"h-96 overflow-x-auto",ref:"chaptersContainer"},gV={class:"min-w-full divide-y divide-gray-200 mb-2"},yV={ref:"chapters"},bV=["onClick"],_V={key:0,class:"px-2 py-2 w-16"},wV=["src"],SV={class:"px-3 py-2 w-32 whitespace-nowrap text-sm font-medium text-gray-900 tabular-nums"},EV={class:"px-3 py-2 whitespace-nowrap text-sm text-gray-600"},xV={class:"px-3 py-2 whitespace-nowrap text-sm text-gray-600 text-right tabular-nums"},$V={key:0,class:"md:w-4/12 sm:w-full md:mx-4 md:my-2 mt-0"},CV={class:"mb-5 mt-2"},TV={for:"chapter-title",class:"block text-sm font-medium text-gray-700"},OV={class:"mt-1"},AV=["value"],IV={class:"mb-5"},PV={for:"chapter-href",class:"block text-sm font-medium text-gray-700"},kV={class:"text-xs"},RV={class:"mt-1"},LV=["value"],NV={class:"mb-5"},MV={for:"chapter-start",class:"block text-sm font-medium text-gray-700"},DV={class:"mt-1"},FV=["value"],BV={class:"mb-5"},UV={for:"chapter-image",class:"block text-sm font-medium text-gray-700"},jV={class:"text-xs"},HV={class:"mt-1 relative"},VV=["value"],WV=["title"],zV={class:"mb-5 ml-1"},qV={class:"mt-5 ml-5 pb-5"},KV={key:1,class:"text-center h-96 flex items-center justify-center flex-col"},GV={class:"mt-2 text-sm font-medium text-gray-900"},XV={class:"mt-1 text-sm text-gray-500"},JV={class:"mt-6"};function YV(e,t,n,r,o,s){const l=X("upload-icon"),a=X("podlove-button"),c=X("plus-sm-icon"),f=X("bookmark-alt-icon");return e.chapters.length>0?(N(),V("div",pV,[g("div",hV,[g("div",mV,[g("div",vV,[g("table",gV,[g("tbody",yV,[(N(!0),V(Fe,null,Mt(e.chapters,(p,h)=>(N(),V("tr",{onClick:v=>e.selectChapter(h),key:`chapter-${h}`,class:wt(["cursor-pointer",{"bg-indigo-100":e.selectedIndex===h,active:e.selectedIndex===h,"bg-white":h%2===0&&e.selectedIndex!==h,"bg-gray-50":h%2!==0&&e.selectedIndex!==h}])},[e.hasChapterImages?(N(),V("td",_V,[p!=null&&p.image?(N(),V("img",{key:0,class:"w-12 h-12 rounded",src:p==null?void 0:p.image},null,8,wV)):qe("",!0)])):qe("",!0),g("td",SV,U(p.start),1),g("td",EV,U(p.title),1),g("td",xV,U(p.duration),1)],10,bV))),128))],512)])],512)]),e.state.selected?(N(),V("div",$V,[g("div",CV,[g("label",TV,U(e.__("Title","podlove-podcasting-plugin-for-wordpress")),1),g("div",OV,[g("input",{name:"chapter-title",type:"text",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",onChange:t[0]||(t[0]=p=>e.updateChapter("title",p)),value:e.state.selected.title},null,40,AV)])]),g("div",IV,[g("label",PV,[Ge("Url "),g("span",kV,U(e.__("(optional)","podlove-podcasting-plugin-for-wordpress")),1)]),g("div",RV,[g("input",{name:"chapter-href",type:"text",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",onChange:t[1]||(t[1]=p=>e.updateChapter("href",p)),value:e.state.selected.href},null,40,LV)])]),g("div",NV,[g("label",MV,U(e.__("Start","podlove-podcasting-plugin-for-wordpress")),1),g("div",DV,[g("input",{name:"chapter-title",type:"text",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",onChange:t[2]||(t[2]=p=>e.updateChapter("start",p)),value:e.formatTime(e.state.selected.start)},null,40,FV)])]),g("div",BV,[g("label",UV,[Ge(U(e.__("Image","podlove-podcasting-plugin-for-wordpress"))+" ",1),g("span",jV,U(e.__("(optional)","podlove-podcasting-plugin-for-wordpress")),1)]),g("div",HV,[g("input",{name:"chapter-image",type:"text",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",onChange:t[3]||(t[3]=p=>e.updateChapter("image",p)),value:e.state.selected.image},null,40,VV),g("button",{onClick:t[4]||(t[4]=Sc(p=>e.selectImage(),["prevent"])),title:e.__("Select Chapter Image","podlove-podcasting-plugin-for-wordpress"),class:"absolute right-2 top-1/2 -mt-3 text-gray-400 hover:text-gray-700"},[q(l,{class:"w-6 h-6"})],8,WV)])]),g("div",zV,[q(a,{variant:"danger",onClick:t[5]||(t[5]=p=>e.removeChapter())},{default:ye(()=>[Ge(U(e.__("Delete Chapter","podlove-podcasting-plugin-for-wordpress")),1)]),_:1})])])):qe("",!0)]),g("div",qV,[q(a,{variant:"primary",onClick:t[6]||(t[6]=p=>e.addChapter())},{default:ye(()=>[q(c,{class:"-ml-0.5 mr-2 h-4 w-4","aria-hidden":"true"}),Ge(" "+U(e.__("Add Chapter","podlove-podcasting-plugin-for-wordpress")),1)]),_:1})])])):(N(),V("div",KV,[q(f,{class:"mx-auto h-12 w-12 text-gray-400"}),g("h3",GV,U(e.__("No chapters","podlove-podcasting-plugin-for-wordpress")),1),g("p",XV,U(e.__("Get started by creating a new chapter.","podlove-podcasting-plugin-for-wordpress")),1),g("div",JV,[q(a,{variant:"primary",onClick:t[7]||(t[7]=p=>e.addChapter()),class:"ml-1"},{default:ye(()=>[q(c,{class:"-ml-0.5 mr-2 h-4 w-4","aria-hidden":"true"}),Ge(" "+U(e.__("Add Chapter","podlove-podcasting-plugin-for-wordpress")),1)]),_:1})])]))}var ZV=Be(fV,[["render",YV]]);function Uh(e,t,n){var r,o,s,l,a;t==null&&(t=100);function c(){var p=Date.now()-l;p<t&&p>=0?r=setTimeout(c,t-p):(r=null,n||(a=e.apply(s,o),s=o=null))}var f=function(){s=this,o=arguments,l=Date.now();var p=n&&!r;return r||(r=setTimeout(c,t)),p&&(a=e.apply(s,o),s=o=null),a};return f.clear=function(){r&&(clearTimeout(r),r=null)},f.flush=function(){r&&(a=e.apply(s,o),s=o=null,clearTimeout(r),r=null)},f}Uh.debounce=Uh;var Bp=Uh;function QV(e,t,n){dn(e)?Ft(e,(r,o)=>{o==null||o.removeEventListener(t,n),r==null||r.addEventListener(t,n)}):gt(()=>{e.addEventListener(t,n)}),cs(()=>{var r;(r=jn(e))===null||r===void 0||r.removeEventListener(t,n)})}function eW(e,t){const n="pointerdown";return typeof window=="undefined"||!window?void 0:QV(window,n,o=>{const s=jn(e);!s||s===o.target||o.composedPath().includes(s)||t(o)})}function tW(e,t,n){let r=null;const o=_e(!1);gt(()=>{(e.content!==void 0||n.value)&&(o.value=!0),r=new MutationObserver(s),r.observe(t.value,{childList:!0,subtree:!0})}),cs(()=>r.disconnect()),Ft(n,l=>{l?o.value=!0:o.value=!1});const s=()=>{e.content?o.value=!0:o.value=!1};return{hasContent:o}}function Zs(e,t){var n=e.getBoundingClientRect(),r=1,o=1;return{width:n.width/r,height:n.height/o,top:n.top/o,right:n.right/r,bottom:n.bottom/o,left:n.left/r,x:n.left/r,y:n.top/o}}function lo(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Jv(e){var t=lo(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function ya(e){var t=lo(e).Element;return e instanceof t||e instanceof Element}function Rr(e){var t=lo(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function A$(e){if(typeof ShadowRoot=="undefined")return!1;var t=lo(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function nW(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function rW(e){return e===lo(e)||!Rr(e)?Jv(e):nW(e)}function wo(e){return e?(e.nodeName||"").toLowerCase():null}function $i(e){return((ya(e)?e.ownerDocument:e.document)||window.document).documentElement}function Yv(e){return Zs($i(e)).left+Jv(e).scrollLeft}function Wo(e){return lo(e).getComputedStyle(e)}function Zv(e){var t=Wo(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function oW(e){var t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,r=t.height/e.offsetHeight||1;return n!==1||r!==1}function iW(e,t,n){n===void 0&&(n=!1);var r=Rr(t);Rr(t)&&oW(t);var o=$i(t),s=Zs(e),l={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(r||!r&&!n)&&((wo(t)!=="body"||Zv(o))&&(l=rW(t)),Rr(t)?(a=Zs(t),a.x+=t.clientLeft,a.y+=t.clientTop):o&&(a.x=Yv(o))),{x:s.left+l.scrollLeft-a.x,y:s.top+l.scrollTop-a.y,width:s.width,height:s.height}}function Qv(e){var t=Zs(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function qd(e){return wo(e)==="html"?e:e.assignedSlot||e.parentNode||(A$(e)?e.host:null)||$i(e)}function I$(e){return["html","body","#document"].indexOf(wo(e))>=0?e.ownerDocument.body:Rr(e)&&Zv(e)?e:I$(qd(e))}function Ql(e,t){var n;t===void 0&&(t=[]);var r=I$(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),s=lo(r),l=o?[s].concat(s.visualViewport||[],Zv(r)?r:[]):r,a=t.concat(l);return o?a:a.concat(Ql(qd(l)))}function sW(e){return["table","td","th"].indexOf(wo(e))>=0}function j1(e){return!Rr(e)||Wo(e).position==="fixed"?null:e.offsetParent}function lW(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&Rr(e)){var r=Wo(e);if(r.position==="fixed")return null}for(var o=qd(e);Rr(o)&&["html","body"].indexOf(wo(o))<0;){var s=Wo(o);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return o;o=o.parentNode}return null}function Ha(e){for(var t=lo(e),n=j1(e);n&&sW(n)&&Wo(n).position==="static";)n=j1(n);return n&&(wo(n)==="html"||wo(n)==="body"&&Wo(n).position==="static")?t:n||lW(e)||t}var Lr="top",no="bottom",ro="right",Nr="left",eg="auto",Va=[Lr,no,ro,Nr],Qs="start",ba="end",aW="clippingParents",P$="viewport",Nl="popper",uW="reference",H1=Va.reduce(function(e,t){return e.concat([t+"-"+Qs,t+"-"+ba])},[]),k$=[].concat(Va,[eg]).reduce(function(e,t){return e.concat([t,t+"-"+Qs,t+"-"+ba])},[]),cW="beforeRead",dW="read",fW="afterRead",pW="beforeMain",hW="main",mW="afterMain",vW="beforeWrite",gW="write",yW="afterWrite",bW=[cW,dW,fW,pW,hW,mW,vW,gW,yW];function _W(e){var t=new Map,n=new Set,r=[];e.forEach(function(s){t.set(s.name,s)});function o(s){n.add(s.name);var l=[].concat(s.requires||[],s.requiresIfExists||[]);l.forEach(function(a){if(!n.has(a)){var c=t.get(a);c&&o(c)}}),r.push(s)}return e.forEach(function(s){n.has(s.name)||o(s)}),r}function wW(e){var t=_W(e);return bW.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function SW(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function yo(e){return e.split("-")[0]}function EW(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}function xW(e){var t=lo(e),n=$i(e),r=t.visualViewport,o=n.clientWidth,s=n.clientHeight,l=0,a=0;return r&&(o=r.width,s=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(l=r.offsetLeft,a=r.offsetTop)),{width:o,height:s,x:l+Yv(e),y:a}}var mi=Math.max,_a=Math.min,Zu=Math.round;function $W(e){var t,n=$i(e),r=Jv(e),o=(t=e.ownerDocument)==null?void 0:t.body,s=mi(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),l=mi(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+Yv(e),c=-r.scrollTop;return Wo(o||n).direction==="rtl"&&(a+=mi(n.clientWidth,o?o.clientWidth:0)-s),{width:s,height:l,x:a,y:c}}function R$(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&A$(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function jh(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function CW(e){var t=Zs(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function V1(e,t){return t===P$?jh(xW(e)):Rr(t)?CW(t):jh($W($i(e)))}function TW(e){var t=Ql(qd(e)),n=["absolute","fixed"].indexOf(Wo(e).position)>=0,r=n&&Rr(e)?Ha(e):e;return ya(r)?t.filter(function(o){return ya(o)&&R$(o,r)&&wo(o)!=="body"}):[]}function OW(e,t,n){var r=t==="clippingParents"?TW(e):[].concat(t),o=[].concat(r,[n]),s=o[0],l=o.reduce(function(a,c){var f=V1(e,c);return a.top=mi(f.top,a.top),a.right=_a(f.right,a.right),a.bottom=_a(f.bottom,a.bottom),a.left=mi(f.left,a.left),a},V1(e,s));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function el(e){return e.split("-")[1]}function tg(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function L$(e){var t=e.reference,n=e.element,r=e.placement,o=r?yo(r):null,s=r?el(r):null,l=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,c;switch(o){case Lr:c={x:l,y:t.y-n.height};break;case no:c={x:l,y:t.y+t.height};break;case ro:c={x:t.x+t.width,y:a};break;case Nr:c={x:t.x-n.width,y:a};break;default:c={x:t.x,y:t.y}}var f=o?tg(o):null;if(f!=null){var p=f==="y"?"height":"width";switch(s){case Qs:c[f]=c[f]-(t[p]/2-n[p]/2);break;case ba:c[f]=c[f]+(t[p]/2-n[p]/2);break}}return c}function N$(){return{top:0,right:0,bottom:0,left:0}}function M$(e){return Object.assign({},N$(),e)}function D$(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}function ng(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,s=n.boundary,l=s===void 0?aW:s,a=n.rootBoundary,c=a===void 0?P$:a,f=n.elementContext,p=f===void 0?Nl:f,h=n.altBoundary,v=h===void 0?!1:h,y=n.padding,_=y===void 0?0:y,w=M$(typeof _!="number"?_:D$(_,Va)),I=p===Nl?uW:Nl,O=e.rects.popper,S=e.elements[v?I:p],E=OW(ya(S)?S:S.contextElement||$i(e.elements.popper),l,c),T=Zs(e.elements.reference),$=L$({reference:T,element:O,strategy:"absolute",placement:o}),P=jh(Object.assign({},O,$)),k=p===Nl?P:T,A={top:E.top-k.top+w.top,bottom:k.bottom-E.bottom+w.bottom,left:E.left-k.left+w.left,right:k.right-E.right+w.right},H=e.modifiersData.offset;if(p===Nl&&H){var D=H[o];Object.keys(A).forEach(function(F){var z=[ro,no].indexOf(F)>=0?1:-1,K=[Lr,no].indexOf(F)>=0?"y":"x";A[F]+=D[K]*z})}return A}var W1={placement:"bottom",modifiers:[],strategy:"absolute"};function z1(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function AW(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,s=o===void 0?W1:o;return function(a,c,f){f===void 0&&(f=s);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},W1,s),modifiersData:{},elements:{reference:a,popper:c},attributes:{},styles:{}},h=[],v=!1,y={state:p,setOptions:function(O){var S=typeof O=="function"?O(p.options):O;w(),p.options=Object.assign({},s,p.options,S),p.scrollParents={reference:ya(a)?Ql(a):a.contextElement?Ql(a.contextElement):[],popper:Ql(c)};var E=wW(EW([].concat(r,p.options.modifiers)));return p.orderedModifiers=E.filter(function(T){return T.enabled}),_(),y.update()},forceUpdate:function(){if(!v){var O=p.elements,S=O.reference,E=O.popper;if(!!z1(S,E)){p.rects={reference:iW(S,Ha(E),p.options.strategy==="fixed"),popper:Qv(E)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(D){return p.modifiersData[D.name]=Object.assign({},D.data)});for(var T=0;T<p.orderedModifiers.length;T++){if(p.reset===!0){p.reset=!1,T=-1;continue}var $=p.orderedModifiers[T],P=$.fn,k=$.options,A=k===void 0?{}:k,H=$.name;typeof P=="function"&&(p=P({state:p,options:A,name:H,instance:y})||p)}}}},update:SW(function(){return new Promise(function(I){y.forceUpdate(),I(p)})}),destroy:function(){w(),v=!0}};if(!z1(a,c))return y;y.setOptions(f).then(function(I){!v&&f.onFirstUpdate&&f.onFirstUpdate(I)});function _(){p.orderedModifiers.forEach(function(I){var O=I.name,S=I.options,E=S===void 0?{}:S,T=I.effect;if(typeof T=="function"){var $=T({state:p,name:O,instance:y,options:E}),P=function(){};h.push($||P)}})}function w(){h.forEach(function(I){return I()}),h=[]}return y}}var Qu={passive:!0};function IW(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,s=o===void 0?!0:o,l=r.resize,a=l===void 0?!0:l,c=lo(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&f.forEach(function(p){p.addEventListener("scroll",n.update,Qu)}),a&&c.addEventListener("resize",n.update,Qu),function(){s&&f.forEach(function(p){p.removeEventListener("scroll",n.update,Qu)}),a&&c.removeEventListener("resize",n.update,Qu)}}var PW={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:IW,data:{}};function kW(e){var t=e.state,n=e.name;t.modifiersData[n]=L$({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var RW={name:"popperOffsets",enabled:!0,phase:"read",fn:kW,data:{}},LW={top:"auto",right:"auto",bottom:"auto",left:"auto"};function NW(e){var t=e.x,n=e.y,r=window,o=r.devicePixelRatio||1;return{x:Zu(Zu(t*o)/o)||0,y:Zu(Zu(n*o)/o)||0}}function q1(e){var t,n=e.popper,r=e.popperRect,o=e.placement,s=e.variation,l=e.offsets,a=e.position,c=e.gpuAcceleration,f=e.adaptive,p=e.roundOffsets,h=p===!0?NW(l):typeof p=="function"?p(l):l,v=h.x,y=v===void 0?0:v,_=h.y,w=_===void 0?0:_,I=l.hasOwnProperty("x"),O=l.hasOwnProperty("y"),S=Nr,E=Lr,T=window;if(f){var $=Ha(n),P="clientHeight",k="clientWidth";$===lo(n)&&($=$i(n),Wo($).position!=="static"&&a==="absolute"&&(P="scrollHeight",k="scrollWidth")),$=$,(o===Lr||(o===Nr||o===ro)&&s===ba)&&(E=no,w-=$[P]-r.height,w*=c?1:-1),(o===Nr||(o===Lr||o===no)&&s===ba)&&(S=ro,y-=$[k]-r.width,y*=c?1:-1)}var A=Object.assign({position:a},f&&LW);if(c){var H;return Object.assign({},A,(H={},H[E]=O?"0":"",H[S]=I?"0":"",H.transform=(T.devicePixelRatio||1)<=1?"translate("+y+"px, "+w+"px)":"translate3d("+y+"px, "+w+"px, 0)",H))}return Object.assign({},A,(t={},t[E]=O?w+"px":"",t[S]=I?y+"px":"",t.transform="",t))}function MW(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,s=n.adaptive,l=s===void 0?!0:s,a=n.roundOffsets,c=a===void 0?!0:a,f={placement:yo(t.placement),variation:el(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,q1(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,q1(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var DW={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:MW,data:{}};function FW(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},s=t.elements[n];!Rr(s)||!wo(s)||(Object.assign(s.style,r),Object.keys(o).forEach(function(l){var a=o[l];a===!1?s.removeAttribute(l):s.setAttribute(l,a===!0?"":a)}))})}function BW(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],s=t.attributes[r]||{},l=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=l.reduce(function(c,f){return c[f]="",c},{});!Rr(o)||!wo(o)||(Object.assign(o.style,a),Object.keys(s).forEach(function(c){o.removeAttribute(c)}))})}}var UW={name:"applyStyles",enabled:!0,phase:"write",fn:FW,effect:BW,requires:["computeStyles"]},jW=[PW,RW,DW,UW],HW=AW({defaultModifiers:jW});function VW(e){return e==="x"?"y":"x"}function fc(e,t,n){return mi(e,_a(t,n))}function WW(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,s=o===void 0?!0:o,l=n.altAxis,a=l===void 0?!1:l,c=n.boundary,f=n.rootBoundary,p=n.altBoundary,h=n.padding,v=n.tether,y=v===void 0?!0:v,_=n.tetherOffset,w=_===void 0?0:_,I=ng(t,{boundary:c,rootBoundary:f,padding:h,altBoundary:p}),O=yo(t.placement),S=el(t.placement),E=!S,T=tg(O),$=VW(T),P=t.modifiersData.popperOffsets,k=t.rects.reference,A=t.rects.popper,H=typeof w=="function"?w(Object.assign({},t.rects,{placement:t.placement})):w,D={x:0,y:0};if(!!P){if(s||a){var F=T==="y"?Lr:Nr,z=T==="y"?no:ro,K=T==="y"?"height":"width",te=P[T],we=P[T]+I[F],be=P[T]-I[z],Oe=y?-A[K]/2:0,Ae=S===Qs?k[K]:A[K],Ye=S===Qs?-A[K]:-k[K],ft=t.elements.arrow,Le=y&&ft?Qv(ft):{width:0,height:0},Ke=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:N$(),Q=Ke[F],ae=Ke[z],fe=fc(0,k[K],Le[K]),Se=E?k[K]/2-Oe-fe-Q-H:Ae-fe-Q-H,He=E?-k[K]/2+Oe+fe+ae+H:Ye+fe+ae+H,De=t.elements.arrow&&Ha(t.elements.arrow),tt=De?T==="y"?De.clientTop||0:De.clientLeft||0:0,vn=t.modifiersData.offset?t.modifiersData.offset[t.placement][T]:0,ln=P[T]+Se-vn-tt,L=P[T]+He-vn;if(s){var B=fc(y?_a(we,ln):we,te,y?mi(be,L):be);P[T]=B,D[T]=B-te}if(a){var Z=T==="x"?Lr:Nr,le=T==="x"?no:ro,ie=P[$],pe=ie+I[Z],Ee=ie-I[le],he=fc(y?_a(pe,ln):pe,ie,y?mi(Ee,L):Ee);P[$]=he,D[$]=he-ie}}t.modifiersData[r]=D}}var zW={name:"preventOverflow",enabled:!0,phase:"main",fn:WW,requiresIfExists:["offset"]},qW={left:"right",right:"left",bottom:"top",top:"bottom"};function pc(e){return e.replace(/left|right|bottom|top/g,function(t){return qW[t]})}var KW={start:"end",end:"start"};function K1(e){return e.replace(/start|end/g,function(t){return KW[t]})}function GW(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,s=n.rootBoundary,l=n.padding,a=n.flipVariations,c=n.allowedAutoPlacements,f=c===void 0?k$:c,p=el(r),h=p?a?H1:H1.filter(function(_){return el(_)===p}):Va,v=h.filter(function(_){return f.indexOf(_)>=0});v.length===0&&(v=h);var y=v.reduce(function(_,w){return _[w]=ng(e,{placement:w,boundary:o,rootBoundary:s,padding:l})[yo(w)],_},{});return Object.keys(y).sort(function(_,w){return y[_]-y[w]})}function XW(e){if(yo(e)===eg)return[];var t=pc(e);return[K1(e),t,K1(t)]}function JW(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,s=o===void 0?!0:o,l=n.altAxis,a=l===void 0?!0:l,c=n.fallbackPlacements,f=n.padding,p=n.boundary,h=n.rootBoundary,v=n.altBoundary,y=n.flipVariations,_=y===void 0?!0:y,w=n.allowedAutoPlacements,I=t.options.placement,O=yo(I),S=O===I,E=c||(S||!_?[pc(I)]:XW(I)),T=[I].concat(E).reduce(function(ae,fe){return ae.concat(yo(fe)===eg?GW(t,{placement:fe,boundary:p,rootBoundary:h,padding:f,flipVariations:_,allowedAutoPlacements:w}):fe)},[]),$=t.rects.reference,P=t.rects.popper,k=new Map,A=!0,H=T[0],D=0;D<T.length;D++){var F=T[D],z=yo(F),K=el(F)===Qs,te=[Lr,no].indexOf(z)>=0,we=te?"width":"height",be=ng(t,{placement:F,boundary:p,rootBoundary:h,altBoundary:v,padding:f}),Oe=te?K?ro:Nr:K?no:Lr;$[we]>P[we]&&(Oe=pc(Oe));var Ae=pc(Oe),Ye=[];if(s&&Ye.push(be[z]<=0),a&&Ye.push(be[Oe]<=0,be[Ae]<=0),Ye.every(function(ae){return ae})){H=F,A=!1;break}k.set(F,Ye)}if(A)for(var ft=_?3:1,Le=function(fe){var Se=T.find(function(He){var De=k.get(He);if(De)return De.slice(0,fe).every(function(tt){return tt})});if(Se)return H=Se,"break"},Ke=ft;Ke>0;Ke--){var Q=Le(Ke);if(Q==="break")break}t.placement!==H&&(t.modifiersData[r]._skip=!0,t.placement=H,t.reset=!0)}}var YW={name:"flip",enabled:!0,phase:"main",fn:JW,requiresIfExists:["offset"],data:{_skip:!1}};function ZW(e,t,n){var r=yo(e),o=[Nr,Lr].indexOf(r)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,l=s[0],a=s[1];return l=l||0,a=(a||0)*o,[Nr,ro].indexOf(r)>=0?{x:a,y:l}:{x:l,y:a}}function QW(e){var t=e.state,n=e.options,r=e.name,o=n.offset,s=o===void 0?[0,0]:o,l=k$.reduce(function(p,h){return p[h]=ZW(h,t.rects,s),p},{}),a=l[t.placement],c=a.x,f=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=f),t.modifiersData[r]=l}var ez={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:QW},tz=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,M$(typeof t!="number"?t:D$(t,Va))};function nz(e){var t,n=e.state,r=e.name,o=e.options,s=n.elements.arrow,l=n.modifiersData.popperOffsets,a=yo(n.placement),c=tg(a),f=[Nr,ro].indexOf(a)>=0,p=f?"height":"width";if(!(!s||!l)){var h=tz(o.padding,n),v=Qv(s),y=c==="y"?Lr:Nr,_=c==="y"?no:ro,w=n.rects.reference[p]+n.rects.reference[c]-l[c]-n.rects.popper[p],I=l[c]-n.rects.reference[c],O=Ha(s),S=O?c==="y"?O.clientHeight||0:O.clientWidth||0:0,E=w/2-I/2,T=h[y],$=S-v[p]-h[_],P=S/2-v[p]/2+E,k=fc(T,P,$),A=c;n.modifiersData[r]=(t={},t[A]=k,t.centerOffset=k-P,t)}}function rz(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||!R$(t.elements.popper,o)||(t.elements.arrow=o))}var oz={name:"arrow",enabled:!0,phase:"main",fn:nz,effect:rz,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};const Up=e=>parseInt(e,10);function iz({arrowPadding:e,emit:t,locked:n,offsetDistance:r,offsetSkid:o,placement:s,popperNode:l,triggerNode:a}){const c=Si({isOpen:!1,popperInstance:null}),f=w=>{var I;(I=c.popperInstance)===null||I===void 0||I.setOptions(O=>({...O,modifiers:[...O.modifiers,{name:"eventListeners",enabled:w}]}))},p=()=>f(!0),h=()=>f(!1),v=()=>{!c.isOpen||(c.isOpen=!1,t("close:popper"))},y=()=>{c.isOpen||(c.isOpen=!0,t("open:popper"))};Ft([()=>c.isOpen,s],async([w])=>{w?(await _(),p()):h()});const _=async()=>{await rn(),c.popperInstance=HW(a.value,l.value,{placement:s.value,modifiers:[zW,YW,{name:"flip",enabled:!n.value},oz,{name:"arrow",options:{padding:Up(e.value)}},ez,{name:"offset",options:{offset:[Up(o.value),Up(r.value)]}}]}),c.popperInstance.update()};return cs(()=>{var w;(w=c.popperInstance)===null||w===void 0||w.destroy()}),{...rm(c),open:y,close:v}}const sz={id:"arrow","data-popper-arrow":""};function lz(e,t){return N(),V("div",sz)}function F$(e,t){t===void 0&&(t={});var n=t.insertAt;if(!(!e||typeof document=="undefined")){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",n==="top"&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}var az=` 62 62 #arrow[data-v-20b7fd4a], 63 63 #arrow[data-v-20b7fd4a]::before { … … 115 115 left: -5px; 116 116 } 117 `;F$( lz);const rg={};rg.render=sz;rg.__scopeId="data-v-20b7fd4a";var az=rg;const uz=["onKeyup"];var B$={props:{placement:{type:String,default:"bottom",validator:function(e){return["auto","auto-start","auto-end","top","top-start","top-end","bottom","bottom-start","bottom-end","right","right-start","right-end","left","left-start","left-end"].includes(e)}},disableClickAway:{type:Boolean,default:!1},offsetSkid:{type:String,default:"0"},offsetDistance:{type:String,default:"12"},hover:{type:Boolean,default:!1},show:{type:Boolean,default:null},disabled:{type:Boolean,default:!1},openDelay:{type:[Number,String],default:0},closeDelay:{type:[Number,String],default:0},zIndex:{type:[Number,String],default:9999},arrow:{type:Boolean,default:!1},arrowPadding:{type:String,default:"0"},interactive:{type:Boolean,default:!0},locked:{type:Boolean,default:!1},content:{type:String,default:null}},emits:["open:popper","close:popper"],setup(e,{emit:t}){const n=e;Iw(Ae=>({c81fc0a4:e.zIndex}));const r=_w(),o=_e(null),s=_e(null),l=_e(null),a=_e(!1);gt(()=>{const Ae=r.default();if(Ae&&Ae.length>1)return console.error(`[Popper]: The <Popper> component expects only one child element at its root. You passed ${Ae.length} child nodes.`)});const{arrowPadding:c,closeDelay:f,content:p,disableClickAway:h,disabled:v,interactive:y,locked:_,offsetDistance:w,offsetSkid:I,openDelay:O,placement:S,show:E}=rm(n),{isOpen:T,open:$,close:P}=oz({arrowPadding:c,emit:t,locked:_,offsetDistance:w,offsetSkid:I,placement:S,popperNode:s,triggerNode:l}),{hasContent:k}=eW(r,s,p),A=ce(()=>E.value!==null),H=ce(()=>v.value||!k.value),D=ce(()=>T.value&&!H.value),F=ce(()=>!h.value&&!A.value),z=ce(()=>y.value?`border: ${w.value}px solid transparent; margin: -${w.value}px;`:null),K=Bp.debounce($,O.value),te=Bp.debounce(P,f.value),we=async()=>{H.value||A.value||(te.clear(),K())},be=async()=>{A.value||(K.clear(),te())},Oe=()=>{T.value?be():we()};return Ft([k,v],([Ae,Ye])=>{T.value&&(!Ae||Ye)&&P()}),Ft(T,Ae=>{Ae?a.value=!0:Bp.debounce(()=>{a.value=!1},200)}),jt(()=>{A.value&&(E.value?K():te())}),jt(()=>{F.value&&QV(o,be)}),(Ae,Ye)=>(N(),V("div",{class:"inline-block",style:as(jn(z)),onMouseleave:Ye[2]||(Ye[2]=ft=>e.hover&&be()),ref:(ft,Le)=>{Le.popperContainerNode=ft,o.value=ft}},[g("div",{ref:(ft,Le)=>{Le.triggerNode=ft,l.value=ft},onMouseover:Ye[0]||(Ye[0]=ft=>e.hover&&we()),onClick:Oe,onFocus:we,onKeyup:Hw(be,["esc"])},[gr(Ae.$slots,"default")],40,uz),q(Ei,{name:"fade"},{default:ye(()=>[G_(g("div",{onClick:Ye[1]||(Ye[1]=ft=>!jn(y)&&be()),class:"popper",ref:(ft,Le)=>{Le.popperNode=ft,s.value=ft}},[gr(Ae.$slots,"content",{close:jn(P),isOpen:a.value},()=>[Xe(U(jn(p)),1)]),e.arrow?(N(),bt(az,{key:0})):qe("",!0)],512),[[bm,jn(D)]])]),_:3})],36))}},cz=`117 `;F$(az);const rg={};rg.render=lz;rg.__scopeId="data-v-20b7fd4a";var uz=rg;const cz=["onKeyup"];var B$={props:{placement:{type:String,default:"bottom",validator:function(e){return["auto","auto-start","auto-end","top","top-start","top-end","bottom","bottom-start","bottom-end","right","right-start","right-end","left","left-start","left-end"].includes(e)}},disableClickAway:{type:Boolean,default:!1},offsetSkid:{type:String,default:"0"},offsetDistance:{type:String,default:"12"},hover:{type:Boolean,default:!1},show:{type:Boolean,default:null},disabled:{type:Boolean,default:!1},openDelay:{type:[Number,String],default:0},closeDelay:{type:[Number,String],default:0},zIndex:{type:[Number,String],default:9999},arrow:{type:Boolean,default:!1},arrowPadding:{type:String,default:"0"},interactive:{type:Boolean,default:!0},locked:{type:Boolean,default:!1},content:{type:String,default:null}},emits:["open:popper","close:popper"],setup(e,{emit:t}){const n=e;Iw(Ae=>({c81fc0a4:e.zIndex}));const r=_w(),o=_e(null),s=_e(null),l=_e(null),a=_e(!1);gt(()=>{const Ae=r.default();if(Ae&&Ae.length>1)return console.error(`[Popper]: The <Popper> component expects only one child element at its root. You passed ${Ae.length} child nodes.`)});const{arrowPadding:c,closeDelay:f,content:p,disableClickAway:h,disabled:v,interactive:y,locked:_,offsetDistance:w,offsetSkid:I,openDelay:O,placement:S,show:E}=rm(n),{isOpen:T,open:$,close:P}=iz({arrowPadding:c,emit:t,locked:_,offsetDistance:w,offsetSkid:I,placement:S,popperNode:s,triggerNode:l}),{hasContent:k}=tW(r,s,p),A=ce(()=>E.value!==null),H=ce(()=>v.value||!k.value),D=ce(()=>T.value&&!H.value),F=ce(()=>!h.value&&!A.value),z=ce(()=>y.value?`border: ${w.value}px solid transparent; margin: -${w.value}px;`:null),K=Bp.debounce($,O.value),te=Bp.debounce(P,f.value),we=async()=>{H.value||A.value||(te.clear(),K())},be=async()=>{A.value||(K.clear(),te())},Oe=()=>{T.value?be():we()};return Ft([k,v],([Ae,Ye])=>{T.value&&(!Ae||Ye)&&P()}),Ft(T,Ae=>{Ae?a.value=!0:Bp.debounce(()=>{a.value=!1},200)}),jt(()=>{A.value&&(E.value?K():te())}),jt(()=>{F.value&&eW(o,be)}),(Ae,Ye)=>(N(),V("div",{class:"inline-block",style:as(jn(z)),onMouseleave:Ye[2]||(Ye[2]=ft=>e.hover&&be()),ref:(ft,Le)=>{Le.popperContainerNode=ft,o.value=ft}},[g("div",{ref:(ft,Le)=>{Le.triggerNode=ft,l.value=ft},onMouseover:Ye[0]||(Ye[0]=ft=>e.hover&&we()),onClick:Oe,onFocus:we,onKeyup:Hw(be,["esc"])},[gr(Ae.$slots,"default")],40,cz),q(Ei,{name:"fade"},{default:ye(()=>[G_(g("div",{onClick:Ye[1]||(Ye[1]=ft=>!jn(y)&&be()),class:"popper",ref:(ft,Le)=>{Le.popperNode=ft,s.value=ft}},[gr(Ae.$slots,"content",{close:jn(P),isOpen:a.value},()=>[Ge(U(jn(p)),1)]),e.arrow?(N(),bt(uz,{key:0})):qe("",!0)],512),[[bm,jn(D)]])]),_:3})],36))}},dz=` 118 118 .inline-block[data-v-5784ed69] { 119 119 display: inline-block; … … 146 146 opacity: 0; 147 147 } 148 `;F$( cz);B$.__scopeId="data-v-5784ed69";var dz=(()=>{const e=B$;return e.install=t=>{t.component("Popper",e)},e})();const fz=ve({components:{Popper:dz},props:{direction:{type:String,default:"left"}},data(){return{visible:!0}},computed:{caretClasses(){switch(this.direction){case"left":return"left-0 -ml-2 bottom-0 top-0 h-full"}}},methods:{show(){this.visible=!0},hide(){this.visible=!1}}}),pz={class:"bg-white p-4 rounded shadow-lg max-w-md"};function hz(e,t,n,r,o,s){const l=X("Popper");return N(),V("div",null,[q(l,{hover:"",openDelay:"200",closeDelay:"100",arrow:!0},{content:ye(()=>[g("div",pz,[gr(e.$slots,"content")])]),default:ye(()=>[gr(e.$slots,"trigger")]),_:3})])}var mz=Be(fz,[["render",hz]]);const vz=ve({components:{PodloveButton:Vn,Tooltip:mz},setup(){return{dispatch:it().dispatch}},methods:{simulateImportClick(){this.$refs.import.click()},importChapters(){const e=this.$refs.import;if(!!e)try{const t=new FileReader;t.onload=n=>{this.dispatch(nD(n.target.result))},t.readAsText(Y.exports.get(e,["files",0],""))(this.$refs.importForm).reset()}catch{}}}}),gz={class:"text-xs"},yz={class:"text-gray-600 leading-3 font-semibold mb-2"},bz={class:"text-gray-500 ml-1"},_z={class:"mb-1"},wz={class:"text-blue-500 underline",href:"https://podlove.org/simple-chapters/",target:"_blank"},Sz=g("code",null,".psc",-1),Ez={class:"mb-1"},xz={class:"text-blue-500 underline",href:"http://www.audacityteam.org",target:"_blank"},$z={class:"mb-1"},Cz={class:"text-blue-500 underline",href:"https://hindenburg.com",target:"_blank"},Tz=g("code",null,".txt",-1);function Oz(e,t,n,r,o,s){const l=X("podlove-button"),a=X("tooltip");return N(),bt(a,null,{trigger:ye(()=>[q(l,{variant:"secondary",size:"small",onClick:t[0]||(t[0]=c=>e.simulateImportClick())},{default:ye(()=>[Xe(U(e.__("Import","podlove-podcasting-plugin-for-wordpress")),1)]),_:1}),g("input",{ref:"import",type:"file",onChange:t[1]||(t[1]=(...c)=>e.importChapters&&e.importChapters(...c)),class:"hidden"},null,544)]),content:ye(()=>[g("div",gz,[g("p",yz,U(e.__("Accepts:","podlove-podcasting-plugin-for-wordpress")),1),g("ul",bz,[g("li",_z,[g("a",wz,U(e.__("Podlove Simple Chapters","podlove-podcasting-plugin-for-wordpress")),1),Xe(" ("),Sz,Xe("), ")]),g("li",Ez,[g("a",xz,U(e.__("Audacity","podlove-podcasting-plugin-for-wordpress")),1),Xe(" "+U(e.__("Track Labels","podlove-podcasting-plugin-for-wordpress"))+", ",1)]),g("li",$z,[g("a",Cz,U(e.__("Hindenburg","podlove-podcasting-plugin-for-wordpress")),1),Xe(" "+U(e.__("project files and MP4Chaps","podlove-podcasting-plugin-for-wordpress"))+" (",1),Tz,Xe(") ")])])])]),_:1})}var Az=Be(vz,[["render",Oz]]);const Iz=ve({components:{Popover:b$,PopoverButton:hj,PopoverPanel:mj}});function Pz(e,t,n,r,o,s){const l=X("PopoverButton"),a=X("PopoverPanel"),c=X("Popover",!0);return N(),bt(c,{class:"relative"},{default:ye(()=>[q(l,null,{default:ye(()=>[gr(e.$slots,"trigger")]),_:3}),q(Ei,{"enter-active-class":"transition duration-200 ease-out","enter-from-class":"translate-y-1 opacity-0","enter-to-class":"translate-y-0 opacity-100","leave-active-class":"transition duration-150 ease-in","leave-from-class":"translate-y-0 opacity-100","leave-to-class":"translate-y-1 opacity-0"},{default:ye(()=>[q(a,{class:"absolute"},{default:ye(()=>[gr(e.$slots,"content",{class:"overflow-hidden"})]),_:3})]),_:3})]),_:3})}var U$=Be(Iz,[["render",Pz]]);const kz=ve({components:{Popover:U$,PodloveButton:Vn},setup(){return{dispatch:it().dispatch}},methods:{download(e){this.dispatch(oD(e))}}}),Rz={class:"bg-white p-7 -translate-x-full z-10 mt-3 transform ml-16 rounded-lg shadow-lg"},Lz={class:"text-sm font-medium text-gray-900 truncate w-full mr-2"},Nz=g("div",{class:"text-sm text-gray-500"},".psc",-1),Mz={class:"text-sm font-medium text-gray-900 truncate w-full mr-2"},Dz=g("div",{class:"text-sm text-gray-500"},".txt",-1);function Fz(e,t,n,r,o,s){const l=X("podlove-button"),a=X("popover");return N(),V("div",null,[q(a,null,{trigger:ye(()=>[q(l,{variant:"secondary",size:"small"},{default:ye(()=>[Xe(U(e.__("Export","podlove-podcasting-plugin-for-wordpress")),1)]),_:1})]),content:ye(()=>[g("div",Rz,[g("a",{onClick:t[0]||(t[0]=c=>e.download("psc")),class:"flex items-center p-2 -m-3 transition duration-150 ease-in-out rounded-lg cursor-pointer bg-gray-100 hover:bg-indigo-100 focus:outline-none focus-visible:ring focus-visible:ring-indigo-500 focus-visible:ring-opacity-50 mb-4"},[g("div",Lz,U(e.__("Podlove Simple Chapters","podlove-podcasting-plugin-for-wordpress")),1),Nz]),g("a",{onClick:t[1]||(t[1]=c=>e.download("mp4")),class:"flex items-center p-2 -m-3 transition duration-150 ease-in-out rounded-lg cursor-pointer bg-gray-100 hover:bg-indigo-100 focus:outline-none focus-visible:ring focus-visible:ring-indigo-500 focus-visible:ring-opacity-50"},[g("div",Mz,U(e.__("MP4Chaps","podlove-podcasting-plugin-for-wordpress")),1),Dz])])]),_:1})])}var Bz=Be(kz,[["render",Fz]]);const Uz=ve({components:{Module:Nn,TabsContainer:O$,Tab:T$,ChaptersForm:YV,ChaptersImport:Az,ChaptersExport:Bz},setup(){return{dispatch:it().dispatch}},created(){this.dispatch(ZM())}});function jz(e,t,n,r,o,s){const l=X("chapters-import"),a=X("chapters-export"),c=X("chapters-form"),f=X("module");return N(),bt(f,{name:"chapters",title:e.__("Chapter Marks","podlove-podcasting-plugin-for-wordpress")},{actions:ye(()=>[q(l,{class:"mr-1"}),q(a)]),default:ye(()=>[q(c)]),_:1},8,["title"])}var Hz=Be(Uz,[["render",jz]]);const Vz={},Wz={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},zz=g("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-6-3a2 2 0 11-4 0 2 2 0 014 0zm-2 4a5 5 0 00-4.546 2.916A5.986 5.986 0 0010 16a5.986 5.986 0 004.546-2.084A5 5 0 0010 11z","clip-rule":"evenodd"},null,-1),qz=[zz];function Kz(e,t){return N(),V("svg",Wz,qz)}var Gz=Be(Vz,[["render",Kz]]);const Xz=ve({props:{outlet:{type:String,default:"header"}},components:{PodloveButton:Vn,UploadIcon:R2,DocumentTextIcon:N2},setup(){return{dispatch:it().dispatch}},methods:{simulateImportClick(){this.$refs.import.click()},importTranscriptFromAsset(){this.dispatch(TD())},handleImport(){const e=this.$refs.import;if(!!e)try{const t=new FileReader;t.onload=n=>{this.dispatch(CD(n.target.result))},t.readAsText(Y.exports.get(e,["files",0],""))(this.$refs.importForm).reset()}catch{}}}}),Jz={ref:"importForm",class:"cursor-pointer"},Yz={class:"grid grid-cols-2"};function Zz(e,t,n,r,o,s){const l=X("upload-icon"),a=X("podlove-button");return N(),V("form",Jz,[g("div",Yz,[g("div",null,[q(a,{variant:"primary",onClick:e.simulateImportClick,class:"ml-1"},{default:ye(()=>[q(l,{class:"-ml-0.5 mr-2 h-4 w-4","aria-hidden":"true"}),Xe(" "+U(e.__("Import Transcript","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["onClick"]),g("input",{ref:"import",accept:"text/vtt",type:"file",onChange:t[0]||(t[0]=(...c)=>e.handleImport&&e.handleImport(...c)),class:"hidden",key:""},null,544)]),g("div",null,[q(a,{variant:"primary",onClick:e.importTranscriptFromAsset,class:"ml-1"},{default:ye(()=>[Xe(U(e.__("Get From Asset","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["onClick"])])])],512)}var Qz=Be(Xz,[["render",Zz]]);const eq=ve({components:{Avatar:Gz,TranscriptsImport:Qz,DocumentTextIcon:N2},setup(){return{state:yt({transcripts:G.transcripts.list,contributors:G.contributors.contributors,voices:G.transcripts.voices})}},computed:{voices(){return this.state.contributors.reduce((e,t)=>{var r;const n=(r=this.state.voices.find(o=>o.contributor===t.id))==null?void 0:r.voice;return{...e,[n]:{id:t.id,name:t.realname,avatar:t.avatar_url}}},{})},transcripts(){return this.state.transcripts.reduce((e,t)=>{const n=Y.exports.last(e);return n&&n.voiceId===t.voice?[...Y.exports.dropRight(e),{...n,voiceId:t.voice,content:[...n.content,{text:t.text,start:t.start_ms,end:t.end_ms}]}]:[...e,{voiceId:t.voice,content:[{text:t.text,start:t.start_ms,end:t.end_ms}]}]},[]).map(e=>({...e,voice:Y.exports.get(this.voices,[e.voiceId],{name:e.voiceId})}))}},methods:{formatTime(e){return new Nt(e).prettyShort}}}),tq={key:0,class:"h-96 p-2 overflow-x-auto"},nq={class:"mr-2 w-12 text-gray-400 select-none"},rq=["src"],oq={class:"w-full font-light text-sm mr-2"},iq={class:"block font-bold"},sq={class:"flex justify-between"},lq={class:"ml-1 font-mono select-none"},aq={key:1,class:"text-center h-96 flex items-center justify-center flex-col"},uq={class:"mt-2 text-sm font-medium text-gray-900"},cq={class:"mt-1 text-sm text-gray-500"},dq={class:"mt-6"};function fq(e,t,n,r,o,s){const l=X("avatar"),a=X("document-text-icon"),c=X("transcripts-import");return e.transcripts.length>0?(N(),V("div",tq,[(N(!0),V(Fe,null,Mt(e.transcripts,(f,p)=>{var h,v,y;return N(),V("div",{class:"flex mb-2",key:`transcript-${p}`},[g("div",nq,[(h=f==null?void 0:f.voice)!=null&&h.avatar?(N(),V("img",{key:0,class:"w-12 h-12 rounded",src:(v=f==null?void 0:f.voice)==null?void 0:v.avatar},null,8,rq)):(N(),bt(l,{key:1}))]),g("div",oq,[g("span",iq,U((y=f==null?void 0:f.voice)==null?void 0:y.name),1),g("span",sq,[g("span",null,[(N(!0),V(Fe,null,Mt(f.content,(_,w)=>(N(),V("span",{class:"mr-1",key:`transcript-${p}-content-${w}`},U(_.text),1))),128))]),g("span",lq,U(e.formatTime(f.content[0].start)),1)])])])}),128))])):(N(),V("div",aq,[q(a,{class:"mx-auto h-12 w-12 text-gray-400"}),g("h3",uq,U(e.__("No transcript yet","podlove-podcasting-plugin-for-wordpress")),1),g("p",cq,U(e.__("Get started by importing a transcript.","podlove-podcasting-plugin-for-wordpress")),1),g("div",dq,[q(c,{outlet:"content",class:"mr-1"})])]))}var pq=Be(eq,[["render",fq]]);const hq=ve({components:{PodloveButton:Vn,Modal:ja},data(){return{modalOpen:!1}},setup(){return{state:yt({contributors:G.contributors.contributors,voices:G.transcripts.voices}),dispatch:it().dispatch}},computed:{sortedContributors(){return this.state.contributors.sort((e,t)=>{const n=e.publicname||e.realname||e.nickname,r=t.publicname||t.realname||t.nickname;return n.localeCompare(r)})}},methods:{updateContributor(e,t){const n=t.target.value;this.dispatch($D({voice:e,contributor:n}))},openVoices(){this.modalOpen=!0},closeVoices(){this.modalOpen=!1}}}),mq={key:0},vq={class:"border-gray-200 border-b pb-2 px-4 -mx-6 mb-4"},gq={class:"text-lg leading-6 font-medium text-gray-900"},yq={for:"country",class:"block text-sm font-medium text-gray-700"},bq=["value","onChange"],_q=g("option",{value:"0"},null,-1),wq=["value"];function Sq(e,t,n,r,o,s){const l=X("podlove-button"),a=X("modal");return e.state.voices.length>0?(N(),V("div",mq,[q(l,{variant:"secondary",size:"small",onClick:t[0]||(t[0]=c=>e.openVoices())},{default:ye(()=>[Xe(U(e.__("Voices","podlove-podcasting-plugin-for-wordpress")),1)]),_:1}),q(a,{open:e.modalOpen,onClose:t[1]||(t[1]=c=>e.closeVoices())},{default:ye(()=>[g("div",vq,[g("h3",gq,U(e.__("Transcript Voices","podlove-podcasting-plugin-for-wordpress")),1)]),(N(!0),V(Fe,null,Mt(e.state.voices,(c,f)=>(N(),V("div",{key:`voice-${f}`,class:wt(["w-full py-2 px-4",{"bg-white":f%2}])},[g("label",yq,U(c.voice),1),g("select",{value:c.contributor,class:"mt-1 block w-full py-2 px-3 border border-gray-300 bg-white rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm",onChange:p=>e.updateContributor(c.voice,p)},[_q,(N(!0),V(Fe,null,Mt(e.sortedContributors,(p,h)=>(N(),V("option",{key:`voice-${f}-contributor-${h}`,value:p.id},U(p.publicname||p.realname||p.nickname),9,wq))),128))],40,bq)],2))),128))]),_:1},8,["open"])])):qe("",!0)}var Eq=Be(hq,[["render",Sq]]);const xq=[{title:"Export webvtt",type:"webvtt",file:"transcript.webvtt",ending:".webvtt"},{title:"Export json (flat)",type:"json",file:"transcript.json",ending:".json"},{title:"Export json (grouped)",type:"json_grouped",file:"transcript.json",ending:".json"},{title:"Export xml",type:"xml",file:"transcript.xml",ending:".xml"}],$q=ve({components:{Popover:U$,PodloveButton:Vn},setup(){return{state:yt({post:G.post.id,baseUrl:G.runtime.baseUrl,transcripts:G.transcripts.list})}},data(){return{exportTypes:xq}}}),Cq={key:0},Tq={class:"bg-white p-7 pb-1 -translate-x-full z-10 mt-3 transform ml-16 rounded-lg shadow-lg"},Oq=["download","href"],Aq={class:"text-sm font-medium text-gray-900 truncate w-full mr-2"},Iq={class:"text-sm text-gray-500"};function Pq(e,t,n,r,o,s){const l=X("podlove-button"),a=X("popover");return e.state.transcripts.length>0?(N(),V("div",Cq,[q(a,null,{trigger:ye(()=>[q(l,{variant:"secondary",size:"small",tabindex:"-1"},{default:ye(()=>[Xe(U(e.__("Export","podlove-podcasting-plugin-for-wordpress")),1)]),_:1})]),content:ye(()=>[g("div",Tq,[(N(!0),V(Fe,null,Mt(e.exportTypes,(c,f)=>(N(),V("a",{key:`type-${f}`,download:c.file,href:`${e.state.baseUrl}/?p=${e.state.post}&podlove_transcript=${c.type}`,class:"flex items-center p-2 -m-3 transition duration-150 ease-in-out rounded-lg cursor-pointer bg-gray-100 hover:bg-indigo-100 focus:outline-none focus-visible:ring focus-visible:ring-indigo-500 focus-visible:ring-opacity-50 mb-4"},[g("div",Aq,U(c.title),1),g("div",Iq,U(c.ending),1)],8,Oq))),128))])]),_:1})])):qe("",!0)}var kq=Be($q,[["render",Pq]]);const Rq=ve({components:{PodloveButton:Vn,Modal:ja,ExclamationIcon:M2,DialogTitle:oj},data(){return{modalVisible:!1}},setup(){return{state:yt({transcripts:G.transcripts.list}),dispatch:it().dispatch}},methods:{deleteTranscripts(){this.closeModal(),this.dispatch(OD())},openModal(){this.modalVisible=!0},closeModal(){this.modalVisible=!1}}}),Lq={key:0},Nq={class:"sm:flex sm:items-start"},Mq={class:"mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-red-100 sm:mx-0 sm:h-10 sm:w-10"},Dq={class:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left"},Fq={class:"mt-2"},Bq={class:"text-sm text-gray-500"},Uq={class:"mt-5 sm:mt-4 sm:flex sm:flex-row-reverse"};function jq(e,t,n,r,o,s){const l=X("podlove-button"),a=X("exclamation-icon"),c=X("DialogTitle"),f=X("modal");return e.state.transcripts.length>0?(N(),V("div",Lq,[q(l,{variant:"secondary",size:"small",onClick:t[0]||(t[0]=p=>e.openModal())},{default:ye(()=>[Xe("Clear")]),_:1}),q(f,{open:e.modalVisible,onClose:t[3]||(t[3]=p=>e.closeModal())},{default:ye(()=>[g("div",Nq,[g("div",Mq,[q(a,{class:"h-6 w-6 text-red-600","aria-hidden":"true"})]),g("div",Dq,[q(c,{as:"h3",class:"text-lg leading-6 font-medium text-gray-900"},{default:ye(()=>[Xe(" Clear Transcript ")]),_:1}),g("div",Fq,[g("p",Bq,U(e.__("Are you sure you want to clear your transcript?","podlove-podcasting-plugin-for-wordpress")),1)])])]),g("div",Uq,[q(l,{class:"sm:ml-3 sm:w-auto sm:text-sm",variant:"danger",onClick:t[1]||(t[1]=p=>e.deleteTranscripts())},{default:ye(()=>[Xe(U(e.__("Clear","podlove-podcasting-plugin-for-wordpress")),1)]),_:1}),q(l,{class:"sm:ml-3 sm:w-auto sm:text-sm",onClick:t[2]||(t[2]=p=>e.closeModal())},{default:ye(()=>[Xe(U(e.__("Cancel","podlove-podcasting-plugin-for-wordpress")),1)]),_:1})])]),_:1},8,["open"])])):qe("",!0)}var Hq=Be(Rq,[["render",jq]]);const Vq=ve({components:{Module:Nn,TabsContainer:O$,Tab:T$,TranscriptsList:pq,TranscriptsVoices:Eq,TranscriptsExport:kq,TranscriptsDelete:Hq},setup(){return{dispatch:it().dispatch}},created(){this.dispatch(ix()),this.dispatch(SD())}});function Wq(e,t,n,r,o,s){const l=X("transcripts-voices"),a=X("transcripts-export"),c=X("transcripts-delete"),f=X("transcripts-list"),p=X("module");return N(),bt(p,{name:"transcript",title:e.__("Transcripts","podlove-podcasting-plugin-for-wordpress")},{actions:ye(()=>[q(l,{class:"mr-1"}),q(a,{class:"mr-1"}),q(c)]),default:ye(()=>[q(f)]),_:1},8,["title"])}var zq=Be(Vq,[["render",Wq]]);function qq(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"fill-rule":"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12Zm13.36-1.814a.75.75 0 1 0-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 0 0-1.06 1.06l2.25 2.25a.75.75 0 0 0 1.14-.094l3.75-5.25Z","clip-rule":"evenodd"})])}function Kd(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"fill-rule":"evenodd",d:"M19.916 4.626a.75.75 0 0 1 .208 1.04l-9 13.5a.75.75 0 0 1-1.154.114l-6-6a.75.75 0 0 1 1.06-1.06l5.353 5.353 8.493-12.74a.75.75 0 0 1 1.04-.207Z","clip-rule":"evenodd"})])}function Gd(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"fill-rule":"evenodd",d:"M11.47 4.72a.75.75 0 0 1 1.06 0l3.75 3.75a.75.75 0 0 1-1.06 1.06L12 6.31 8.78 9.53a.75.75 0 0 1-1.06-1.06l3.75-3.75Zm-3.75 9.75a.75.75 0 0 1 1.06 0L12 17.69l3.22-3.22a.75.75 0 1 1 1.06 1.06l-3.75 3.75a.75.75 0 0 1-1.06 0l-3.75-3.75a.75.75 0 0 1 0-1.06Z","clip-rule":"evenodd"})])}function j$(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"fill-rule":"evenodd",d:"M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25Zm-1.72 6.97a.75.75 0 1 0-1.06 1.06L10.94 12l-1.72 1.72a.75.75 0 1 0 1.06 1.06L12 13.06l1.72 1.72a.75.75 0 1 0 1.06-1.06L13.06 12l1.72-1.72a.75.75 0 1 0-1.06-1.06L12 10.94l-1.72-1.72Z","clip-rule":"evenodd"})])}const Kq=ve({props:["file_key","track_index"],components:{Listbox:Vv,ListboxButton:zv,ListboxLabel:Wv,ListboxOption:Kv,ListboxOptions:qv,CheckIcon:Kd,SelectorIcon:Gd,DocumentCheckIcon:Y9},setup(){return{state:yt({services:G.auphonic.incomingServices,serviceFiles:G.auphonic.serviceFiles,fileSelections:G.auphonic.fileSelections,episodeSlug:G.episode.slug}),dispatch:it().dispatch}},methods:{set(e,t){this.dispatch(Cx({key:this.file_key,prop:e,value:t})),Number.isInteger(this.track_index)&&this.dispatch(Ox({track:{},index:this.track_index}))},handleFileSelection(e){this.set("fileSelection",e.target.value)},handleUrlUpdate(e){this.set("urlValue",e.target.value)},handleFileUploadSelection(e){const t=e.target.files;t?this.set("fileValue",t[0]):this.set("fileValue",null)},handleServiceSelection(e){this.set("currentServiceSelection",e.target.value)},setEpisodeSlug(e){this.dispatch($t({prop:"slug",value:e})),this.dispatch(Dx())}},computed:{services(){return this.state.services},currentService(){return this.state.services.find(e=>e.uuid===this.currentServiceSelection)},serviceFiles(){return Y.exports.get(this.state,["serviceFiles",this.currentServiceSelection],null)},fileSelection(){return this.state.fileSelections[this.file_key]},filenameSelectedForUpload(){var e,t;return(t=(e=this.fileSelection)==null?void 0:e.fileValue)==null?void 0:t.name},currentServiceSelection(){var e;return(e=this.fileSelection)==null?void 0:e.currentServiceSelection},urlFieldValue(){return this.fileSelection.urlValue},externalFileFieldValue(){return this.fileSelection.fileSelection},slugCandidate(){if(this.currentServiceSelection=="url"&&this.urlFieldValue)return this.urlFieldValue.split("/").reverse()[0].split(".")[0];if(this.currentServiceSelection=="file"){const e=this.filenameSelectedForUpload;return e?e.split(".")[0]:null}return null},shouldSuggestSlug(){return this.slugCandidate!=null&&this.slugCandidate!=this.state.episodeSlug}}}),Gq={class:"flex flex-col gap-2"},Xq=g("label",{class:"block md:hidden text-sm font-medium text-gray-700"},"Upload Method",-1),Jq=["value","selected"],Yq={key:0},Zq={key:0},Qq=["for"],eK={key:0,class:"sm:mt-1"},tK={class:"text-sm font-normal"},nK={key:1,class:"sm:mt-1"},rK=["id"],oK={key:1},iK=["for"],sK={class:"mt-1"},lK=["id","value"],aK={key:2},uK={key:0},cK=["for"],dK=["id","value"],fK=["value"],pK={key:1},hK={key:3,class:"mt-3"},mK={class:"font-mono"};function vK(e,t,n,r,o,s){const l=X("DocumentCheckIcon");return N(),V("div",null,[g("div",Gq,[g("div",null,[Xq,g("select",{onChange:t[0]||(t[0]=(...a)=>e.handleServiceSelection&&e.handleServiceSelection(...a)),class:"mt-1 block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm rounded-md"},[(N(!0),V(Fe,null,Mt(e.services,a=>(N(),V("option",{key:a.uuid,value:a.uuid,selected:a.uuid==e.currentServiceSelection},U(a.type)+": "+U(a.display_name),9,Jq))),128))],32)]),e.currentService?(N(),V("div",Yq,[e.currentService.type==="file"?(N(),V("div",Zq,[g("label",{for:e.file_key+"file-upload",class:"relative cursor-pointer bg-white rounded-md font-medium text-indigo-600 hover:text-indigo-500 focus-within:outline-none focus-within:ring-2 focus-within:ring-offset-2 focus-within:ring-indigo-500"},[e.filenameSelectedForUpload?(N(),V("div",eK,[Xe(" Upload "),g("span",tK,U(e.filenameSelectedForUpload),1)])):(N(),V("div",nK,U(e.__("Upload a file","podlove-podcasting-plugin-for-wordpress")),1)),g("input",{id:e.file_key+"file-upload",name:"file-upload",type:"file",class:"sr-only",onInput:t[1]||(t[1]=(...a)=>e.handleFileUploadSelection&&e.handleFileUploadSelection(...a))},null,40,rK)],8,Qq)])):e.currentService.type==="url"?(N(),V("div",oK,[g("label",{for:e.file_key+"audio_source_url",class:"block text-sm font-medium text-gray-700"},"File URL",8,iK),g("div",sK,[g("input",{type:"url",name:"audio_source_url",id:e.file_key+"audio_source_url",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",placeholder:"https://example.com/audio.flac",value:e.urlFieldValue,onInput:t[2]||(t[2]=(...a)=>e.handleUrlUpdate&&e.handleUrlUpdate(...a))},null,40,lK)])])):(N(),V("div",aK,[e.serviceFiles!==null?(N(),V("div",uK,[g("label",{for:e.file_key+"external_file",class:"block text-sm font-medium text-gray-700"},"File",8,cK),g("select",{name:"audio_external_file",id:e.file_key+"external_file",class:"mt-1 block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm rounded-md",value:e.externalFileFieldValue,onChange:t[3]||(t[3]=(...a)=>e.handleFileSelection&&e.handleFileSelection(...a))},[(N(!0),V(Fe,null,Mt(e.serviceFiles,a=>(N(),V("option",{key:a,value:a,d:""},U(a),9,fK))),128))],40,dK)])):(N(),V("div",pK,"..."))])),e.shouldSuggestSlug?(N(),V("div",hK,[g("button",{onClick:t[4]||(t[4]=()=>e.setEpisodeSlug(e.slugCandidate)),type:"button",class:"relative text-xs inline-flex items-center rounded-md bg-white px-3 py-2 font-medium text-gray-500 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50"},[q(l,{class:"-ml-0.5 mr-1.5 h-4 w-4 text-gray-400","aria-hidden":"true"}),g("span",null,[Xe(U(e.__("Use as Episode Slug:","podlove-podcasting-plugin-for-wordpress"))+" ",1),g("span",mK,U(e.slugCandidate),1)])])])):qe("",!0)])):qe("",!0)])])}var gK=Be(Kq,[["render",vK]]);const yK=ve({components:{ClipboardCheckIcon:X9,ExternalLinkIcon:P2,ExclamationIcon:M2},setup(){return{state:yt({production:G.auphonic.production,title:G.episode.title,subtitle:G.episode.subtitle,summary:G.episode.summary,duration:G.episode.duration,slug:G.episode.slug,license_name:G.episode.license_name,license_url:G.episode.license_url,chapters:G.chapters.list}),dispatch:it().dispatch}},methods:{isDifferent(e){switch(e.title){case"chapters":const t=e.here.map(r=>r.start+(r.title||"")+(r.href||"")+(r.image||"")).join(";"),n=e.there.map(r=>Math.round((r.start_output_sec||0)*1e3)+(r.title||"")+(r.url||"")+(r.image||"")).join(";");return t!=n;default:return e.there!=e.here}},renderEntryPreview(e){switch(e.title){case"chapters":return e.there.map(n=>n.start+" "+n.title).join(" / ");default:return e.there}},importMeta(e,t){switch(e){case"chapters":const r=t.map(o=>({start:Math.round((o.start_output_sec||0)*1e3),title:o.title||"",href:o.url||"",image:""}));this.dispatch(LE(r));break;default:this.dispatch($t({prop:e,value:t}));break}},importAllMeta(){this.visibleEntries.forEach(e=>{this.importMeta(e.title,e.there)})}},computed:{production(){return this.state.production||{}},entries(){const e=this.state.production,t=this.state;return[{key:1,title:"title",here:t.title,there:e.metadata.title},{key:2,title:"subtitle",here:t.subtitle,there:e.metadata.subtitle},{key:3,title:"summary",here:t.summary,there:e.metadata.summary},{key:5,title:"license_name",here:t.license_name,there:e.metadata.license},{key:6,title:"license_url",here:t.license_url,there:e.metadata.license_url},{key:9,title:"slug",here:t.slug,there:e.output_basename},{key:10,title:"chapters",here:t.chapters,there:e.chapters}]},visibleEntries(){return this.entries.filter(e=>e.there&&this.isDifferent(e))}}}),bK={key:0,class:"rounded-md bg-green-50 p-4"},_K={class:"flex"},wK={class:"flex-shrink-0"},SK={class:"ml-3"},EK={class:"text-sm font-medium text-green-800"},xK={class:"mt-2 text-sm text-green-700"},$K=["href"],CK={key:1,class:"rounded-md bg-yellow-50 p-4 mt-4"},TK={class:"flex"},OK={class:"flex-shrink-0"},AK={class:"ml-3"},IK={class:"text-sm font-medium text-yellow-800"},PK={class:"mt-2 text-sm text-yellow-700"},kK={key:2,class:"mt-4 overflow-hidden rounded-lg bg-white shadow"},RK={class:"p-6"},LK=g("h3",{class:"text-lg font-medium leading-6 text-gray-900"},"Import Metadata",-1),NK={class:"mt-1 text-sm text-gray-500"},MK={class:"mt-6 flow-root"},DK={role:"list",class:"-my-5 divide-y divide-gray-200"},FK={class:"flex items-center space-x-4"},BK={class:"min-w-0 flex-1"},UK={class:"truncate text-sm text-gray-500"},jK={class:"truncate text-sm font-medium text-gray-900"},HK=["onClick"],VK={class:"hidden sm:inline"},WK={class:"mt-6"},zK={key:3,class:"mt-4 overflow-hidden rounded-lg bg-white shadow"},qK={class:"p-6"};function KK(e,t,n,r,o,s){const l=X("ClipboardCheckIcon"),a=X("ExternalLinkIcon"),c=X("ExclamationIcon");return N(),V("div",null,[e.production.status==3?(N(),V("div",bK,[g("div",_K,[g("div",wK,[q(l,{class:"h-5 w-5 text-green-400","aria-hidden":"true"})]),g("div",SK,[g("h3",EK,U(e.__("Done","podlove-podcasting-plugin-for-wordpress")),1),g("div",xK,[g("p",null,[g("a",{href:e.production.status_page,target:"_blank",class:"underline inline-flex items-center"},[Xe(U(e.__("View Results","podlove-podcasting-plugin-for-wordpress"))+" ",1),q(a,{class:"ml-0.5 mr-1 h-4 w-4","aria-hidden":"true"})],8,$K),Xe(" "+U(e.__("on the Auphonic status page.","podlove-podcasting-plugin-for-wordpress")),1)])])])])])):qe("",!0),e.production.warning_message?(N(),V("div",CK,[g("div",TK,[g("div",OK,[q(c,{class:"h-5 w-5 text-yellow-400","aria-hidden":"true"})]),g("div",AK,[g("h3",IK,U(e.__("Warning","podlove-podcasting-plugin-for-wordpress")),1),g("div",PK,[g("p",null,U(e.production.warning_message),1)])])])])):qe("",!0),e.visibleEntries.length>0?(N(),V("div",kK,[g("div",RK,[g("div",null,[LK,g("p",NK,U(e.__("These values from your Auphonic Production differ from your local values:","podlove-podcasting-plugin-for-wordpress")),1)]),g("div",MK,[g("ul",DK,[(N(!0),V(Fe,null,Mt(e.visibleEntries,f=>(N(),V("li",{key:f.key,class:"py-4"},[g("div",FK,[g("div",BK,[g("p",UK,[g("em",null,U(f.title),1),Xe(" "+U(e.__("in the Auphonic Production is:","podlove-podcasting-plugin-for-wordpress")),1)]),g("p",jK,U(e.renderEntryPreview(f)),1)]),g("div",null,[g("button",{onClick:Sc(p=>e.importMeta(f.title,f.there),["prevent"]),class:"inline-flex items-center rounded-full border border-gray-300 bg-white px-2.5 py-0.5 text-sm font-medium leading-5 text-gray-700 shadow-sm hover:bg-gray-50","aria-label":"Import from Auphonic"},[Xe(U(e.__("Import","podlove-podcasting-plugin-for-wordpress")),1),g("span",VK,"\xA0"+U(e.__("from Auphonic","podlove-podcasting-plugin-for-wordpress")),1)],8,HK)])])]))),128))])]),g("div",WK,[g("button",{onClick:t[0]||(t[0]=Sc((...f)=>e.importAllMeta&&e.importAllMeta(...f),["prevent"])),class:"flex w-full items-center justify-center rounded-md border border-gray-300 bg-white px-4 py-2 text-sm font-medium text-gray-700 shadow-sm hover:bg-gray-50"},U(e.__("Import all from Auphonic","podlove-podcasting-plugin-for-wordpress")),1)])])])):(N(),V("div",zK,[g("div",qK,U(e.__("Nothing to import","podlove-podcasting-plugin-for-wordpress")),1)]))])}var GK=Be(yK,[["render",KK]]);const XK=ve({components:{Switch:bj,SwitchGroup:yj,SwitchLabel:_j},data(){return{enabled:!1}},methods:{handleUpdate(e){this.enabled=e,this.dispatch(Ax(e))}},setup(){return{state:yt({publishWhenDone:G.auphonic.publishWhenDone}),dispatch:it().dispatch}},mounted(){this.enabled=this.state.publishWhenDone}}),JK={class:"text-sm text-gray-900"};function YK(e,t,n,r,o,s){const l=X("Switch"),a=X("SwitchLabel"),c=X("SwitchGroup");return N(),V("div",null,[q(c,{as:"div",class:"flex items-center"},{default:ye(()=>[q(l,{modelValue:e.enabled,"onUpdate:modelValue":e.handleUpdate,class:wt([e.enabled?"bg-indigo-600":"bg-gray-200","relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2"])},{default:ye(()=>[g("span",{"aria-hidden":"true",class:wt([e.enabled?"translate-x-5":"translate-x-0","pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out"])},null,2)]),_:1},8,["modelValue","onUpdate:modelValue","class"]),q(a,{as:"span",class:"ml-3"},{default:ye(()=>[g("span",JK,U(e.__("Publish Episode when Production is done","podlove-podcasting-plugin-for-wordpress")),1)]),_:1})]),_:1})])}var ZK=Be(XK,[["render",YK]]);const QK=ve({props:{className:{type:String,default:""}}}),eG=g("g",{transform:"translate(-12.73496,-48.464)"},[g("path",{d:"m 28.623,223.469 c -3.277,-0.007 -7.473,0.836 -12.588,2.528 l 1.46,6.491 c 3.476,-1.302 6.689,-1.95 9.638,-1.944 3.472,0.008 5.797,0.63 6.975,1.868 1.176,1.237 1.762,3.569 1.754,6.998 l -7.373,-0.017 c -5.047,-0.011 -8.933,1.031 -11.655,3.125 -2.725,2.092 -4.091,5.007 -4.099,8.739 -0.008,3.334 1.198,6.07 3.618,8.207 2.419,2.14 5.661,3.212 9.726,3.221 4.389,0.01 8.063,-1.161 11.017,-3.512 l 1.075,2.655 7.471,0.017 0.052,-23.199 c 0.011,-4.848 -1.243,-8.587 -3.759,-11.214 -2.519,-2.628 -6.956,-3.949 -13.312,-3.963 z m 7.6,30 c -0.33,0.195 -0.92,0.505 -1.772,0.929 -0.853,0.424 -1.738,0.734 -2.656,0.929 -0.92,0.193 -2.033,0.29 -3.343,0.287 -1.966,-0.004 -3.506,-0.443 -4.618,-1.314 -1.113,-0.873 -1.666,-2.08 -1.663,-3.618 0.007,-3.079 2.467,-4.611 7.382,-4.601 4.916,0.011 6.685,0.006 6.685,0.006 l -0.015,7.382 z m 41.315,-29.3 9.241,0.021 -0.084,37.845 -6.489,-0.014 -1.173,-2.754 c -2.494,1.173 -5.743,3.524 -12.295,3.51 -5.701,-0.013 -13.761,-0.336 -13.723,-17.135 l 0.048,-21.527 9.339,0.021 -0.051,22.806 c -0.013,5.661 2.719,7.772 6.863,7.781 2.883,0.007 5.638,-0.74 8.262,-2.243 l 0.062,-28.311 z m 44.305,1.377 c -2.751,-1.251 -5.502,-1.88 -8.254,-1.887 -3.801,-0.008 -7.539,1 -11.212,3.023 l -1.076,-2.46 -6.586,-0.015 -0.111,49.679 9.436,0.021 0.029,-13.013 c 1.505,0.659 4.534,1.975 8.154,1.983 6.096,0.014 10.833,-1.728 14.215,-5.226 3.385,-3.498 5.083,-8.296 5.097,-14.391 0.011,-4.719 -0.914,-8.538 -2.776,-11.458 -1.863,-2.918 -4.166,-5.005 -6.916,-6.256 z m -3.061,27.173 c -2.066,1.863 -4.772,2.792 -8.114,2.784 -2.425,-0.005 -4.587,-0.633 -6.484,-1.883 l 0.047,-21.135 c 2.098,-0.912 4.36,-1.367 6.786,-1.362 7.274,0.017 10.902,4.219 10.884,12.608 -0.01,4.129 -1.049,7.124 -3.119,8.988 z m 53.325,-12.021 -0.048,21.43 -9.437,-0.021 0.051,-22.708 c 0.005,-2.293 -0.45,-4.145 -1.363,-5.557 -0.917,-1.411 -2.717,-2.12 -5.402,-2.125 -2.427,-0.005 -5.408,0.676 -8.949,2.044 l -0.063,28.311 -9.437,-0.021 0.111,-49.608 9.436,0.021 -0.03,13.827 c 3.935,-1.628 7.736,-2.441 11.406,-2.433 5.636,0.012 13.762,0.659 13.725,16.84 z m 92.456,-16.111 9.437,0.021 -0.084,37.747 -9.437,-0.021 0.084,-37.747 z m 46.696,29.103 2.643,6.102 c -1.97,1.11 -4.085,1.99 -6.347,2.639 -2.263,0.649 -4.969,0.972 -8.113,0.965 -5.898,-0.013 -10.629,-1.825 -14.192,-5.438 -3.564,-3.611 -5.337,-8.368 -5.324,-14.266 0.014,-6.095 1.793,-10.891 5.339,-14.389 3.547,-3.497 8.302,-5.241 14.266,-5.228 3.014,0.006 5.586,0.307 7.715,0.901 2.127,0.595 4.371,1.453 6.729,2.571 l -2.67,6.187 c -2.356,-0.792 -4.208,-1.369 -5.548,-1.732 -1.345,-0.363 -2.9,-0.547 -4.67,-0.551 -3.735,-0.008 -6.572,1.1 -8.509,3.323 -1.938,2.224 -2.912,5.203 -2.921,8.938 -0.008,3.605 1,6.54 3.028,8.805 2.024,2.266 4.809,3.403 8.347,3.412 1.77,0.004 3.326,-0.173 4.673,-0.531 1.339,-0.356 3.193,-0.926 5.554,-1.708 z m -53.79,-12.801 -0.048,21.43 -9.338,-0.021 0.05,-22.609 c 0.016,-7.021 -4.21,-7.677 -6.766,-7.683 -2.295,-0.005 -5.344,0.676 -9.146,2.044 l -0.062,28.212 -9.339,-0.021 0.084,-37.747 6.683,0.015 1.175,2.755 c 4.462,-2.152 8.818,-3.225 13.081,-3.215 4.405,0.01 13.663,0.163 13.626,16.84 z m -59.894,-17.042 c -5.898,-0.013 -10.62,1.731 -14.167,5.227 -3.545,3.499 -5.327,8.294 -5.341,14.389 -0.009,3.801 0.784,7.178 2.385,10.131 1.6,2.953 3.854,5.268 6.769,6.946 2.913,1.676 6.301,2.52 10.169,2.528 3.866,0.009 7.274,-0.82 10.228,-2.483 2.955,-1.665 5.234,-3.969 6.848,-6.915 1.612,-2.946 2.423,-6.351 2.432,-10.218 0.013,-5.963 -1.73,-10.719 -5.228,-14.265 -3.5,-3.546 -8.195,-5.327 -14.095,-5.34 z m 6.866,28.62 c -1.809,2.095 -4.152,3.137 -7.035,3.131 -2.753,-0.006 -5.047,-1.076 -6.874,-3.21 -1.831,-2.133 -2.741,-5.102 -2.732,-8.903 0.008,-3.866 0.949,-6.879 2.821,-9.037 1.872,-2.159 4.15,-3.235 6.84,-3.229 2.752,0.006 5.059,1.077 6.922,3.21 1.862,2.134 2.791,5.167 2.783,9.099 -0.009,3.868 -0.918,6.848 -2.725,8.939 z"}),g("path",{d:"M 53.464,198.261 H 13.619 c 0,-0.001 0,-0.004 0,-0.006 0,-82.727 67.065,-149.791 149.788,-149.791 82.729,0 149.794,67.063 149.794,149.791 0,0.002 0,0.005 0,0.006 h -39.844 c 0.006,-0.435 0.017,-0.869 0.017,-1.306 0,-60.731 -49.234,-109.963 -109.967,-109.963 -60.727,0 -109.959,49.232 -109.959,109.963 -10e-4,0.437 0.011,0.871 0.016,1.306 z m 189.059,0 c 0.019,-0.705 0.053,-1.407 0.053,-2.117 0,-43.723 -35.444,-79.167 -79.167,-79.167 -43.722,0 -79.166,35.445 -79.166,79.167 0,0.71 0.035,1.412 0.054,2.117 h 39.67 c -0.085,-1.047 -0.14,-2.103 -0.14,-3.172 0,-21.861 17.721,-39.584 39.582,-39.584 21.862,0 39.583,17.723 39.583,39.584 0,1.069 -0.055,2.125 -0.139,3.172 h 39.67 z"})],-1),tG=[eG];function nG(e,t,n,r,o,s){return N(),V("svg",{class:wt(e.className),viewBox:"0 0 301.24005 225.44299",stroke:"currentColor",fill:"currentColor","aria-hidden":"true"},tG,2)}var og=Be(QK,[["render",nG]]);const rG=ve({components:{PodloveButton:Vn,FileChooser:gK,CogIcon:J9,ChevronDownIcon:k2,ChevronRightIcon:K9,XIcon:Da,DatabaseIcon:G9,ExternalLinkIcon:P2,CloudIcon:L2,TrashIcon:Z9,ArrowDownIcon:A2,ArrowDownTrayIcon:H9,AuphonicLogo:og,DonePage:GK,WebhookToggle:ZK},data(){return{algorithmSettings:{},showImportPage:!1}},setup(){return{state:yt({production:G.auphonic.production,tracks:G.auphonic.tracks,isSaving:G.auphonic.isSaving}),dispatch:it().dispatch}},methods:{saveProduction(){this.dispatch(xx({uuid:this.production.uuid}))},startProduction(){this.dispatch(wh({uuid:this.production.uuid}))},deselectProduction(){this.dispatch(Sx())},addTrack(){this.dispatch(o7())},removeTrack(e){this.dispatch(Tx(e))},updateTrack(e,t,n){this.dispatch(Ox({track:{[e]:t},index:n}))},algorithmSettingsVisible(e){return!0},toggleAlgorithmSettingVisible(e){this.algorithmSettings[e]=!Y.exports.get(this.algorithmSettings,e,!1)},handleSelectForeBackground(e,t){this.updateTrack("fore_background",e.target.value,t)},handleToggleNoiseHum(e,t){this.updateTrack("noise_and_hum_reduction",e.target.checked,t)},handleToggleFiltering(e,t){this.updateTrack("filtering",e.target.checked,t)},handleUpdateIdentifier(e,t){this.updateTrack("identifier_new",e.target.value,t)}},computed:{production(){return this.state.production||{}},isSaving(){return this.state.isSaving},showProcessingScreen(){return[1,4,5,6,7,8,12,13,14].includes(this.production.status)},showUploadScreen(){return this.production.status===0},showTrackEditor(){return[9,10,11].includes(this.production.status)},tracks(){return this.state.tracks||[]},isMultitrack(){return this.state.production&&this.state.production.is_multitrack}}}),oG={class:"pb-5 space-y-4"},iG={class:"space-y-8"},sG={class:"bg-white px-4 sm:px-6"},lG={class:"-ml-4 -mt-4 flex flex-wrap items-center justify-between sm:flex-nowrap"},aG={class:"ml-4 mt-4"},uG={class:"flex items-center"},cG={class:"flex-shrink-0"},dG={class:"ml-4"},fG={class:"text-base font-semibold leading-6 text-gray-900"},pG={class:"text-sm text-gray-500"},hG={class:"ml-4 mt-4 flex items-center space-x-4 text-xs"},mG={key:0,class:"inline-flex items-center animate-pulse text-green-600"},vG={key:0},gG={key:1},yG={class:"space-y-4"},bG={key:0},_G={key:1},wG={class:"rounded-md bg-indigo-50 p-4"},SG={class:"flex"},EG={class:"flex-shrink-0"},xG={class:"ml-3"},$G={class:"text-sm font-medium text-indigo-800"},CG={class:"mt-2 text-sm text-indigo-700"},TG={key:2},OG={key:3},AG={class:"bg-white shadow overflow-hidden rounded-md"},IG={class:"px-6 pt-4 hidden md:block"},PG={class:"md:grid md:grid-cols-3 md:gap-12"},kG={class:"block text-sm font-medium text-gray-700 md:col-span-1"},RG={class:"block text-sm font-medium text-gray-700 mt-5 md:mt-0 md:col-span-1"},LG={class:"block text-sm font-medium text-gray-700 mt-5 md:mt-0 md:col-span-1"},NG=g("div",{class:"block w-8 md:col-span-1"},null,-1),MG={role:"list",class:"divide-y divide-gray-200"},DG={class:"md:grid md:grid-cols-3 md:gap-12"},FG={class:"md:col-span-1"},BG=["for"],UG=["id","value","onInput"],jG={class:"mt-5 md:mt-0 md:col-span-1"},HG={class:"sm:items-baseline"},VG={class:"mt-4 sm:mt-0"},WG={key:0,class:"mt-1 text-sm text-gray-700"},zG={class:"md:col-span-1"},qG={key:0,role:"group",class:"bg-gr"},KG={class:"sm:items-baseline"},GG={class:""},XG={class:"block md:hidden text-sm font-medium text-gray-700 py-2"},JG={class:"max-w-lg relative"},YG=["title","onClick"],ZG={class:"space-y-4"},QG={class:"relative flex items-start"},eX={class:"flex items-center h-5"},tX=["id","checked","onInput"],nX={class:"ml-3 text-sm"},rX=["for"],oX={class:"relative flex items-start"},iX={class:"flex items-center h-5"},sX=["id","checked","onInput"],lX={class:"ml-3 text-sm"},aX=["for"],uX={class:"relative flex justify-start align-middle items-center gap-3"},cX={class:"text-sm"},dX=["for"],fX=["value","onInput","id"],pX={value:"auto"},hX={value:"foreground"},mX={value:"background"},vX={value:"ducking"},gX={value:"unchanged"},yX={class:"bg-gray-50 px-4 py-4 sm:px-6"},bX={key:4,class:"grid grid-cols-1 gap-y-6 gap-x-4 sm:grid-cols-6"},_X={class:"sm:col-span-4"},wX={class:"text-base font-medium text-gray-900"},SX={class:"mt-2"},EX={key:0,class:"mt-1 text-sm text-gray-700"},xX={class:"pt-5"},$X={class:"flex flex-col sm:flex-row gap-4 sm:gap-2 justify-between"},CX={class:"flex justify-end gap-3"},TX=["href"];function OX(e,t,n,r,o,s){var O,S,E,T;const l=X("AuphonicLogo"),a=X("CloudIcon"),c=X("ArrowDownTrayIcon"),f=X("XIcon"),p=X("DatabaseIcon"),h=X("DonePage"),v=X("FileChooser"),y=X("TrashIcon"),_=X("podlove-button"),w=X("WebhookToggle"),I=X("ExternalLinkIcon");return N(),V("form",oG,[g("div",iG,[g("div",sG,[g("div",lG,[g("div",aG,[g("div",uG,[g("div",cG,[q(l,{className:"mx-auto h-12 w-12 text-gray-400"})]),g("div",dG,[g("h3",fG,U((S=(O=e.production)==null?void 0:O.metadata)==null?void 0:S.title),1),g("p",pG,U(new Date(Date.parse((E=e.production)==null?void 0:E.creation_time)).toLocaleString()),1)])])]),g("div",hG,[e.isSaving?(N(),V("span",mG,[q(a,{class:"mr-1 h-4 w-4","aria-hidden":"true"}),Xe(" "+U(e.__("Saving","podlove-podcasting-plugin-for-wordpress")),1)])):qe("",!0),e.production.status!==3?(N(),V("button",{key:1,onClick:t[0]||(t[0]=$=>e.showImportPage=!e.showImportPage),type:"button",class:"relative inline-flex items-center rounded-md bg-white px-3 py-2 font-medium text-gray-500 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50"},[q(c,{class:"-ml-0.5 mr-1.5 h-4 w-4 text-gray-400","aria-hidden":"true"}),e.showImportPage?(N(),V("span",vG,U(e.__("Hide Import","podlove-podcasting-plugin-for-wordpress")),1)):qe("",!0),e.showImportPage?qe("",!0):(N(),V("span",gG,U(e.__("Show Import","podlove-podcasting-plugin-for-wordpress")),1))])):qe("",!0),g("button",{onClick:t[1]||(t[1]=(...$)=>e.deselectProduction&&e.deselectProduction(...$)),type:"button",class:"relative inline-flex items-center rounded-md bg-white px-3 py-2 font-medium text-gray-500 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50"},[q(f,{class:"-ml-0.5 mr-1.5 h-4 w-4 text-gray-400","aria-hidden":"true"}),g("span",null,U(e.__("Deselect Production","podlove-podcasting-plugin-for-wordpress")),1)])])])]),g("div",yG,[e.showUploadScreen?(N(),V("div",bG,U(e.__("Uploading...","podlove-podcasting-plugin-for-wordpress")),1)):qe("",!0),e.showProcessingScreen?(N(),V("div",_G,[g("div",wG,[g("div",SG,[g("div",EG,[q(p,{class:"h-5 w-5 text-indigo-400","aria-hidden":"true"})]),g("div",xG,[g("h3",$G,U(e.production.status_string),1),g("div",CG,[g("p",null,U(e.__("Auphonic is now processing your production. Please wait for it to finish.","podlove-podcasting-plugin-for-wordpress")),1)])])])])])):qe("",!0),e.production.status==3||e.showImportPage?(N(),V("div",TG,[q(h)])):qe("",!0),e.isMultitrack&&e.showTrackEditor?(N(),V("div",OG,[g("div",AG,[g("div",IG,[g("div",PG,[g("div",kG,U(e.__("Track Identifier","podlove-podcasting-plugin-for-wordpress")),1),g("div",RG,U(e.__("Upload Method","podlove-podcasting-plugin-for-wordpress")),1),g("div",LG,U(e.__("Algorithm","podlove-podcasting-plugin-for-wordpress")),1),NG])]),g("ul",MG,[(N(!0),V(Fe,null,Mt(e.tracks,($,P)=>(N(),V("li",{key:`xtrack-${P}`,class:"px-6 py-4"},[g("div",DG,[g("div",FG,[g("label",{for:`track-id-${P}`,class:"block md:hidden text-sm font-medium text-gray-700"},U(e.__("Track Identifier","podlove-podcasting-plugin-for-wordpress")),9,BG),g("input",{id:`track-id-${P}`,type:"text",value:$.identifier_new,onInput:k=>e.handleUpdateIdentifier(k,P),class:"mt-1 max-w-lg block w-full shadow-sm focus:ring-indigo-500 focus:border-indigo-500 sm:max-w-xs sm:text-sm border-gray-300 rounded-md"},null,40,UG)]),g("div",jG,[g("div",HG,[g("div",VG,[q(v,{track_index:P,file_key:`${e.production.uuid}_t${P}`},null,8,["track_index","file_key"]),$.input_file_name?(N(),V("div",WG,U(e.__("Uploaded File:","podlove-podcasting-plugin-for-wordpress"))+" "+U($.input_file_name),1)):qe("",!0)])])]),g("div",zG,[e.algorithmSettingsVisible(P)?(N(),V("div",qG,[g("div",KG,[g("div",GG,[g("div",XG,U(e.__("Algorithm","podlove-podcasting-plugin-for-wordpress")),1),g("div",JG,[g("div",{title:e.__("Remove Track","podlove-podcasting-plugin-for-wordpress"),onClick:k=>e.removeTrack($.identifier),class:"absolute z-10 right-0 top-0 cursor-pointer text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500"},[q(y,{class:"h-6 w-6","aria-hidden":"true"})],8,YG),g("div",ZG,[g("div",QG,[g("div",eX,[g("input",{id:`track_${P}_filtering`,type:"checkbox",class:"focus:ring-indigo-500 h-4 w-4 text-indigo-600 border-gray-300 rounded",checked:$.filtering,onInput:k=>e.handleToggleFiltering(k,P)},null,40,tX)]),g("div",nX,[g("label",{for:`track_${P}_filtering`,class:"text-gray-700"},U(e.__("Filtering","podlove-podcasting-plugin-for-wordpress")),9,rX)])]),g("div",null,[g("div",oX,[g("div",iX,[g("input",{id:`track_${P}_noisehum`,type:"checkbox",class:"focus:ring-indigo-500 h-4 w-4 text-indigo-600 border-gray-300 rounded",checked:$.noise_and_hum_reduction,onInput:k=>e.handleToggleNoiseHum(k,P)},null,40,sX)]),g("div",lX,[g("label",{for:`track_${P}_noisehum`,class:"text-gray-700"},U(e.__("Noise and Hum Reduction","podlove-podcasting-plugin-for-wordpress")),9,aX)])])]),g("div",null,[g("div",uX,[g("div",cX,[g("label",{for:`track_${P}_fgbg`,class:"text-gray-700"},U(e.__("Fore/Background","podlove-podcasting-plugin-for-wordpress")),9,dX)]),g("select",{value:$.fore_background,onInput:k=>e.handleSelectForeBackground(k,P),id:`track_${P}_fgbg`,class:"mt-1 block w-[168px] pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm rounded-md"},[g("option",pX,U(e.__("Auto","podlove-podcasting-plugin-for-wordpress")),1),g("option",hX,U(e.__("Foreground Track","podlove-podcasting-plugin-for-wordpress")),1),g("option",mX,U(e.__("Background Track","podlove-podcasting-plugin-for-wordpress")),1),g("option",vX,U(e.__("Duck this Track","podlove-podcasting-plugin-for-wordpress")),1),g("option",gX,U(e.__("Unchanged (Foreground)","podlove-podcasting-plugin-for-wordpress")),1)],40,fX)])])])])])])])):qe("",!0)])])]))),128))]),g("div",yX,[q(_,{variant:"primary",onClick:e.addTrack},{default:ye(()=>[Xe(U(e.__("Add Track","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["onClick"])])])])):e.showTrackEditor?(N(),V("div",bX,[g("fieldset",_X,[g("legend",wX,U(e.__("Audio Source","podlove-podcasting-plugin-for-wordpress")),1),g("div",SX,[q(v,{file_key:e.production.uuid},null,8,["file_key"]),e.production.input_file?(N(),V("div",EX,U(e.__("Uploaded File:","podlove-podcasting-plugin-for-wordpress"))+" "+U(e.production.input_file),1)):qe("",!0)])])])):qe("",!0)])]),g("div",xX,[g("div",$X,[q(w),g("div",CX,[g("a",{href:(T=e.production)==null?void 0:T.edit_page,target:"_blank",class:"inline-flex items-center rounded border border-gray-300 bg-white px-2.5 py-1.5 text-xs font-medium text-gray-500 shadow-sm hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2"},[Xe(U(e.__("Edit in Auphonic","podlove-podcasting-plugin-for-wordpress"))+" ",1),q(I,{class:"ml-1 -mr-0.5 h-4 w-4","aria-hidden":"true"})],8,TX),q(_,{variant:e.isSaving?"secondary-disabled":"secondary",onClick:e.saveProduction},{default:ye(()=>[Xe(U(e.__("Save Production","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["variant","onClick"]),q(_,{variant:"primary",onClick:e.startProduction},{default:ye(()=>[Xe(U(e.__("Start Production","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["onClick"])])])])])}var AX=Be(rG,[["render",OX]]);const IX=ve({components:{Listbox:Vv,ListboxButton:zv,ListboxLabel:Wv,ListboxOption:Kv,ListboxOptions:qv,CheckIcon:Kd,SelectorIcon:Gd},setup(){return{state:yt({productions:G.auphonic.productions,production:G.auphonic.production}),dispatch:it().dispatch}},methods:{setProduction(e){this.dispatch(ds(e))}},computed:{productions(){return this.state.productions.map(e=>{const t=e.creation_time.split("T")[0],n=e.metadata.title;return{...e,_select:{name:n,date:t}}})},currentProduction(){return this.state.production}}}),PX={class:"mt-1 relative"},kX={class:"w-full inline-flex truncate"},RX={key:0,class:"truncate"},LX={key:1,class:"truncate"},NX={class:"absolute inset-y-0 right-0 flex items-center pr-2 pointer-events-none"},MX={class:"flex justify-between"},DX={class:wt(["font-normal","truncate"])};function FX(e,t,n,r,o,s){const l=X("ListboxLabel"),a=X("SelectorIcon"),c=X("ListboxButton"),f=X("ListboxOption"),p=X("ListboxOptions"),h=X("Listbox");return N(),bt(h,{as:"div","onUpdate:modelValue":e.setProduction,value:e.currentProduction},{default:ye(()=>[q(l,{class:"block text-sm font-medium text-gray-600 sr-only"},{default:ye(()=>[Xe(U(e.__("Select Existing Production","podlove-podcasting-plugin-for-wordpress")),1)]),_:1}),g("div",PX,[q(c,{class:"relative w-full bg-white border border-gray-300 rounded-md shadow-sm pl-3 pr-10 py-2 text-left cursor-default focus:outline-none focus:ring-1 focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"},{default:ye(()=>[g("span",kX,[e.currentProduction?(N(),V("span",RX,U(e.currentProduction.metadata.title),1)):(N(),V("span",LX,"\xA0"))]),g("span",NX,[q(a,{class:"h-5 w-5 text-gray-400","aria-hidden":"true"})])]),_:1}),q(Ei,{"leave-active-class":"transition ease-in duration-100","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:ye(()=>[q(p,{class:"absolute z-10 mt-1 w-full bg-white shadow-lg max-h-36 rounded-md py-1 text-base ring-1 ring-black ring-opacity-5 overflow-auto focus:outline-none sm:text-sm"},{default:ye(()=>[(N(!0),V(Fe,null,Mt(e.productions,v=>(N(),bt(f,{as:"template",key:v._select.date,value:v},{default:ye(({active:y})=>[g("li",{class:wt([y?"text-white bg-indigo-600":"text-gray-900","cursor-default select-none relative py-2 pl-3 pr-9"])},[g("div",MX,[g("span",DX,[g("span",{class:wt([y?"text-indigo-200":"text-gray-500","ml-2 truncate"])},U(v._select.date),3),Xe(" "+U(v._select.name),1)]),g("span",{class:wt([y?"text-indigo-200":"text-gray-500","ml-2 truncate flex-shrink-0"])},U(v.status_string),3)])],2)]),_:2},1032,["value"]))),128))]),_:1})]),_:1})])]),_:1},8,["onUpdate:modelValue","value"])}var BX=Be(IX,[["render",FX]]);const UX=ve({components:{Listbox:Vv,ListboxButton:zv,ListboxLabel:Wv,ListboxOption:Kv,ListboxOptions:qv,CheckIcon:Kd,SelectorIcon:Gd},setup(){return{state:yt({presets:G.auphonic.presets,currentPreset:G.auphonic.preset}),dispatch:it().dispatch}},methods:{setPreset(e){this.dispatch(bv(e.uuid))}},computed:{presets(){return this.state.presets.map(e=>{const t=e.creation_time.split("T")[0],n=e.preset_name,r=e.is_multitrack;return{...e,_select:{name:n,date:t,is_multitrack:r}}}).toSorted((e,t)=>{const n=e._select.name.toUpperCase(),r=t._select.name.toUpperCase();return n<r?-1:n>r?1:0})},currentPreset(){const e=this.state.currentPreset;return this.presets.find(t=>t.uuid===e)}}}),jX={class:"mt-1 relative"},HX={class:"w-full inline-flex truncate"},VX={key:0,class:"truncate"},WX={key:1,class:"truncate"},zX={class:"absolute inset-y-0 right-0 flex items-center pr-2 pointer-events-none"},qX={class:"flex"},KX={class:wt(["font-normal","truncate"])};function GX(e,t,n,r,o,s){const l=X("ListboxLabel"),a=X("SelectorIcon"),c=X("ListboxButton"),f=X("ListboxOption"),p=X("ListboxOptions"),h=X("Listbox");return N(),bt(h,{as:"div","onUpdate:modelValue":e.setPreset,value:e.currentPreset},{default:ye(()=>[q(l,{class:"block text-sm font-medium text-gray-600 sr-only"},{default:ye(()=>[Xe(U(e.__("Select Preset","podlove-podcasting-plugin-for-wordpress")),1)]),_:1}),g("div",jX,[q(c,{class:"relative w-full bg-white border border-gray-300 rounded-md shadow-sm pl-3 pr-10 py-2 text-left cursor-default focus:outline-none focus:ring-1 focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"},{default:ye(()=>[g("span",HX,[e.currentPreset?(N(),V("span",VX,U(e.currentPreset._select.name),1)):(N(),V("span",WX,"\xA0"))]),g("span",zX,[q(a,{class:"h-5 w-5 text-gray-400","aria-hidden":"true"})])]),_:1}),q(Ei,{"leave-active-class":"transition ease-in duration-100","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:ye(()=>[q(p,{class:"absolute z-10 mt-1 w-full bg-white shadow-lg max-h-36 rounded-md py-1 text-base ring-1 ring-black ring-opacity-5 overflow-auto focus:outline-none sm:text-sm"},{default:ye(()=>[(N(!0),V(Fe,null,Mt(e.presets,v=>(N(),bt(f,{as:"template",key:v._select.date,value:v},{default:ye(({active:y})=>[g("li",{class:wt([y?"text-white bg-indigo-600":"text-gray-900","cursor-default select-none relative py-2 pl-3 pr-9"])},[g("div",qX,[g("span",KX,U(v._select.name),1),v._select.is_multitrack?(N(),V("span",{key:0,class:wt([y?"text-indigo-200":"text-gray-500","ml-2 truncate"])},U(e.__("Multitrack","podlove-podcasting-plugin-for-wordpress")),3)):qe("",!0)])],2)]),_:2},1032,["value"]))),128))]),_:1})]),_:1})])]),_:1},8,["onUpdate:modelValue","value"])}var XX=Be(UX,[["render",GX]]);const JX=ve({components:{Module:Nn,PodloveButton:Vn,PlusSmIcon:Lv,RefreshIcon:I2,SelectProduction:BX,SelectPreset:XX,AuphonicLogo:og},data(){return{}},setup(){return{state:yt({presetUUID:G.auphonic.preset,presets:G.auphonic.presets,isInitializing:G.auphonic.isInitializing}),dispatch:it().dispatch}},methods:{handleCreateProduction(){switch(this.buttonState){case"single":this.createProduction();break;case"multi":this.createMultitrackProduction();break}},createProduction(){this.dispatch(QD())},createMultitrackProduction(){this.dispatch(e7())}},computed:{preset(){return this.state.presets.find(e=>e.uuid===this.state.presetUUID)},isInitializing(){return this.state.isInitializing},buttonState(){return this.preset?this.preset.is_multitrack?"multi":"single":"idle"}}}),YX={class:"m-6 text-center max-w-5xl"},ZX={key:0,class:"w-full flex justify-center"},QX={class:"animate-pulse mt-4 flex space-x-4"},eJ={class:"mt-1 text-sm text-gray-500"},tJ={class:"sm:divide-x sm:divide-gray-200 mt-6 py-6 gap-8 sm:gap-0 grid grid-cols-1 sm:grid-cols-2"},nJ={class:"flow-root sm:px-6"},rJ={class:"relative -m-2 p-2 flex items-center justify-around space-x-4 rounded-xl hover:bg-gray-50 focus-within:ring-2 focus-within:ring-indigo-500"},oJ={class:"text-sm font-medium text-gray-900"},iJ={class:"mt-2 sm:mt-8 flex justify-center align-middle content-center items-center gap-3"},sJ={class:"w-full max-w-md"},lJ={class:"mt-10 flex flex-col justify-center align-middle content-center items-center gap-3"},aJ={class:"flow-root sm:px-6"},uJ={class:"relative -m-2 p-2 flex items-center justify-around space-x-4 rounded-xl hover:bg-gray-50 focus-within:ring-2 focus-within:ring-indigo-500"},cJ={class:"text-sm font-medium text-gray-900"},dJ={class:"mt-2 sm:mt-8 flex justify-center align-middle content-center items-center gap-3"},fJ={class:"w-full max-w-md"};function pJ(e,t,n,r,o,s){const l=X("AuphonicLogo"),a=X("RefreshIcon"),c=X("SelectPreset"),f=X("plus-sm-icon"),p=X("podlove-button"),h=X("SelectProduction");return N(),V("div",null,[g("div",YX,[q(l,{className:"mx-auto h-16 w-16 text-gray-400"}),e.isInitializing?(N(),V("div",ZX,[g("div",QX,[q(a,{class:"animate-spin h-5 w-5 mr-3"}),Xe(" "+U(e.__("Loading...","podlove-podcasting-plugin-for-wordpress")),1)])])):qe("",!0),g("div",{class:wt({"text-left":!0,"opacity-0":e.isInitializing})},[g("p",eJ,U(e.__("Manage your audio post production with Auphonic. Get started by selecting an existing production or create a new one from an Auphonic preset.","podlove-podcasting-plugin-for-wordpress")),1),g("div",tJ,[g("div",nJ,[g("div",rJ,[g("div",null,[g("h3",oJ,U(e.__("Create New Production from Preset","podlove-podcasting-plugin-for-wordpress")),1)])]),g("div",iJ,[g("div",sJ,[q(c)])]),g("div",lJ,[q(p,{disabled:e.buttonState=="idle",variant:e.buttonState=="idle"?"primary-disabled":"primary",onClick:e.handleCreateProduction},{default:ye(()=>[q(f,{class:"-ml-0.5 mr-2 h-4 w-4","aria-hidden":"true"}),Xe(" "+U(e.buttonState=="multi"?e.__("Create Multitrack Production","podlove-podcasting-plugin-for-wordpress"):e.__("Create Production","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["disabled","variant","onClick"])])]),g("div",aJ,[g("div",uJ,[g("div",null,[g("h3",cJ,U(e.__("Select Existing Production","podlove-podcasting-plugin-for-wordpress")),1)])]),g("div",dJ,[g("div",fJ,[q(h)])])])])],2)])])}var hJ=Be(JX,[["render",pJ]]);const mJ=ve({components:{Module:Nn,ManageProductionForm:AX,StartScreen:hJ,AuphonicLogo:og},setup(){return{state:yt({productionId:G.auphonic.productionId,isInitializing:G.auphonic.isInitializing}),dispatch:it().dispatch}},computed:{productionId(){return this.state.productionId||""},isInitializing(){return this.state.isInitializing},isProductionSelected(){return!!this.productionId}},created(){this.dispatch(JD())}}),vJ={key:0},gJ={key:1,class:"m-7"};function yJ(e,t,n,r,o,s){const l=X("StartScreen"),a=X("ManageProductionForm"),c=X("module");return N(),bt(c,{name:"auphonic",title:"Auphonic"},{default:ye(()=>[e.isProductionSelected?qe("",!0):(N(),V("div",vJ,[q(l)])),e.productionId?(N(),V("div",gJ,[q(a)])):qe("",!0)]),_:1})}var bJ=Be(mJ,[["render",yJ]]);const _J=ve({components:{ArrowUpIcon:W9,ArrowDownIcon:A2,XIcon:Da,UserCircleIcon:F2,PencilIcon:D2},props:{data:{type:Object,default:()=>({id:null,contributor_id:null,role_id:null,group_id:null,position:null,comment:null,identifier:null,avatar:null,name:null,mail:null,department:null,organisation:null,jobtitle:null,gender:null,nickname:null,count:null})},first:{type:Boolean,default:!1},last:{type:Boolean,default:!1}},setup(){return{dispatch:it().dispatch,state:yt({roles:G.contributors.roles,groups:G.contributors.groups,baseUrl:G.runtime.baseUrl})}},computed:{editLink(){return`${this.state.baseUrl}/wp-admin/admin.php?page=podlove_contributor_settings&action=edit&contributor=${this.data.contributor_id}`}},methods:{moveContributionUp(){this.dispatch(dD(this.data))},moveContributionDown(){this.dispatch(fD(this.data))},deleteContribution(){this.dispatch(pD(this.data))},updateRole(e){const t=Y.exports.get(e,["target","value"]);this.dispatch(Tp({...this.data,role_id:t}))},updateGroup(e){const t=Y.exports.get(e,["target","value"]);console.log(t),this.dispatch(Tp({...this.data,group_id:t}))},updateComment(e){const t=Y.exports.get(e,["target","value"]);this.dispatch(Tp({...this.data,comment:t}))}}}),wJ={class:"block hover:bg-gray-50"},SJ={class:"flex items-center px-4 py-4 sm:px-6"},EJ={class:"flex min-w-0 flex-1 items-center"},xJ={class:"flex-shrink-0"},$J=["src","alt"],CJ={class:"min-w-0 flex-1 px-2 md:grid md:gap-4"},TJ={class:"flex-shrink-0"},OJ={class:"truncate text-sm font-medium text-gray-900"},AJ={class:"flex items-center text-sm text-gray-500"},IJ={class:"truncate"},PJ={class:"min-w-0 flex-1 px-4 md:grid md:gap-4"},kJ={for:"location",class:"block text-sm font-medium leading-6 text-gray-900"},RJ=["value","selected"],LJ={class:"min-w-0 flex-1 px-4 md:grid md:gap-4"},NJ={for:"location",class:"block text-sm font-medium leading-6 text-gray-900"},MJ=["value","selected"],DJ={class:"min-w-0 flex-1 px-4 md:grid md:gap-4"},FJ={for:"email",class:"block text-sm font-medium leading-6 text-gray-900"},BJ={class:"mt-2"},UJ=["value","placeholder"],jJ={class:"flex space-x-2 justify-end mt-[30px]"},HJ=["disabled"],VJ=["disabled"],WJ=["href"];function zJ(e,t,n,r,o,s){const l=X("UserCircleIcon"),a=X("arrow-up-icon"),c=X("arrow-down-icon"),f=X("pencil-icon"),p=X("x-icon");return N(),V("div",wJ,[g("div",SJ,[g("div",EJ,[g("div",xJ,[e.data.avatar_url?(N(),V("img",{key:0,class:"h-12 w-12 rounded-full",src:e.data.avatar_url,alt:e.data.name,onError:t[0]||(t[0]=h=>e.data.avatar_url="")},null,40,$J)):qe("",!0),e.data.avatar_url?qe("",!0):(N(),bt(l,{key:1,class:"h-12 w-12 flex-shrink-0 rounded-full text-gray-500"}))]),g("div",CJ,[g("div",TJ,[g("p",OJ,U(e.data.realname),1),g("p",AJ,[g("span",IJ,U(e.data.nickname),1)])])]),g("div",PJ,[g("div",null,[g("label",kJ,U(e.__("Role","podlove-podcasting-plugin-for-wordpress")),1),g("select",{class:"mt-2 block w-full rounded-md border-0 py-1.5 pl-3 pr-10 text-gray-900 ring-1 ring-inset ring-gray-300 focus:ring-2 focus:ring-indigo-600 sm:text-sm sm:leading-6",onChange:t[1]||(t[1]=h=>e.updateRole(h))},[(N(!0),V(Fe,null,Mt(e.state.roles,h=>(N(),V("option",{value:h.id,selected:h.id===e.data.role_id},U(h.title),9,RJ))),256))],32)])]),g("div",LJ,[g("div",null,[g("label",NJ,U(e.__("Group","podlove-podcasting-plugin-for-wordpress")),1),g("select",{class:"mt-2 block w-full rounded-md border-0 py-1.5 pl-3 pr-10 text-gray-900 ring-1 ring-inset ring-gray-300 focus:ring-2 focus:ring-indigo-600 sm:text-sm sm:leading-6",onChange:t[2]||(t[2]=h=>e.updateGroup(h))},[(N(!0),V(Fe,null,Mt(e.state.groups,h=>(N(),V("option",{value:h.id,selected:h.id===e.data.group_id},U(h.title),9,MJ))),256))],32)])]),g("div",DJ,[g("div",null,[g("label",FJ,U(e.__("Comment","podlove-podcasting-plugin-for-wordpress")),1),g("div",BJ,[g("input",{type:"text",value:e.data.comment,onInput:t[3]||(t[3]=h=>e.updateComment(h)),class:"block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6",placeholder:e.__("Comment","podlove-podcasting-plugin-for-wordpress")},null,40,UJ)])])]),g("div",jJ,[g("button",{onClick:t[4]||(t[4]=h=>e.moveContributionUp()),disabled:e.first,class:wt({"text-indigo-600":!e.first,"text-gray-500":e.first})},[q(a,{class:"w-5 h-5"})],10,HJ),g("button",{onClick:t[5]||(t[5]=h=>e.moveContributionDown()),disabled:e.last,class:wt({"text-indigo-600":!e.last,"text-gray-500":e.last})},[q(c,{class:"w-5 h-5"})],10,VJ),g("a",{href:e.editLink,target:"_blank",class:"text-gray-400"},[q(f,{class:"w-5 h-5"})],8,WJ),g("button",{class:"text-red-600",onClick:t[6]||(t[6]=h=>e.deleteContribution())},[q(p,{class:"w-5 h-5"})])])])])])}var qJ=Be(_J,[["render",zJ]]),Qn="top",Br="bottom",Ur="right",er="left",ig="auto",Wa=[Qn,Br,Ur,er],tl="start",wa="end",KJ="clippingParents",H$="viewport",Ml="popper",GJ="reference",G1=Wa.reduce(function(e,t){return e.concat([t+"-"+tl,t+"-"+wa])},[]),V$=[].concat(Wa,[ig]).reduce(function(e,t){return e.concat([t,t+"-"+tl,t+"-"+wa])},[]),XJ="beforeRead",JJ="read",YJ="afterRead",ZJ="beforeMain",QJ="main",eY="afterMain",tY="beforeWrite",nY="write",rY="afterWrite",oY=[XJ,JJ,YJ,ZJ,QJ,eY,tY,nY,rY];function So(e){return e?(e.nodeName||"").toLowerCase():null}function ao(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function nl(e){var t=ao(e).Element;return e instanceof t||e instanceof Element}function Mr(e){var t=ao(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function sg(e){if(typeof ShadowRoot=="undefined")return!1;var t=ao(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function iY(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},s=t.elements[n];!Mr(s)||!So(s)||(Object.assign(s.style,r),Object.keys(o).forEach(function(l){var a=o[l];a===!1?s.removeAttribute(l):s.setAttribute(l,a===!0?"":a)}))})}function sY(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],s=t.attributes[r]||{},l=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=l.reduce(function(c,f){return c[f]="",c},{});!Mr(o)||!So(o)||(Object.assign(o.style,a),Object.keys(s).forEach(function(c){o.removeAttribute(c)}))})}}var lY={name:"applyStyles",enabled:!0,phase:"write",fn:iY,effect:sY,requires:["computeStyles"]};function bo(e){return e.split("-")[0]}var ts=Math.max,qc=Math.min,rl=Math.round;function ol(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),r=1,o=1;if(Mr(e)&&t){var s=e.offsetHeight,l=e.offsetWidth;l>0&&(r=rl(n.width)/l||1),s>0&&(o=rl(n.height)/s||1)}return{width:n.width/r,height:n.height/o,top:n.top/o,right:n.right/r,bottom:n.bottom/o,left:n.left/r,x:n.left/r,y:n.top/o}}function lg(e){var t=ol(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function W$(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&sg(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function zo(e){return ao(e).getComputedStyle(e)}function aY(e){return["table","td","th"].indexOf(So(e))>=0}function Ci(e){return((nl(e)?e.ownerDocument:e.document)||window.document).documentElement}function Xd(e){return So(e)==="html"?e:e.assignedSlot||e.parentNode||(sg(e)?e.host:null)||Ci(e)}function X1(e){return!Mr(e)||zo(e).position==="fixed"?null:e.offsetParent}function uY(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&Mr(e)){var r=zo(e);if(r.position==="fixed")return null}var o=Xd(e);for(sg(o)&&(o=o.host);Mr(o)&&["html","body"].indexOf(So(o))<0;){var s=zo(o);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return o;o=o.parentNode}return null}function za(e){for(var t=ao(e),n=X1(e);n&&aY(n)&&zo(n).position==="static";)n=X1(n);return n&&(So(n)==="html"||So(n)==="body"&&zo(n).position==="static")?t:n||uY(e)||t}function ag(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ea(e,t,n){return ts(e,qc(t,n))}function cY(e,t,n){var r=ea(e,t,n);return r>n?n:r}function z$(){return{top:0,right:0,bottom:0,left:0}}function q$(e){return Object.assign({},z$(),e)}function K$(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var dY=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,q$(typeof t!="number"?t:K$(t,Wa))};function fY(e){var t,n=e.state,r=e.name,o=e.options,s=n.elements.arrow,l=n.modifiersData.popperOffsets,a=bo(n.placement),c=ag(a),f=[er,Ur].indexOf(a)>=0,p=f?"height":"width";if(!(!s||!l)){var h=dY(o.padding,n),v=lg(s),y=c==="y"?Qn:er,_=c==="y"?Br:Ur,w=n.rects.reference[p]+n.rects.reference[c]-l[c]-n.rects.popper[p],I=l[c]-n.rects.reference[c],O=za(s),S=O?c==="y"?O.clientHeight||0:O.clientWidth||0:0,E=w/2-I/2,T=h[y],$=S-v[p]-h[_],P=S/2-v[p]/2+E,k=ea(T,P,$),A=c;n.modifiersData[r]=(t={},t[A]=k,t.centerOffset=k-P,t)}}function pY(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||!W$(t.elements.popper,o)||(t.elements.arrow=o))}var hY={name:"arrow",enabled:!0,phase:"main",fn:fY,effect:pY,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function il(e){return e.split("-")[1]}var mY={top:"auto",right:"auto",bottom:"auto",left:"auto"};function vY(e){var t=e.x,n=e.y,r=window,o=r.devicePixelRatio||1;return{x:rl(t*o)/o||0,y:rl(n*o)/o||0}}function J1(e){var t,n=e.popper,r=e.popperRect,o=e.placement,s=e.variation,l=e.offsets,a=e.position,c=e.gpuAcceleration,f=e.adaptive,p=e.roundOffsets,h=e.isFixed,v=l.x,y=v===void 0?0:v,_=l.y,w=_===void 0?0:_,I=typeof p=="function"?p({x:y,y:w}):{x:y,y:w};y=I.x,w=I.y;var O=l.hasOwnProperty("x"),S=l.hasOwnProperty("y"),E=er,T=Qn,$=window;if(f){var P=za(n),k="clientHeight",A="clientWidth";if(P===ao(n)&&(P=Ci(n),zo(P).position!=="static"&&a==="absolute"&&(k="scrollHeight",A="scrollWidth")),P=P,o===Qn||(o===er||o===Ur)&&s===wa){T=Br;var H=h&&P===$&&$.visualViewport?$.visualViewport.height:P[k];w-=H-r.height,w*=c?1:-1}if(o===er||(o===Qn||o===Br)&&s===wa){E=Ur;var D=h&&P===$&&$.visualViewport?$.visualViewport.width:P[A];y-=D-r.width,y*=c?1:-1}}var F=Object.assign({position:a},f&&mY),z=p===!0?vY({x:y,y:w}):{x:y,y:w};if(y=z.x,w=z.y,c){var K;return Object.assign({},F,(K={},K[T]=S?"0":"",K[E]=O?"0":"",K.transform=($.devicePixelRatio||1)<=1?"translate("+y+"px, "+w+"px)":"translate3d("+y+"px, "+w+"px, 0)",K))}return Object.assign({},F,(t={},t[T]=S?w+"px":"",t[E]=O?y+"px":"",t.transform="",t))}function gY(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,s=n.adaptive,l=s===void 0?!0:s,a=n.roundOffsets,c=a===void 0?!0:a,f={placement:bo(t.placement),variation:il(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,J1(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,J1(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var yY={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:gY,data:{}},ec={passive:!0};function bY(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,s=o===void 0?!0:o,l=r.resize,a=l===void 0?!0:l,c=ao(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&f.forEach(function(p){p.addEventListener("scroll",n.update,ec)}),a&&c.addEventListener("resize",n.update,ec),function(){s&&f.forEach(function(p){p.removeEventListener("scroll",n.update,ec)}),a&&c.removeEventListener("resize",n.update,ec)}}var _Y={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:bY,data:{}},wY={left:"right",right:"left",bottom:"top",top:"bottom"};function hc(e){return e.replace(/left|right|bottom|top/g,function(t){return wY[t]})}var SY={start:"end",end:"start"};function Y1(e){return e.replace(/start|end/g,function(t){return SY[t]})}function ug(e){var t=ao(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function cg(e){return ol(Ci(e)).left+ug(e).scrollLeft}function EY(e){var t=ao(e),n=Ci(e),r=t.visualViewport,o=n.clientWidth,s=n.clientHeight,l=0,a=0;return r&&(o=r.width,s=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(l=r.offsetLeft,a=r.offsetTop)),{width:o,height:s,x:l+cg(e),y:a}}function xY(e){var t,n=Ci(e),r=ug(e),o=(t=e.ownerDocument)==null?void 0:t.body,s=ts(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),l=ts(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+cg(e),c=-r.scrollTop;return zo(o||n).direction==="rtl"&&(a+=ts(n.clientWidth,o?o.clientWidth:0)-s),{width:s,height:l,x:a,y:c}}function dg(e){var t=zo(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function G$(e){return["html","body","#document"].indexOf(So(e))>=0?e.ownerDocument.body:Mr(e)&&dg(e)?e:G$(Xd(e))}function ta(e,t){var n;t===void 0&&(t=[]);var r=G$(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),s=ao(r),l=o?[s].concat(s.visualViewport||[],dg(r)?r:[]):r,a=t.concat(l);return o?a:a.concat(ta(Xd(l)))}function Hh(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function $Y(e){var t=ol(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function Z1(e,t){return t===H$?Hh(EY(e)):nl(t)?$Y(t):Hh(xY(Ci(e)))}function CY(e){var t=ta(Xd(e)),n=["absolute","fixed"].indexOf(zo(e).position)>=0,r=n&&Mr(e)?za(e):e;return nl(r)?t.filter(function(o){return nl(o)&&W$(o,r)&&So(o)!=="body"}):[]}function TY(e,t,n){var r=t==="clippingParents"?CY(e):[].concat(t),o=[].concat(r,[n]),s=o[0],l=o.reduce(function(a,c){var f=Z1(e,c);return a.top=ts(f.top,a.top),a.right=qc(f.right,a.right),a.bottom=qc(f.bottom,a.bottom),a.left=ts(f.left,a.left),a},Z1(e,s));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function X$(e){var t=e.reference,n=e.element,r=e.placement,o=r?bo(r):null,s=r?il(r):null,l=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,c;switch(o){case Qn:c={x:l,y:t.y-n.height};break;case Br:c={x:l,y:t.y+t.height};break;case Ur:c={x:t.x+t.width,y:a};break;case er:c={x:t.x-n.width,y:a};break;default:c={x:t.x,y:t.y}}var f=o?ag(o):null;if(f!=null){var p=f==="y"?"height":"width";switch(s){case tl:c[f]=c[f]-(t[p]/2-n[p]/2);break;case wa:c[f]=c[f]+(t[p]/2-n[p]/2);break}}return c}function Sa(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,s=n.boundary,l=s===void 0?KJ:s,a=n.rootBoundary,c=a===void 0?H$:a,f=n.elementContext,p=f===void 0?Ml:f,h=n.altBoundary,v=h===void 0?!1:h,y=n.padding,_=y===void 0?0:y,w=q$(typeof _!="number"?_:K$(_,Wa)),I=p===Ml?GJ:Ml,O=e.rects.popper,S=e.elements[v?I:p],E=TY(nl(S)?S:S.contextElement||Ci(e.elements.popper),l,c),T=ol(e.elements.reference),$=X$({reference:T,element:O,strategy:"absolute",placement:o}),P=Hh(Object.assign({},O,$)),k=p===Ml?P:T,A={top:E.top-k.top+w.top,bottom:k.bottom-E.bottom+w.bottom,left:E.left-k.left+w.left,right:k.right-E.right+w.right},H=e.modifiersData.offset;if(p===Ml&&H){var D=H[o];Object.keys(A).forEach(function(F){var z=[Ur,Br].indexOf(F)>=0?1:-1,K=[Qn,Br].indexOf(F)>=0?"y":"x";A[F]+=D[K]*z})}return A}function OY(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,s=n.rootBoundary,l=n.padding,a=n.flipVariations,c=n.allowedAutoPlacements,f=c===void 0?V$:c,p=il(r),h=p?a?G1:G1.filter(function(_){return il(_)===p}):Wa,v=h.filter(function(_){return f.indexOf(_)>=0});v.length===0&&(v=h);var y=v.reduce(function(_,w){return _[w]=Sa(e,{placement:w,boundary:o,rootBoundary:s,padding:l})[bo(w)],_},{});return Object.keys(y).sort(function(_,w){return y[_]-y[w]})}function AY(e){if(bo(e)===ig)return[];var t=hc(e);return[Y1(e),t,Y1(t)]}function IY(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,s=o===void 0?!0:o,l=n.altAxis,a=l===void 0?!0:l,c=n.fallbackPlacements,f=n.padding,p=n.boundary,h=n.rootBoundary,v=n.altBoundary,y=n.flipVariations,_=y===void 0?!0:y,w=n.allowedAutoPlacements,I=t.options.placement,O=bo(I),S=O===I,E=c||(S||!_?[hc(I)]:AY(I)),T=[I].concat(E).reduce(function(ae,fe){return ae.concat(bo(fe)===ig?OY(t,{placement:fe,boundary:p,rootBoundary:h,padding:f,flipVariations:_,allowedAutoPlacements:w}):fe)},[]),$=t.rects.reference,P=t.rects.popper,k=new Map,A=!0,H=T[0],D=0;D<T.length;D++){var F=T[D],z=bo(F),K=il(F)===tl,te=[Qn,Br].indexOf(z)>=0,we=te?"width":"height",be=Sa(t,{placement:F,boundary:p,rootBoundary:h,altBoundary:v,padding:f}),Oe=te?K?Ur:er:K?Br:Qn;$[we]>P[we]&&(Oe=hc(Oe));var Ae=hc(Oe),Ye=[];if(s&&Ye.push(be[z]<=0),a&&Ye.push(be[Oe]<=0,be[Ae]<=0),Ye.every(function(ae){return ae})){H=F,A=!1;break}k.set(F,Ye)}if(A)for(var ft=_?3:1,Le=function(fe){var Se=T.find(function(He){var De=k.get(He);if(De)return De.slice(0,fe).every(function(tt){return tt})});if(Se)return H=Se,"break"},Ke=ft;Ke>0;Ke--){var Q=Le(Ke);if(Q==="break")break}t.placement!==H&&(t.modifiersData[r]._skip=!0,t.placement=H,t.reset=!0)}}var PY={name:"flip",enabled:!0,phase:"main",fn:IY,requiresIfExists:["offset"],data:{_skip:!1}};function Q1(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function e_(e){return[Qn,Ur,Br,er].some(function(t){return e[t]>=0})}function kY(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,s=t.modifiersData.preventOverflow,l=Sa(t,{elementContext:"reference"}),a=Sa(t,{altBoundary:!0}),c=Q1(l,r),f=Q1(a,o,s),p=e_(c),h=e_(f);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:f,isReferenceHidden:p,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":h})}var RY={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:kY};function LY(e,t,n){var r=bo(e),o=[er,Qn].indexOf(r)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,l=s[0],a=s[1];return l=l||0,a=(a||0)*o,[er,Ur].indexOf(r)>=0?{x:a,y:l}:{x:l,y:a}}function NY(e){var t=e.state,n=e.options,r=e.name,o=n.offset,s=o===void 0?[0,0]:o,l=V$.reduce(function(p,h){return p[h]=LY(h,t.rects,s),p},{}),a=l[t.placement],c=a.x,f=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=f),t.modifiersData[r]=l}var MY={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:NY};function DY(e){var t=e.state,n=e.name;t.modifiersData[n]=X$({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var FY={name:"popperOffsets",enabled:!0,phase:"read",fn:DY,data:{}};function BY(e){return e==="x"?"y":"x"}function UY(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,s=o===void 0?!0:o,l=n.altAxis,a=l===void 0?!1:l,c=n.boundary,f=n.rootBoundary,p=n.altBoundary,h=n.padding,v=n.tether,y=v===void 0?!0:v,_=n.tetherOffset,w=_===void 0?0:_,I=Sa(t,{boundary:c,rootBoundary:f,padding:h,altBoundary:p}),O=bo(t.placement),S=il(t.placement),E=!S,T=ag(O),$=BY(T),P=t.modifiersData.popperOffsets,k=t.rects.reference,A=t.rects.popper,H=typeof w=="function"?w(Object.assign({},t.rects,{placement:t.placement})):w,D=typeof H=="number"?{mainAxis:H,altAxis:H}:Object.assign({mainAxis:0,altAxis:0},H),F=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,z={x:0,y:0};if(!!P){if(s){var K,te=T==="y"?Qn:er,we=T==="y"?Br:Ur,be=T==="y"?"height":"width",Oe=P[T],Ae=Oe+I[te],Ye=Oe-I[we],ft=y?-A[be]/2:0,Le=S===tl?k[be]:A[be],Ke=S===tl?-A[be]:-k[be],Q=t.elements.arrow,ae=y&&Q?lg(Q):{width:0,height:0},fe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:z$(),Se=fe[te],He=fe[we],De=ea(0,k[be],ae[be]),tt=E?k[be]/2-ft-De-Se-D.mainAxis:Le-De-Se-D.mainAxis,vn=E?-k[be]/2+ft+De+He+D.mainAxis:Ke+De+He+D.mainAxis,ln=t.elements.arrow&&za(t.elements.arrow),L=ln?T==="y"?ln.clientTop||0:ln.clientLeft||0:0,B=(K=F==null?void 0:F[T])!=null?K:0,Z=Oe+tt-B-L,le=Oe+vn-B,ie=ea(y?qc(Ae,Z):Ae,Oe,y?ts(Ye,le):Ye);P[T]=ie,z[T]=ie-Oe}if(a){var pe,Ee=T==="x"?Qn:er,he=T==="x"?Br:Ur,me=P[$],se=$==="y"?"height":"width",Re=me+I[Ee],Pe=me-I[he],Me=[Qn,er].indexOf(O)!==-1,je=(pe=F==null?void 0:F[$])!=null?pe:0,rt=Me?Re:me-k[se]-A[se]-je+D.altAxis,mt=Me?me+k[se]+A[se]-je-D.altAxis:Pe,ct=y&&Me?cY(rt,me,mt):ea(y?rt:Re,me,y?mt:Pe);P[$]=ct,z[$]=ct-me}t.modifiersData[r]=z}}var jY={name:"preventOverflow",enabled:!0,phase:"main",fn:UY,requiresIfExists:["offset"]};function HY(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function VY(e){return e===ao(e)||!Mr(e)?ug(e):HY(e)}function WY(e){var t=e.getBoundingClientRect(),n=rl(t.width)/e.offsetWidth||1,r=rl(t.height)/e.offsetHeight||1;return n!==1||r!==1}function zY(e,t,n){n===void 0&&(n=!1);var r=Mr(t),o=Mr(t)&&WY(t),s=Ci(t),l=ol(e,o),a={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((So(t)!=="body"||dg(s))&&(a=VY(t)),Mr(t)?(c=ol(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):s&&(c.x=cg(s))),{x:l.left+a.scrollLeft-c.x,y:l.top+a.scrollTop-c.y,width:l.width,height:l.height}}function qY(e){var t=new Map,n=new Set,r=[];e.forEach(function(s){t.set(s.name,s)});function o(s){n.add(s.name);var l=[].concat(s.requires||[],s.requiresIfExists||[]);l.forEach(function(a){if(!n.has(a)){var c=t.get(a);c&&o(c)}}),r.push(s)}return e.forEach(function(s){n.has(s.name)||o(s)}),r}function KY(e){var t=qY(e);return oY.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function GY(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function XY(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var t_={placement:"bottom",modifiers:[],strategy:"absolute"};function n_(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function JY(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,s=o===void 0?t_:o;return function(a,c,f){f===void 0&&(f=s);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},t_,s),modifiersData:{},elements:{reference:a,popper:c},attributes:{},styles:{}},h=[],v=!1,y={state:p,setOptions:function(O){var S=typeof O=="function"?O(p.options):O;w(),p.options=Object.assign({},s,p.options,S),p.scrollParents={reference:nl(a)?ta(a):a.contextElement?ta(a.contextElement):[],popper:ta(c)};var E=KY(XY([].concat(r,p.options.modifiers)));return p.orderedModifiers=E.filter(function(T){return T.enabled}),_(),y.update()},forceUpdate:function(){if(!v){var O=p.elements,S=O.reference,E=O.popper;if(!!n_(S,E)){p.rects={reference:zY(S,za(E),p.options.strategy==="fixed"),popper:lg(E)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(D){return p.modifiersData[D.name]=Object.assign({},D.data)});for(var T=0;T<p.orderedModifiers.length;T++){if(p.reset===!0){p.reset=!1,T=-1;continue}var $=p.orderedModifiers[T],P=$.fn,k=$.options,A=k===void 0?{}:k,H=$.name;typeof P=="function"&&(p=P({state:p,options:A,name:H,instance:y})||p)}}}},update:GY(function(){return new Promise(function(I){y.forceUpdate(),I(p)})}),destroy:function(){w(),v=!0}};if(!n_(a,c))return y;y.setOptions(f).then(function(I){!v&&f.onFirstUpdate&&f.onFirstUpdate(I)});function _(){p.orderedModifiers.forEach(function(I){var O=I.name,S=I.options,E=S===void 0?{}:S,T=I.effect;if(typeof T=="function"){var $=T({state:p,name:O,instance:y,options:E}),P=function(){};h.push($||P)}})}function w(){h.forEach(function(I){return I()}),h=[]}return y}}var YY=[_Y,FY,yY,lY,MY,PY,jY,hY,RY],ZY=JY({defaultModifiers:YY});function QY(e){let t=_e(null),n=_e(null);return gt(()=>{jt(r=>{if(!n.value||!t.value)return;let o=n.value.el||n.value,s=t.value.el||t.value;if(!(s instanceof HTMLElement)||!(o instanceof HTMLElement))return;let{destroy:l}=ZY(s,o,e);r(l)})}),[t,n]}const eZ=ve({data(){return{query:"",data:""}},emits:["addContributor","createContributor","close"],setup(){let[e,t]=QY({placement:"bottom-end",strategy:"fixed",modifiers:[{name:"offset",options:{offset:[0,10]}},{name:"sameWidth",enabled:!0,fn:({state:n})=>{n.styles.popper.width=`${n.rects.reference.width}px`},phase:"beforeWrite",requires:["computeStyles"]}]});return{dispatch:it().dispatch,state:yt({contributors:G.contributors.contributors,episodeContributions:G.episode.contributions}),trigger:e,container:t}},components:{CheckIcon:q9,XIcon:Da,ChevronDownIcon:k2,Combobox:Z2,ComboboxButton:Q2,ComboboxInput:e$,ComboboxLabel:NU,ComboboxOption:n$,ComboboxOptions:t$,UserCircleIcon:F2,Image},computed:{filteredContributors(){return[...this.query.length>0?[{id:null,avatar_url:null,realname:`${this.__("Create: ","podlove-podcasting-plugin-for-wordpress")}${this.query}`}]:[],...this.state.contributors.filter(e=>!this.state.episodeContributions.some(t=>t.contributor_id&&t.contributor_id.toString()===e.id.toString())).filter(e=>!this.query||((e==null?void 0:e.realname)||"").toUpperCase().includes(this.query.toUpperCase()))]}},watch:{data(e){e.id?this.$emit("addContributor",e):this.$emit("createContributor",this.query)}},methods:{filterContributors(e){this.query=Y.exports.get(e,["target","value"],"")},close(){this.$emit("close")}}}),tZ={class:"block hover:bg-gray-50"},nZ={class:"flex items-center px-4 py-4 sm:px-6"},rZ={class:"flex min-w-0 flex-1 items-center"},oZ={class:"min-w-0 flex-1 px-4 md:grid md:grid-cols-2 md:gap-4"},iZ={class:"relative mt-2 max-w-sm"},sZ={ref:"container"},lZ={class:"flex items-center"},aZ=["src","onError"],uZ={class:"flex space-x-2 justify-end"};function cZ(e,t,n,r,o,s){const l=X("ComboboxLabel"),a=X("ComboboxInput"),c=X("ChevronDownIcon"),f=X("ComboboxButton"),p=X("UserCircleIcon"),h=X("CheckIcon"),v=X("ComboboxOption"),y=X("ComboboxOptions"),_=X("Combobox"),w=X("x-icon");return N(),V("div",tZ,[g("div",nZ,[g("div",rZ,[g("div",oZ,[q(_,{as:"div",modelValue:e.data,"onUpdate:modelValue":t[1]||(t[1]=I=>e.data=I)},{default:ye(()=>[q(l,{class:"block text-sm font-medium leading-6 text-gray-900"},{default:ye(()=>[Xe(U(e.__("Select Contributor","podlove-podcasting-plugin-for-wordpress")),1)]),_:1}),g("div",iZ,[q(a,{ref:"trigger",class:"w-full rounded-md border-0 bg-white py-1.5 pl-3 pr-12 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6",onChange:t[0]||(t[0]=I=>e.filterContributors(I)),displayValue:()=>e.query},null,8,["displayValue"]),q(f,{class:"absolute inset-y-0 right-0 flex items-center rounded-r-md px-2 focus:outline-none"},{default:ye(()=>[q(c,{class:"h-5 w-5 text-gray-400","aria-hidden":"true"})]),_:1})]),g("div",sZ,[e.filteredContributors.length>0?(N(),bt(y,{key:0,class:"absolute max-w-sm z-50 mt-1 max-h-56 w-full overflow-auto rounded-md bg-white py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm"},{default:ye(()=>[(N(!0),V(Fe,null,Mt(e.filteredContributors,I=>(N(),bt(v,{key:I.id||"create",value:I,as:"template"},{default:ye(({active:O,selected:S})=>[g("li",{class:wt(["relative cursor-default select-none py-2 pl-3 pr-9",O?"bg-indigo-600 text-white":"text-gray-900"])},[g("div",lZ,[I.avatar_url?(N(),V("img",{key:0,src:I.avatar_url,alt:"",class:"h-6 w-6 flex-shrink-0 rounded-full",onError:E=>I.avatar_url=""},null,40,aZ)):qe("",!0),I.avatar_url?qe("",!0):(N(),bt(p,{key:1,class:"h-6 w-6 flex-shrink-0 rounded-full text-gray-500"})),g("span",{class:wt(["ml-3 truncate",S&&"font-semibold"])},U(I.realname),3)]),S?(N(),V("span",{key:0,class:wt(["absolute inset-y-0 right-0 flex items-center pr-4",O?"text-white":"text-indigo-600"])},[q(h,{class:"h-5 w-5","aria-hidden":"true"})],2)):qe("",!0)],2)]),_:2},1032,["value"]))),128))]),_:1})):qe("",!0)],512)]),_:1},8,["modelValue"])])]),g("div",uZ,[g("button",{class:"text-red-600",onClick:t[2]||(t[2]=I=>e.close())},[q(w,{class:"w-5 h-5"})])])])])}var dZ=Be(eZ,[["render",cZ]]);const fZ=ve({components:{Module:Nn,PodloveButton:Vn,PlusSmIcon:Lv,Contribution:qJ,AddContribution:dZ},data(){return{addContributorInput:!1}},setup(){return{dispatch:it().dispatch,state:yt({contributions:G.episode.contributions,roles:G.contributors.roles,groups:G.contributors.groups})}},created(){this.dispatch(ix())},methods:{showAddContributor(){this.addContributorInput=!0},addContributor(e){this.addContributorInput=!1,this.dispatch(zE(e))},createContributor(e){this.addContributorInput=!1,this.dispatch(hD(e))},closeAddContributor(){this.addContributorInput=!1}}}),pZ={role:"list",class:"divide-y divide-gray-200"},hZ={key:0,class:"mb-0"},mZ={class:"py-5 px-6 border-t border-gray-200"};function vZ(e,t,n,r,o,s){const l=X("Contribution"),a=X("AddContribution"),c=X("plus-sm-icon"),f=X("podlove-button"),p=X("module");return N(),bt(p,{name:"chapters",title:e.__("Contributors","podlove-podcasting-plugin-for-wordpress"),class:"overflow-hidden"},{actions:ye(()=>[]),default:ye(()=>[g("ul",pZ,[(N(!0),V(Fe,null,Mt(e.state.contributions,(h,v)=>(N(),V("li",{class:"mb-0",key:h.position},[h!=null&&h.contributor_id?(N(),bt(l,{key:0,data:h,first:v===0,last:v===e.state.contributions.length-1},null,8,["data","first","last"])):qe("",!0)]))),128)),e.addContributorInput?(N(),V("li",hZ,[q(a,{onAddContributor:t[0]||(t[0]=h=>e.addContributor(h)),onCreateContributor:t[1]||(t[1]=h=>e.createContributor(h)),onClose:t[2]||(t[2]=h=>e.closeAddContributor())})])):qe("",!0)]),g("div",mZ,[q(f,{variant:"primary",onClick:t[3]||(t[3]=h=>e.showAddContributor())},{default:ye(()=>[q(c,{class:"-ml-0.5 mr-2 h-4 w-4","aria-hidden":"true"}),Xe(" "+U(e.__("Add Contributor","podlove-podcasting-plugin-for-wordpress")),1)]),_:1})])]),_:1},8,["title"])}var gZ=Be(fZ,[["render",vZ]]);const yZ=ve({setup(){return{state:yt({slug:G.episode.slug,baseUri:G.settings.mediaFileBaseUri}),dispatch:it().dispatch}},methods:{updateSlug(e){this.dispatch($t({prop:"slug",value:e.target.value})),this.dispatch(Dx())}},computed:{assetPrefix(){var n;let e=(n=this.state.baseUri)==null?void 0:n.replace(/https?:\/\//i,"").trim();if(!e)return"";const t=e.trim().replace(/\/+$/g,"").lastIndexOf("/");return e.length>30&&t>-1&&(e=e.slice(t)),e}}}),bZ={for:"filename_slug",class:"block text-sm font-medium leading-6 text-gray-900 sm:pt-1.5"},_Z={class:"mt-2 sm:col-span-2 sm:mt-0"},wZ={class:"flex rounded-md shadow-sm ring-1 ring-inset ring-gray-300 focus-within:ring-2 focus-within:ring-inset focus-within:ring-indigo-600"},SZ={class:"flex select-none items-center pl-3 text-gray-500 sm:text-sm"},EZ=["value"],xZ=g("span",{class:"flex slect-none items-center text-gray-500 sm:text-sm pr-2"},".ext",-1);function $Z(e,t,n,r,o,s){return N(),V(Fe,null,[g("label",bZ,U(e.__("Filename / Slug","podlove-podcasting-plugin-for-wordpress")),1),g("div",_Z,[g("div",wZ,[g("span",SZ,U(e.assetPrefix),1),g("input",{type:"text",name:"filename_slug",id:"filename_slug",autocomplete:"filename_slug",class:"block flex-1 border-0 bg-transparent py-1.5 pl-1 text-gray-900 placeholder:text-gray-400 focus:ring-0 sm:text-sm sm:leading-6",placeholder:"",value:e.state.slug,onInput:t[0]||(t[0]=l=>e.updateSlug(l))},null,40,EZ),xZ])])],64)}var CZ=Be(yZ,[["render",$Z]]);const TZ=ve({components:{PodloveButton:Vn,UploadIcon:R2},setup(){return{state:yt({}),dispatch:it().dispatch}},methods:{uploadIntent(){this.dispatch(b7())}},computed:{}}),OZ={for:"mediafile_upload",class:"block text-sm font-medium leading-6 text-gray-900 sm:pt-1.5"},AZ={class:"mt-2 sm:col-span-2 sm:mt-0"};function IZ(e,t,n,r,o,s){const l=X("upload-icon"),a=X("podlove-button");return N(),V(Fe,null,[g("label",OZ,U(e.__("Upload","podlove-podcasting-plugin-for-wordpress")),1),g("div",AZ,[g("div",null,[q(a,{variant:"primary",onClick:e.uploadIntent,class:"ml-1"},{default:ye(()=>[q(l,{class:"-ml-0.5 mr-2 h-4 w-4","aria-hidden":"true"}),Xe(" "+U(e.__("Upload Media File","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["onClick"])])])],64)}var PZ=Be(TZ,[["render",IZ]]);const kZ={},RZ={class:"text-center"},LZ=g("svg",{class:"mx-auto h-12 w-12 text-gray-400",fill:"none",viewBox:"0 0 24 24",strokeWidth:"{1.5}",stroke:"currentColor"},[g("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.42 15.17L17.25 21A2.652 2.652 0 0021 17.25l-5.877-5.877M11.42 15.17l2.496-3.03c.317-.384.74-.626 1.208-.766M11.42 15.17l-4.655 5.653a2.548 2.548 0 11-3.586-3.586l6.837-5.63m5.108-.233c.55-.164 1.163-.188 1.743-.14a4.5 4.5 0 004.486-6.336l-3.276 3.277a3.004 3.004 0 01-2.25-2.25l3.276-3.276a4.5 4.5 0 00-6.336 4.486c.091 1.076-.071 2.264-.904 2.95l-.102.085m-1.745 1.437L5.909 7.5H4.5L2.25 3.75l1.5-1.5L7.5 4.5v1.409l4.26 4.26m-1.745 1.437l1.745-1.437m6.615 8.206L15.75 15.75M4.867 19.125h.008v.008h-.008v-.008z"})],-1),NZ={class:"mt-2 text-sm font-semibold text-gray-900"},MZ={class:"mt-1 text-sm text-gray-500"};function DZ(e,t){return N(),V("div",RZ,[LZ,g("h3",NZ,U(e.__("No Assets","podlove-podcasting-plugin-for-wordpress")),1),g("p",MZ,U(e.__("Please go to Podlove \u2192 Episode Assets and define at least one audio asset.","podlove-podcasting-plugin-for-wordpress")),1)])}var FZ=Be(kZ,[["render",DZ]]);const BZ=ve({components:{CheckCircleIcon:qq,XCircleIcon:j$,CloudIcon:L2,AssetsEmptyState:FZ},setup(){return{state:yt({files:G.mediafiles.files,duration:G.episode.duration}),dispatch:it().dispatch}},methods:{handleToggle(e){const t=e.target,n=t.checked,r=parseInt(t.value);n?this.dispatch(v7(r)):this.dispatch(g7(r))},handleVerify(e){this.dispatch(y7(e))},fileSize(e){const t=e.size;if(!t||t<1)return"???";var n=t/1024;if(n<500)return n.toFixed(2)+" kB";var r=n/1024;return r.toFixed(2)+" MB"}},computed:{files(){return this.state.files},hasFiles(){return this.files.length>0},duration(){const e="--:--:--.---";if(!this.state.duration)return e;const t=Nt.fromString(this.state.duration);return t.totalMs===0?e:t.pretty}}}),UZ={for:"assets",class:"block text-sm font-medium leading-6 text-gray-900 sm:pt-1.5"},jZ={class:"mt-2 sm:col-span-2 sm:mt-0"},HZ={key:0},VZ={class:"min-w-full table-fixed divide-y divide-gray-300"},WZ={scope:"col",class:"py-3.5 pl-3 text-left text-sm font-semibold text-gray-900"},zZ={scope:"col",class:"py-3.5 pr-3 text-left text-sm font-semibold text-gray-900"},qZ={scope:"col",class:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900"},KZ=g("th",{scope:"col",class:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900"},null,-1),GZ={class:"divide-y divide-gray-200 bg-white"},XZ={class:"relative px-7 sm:w-12 sm:px-6"},JZ={key:0,class:"inline-flex items-center animate-pulse text-green-600 absolute left-[-14px] top-1/2 -mt-2.5"},YZ=["value","checked"],ZZ={class:"text-sm"},QZ={class:"whitespace-nowrap px-3 py-4 text-sm text-gray-500"},eQ={class:"flex flex-col"},tQ=["href"],nQ={class:"flex"},rQ={key:3},oQ={class:"whitespace-nowrap px-3 py-4 text-sm text-gray-500"},iQ=["onClick"],sQ={class:"mt-3 text-sm leading-6 text-gray-600"};function lQ(e,t,n,r,o,s){const l=X("CloudIcon"),a=X("CheckCircleIcon"),c=X("XCircleIcon"),f=X("AssetsEmptyState");return N(),V(Fe,null,[g("label",UZ,U(e.__("Assets","podlove-podcasting-plugin-for-wordpress")),1),g("div",jZ,[e.hasFiles?(N(),V("div",HZ,[g("table",VZ,[g("thead",null,[g("tr",null,[g("th",WZ,U(e.__("Enable","podlove-podcasting-plugin-for-wordpress")),1),g("th",zZ,U(e.__("Asset","podlove-podcasting-plugin-for-wordpress")),1),g("th",qZ,U(e.__("File","podlove-podcasting-plugin-for-wordpress")),1),KZ])]),g("tbody",GZ,[(N(!0),V(Fe,null,Mt(e.files,p=>(N(),V("tr",{key:p.asset_id,class:wt({"opacity-50":!p.enable})},[g("td",XZ,[p.is_verifying?(N(),V("div",JZ,[q(l,{class:"h-5 w-5","aria-hidden":"true"})])):qe("",!0),g("input",{type:"checkbox",class:"absolute left-4 top-1/2 -mt-2 h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-600",value:p.asset_id,checked:p.enable,onClick:t[0]||(t[0]=(...h)=>e.handleToggle&&e.handleToggle(...h))},null,8,YZ)]),g("td",ZZ,U(p.asset),1),g("td",QZ,[g("div",eQ,[g("a",{href:p.url,target:"_blank",class:"text-gray-700 underline"},U(p.url),9,tQ),g("span",nQ,[p.size>0?(N(),bt(a,{key:0,class:"mr-1.5 h-5 w-5 flex-shrink-0 text-green-400","aria-hidden":"true"})):(N(),bt(c,{key:1,class:wt(["mr-1.5 h-5 w-5 flex-shrink-0",{"text-gray-400":!p.enable,"text-red-400":p.enable}]),"aria-hidden":"true"},null,8,["class"])),p.size?(N(),V("span",rQ,U(e.fileSize(p)),1)):(N(),V("span",{key:2,class:wt({"text-gray-400":!p.enable,"text-red-400":p.enable})},U(e.__("File not found","podlove-podcasting-plugin-for-wordpress")),3))])])]),g("td",oQ,[g("button",{type:"button",class:"inline-flex items-center rounded-md bg-white px-2.5 py-1.5 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50 disabled:cursor-not-allowed disabled:opacity-30 disabled:hover:bg-white",onClick:()=>e.handleVerify(p.asset_id)},U(e.__("Verify","podlove-podcasting-plugin-for-wordpress")),9,iQ)])],2))),128))])]),g("p",sQ,U(e.__("Duration:","podlove-podcasting-plugin-for-wordpress"))+" "+U(e.duration),1)])):(N(),bt(f,{key:1}))])],64)}var aQ=Be(BZ,[["render",lQ]]);const uQ=ve({components:{Module:Nn,RefreshIcon:I2,MediaSlug:CZ,MediaUpload:PZ,AssetsTable:aQ},setup(){return{state:yt({isInitializing:G.mediafiles.isInitializing,modules:G.settings.modules}),dispatch:it().dispatch}},computed:{isInitializing(){return this.state.isInitializing},isMediaUploadEnabled(){var e;return(e=this.state.modules)==null?void 0:e.includes("wordpress_file_upload")}},created(){this.dispatch(p7())}}),cQ={key:0,class:"w-full flex justify-center m-12 text-center"},dQ={class:"animate-pulse mt-4 flex space-x-4"},fQ={key:1},pQ={class:"px-6"},hQ={class:"mt-10 sm:mt-0 space-y-8 border-b border-gray-900/10 pb-12 sm:space-y-0 sm:divide-y sm:divide-gray-900/10 sm:pb-0"},mQ={class:"sm:grid sm:grid-cols-[175px_auto_auto] sm:items-start sm:gap-4 sm:py-6"},vQ={key:0,class:"sm:grid sm:grid-cols-[175px_auto_auto] sm:items-start sm:gap-4 sm:py-6"},gQ={class:"sm:grid sm:grid-cols-[175px_auto_auto] sm:items-start sm:gap-4 sm:py-6"};function yQ(e,t,n,r,o,s){const l=X("RefreshIcon"),a=X("MediaSlug"),c=X("MediaUpload"),f=X("AssetsTable"),p=X("module");return N(),bt(p,{name:"mediafiles",title:"Media Files"},{default:ye(()=>[g("div",null,[e.isInitializing?(N(),V("div",cQ,[g("div",dQ,[q(l,{class:"animate-spin h-5 w-5 mr-3"}),Xe(" "+U(e.__("Loading...","podlove-podcasting-plugin-for-wordpress")),1)])])):(N(),V("div",fQ,[g("div",pQ,[g("div",hQ,[g("div",mQ,[q(a)]),e.isMediaUploadEnabled?(N(),V("div",vQ,[q(c)])):qe("",!0),g("div",gQ,[q(f)])])])]))])]),_:1})}var bQ=Be(uQ,[["render",yQ]]);const _Q=ve({name:"PodloveCombobox",components:{Combobox:Z2,ComboboxButton:Q2,ComboboxInput:e$,ComboboxOption:n$,ComboboxOptions:t$,CheckIcon:Kd,SelectorIcon:Gd},props:{options:Array,selectValues:Array,placeholder:{type:String,default:"Select an option"},multiple:{type:Boolean,default:!1},error:String},computed:{label(){var t;const e=(t=this.selectValues)==null?void 0:t.length;return e===0?"No option is selected":e===1?"One option is selected":(e==null?void 0:e.toString())+" options are selected"},filterOptions(){var e;return this.query===""?this.options:(e=this.options)==null?void 0:e.filter(t=>t.title.toLowerCase().includes(this.query.toLowerCase()))}},data(){return{query:""}},methods:{selectItem(e){this.$emit("update",e)},onChange(e){this.query=e.target.value},resetQuery(){this.query=""}}}),wQ={class:"relative mt-1 focus-visible:border-indigo-500 focus:ring-indigo-500"},SQ={class:"shadow-sm flex sm:text-sm rounded-md absolute inset-y-0 right-10 items-center pr-2 pointer-events-none"},EQ={key:0,class:"cursor-default select-none relative py-2 px-4 text-gray-700"},xQ={key:0,class:"flex absolute inset-y-0 left-0 items-center pl-3 text-amber-600"},$Q={key:0,class:"text-xs text-red-400 mt-1"};function CQ(e,t,n,r,o,s){const l=X("ComboboxInput"),a=X("SelectorIcon"),c=X("ComboboxButton"),f=X("CheckIcon"),p=X("ComboboxOption"),h=X("ComboboxOptions"),v=X("Combobox",!0);return N(),bt(v,{"model-value":e.selectValues,multiple:e.multiple,"onUpdate:modelValue":t[0]||(t[0]=y=>e.selectItem(y))},{default:ye(()=>[g("div",wQ,[q(c,{class:"w-full flex items-center",onClick:e.resetQuery},{default:ye(()=>[q(l,{onChange:e.onChange,class:"relative py-2 pl-3 w-full bg-white rounded-lg shadow-md cursor-default sm:text-sm border-gray-300"},null,8,["onChange"]),g("div",SQ,U(e.label),1),q(a,{class:"w-5 h-5 text-gray-400","aria-hidden":"true"})]),_:1},8,["onClick"]),q(Ei,{"leave-active-class":`148 `;F$(dz);B$.__scopeId="data-v-5784ed69";var fz=(()=>{const e=B$;return e.install=t=>{t.component("Popper",e)},e})();const pz=ve({components:{Popper:fz},props:{direction:{type:String,default:"left"}},data(){return{visible:!0}},computed:{caretClasses(){switch(this.direction){case"left":return"left-0 -ml-2 bottom-0 top-0 h-full"}}},methods:{show(){this.visible=!0},hide(){this.visible=!1}}}),hz={class:"bg-white p-4 rounded shadow-lg max-w-md"};function mz(e,t,n,r,o,s){const l=X("Popper");return N(),V("div",null,[q(l,{hover:"",openDelay:"200",closeDelay:"100",arrow:!0},{content:ye(()=>[g("div",hz,[gr(e.$slots,"content")])]),default:ye(()=>[gr(e.$slots,"trigger")]),_:3})])}var vz=Be(pz,[["render",mz]]);const gz=ve({components:{PodloveButton:Vn,Tooltip:vz},setup(){return{dispatch:it().dispatch}},methods:{simulateImportClick(){this.$refs.import.click()},importChapters(){const e=this.$refs.import;if(!!e)try{const t=new FileReader;t.onload=n=>{this.dispatch(nD(n.target.result))},t.readAsText(Y.exports.get(e,["files",0],""))(this.$refs.importForm).reset()}catch{}}}}),yz={class:"text-xs"},bz={class:"text-gray-600 leading-3 font-semibold mb-2"},_z={class:"text-gray-500 ml-1"},wz={class:"mb-1"},Sz={class:"text-blue-500 underline",href:"https://podlove.org/simple-chapters/",target:"_blank"},Ez=g("code",null,".psc",-1),xz={class:"mb-1"},$z={class:"text-blue-500 underline",href:"http://www.audacityteam.org",target:"_blank"},Cz={class:"mb-1"},Tz={class:"text-blue-500 underline",href:"https://hindenburg.com",target:"_blank"},Oz=g("code",null,".txt",-1);function Az(e,t,n,r,o,s){const l=X("podlove-button"),a=X("tooltip");return N(),bt(a,null,{trigger:ye(()=>[q(l,{variant:"secondary",size:"small",onClick:t[0]||(t[0]=c=>e.simulateImportClick())},{default:ye(()=>[Ge(U(e.__("Import","podlove-podcasting-plugin-for-wordpress")),1)]),_:1}),g("input",{ref:"import",type:"file",onChange:t[1]||(t[1]=(...c)=>e.importChapters&&e.importChapters(...c)),class:"hidden"},null,544)]),content:ye(()=>[g("div",yz,[g("p",bz,U(e.__("Accepts:","podlove-podcasting-plugin-for-wordpress")),1),g("ul",_z,[g("li",wz,[g("a",Sz,U(e.__("Podlove Simple Chapters","podlove-podcasting-plugin-for-wordpress")),1),Ge(" ("),Ez,Ge("), ")]),g("li",xz,[g("a",$z,U(e.__("Audacity","podlove-podcasting-plugin-for-wordpress")),1),Ge(" "+U(e.__("Track Labels","podlove-podcasting-plugin-for-wordpress"))+", ",1)]),g("li",Cz,[g("a",Tz,U(e.__("Hindenburg","podlove-podcasting-plugin-for-wordpress")),1),Ge(" "+U(e.__("project files and MP4Chaps","podlove-podcasting-plugin-for-wordpress"))+" (",1),Oz,Ge(") ")])])])]),_:1})}var Iz=Be(gz,[["render",Az]]);const Pz=ve({components:{Popover:b$,PopoverButton:hj,PopoverPanel:mj}});function kz(e,t,n,r,o,s){const l=X("PopoverButton"),a=X("PopoverPanel"),c=X("Popover",!0);return N(),bt(c,{class:"relative"},{default:ye(()=>[q(l,null,{default:ye(()=>[gr(e.$slots,"trigger")]),_:3}),q(Ei,{"enter-active-class":"transition duration-200 ease-out","enter-from-class":"translate-y-1 opacity-0","enter-to-class":"translate-y-0 opacity-100","leave-active-class":"transition duration-150 ease-in","leave-from-class":"translate-y-0 opacity-100","leave-to-class":"translate-y-1 opacity-0"},{default:ye(()=>[q(a,{class:"absolute"},{default:ye(()=>[gr(e.$slots,"content",{class:"overflow-hidden"})]),_:3})]),_:3})]),_:3})}var U$=Be(Pz,[["render",kz]]);const Rz=ve({components:{Popover:U$,PodloveButton:Vn},setup(){return{dispatch:it().dispatch}},methods:{download(e){this.dispatch(oD(e))}}}),Lz={class:"bg-white p-7 -translate-x-full z-10 mt-3 transform ml-16 rounded-lg shadow-lg"},Nz={class:"text-sm font-medium text-gray-900 truncate w-full mr-2"},Mz=g("div",{class:"text-sm text-gray-500"},".psc",-1),Dz={class:"text-sm font-medium text-gray-900 truncate w-full mr-2"},Fz=g("div",{class:"text-sm text-gray-500"},".txt",-1);function Bz(e,t,n,r,o,s){const l=X("podlove-button"),a=X("popover");return N(),V("div",null,[q(a,null,{trigger:ye(()=>[q(l,{variant:"secondary",size:"small"},{default:ye(()=>[Ge(U(e.__("Export","podlove-podcasting-plugin-for-wordpress")),1)]),_:1})]),content:ye(()=>[g("div",Lz,[g("a",{onClick:t[0]||(t[0]=c=>e.download("psc")),class:"flex items-center p-2 -m-3 transition duration-150 ease-in-out rounded-lg cursor-pointer bg-gray-100 hover:bg-indigo-100 focus:outline-none focus-visible:ring focus-visible:ring-indigo-500 focus-visible:ring-opacity-50 mb-4"},[g("div",Nz,U(e.__("Podlove Simple Chapters","podlove-podcasting-plugin-for-wordpress")),1),Mz]),g("a",{onClick:t[1]||(t[1]=c=>e.download("mp4")),class:"flex items-center p-2 -m-3 transition duration-150 ease-in-out rounded-lg cursor-pointer bg-gray-100 hover:bg-indigo-100 focus:outline-none focus-visible:ring focus-visible:ring-indigo-500 focus-visible:ring-opacity-50"},[g("div",Dz,U(e.__("MP4Chaps","podlove-podcasting-plugin-for-wordpress")),1),Fz])])]),_:1})])}var Uz=Be(Rz,[["render",Bz]]);const jz=ve({components:{Module:Nn,TabsContainer:O$,Tab:T$,ChaptersForm:ZV,ChaptersImport:Iz,ChaptersExport:Uz},setup(){return{dispatch:it().dispatch}},created(){this.dispatch(ZM())}});function Hz(e,t,n,r,o,s){const l=X("chapters-import"),a=X("chapters-export"),c=X("chapters-form"),f=X("module");return N(),bt(f,{name:"chapters",title:e.__("Chapter Marks","podlove-podcasting-plugin-for-wordpress")},{actions:ye(()=>[q(l,{class:"mr-1"}),q(a)]),default:ye(()=>[q(c)]),_:1},8,["title"])}var Vz=Be(jz,[["render",Hz]]);const Wz={},zz={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},qz=g("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-6-3a2 2 0 11-4 0 2 2 0 014 0zm-2 4a5 5 0 00-4.546 2.916A5.986 5.986 0 0010 16a5.986 5.986 0 004.546-2.084A5 5 0 0010 11z","clip-rule":"evenodd"},null,-1),Kz=[qz];function Gz(e,t){return N(),V("svg",zz,Kz)}var Xz=Be(Wz,[["render",Gz]]);const Jz=ve({props:{outlet:{type:String,default:"header"}},components:{PodloveButton:Vn,UploadIcon:R2,DocumentTextIcon:N2},setup(){return{dispatch:it().dispatch}},methods:{simulateImportClick(){this.$refs.import.click()},importTranscriptFromAsset(){this.dispatch(TD())},handleImport(){const e=this.$refs.import;if(!!e)try{const t=new FileReader;t.onload=n=>{this.dispatch(CD(n.target.result))},t.readAsText(Y.exports.get(e,["files",0],""))(this.$refs.importForm).reset()}catch{}}}}),Yz={ref:"importForm",class:"cursor-pointer"},Zz={class:"grid grid-cols-2"};function Qz(e,t,n,r,o,s){const l=X("upload-icon"),a=X("podlove-button");return N(),V("form",Yz,[g("div",Zz,[g("div",null,[q(a,{variant:"primary",onClick:e.simulateImportClick,class:"ml-1"},{default:ye(()=>[q(l,{class:"-ml-0.5 mr-2 h-4 w-4","aria-hidden":"true"}),Ge(" "+U(e.__("Import Transcript","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["onClick"]),g("input",{ref:"import",accept:"text/vtt",type:"file",onChange:t[0]||(t[0]=(...c)=>e.handleImport&&e.handleImport(...c)),class:"hidden",key:""},null,544)]),g("div",null,[q(a,{variant:"primary",onClick:e.importTranscriptFromAsset,class:"ml-1"},{default:ye(()=>[Ge(U(e.__("Get From Asset","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["onClick"])])])],512)}var eq=Be(Jz,[["render",Qz]]);const tq=ve({components:{Avatar:Xz,TranscriptsImport:eq,DocumentTextIcon:N2},setup(){return{state:yt({transcripts:G.transcripts.list,contributors:G.contributors.contributors,voices:G.transcripts.voices})}},computed:{voices(){return this.state.contributors.reduce((e,t)=>{var r;const n=(r=this.state.voices.find(o=>o.contributor===t.id))==null?void 0:r.voice;return{...e,[n]:{id:t.id,name:t.realname,avatar:t.avatar_url}}},{})},transcripts(){return this.state.transcripts.reduce((e,t)=>{const n=Y.exports.last(e);return n&&n.voiceId===t.voice?[...Y.exports.dropRight(e),{...n,voiceId:t.voice,content:[...n.content,{text:t.text,start:t.start_ms,end:t.end_ms}]}]:[...e,{voiceId:t.voice,content:[{text:t.text,start:t.start_ms,end:t.end_ms}]}]},[]).map(e=>({...e,voice:Y.exports.get(this.voices,[e.voiceId],{name:e.voiceId})}))}},methods:{formatTime(e){return new Nt(e).prettyShort}}}),nq={key:0,class:"h-96 p-2 overflow-x-auto"},rq={class:"mr-2 w-12 text-gray-400 select-none"},oq=["src"],iq={class:"w-full font-light text-sm mr-2"},sq={class:"block font-bold"},lq={class:"flex justify-between"},aq={class:"ml-1 font-mono select-none"},uq={key:1,class:"text-center h-96 flex items-center justify-center flex-col"},cq={class:"mt-2 text-sm font-medium text-gray-900"},dq={class:"mt-1 text-sm text-gray-500"},fq={class:"mt-6"};function pq(e,t,n,r,o,s){const l=X("avatar"),a=X("document-text-icon"),c=X("transcripts-import");return e.transcripts.length>0?(N(),V("div",nq,[(N(!0),V(Fe,null,Mt(e.transcripts,(f,p)=>{var h,v,y;return N(),V("div",{class:"flex mb-2",key:`transcript-${p}`},[g("div",rq,[(h=f==null?void 0:f.voice)!=null&&h.avatar?(N(),V("img",{key:0,class:"w-12 h-12 rounded",src:(v=f==null?void 0:f.voice)==null?void 0:v.avatar},null,8,oq)):(N(),bt(l,{key:1}))]),g("div",iq,[g("span",sq,U((y=f==null?void 0:f.voice)==null?void 0:y.name),1),g("span",lq,[g("span",null,[(N(!0),V(Fe,null,Mt(f.content,(_,w)=>(N(),V("span",{class:"mr-1",key:`transcript-${p}-content-${w}`},U(_.text),1))),128))]),g("span",aq,U(e.formatTime(f.content[0].start)),1)])])])}),128))])):(N(),V("div",uq,[q(a,{class:"mx-auto h-12 w-12 text-gray-400"}),g("h3",cq,U(e.__("No transcript yet","podlove-podcasting-plugin-for-wordpress")),1),g("p",dq,U(e.__("Get started by importing a transcript.","podlove-podcasting-plugin-for-wordpress")),1),g("div",fq,[q(c,{outlet:"content",class:"mr-1"})])]))}var hq=Be(tq,[["render",pq]]);const mq=ve({components:{PodloveButton:Vn,Modal:ja},data(){return{modalOpen:!1}},setup(){return{state:yt({contributors:G.contributors.contributors,voices:G.transcripts.voices}),dispatch:it().dispatch}},computed:{sortedContributors(){return this.state.contributors.sort((e,t)=>{const n=e.publicname||e.realname||e.nickname,r=t.publicname||t.realname||t.nickname;return n.localeCompare(r)})}},methods:{updateContributor(e,t){const n=t.target.value;this.dispatch($D({voice:e,contributor:n}))},openVoices(){this.modalOpen=!0},closeVoices(){this.modalOpen=!1}}}),vq={key:0},gq={class:"border-gray-200 border-b pb-2 px-4 -mx-6 mb-4"},yq={class:"text-lg leading-6 font-medium text-gray-900"},bq={for:"country",class:"block text-sm font-medium text-gray-700"},_q=["value","onChange"],wq=g("option",{value:"0"},null,-1),Sq=["value"];function Eq(e,t,n,r,o,s){const l=X("podlove-button"),a=X("modal");return e.state.voices.length>0?(N(),V("div",vq,[q(l,{variant:"secondary",size:"small",onClick:t[0]||(t[0]=c=>e.openVoices())},{default:ye(()=>[Ge(U(e.__("Voices","podlove-podcasting-plugin-for-wordpress")),1)]),_:1}),q(a,{open:e.modalOpen,onClose:t[1]||(t[1]=c=>e.closeVoices())},{default:ye(()=>[g("div",gq,[g("h3",yq,U(e.__("Transcript Voices","podlove-podcasting-plugin-for-wordpress")),1)]),(N(!0),V(Fe,null,Mt(e.state.voices,(c,f)=>(N(),V("div",{key:`voice-${f}`,class:wt(["w-full py-2 px-4",{"bg-white":f%2}])},[g("label",bq,U(c.voice),1),g("select",{value:c.contributor,class:"mt-1 block w-full py-2 px-3 border border-gray-300 bg-white rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm",onChange:p=>e.updateContributor(c.voice,p)},[wq,(N(!0),V(Fe,null,Mt(e.sortedContributors,(p,h)=>(N(),V("option",{key:`voice-${f}-contributor-${h}`,value:p.id},U(p.publicname||p.realname||p.nickname),9,Sq))),128))],40,_q)],2))),128))]),_:1},8,["open"])])):qe("",!0)}var xq=Be(mq,[["render",Eq]]);const $q=[{title:"Export webvtt",type:"webvtt",file:"transcript.webvtt",ending:".webvtt"},{title:"Export json (flat)",type:"json",file:"transcript.json",ending:".json"},{title:"Export json (grouped)",type:"json_grouped",file:"transcript.json",ending:".json"},{title:"Export xml",type:"xml",file:"transcript.xml",ending:".xml"}],Cq=ve({components:{Popover:U$,PodloveButton:Vn},setup(){return{state:yt({post:G.post.id,baseUrl:G.runtime.baseUrl,transcripts:G.transcripts.list})}},data(){return{exportTypes:$q}}}),Tq={key:0},Oq={class:"bg-white p-7 pb-1 -translate-x-full z-10 mt-3 transform ml-16 rounded-lg shadow-lg"},Aq=["download","href"],Iq={class:"text-sm font-medium text-gray-900 truncate w-full mr-2"},Pq={class:"text-sm text-gray-500"};function kq(e,t,n,r,o,s){const l=X("podlove-button"),a=X("popover");return e.state.transcripts.length>0?(N(),V("div",Tq,[q(a,null,{trigger:ye(()=>[q(l,{variant:"secondary",size:"small",tabindex:"-1"},{default:ye(()=>[Ge(U(e.__("Export","podlove-podcasting-plugin-for-wordpress")),1)]),_:1})]),content:ye(()=>[g("div",Oq,[(N(!0),V(Fe,null,Mt(e.exportTypes,(c,f)=>(N(),V("a",{key:`type-${f}`,download:c.file,href:`${e.state.baseUrl}/?p=${e.state.post}&podlove_transcript=${c.type}`,class:"flex items-center p-2 -m-3 transition duration-150 ease-in-out rounded-lg cursor-pointer bg-gray-100 hover:bg-indigo-100 focus:outline-none focus-visible:ring focus-visible:ring-indigo-500 focus-visible:ring-opacity-50 mb-4"},[g("div",Iq,U(c.title),1),g("div",Pq,U(c.ending),1)],8,Aq))),128))])]),_:1})])):qe("",!0)}var Rq=Be(Cq,[["render",kq]]);const Lq=ve({components:{PodloveButton:Vn,Modal:ja,ExclamationIcon:M2,DialogTitle:oj},data(){return{modalVisible:!1}},setup(){return{state:yt({transcripts:G.transcripts.list}),dispatch:it().dispatch}},methods:{deleteTranscripts(){this.closeModal(),this.dispatch(OD())},openModal(){this.modalVisible=!0},closeModal(){this.modalVisible=!1}}}),Nq={key:0},Mq={class:"sm:flex sm:items-start"},Dq={class:"mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-red-100 sm:mx-0 sm:h-10 sm:w-10"},Fq={class:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left"},Bq={class:"mt-2"},Uq={class:"text-sm text-gray-500"},jq={class:"mt-5 sm:mt-4 sm:flex sm:flex-row-reverse"};function Hq(e,t,n,r,o,s){const l=X("podlove-button"),a=X("exclamation-icon"),c=X("DialogTitle"),f=X("modal");return e.state.transcripts.length>0?(N(),V("div",Nq,[q(l,{variant:"secondary",size:"small",onClick:t[0]||(t[0]=p=>e.openModal())},{default:ye(()=>[Ge("Clear")]),_:1}),q(f,{open:e.modalVisible,onClose:t[3]||(t[3]=p=>e.closeModal())},{default:ye(()=>[g("div",Mq,[g("div",Dq,[q(a,{class:"h-6 w-6 text-red-600","aria-hidden":"true"})]),g("div",Fq,[q(c,{as:"h3",class:"text-lg leading-6 font-medium text-gray-900"},{default:ye(()=>[Ge(" Clear Transcript ")]),_:1}),g("div",Bq,[g("p",Uq,U(e.__("Are you sure you want to clear your transcript?","podlove-podcasting-plugin-for-wordpress")),1)])])]),g("div",jq,[q(l,{class:"sm:ml-3 sm:w-auto sm:text-sm",variant:"danger",onClick:t[1]||(t[1]=p=>e.deleteTranscripts())},{default:ye(()=>[Ge(U(e.__("Clear","podlove-podcasting-plugin-for-wordpress")),1)]),_:1}),q(l,{class:"sm:ml-3 sm:w-auto sm:text-sm",onClick:t[2]||(t[2]=p=>e.closeModal())},{default:ye(()=>[Ge(U(e.__("Cancel","podlove-podcasting-plugin-for-wordpress")),1)]),_:1})])]),_:1},8,["open"])])):qe("",!0)}var Vq=Be(Lq,[["render",Hq]]);const Wq=ve({components:{Module:Nn,TabsContainer:O$,Tab:T$,TranscriptsList:hq,TranscriptsVoices:xq,TranscriptsExport:Rq,TranscriptsDelete:Vq},setup(){return{dispatch:it().dispatch}},created(){this.dispatch(ix()),this.dispatch(SD())}});function zq(e,t,n,r,o,s){const l=X("transcripts-voices"),a=X("transcripts-export"),c=X("transcripts-delete"),f=X("transcripts-list"),p=X("module");return N(),bt(p,{name:"transcript",title:e.__("Transcripts","podlove-podcasting-plugin-for-wordpress")},{actions:ye(()=>[q(l,{class:"mr-1"}),q(a,{class:"mr-1"}),q(c)]),default:ye(()=>[q(f)]),_:1},8,["title"])}var qq=Be(Wq,[["render",zq]]);function Kq(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"fill-rule":"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12Zm13.36-1.814a.75.75 0 1 0-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 0 0-1.06 1.06l2.25 2.25a.75.75 0 0 0 1.14-.094l3.75-5.25Z","clip-rule":"evenodd"})])}function Kd(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"fill-rule":"evenodd",d:"M19.916 4.626a.75.75 0 0 1 .208 1.04l-9 13.5a.75.75 0 0 1-1.154.114l-6-6a.75.75 0 0 1 1.06-1.06l5.353 5.353 8.493-12.74a.75.75 0 0 1 1.04-.207Z","clip-rule":"evenodd"})])}function Gd(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"fill-rule":"evenodd",d:"M11.47 4.72a.75.75 0 0 1 1.06 0l3.75 3.75a.75.75 0 0 1-1.06 1.06L12 6.31 8.78 9.53a.75.75 0 0 1-1.06-1.06l3.75-3.75Zm-3.75 9.75a.75.75 0 0 1 1.06 0L12 17.69l3.22-3.22a.75.75 0 1 1 1.06 1.06l-3.75 3.75a.75.75 0 0 1-1.06 0l-3.75-3.75a.75.75 0 0 1 0-1.06Z","clip-rule":"evenodd"})])}function j$(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"fill-rule":"evenodd",d:"M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25Zm-1.72 6.97a.75.75 0 1 0-1.06 1.06L10.94 12l-1.72 1.72a.75.75 0 1 0 1.06 1.06L12 13.06l1.72 1.72a.75.75 0 1 0 1.06-1.06L13.06 12l1.72-1.72a.75.75 0 1 0-1.06-1.06L12 10.94l-1.72-1.72Z","clip-rule":"evenodd"})])}const Gq=ve({props:["file_key","track_index"],components:{Listbox:Vv,ListboxButton:zv,ListboxLabel:Wv,ListboxOption:Kv,ListboxOptions:qv,CheckIcon:Kd,SelectorIcon:Gd,DocumentCheckIcon:Y9},setup(){return{state:yt({services:G.auphonic.incomingServices,serviceFiles:G.auphonic.serviceFiles,fileSelections:G.auphonic.fileSelections,episodeSlug:G.episode.slug}),dispatch:it().dispatch}},methods:{set(e,t){this.dispatch(Cx({key:this.file_key,prop:e,value:t})),Number.isInteger(this.track_index)&&this.dispatch(Ox({track:{},index:this.track_index}))},handleFileSelection(e){this.set("fileSelection",e.target.value)},handleUrlUpdate(e){this.set("urlValue",e.target.value)},handleFileUploadSelection(e){const t=e.target.files;t?this.set("fileValue",t[0]):this.set("fileValue",null)},handleServiceSelection(e){this.set("currentServiceSelection",e.target.value)},setEpisodeSlug(e){this.dispatch($t({prop:"slug",value:e})),this.dispatch(Dx())}},computed:{services(){return this.state.services},currentService(){return this.state.services.find(e=>e.uuid===this.currentServiceSelection)},serviceFiles(){return Y.exports.get(this.state,["serviceFiles",this.currentServiceSelection],null)},fileSelection(){return this.state.fileSelections[this.file_key]},filenameSelectedForUpload(){var e,t;return(t=(e=this.fileSelection)==null?void 0:e.fileValue)==null?void 0:t.name},currentServiceSelection(){var e;return(e=this.fileSelection)==null?void 0:e.currentServiceSelection},urlFieldValue(){return this.fileSelection.urlValue},externalFileFieldValue(){return this.fileSelection.fileSelection},slugCandidate(){if(this.currentServiceSelection=="url"&&this.urlFieldValue)return this.urlFieldValue.split("/").reverse()[0].split(".")[0];if(this.currentServiceSelection=="file"){const e=this.filenameSelectedForUpload;return e?e.split(".")[0]:null}return null},shouldSuggestSlug(){return this.slugCandidate!=null&&this.slugCandidate!=this.state.episodeSlug}}}),Xq={class:"flex flex-col gap-2"},Jq=g("label",{class:"block md:hidden text-sm font-medium text-gray-700"},"Upload Method",-1),Yq=["value","selected"],Zq={key:0},Qq={key:0},eK=["for"],tK={key:0,class:"sm:mt-1"},nK={class:"text-sm font-normal"},rK={key:1,class:"sm:mt-1"},oK=["id"],iK={key:1},sK=["for"],lK={class:"mt-1"},aK=["id","value"],uK={key:2},cK={key:0},dK=["for"],fK=["id","value"],pK=["value"],hK={key:1},mK={key:3,class:"mt-3"},vK={class:"font-mono"};function gK(e,t,n,r,o,s){const l=X("DocumentCheckIcon");return N(),V("div",null,[g("div",Xq,[g("div",null,[Jq,g("select",{onChange:t[0]||(t[0]=(...a)=>e.handleServiceSelection&&e.handleServiceSelection(...a)),class:"mt-1 block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm rounded-md"},[(N(!0),V(Fe,null,Mt(e.services,a=>(N(),V("option",{key:a.uuid,value:a.uuid,selected:a.uuid==e.currentServiceSelection},U(a.type)+": "+U(a.display_name),9,Yq))),128))],32)]),e.currentService?(N(),V("div",Zq,[e.currentService.type==="file"?(N(),V("div",Qq,[g("label",{for:e.file_key+"file-upload",class:"relative cursor-pointer bg-white rounded-md font-medium text-indigo-600 hover:text-indigo-500 focus-within:outline-none focus-within:ring-2 focus-within:ring-offset-2 focus-within:ring-indigo-500"},[e.filenameSelectedForUpload?(N(),V("div",tK,[Ge(" Upload "),g("span",nK,U(e.filenameSelectedForUpload),1)])):(N(),V("div",rK,U(e.__("Upload a file","podlove-podcasting-plugin-for-wordpress")),1)),g("input",{id:e.file_key+"file-upload",name:"file-upload",type:"file",class:"sr-only",onInput:t[1]||(t[1]=(...a)=>e.handleFileUploadSelection&&e.handleFileUploadSelection(...a))},null,40,oK)],8,eK)])):e.currentService.type==="url"?(N(),V("div",iK,[g("label",{for:e.file_key+"audio_source_url",class:"block text-sm font-medium text-gray-700"},"File URL",8,sK),g("div",lK,[g("input",{type:"url",name:"audio_source_url",id:e.file_key+"audio_source_url",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",placeholder:"https://example.com/audio.flac",value:e.urlFieldValue,onInput:t[2]||(t[2]=(...a)=>e.handleUrlUpdate&&e.handleUrlUpdate(...a))},null,40,aK)])])):(N(),V("div",uK,[e.serviceFiles!==null?(N(),V("div",cK,[g("label",{for:e.file_key+"external_file",class:"block text-sm font-medium text-gray-700"},"File",8,dK),g("select",{name:"audio_external_file",id:e.file_key+"external_file",class:"mt-1 block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm rounded-md",value:e.externalFileFieldValue,onChange:t[3]||(t[3]=(...a)=>e.handleFileSelection&&e.handleFileSelection(...a))},[(N(!0),V(Fe,null,Mt(e.serviceFiles,a=>(N(),V("option",{key:a,value:a,d:""},U(a),9,pK))),128))],40,fK)])):(N(),V("div",hK,"..."))])),e.shouldSuggestSlug?(N(),V("div",mK,[g("button",{onClick:t[4]||(t[4]=()=>e.setEpisodeSlug(e.slugCandidate)),type:"button",class:"relative text-xs inline-flex items-center rounded-md bg-white px-3 py-2 font-medium text-gray-500 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50"},[q(l,{class:"-ml-0.5 mr-1.5 h-4 w-4 text-gray-400","aria-hidden":"true"}),g("span",null,[Ge(U(e.__("Use as Episode Slug:","podlove-podcasting-plugin-for-wordpress"))+" ",1),g("span",vK,U(e.slugCandidate),1)])])])):qe("",!0)])):qe("",!0)])])}var yK=Be(Gq,[["render",gK]]);const bK=ve({components:{ClipboardCheckIcon:X9,ExternalLinkIcon:P2,ExclamationIcon:M2},setup(){return{state:yt({production:G.auphonic.production,title:G.episode.title,subtitle:G.episode.subtitle,summary:G.episode.summary,duration:G.episode.duration,slug:G.episode.slug,license_name:G.episode.license_name,license_url:G.episode.license_url,chapters:G.chapters.list}),dispatch:it().dispatch}},methods:{isDifferent(e){switch(e.title){case"chapters":const t=e.here.map(r=>r.start+(r.title||"")+(r.href||"")+(r.image||"")).join(";"),n=e.there.map(r=>Math.round((r.start_output_sec||0)*1e3)+(r.title||"")+(r.url||"")+(r.image||"")).join(";");return t!=n;default:return e.there!=e.here}},renderEntryPreview(e){switch(e.title){case"chapters":return e.there.map(n=>n.start+" "+n.title).join(" / ");default:return e.there}},importMeta(e,t){switch(e){case"chapters":const r=t.map(o=>({start:Math.round((o.start_output_sec||0)*1e3),title:o.title||"",href:o.url||"",image:""}));this.dispatch(LE(r));break;default:this.dispatch($t({prop:e,value:t}));break}},importAllMeta(){this.visibleEntries.forEach(e=>{this.importMeta(e.title,e.there)})}},computed:{production(){return this.state.production||{}},entries(){const e=this.state.production,t=this.state;return[{key:1,title:"title",here:t.title,there:e.metadata.title},{key:2,title:"subtitle",here:t.subtitle,there:e.metadata.subtitle},{key:3,title:"summary",here:t.summary,there:e.metadata.summary},{key:5,title:"license_name",here:t.license_name,there:e.metadata.license},{key:6,title:"license_url",here:t.license_url,there:e.metadata.license_url},{key:9,title:"slug",here:t.slug,there:e.output_basename},{key:10,title:"chapters",here:t.chapters,there:e.chapters}]},visibleEntries(){return this.entries.filter(e=>e.there&&this.isDifferent(e))}}}),_K={key:0,class:"rounded-md bg-green-50 p-4"},wK={class:"flex"},SK={class:"flex-shrink-0"},EK={class:"ml-3"},xK={class:"text-sm font-medium text-green-800"},$K={class:"mt-2 text-sm text-green-700"},CK=["href"],TK={key:1,class:"rounded-md bg-yellow-50 p-4 mt-4"},OK={class:"flex"},AK={class:"flex-shrink-0"},IK={class:"ml-3"},PK={class:"text-sm font-medium text-yellow-800"},kK={class:"mt-2 text-sm text-yellow-700"},RK={key:2,class:"mt-4 overflow-hidden rounded-lg bg-white shadow"},LK={class:"p-6"},NK=g("h3",{class:"text-lg font-medium leading-6 text-gray-900"},"Import Metadata",-1),MK={class:"mt-1 text-sm text-gray-500"},DK={class:"mt-6 flow-root"},FK={role:"list",class:"-my-5 divide-y divide-gray-200"},BK={class:"flex items-center space-x-4"},UK={class:"min-w-0 flex-1"},jK={class:"truncate text-sm text-gray-500"},HK={class:"truncate text-sm font-medium text-gray-900"},VK=["onClick"],WK={class:"hidden sm:inline"},zK={class:"mt-6"},qK={key:3,class:"mt-4 overflow-hidden rounded-lg bg-white shadow"},KK={class:"p-6"};function GK(e,t,n,r,o,s){const l=X("ClipboardCheckIcon"),a=X("ExternalLinkIcon"),c=X("ExclamationIcon");return N(),V("div",null,[e.production.status==3?(N(),V("div",_K,[g("div",wK,[g("div",SK,[q(l,{class:"h-5 w-5 text-green-400","aria-hidden":"true"})]),g("div",EK,[g("h3",xK,U(e.__("Done","podlove-podcasting-plugin-for-wordpress")),1),g("div",$K,[g("p",null,[g("a",{href:e.production.status_page,target:"_blank",class:"underline inline-flex items-center"},[Ge(U(e.__("View Results","podlove-podcasting-plugin-for-wordpress"))+" ",1),q(a,{class:"ml-0.5 mr-1 h-4 w-4","aria-hidden":"true"})],8,CK),Ge(" "+U(e.__("on the Auphonic status page.","podlove-podcasting-plugin-for-wordpress")),1)])])])])])):qe("",!0),e.production.warning_message?(N(),V("div",TK,[g("div",OK,[g("div",AK,[q(c,{class:"h-5 w-5 text-yellow-400","aria-hidden":"true"})]),g("div",IK,[g("h3",PK,U(e.__("Warning","podlove-podcasting-plugin-for-wordpress")),1),g("div",kK,[g("p",null,U(e.production.warning_message),1)])])])])):qe("",!0),e.visibleEntries.length>0?(N(),V("div",RK,[g("div",LK,[g("div",null,[NK,g("p",MK,U(e.__("These values from your Auphonic Production differ from your local values:","podlove-podcasting-plugin-for-wordpress")),1)]),g("div",DK,[g("ul",FK,[(N(!0),V(Fe,null,Mt(e.visibleEntries,f=>(N(),V("li",{key:f.key,class:"py-4"},[g("div",BK,[g("div",UK,[g("p",jK,[g("em",null,U(f.title),1),Ge(" "+U(e.__("in the Auphonic Production is:","podlove-podcasting-plugin-for-wordpress")),1)]),g("p",HK,U(e.renderEntryPreview(f)),1)]),g("div",null,[g("button",{onClick:Sc(p=>e.importMeta(f.title,f.there),["prevent"]),class:"inline-flex items-center rounded-full border border-gray-300 bg-white px-2.5 py-0.5 text-sm font-medium leading-5 text-gray-700 shadow-sm hover:bg-gray-50","aria-label":"Import from Auphonic"},[Ge(U(e.__("Import","podlove-podcasting-plugin-for-wordpress")),1),g("span",WK,"\xA0"+U(e.__("from Auphonic","podlove-podcasting-plugin-for-wordpress")),1)],8,VK)])])]))),128))])]),g("div",zK,[g("button",{onClick:t[0]||(t[0]=Sc((...f)=>e.importAllMeta&&e.importAllMeta(...f),["prevent"])),class:"flex w-full items-center justify-center rounded-md border border-gray-300 bg-white px-4 py-2 text-sm font-medium text-gray-700 shadow-sm hover:bg-gray-50"},U(e.__("Import all from Auphonic","podlove-podcasting-plugin-for-wordpress")),1)])])])):(N(),V("div",qK,[g("div",KK,U(e.__("Nothing to import","podlove-podcasting-plugin-for-wordpress")),1)]))])}var XK=Be(bK,[["render",GK]]);const JK=ve({components:{Switch:bj,SwitchGroup:yj,SwitchLabel:_j},data(){return{enabled:!1}},methods:{handleUpdate(e){this.enabled=e,this.dispatch(Ax(e))}},setup(){return{state:yt({publishWhenDone:G.auphonic.publishWhenDone}),dispatch:it().dispatch}},mounted(){this.enabled=this.state.publishWhenDone}}),YK={class:"text-sm text-gray-900"};function ZK(e,t,n,r,o,s){const l=X("Switch"),a=X("SwitchLabel"),c=X("SwitchGroup");return N(),V("div",null,[q(c,{as:"div",class:"flex items-center"},{default:ye(()=>[q(l,{modelValue:e.enabled,"onUpdate:modelValue":e.handleUpdate,class:wt([e.enabled?"bg-indigo-600":"bg-gray-200","relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2"])},{default:ye(()=>[g("span",{"aria-hidden":"true",class:wt([e.enabled?"translate-x-5":"translate-x-0","pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out"])},null,2)]),_:1},8,["modelValue","onUpdate:modelValue","class"]),q(a,{as:"span",class:"ml-3"},{default:ye(()=>[g("span",YK,U(e.__("Publish Episode when Production is done","podlove-podcasting-plugin-for-wordpress")),1)]),_:1})]),_:1})])}var QK=Be(JK,[["render",ZK]]);const eG=ve({props:{className:{type:String,default:""}}}),tG=g("g",{transform:"translate(-12.73496,-48.464)"},[g("path",{d:"m 28.623,223.469 c -3.277,-0.007 -7.473,0.836 -12.588,2.528 l 1.46,6.491 c 3.476,-1.302 6.689,-1.95 9.638,-1.944 3.472,0.008 5.797,0.63 6.975,1.868 1.176,1.237 1.762,3.569 1.754,6.998 l -7.373,-0.017 c -5.047,-0.011 -8.933,1.031 -11.655,3.125 -2.725,2.092 -4.091,5.007 -4.099,8.739 -0.008,3.334 1.198,6.07 3.618,8.207 2.419,2.14 5.661,3.212 9.726,3.221 4.389,0.01 8.063,-1.161 11.017,-3.512 l 1.075,2.655 7.471,0.017 0.052,-23.199 c 0.011,-4.848 -1.243,-8.587 -3.759,-11.214 -2.519,-2.628 -6.956,-3.949 -13.312,-3.963 z m 7.6,30 c -0.33,0.195 -0.92,0.505 -1.772,0.929 -0.853,0.424 -1.738,0.734 -2.656,0.929 -0.92,0.193 -2.033,0.29 -3.343,0.287 -1.966,-0.004 -3.506,-0.443 -4.618,-1.314 -1.113,-0.873 -1.666,-2.08 -1.663,-3.618 0.007,-3.079 2.467,-4.611 7.382,-4.601 4.916,0.011 6.685,0.006 6.685,0.006 l -0.015,7.382 z m 41.315,-29.3 9.241,0.021 -0.084,37.845 -6.489,-0.014 -1.173,-2.754 c -2.494,1.173 -5.743,3.524 -12.295,3.51 -5.701,-0.013 -13.761,-0.336 -13.723,-17.135 l 0.048,-21.527 9.339,0.021 -0.051,22.806 c -0.013,5.661 2.719,7.772 6.863,7.781 2.883,0.007 5.638,-0.74 8.262,-2.243 l 0.062,-28.311 z m 44.305,1.377 c -2.751,-1.251 -5.502,-1.88 -8.254,-1.887 -3.801,-0.008 -7.539,1 -11.212,3.023 l -1.076,-2.46 -6.586,-0.015 -0.111,49.679 9.436,0.021 0.029,-13.013 c 1.505,0.659 4.534,1.975 8.154,1.983 6.096,0.014 10.833,-1.728 14.215,-5.226 3.385,-3.498 5.083,-8.296 5.097,-14.391 0.011,-4.719 -0.914,-8.538 -2.776,-11.458 -1.863,-2.918 -4.166,-5.005 -6.916,-6.256 z m -3.061,27.173 c -2.066,1.863 -4.772,2.792 -8.114,2.784 -2.425,-0.005 -4.587,-0.633 -6.484,-1.883 l 0.047,-21.135 c 2.098,-0.912 4.36,-1.367 6.786,-1.362 7.274,0.017 10.902,4.219 10.884,12.608 -0.01,4.129 -1.049,7.124 -3.119,8.988 z m 53.325,-12.021 -0.048,21.43 -9.437,-0.021 0.051,-22.708 c 0.005,-2.293 -0.45,-4.145 -1.363,-5.557 -0.917,-1.411 -2.717,-2.12 -5.402,-2.125 -2.427,-0.005 -5.408,0.676 -8.949,2.044 l -0.063,28.311 -9.437,-0.021 0.111,-49.608 9.436,0.021 -0.03,13.827 c 3.935,-1.628 7.736,-2.441 11.406,-2.433 5.636,0.012 13.762,0.659 13.725,16.84 z m 92.456,-16.111 9.437,0.021 -0.084,37.747 -9.437,-0.021 0.084,-37.747 z m 46.696,29.103 2.643,6.102 c -1.97,1.11 -4.085,1.99 -6.347,2.639 -2.263,0.649 -4.969,0.972 -8.113,0.965 -5.898,-0.013 -10.629,-1.825 -14.192,-5.438 -3.564,-3.611 -5.337,-8.368 -5.324,-14.266 0.014,-6.095 1.793,-10.891 5.339,-14.389 3.547,-3.497 8.302,-5.241 14.266,-5.228 3.014,0.006 5.586,0.307 7.715,0.901 2.127,0.595 4.371,1.453 6.729,2.571 l -2.67,6.187 c -2.356,-0.792 -4.208,-1.369 -5.548,-1.732 -1.345,-0.363 -2.9,-0.547 -4.67,-0.551 -3.735,-0.008 -6.572,1.1 -8.509,3.323 -1.938,2.224 -2.912,5.203 -2.921,8.938 -0.008,3.605 1,6.54 3.028,8.805 2.024,2.266 4.809,3.403 8.347,3.412 1.77,0.004 3.326,-0.173 4.673,-0.531 1.339,-0.356 3.193,-0.926 5.554,-1.708 z m -53.79,-12.801 -0.048,21.43 -9.338,-0.021 0.05,-22.609 c 0.016,-7.021 -4.21,-7.677 -6.766,-7.683 -2.295,-0.005 -5.344,0.676 -9.146,2.044 l -0.062,28.212 -9.339,-0.021 0.084,-37.747 6.683,0.015 1.175,2.755 c 4.462,-2.152 8.818,-3.225 13.081,-3.215 4.405,0.01 13.663,0.163 13.626,16.84 z m -59.894,-17.042 c -5.898,-0.013 -10.62,1.731 -14.167,5.227 -3.545,3.499 -5.327,8.294 -5.341,14.389 -0.009,3.801 0.784,7.178 2.385,10.131 1.6,2.953 3.854,5.268 6.769,6.946 2.913,1.676 6.301,2.52 10.169,2.528 3.866,0.009 7.274,-0.82 10.228,-2.483 2.955,-1.665 5.234,-3.969 6.848,-6.915 1.612,-2.946 2.423,-6.351 2.432,-10.218 0.013,-5.963 -1.73,-10.719 -5.228,-14.265 -3.5,-3.546 -8.195,-5.327 -14.095,-5.34 z m 6.866,28.62 c -1.809,2.095 -4.152,3.137 -7.035,3.131 -2.753,-0.006 -5.047,-1.076 -6.874,-3.21 -1.831,-2.133 -2.741,-5.102 -2.732,-8.903 0.008,-3.866 0.949,-6.879 2.821,-9.037 1.872,-2.159 4.15,-3.235 6.84,-3.229 2.752,0.006 5.059,1.077 6.922,3.21 1.862,2.134 2.791,5.167 2.783,9.099 -0.009,3.868 -0.918,6.848 -2.725,8.939 z"}),g("path",{d:"M 53.464,198.261 H 13.619 c 0,-0.001 0,-0.004 0,-0.006 0,-82.727 67.065,-149.791 149.788,-149.791 82.729,0 149.794,67.063 149.794,149.791 0,0.002 0,0.005 0,0.006 h -39.844 c 0.006,-0.435 0.017,-0.869 0.017,-1.306 0,-60.731 -49.234,-109.963 -109.967,-109.963 -60.727,0 -109.959,49.232 -109.959,109.963 -10e-4,0.437 0.011,0.871 0.016,1.306 z m 189.059,0 c 0.019,-0.705 0.053,-1.407 0.053,-2.117 0,-43.723 -35.444,-79.167 -79.167,-79.167 -43.722,0 -79.166,35.445 -79.166,79.167 0,0.71 0.035,1.412 0.054,2.117 h 39.67 c -0.085,-1.047 -0.14,-2.103 -0.14,-3.172 0,-21.861 17.721,-39.584 39.582,-39.584 21.862,0 39.583,17.723 39.583,39.584 0,1.069 -0.055,2.125 -0.139,3.172 h 39.67 z"})],-1),nG=[tG];function rG(e,t,n,r,o,s){return N(),V("svg",{class:wt(e.className),viewBox:"0 0 301.24005 225.44299",stroke:"currentColor",fill:"currentColor","aria-hidden":"true"},nG,2)}var og=Be(eG,[["render",rG]]);const oG=ve({components:{PodloveButton:Vn,FileChooser:yK,CogIcon:J9,ChevronDownIcon:k2,ChevronRightIcon:K9,XIcon:Da,DatabaseIcon:G9,ExternalLinkIcon:P2,CloudIcon:L2,TrashIcon:Z9,ArrowDownIcon:A2,ArrowDownTrayIcon:H9,AuphonicLogo:og,DonePage:XK,WebhookToggle:QK},data(){return{algorithmSettings:{},showImportPage:!1}},setup(){return{state:yt({production:G.auphonic.production,tracks:G.auphonic.tracks,isSaving:G.auphonic.isSaving}),dispatch:it().dispatch}},methods:{saveProduction(){this.dispatch(xx({uuid:this.production.uuid}))},startProduction(){this.dispatch(wh({uuid:this.production.uuid}))},deselectProduction(){this.dispatch(Sx())},addTrack(){this.dispatch(o7())},removeTrack(e){this.dispatch(Tx(e))},updateTrack(e,t,n){this.dispatch(Ox({track:{[e]:t},index:n}))},algorithmSettingsVisible(e){return!0},toggleAlgorithmSettingVisible(e){this.algorithmSettings[e]=!Y.exports.get(this.algorithmSettings,e,!1)},handleSelectForeBackground(e,t){this.updateTrack("fore_background",e.target.value,t)},handleToggleNoiseHum(e,t){this.updateTrack("noise_and_hum_reduction",e.target.checked,t)},handleToggleFiltering(e,t){this.updateTrack("filtering",e.target.checked,t)},handleUpdateIdentifier(e,t){this.updateTrack("identifier_new",e.target.value,t)}},computed:{production(){return this.state.production||{}},isSaving(){return this.state.isSaving},showProcessingScreen(){return[1,4,5,6,7,8,12,13,14].includes(this.production.status)},showUploadScreen(){return this.production.status===0},showTrackEditor(){return[9,10,11].includes(this.production.status)},tracks(){return this.state.tracks||[]},isMultitrack(){return this.state.production&&this.state.production.is_multitrack}}}),iG={class:"pb-5 space-y-4"},sG={class:"space-y-8"},lG={class:"bg-white px-4 sm:px-6"},aG={class:"-ml-4 -mt-4 flex flex-wrap items-center justify-between sm:flex-nowrap"},uG={class:"ml-4 mt-4"},cG={class:"flex items-center"},dG={class:"flex-shrink-0"},fG={class:"ml-4"},pG={class:"text-base font-semibold leading-6 text-gray-900"},hG={class:"text-sm text-gray-500"},mG={class:"ml-4 mt-4 flex items-center space-x-4 text-xs"},vG={key:0,class:"inline-flex items-center animate-pulse text-green-600"},gG={key:0},yG={key:1},bG={class:"space-y-4"},_G={key:0},wG={key:1},SG={class:"rounded-md bg-indigo-50 p-4"},EG={class:"flex"},xG={class:"flex-shrink-0"},$G={class:"ml-3"},CG={class:"text-sm font-medium text-indigo-800"},TG={class:"mt-2 text-sm text-indigo-700"},OG={key:2},AG={key:3},IG={class:"bg-white shadow overflow-hidden rounded-md"},PG={class:"px-6 pt-4 hidden md:block"},kG={class:"md:grid md:grid-cols-3 md:gap-12"},RG={class:"block text-sm font-medium text-gray-700 md:col-span-1"},LG={class:"block text-sm font-medium text-gray-700 mt-5 md:mt-0 md:col-span-1"},NG={class:"block text-sm font-medium text-gray-700 mt-5 md:mt-0 md:col-span-1"},MG=g("div",{class:"block w-8 md:col-span-1"},null,-1),DG={role:"list",class:"divide-y divide-gray-200"},FG={class:"md:grid md:grid-cols-3 md:gap-12"},BG={class:"md:col-span-1"},UG=["for"],jG=["id","value","onInput"],HG={class:"mt-5 md:mt-0 md:col-span-1"},VG={class:"sm:items-baseline"},WG={class:"mt-4 sm:mt-0"},zG={key:0,class:"mt-1 text-sm text-gray-700"},qG={class:"md:col-span-1"},KG={key:0,role:"group",class:"bg-gr"},GG={class:"sm:items-baseline"},XG={class:""},JG={class:"block md:hidden text-sm font-medium text-gray-700 py-2"},YG={class:"max-w-lg relative"},ZG=["title","onClick"],QG={class:"space-y-4"},eX={class:"relative flex items-start"},tX={class:"flex items-center h-5"},nX=["id","checked","onInput"],rX={class:"ml-3 text-sm"},oX=["for"],iX={class:"relative flex items-start"},sX={class:"flex items-center h-5"},lX=["id","checked","onInput"],aX={class:"ml-3 text-sm"},uX=["for"],cX={class:"relative flex justify-start align-middle items-center gap-3"},dX={class:"text-sm"},fX=["for"],pX=["value","onInput","id"],hX={value:"auto"},mX={value:"foreground"},vX={value:"background"},gX={value:"ducking"},yX={value:"unchanged"},bX={class:"bg-gray-50 px-4 py-4 sm:px-6"},_X={key:4,class:"grid grid-cols-1 gap-y-6 gap-x-4 sm:grid-cols-6"},wX={class:"sm:col-span-4"},SX={class:"text-base font-medium text-gray-900"},EX={class:"mt-2"},xX={key:0,class:"mt-1 text-sm text-gray-700"},$X={class:"pt-5"},CX={class:"flex flex-col sm:flex-row gap-4 sm:gap-2 justify-between"},TX={class:"flex justify-end gap-3"},OX=["href"];function AX(e,t,n,r,o,s){var O,S,E,T;const l=X("AuphonicLogo"),a=X("CloudIcon"),c=X("ArrowDownTrayIcon"),f=X("XIcon"),p=X("DatabaseIcon"),h=X("DonePage"),v=X("FileChooser"),y=X("TrashIcon"),_=X("podlove-button"),w=X("WebhookToggle"),I=X("ExternalLinkIcon");return N(),V("form",iG,[g("div",sG,[g("div",lG,[g("div",aG,[g("div",uG,[g("div",cG,[g("div",dG,[q(l,{className:"mx-auto h-12 w-12 text-gray-400"})]),g("div",fG,[g("h3",pG,U((S=(O=e.production)==null?void 0:O.metadata)==null?void 0:S.title),1),g("p",hG,U(new Date(Date.parse((E=e.production)==null?void 0:E.creation_time)).toLocaleString()),1)])])]),g("div",mG,[e.isSaving?(N(),V("span",vG,[q(a,{class:"mr-1 h-4 w-4","aria-hidden":"true"}),Ge(" "+U(e.__("Saving","podlove-podcasting-plugin-for-wordpress")),1)])):qe("",!0),e.production.status!==3?(N(),V("button",{key:1,onClick:t[0]||(t[0]=$=>e.showImportPage=!e.showImportPage),type:"button",class:"relative inline-flex items-center rounded-md bg-white px-3 py-2 font-medium text-gray-500 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50"},[q(c,{class:"-ml-0.5 mr-1.5 h-4 w-4 text-gray-400","aria-hidden":"true"}),e.showImportPage?(N(),V("span",gG,U(e.__("Hide Import","podlove-podcasting-plugin-for-wordpress")),1)):qe("",!0),e.showImportPage?qe("",!0):(N(),V("span",yG,U(e.__("Show Import","podlove-podcasting-plugin-for-wordpress")),1))])):qe("",!0),g("button",{onClick:t[1]||(t[1]=(...$)=>e.deselectProduction&&e.deselectProduction(...$)),type:"button",class:"relative inline-flex items-center rounded-md bg-white px-3 py-2 font-medium text-gray-500 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50"},[q(f,{class:"-ml-0.5 mr-1.5 h-4 w-4 text-gray-400","aria-hidden":"true"}),g("span",null,U(e.__("Deselect Production","podlove-podcasting-plugin-for-wordpress")),1)])])])]),g("div",bG,[e.showUploadScreen?(N(),V("div",_G,U(e.__("Uploading...","podlove-podcasting-plugin-for-wordpress")),1)):qe("",!0),e.showProcessingScreen?(N(),V("div",wG,[g("div",SG,[g("div",EG,[g("div",xG,[q(p,{class:"h-5 w-5 text-indigo-400","aria-hidden":"true"})]),g("div",$G,[g("h3",CG,U(e.production.status_string),1),g("div",TG,[g("p",null,U(e.__("Auphonic is now processing your production. Please wait for it to finish.","podlove-podcasting-plugin-for-wordpress")),1)])])])])])):qe("",!0),e.production.status==3||e.showImportPage?(N(),V("div",OG,[q(h)])):qe("",!0),e.isMultitrack&&e.showTrackEditor?(N(),V("div",AG,[g("div",IG,[g("div",PG,[g("div",kG,[g("div",RG,U(e.__("Track Identifier","podlove-podcasting-plugin-for-wordpress")),1),g("div",LG,U(e.__("Upload Method","podlove-podcasting-plugin-for-wordpress")),1),g("div",NG,U(e.__("Algorithm","podlove-podcasting-plugin-for-wordpress")),1),MG])]),g("ul",DG,[(N(!0),V(Fe,null,Mt(e.tracks,($,P)=>(N(),V("li",{key:`xtrack-${P}`,class:"px-6 py-4"},[g("div",FG,[g("div",BG,[g("label",{for:`track-id-${P}`,class:"block md:hidden text-sm font-medium text-gray-700"},U(e.__("Track Identifier","podlove-podcasting-plugin-for-wordpress")),9,UG),g("input",{id:`track-id-${P}`,type:"text",value:$.identifier_new,onInput:k=>e.handleUpdateIdentifier(k,P),class:"mt-1 max-w-lg block w-full shadow-sm focus:ring-indigo-500 focus:border-indigo-500 sm:max-w-xs sm:text-sm border-gray-300 rounded-md"},null,40,jG)]),g("div",HG,[g("div",VG,[g("div",WG,[q(v,{track_index:P,file_key:`${e.production.uuid}_t${P}`},null,8,["track_index","file_key"]),$.input_file_name?(N(),V("div",zG,U(e.__("Uploaded File:","podlove-podcasting-plugin-for-wordpress"))+" "+U($.input_file_name),1)):qe("",!0)])])]),g("div",qG,[e.algorithmSettingsVisible(P)?(N(),V("div",KG,[g("div",GG,[g("div",XG,[g("div",JG,U(e.__("Algorithm","podlove-podcasting-plugin-for-wordpress")),1),g("div",YG,[g("div",{title:e.__("Remove Track","podlove-podcasting-plugin-for-wordpress"),onClick:k=>e.removeTrack($.identifier),class:"absolute z-10 right-0 top-0 cursor-pointer text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500"},[q(y,{class:"h-6 w-6","aria-hidden":"true"})],8,ZG),g("div",QG,[g("div",eX,[g("div",tX,[g("input",{id:`track_${P}_filtering`,type:"checkbox",class:"focus:ring-indigo-500 h-4 w-4 text-indigo-600 border-gray-300 rounded",checked:$.filtering,onInput:k=>e.handleToggleFiltering(k,P)},null,40,nX)]),g("div",rX,[g("label",{for:`track_${P}_filtering`,class:"text-gray-700"},U(e.__("Filtering","podlove-podcasting-plugin-for-wordpress")),9,oX)])]),g("div",null,[g("div",iX,[g("div",sX,[g("input",{id:`track_${P}_noisehum`,type:"checkbox",class:"focus:ring-indigo-500 h-4 w-4 text-indigo-600 border-gray-300 rounded",checked:$.noise_and_hum_reduction,onInput:k=>e.handleToggleNoiseHum(k,P)},null,40,lX)]),g("div",aX,[g("label",{for:`track_${P}_noisehum`,class:"text-gray-700"},U(e.__("Noise and Hum Reduction","podlove-podcasting-plugin-for-wordpress")),9,uX)])])]),g("div",null,[g("div",cX,[g("div",dX,[g("label",{for:`track_${P}_fgbg`,class:"text-gray-700"},U(e.__("Fore/Background","podlove-podcasting-plugin-for-wordpress")),9,fX)]),g("select",{value:$.fore_background,onInput:k=>e.handleSelectForeBackground(k,P),id:`track_${P}_fgbg`,class:"mt-1 block w-[168px] pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm rounded-md"},[g("option",hX,U(e.__("Auto","podlove-podcasting-plugin-for-wordpress")),1),g("option",mX,U(e.__("Foreground Track","podlove-podcasting-plugin-for-wordpress")),1),g("option",vX,U(e.__("Background Track","podlove-podcasting-plugin-for-wordpress")),1),g("option",gX,U(e.__("Duck this Track","podlove-podcasting-plugin-for-wordpress")),1),g("option",yX,U(e.__("Unchanged (Foreground)","podlove-podcasting-plugin-for-wordpress")),1)],40,pX)])])])])])])])):qe("",!0)])])]))),128))]),g("div",bX,[q(_,{variant:"primary",onClick:e.addTrack},{default:ye(()=>[Ge(U(e.__("Add Track","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["onClick"])])])])):e.showTrackEditor?(N(),V("div",_X,[g("fieldset",wX,[g("legend",SX,U(e.__("Audio Source","podlove-podcasting-plugin-for-wordpress")),1),g("div",EX,[q(v,{file_key:e.production.uuid},null,8,["file_key"]),e.production.input_file?(N(),V("div",xX,U(e.__("Uploaded File:","podlove-podcasting-plugin-for-wordpress"))+" "+U(e.production.input_file),1)):qe("",!0)])])])):qe("",!0)])]),g("div",$X,[g("div",CX,[q(w),g("div",TX,[g("a",{href:(T=e.production)==null?void 0:T.edit_page,target:"_blank",class:"inline-flex items-center rounded border border-gray-300 bg-white px-2.5 py-1.5 text-xs font-medium text-gray-500 shadow-sm hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2"},[Ge(U(e.__("Edit in Auphonic","podlove-podcasting-plugin-for-wordpress"))+" ",1),q(I,{class:"ml-1 -mr-0.5 h-4 w-4","aria-hidden":"true"})],8,OX),q(_,{variant:e.isSaving?"secondary-disabled":"secondary",onClick:e.saveProduction},{default:ye(()=>[Ge(U(e.__("Save Production","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["variant","onClick"]),q(_,{variant:"primary",onClick:e.startProduction},{default:ye(()=>[Ge(U(e.__("Start Production","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["onClick"])])])])])}var IX=Be(oG,[["render",AX]]);const PX=ve({components:{Listbox:Vv,ListboxButton:zv,ListboxLabel:Wv,ListboxOption:Kv,ListboxOptions:qv,CheckIcon:Kd,SelectorIcon:Gd},setup(){return{state:yt({productions:G.auphonic.productions,production:G.auphonic.production}),dispatch:it().dispatch}},methods:{setProduction(e){this.dispatch(ds(e))}},computed:{productions(){return this.state.productions.map(e=>{const t=e.creation_time.split("T")[0],n=e.metadata.title;return{...e,_select:{name:n,date:t}}})},currentProduction(){return this.state.production}}}),kX={class:"mt-1 relative"},RX={class:"w-full inline-flex truncate"},LX={key:0,class:"truncate"},NX={key:1,class:"truncate"},MX={class:"absolute inset-y-0 right-0 flex items-center pr-2 pointer-events-none"},DX={class:"flex justify-between"},FX={class:wt(["font-normal","truncate"])};function BX(e,t,n,r,o,s){const l=X("ListboxLabel"),a=X("SelectorIcon"),c=X("ListboxButton"),f=X("ListboxOption"),p=X("ListboxOptions"),h=X("Listbox");return N(),bt(h,{as:"div","onUpdate:modelValue":e.setProduction,value:e.currentProduction},{default:ye(()=>[q(l,{class:"block text-sm font-medium text-gray-600 sr-only"},{default:ye(()=>[Ge(U(e.__("Select Existing Production","podlove-podcasting-plugin-for-wordpress")),1)]),_:1}),g("div",kX,[q(c,{class:"relative w-full bg-white border border-gray-300 rounded-md shadow-sm pl-3 pr-10 py-2 text-left cursor-default focus:outline-none focus:ring-1 focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"},{default:ye(()=>[g("span",RX,[e.currentProduction?(N(),V("span",LX,U(e.currentProduction.metadata.title),1)):(N(),V("span",NX,"\xA0"))]),g("span",MX,[q(a,{class:"h-5 w-5 text-gray-400","aria-hidden":"true"})])]),_:1}),q(Ei,{"leave-active-class":"transition ease-in duration-100","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:ye(()=>[q(p,{class:"absolute z-10 mt-1 w-full bg-white shadow-lg max-h-36 rounded-md py-1 text-base ring-1 ring-black ring-opacity-5 overflow-auto focus:outline-none sm:text-sm"},{default:ye(()=>[(N(!0),V(Fe,null,Mt(e.productions,v=>(N(),bt(f,{as:"template",key:v._select.date,value:v},{default:ye(({active:y})=>[g("li",{class:wt([y?"text-white bg-indigo-600":"text-gray-900","cursor-default select-none relative py-2 pl-3 pr-9"])},[g("div",DX,[g("span",FX,[g("span",{class:wt([y?"text-indigo-200":"text-gray-500","ml-2 truncate"])},U(v._select.date),3),Ge(" "+U(v._select.name),1)]),g("span",{class:wt([y?"text-indigo-200":"text-gray-500","ml-2 truncate flex-shrink-0"])},U(v.status_string),3)])],2)]),_:2},1032,["value"]))),128))]),_:1})]),_:1})])]),_:1},8,["onUpdate:modelValue","value"])}var UX=Be(PX,[["render",BX]]);const jX=ve({components:{Listbox:Vv,ListboxButton:zv,ListboxLabel:Wv,ListboxOption:Kv,ListboxOptions:qv,CheckIcon:Kd,SelectorIcon:Gd},setup(){return{state:yt({presets:G.auphonic.presets,currentPreset:G.auphonic.preset}),dispatch:it().dispatch}},methods:{setPreset(e){this.dispatch(bv(e.uuid))}},computed:{presets(){return this.state.presets.map(e=>{const t=e.creation_time.split("T")[0],n=e.preset_name,r=e.is_multitrack;return{...e,_select:{name:n,date:t,is_multitrack:r}}}).toSorted((e,t)=>{const n=e._select.name.toUpperCase(),r=t._select.name.toUpperCase();return n<r?-1:n>r?1:0})},currentPreset(){const e=this.state.currentPreset;return this.presets.find(t=>t.uuid===e)}}}),HX={class:"mt-1 relative"},VX={class:"w-full inline-flex truncate"},WX={key:0,class:"truncate"},zX={key:1,class:"truncate"},qX={class:"absolute inset-y-0 right-0 flex items-center pr-2 pointer-events-none"},KX={class:"flex"},GX={class:wt(["font-normal","truncate"])};function XX(e,t,n,r,o,s){const l=X("ListboxLabel"),a=X("SelectorIcon"),c=X("ListboxButton"),f=X("ListboxOption"),p=X("ListboxOptions"),h=X("Listbox");return N(),bt(h,{as:"div","onUpdate:modelValue":e.setPreset,value:e.currentPreset},{default:ye(()=>[q(l,{class:"block text-sm font-medium text-gray-600 sr-only"},{default:ye(()=>[Ge(U(e.__("Select Preset","podlove-podcasting-plugin-for-wordpress")),1)]),_:1}),g("div",HX,[q(c,{class:"relative w-full bg-white border border-gray-300 rounded-md shadow-sm pl-3 pr-10 py-2 text-left cursor-default focus:outline-none focus:ring-1 focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"},{default:ye(()=>[g("span",VX,[e.currentPreset?(N(),V("span",WX,U(e.currentPreset._select.name),1)):(N(),V("span",zX,"\xA0"))]),g("span",qX,[q(a,{class:"h-5 w-5 text-gray-400","aria-hidden":"true"})])]),_:1}),q(Ei,{"leave-active-class":"transition ease-in duration-100","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:ye(()=>[q(p,{class:"absolute z-10 mt-1 w-full bg-white shadow-lg max-h-36 rounded-md py-1 text-base ring-1 ring-black ring-opacity-5 overflow-auto focus:outline-none sm:text-sm"},{default:ye(()=>[(N(!0),V(Fe,null,Mt(e.presets,v=>(N(),bt(f,{as:"template",key:v._select.date,value:v},{default:ye(({active:y})=>[g("li",{class:wt([y?"text-white bg-indigo-600":"text-gray-900","cursor-default select-none relative py-2 pl-3 pr-9"])},[g("div",KX,[g("span",GX,U(v._select.name),1),v._select.is_multitrack?(N(),V("span",{key:0,class:wt([y?"text-indigo-200":"text-gray-500","ml-2 truncate"])},U(e.__("Multitrack","podlove-podcasting-plugin-for-wordpress")),3)):qe("",!0)])],2)]),_:2},1032,["value"]))),128))]),_:1})]),_:1})])]),_:1},8,["onUpdate:modelValue","value"])}var JX=Be(jX,[["render",XX]]);const YX=ve({components:{Module:Nn,PodloveButton:Vn,PlusSmIcon:Lv,RefreshIcon:I2,SelectProduction:UX,SelectPreset:JX,AuphonicLogo:og},data(){return{}},setup(){return{state:yt({presetUUID:G.auphonic.preset,presets:G.auphonic.presets,isInitializing:G.auphonic.isInitializing}),dispatch:it().dispatch}},methods:{handleCreateProduction(){switch(this.buttonState){case"single":this.createProduction();break;case"multi":this.createMultitrackProduction();break}},createProduction(){this.dispatch(QD())},createMultitrackProduction(){this.dispatch(e7())}},computed:{preset(){return this.state.presets.find(e=>e.uuid===this.state.presetUUID)},isInitializing(){return this.state.isInitializing},buttonState(){return this.preset?this.preset.is_multitrack?"multi":"single":"idle"}}}),ZX={class:"m-6 text-center max-w-5xl"},QX={key:0,class:"w-full flex justify-center"},eJ={class:"animate-pulse mt-4 flex space-x-4"},tJ={class:"mt-1 text-sm text-gray-500"},nJ={class:"sm:divide-x sm:divide-gray-200 mt-6 py-6 gap-8 sm:gap-0 grid grid-cols-1 sm:grid-cols-2"},rJ={class:"flow-root sm:px-6"},oJ={class:"relative -m-2 p-2 flex items-center justify-around space-x-4 rounded-xl hover:bg-gray-50 focus-within:ring-2 focus-within:ring-indigo-500"},iJ={class:"text-sm font-medium text-gray-900"},sJ={class:"mt-2 sm:mt-8 flex justify-center align-middle content-center items-center gap-3"},lJ={class:"w-full max-w-md"},aJ={class:"mt-10 flex flex-col justify-center align-middle content-center items-center gap-3"},uJ={class:"flow-root sm:px-6"},cJ={class:"relative -m-2 p-2 flex items-center justify-around space-x-4 rounded-xl hover:bg-gray-50 focus-within:ring-2 focus-within:ring-indigo-500"},dJ={class:"text-sm font-medium text-gray-900"},fJ={class:"mt-2 sm:mt-8 flex justify-center align-middle content-center items-center gap-3"},pJ={class:"w-full max-w-md"};function hJ(e,t,n,r,o,s){const l=X("AuphonicLogo"),a=X("RefreshIcon"),c=X("SelectPreset"),f=X("plus-sm-icon"),p=X("podlove-button"),h=X("SelectProduction");return N(),V("div",null,[g("div",ZX,[q(l,{className:"mx-auto h-16 w-16 text-gray-400"}),e.isInitializing?(N(),V("div",QX,[g("div",eJ,[q(a,{class:"animate-spin h-5 w-5 mr-3"}),Ge(" "+U(e.__("Loading...","podlove-podcasting-plugin-for-wordpress")),1)])])):qe("",!0),g("div",{class:wt({"text-left":!0,"opacity-0":e.isInitializing})},[g("p",tJ,U(e.__("Manage your audio post production with Auphonic. Get started by selecting an existing production or create a new one from an Auphonic preset.","podlove-podcasting-plugin-for-wordpress")),1),g("div",nJ,[g("div",rJ,[g("div",oJ,[g("div",null,[g("h3",iJ,U(e.__("Create New Production from Preset","podlove-podcasting-plugin-for-wordpress")),1)])]),g("div",sJ,[g("div",lJ,[q(c)])]),g("div",aJ,[q(p,{disabled:e.buttonState=="idle",variant:e.buttonState=="idle"?"primary-disabled":"primary",onClick:e.handleCreateProduction},{default:ye(()=>[q(f,{class:"-ml-0.5 mr-2 h-4 w-4","aria-hidden":"true"}),Ge(" "+U(e.buttonState=="multi"?e.__("Create Multitrack Production","podlove-podcasting-plugin-for-wordpress"):e.__("Create Production","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["disabled","variant","onClick"])])]),g("div",uJ,[g("div",cJ,[g("div",null,[g("h3",dJ,U(e.__("Select Existing Production","podlove-podcasting-plugin-for-wordpress")),1)])]),g("div",fJ,[g("div",pJ,[q(h)])])])])],2)])])}var mJ=Be(YX,[["render",hJ]]);const vJ=ve({components:{Module:Nn,ManageProductionForm:IX,StartScreen:mJ,AuphonicLogo:og},setup(){return{state:yt({productionId:G.auphonic.productionId,isInitializing:G.auphonic.isInitializing}),dispatch:it().dispatch}},computed:{productionId(){return this.state.productionId||""},isInitializing(){return this.state.isInitializing},isProductionSelected(){return!!this.productionId}},created(){this.dispatch(JD())}}),gJ={key:0},yJ={key:1,class:"m-7"};function bJ(e,t,n,r,o,s){const l=X("StartScreen"),a=X("ManageProductionForm"),c=X("module");return N(),bt(c,{name:"auphonic",title:"Auphonic"},{default:ye(()=>[e.isProductionSelected?qe("",!0):(N(),V("div",gJ,[q(l)])),e.productionId?(N(),V("div",yJ,[q(a)])):qe("",!0)]),_:1})}var _J=Be(vJ,[["render",bJ]]);const wJ=ve({components:{ArrowUpIcon:W9,ArrowDownIcon:A2,XIcon:Da,UserCircleIcon:F2,PencilIcon:D2},props:{data:{type:Object,default:()=>({id:null,contributor_id:null,role_id:null,group_id:null,position:null,comment:null,identifier:null,avatar:null,name:null,mail:null,department:null,organisation:null,jobtitle:null,gender:null,nickname:null,count:null})},first:{type:Boolean,default:!1},last:{type:Boolean,default:!1}},setup(){return{dispatch:it().dispatch,state:yt({roles:G.contributors.roles,groups:G.contributors.groups,baseUrl:G.runtime.baseUrl})}},computed:{editLink(){return`${this.state.baseUrl}/wp-admin/admin.php?page=podlove_contributor_settings&action=edit&contributor=${this.data.contributor_id}`}},methods:{moveContributionUp(){this.dispatch(dD(this.data))},moveContributionDown(){this.dispatch(fD(this.data))},deleteContribution(){this.dispatch(pD(this.data))},updateRole(e){const t=Y.exports.get(e,["target","value"]);this.dispatch(Tp({...this.data,role_id:t}))},updateGroup(e){const t=Y.exports.get(e,["target","value"]);console.log(t),this.dispatch(Tp({...this.data,group_id:t}))},updateComment(e){const t=Y.exports.get(e,["target","value"]);this.dispatch(Tp({...this.data,comment:t}))}}}),SJ={class:"block hover:bg-gray-50"},EJ={class:"flex items-center px-4 py-4 sm:px-6"},xJ={class:"flex min-w-0 flex-1 items-center"},$J={class:"flex-shrink-0"},CJ=["src","alt"],TJ={class:"min-w-0 flex-1 px-2 md:grid md:gap-4"},OJ={class:"flex-shrink-0"},AJ={class:"truncate text-sm font-medium text-gray-900"},IJ={class:"flex items-center text-sm text-gray-500"},PJ={class:"truncate"},kJ={class:"min-w-0 flex-1 px-4 md:grid md:gap-4"},RJ={for:"location",class:"block text-sm font-medium leading-6 text-gray-900"},LJ=["value","selected"],NJ={class:"min-w-0 flex-1 px-4 md:grid md:gap-4"},MJ={for:"location",class:"block text-sm font-medium leading-6 text-gray-900"},DJ=["value","selected"],FJ={class:"min-w-0 flex-1 px-4 md:grid md:gap-4"},BJ={for:"email",class:"block text-sm font-medium leading-6 text-gray-900"},UJ={class:"mt-2"},jJ=["value","placeholder"],HJ={class:"flex space-x-2 justify-end mt-[30px]"},VJ=["disabled"],WJ=["disabled"],zJ=["href"];function qJ(e,t,n,r,o,s){const l=X("UserCircleIcon"),a=X("arrow-up-icon"),c=X("arrow-down-icon"),f=X("pencil-icon"),p=X("x-icon");return N(),V("div",SJ,[g("div",EJ,[g("div",xJ,[g("div",$J,[e.data.avatar_url?(N(),V("img",{key:0,class:"h-12 w-12 rounded-full",src:e.data.avatar_url,alt:e.data.name,onError:t[0]||(t[0]=h=>e.data.avatar_url="")},null,40,CJ)):qe("",!0),e.data.avatar_url?qe("",!0):(N(),bt(l,{key:1,class:"h-12 w-12 flex-shrink-0 rounded-full text-gray-500"}))]),g("div",TJ,[g("div",OJ,[g("p",AJ,U(e.data.realname),1),g("p",IJ,[g("span",PJ,U(e.data.nickname),1)])])]),g("div",kJ,[g("div",null,[g("label",RJ,U(e.__("Role","podlove-podcasting-plugin-for-wordpress")),1),g("select",{class:"mt-2 block w-full rounded-md border-0 py-1.5 pl-3 pr-10 text-gray-900 ring-1 ring-inset ring-gray-300 focus:ring-2 focus:ring-indigo-600 sm:text-sm sm:leading-6",onChange:t[1]||(t[1]=h=>e.updateRole(h))},[(N(!0),V(Fe,null,Mt(e.state.roles,h=>(N(),V("option",{value:h.id,selected:h.id===e.data.role_id},U(h.title),9,LJ))),256))],32)])]),g("div",NJ,[g("div",null,[g("label",MJ,U(e.__("Group","podlove-podcasting-plugin-for-wordpress")),1),g("select",{class:"mt-2 block w-full rounded-md border-0 py-1.5 pl-3 pr-10 text-gray-900 ring-1 ring-inset ring-gray-300 focus:ring-2 focus:ring-indigo-600 sm:text-sm sm:leading-6",onChange:t[2]||(t[2]=h=>e.updateGroup(h))},[(N(!0),V(Fe,null,Mt(e.state.groups,h=>(N(),V("option",{value:h.id,selected:h.id===e.data.group_id},U(h.title),9,DJ))),256))],32)])]),g("div",FJ,[g("div",null,[g("label",BJ,U(e.__("Comment","podlove-podcasting-plugin-for-wordpress")),1),g("div",UJ,[g("input",{type:"text",value:e.data.comment,onInput:t[3]||(t[3]=h=>e.updateComment(h)),class:"block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6",placeholder:e.__("Comment","podlove-podcasting-plugin-for-wordpress")},null,40,jJ)])])]),g("div",HJ,[g("button",{onClick:t[4]||(t[4]=h=>e.moveContributionUp()),disabled:e.first,class:wt({"text-indigo-600":!e.first,"text-gray-500":e.first})},[q(a,{class:"w-5 h-5"})],10,VJ),g("button",{onClick:t[5]||(t[5]=h=>e.moveContributionDown()),disabled:e.last,class:wt({"text-indigo-600":!e.last,"text-gray-500":e.last})},[q(c,{class:"w-5 h-5"})],10,WJ),g("a",{href:e.editLink,target:"_blank",class:"text-gray-400"},[q(f,{class:"w-5 h-5"})],8,zJ),g("button",{class:"text-red-600",onClick:t[6]||(t[6]=h=>e.deleteContribution())},[q(p,{class:"w-5 h-5"})])])])])])}var KJ=Be(wJ,[["render",qJ]]),Qn="top",Br="bottom",Ur="right",er="left",ig="auto",Wa=[Qn,Br,Ur,er],tl="start",wa="end",GJ="clippingParents",H$="viewport",Ml="popper",XJ="reference",G1=Wa.reduce(function(e,t){return e.concat([t+"-"+tl,t+"-"+wa])},[]),V$=[].concat(Wa,[ig]).reduce(function(e,t){return e.concat([t,t+"-"+tl,t+"-"+wa])},[]),JJ="beforeRead",YJ="read",ZJ="afterRead",QJ="beforeMain",eY="main",tY="afterMain",nY="beforeWrite",rY="write",oY="afterWrite",iY=[JJ,YJ,ZJ,QJ,eY,tY,nY,rY,oY];function So(e){return e?(e.nodeName||"").toLowerCase():null}function ao(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function nl(e){var t=ao(e).Element;return e instanceof t||e instanceof Element}function Mr(e){var t=ao(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function sg(e){if(typeof ShadowRoot=="undefined")return!1;var t=ao(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function sY(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},s=t.elements[n];!Mr(s)||!So(s)||(Object.assign(s.style,r),Object.keys(o).forEach(function(l){var a=o[l];a===!1?s.removeAttribute(l):s.setAttribute(l,a===!0?"":a)}))})}function lY(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],s=t.attributes[r]||{},l=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=l.reduce(function(c,f){return c[f]="",c},{});!Mr(o)||!So(o)||(Object.assign(o.style,a),Object.keys(s).forEach(function(c){o.removeAttribute(c)}))})}}var aY={name:"applyStyles",enabled:!0,phase:"write",fn:sY,effect:lY,requires:["computeStyles"]};function bo(e){return e.split("-")[0]}var ts=Math.max,qc=Math.min,rl=Math.round;function ol(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),r=1,o=1;if(Mr(e)&&t){var s=e.offsetHeight,l=e.offsetWidth;l>0&&(r=rl(n.width)/l||1),s>0&&(o=rl(n.height)/s||1)}return{width:n.width/r,height:n.height/o,top:n.top/o,right:n.right/r,bottom:n.bottom/o,left:n.left/r,x:n.left/r,y:n.top/o}}function lg(e){var t=ol(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function W$(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&sg(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function zo(e){return ao(e).getComputedStyle(e)}function uY(e){return["table","td","th"].indexOf(So(e))>=0}function Ci(e){return((nl(e)?e.ownerDocument:e.document)||window.document).documentElement}function Xd(e){return So(e)==="html"?e:e.assignedSlot||e.parentNode||(sg(e)?e.host:null)||Ci(e)}function X1(e){return!Mr(e)||zo(e).position==="fixed"?null:e.offsetParent}function cY(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&Mr(e)){var r=zo(e);if(r.position==="fixed")return null}var o=Xd(e);for(sg(o)&&(o=o.host);Mr(o)&&["html","body"].indexOf(So(o))<0;){var s=zo(o);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return o;o=o.parentNode}return null}function za(e){for(var t=ao(e),n=X1(e);n&&uY(n)&&zo(n).position==="static";)n=X1(n);return n&&(So(n)==="html"||So(n)==="body"&&zo(n).position==="static")?t:n||cY(e)||t}function ag(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ea(e,t,n){return ts(e,qc(t,n))}function dY(e,t,n){var r=ea(e,t,n);return r>n?n:r}function z$(){return{top:0,right:0,bottom:0,left:0}}function q$(e){return Object.assign({},z$(),e)}function K$(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var fY=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,q$(typeof t!="number"?t:K$(t,Wa))};function pY(e){var t,n=e.state,r=e.name,o=e.options,s=n.elements.arrow,l=n.modifiersData.popperOffsets,a=bo(n.placement),c=ag(a),f=[er,Ur].indexOf(a)>=0,p=f?"height":"width";if(!(!s||!l)){var h=fY(o.padding,n),v=lg(s),y=c==="y"?Qn:er,_=c==="y"?Br:Ur,w=n.rects.reference[p]+n.rects.reference[c]-l[c]-n.rects.popper[p],I=l[c]-n.rects.reference[c],O=za(s),S=O?c==="y"?O.clientHeight||0:O.clientWidth||0:0,E=w/2-I/2,T=h[y],$=S-v[p]-h[_],P=S/2-v[p]/2+E,k=ea(T,P,$),A=c;n.modifiersData[r]=(t={},t[A]=k,t.centerOffset=k-P,t)}}function hY(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||!W$(t.elements.popper,o)||(t.elements.arrow=o))}var mY={name:"arrow",enabled:!0,phase:"main",fn:pY,effect:hY,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function il(e){return e.split("-")[1]}var vY={top:"auto",right:"auto",bottom:"auto",left:"auto"};function gY(e){var t=e.x,n=e.y,r=window,o=r.devicePixelRatio||1;return{x:rl(t*o)/o||0,y:rl(n*o)/o||0}}function J1(e){var t,n=e.popper,r=e.popperRect,o=e.placement,s=e.variation,l=e.offsets,a=e.position,c=e.gpuAcceleration,f=e.adaptive,p=e.roundOffsets,h=e.isFixed,v=l.x,y=v===void 0?0:v,_=l.y,w=_===void 0?0:_,I=typeof p=="function"?p({x:y,y:w}):{x:y,y:w};y=I.x,w=I.y;var O=l.hasOwnProperty("x"),S=l.hasOwnProperty("y"),E=er,T=Qn,$=window;if(f){var P=za(n),k="clientHeight",A="clientWidth";if(P===ao(n)&&(P=Ci(n),zo(P).position!=="static"&&a==="absolute"&&(k="scrollHeight",A="scrollWidth")),P=P,o===Qn||(o===er||o===Ur)&&s===wa){T=Br;var H=h&&P===$&&$.visualViewport?$.visualViewport.height:P[k];w-=H-r.height,w*=c?1:-1}if(o===er||(o===Qn||o===Br)&&s===wa){E=Ur;var D=h&&P===$&&$.visualViewport?$.visualViewport.width:P[A];y-=D-r.width,y*=c?1:-1}}var F=Object.assign({position:a},f&&vY),z=p===!0?gY({x:y,y:w}):{x:y,y:w};if(y=z.x,w=z.y,c){var K;return Object.assign({},F,(K={},K[T]=S?"0":"",K[E]=O?"0":"",K.transform=($.devicePixelRatio||1)<=1?"translate("+y+"px, "+w+"px)":"translate3d("+y+"px, "+w+"px, 0)",K))}return Object.assign({},F,(t={},t[T]=S?w+"px":"",t[E]=O?y+"px":"",t.transform="",t))}function yY(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,s=n.adaptive,l=s===void 0?!0:s,a=n.roundOffsets,c=a===void 0?!0:a,f={placement:bo(t.placement),variation:il(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,J1(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,J1(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var bY={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:yY,data:{}},ec={passive:!0};function _Y(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,s=o===void 0?!0:o,l=r.resize,a=l===void 0?!0:l,c=ao(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&f.forEach(function(p){p.addEventListener("scroll",n.update,ec)}),a&&c.addEventListener("resize",n.update,ec),function(){s&&f.forEach(function(p){p.removeEventListener("scroll",n.update,ec)}),a&&c.removeEventListener("resize",n.update,ec)}}var wY={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:_Y,data:{}},SY={left:"right",right:"left",bottom:"top",top:"bottom"};function hc(e){return e.replace(/left|right|bottom|top/g,function(t){return SY[t]})}var EY={start:"end",end:"start"};function Y1(e){return e.replace(/start|end/g,function(t){return EY[t]})}function ug(e){var t=ao(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function cg(e){return ol(Ci(e)).left+ug(e).scrollLeft}function xY(e){var t=ao(e),n=Ci(e),r=t.visualViewport,o=n.clientWidth,s=n.clientHeight,l=0,a=0;return r&&(o=r.width,s=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(l=r.offsetLeft,a=r.offsetTop)),{width:o,height:s,x:l+cg(e),y:a}}function $Y(e){var t,n=Ci(e),r=ug(e),o=(t=e.ownerDocument)==null?void 0:t.body,s=ts(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),l=ts(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+cg(e),c=-r.scrollTop;return zo(o||n).direction==="rtl"&&(a+=ts(n.clientWidth,o?o.clientWidth:0)-s),{width:s,height:l,x:a,y:c}}function dg(e){var t=zo(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function G$(e){return["html","body","#document"].indexOf(So(e))>=0?e.ownerDocument.body:Mr(e)&&dg(e)?e:G$(Xd(e))}function ta(e,t){var n;t===void 0&&(t=[]);var r=G$(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),s=ao(r),l=o?[s].concat(s.visualViewport||[],dg(r)?r:[]):r,a=t.concat(l);return o?a:a.concat(ta(Xd(l)))}function Hh(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function CY(e){var t=ol(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function Z1(e,t){return t===H$?Hh(xY(e)):nl(t)?CY(t):Hh($Y(Ci(e)))}function TY(e){var t=ta(Xd(e)),n=["absolute","fixed"].indexOf(zo(e).position)>=0,r=n&&Mr(e)?za(e):e;return nl(r)?t.filter(function(o){return nl(o)&&W$(o,r)&&So(o)!=="body"}):[]}function OY(e,t,n){var r=t==="clippingParents"?TY(e):[].concat(t),o=[].concat(r,[n]),s=o[0],l=o.reduce(function(a,c){var f=Z1(e,c);return a.top=ts(f.top,a.top),a.right=qc(f.right,a.right),a.bottom=qc(f.bottom,a.bottom),a.left=ts(f.left,a.left),a},Z1(e,s));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function X$(e){var t=e.reference,n=e.element,r=e.placement,o=r?bo(r):null,s=r?il(r):null,l=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,c;switch(o){case Qn:c={x:l,y:t.y-n.height};break;case Br:c={x:l,y:t.y+t.height};break;case Ur:c={x:t.x+t.width,y:a};break;case er:c={x:t.x-n.width,y:a};break;default:c={x:t.x,y:t.y}}var f=o?ag(o):null;if(f!=null){var p=f==="y"?"height":"width";switch(s){case tl:c[f]=c[f]-(t[p]/2-n[p]/2);break;case wa:c[f]=c[f]+(t[p]/2-n[p]/2);break}}return c}function Sa(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,s=n.boundary,l=s===void 0?GJ:s,a=n.rootBoundary,c=a===void 0?H$:a,f=n.elementContext,p=f===void 0?Ml:f,h=n.altBoundary,v=h===void 0?!1:h,y=n.padding,_=y===void 0?0:y,w=q$(typeof _!="number"?_:K$(_,Wa)),I=p===Ml?XJ:Ml,O=e.rects.popper,S=e.elements[v?I:p],E=OY(nl(S)?S:S.contextElement||Ci(e.elements.popper),l,c),T=ol(e.elements.reference),$=X$({reference:T,element:O,strategy:"absolute",placement:o}),P=Hh(Object.assign({},O,$)),k=p===Ml?P:T,A={top:E.top-k.top+w.top,bottom:k.bottom-E.bottom+w.bottom,left:E.left-k.left+w.left,right:k.right-E.right+w.right},H=e.modifiersData.offset;if(p===Ml&&H){var D=H[o];Object.keys(A).forEach(function(F){var z=[Ur,Br].indexOf(F)>=0?1:-1,K=[Qn,Br].indexOf(F)>=0?"y":"x";A[F]+=D[K]*z})}return A}function AY(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,s=n.rootBoundary,l=n.padding,a=n.flipVariations,c=n.allowedAutoPlacements,f=c===void 0?V$:c,p=il(r),h=p?a?G1:G1.filter(function(_){return il(_)===p}):Wa,v=h.filter(function(_){return f.indexOf(_)>=0});v.length===0&&(v=h);var y=v.reduce(function(_,w){return _[w]=Sa(e,{placement:w,boundary:o,rootBoundary:s,padding:l})[bo(w)],_},{});return Object.keys(y).sort(function(_,w){return y[_]-y[w]})}function IY(e){if(bo(e)===ig)return[];var t=hc(e);return[Y1(e),t,Y1(t)]}function PY(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,s=o===void 0?!0:o,l=n.altAxis,a=l===void 0?!0:l,c=n.fallbackPlacements,f=n.padding,p=n.boundary,h=n.rootBoundary,v=n.altBoundary,y=n.flipVariations,_=y===void 0?!0:y,w=n.allowedAutoPlacements,I=t.options.placement,O=bo(I),S=O===I,E=c||(S||!_?[hc(I)]:IY(I)),T=[I].concat(E).reduce(function(ae,fe){return ae.concat(bo(fe)===ig?AY(t,{placement:fe,boundary:p,rootBoundary:h,padding:f,flipVariations:_,allowedAutoPlacements:w}):fe)},[]),$=t.rects.reference,P=t.rects.popper,k=new Map,A=!0,H=T[0],D=0;D<T.length;D++){var F=T[D],z=bo(F),K=il(F)===tl,te=[Qn,Br].indexOf(z)>=0,we=te?"width":"height",be=Sa(t,{placement:F,boundary:p,rootBoundary:h,altBoundary:v,padding:f}),Oe=te?K?Ur:er:K?Br:Qn;$[we]>P[we]&&(Oe=hc(Oe));var Ae=hc(Oe),Ye=[];if(s&&Ye.push(be[z]<=0),a&&Ye.push(be[Oe]<=0,be[Ae]<=0),Ye.every(function(ae){return ae})){H=F,A=!1;break}k.set(F,Ye)}if(A)for(var ft=_?3:1,Le=function(fe){var Se=T.find(function(He){var De=k.get(He);if(De)return De.slice(0,fe).every(function(tt){return tt})});if(Se)return H=Se,"break"},Ke=ft;Ke>0;Ke--){var Q=Le(Ke);if(Q==="break")break}t.placement!==H&&(t.modifiersData[r]._skip=!0,t.placement=H,t.reset=!0)}}var kY={name:"flip",enabled:!0,phase:"main",fn:PY,requiresIfExists:["offset"],data:{_skip:!1}};function Q1(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function e_(e){return[Qn,Ur,Br,er].some(function(t){return e[t]>=0})}function RY(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,s=t.modifiersData.preventOverflow,l=Sa(t,{elementContext:"reference"}),a=Sa(t,{altBoundary:!0}),c=Q1(l,r),f=Q1(a,o,s),p=e_(c),h=e_(f);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:f,isReferenceHidden:p,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":h})}var LY={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:RY};function NY(e,t,n){var r=bo(e),o=[er,Qn].indexOf(r)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,l=s[0],a=s[1];return l=l||0,a=(a||0)*o,[er,Ur].indexOf(r)>=0?{x:a,y:l}:{x:l,y:a}}function MY(e){var t=e.state,n=e.options,r=e.name,o=n.offset,s=o===void 0?[0,0]:o,l=V$.reduce(function(p,h){return p[h]=NY(h,t.rects,s),p},{}),a=l[t.placement],c=a.x,f=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=f),t.modifiersData[r]=l}var DY={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:MY};function FY(e){var t=e.state,n=e.name;t.modifiersData[n]=X$({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var BY={name:"popperOffsets",enabled:!0,phase:"read",fn:FY,data:{}};function UY(e){return e==="x"?"y":"x"}function jY(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,s=o===void 0?!0:o,l=n.altAxis,a=l===void 0?!1:l,c=n.boundary,f=n.rootBoundary,p=n.altBoundary,h=n.padding,v=n.tether,y=v===void 0?!0:v,_=n.tetherOffset,w=_===void 0?0:_,I=Sa(t,{boundary:c,rootBoundary:f,padding:h,altBoundary:p}),O=bo(t.placement),S=il(t.placement),E=!S,T=ag(O),$=UY(T),P=t.modifiersData.popperOffsets,k=t.rects.reference,A=t.rects.popper,H=typeof w=="function"?w(Object.assign({},t.rects,{placement:t.placement})):w,D=typeof H=="number"?{mainAxis:H,altAxis:H}:Object.assign({mainAxis:0,altAxis:0},H),F=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,z={x:0,y:0};if(!!P){if(s){var K,te=T==="y"?Qn:er,we=T==="y"?Br:Ur,be=T==="y"?"height":"width",Oe=P[T],Ae=Oe+I[te],Ye=Oe-I[we],ft=y?-A[be]/2:0,Le=S===tl?k[be]:A[be],Ke=S===tl?-A[be]:-k[be],Q=t.elements.arrow,ae=y&&Q?lg(Q):{width:0,height:0},fe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:z$(),Se=fe[te],He=fe[we],De=ea(0,k[be],ae[be]),tt=E?k[be]/2-ft-De-Se-D.mainAxis:Le-De-Se-D.mainAxis,vn=E?-k[be]/2+ft+De+He+D.mainAxis:Ke+De+He+D.mainAxis,ln=t.elements.arrow&&za(t.elements.arrow),L=ln?T==="y"?ln.clientTop||0:ln.clientLeft||0:0,B=(K=F==null?void 0:F[T])!=null?K:0,Z=Oe+tt-B-L,le=Oe+vn-B,ie=ea(y?qc(Ae,Z):Ae,Oe,y?ts(Ye,le):Ye);P[T]=ie,z[T]=ie-Oe}if(a){var pe,Ee=T==="x"?Qn:er,he=T==="x"?Br:Ur,me=P[$],se=$==="y"?"height":"width",Re=me+I[Ee],Pe=me-I[he],Me=[Qn,er].indexOf(O)!==-1,je=(pe=F==null?void 0:F[$])!=null?pe:0,rt=Me?Re:me-k[se]-A[se]-je+D.altAxis,mt=Me?me+k[se]+A[se]-je-D.altAxis:Pe,ct=y&&Me?dY(rt,me,mt):ea(y?rt:Re,me,y?mt:Pe);P[$]=ct,z[$]=ct-me}t.modifiersData[r]=z}}var HY={name:"preventOverflow",enabled:!0,phase:"main",fn:jY,requiresIfExists:["offset"]};function VY(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function WY(e){return e===ao(e)||!Mr(e)?ug(e):VY(e)}function zY(e){var t=e.getBoundingClientRect(),n=rl(t.width)/e.offsetWidth||1,r=rl(t.height)/e.offsetHeight||1;return n!==1||r!==1}function qY(e,t,n){n===void 0&&(n=!1);var r=Mr(t),o=Mr(t)&&zY(t),s=Ci(t),l=ol(e,o),a={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((So(t)!=="body"||dg(s))&&(a=WY(t)),Mr(t)?(c=ol(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):s&&(c.x=cg(s))),{x:l.left+a.scrollLeft-c.x,y:l.top+a.scrollTop-c.y,width:l.width,height:l.height}}function KY(e){var t=new Map,n=new Set,r=[];e.forEach(function(s){t.set(s.name,s)});function o(s){n.add(s.name);var l=[].concat(s.requires||[],s.requiresIfExists||[]);l.forEach(function(a){if(!n.has(a)){var c=t.get(a);c&&o(c)}}),r.push(s)}return e.forEach(function(s){n.has(s.name)||o(s)}),r}function GY(e){var t=KY(e);return iY.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function XY(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function JY(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var t_={placement:"bottom",modifiers:[],strategy:"absolute"};function n_(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function YY(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,s=o===void 0?t_:o;return function(a,c,f){f===void 0&&(f=s);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},t_,s),modifiersData:{},elements:{reference:a,popper:c},attributes:{},styles:{}},h=[],v=!1,y={state:p,setOptions:function(O){var S=typeof O=="function"?O(p.options):O;w(),p.options=Object.assign({},s,p.options,S),p.scrollParents={reference:nl(a)?ta(a):a.contextElement?ta(a.contextElement):[],popper:ta(c)};var E=GY(JY([].concat(r,p.options.modifiers)));return p.orderedModifiers=E.filter(function(T){return T.enabled}),_(),y.update()},forceUpdate:function(){if(!v){var O=p.elements,S=O.reference,E=O.popper;if(!!n_(S,E)){p.rects={reference:qY(S,za(E),p.options.strategy==="fixed"),popper:lg(E)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(D){return p.modifiersData[D.name]=Object.assign({},D.data)});for(var T=0;T<p.orderedModifiers.length;T++){if(p.reset===!0){p.reset=!1,T=-1;continue}var $=p.orderedModifiers[T],P=$.fn,k=$.options,A=k===void 0?{}:k,H=$.name;typeof P=="function"&&(p=P({state:p,options:A,name:H,instance:y})||p)}}}},update:XY(function(){return new Promise(function(I){y.forceUpdate(),I(p)})}),destroy:function(){w(),v=!0}};if(!n_(a,c))return y;y.setOptions(f).then(function(I){!v&&f.onFirstUpdate&&f.onFirstUpdate(I)});function _(){p.orderedModifiers.forEach(function(I){var O=I.name,S=I.options,E=S===void 0?{}:S,T=I.effect;if(typeof T=="function"){var $=T({state:p,name:O,instance:y,options:E}),P=function(){};h.push($||P)}})}function w(){h.forEach(function(I){return I()}),h=[]}return y}}var ZY=[wY,BY,bY,aY,DY,kY,HY,mY,LY],QY=YY({defaultModifiers:ZY});function eZ(e){let t=_e(null),n=_e(null);return gt(()=>{jt(r=>{if(!n.value||!t.value)return;let o=n.value.el||n.value,s=t.value.el||t.value;if(!(s instanceof HTMLElement)||!(o instanceof HTMLElement))return;let{destroy:l}=QY(s,o,e);r(l)})}),[t,n]}const tZ=ve({data(){return{query:"",data:""}},emits:["addContributor","createContributor","close"],setup(){let[e,t]=eZ({placement:"bottom-end",strategy:"fixed",modifiers:[{name:"offset",options:{offset:[0,10]}},{name:"sameWidth",enabled:!0,fn:({state:n})=>{n.styles.popper.width=`${n.rects.reference.width}px`},phase:"beforeWrite",requires:["computeStyles"]}]});return{dispatch:it().dispatch,state:yt({contributors:G.contributors.contributors,episodeContributions:G.episode.contributions}),trigger:e,container:t}},components:{CheckIcon:q9,XIcon:Da,ChevronDownIcon:k2,Combobox:Z2,ComboboxButton:Q2,ComboboxInput:e$,ComboboxLabel:NU,ComboboxOption:n$,ComboboxOptions:t$,UserCircleIcon:F2,Image},computed:{filteredContributors(){return[...this.query.length>0?[{id:null,avatar_url:null,realname:`${this.__("Create: ","podlove-podcasting-plugin-for-wordpress")}${this.query}`}]:[],...this.state.contributors.filter(e=>!this.state.episodeContributions.some(t=>t.contributor_id&&t.contributor_id.toString()===e.id.toString())).filter(e=>!this.query||((e==null?void 0:e.realname)||"").toUpperCase().includes(this.query.toUpperCase()))]}},watch:{data(e){e.id?this.$emit("addContributor",e):this.$emit("createContributor",this.query)}},methods:{filterContributors(e){this.query=Y.exports.get(e,["target","value"],"")},close(){this.$emit("close")}}}),nZ={class:"block hover:bg-gray-50"},rZ={class:"flex items-center px-4 py-4 sm:px-6"},oZ={class:"flex min-w-0 flex-1 items-center"},iZ={class:"min-w-0 flex-1 px-4 md:grid md:grid-cols-2 md:gap-4"},sZ={class:"relative mt-2 max-w-sm"},lZ={ref:"container"},aZ={class:"flex items-center"},uZ=["src","onError"],cZ={class:"flex space-x-2 justify-end"};function dZ(e,t,n,r,o,s){const l=X("ComboboxLabel"),a=X("ComboboxInput"),c=X("ChevronDownIcon"),f=X("ComboboxButton"),p=X("UserCircleIcon"),h=X("CheckIcon"),v=X("ComboboxOption"),y=X("ComboboxOptions"),_=X("Combobox"),w=X("x-icon");return N(),V("div",nZ,[g("div",rZ,[g("div",oZ,[g("div",iZ,[q(_,{as:"div",modelValue:e.data,"onUpdate:modelValue":t[1]||(t[1]=I=>e.data=I)},{default:ye(()=>[q(l,{class:"block text-sm font-medium leading-6 text-gray-900"},{default:ye(()=>[Ge(U(e.__("Select Contributor","podlove-podcasting-plugin-for-wordpress")),1)]),_:1}),g("div",sZ,[q(a,{ref:"trigger",class:"w-full rounded-md border-0 bg-white py-1.5 pl-3 pr-12 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6",onChange:t[0]||(t[0]=I=>e.filterContributors(I)),displayValue:()=>e.query},null,8,["displayValue"]),q(f,{class:"absolute inset-y-0 right-0 flex items-center rounded-r-md px-2 focus:outline-none"},{default:ye(()=>[q(c,{class:"h-5 w-5 text-gray-400","aria-hidden":"true"})]),_:1})]),g("div",lZ,[e.filteredContributors.length>0?(N(),bt(y,{key:0,class:"absolute max-w-sm z-50 mt-1 max-h-56 w-full overflow-auto rounded-md bg-white py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm"},{default:ye(()=>[(N(!0),V(Fe,null,Mt(e.filteredContributors,I=>(N(),bt(v,{key:I.id||"create",value:I,as:"template"},{default:ye(({active:O,selected:S})=>[g("li",{class:wt(["relative cursor-default select-none py-2 pl-3 pr-9",O?"bg-indigo-600 text-white":"text-gray-900"])},[g("div",aZ,[I.avatar_url?(N(),V("img",{key:0,src:I.avatar_url,alt:"",class:"h-6 w-6 flex-shrink-0 rounded-full",onError:E=>I.avatar_url=""},null,40,uZ)):qe("",!0),I.avatar_url?qe("",!0):(N(),bt(p,{key:1,class:"h-6 w-6 flex-shrink-0 rounded-full text-gray-500"})),g("span",{class:wt(["ml-3 truncate",S&&"font-semibold"])},U(I.realname),3)]),S?(N(),V("span",{key:0,class:wt(["absolute inset-y-0 right-0 flex items-center pr-4",O?"text-white":"text-indigo-600"])},[q(h,{class:"h-5 w-5","aria-hidden":"true"})],2)):qe("",!0)],2)]),_:2},1032,["value"]))),128))]),_:1})):qe("",!0)],512)]),_:1},8,["modelValue"])])]),g("div",cZ,[g("button",{class:"text-red-600",onClick:t[2]||(t[2]=I=>e.close())},[q(w,{class:"w-5 h-5"})])])])])}var fZ=Be(tZ,[["render",dZ]]);const pZ=ve({components:{Module:Nn,PodloveButton:Vn,PlusSmIcon:Lv,Contribution:KJ,AddContribution:fZ},data(){return{addContributorInput:!1}},setup(){return{dispatch:it().dispatch,state:yt({contributions:G.episode.contributions,roles:G.contributors.roles,groups:G.contributors.groups})}},created(){this.dispatch(ix())},methods:{showAddContributor(){this.addContributorInput=!0},addContributor(e){this.addContributorInput=!1,this.dispatch(zE(e))},createContributor(e){this.addContributorInput=!1,this.dispatch(hD(e))},closeAddContributor(){this.addContributorInput=!1}}}),hZ={role:"list",class:"divide-y divide-gray-200"},mZ={key:0,class:"mb-0"},vZ={class:"py-5 px-6 border-t border-gray-200"};function gZ(e,t,n,r,o,s){const l=X("Contribution"),a=X("AddContribution"),c=X("plus-sm-icon"),f=X("podlove-button"),p=X("module");return N(),bt(p,{name:"chapters",title:e.__("Contributors","podlove-podcasting-plugin-for-wordpress"),class:"overflow-hidden"},{actions:ye(()=>[]),default:ye(()=>[g("ul",hZ,[(N(!0),V(Fe,null,Mt(e.state.contributions,(h,v)=>(N(),V("li",{class:"mb-0",key:h.position},[h!=null&&h.contributor_id?(N(),bt(l,{key:0,data:h,first:v===0,last:v===e.state.contributions.length-1},null,8,["data","first","last"])):qe("",!0)]))),128)),e.addContributorInput?(N(),V("li",mZ,[q(a,{onAddContributor:t[0]||(t[0]=h=>e.addContributor(h)),onCreateContributor:t[1]||(t[1]=h=>e.createContributor(h)),onClose:t[2]||(t[2]=h=>e.closeAddContributor())})])):qe("",!0)]),g("div",vZ,[q(f,{variant:"primary",onClick:t[3]||(t[3]=h=>e.showAddContributor())},{default:ye(()=>[q(c,{class:"-ml-0.5 mr-2 h-4 w-4","aria-hidden":"true"}),Ge(" "+U(e.__("Add Contributor","podlove-podcasting-plugin-for-wordpress")),1)]),_:1})])]),_:1},8,["title"])}var yZ=Be(pZ,[["render",gZ]]);const bZ=ve({setup(){return{state:yt({slug:G.episode.slug,baseUri:G.settings.mediaFileBaseUri}),dispatch:it().dispatch}},methods:{updateSlug(e){this.dispatch($t({prop:"slug",value:e.target.value})),this.dispatch(Dx())}},computed:{assetPrefix(){var n;let e=(n=this.state.baseUri)==null?void 0:n.replace(/https?:\/\//i,"").trim();if(!e)return"";const t=e.trim().replace(/\/+$/g,"").lastIndexOf("/");return e.length>30&&t>-1&&(e=e.slice(t)),e}}}),_Z={for:"filename_slug",class:"block text-sm font-medium leading-6 text-gray-900 sm:pt-1.5"},wZ={class:"mt-2 sm:col-span-2 sm:mt-0"},SZ={class:"flex rounded-md shadow-sm ring-1 ring-inset ring-gray-300 focus-within:ring-2 focus-within:ring-inset focus-within:ring-indigo-600"},EZ={class:"flex select-none items-center pl-3 text-gray-500 sm:text-sm"},xZ=["value"],$Z=g("span",{class:"flex slect-none items-center text-gray-500 sm:text-sm pr-2"},".ext",-1);function CZ(e,t,n,r,o,s){return N(),V(Fe,null,[g("label",_Z,U(e.__("Filename / Slug","podlove-podcasting-plugin-for-wordpress")),1),g("div",wZ,[g("div",SZ,[g("span",EZ,U(e.assetPrefix),1),g("input",{type:"text",name:"filename_slug",id:"filename_slug",autocomplete:"filename_slug",class:"block flex-1 border-0 bg-transparent py-1.5 pl-1 text-gray-900 placeholder:text-gray-400 focus:ring-0 sm:text-sm sm:leading-6",placeholder:"",value:e.state.slug,onInput:t[0]||(t[0]=l=>e.updateSlug(l))},null,40,xZ),$Z])])],64)}var TZ=Be(bZ,[["render",CZ]]);const OZ=ve({components:{PodloveButton:Vn,UploadIcon:R2},setup(){return{state:yt({}),dispatch:it().dispatch}},methods:{uploadIntent(){this.dispatch(b7())}},computed:{}}),AZ={for:"mediafile_upload",class:"block text-sm font-medium leading-6 text-gray-900 sm:pt-1.5"},IZ={class:"mt-2 sm:col-span-2 sm:mt-0"};function PZ(e,t,n,r,o,s){const l=X("upload-icon"),a=X("podlove-button");return N(),V(Fe,null,[g("label",AZ,U(e.__("Upload","podlove-podcasting-plugin-for-wordpress")),1),g("div",IZ,[g("div",null,[q(a,{variant:"primary",onClick:e.uploadIntent,class:"ml-1"},{default:ye(()=>[q(l,{class:"-ml-0.5 mr-2 h-4 w-4","aria-hidden":"true"}),Ge(" "+U(e.__("Upload Media File","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["onClick"])])])],64)}var kZ=Be(OZ,[["render",PZ]]);const RZ={},LZ={class:"text-center"},NZ=g("svg",{class:"mx-auto h-12 w-12 text-gray-400",fill:"none",viewBox:"0 0 24 24",strokeWidth:"{1.5}",stroke:"currentColor"},[g("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.42 15.17L17.25 21A2.652 2.652 0 0021 17.25l-5.877-5.877M11.42 15.17l2.496-3.03c.317-.384.74-.626 1.208-.766M11.42 15.17l-4.655 5.653a2.548 2.548 0 11-3.586-3.586l6.837-5.63m5.108-.233c.55-.164 1.163-.188 1.743-.14a4.5 4.5 0 004.486-6.336l-3.276 3.277a3.004 3.004 0 01-2.25-2.25l3.276-3.276a4.5 4.5 0 00-6.336 4.486c.091 1.076-.071 2.264-.904 2.95l-.102.085m-1.745 1.437L5.909 7.5H4.5L2.25 3.75l1.5-1.5L7.5 4.5v1.409l4.26 4.26m-1.745 1.437l1.745-1.437m6.615 8.206L15.75 15.75M4.867 19.125h.008v.008h-.008v-.008z"})],-1),MZ={class:"mt-2 text-sm font-semibold text-gray-900"},DZ={class:"mt-1 text-sm text-gray-500"};function FZ(e,t){return N(),V("div",LZ,[NZ,g("h3",MZ,U(e.__("No Assets","podlove-podcasting-plugin-for-wordpress")),1),g("p",DZ,U(e.__("Please go to Podlove \u2192 Episode Assets and define at least one audio asset.","podlove-podcasting-plugin-for-wordpress")),1)])}var BZ=Be(RZ,[["render",FZ]]);const UZ=ve({components:{CheckCircleIcon:Kq,XCircleIcon:j$,CloudIcon:L2,AssetsEmptyState:BZ},setup(){return{state:yt({files:G.mediafiles.files,duration:G.episode.duration}),dispatch:it().dispatch}},methods:{handleToggle(e){const t=e.target,n=t.checked,r=parseInt(t.value);n?this.dispatch(v7(r)):this.dispatch(g7(r))},handleVerify(e){this.dispatch(y7(e))},fileSize(e){const t=e.size;if(!t||t<1)return"???";var n=t/1024;if(n<500)return n.toFixed(2)+" kB";var r=n/1024;return r.toFixed(2)+" MB"}},computed:{files(){return this.state.files},hasFiles(){return this.files.length>0},duration(){const e="--:--:--.---";if(!this.state.duration)return e;const t=Nt.fromString(this.state.duration);return t.totalMs===0?e:t.pretty}}}),jZ={for:"assets",class:"block text-sm font-medium leading-6 text-gray-900 sm:pt-1.5"},HZ={class:"mt-2 sm:col-span-2 sm:mt-0"},VZ={key:0},WZ={class:"min-w-full table-fixed divide-y divide-gray-300"},zZ={scope:"col",class:"py-3.5 pl-3 text-left text-sm font-semibold text-gray-900"},qZ={scope:"col",class:"py-3.5 pr-3 text-left text-sm font-semibold text-gray-900"},KZ={scope:"col",class:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900"},GZ=g("th",{scope:"col",class:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900"},null,-1),XZ={class:"divide-y divide-gray-200 bg-white"},JZ={class:"relative px-7 sm:w-12 sm:px-6"},YZ={key:0,class:"inline-flex items-center animate-pulse text-green-600 absolute left-[-14px] top-1/2 -mt-2.5"},ZZ=["value","checked"],QZ={class:"text-sm"},eQ={class:"whitespace-nowrap px-3 py-4 text-sm text-gray-500"},tQ={class:"flex flex-col"},nQ=["href"],rQ={class:"flex"},oQ={key:3},iQ={class:"whitespace-nowrap px-3 py-4 text-sm text-gray-500"},sQ=["onClick"],lQ={class:"mt-3 text-sm leading-6 text-gray-600"};function aQ(e,t,n,r,o,s){const l=X("CloudIcon"),a=X("CheckCircleIcon"),c=X("XCircleIcon"),f=X("AssetsEmptyState");return N(),V(Fe,null,[g("label",jZ,U(e.__("Assets","podlove-podcasting-plugin-for-wordpress")),1),g("div",HZ,[e.hasFiles?(N(),V("div",VZ,[g("table",WZ,[g("thead",null,[g("tr",null,[g("th",zZ,U(e.__("Enable","podlove-podcasting-plugin-for-wordpress")),1),g("th",qZ,U(e.__("Asset","podlove-podcasting-plugin-for-wordpress")),1),g("th",KZ,U(e.__("File","podlove-podcasting-plugin-for-wordpress")),1),GZ])]),g("tbody",XZ,[(N(!0),V(Fe,null,Mt(e.files,p=>(N(),V("tr",{key:p.asset_id,class:wt({"opacity-50":!p.enable})},[g("td",JZ,[p.is_verifying?(N(),V("div",YZ,[q(l,{class:"h-5 w-5","aria-hidden":"true"})])):qe("",!0),g("input",{type:"checkbox",class:"absolute left-4 top-1/2 -mt-2 h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-600",value:p.asset_id,checked:p.enable,onClick:t[0]||(t[0]=(...h)=>e.handleToggle&&e.handleToggle(...h))},null,8,ZZ)]),g("td",QZ,U(p.asset),1),g("td",eQ,[g("div",tQ,[g("a",{href:p.url,target:"_blank",class:"text-gray-700 underline"},U(p.url),9,nQ),g("span",rQ,[p.size>0?(N(),bt(a,{key:0,class:"mr-1.5 h-5 w-5 flex-shrink-0 text-green-400","aria-hidden":"true"})):(N(),bt(c,{key:1,class:wt(["mr-1.5 h-5 w-5 flex-shrink-0",{"text-gray-400":!p.enable,"text-red-400":p.enable}]),"aria-hidden":"true"},null,8,["class"])),p.size?(N(),V("span",oQ,U(e.fileSize(p)),1)):(N(),V("span",{key:2,class:wt({"text-gray-400":!p.enable,"text-red-400":p.enable})},U(e.__("File not found","podlove-podcasting-plugin-for-wordpress")),3))])])]),g("td",iQ,[g("button",{type:"button",class:"inline-flex items-center rounded-md bg-white px-2.5 py-1.5 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50 disabled:cursor-not-allowed disabled:opacity-30 disabled:hover:bg-white",onClick:()=>e.handleVerify(p.asset_id)},U(e.__("Verify","podlove-podcasting-plugin-for-wordpress")),9,sQ)])],2))),128))])]),g("p",lQ,U(e.__("Duration:","podlove-podcasting-plugin-for-wordpress"))+" "+U(e.duration),1)])):(N(),bt(f,{key:1}))])],64)}var uQ=Be(UZ,[["render",aQ]]);const cQ=ve({components:{Module:Nn,RefreshIcon:I2,MediaSlug:TZ,MediaUpload:kZ,AssetsTable:uQ},setup(){return{state:yt({isInitializing:G.mediafiles.isInitializing,modules:G.settings.modules}),dispatch:it().dispatch}},computed:{isInitializing(){return this.state.isInitializing},isMediaUploadEnabled(){var e;return(e=this.state.modules)==null?void 0:e.includes("wordpress_file_upload")}},created(){this.dispatch(p7())}}),dQ={key:0,class:"w-full flex justify-center m-12 text-center"},fQ={class:"animate-pulse mt-4 flex space-x-4"},pQ={key:1},hQ={class:"px-6"},mQ={class:"mt-10 sm:mt-0 space-y-8 border-b border-gray-900/10 pb-12 sm:space-y-0 sm:divide-y sm:divide-gray-900/10 sm:pb-0"},vQ={class:"sm:grid sm:grid-cols-[175px_auto_auto] sm:items-start sm:gap-4 sm:py-6"},gQ={key:0,class:"sm:grid sm:grid-cols-[175px_auto_auto] sm:items-start sm:gap-4 sm:py-6"},yQ={class:"sm:grid sm:grid-cols-[175px_auto_auto] sm:items-start sm:gap-4 sm:py-6"};function bQ(e,t,n,r,o,s){const l=X("RefreshIcon"),a=X("MediaSlug"),c=X("MediaUpload"),f=X("AssetsTable"),p=X("module");return N(),bt(p,{name:"mediafiles",title:"Media Files"},{default:ye(()=>[g("div",null,[e.isInitializing?(N(),V("div",dQ,[g("div",fQ,[q(l,{class:"animate-spin h-5 w-5 mr-3"}),Ge(" "+U(e.__("Loading...","podlove-podcasting-plugin-for-wordpress")),1)])])):(N(),V("div",pQ,[g("div",hQ,[g("div",mQ,[g("div",vQ,[q(a)]),e.isMediaUploadEnabled?(N(),V("div",gQ,[q(c)])):qe("",!0),g("div",yQ,[q(f)])])])]))])]),_:1})}var _Q=Be(cQ,[["render",bQ]]);const wQ=ve({name:"PodloveCombobox",components:{Combobox:Z2,ComboboxButton:Q2,ComboboxInput:e$,ComboboxOption:n$,ComboboxOptions:t$,CheckIcon:Kd,SelectorIcon:Gd},props:{options:Array,selectValues:Array,placeholder:{type:String,default:"Select an option"},multiple:{type:Boolean,default:!1},error:String},computed:{label(){var t;const e=(t=this.selectValues)==null?void 0:t.length;return e===0?"No option is selected":e===1?"One option is selected":(e==null?void 0:e.toString())+" options are selected"},filterOptions(){var e;return this.query===""?this.options:(e=this.options)==null?void 0:e.filter(t=>t.title.toLowerCase().includes(this.query.toLowerCase()))}},data(){return{query:""}},methods:{selectItem(e){this.$emit("update",e)},onChange(e){this.query=e.target.value},resetQuery(){this.query=""}}}),SQ={class:"relative mt-1 focus-visible:border-indigo-500 focus:ring-indigo-500"},EQ={class:"shadow-sm flex sm:text-sm rounded-md absolute inset-y-0 right-10 items-center pr-2 pointer-events-none"},xQ={key:0,class:"cursor-default select-none relative py-2 px-4 text-gray-700"},$Q={key:0,class:"flex absolute inset-y-0 left-0 items-center pl-3 text-amber-600"},CQ={key:0,class:"text-xs text-red-400 mt-1"};function TQ(e,t,n,r,o,s){const l=X("ComboboxInput"),a=X("SelectorIcon"),c=X("ComboboxButton"),f=X("CheckIcon"),p=X("ComboboxOption"),h=X("ComboboxOptions"),v=X("Combobox",!0);return N(),bt(v,{"model-value":e.selectValues,multiple:e.multiple,"onUpdate:modelValue":t[0]||(t[0]=y=>e.selectItem(y))},{default:ye(()=>[g("div",SQ,[q(c,{class:"w-full flex items-center",onClick:e.resetQuery},{default:ye(()=>[q(l,{onChange:e.onChange,class:"relative py-2 pl-3 w-full bg-white rounded-lg shadow-md cursor-default sm:text-sm border-gray-300"},null,8,["onChange"]),g("div",EQ,U(e.label),1),q(a,{class:"w-5 h-5 text-gray-400","aria-hidden":"true"})]),_:1},8,["onClick"]),q(Ei,{"leave-active-class":` 149 149 transition 150 150 duration-100 … … 154 154 `,"leave-to-class":` 155 155 opacity-0 156 `},{default:ye(()=>[q(h,{class:"-top-2 transform -translate-y-full overflow-auto absolute z-10 py-1 mt-1 w-full max-h-60 text-base bg-white rounded-md ring-1 ring-black ring-opacity-5 shadow-lg focus:outline-none sm:text-sm"},{default:ye(()=>{var y;return[((y=e.filterOptions)==null?void 0:y.length)===0&&e.query!==""?(N(),V("div", EQ," Nothing found. ")):qe("",!0),(N(!0),V(Fe,null,Mt(e.filterOptions,_=>(N(),bt(p,{key:_.title,value:_.id,as:"template"},{default:ye(({active:w,selected:I})=>[g("li",{class:wt([w?"bg-amber-100 text-amber-900":"text-gray-900","relative cursor-default select-none py-2 pl-10 pr-4"])},[g("span",{class:wt([I?"font-medium":"font-normal","block truncate"])},U(_.title),3),I?(N(),V("span",xQ,[q(f,{"aria-hidden":"true",class:"w-5 h-5"})])):qe("",!0)],2)]),_:2},1032,["value"]))),128))]}),_:1})]),_:1}),e.error?(N(),V("div",$Q,U(e.error),1)):qe("",!0)])]),_:1},8,["model-value","multiple"])}var TQ=Be(_Q,[["render",CQ]]);const OQ=ve({name:"PodloveTag",components:{XCircleIcon:j$},props:{value:String,id:Number},methods:{removeTag(){this.$emit("removeTag",this.id)}}}),AQ={class:"m-1 inline-flex"},IQ={class:"flex items-center text-xs font-bold uppercase px-3 py-1 bg-indigo-200 text-indigo-700 rounded-full"};function PQ(e,t,n,r,o,s){const l=X("XCircleIcon");return N(),V("div",AQ,[g("span",IQ,[Xe(U(e.value)+" ",1),g("button",{class:"ml-1",onClick:t[0]||(t[0]=(...a)=>e.removeTag&&e.removeTag(...a))},[q(l,{class:"w-5 h-5"})])])])}var kQ=Be(OQ,[["render",PQ]]);const RQ=ve({components:{Module:Nn,PodloveListbox:TQ,Tag:kQ},setup(){return{state:yt({episodeList:G.relatedEpisodes.episodeList,selectEpisodes:G.relatedEpisodes.selectEpisode}),dispatch:it().dispatch}},created(){this.dispatch(x7())},computed:{fullEpisodeList(){return this.state.episodeList.length==0?this.state.episodeList:this.state.selectEpisodes.length==0?[{id:0,title:"Select all episodes"},...this.state.episodeList]:[{id:-1,title:"Deselect all episodes"},...this.state.episodeList]},selectEpisodeNames(){var e;return(e=this.state.episodeList)==null?void 0:e.filter(t=>this.state.selectEpisodes.includes(t.id))}},methods:{updateRelEpisodes(e){e.includes(0)?this.state.selectEpisodes=this.state.episodeList.map(function(t){return t.id}):e.includes(-1)?this.state.selectEpisodes=[]:this.state.selectEpisodes=e,this.dispatch(Ux(this.state.selectEpisodes))},removeTag(e){const t=this.state.selectEpisodes.findIndex(n=>n==e);this.state.selectEpisodes.splice(t,1)}}}),LQ={class:"p-3"},NQ={class:"mt-2 text-sm text-gray-500"},MQ={class:"pl-3 pb-3"};function DQ(e,t,n,r,o,s){const l=X("PodloveListbox"),a=X("Tag"),c=X("module");return N(),bt(c,{name:"relatedEpisodes",title:e.__("Related episodes","podlove-podcasting-plugin-for-wordpress")},{default:ye(()=>[g("div",LQ,[g("div",null,[q(l,{placeholder:"Select episode",options:e.fullEpisodeList,selectValues:e.state.selectEpisodes,onUpdate:t[0]||(t[0]=f=>e.updateRelEpisodes(f)),multiple:""},null,8,["options","selectValues"])]),g("p",NQ,U(e.__("Select related episodes to this episode.","podlove-podcasting-plugin-for-wordpress")),1)]),g("div",MQ,[(N(!0),V(Fe,null,Mt(e.selectEpisodeNames,f=>(N(),bt(a,{value:f.title,id:Number(f.id),onRemoveTag:t[1]||(t[1]=p=>e.removeTag(p))},null,8,["value","id"]))),256))])]),_:1},8,["title"])}var FQ=Be(RQ,[["render",DQ]]);const BQ=ve({components:{PodloveButton:Vn},setup(){return{dispatch:it().dispatch}},methods:{clearSoundbite(){this.dispatch($t({prop:"soundbite_start",value:null})),this.dispatch($t({prop:"soundbite_duration",value:null})),this.dispatch($t({prop:"soundbite_title",value:null}))}}});function UQ(e,t,n,r,o,s){const l=X("podlove-button");return N(),bt(l,{variant:"secondary",size:"small",onClick:t[0]||(t[0]=a=>e.clearSoundbite())},{default:ye(()=>[Xe(U(e.__("Clear","podlove-podcasting-plugin-for-wordpress")),1)]),_:1})}var jQ=Be(BQ,[["render",UQ]]);const HQ=ve({setup(){return{state:yt({soundbite_start:G.episode.soundbite_start,soundbite_duration:G.episode.soundbite_duration,soundbite_title:G.episode.soundbite_title}),dispatch:it().dispatch}},computed:{soundbite_end(){if(this.state.soundbite_start!=null&&this.state.soundbite_duration!=null){let e=Nt.fromString(this.state.soundbite_start).totalMs,t=Nt.fromString(this.state.soundbite_duration).totalMs,n=e+t;return new Nt(n).pretty}return""}},methods:{updateSoundbiteStart(e){const t=e.target.value;let n=Nt.fromString(t).totalMs;this.dispatch($t({prop:"soundbite_start",value:new Nt(n).pretty}))},updateSoundbiteEnd(e){const t=e.target.value;let n=Nt.fromString(t).totalMs,r=Nt.fromString(this.state.soundbite_start).totalMs;if(r<n){let o=n-r;this.dispatch($t({prop:"soundbite_duration",value:new Nt(o).pretty}))}},updateSoundbiteDuration(e){const t=e.target.value;let n=Nt.fromString(t).totalMs;this.dispatch($t({prop:"soundbite_duration",value:new Nt(n).pretty}))},updateSoundbiteTitle(e){this.dispatch($t({prop:"soundbite_title",value:e.target.value}))}}}),VQ={class:"grid md:grid-cols-4 md:grid-rows-1 sm:grid-rows-4 p-3"},WQ={class:"mb-5 ml-5"},zQ={for:"soundbite-start",class:"block text-sm font-medium text-gray-700"},qQ={class:"mt-1"},KQ=["value"],GQ={class:"mb-5 ml-5"},XQ={for:"soundbite-end",class:"block text-sm font-medium text-gray-700"},JQ={class:"mt-1"},YQ=["value"],ZQ={class:"mb-5 ml-5"},QQ={for:"soundbite-duration",class:"block text-sm font-medium text-gray-700"},eee={class:"mt-1"},tee=["value"],nee={class:"mb-5 ml-5 md:mr-5"},ree={for:"soundbite-title",class:"block text-sm font-medium text-gray-700"},oee={class:"text-xs"},iee={class:"mt-1"},see=["value"];function lee(e,t,n,r,o,s){return N(),V("div",VQ,[g("div",WQ,[g("label",zQ,U(e.__("Start","podlove-podcasting-plugin-for-wordpress")),1),g("div",qQ,[g("input",{name:"soundbite-start",type:"text",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",placeholder:"HH:MM:SS",value:e.state.soundbite_start,onChange:t[0]||(t[0]=l=>e.updateSoundbiteStart(l))},null,40,KQ)])]),g("div",GQ,[g("label",XQ,U(e.__("End","podlove-podcasting-plugin-for-wordpress")),1),g("div",JQ,[g("input",{name:"soundbite-end",type:"text",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",placeholder:"HH:MM:SS",value:e.soundbite_end,onChange:t[1]||(t[1]=l=>e.updateSoundbiteEnd(l))},null,40,YQ)])]),g("div",ZQ,[g("label",QQ,U(e.__("Duration","podlove-podcasting-plugin-for-wordpress")),1),g("div",eee,[g("input",{name:"soundbite-duration",type:"text",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",placeholder:"HH:MM:SS",value:e.state.soundbite_duration,onChange:t[2]||(t[2]=l=>e.updateSoundbiteDuration(l))},null,40,tee)])]),g("div",nee,[g("label",ree,[Xe(U(e.__("Soundbite title","podlove-podcasting-plugin-for-wordpress"))+" ",1),g("span",oee,U(e.__("(optional)","podlove-podcasting-plugin-for-wordpress")),1)]),g("div",iee,[g("input",{name:"soundbite-title",type:"text",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",value:e.state.soundbite_title,onChange:t[3]||(t[3]=l=>e.updateSoundbiteTitle(l))},null,40,see)])])])}var aee=Be(HQ,[["render",lee]]);const uee=ve({components:{Module:Nn,SoundbiteForm:aee,SoundbiteClear:jQ},setup(){return{dispatch:it().dispatch}},created(){this.dispatch(Od())}});function cee(e,t,n,r,o,s){const l=X("soundbite-clear"),a=X("soundbite-form"),c=X("module");return N(),bt(c,{name:"soundbite",title:e.__("Soundbite","podlove-podcasting-plugin-for-wordpress")},{actions:ye(()=>[q(l)]),default:ye(()=>[q(a)]),_:1},8,["title"])}var dee=Be(uee,[["render",cee]]);const fee=ve({components:{},setup(){return{state:yt({shows:G.shows.list,current:G.episode.currentShow}),dispatch:it().dispatch}},computed:{shows(){return this.state.shows},current(){return this.state.current||""}},methods:{setShow(e){this.dispatch($t({prop:"show",value:e!=null?e:""}))}},created(){this.dispatch(jx())}}),pee={class:"flex items-center"},hee=["checked"],mee={for:"podlove-show-default",class:"ml-2 block text-sm leading-6 text-gray-900"},vee={class:"flex items-center"},gee=["id","value","onInput","checked"],yee=["for"];function bee(e,t,n,r,o,s){return N(),V("div",null,[g("div",pee,[g("input",{id:"podlove-show-default",name:"podlove-episode-show",type:"radio",class:"h-4 w-4 border-gray-300 text-indigo-600 focus:ring-indigo-600",value:null,onInput:t[0]||(t[0]=l=>e.setShow(null)),checked:e.current===""},null,40,hee),g("label",mee,U(e.__("Podcast (no show assignment)","podlove-podcasting-plugin-for-wordpress")),1)]),(N(!0),V(Fe,null,Mt(e.shows,l=>(N(),V("div",vee,[g("input",{id:"podlove-show-"+l.slug,name:"podlove-episode-show",type:"radio",class:"h-4 w-4 border-gray-300 text-indigo-600 focus:ring-indigo-600",value:l.id,onInput:a=>e.setShow(l.slug),checked:l.slug===e.current},null,40,gee),g("label",{for:"podlove-show-"+l.slug,class:"ml-2 block text-sm leading-6 text-gray-900"},U(l.title),9,yee)]))),256))])}var _ee=Be(fee,[["render",bee],["__scopeId","data-v-7b1f1f84"]]),Lt=(e=>(e.cc0="Public Domain License",e.pdmark="Public Domain Mark License",e.cc3="Creative Commons 3.0 and earlier",e.cc4="Creative Commons 4.0",e))(Lt||{}),hr=(e=>(e.yes="Yes",e.no="No",e))(hr||{}),hn=(e=>(e.yes="Yes",e.yesbutshare="Yes, as long as others share alike",e.no="No",e))(hn||{}),cn=(e=>(e.Episode="Episode",e.Podcast="Podcast",e))(cn||{});const js=[{symbol:"international",name:"International",version:"3.0"},{symbol:"ar",name:"Argentina",version:"2.5"},{symbol:"au",name:"Australia",version:"3.0"},{symbol:"at",name:"Austria",version:"3.0"},{symbol:"be",name:"Belgium",version:"2.0"},{symbol:"br",name:"Brazil",version:"3.0"},{symbol:"bg",name:"Bulgaria",version:"2.5"},{symbol:"ca",name:"Canada",version:"2.5"},{symbol:"cl",name:"Chile",version:"3.0"},{symbol:"cn",name:"China Mainland",version:"3.0"},{symbol:"co",name:"Colombia",version:"2.5"},{symbol:"cr",name:"Costa Rica",version:"3.0"},{symbol:"hr",name:"Croatia",version:"3.0"},{symbol:"cz",name:"Czech Republic",version:"3.0"},{symbol:"dk",name:"Denmark",version:"2.5"},{symbol:"ec",name:"Ecuador",version:"3.0"},{symbol:"eg",name:"Egypt",version:"3.0"},{symbol:"ee",name:"Estonia",version:"3.0"},{symbol:"fi",name:"Finland",version:"1.0"},{symbol:"fr",name:"France",version:"3.0"},{symbol:"de",name:"Germany",version:"3.0"},{symbol:"gr",name:"Greece",version:"3.0"},{symbol:"gt",name:"Guatemala",version:"3.0"},{symbol:"hk",name:"Hong Kong",version:"3.0"},{symbol:"hu",name:"Hungary",version:"2.5"},{symbol:"igo",name:"IGO",version:"3.0"},{symbol:"in",name:"India",version:"2.5"},{symbol:"ie",name:"Ireland",version:"3.0"},{symbol:"il",name:"Israel",version:"2.5"},{symbol:"it",name:"Italy",version:"3.0"},{symbol:"jp",name:"Japan",version:"2.1"},{symbol:"lu",name:"Luxembourg",version:"3.0"},{symbol:"mk",name:"Macedonia",version:"2.5"},{symbol:"my",name:"Malaysia",version:"2.5"},{symbol:"mt",name:"Malta",version:"2.5"},{symbol:"mx",name:"Mexico",version:"2.5"},{symbol:"nl",name:"Netherlands",version:"3.0"},{symbol:"nz",name:"New Zealand",version:"3.0"},{symbol:"no",name:"Norway",version:"3.0"},{symbol:"pe",name:"Peru",version:"2.5"},{symbol:"ph",name:"Philippines",version:"3.0"},{symbol:"pl",name:"Poland",version:"3.0"},{symbol:"pt",name:"Portugal",version:"3.0"},{symbol:"pr",name:"Puerto Rico",version:"3.0"},{symbol:"ro",name:"Romania",version:"3.0"},{symbol:"rs",name:"Serbia",version:"3.0"},{symbol:"sg",name:"Singapore",version:"3.0"},{symbol:"si",name:"Slovenia",version:"2.5"},{symbol:"za",name:"South Africa",version:"2.5"},{symbol:"kp",name:"South Korea",version:"2.0"},{symbol:"es",name:"Spain",version:"3.0"},{symbol:"se",name:"Sweden",version:"2.5"},{symbol:"ch",name:"Switzerland",version:"3.0"},{symbol:"tw",name:"Taiwan",version:"3.0"},{symbol:"th",name:"Thailand",version:"3.0"},{symbol:"gb",name:"UK: England & Wales",version:"2.0"},{symbol:"gb_sc",name:"UK: Scotland",version:"2.5"},{symbol:"ug",name:"Uganda",version:"3.0"},{symbol:"us",name:"United States",version:"3.0"},{symbol:"vn",name:"Vietnam",version:"3.0"}],wee=ve({components:{Module:Nn},props:{scope:{type:String,default:cn.Episode}},setup(){return{state:yt({episodeLicenseName:G.episode.license_name,podcastLicenseName:G.podcast.license_name}),dispatch:it().dispatch}},created(){this.dispatch(Od())},computed:{getLicenseName(){return this.scope==cn.Episode?this.state.episodeLicenseName:this.state.podcastLicenseName}},methods:{updateLicenseName(e){this.scope===cn.Episode&&this.dispatch($t({prop:"license_name",value:e.target.value})),this.scope===cn.Podcast&&this.dispatch(Zl({prop:"license_name",value:e.target.value}))}}}),See={for:"episode-license-name",class:"block text-sm font-medium text-gray-700"},Eee={class:"mt-1"},xee=["value"];function $ee(e,t,n,r,o,s){return N(),V("div",null,[g("label",See,U(e.__("License name","podlove-podcasting-plugin-for-wordpress")),1),g("div",Eee,[g("input",{name:"episode-license-name",type:"text",value:e.getLicenseName,onInput:t[0]||(t[0]=(...l)=>e.updateLicenseName&&e.updateLicenseName(...l)),class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md"},null,40,xee)])])}var Cee=Be(wee,[["render",$ee]]);const Tee=ve({components:{Module:Nn},props:{scope:{type:String,default:cn.Episode}},setup(){return{state:yt({episodeLicenseUrl:G.episode.license_url,podcastLicenseUrl:G.podcast.license_url}),dispatch:it().dispatch}},created(){this.dispatch(Od())},computed:{getLicenseUrl(){return this.scope==cn.Episode?this.state.episodeLicenseUrl:this.state.podcastLicenseUrl}},methods:{updateLicenseUrl(e){this.scope===cn.Episode&&this.dispatch($t({prop:"license_url",value:e.target.value})),this.scope===cn.Podcast&&this.dispatch(Zl({prop:"license_url",value:e.target.value}))}}}),Oee={for:"episode-license-name",class:"block text-sm font-medium text-gray-700"},Aee={class:"mt-1"},Iee=["value"],Pee={class:"mt-2 text-sm text-gray-500"};function kee(e,t,n,r,o,s){return N(),V("div",null,[g("label",Oee,U(e.__("License url","podlove-podcasting-plugin-for-wordpress")),1),g("div",Aee,[g("input",{name:"episode-license-name",type:"text",value:e.getLicenseUrl,onInput:t[0]||(t[0]=(...l)=>e.updateLicenseUrl&&e.updateLicenseUrl(...l)),class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md"},null,40,Iee)]),g("p",Pee,U(e.__("Example: http://creativecommons.org/licenses/by/3.0/","podlove-podcasting-plugin-for-wordpress")),1)])}var Ree=Be(Tee,[["render",kee]]),Lee="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFgAAAAfCAMAAABUFvrSAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAPBQTFRFLy8v7+/vz8/PHx8fDw8P+vn3X19fj4+P39/fn5+fb29vT09Pr6+v+fn53t7eZWVl6urq/f395+fn5eXl9/f38fHxMTEx+/v7jo6Ozc3N2dnZ8/PzhISE/v7+5OTk9vXz6ejoPj4+kJCQ3d3d6unnxcXFi4uL0tLS5ubm9PT0QUFB4uLi1dXV7Ozsvr6+LCwsy8vL6urnnp6ezs7O+Pj48vLyenp69fX1+fj2urq6CgsJ09PTl5eXt7e31tbW4eHhjY2N9vb2U1NTGRkZTU1NbW1tioqKf39/ysrK6Oflv7+/Pz8/7erh////AAAA////iBrkuAAAAFB0Uk5T/////////////////////////////////////////////////////////////////////////////////////////////////////////wATc6Z5AAACrklEQVR42rSW53bbMAyFOVSRGnbsZji7e++992ALFsj7v00BaiTpsfzDtXGOEw3qI3B1QUqd0FriRNGftQQpwrXEebAHDr1qsC9tI48Nejq69+g/Re7B4czFbPfLZFytBKwVH1eFQTRF5MPvn45vqRWAhatMJwrI2fb4zds0IoYQctbHys/yCUuWp/oCp5AXKZEhcM4j5L8BELxmGX5M3h2mEQHBY4gYiX8RjUEgQLnD8jn0GqtBcM0yCC/NHcUWnPOH4z3VgIk09OBIRvdgy5Nk4AbBlrKWlshikYyubI9fNuBQYNGDOYoeHLFcpLEhKtJ4olLg0Jhkf3KjlQKKrAeXsUZ1CuZsi8GMeVZJuBKIqFFKykS7B+OdVgoehyBEAYOA+SWKxl5XZcpoLjim6jEj8tBpwbrkW5sbPTjV5JpbLtWEAlaeC86GwIofloFcnKIo2aX84+jixtmuifMBalhj6sEF2cRPIv8DXqJBTjO2VEMrRZ9xzgtT4GQrgFqRAh5QisOs/FGQK2BFQC3WmA/gVOMGzK4wbJyI3mlto3ST9Aj3Bj8RxRnyTuNiV5CXJhRXaHbF1mbnCvZDzZgqYWqLAvaeH2zAZgBs0vSNj5lLpvHxtYNx13kVRpEgOddg4NbnS7k3DdhhPR88v/Pi6MFhB3YM7grnemqepUCj0aYrfG8A3OrarBWVbla7h89v7/Qt7XmRMiGRIssFkPGpQ9eArR4Ai7DCk9XNt6toOdt+n0aIKwreXIJHU8n7LyFzLgKj6iK5QrFN1PB6bKFbj2vG5NNX97+tYgeRUpQDrcHJ1pcfjSZ3V7TnnWnYrD6avfi6os0UdWh3aeU0Trf2n169+XPp+Hz+u0L33xXTO5sf9x7/WjqeMXh2YU68vqSfXP69fFynNX67rSn+CjAANTLO7qEvlcgAAAAASUVORK5CYII=",Nee="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFgAAAAfCAMAAABUFvrSAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAPNQTFRFv7+/7+/vX19fDw8PHx8fn5+fLy8v39/fz8/Pb29vr6+vT09Pj4+P+fn5/f39ZWVl5eXlzs7O6urq8fHx9/f36ejovr6++/v7jY2N4+Pj2dnZp6enzc3Nenp69PT08/PzXFxc8vLyTk5OIyMj9fX13d3d5ubmXl5eDAwMNjY2JiYmra2t1NTUxcXF4uLiLCsrFxcXVVVV/v7+GRkZMTExW1tbyMjIt7e3np6ednZ2mJiY7Ozsjo6O1dXV3t7e7e3t09PTkJCQi4uL7u7uy8vLU1NTCgsJ4eHh1tbWioqKysrK5+fnf39/Pz8/7erh////AAAA7t9IFQAAArpJREFUeNq0ludy2zAQhA8dLJLl3u303nt3ejMuwPs/Te4AmrIzYn7YEjTUsIAfib1dgBDTQlqE9GchLUGKC2n/gD2AnztYGCzyNCaORz8eXlDkHmzU9KS+ezB5cWcuYCGZV9UAdcVPuLR+7+XVeYBJBWVORGkJ/Xzb737PPTCEYJMOmjdNB1IlGfhKwHwV/wOuUrJiqryzKe1vL7/OPULugPRs2pAPIEF2fwypjXRbMwiGjisMvRDbQuiU7j/Ye1TASUXowZi86MEqeqUEDIJ5SK6vH5ZHXVm9vl/AoY2mB3sXTQ9GHuuwxj7vFd14h4dLxdy5sVHAVFHVgyuEqKdguknKITBd1N1hgEqWqKS09fajLVJQs7HGOloG15HYiMgaC9FIGsEAGOm2kg7V9iVU6ebhh8c9ONXs9SxTloLDRWCk/k4PgW0efVFLVS52BsS1ydKpnhbtjPsV4rDGxVInEicJHXh0vHSxgNhUdeC6zcNCcwrMAeE0Yg2GQxL4FNVLlz/UocnxmakxS9cWQxSxNTGaAiZXOLIfRgFRkDsoD57tGLgOyM6Imj0zA0zqcg2yK3ztobPPu9Hxs6545Ic6l4ISGI3OPneCPFnAMACui8id15WPLk9Ey2uTWx24IYf5zrlOVNHxCKTzBWzoNxMcdVJiSsZiYxwfvukiTRuCUORKwrT0JgDJRC9YAzpDth4AG34nDnKF2PAkJ8hZG6OV2yeRFo5kqCufJwsXJYASnpIeClgPgfm0PLWuCJqv5Obqbj+71fQgyo5jUbGNCkBy6J0rYB7RbDC/oe1XO+Cjo2vvn85jBbF5saPUuew3+2W00sxlzRNn5r/wZPPytzktpiRgt5wq6eJ4befVp8+/zt22zn5XAK0gJks9Ppj83Pv6+9xteehLaDxaXVk/Pn9bTwv8dltQ+yvAAF/L4Ldao5NwAAAAAElFTkSuQmCC",Mee="/wp-content/plugins/podlove-publisher/client/dist/0_0.png",Dee="/wp-content/plugins/podlove-publisher/client/dist/0_1.png",Fee="/wp-content/plugins/podlove-publisher/client/dist/1_0.png",Bee="/wp-content/plugins/podlove-publisher/client/dist/1_1.png",Uee="/wp-content/plugins/podlove-publisher/client/dist/10_0.png",jee="/wp-content/plugins/podlove-publisher/client/dist/10_1.png";function Ul(e){if(e.type===null||e.type!="cc")return null;if(e.version===Lt.cc0)return"http://creativecommons.org/publicdomain/zero/1.0/";if(e.version===Lt.pdmark)return"http://creativecommons.org/publicdomain/mark/1.0/";if(e.version===Lt.cc3){let t="http://creativecommons.org/licenses/by";return e.optionCommercial===hr.no&&(t=t+"-nc"),e.optionModification===hn.yes?t=t+"/":e.optionModification===hn.no?t=t+"-nd/":t=t+"-sa/",e.optionJurisdication===null||e.optionJurisdication.symbol==="international"?t=t+"3.0/":t=t+e.optionJurisdication.version+"/"+e.optionJurisdication.symbol+"/",t+"deed.en"}if(e.version===Lt.cc4){let t="http://creativecommons.org/licenses/by";return e.optionCommercial==hr.no&&(t=t+"-nc"),e.optionModification==hn.yes?t=t+"/":e.optionModification==hn.no?t=t+"-nd/":t=t+"-sa/",t+"4.0"}return null}function r_(e,t){if(e.type===null||e.type!=="cc")return null;if(e.version===Lt.cc0)return Lee;if(e.version===Lt.pdmark)return Nee;if(e.optionModification===null||e.optionCommercial===null)return null;switch(e.optionModification){case hn.no:return e.optionCommercial===hr.no?Mee:Dee;case hn.yes:return e.optionCommercial===hr.no?Fee:Bee;case hn.yesbutshare:return e.optionCommercial===hr.no?Uee:jee}}function o_(e){const t=e.toLowerCase();if(t.indexOf("creativecommons.org")<0)return{type:null,version:null,optionCommercial:null,optionModification:null,optionJurisdication:null};let n=null;t.indexOf("/publicdomain/zero/")>=0?n=Lt.cc0:t.indexOf("/publicdomain/mark/")>=0?n=Lt.pdmark:t.indexOf("/4.0")>=0?n=Lt.cc4:n=Lt.cc3;const r=t.split("/").slice(4);let o=hr.yes;r[0].includes("nc")&&(o=hr.no);let s=hn.yes;r[0].includes("sa")?s=hn.yesbutshare:r[0].includes("nd")&&(s=hn.no);let l=js[0];if(r.length>2){const a=js.findIndex(c=>c.symbol===r[2]);a>0&&(l=js[a])}return{type:"cc",version:n,optionCommercial:o,optionModification:s,optionJurisdication:l}}const Hee=ve({components:{Module:Nn},props:{licenseData:{type:null,default:{type:"cc",version:Lt.pdmark,optionCommercial:null,optionModification:null,optionJurisdication:null}}},setup(){return{state:yt({baseUrl:G.runtime.baseUrl}),dispatch:it().dispatch}},computed:{licenseUrl(){return Ul(this.licenseData)},imageUrl(){return r_(this.licenseData,this.state.baseUrl)},isImageAvailable(){return r_(this.licenseData,this.state.baseUrl)!==null}}}),Vee={class:"mt-3"},Wee=g("div",{class:"mb-3 text-sm font-medium text-gray-700"}," License preview: ",-1),zee={key:0},qee={class:"mb-3 w-full"},Kee={class:"flex justify-center items-center"},Gee=["src"],Xee={class:"mb-3 w-full text-center"},Jee=g("p",{class:"text-sm font-medium text-gray-700"},"This work is licensend under ",-1),Yee=["href"],Zee={key:0},Qee=g("p",{class:"text-sm font-medium text-gray-700"},"No license selected!",-1),ete=[Qee];function tte(e,t,n,r,o,s){return N(),V("div",Vee,[Wee,e.isImageAvailable?(N(),V("div",zee,[g("div",null,[g("div",qee,[g("div",Kee,[g("img",{class:"text-center",src:`${e.imageUrl}`},null,8,Gee)])]),g("div",Xee,[Jee,g("a",{class:"text-sm font-medium text-gray-700",href:`${e.licenseUrl}`},U(e.licenseUrl),9,Yee)])]),e.isImageAvailable?qe("",!0):(N(),V("div",Zee,ete))])):qe("",!0)])}var nte=Be(Hee,[["render",tte]]);const rte=Object.entries(Lt).map(([e,t])=>({key:e,value:t})),ote=Object.entries(hr).map(([e,t])=>({key:e,value:t})),ite=Object.entries(hn).map(([e,t])=>({key:e,value:t})),ste=ve({components:{PodloveButton:Vn,Modal:ja,LicensePreview:nte},data(){return{PodloveLicenseVersionList:rte,PodloveLicenseOptionCommercialList:ote,PodloveLicenseOptionModificationList:ite,PodloveLicenseOptionJurisdication:js}},setup(){return{state:yt({episodeLicenseUrl:G.episode.license_url,podcastLicenseUrl:G.podcast.license_url}),dispatch:it().dispatch}},props:{scope:{type:String,default:cn.Episode}},computed:{isCommercialNModificationNeeded(){return this.getLicenseData().type==="cc"&&(this.getLicenseData().version===Lt.cc3||this.getLicenseData().version===Lt.cc4)},isJurisdicationNeeded(){return this.getLicenseData().type==="cc"&&this.getLicenseData().version===Lt.cc3}},methods:{updateVersion(e){let t=this.getLicenseData();switch(t.type="cc",e.target.value){case Lt.cc0:t.version=Lt.cc0;break;case Lt.pdmark:t.version=Lt.pdmark;break;case Lt.cc3:t.version=Lt.cc3;break;case Lt.cc4:t.version=Lt.cc4;break}this.updateLicenseDataNameNUrl(t)},updateCommercial(e){let t=this.getLicenseData();switch(e.target.value){case hr.yes:t.optionCommercial=hr.yes;break;case hr.no:t.optionCommercial=hr.no;break}this.updateLicenseDataUrl(t)},updateModification(e){let t=this.getLicenseData();switch(e.target.value){case hn.yes:t.optionModification=hn.yes;break;case hn.yesbutshare:t.optionModification=hn.yesbutshare;break;case hn.no:t.optionModification=hn.no;break}this.updateLicenseDataUrl(t)},updateJurisdication(e){let t=this.getLicenseData();const n=e.target.value,r=js.findIndex(o=>o.name===n);r!==void 0&&(t.optionJurisdication=js[r],this.updateLicenseDataUrl(t))},updateLicenseDataUrl(e){this.scope===cn.Episode&&this.dispatch($t({prop:"license_url",value:Ul(e)})),this.scope===cn.Podcast&&this.dispatch(Zl({prop:"license_url",value:Ul(e)}))},updateLicenseDataNameNUrl(e){this.scope===cn.Episode&&(this.dispatch($t({prop:"license_name",value:e.version})),this.dispatch($t({prop:"license_url",value:Ul(e)}))),this.scope===cn.Podcast&&(this.dispatch(Zl({prop:"license_name",value:e.version})),this.dispatch(Zl({prop:"license_url",value:Ul(e)})))},getLicenseData(){return this.scope===cn.Episode?this.state.episodeLicenseUrl===null||this.state.episodeLicenseUrl===void 0?{type:"cc",version:Lt.pdmark,optionCommercial:null,optionModification:null,optionJurisdication:null}:o_(this.state.episodeLicenseUrl):this.state.podcastLicenseUrl===null||this.state.podcastLicenseUrl===void 0?{type:"cc",version:Lt.pdmark,optionCommercial:null,optionModification:null,optionJurisdication:null}:o_(this.state.podcastLicenseUrl)}}}),lte={class:"border-gray-200 border-b pb-2 px-3 py-5"},ate={class:"text-lg leading-6 font-medium text-gray-900"},ute={class:"mb-3"},cte=g("label",{class:"block text-sm font-medium text-gray-700"}," Version: ",-1),dte=["value"],fte=["value"],pte={key:0,class:"mb-3"},hte=g("label",{class:"block text-sm font-medium text-gray-700"}," Allow modifications of your work? ",-1),mte=["value"],vte=["value"],gte={key:1,class:"mb-3"},yte=g("label",{class:"block text-sm font-medium text-gray-700"}," Allow commercial uses of your work? ",-1),bte=["value"],_te=["value"],wte={key:2,class:"mb-3"},Ste=g("label",{class:"block text-sm font-medium text-gray-700"}," License Jurisdiction ",-1),Ete=["value"],xte=["value"],$te={class:"mb-5"};function Cte(e,t,n,r,o,s){var a;const l=X("LicensePreview");return N(),V(Fe,null,[g("div",lte,[g("h3",ate,U(e.__("License Selector","podlove-podcasting-plugin-for-wordpress")),1)]),g("div",null,[g("div",ute,[cte,g("select",{value:e.getLicenseData().version,onInput:t[0]||(t[0]=c=>e.updateVersion(c)),class:"mt-1 block w-full py-2 px-3 border border-gray-300 bg-white rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"},[(N(!0),V(Fe,null,Mt(e.PodloveLicenseVersionList,(c,f)=>(N(),V("option",{value:c.value,key:`version-${f}`},U(c.value),9,fte))),128))],40,dte)]),e.isCommercialNModificationNeeded?(N(),V("div",pte,[hte,g("select",{value:e.getLicenseData().optionModification,onInput:t[1]||(t[1]=c=>e.updateModification(c)),class:"mt-1 block w-full py-2 px-3 border border-gray-300 bg-white rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"},[(N(!0),V(Fe,null,Mt(e.PodloveLicenseOptionModificationList,(c,f)=>(N(),V("option",{value:c.value,key:`modification-${f}`},U(c.value),9,vte))),128))],40,mte)])):qe("",!0),e.isCommercialNModificationNeeded?(N(),V("div",gte,[yte,g("select",{value:e.getLicenseData().optionCommercial,onInput:t[2]||(t[2]=c=>e.updateCommercial(c)),class:"mt-1 block w-full py-2 px-3 border border-gray-300 bg-white rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"},[(N(!0),V(Fe,null,Mt(e.PodloveLicenseOptionCommercialList,(c,f)=>(N(),V("option",{value:c.value,key:`commercial-${f}`},U(c.value),9,_te))),128))],40,bte)])):qe("",!0),e.isJurisdicationNeeded?(N(),V("div",wte,[Ste,g("select",{value:(a=e.getLicenseData().optionJurisdication)==null?void 0:a.name,onInput:t[3]||(t[3]=c=>e.updateJurisdication(c)),class:"mt-1 block w-full py-2 px-3 border border-gray-300 bg-white rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"},[(N(!0),V(Fe,null,Mt(e.PodloveLicenseOptionJurisdication,(c,f)=>(N(),V("option",{value:c.name,key:`jurisdiction-${f}`},U(c.name),9,xte))),128))],40,Ete)])):qe("",!0),g("div",$te,[q(l,{"license-data":e.getLicenseData()},null,8,["license-data"])])])],64)}var J$=Be(ste,[["render",Cte]]);const Tte=ve({components:{PodloveButton:Vn,Modal:ja,LicenseSelector:J$},props:{scope:{type:String,default:cn.Episode}},data(){return{openDialog:!1}},methods:{openSelector(){this.openDialog=!0},closeSelector(){this.openDialog=!1}}});function Ote(e,t,n,r,o,s){const l=X("podlove-button"),a=X("LicenseSelector"),c=X("modal");return N(),V(Fe,null,[q(l,{variant:"secondary",size:"small",onClick:e.openSelector},{default:ye(()=>[Xe(U(e.__("License Selector","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["onClick"]),q(c,{open:e.openDialog,onClose:e.closeSelector},{default:ye(()=>[q(a,{scope:e.scope},null,8,["scope"])]),_:1},8,["open","onClose"])],64)}var Ate=Be(Tte,[["render",Ote]]);const Ite=ve({components:{Module:Nn,LicenseName:Cee,LicenseUrl:Ree,LicenseSelector:J$,LicenseSelectorButton:Ate},props:{scope:{type:String,default:cn.Episode}},computed:{isScopeEpisode(){return this.scope===cn.Episode},getModuleTitle(){return this.scope===cn.Episode?"Episode License":"Podcast License"}}}),Pte={key:0},kte={class:"p-3"},Rte={class:"mb-3"},Lte={class:"mb-3"},Nte={key:0};function Mte(e,t,n,r,o,s){const l=X("LicenseSelectorButton"),a=X("LicenseName"),c=X("LicenseUrl"),f=X("LicenseSelector"),p=X("module");return N(),bt(p,{name:"license",title:e.getModuleTitle},{actions:ye(()=>[e.isScopeEpisode?(N(),V("div",Pte,[q(l,{scope:e.scope},null,8,["scope"])])):qe("",!0)]),default:ye(()=>[g("div",kte,[g("div",Rte,[q(a,{scope:e.scope},null,8,["scope"])]),g("div",Lte,[q(c,{scope:e.scope},null,8,["scope"])]),e.isScopeEpisode?qe("",!0):(N(),V("div",Nte,[q(f,{scope:e.scope},null,8,["scope"])]))])]),_:1},8,["title"])}var Dte=Be(Ite,[["render",Mte]]),Fte={PodloveDescription:eV,PodloveChapters:Hz,PodloveTranscripts:zq,PodloveAuphonic:bJ,PodloveContributors:gZ,PodloveMediaFiles:bQ,PodloveRelatedEpisodes:FQ,PodloveSoundbite:dee,PodloveShowSelect:_ee,PodloveLicense:Dte};window.addEventListener("load",()=>{document.querySelectorAll('[data-client="podlove"]:not([data-loaded="true"])').forEach(e=>{e.setAttribute("data-loaded","true");const t=Kw({components:{...Fte}});h6({store:Fd,app:t}),t.use(fF),t.mount(e)})});globalThis.initPodloveUI=e=>{Fd.dispatch(zM(e))};156 `},{default:ye(()=>[q(h,{class:"-top-2 transform -translate-y-full overflow-auto absolute z-10 py-1 mt-1 w-full max-h-60 text-base bg-white rounded-md ring-1 ring-black ring-opacity-5 shadow-lg focus:outline-none sm:text-sm"},{default:ye(()=>{var y;return[((y=e.filterOptions)==null?void 0:y.length)===0&&e.query!==""?(N(),V("div",xQ," Nothing found. ")):qe("",!0),(N(!0),V(Fe,null,Mt(e.filterOptions,_=>(N(),bt(p,{key:_.title,value:_.id,as:"template"},{default:ye(({active:w,selected:I})=>[g("li",{class:wt([w?"bg-amber-100 text-amber-900":"text-gray-900","relative cursor-default select-none py-2 pl-10 pr-4"])},[g("span",{class:wt([I?"font-medium":"font-normal","block truncate"])},U(_.title),3),I?(N(),V("span",$Q,[q(f,{"aria-hidden":"true",class:"w-5 h-5"})])):qe("",!0)],2)]),_:2},1032,["value"]))),128))]}),_:1})]),_:1}),e.error?(N(),V("div",CQ,U(e.error),1)):qe("",!0)])]),_:1},8,["model-value","multiple"])}var OQ=Be(wQ,[["render",TQ]]);const AQ=ve({name:"PodloveTag",components:{XCircleIcon:j$},props:{value:String,id:Number},methods:{removeTag(){this.$emit("removeTag",this.id)}}}),IQ={class:"m-1 inline-flex"},PQ={class:"flex items-center text-xs font-bold uppercase px-3 py-1 bg-indigo-200 text-indigo-700 rounded-full"};function kQ(e,t,n,r,o,s){const l=X("XCircleIcon");return N(),V("div",IQ,[g("span",PQ,[Ge(U(e.value)+" ",1),g("button",{class:"ml-1",onClick:t[0]||(t[0]=(...a)=>e.removeTag&&e.removeTag(...a))},[q(l,{class:"w-5 h-5"})])])])}var RQ=Be(AQ,[["render",kQ]]);const LQ=ve({components:{Module:Nn,PodloveListbox:OQ,Tag:RQ},setup(){return{state:yt({episodeList:G.relatedEpisodes.episodeList,selectEpisodes:G.relatedEpisodes.selectEpisode}),dispatch:it().dispatch}},created(){this.dispatch(x7())},computed:{fullEpisodeList(){return this.state.episodeList.length==0?this.state.episodeList:this.state.selectEpisodes.length==0?[{id:0,title:"Select all episodes"},...this.state.episodeList]:[{id:-1,title:"Deselect all episodes"},...this.state.episodeList]},selectEpisodeNames(){var e;return(e=this.state.episodeList)==null?void 0:e.filter(t=>this.state.selectEpisodes.includes(t.id))}},methods:{updateRelEpisodes(e){e.includes(0)?this.state.selectEpisodes=this.state.episodeList.map(function(t){return t.id}):e.includes(-1)?this.state.selectEpisodes=[]:this.state.selectEpisodes=e,this.dispatch(Ux(this.state.selectEpisodes))},removeTag(e){const t=this.state.selectEpisodes.findIndex(n=>n==e);this.state.selectEpisodes.splice(t,1)}}}),NQ={class:"p-3"},MQ={class:"mt-2 text-sm text-gray-500"},DQ={class:"pl-3 pb-3"};function FQ(e,t,n,r,o,s){const l=X("PodloveListbox"),a=X("Tag"),c=X("module");return N(),bt(c,{name:"relatedEpisodes",title:e.__("Related episodes","podlove-podcasting-plugin-for-wordpress")},{default:ye(()=>[g("div",NQ,[g("div",null,[q(l,{placeholder:"Select episode",options:e.fullEpisodeList,selectValues:e.state.selectEpisodes,onUpdate:t[0]||(t[0]=f=>e.updateRelEpisodes(f)),multiple:""},null,8,["options","selectValues"])]),g("p",MQ,U(e.__("Select related episodes to this episode.","podlove-podcasting-plugin-for-wordpress")),1)]),g("div",DQ,[(N(!0),V(Fe,null,Mt(e.selectEpisodeNames,f=>(N(),bt(a,{value:f.title,id:Number(f.id),onRemoveTag:t[1]||(t[1]=p=>e.removeTag(p))},null,8,["value","id"]))),256))])]),_:1},8,["title"])}var BQ=Be(LQ,[["render",FQ]]);const UQ=ve({components:{PodloveButton:Vn},setup(){return{dispatch:it().dispatch}},methods:{clearSoundbite(){this.dispatch($t({prop:"soundbite_start",value:null})),this.dispatch($t({prop:"soundbite_duration",value:null})),this.dispatch($t({prop:"soundbite_title",value:null}))}}});function jQ(e,t,n,r,o,s){const l=X("podlove-button");return N(),bt(l,{variant:"secondary",size:"small",onClick:t[0]||(t[0]=a=>e.clearSoundbite())},{default:ye(()=>[Ge(U(e.__("Clear","podlove-podcasting-plugin-for-wordpress")),1)]),_:1})}var HQ=Be(UQ,[["render",jQ]]);const VQ=ve({setup(){return{state:yt({soundbite_start:G.episode.soundbite_start,soundbite_duration:G.episode.soundbite_duration,soundbite_title:G.episode.soundbite_title}),dispatch:it().dispatch}},computed:{soundbite_end(){if(this.state.soundbite_start!=null&&this.state.soundbite_duration!=null){let e=Nt.fromString(this.state.soundbite_start).totalMs,t=Nt.fromString(this.state.soundbite_duration).totalMs,n=e+t;return new Nt(n).pretty}return""}},methods:{updateSoundbiteStart(e){const t=e.target.value;let n=Nt.fromString(t).totalMs;this.dispatch($t({prop:"soundbite_start",value:new Nt(n).pretty}))},updateSoundbiteEnd(e){const t=e.target.value;let n=Nt.fromString(t).totalMs,r=Nt.fromString(this.state.soundbite_start).totalMs;if(r<n){let o=n-r;this.dispatch($t({prop:"soundbite_duration",value:new Nt(o).pretty}))}},updateSoundbiteDuration(e){const t=e.target.value;let n=Nt.fromString(t).totalMs;this.dispatch($t({prop:"soundbite_duration",value:new Nt(n).pretty}))},updateSoundbiteTitle(e){this.dispatch($t({prop:"soundbite_title",value:e.target.value}))}}}),WQ={class:"grid md:grid-cols-4 md:grid-rows-1 sm:grid-rows-4 p-3"},zQ={class:"mb-5 ml-5"},qQ={for:"soundbite-start",class:"block text-sm font-medium text-gray-700"},KQ={class:"mt-1"},GQ=["value"],XQ={class:"mb-5 ml-5"},JQ={for:"soundbite-end",class:"block text-sm font-medium text-gray-700"},YQ={class:"mt-1"},ZQ=["value"],QQ={class:"mb-5 ml-5"},eee={for:"soundbite-duration",class:"block text-sm font-medium text-gray-700"},tee={class:"mt-1"},nee=["value"],ree={class:"mb-5 ml-5 md:mr-5"},oee={for:"soundbite-title",class:"block text-sm font-medium text-gray-700"},iee={class:"text-xs"},see={class:"mt-1"},lee=["value"];function aee(e,t,n,r,o,s){return N(),V("div",WQ,[g("div",zQ,[g("label",qQ,U(e.__("Start","podlove-podcasting-plugin-for-wordpress")),1),g("div",KQ,[g("input",{name:"soundbite-start",type:"text",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",placeholder:"HH:MM:SS",value:e.state.soundbite_start,onChange:t[0]||(t[0]=l=>e.updateSoundbiteStart(l))},null,40,GQ)])]),g("div",XQ,[g("label",JQ,U(e.__("End","podlove-podcasting-plugin-for-wordpress")),1),g("div",YQ,[g("input",{name:"soundbite-end",type:"text",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",placeholder:"HH:MM:SS",value:e.soundbite_end,onChange:t[1]||(t[1]=l=>e.updateSoundbiteEnd(l))},null,40,ZQ)])]),g("div",QQ,[g("label",eee,U(e.__("Duration","podlove-podcasting-plugin-for-wordpress")),1),g("div",tee,[g("input",{name:"soundbite-duration",type:"text",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",placeholder:"HH:MM:SS",value:e.state.soundbite_duration,onChange:t[2]||(t[2]=l=>e.updateSoundbiteDuration(l))},null,40,nee)])]),g("div",ree,[g("label",oee,[Ge(U(e.__("Soundbite title","podlove-podcasting-plugin-for-wordpress"))+" ",1),g("span",iee,U(e.__("(optional)","podlove-podcasting-plugin-for-wordpress")),1)]),g("div",see,[g("input",{name:"soundbite-title",type:"text",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",value:e.state.soundbite_title,onChange:t[3]||(t[3]=l=>e.updateSoundbiteTitle(l))},null,40,lee)])])])}var uee=Be(VQ,[["render",aee]]);const cee=ve({components:{Module:Nn,SoundbiteForm:uee,SoundbiteClear:HQ},setup(){return{dispatch:it().dispatch}},created(){this.dispatch(Od())}});function dee(e,t,n,r,o,s){const l=X("soundbite-clear"),a=X("soundbite-form"),c=X("module");return N(),bt(c,{name:"soundbite",title:e.__("Soundbite","podlove-podcasting-plugin-for-wordpress")},{actions:ye(()=>[q(l)]),default:ye(()=>[q(a)]),_:1},8,["title"])}var fee=Be(cee,[["render",dee]]);const pee=ve({components:{},setup(){return{state:yt({shows:G.shows.list,current:G.episode.currentShow}),dispatch:it().dispatch}},computed:{shows(){return this.state.shows},current(){return this.state.current||""}},methods:{setShow(e){this.dispatch($t({prop:"show",value:e!=null?e:""}))}},created(){this.dispatch(jx())}}),hee={class:"flex items-center"},mee=["checked"],vee={for:"podlove-show-default",class:"ml-2 block text-sm leading-6 text-gray-900"},gee={class:"flex items-center"},yee=["id","value","onInput","checked"],bee=["for"];function _ee(e,t,n,r,o,s){return N(),V("div",null,[g("div",hee,[g("input",{id:"podlove-show-default",name:"podlove-episode-show",type:"radio",class:"h-4 w-4 border-gray-300 text-indigo-600 focus:ring-indigo-600",value:null,onInput:t[0]||(t[0]=l=>e.setShow(null)),checked:e.current===""},null,40,mee),g("label",vee,U(e.__("Podcast (no show assignment)","podlove-podcasting-plugin-for-wordpress")),1)]),(N(!0),V(Fe,null,Mt(e.shows,l=>(N(),V("div",gee,[g("input",{id:"podlove-show-"+l.slug,name:"podlove-episode-show",type:"radio",class:"h-4 w-4 border-gray-300 text-indigo-600 focus:ring-indigo-600",value:l.id,onInput:a=>e.setShow(l.slug),checked:l.slug===e.current},null,40,yee),g("label",{for:"podlove-show-"+l.slug,class:"ml-2 block text-sm leading-6 text-gray-900"},U(l.title),9,bee)]))),256))])}var wee=Be(pee,[["render",_ee],["__scopeId","data-v-7b1f1f84"]]),Lt=(e=>(e.cc0="Public Domain License",e.pdmark="Public Domain Mark License",e.cc3="Creative Commons 3.0 and earlier",e.cc4="Creative Commons 4.0",e))(Lt||{}),hr=(e=>(e.yes="Yes",e.no="No",e))(hr||{}),hn=(e=>(e.yes="Yes",e.yesbutshare="Yes, as long as others share alike",e.no="No",e))(hn||{}),cn=(e=>(e.Episode="Episode",e.Podcast="Podcast",e))(cn||{});const js=[{symbol:"international",name:"International",version:"3.0"},{symbol:"ar",name:"Argentina",version:"2.5"},{symbol:"au",name:"Australia",version:"3.0"},{symbol:"at",name:"Austria",version:"3.0"},{symbol:"be",name:"Belgium",version:"2.0"},{symbol:"br",name:"Brazil",version:"3.0"},{symbol:"bg",name:"Bulgaria",version:"2.5"},{symbol:"ca",name:"Canada",version:"2.5"},{symbol:"cl",name:"Chile",version:"3.0"},{symbol:"cn",name:"China Mainland",version:"3.0"},{symbol:"co",name:"Colombia",version:"2.5"},{symbol:"cr",name:"Costa Rica",version:"3.0"},{symbol:"hr",name:"Croatia",version:"3.0"},{symbol:"cz",name:"Czech Republic",version:"3.0"},{symbol:"dk",name:"Denmark",version:"2.5"},{symbol:"ec",name:"Ecuador",version:"3.0"},{symbol:"eg",name:"Egypt",version:"3.0"},{symbol:"ee",name:"Estonia",version:"3.0"},{symbol:"fi",name:"Finland",version:"1.0"},{symbol:"fr",name:"France",version:"3.0"},{symbol:"de",name:"Germany",version:"3.0"},{symbol:"gr",name:"Greece",version:"3.0"},{symbol:"gt",name:"Guatemala",version:"3.0"},{symbol:"hk",name:"Hong Kong",version:"3.0"},{symbol:"hu",name:"Hungary",version:"2.5"},{symbol:"igo",name:"IGO",version:"3.0"},{symbol:"in",name:"India",version:"2.5"},{symbol:"ie",name:"Ireland",version:"3.0"},{symbol:"il",name:"Israel",version:"2.5"},{symbol:"it",name:"Italy",version:"3.0"},{symbol:"jp",name:"Japan",version:"2.1"},{symbol:"lu",name:"Luxembourg",version:"3.0"},{symbol:"mk",name:"Macedonia",version:"2.5"},{symbol:"my",name:"Malaysia",version:"2.5"},{symbol:"mt",name:"Malta",version:"2.5"},{symbol:"mx",name:"Mexico",version:"2.5"},{symbol:"nl",name:"Netherlands",version:"3.0"},{symbol:"nz",name:"New Zealand",version:"3.0"},{symbol:"no",name:"Norway",version:"3.0"},{symbol:"pe",name:"Peru",version:"2.5"},{symbol:"ph",name:"Philippines",version:"3.0"},{symbol:"pl",name:"Poland",version:"3.0"},{symbol:"pt",name:"Portugal",version:"3.0"},{symbol:"pr",name:"Puerto Rico",version:"3.0"},{symbol:"ro",name:"Romania",version:"3.0"},{symbol:"rs",name:"Serbia",version:"3.0"},{symbol:"sg",name:"Singapore",version:"3.0"},{symbol:"si",name:"Slovenia",version:"2.5"},{symbol:"za",name:"South Africa",version:"2.5"},{symbol:"kp",name:"South Korea",version:"2.0"},{symbol:"es",name:"Spain",version:"3.0"},{symbol:"se",name:"Sweden",version:"2.5"},{symbol:"ch",name:"Switzerland",version:"3.0"},{symbol:"tw",name:"Taiwan",version:"3.0"},{symbol:"th",name:"Thailand",version:"3.0"},{symbol:"gb",name:"UK: England & Wales",version:"2.0"},{symbol:"gb_sc",name:"UK: Scotland",version:"2.5"},{symbol:"ug",name:"Uganda",version:"3.0"},{symbol:"us",name:"United States",version:"3.0"},{symbol:"vn",name:"Vietnam",version:"3.0"}],See=ve({components:{Module:Nn},props:{scope:{type:String,default:cn.Episode}},setup(){return{state:yt({episodeLicenseName:G.episode.license_name,podcastLicenseName:G.podcast.license_name}),dispatch:it().dispatch}},created(){this.dispatch(Od())},computed:{getLicenseName(){return this.scope==cn.Episode?this.state.episodeLicenseName:this.state.podcastLicenseName}},methods:{updateLicenseName(e){this.scope===cn.Episode&&this.dispatch($t({prop:"license_name",value:e.target.value})),this.scope===cn.Podcast&&this.dispatch(Zl({prop:"license_name",value:e.target.value}))}}}),Eee={for:"episode-license-name",class:"block text-sm font-medium text-gray-700"},xee={class:"mt-1"},$ee=["value"];function Cee(e,t,n,r,o,s){return N(),V("div",null,[g("label",Eee,U(e.__("License name","podlove-podcasting-plugin-for-wordpress")),1),g("div",xee,[g("input",{name:"episode-license-name",type:"text",value:e.getLicenseName,onInput:t[0]||(t[0]=(...l)=>e.updateLicenseName&&e.updateLicenseName(...l)),class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md"},null,40,$ee)])])}var Tee=Be(See,[["render",Cee]]);const Oee=ve({components:{Module:Nn},props:{scope:{type:String,default:cn.Episode}},setup(){return{state:yt({episodeLicenseUrl:G.episode.license_url,podcastLicenseUrl:G.podcast.license_url}),dispatch:it().dispatch}},created(){this.dispatch(Od())},computed:{getLicenseUrl(){return this.scope==cn.Episode?this.state.episodeLicenseUrl:this.state.podcastLicenseUrl}},methods:{updateLicenseUrl(e){this.scope===cn.Episode&&this.dispatch($t({prop:"license_url",value:e.target.value})),this.scope===cn.Podcast&&this.dispatch(Zl({prop:"license_url",value:e.target.value}))}}}),Aee={for:"episode-license-name",class:"block text-sm font-medium text-gray-700"},Iee={class:"mt-1"},Pee=["value"],kee={class:"mt-2 text-sm text-gray-500"};function Ree(e,t,n,r,o,s){return N(),V("div",null,[g("label",Aee,U(e.__("License url","podlove-podcasting-plugin-for-wordpress")),1),g("div",Iee,[g("input",{name:"episode-license-name",type:"text",value:e.getLicenseUrl,onInput:t[0]||(t[0]=(...l)=>e.updateLicenseUrl&&e.updateLicenseUrl(...l)),class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md"},null,40,Pee)]),g("p",kee,U(e.__("Example: http://creativecommons.org/licenses/by/3.0/","podlove-podcasting-plugin-for-wordpress")),1)])}var Lee=Be(Oee,[["render",Ree]]),Nee="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFgAAAAfCAMAAABUFvrSAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAPBQTFRFLy8v7+/vz8/PHx8fDw8P+vn3X19fj4+P39/fn5+fb29vT09Pr6+v+fn53t7eZWVl6urq/f395+fn5eXl9/f38fHxMTEx+/v7jo6Ozc3N2dnZ8/PzhISE/v7+5OTk9vXz6ejoPj4+kJCQ3d3d6unnxcXFi4uL0tLS5ubm9PT0QUFB4uLi1dXV7Ozsvr6+LCwsy8vL6urnnp6ezs7O+Pj48vLyenp69fX1+fj2urq6CgsJ09PTl5eXt7e31tbW4eHhjY2N9vb2U1NTGRkZTU1NbW1tioqKf39/ysrK6Oflv7+/Pz8/7erh////AAAA////iBrkuAAAAFB0Uk5T/////////////////////////////////////////////////////////////////////////////////////////////////////////wATc6Z5AAACrklEQVR42rSW53bbMAyFOVSRGnbsZji7e++992ALFsj7v00BaiTpsfzDtXGOEw3qI3B1QUqd0FriRNGftQQpwrXEebAHDr1qsC9tI48Nejq69+g/Re7B4czFbPfLZFytBKwVH1eFQTRF5MPvn45vqRWAhatMJwrI2fb4zds0IoYQctbHys/yCUuWp/oCp5AXKZEhcM4j5L8BELxmGX5M3h2mEQHBY4gYiX8RjUEgQLnD8jn0GqtBcM0yCC/NHcUWnPOH4z3VgIk09OBIRvdgy5Nk4AbBlrKWlshikYyubI9fNuBQYNGDOYoeHLFcpLEhKtJ4olLg0Jhkf3KjlQKKrAeXsUZ1CuZsi8GMeVZJuBKIqFFKykS7B+OdVgoehyBEAYOA+SWKxl5XZcpoLjim6jEj8tBpwbrkW5sbPTjV5JpbLtWEAlaeC86GwIofloFcnKIo2aX84+jixtmuifMBalhj6sEF2cRPIv8DXqJBTjO2VEMrRZ9xzgtT4GQrgFqRAh5QisOs/FGQK2BFQC3WmA/gVOMGzK4wbJyI3mlto3ST9Aj3Bj8RxRnyTuNiV5CXJhRXaHbF1mbnCvZDzZgqYWqLAvaeH2zAZgBs0vSNj5lLpvHxtYNx13kVRpEgOddg4NbnS7k3DdhhPR88v/Pi6MFhB3YM7grnemqepUCj0aYrfG8A3OrarBWVbla7h89v7/Qt7XmRMiGRIssFkPGpQ9eArR4Ai7DCk9XNt6toOdt+n0aIKwreXIJHU8n7LyFzLgKj6iK5QrFN1PB6bKFbj2vG5NNX97+tYgeRUpQDrcHJ1pcfjSZ3V7TnnWnYrD6avfi6os0UdWh3aeU0Trf2n169+XPp+Hz+u0L33xXTO5sf9x7/WjqeMXh2YU68vqSfXP69fFynNX67rSn+CjAANTLO7qEvlcgAAAAASUVORK5CYII=",Mee="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFgAAAAfCAMAAABUFvrSAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAPNQTFRFv7+/7+/vX19fDw8PHx8fn5+fLy8v39/fz8/Pb29vr6+vT09Pj4+P+fn5/f39ZWVl5eXlzs7O6urq8fHx9/f36ejovr6++/v7jY2N4+Pj2dnZp6enzc3Nenp69PT08/PzXFxc8vLyTk5OIyMj9fX13d3d5ubmXl5eDAwMNjY2JiYmra2t1NTUxcXF4uLiLCsrFxcXVVVV/v7+GRkZMTExW1tbyMjIt7e3np6ednZ2mJiY7Ozsjo6O1dXV3t7e7e3t09PTkJCQi4uL7u7uy8vLU1NTCgsJ4eHh1tbWioqKysrK5+fnf39/Pz8/7erh////AAAA7t9IFQAAArpJREFUeNq0ludy2zAQhA8dLJLl3u303nt3ejMuwPs/Te4AmrIzYn7YEjTUsIAfib1dgBDTQlqE9GchLUGKC2n/gD2AnztYGCzyNCaORz8eXlDkHmzU9KS+ezB5cWcuYCGZV9UAdcVPuLR+7+XVeYBJBWVORGkJ/Xzb737PPTCEYJMOmjdNB1IlGfhKwHwV/wOuUrJiqryzKe1vL7/OPULugPRs2pAPIEF2fwypjXRbMwiGjisMvRDbQuiU7j/Ye1TASUXowZi86MEqeqUEDIJ5SK6vH5ZHXVm9vl/AoY2mB3sXTQ9GHuuwxj7vFd14h4dLxdy5sVHAVFHVgyuEqKdguknKITBd1N1hgEqWqKS09fajLVJQs7HGOloG15HYiMgaC9FIGsEAGOm2kg7V9iVU6ebhh8c9ONXs9SxTloLDRWCk/k4PgW0efVFLVS52BsS1ydKpnhbtjPsV4rDGxVInEicJHXh0vHSxgNhUdeC6zcNCcwrMAeE0Yg2GQxL4FNVLlz/UocnxmakxS9cWQxSxNTGaAiZXOLIfRgFRkDsoD57tGLgOyM6Imj0zA0zqcg2yK3ztobPPu9Hxs6545Ic6l4ISGI3OPneCPFnAMACui8id15WPLk9Ey2uTWx24IYf5zrlOVNHxCKTzBWzoNxMcdVJiSsZiYxwfvukiTRuCUORKwrT0JgDJRC9YAzpDth4AG34nDnKF2PAkJ8hZG6OV2yeRFo5kqCufJwsXJYASnpIeClgPgfm0PLWuCJqv5Obqbj+71fQgyo5jUbGNCkBy6J0rYB7RbDC/oe1XO+Cjo2vvn85jBbF5saPUuew3+2W00sxlzRNn5r/wZPPytzktpiRgt5wq6eJ4befVp8+/zt22zn5XAK0gJks9Ppj83Pv6+9xteehLaDxaXVk/Pn9bTwv8dltQ+yvAAF/L4Ldao5NwAAAAAElFTkSuQmCC",Dee="/wp-content/plugins/podlove-publisher/client/dist/0_0.png",Fee="/wp-content/plugins/podlove-publisher/client/dist/0_1.png",Bee="/wp-content/plugins/podlove-publisher/client/dist/1_0.png",Uee="/wp-content/plugins/podlove-publisher/client/dist/1_1.png",jee="/wp-content/plugins/podlove-publisher/client/dist/10_0.png",Hee="/wp-content/plugins/podlove-publisher/client/dist/10_1.png";function Ul(e){if(e.type===null||e.type!="cc")return null;if(e.version===Lt.cc0)return"http://creativecommons.org/publicdomain/zero/1.0/";if(e.version===Lt.pdmark)return"http://creativecommons.org/publicdomain/mark/1.0/";if(e.version===Lt.cc3){let t="http://creativecommons.org/licenses/by";return e.optionCommercial===hr.no&&(t=t+"-nc"),e.optionModification===hn.yes?t=t+"/":e.optionModification===hn.no?t=t+"-nd/":t=t+"-sa/",e.optionJurisdication===null||e.optionJurisdication.symbol==="international"?t=t+"3.0/":t=t+e.optionJurisdication.version+"/"+e.optionJurisdication.symbol+"/",t+"deed.en"}if(e.version===Lt.cc4){let t="http://creativecommons.org/licenses/by";return e.optionCommercial==hr.no&&(t=t+"-nc"),e.optionModification==hn.yes?t=t+"/":e.optionModification==hn.no?t=t+"-nd/":t=t+"-sa/",t+"4.0"}return null}function r_(e,t){if(e.type===null||e.type!=="cc")return null;if(e.version===Lt.cc0)return Nee;if(e.version===Lt.pdmark)return Mee;if(e.optionModification===null||e.optionCommercial===null)return null;switch(e.optionModification){case hn.no:return e.optionCommercial===hr.no?Dee:Fee;case hn.yes:return e.optionCommercial===hr.no?Bee:Uee;case hn.yesbutshare:return e.optionCommercial===hr.no?jee:Hee}}function o_(e){const t=e.toLowerCase();if(t.indexOf("creativecommons.org")<0)return{type:null,version:null,optionCommercial:null,optionModification:null,optionJurisdication:null};let n=null;t.indexOf("/publicdomain/zero/")>=0?n=Lt.cc0:t.indexOf("/publicdomain/mark/")>=0?n=Lt.pdmark:t.indexOf("/4.0")>=0?n=Lt.cc4:n=Lt.cc3;const r=t.split("/").slice(4);let o=hr.yes;r[0].includes("nc")&&(o=hr.no);let s=hn.yes;r[0].includes("sa")?s=hn.yesbutshare:r[0].includes("nd")&&(s=hn.no);let l=js[0];if(r.length>2){const a=js.findIndex(c=>c.symbol===r[2]);a>0&&(l=js[a])}return{type:"cc",version:n,optionCommercial:o,optionModification:s,optionJurisdication:l}}const Vee=ve({components:{Module:Nn},props:{licenseData:{type:null,default:{type:"cc",version:Lt.pdmark,optionCommercial:null,optionModification:null,optionJurisdication:null}}},setup(){return{state:yt({baseUrl:G.runtime.baseUrl}),dispatch:it().dispatch}},computed:{licenseUrl(){return Ul(this.licenseData)},imageUrl(){return r_(this.licenseData,this.state.baseUrl)},isImageAvailable(){return r_(this.licenseData,this.state.baseUrl)!==null}}}),Wee={class:"mt-3"},zee=g("div",{class:"mb-3 text-sm font-medium text-gray-700"}," License preview: ",-1),qee={key:0},Kee={class:"mb-3 w-full"},Gee={class:"flex justify-center items-center"},Xee=["src"],Jee={class:"mb-3 w-full text-center"},Yee=g("p",{class:"text-sm font-medium text-gray-700"},"This work is licensend under ",-1),Zee=["href"],Qee={key:0},ete=g("p",{class:"text-sm font-medium text-gray-700"},"No license selected!",-1),tte=[ete];function nte(e,t,n,r,o,s){return N(),V("div",Wee,[zee,e.isImageAvailable?(N(),V("div",qee,[g("div",null,[g("div",Kee,[g("div",Gee,[g("img",{class:"text-center",src:`${e.imageUrl}`},null,8,Xee)])]),g("div",Jee,[Yee,g("a",{class:"text-sm font-medium text-gray-700",href:`${e.licenseUrl}`},U(e.licenseUrl),9,Zee)])]),e.isImageAvailable?qe("",!0):(N(),V("div",Qee,tte))])):qe("",!0)])}var rte=Be(Vee,[["render",nte]]);const ote=Object.entries(Lt).map(([e,t])=>({key:e,value:t})),ite=Object.entries(hr).map(([e,t])=>({key:e,value:t})),ste=Object.entries(hn).map(([e,t])=>({key:e,value:t})),lte=ve({components:{PodloveButton:Vn,Modal:ja,LicensePreview:rte},data(){return{PodloveLicenseVersionList:ote,PodloveLicenseOptionCommercialList:ite,PodloveLicenseOptionModificationList:ste,PodloveLicenseOptionJurisdication:js}},setup(){return{state:yt({episodeLicenseUrl:G.episode.license_url,podcastLicenseUrl:G.podcast.license_url}),dispatch:it().dispatch}},props:{scope:{type:String,default:cn.Episode}},computed:{isCommercialNModificationNeeded(){return this.getLicenseData().type==="cc"&&(this.getLicenseData().version===Lt.cc3||this.getLicenseData().version===Lt.cc4)},isJurisdicationNeeded(){return this.getLicenseData().type==="cc"&&this.getLicenseData().version===Lt.cc3}},methods:{updateVersion(e){let t=this.getLicenseData();switch(t.type="cc",e.target.value){case Lt.cc0:t.version=Lt.cc0;break;case Lt.pdmark:t.version=Lt.pdmark;break;case Lt.cc3:t.version=Lt.cc3;break;case Lt.cc4:t.version=Lt.cc4;break}this.updateLicenseDataNameNUrl(t)},updateCommercial(e){let t=this.getLicenseData();switch(e.target.value){case hr.yes:t.optionCommercial=hr.yes;break;case hr.no:t.optionCommercial=hr.no;break}this.updateLicenseDataUrl(t)},updateModification(e){let t=this.getLicenseData();switch(e.target.value){case hn.yes:t.optionModification=hn.yes;break;case hn.yesbutshare:t.optionModification=hn.yesbutshare;break;case hn.no:t.optionModification=hn.no;break}this.updateLicenseDataUrl(t)},updateJurisdication(e){let t=this.getLicenseData();const n=e.target.value,r=js.findIndex(o=>o.name===n);r!==void 0&&(t.optionJurisdication=js[r],this.updateLicenseDataUrl(t))},updateLicenseDataUrl(e){this.scope===cn.Episode&&this.dispatch($t({prop:"license_url",value:Ul(e)})),this.scope===cn.Podcast&&this.dispatch(Zl({prop:"license_url",value:Ul(e)}))},updateLicenseDataNameNUrl(e){this.scope===cn.Episode&&(this.dispatch($t({prop:"license_name",value:e.version})),this.dispatch($t({prop:"license_url",value:Ul(e)}))),this.scope===cn.Podcast&&(this.dispatch(Zl({prop:"license_name",value:e.version})),this.dispatch(Zl({prop:"license_url",value:Ul(e)})))},getLicenseData(){return this.scope===cn.Episode?this.state.episodeLicenseUrl===null||this.state.episodeLicenseUrl===void 0?{type:"cc",version:Lt.pdmark,optionCommercial:null,optionModification:null,optionJurisdication:null}:o_(this.state.episodeLicenseUrl):this.state.podcastLicenseUrl===null||this.state.podcastLicenseUrl===void 0?{type:"cc",version:Lt.pdmark,optionCommercial:null,optionModification:null,optionJurisdication:null}:o_(this.state.podcastLicenseUrl)}}}),ate={class:"border-gray-200 border-b pb-2 px-3 py-5"},ute={class:"text-lg leading-6 font-medium text-gray-900"},cte={class:"mb-3"},dte=g("label",{class:"block text-sm font-medium text-gray-700"}," Version: ",-1),fte=["value"],pte=["value"],hte={key:0,class:"mb-3"},mte=g("label",{class:"block text-sm font-medium text-gray-700"}," Allow modifications of your work? ",-1),vte=["value"],gte=["value"],yte={key:1,class:"mb-3"},bte=g("label",{class:"block text-sm font-medium text-gray-700"}," Allow commercial uses of your work? ",-1),_te=["value"],wte=["value"],Ste={key:2,class:"mb-3"},Ete=g("label",{class:"block text-sm font-medium text-gray-700"}," License Jurisdiction ",-1),xte=["value"],$te=["value"],Cte={class:"mb-5"};function Tte(e,t,n,r,o,s){var a;const l=X("LicensePreview");return N(),V(Fe,null,[g("div",ate,[g("h3",ute,U(e.__("License Selector","podlove-podcasting-plugin-for-wordpress")),1)]),g("div",null,[g("div",cte,[dte,g("select",{value:e.getLicenseData().version,onInput:t[0]||(t[0]=c=>e.updateVersion(c)),class:"mt-1 block w-full py-2 px-3 border border-gray-300 bg-white rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"},[(N(!0),V(Fe,null,Mt(e.PodloveLicenseVersionList,(c,f)=>(N(),V("option",{value:c.value,key:`version-${f}`},U(c.value),9,pte))),128))],40,fte)]),e.isCommercialNModificationNeeded?(N(),V("div",hte,[mte,g("select",{value:e.getLicenseData().optionModification,onInput:t[1]||(t[1]=c=>e.updateModification(c)),class:"mt-1 block w-full py-2 px-3 border border-gray-300 bg-white rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"},[(N(!0),V(Fe,null,Mt(e.PodloveLicenseOptionModificationList,(c,f)=>(N(),V("option",{value:c.value,key:`modification-${f}`},U(c.value),9,gte))),128))],40,vte)])):qe("",!0),e.isCommercialNModificationNeeded?(N(),V("div",yte,[bte,g("select",{value:e.getLicenseData().optionCommercial,onInput:t[2]||(t[2]=c=>e.updateCommercial(c)),class:"mt-1 block w-full py-2 px-3 border border-gray-300 bg-white rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"},[(N(!0),V(Fe,null,Mt(e.PodloveLicenseOptionCommercialList,(c,f)=>(N(),V("option",{value:c.value,key:`commercial-${f}`},U(c.value),9,wte))),128))],40,_te)])):qe("",!0),e.isJurisdicationNeeded?(N(),V("div",Ste,[Ete,g("select",{value:(a=e.getLicenseData().optionJurisdication)==null?void 0:a.name,onInput:t[3]||(t[3]=c=>e.updateJurisdication(c)),class:"mt-1 block w-full py-2 px-3 border border-gray-300 bg-white rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"},[(N(!0),V(Fe,null,Mt(e.PodloveLicenseOptionJurisdication,(c,f)=>(N(),V("option",{value:c.name,key:`jurisdiction-${f}`},U(c.name),9,$te))),128))],40,xte)])):qe("",!0),g("div",Cte,[q(l,{"license-data":e.getLicenseData()},null,8,["license-data"])])])],64)}var J$=Be(lte,[["render",Tte]]);const Ote=ve({components:{PodloveButton:Vn,Modal:ja,LicenseSelector:J$},props:{scope:{type:String,default:cn.Episode}},data(){return{openDialog:!1}},methods:{openSelector(){this.openDialog=!0},closeSelector(){this.openDialog=!1}}});function Ate(e,t,n,r,o,s){const l=X("podlove-button"),a=X("LicenseSelector"),c=X("modal");return N(),V(Fe,null,[q(l,{variant:"secondary",size:"small",onClick:e.openSelector},{default:ye(()=>[Ge(U(e.__("License Selector","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["onClick"]),q(c,{open:e.openDialog,onClose:e.closeSelector},{default:ye(()=>[q(a,{scope:e.scope},null,8,["scope"])]),_:1},8,["open","onClose"])],64)}var Ite=Be(Ote,[["render",Ate]]);const Pte=ve({components:{Module:Nn,LicenseName:Tee,LicenseUrl:Lee,LicenseSelector:J$,LicenseSelectorButton:Ite},props:{scope:{type:String,default:cn.Episode}},computed:{isScopeEpisode(){return this.scope===cn.Episode},getModuleTitle(){return this.scope===cn.Episode?"Episode License":"Podcast License"}}}),kte={key:0},Rte={class:"p-3"},Lte={class:"mb-3"},Nte={class:"mb-3"},Mte={key:0};function Dte(e,t,n,r,o,s){const l=X("LicenseSelectorButton"),a=X("LicenseName"),c=X("LicenseUrl"),f=X("LicenseSelector"),p=X("module");return N(),bt(p,{name:"license",title:e.getModuleTitle},{actions:ye(()=>[e.isScopeEpisode?(N(),V("div",kte,[q(l,{scope:e.scope},null,8,["scope"])])):qe("",!0)]),default:ye(()=>[g("div",Rte,[g("div",Lte,[q(a,{scope:e.scope},null,8,["scope"])]),g("div",Nte,[q(c,{scope:e.scope},null,8,["scope"])]),e.isScopeEpisode?qe("",!0):(N(),V("div",Mte,[q(f,{scope:e.scope},null,8,["scope"])]))])]),_:1},8,["title"])}var Fte=Be(Pte,[["render",Dte]]),Bte={PodloveDescription:tV,PodloveChapters:Vz,PodloveTranscripts:qq,PodloveAuphonic:_J,PodloveContributors:yZ,PodloveMediaFiles:_Q,PodloveRelatedEpisodes:BQ,PodloveSoundbite:fee,PodloveShowSelect:wee,PodloveLicense:Fte};window.addEventListener("load",()=>{document.querySelectorAll('[data-client="podlove"]:not([data-loaded="true"])').forEach(e=>{e.setAttribute("data-loaded","true");const t=Kw({components:{...Bte}});h6({store:Fd,app:t}),t.use(fF),t.mount(e)})});globalThis.initPodloveUI=e=>{Fd.dispatch(zM(e))}; -
podlove-podcasting-plugin-for-wordpress/tags/4.1.13/lib/modules/transcripts/transcripts.php
r3050611 r3126894 35 35 36 36 add_action('wp', [$this, 'serve_transcript_file']); 37 38 add_action('podlove_xml_export', [$this, 'expandExportFile']); 39 add_filter('podlove_import_jobs', [$this, 'expandImport']); 37 40 38 41 // external assets … … 516 519 } 517 520 521 /** 522 * Expands "Import/Export" module: export logic. 523 */ 524 public function expandExportFile(\SimpleXMLElement $xml) 525 { 526 \Podlove\Modules\ImportExport\Export\PodcastExporter::exportTable($xml, 'transcripts', 'transcript', '\Podlove\Modules\Transcripts\Model\Transcript'); 527 \Podlove\Modules\ImportExport\Export\PodcastExporter::exportTable($xml, 'voice_assignments', 'voice_assignment', '\Podlove\Modules\Transcripts\Model\VoiceAssignment'); 528 } 529 530 /** 531 * Expands "Import/Export" module: import logic. 532 * 533 * @param mixed $jobs 534 */ 535 public function expandImport($jobs) 536 { 537 $jobs[] = '\Podlove\Modules\Transcripts\Jobs\ImportTranscriptsJob'; 538 $jobs[] = '\Podlove\Modules\Transcripts\Jobs\ImportVoiceAssignmentsJob'; 539 540 return $jobs; 541 } 542 518 543 private function print_rss_feed_links($podcast, $episode) 519 544 { 520 545 if ($podcast->feed_transcripts == 'none') { 521 546 return; 522 } else if ($podcast->feed_transcripts == 'generated') { 547 } 548 if ($podcast->feed_transcripts == 'generated') { 523 549 if (!Transcript::exists_for_episode($episode->id)) { 524 550 return; … … 535 561 536 562 return; 537 } elseif (preg_match('/^asset_(?<id>\d+)$/', $podcast->feed_transcripts, $matches) === 1) { 563 } 564 if (preg_match('/^asset_(?<id>\d+)$/', $podcast->feed_transcripts, $matches) === 1) { 538 565 $asset_id = $matches['id']; 539 566 $asset = Model\EpisodeAsset::find_by_id($asset_id); -
podlove-podcasting-plugin-for-wordpress/tags/4.1.13/podlove.php
r3122481 r3126894 4 4 * Plugin URI: https://podlove.org/podlove-podcast-publisher/ 5 5 * Description: The one and only next generation podcast publishing system. Seriously. It's magical and sparkles a lot. 6 * Version: 4.1.1 26 * Version: 4.1.13 7 7 * Requires at least: 4.9.6 8 8 * Requires PHP: 8.0 -
podlove-podcasting-plugin-for-wordpress/tags/4.1.13/readme.txt
r3122481 r3126894 3 3 Donate link: https://opencollective.com/podlove 4 4 Tags: podlove, podcast, publishing, rss, audio 5 Tested up to: 6. 5.46 Stable tag: 4.1.1 25 Tested up to: 6.6.1 6 Stable tag: 4.1.13 7 7 Requires at least: 4.9.6 8 8 Requires PHP: 8.0 … … 115 115 116 116 == Changelog == 117 118 = 4.1.13 = 119 120 * add transcripts to import/export 121 * add confirmation button on modal to input episode image url 122 * fix: selecting an episode image updates the preview 117 123 118 124 = 4.1.12 = -
podlove-podcasting-plugin-for-wordpress/tags/4.1.13/vendor/composer/autoload_classmap.php
r3026472 r3126894 681 681 'Podlove\\Modules\\TitleMigration\\State' => $baseDir . '/lib/modules/title_migration/state.php', 682 682 'Podlove\\Modules\\TitleMigration\\Title_Migration' => $baseDir . '/lib/modules/title_migration/title_migration.php', 683 'Podlove\\Modules\\Transcripts\\Jobs\\ImportTranscriptsJob' => $baseDir . '/lib/modules/transcripts/jobs/import_transcripts_job.php', 684 'Podlove\\Modules\\Transcripts\\Jobs\\ImportVoiceAssignmentsJob' => $baseDir . '/lib/modules/transcripts/jobs/import_voice_assignments_job.php', 683 685 'Podlove\\Modules\\Transcripts\\Model\\Transcript' => $baseDir . '/lib/modules/transcripts/model/transcript.php', 684 686 'Podlove\\Modules\\Transcripts\\Model\\VoiceAssignment' => $baseDir . '/lib/modules/transcripts/model/voice_assignment.php', -
podlove-podcasting-plugin-for-wordpress/tags/4.1.13/vendor/composer/autoload_static.php
r3026472 r3126894 797 797 'Podlove\\Modules\\TitleMigration\\State' => __DIR__ . '/../..' . '/lib/modules/title_migration/state.php', 798 798 'Podlove\\Modules\\TitleMigration\\Title_Migration' => __DIR__ . '/../..' . '/lib/modules/title_migration/title_migration.php', 799 'Podlove\\Modules\\Transcripts\\Jobs\\ImportTranscriptsJob' => __DIR__ . '/../..' . '/lib/modules/transcripts/jobs/import_transcripts_job.php', 800 'Podlove\\Modules\\Transcripts\\Jobs\\ImportVoiceAssignmentsJob' => __DIR__ . '/../..' . '/lib/modules/transcripts/jobs/import_voice_assignments_job.php', 799 801 'Podlove\\Modules\\Transcripts\\Model\\Transcript' => __DIR__ . '/../..' . '/lib/modules/transcripts/model/transcript.php', 800 802 'Podlove\\Modules\\Transcripts\\Model\\VoiceAssignment' => __DIR__ . '/../..' . '/lib/modules/transcripts/model/voice_assignment.php', -
podlove-podcasting-plugin-for-wordpress/tags/4.1.13/vendor/composer/installed.php
r3122481 r3126894 2 2 'root' => array( 3 3 'name' => 'podlove/podcast-publisher', 4 'pretty_version' => '4.1.1 2',5 'version' => '4.1.1 2.0',6 'reference' => ' 6a012067d8d94c859345ed764a47394b3a6ab13e',4 'pretty_version' => '4.1.13', 5 'version' => '4.1.13.0', 6 'reference' => '511f55536a568ba13efa9dc4051bf416b84a45c7', 7 7 'type' => 'library', 8 8 'install_path' => __DIR__ . '/../../', … … 135 135 ), 136 136 'podlove/podcast-publisher' => array( 137 'pretty_version' => '4.1.1 2',138 'version' => '4.1.1 2.0',139 'reference' => ' 6a012067d8d94c859345ed764a47394b3a6ab13e',137 'pretty_version' => '4.1.13', 138 'version' => '4.1.13.0', 139 'reference' => '511f55536a568ba13efa9dc4051bf416b84a45c7', 140 140 'type' => 'library', 141 141 'install_path' => __DIR__ . '/../../', -
podlove-podcasting-plugin-for-wordpress/trunk/client/dist/client.js
r3122481 r3126894 1 const IP=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const l of s.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerpolicy&&(s.referrerPolicy=o.referrerpolicy),o.crossorigin==="use-credentials"?s.credentials="include":o.crossorigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}};IP();function Vh(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o<r.length;o++)n[r[o]]=!0;return t?o=>!!n[o.toLowerCase()]:o=>!!n[o]}const PP="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt",kP=Vh(PP);function as(e){if(Je(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],o=on(r)?MP(r):as(r);if(o)for(const s in o)t[s]=o[s]}return t}else{if(on(e))return e;if(qt(e))return e}}const RP=/;(?![^(]*\))/g,LP=/:([^]+)/,NP=/\/\*.*?\*\//gs;function MP(e){const t={};return e.replace(NP,"").split(RP).forEach(n=>{if(n){const r=n.split(LP);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function wt(e){let t="";if(on(e))t=e;else if(Je(e))for(let n=0;n<e.length;n++){const r=wt(e[n]);r&&(t+=r+" ")}else if(qt(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function DP(e){if(!e)return null;let{class:t,style:n}=e;return t&&!on(t)&&(e.class=wt(t)),n&&(e.style=as(n)),e}const U=e=>on(e)?e:e==null?"":Je(e)||qt(e)&&(e.toString===a_||!et(e.toString))?JSON.stringify(e,i_,2):String(e),i_=(e,t)=>t&&t.__v_isRef?i_(e,t.value):Ms(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o])=>(n[`${r} =>`]=o,n),{})}:l_(t)?{[`Set(${t.size})`]:[...t.values()]}:qt(t)&&!Je(t)&&!u_(t)?String(t):t,Ut={},Ns=[],Xr=()=>{},FP=()=>!1,BP=/^on[^a-z]/,Kc=e=>BP.test(e),s_=e=>e.startsWith("onUpdate:"),$n=Object.assign,Wh=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},UP=Object.prototype.hasOwnProperty,_t=(e,t)=>UP.call(e,t),Je=Array.isArray,Ms=e=>Ea(e)==="[object Map]",l_=e=>Ea(e)==="[object Set]",jP=e=>Ea(e)==="[object RegExp]",et=e=>typeof e=="function",on=e=>typeof e=="string",zh=e=>typeof e=="symbol",qt=e=>e!==null&&typeof e=="object",qh=e=>qt(e)&&et(e.then)&&et(e.catch),a_=Object.prototype.toString,Ea=e=>a_.call(e),HP=e=>Ea(e).slice(8,-1),u_=e=>Ea(e)==="[object Object]",Kh=e=>on(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,jl=Vh(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Gc=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},VP=/-(\w)/g,eo=Gc(e=>e.replace(VP,(t,n)=>n?n.toUpperCase():"")),WP=/\B([A-Z])/g,Xc=Gc(e=>e.replace(WP,"-$1").toLowerCase()),Jc=Gc(e=>e.charAt(0).toUpperCase()+e.slice(1)),Hl=Gc(e=>e?`on${Jc(e)}`:""),Hs=(e,t)=>!Object.is(e,t),Vl=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},mc=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},zP=e=>{const t=parseFloat(e);return isNaN(t)?e:t},qP=e=>{const t=on(e)?Number(e):NaN;return isNaN(t)?e:t};let jy;const KP=()=>jy||(jy=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});let dr;class Gh{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=dr,!t&&dr&&(this.index=(dr.scopes||(dr.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=dr;try{return dr=this,t()}finally{dr=n}}}on(){dr=this}off(){dr=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.scopes)for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0,this._active=!1}}}function GP(e){return new Gh(e)}function c_(e,t=dr){t&&t.active&&t.effects.push(e)}function d_(){return dr}function f_(e){dr&&dr.cleanups.push(e)}const Xh=e=>{const t=new Set(e);return t.w=0,t.n=0,t},p_=e=>(e.w&vi)>0,h_=e=>(e.n&vi)>0,XP=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=vi},JP=e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const o=t[r];p_(o)&&!h_(o)?o.delete(e):t[n++]=o,o.w&=~vi,o.n&=~vi}t.length=n}},vc=new WeakMap;let Dl=0,vi=1;const jp=30;let qr;const Gi=Symbol(""),Hp=Symbol("");class xa{constructor(t,n=null,r){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,c_(this,r)}run(){if(!this.active)return this.fn();let t=qr,n=pi;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=qr,qr=this,pi=!0,vi=1<<++Dl,Dl<=jp?XP(this):Hy(this),this.fn()}finally{Dl<=jp&&JP(this),vi=1<<--Dl,qr=this.parent,pi=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){qr===this?this.deferStop=!0:this.active&&(Hy(this),this.onStop&&this.onStop(),this.active=!1)}}function Hy(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}function YP(e,t){e.effect&&(e=e.effect.fn);const n=new xa(e);t&&($n(n,t),t.scope&&c_(n,t.scope)),(!t||!t.lazy)&&n.run();const r=n.run.bind(n);return r.effect=n,r}function ZP(e){e.effect.stop()}let pi=!0;const m_=[];function sl(){m_.push(pi),pi=!1}function ll(){const e=m_.pop();pi=e===void 0?!0:e}function tr(e,t,n){if(pi&&qr){let r=vc.get(e);r||vc.set(e,r=new Map);let o=r.get(n);o||r.set(n,o=Xh()),v_(o)}}function v_(e,t){let n=!1;Dl<=jp?h_(e)||(e.n|=vi,n=!p_(e)):n=!e.has(qr),n&&(e.add(qr),qr.deps.push(e))}function Vo(e,t,n,r,o,s){const l=vc.get(e);if(!l)return;let a=[];if(t==="clear")a=[...l.values()];else if(n==="length"&&Je(e)){const c=Number(r);l.forEach((f,p)=>{(p==="length"||p>=c)&&a.push(f)})}else switch(n!==void 0&&a.push(l.get(n)),t){case"add":Je(e)?Kh(n)&&a.push(l.get("length")):(a.push(l.get(Gi)),Ms(e)&&a.push(l.get(Hp)));break;case"delete":Je(e)||(a.push(l.get(Gi)),Ms(e)&&a.push(l.get(Hp)));break;case"set":Ms(e)&&a.push(l.get(Gi));break}if(a.length===1)a[0]&&Vp(a[0]);else{const c=[];for(const f of a)f&&c.push(...f);Vp(Xh(c))}}function Vp(e,t){const n=Je(e)?e:[...e];for(const r of n)r.computed&&Vy(r);for(const r of n)r.computed||Vy(r)}function Vy(e,t){(e!==qr||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function QP(e,t){var n;return(n=vc.get(e))===null||n===void 0?void 0:n.get(t)}const ek=Vh("__proto__,__v_isRef,__isVue"),g_=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(zh)),tk=Yc(),nk=Yc(!1,!0),rk=Yc(!0),ok=Yc(!0,!0),Wy=ik();function ik(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=Ue(this);for(let s=0,l=this.length;s<l;s++)tr(r,"get",s+"");const o=r[t](...n);return o===-1||o===!1?r[t](...n.map(Ue)):o}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){sl();const r=Ue(this)[t].apply(this,n);return ll(),r}}),e}function sk(e){const t=Ue(this);return tr(t,"has",e),t.hasOwnProperty(e)}function Yc(e=!1,t=!1){return function(r,o,s){if(o==="__v_isReactive")return!e;if(o==="__v_isReadonly")return e;if(o==="__v_isShallow")return t;if(o==="__v_raw"&&s===(e?t?x_:E_:t?S_:w_).get(r))return r;const l=Je(r);if(!e){if(l&&_t(Wy,o))return Reflect.get(Wy,o,s);if(o==="hasOwnProperty")return sk}const a=Reflect.get(r,o,s);return(zh(o)?g_.has(o):ek(o))||(e||tr(r,"get",o),t)?a:dn(a)?l&&Kh(o)?a:a.value:qt(a)?e?Yh(a):Si(a):a}}const lk=y_(),ak=y_(!0);function y_(e=!1){return function(n,r,o,s){let l=n[r];if(ns(l)&&dn(l)&&!dn(o))return!1;if(!e&&(!na(o)&&!ns(o)&&(l=Ue(l),o=Ue(o)),!Je(n)&&dn(l)&&!dn(o)))return l.value=o,!0;const a=Je(n)&&Kh(r)?Number(r)<n.length:_t(n,r),c=Reflect.set(n,r,o,s);return n===Ue(s)&&(a?Hs(o,l)&&Vo(n,"set",r,o):Vo(n,"add",r,o)),c}}function uk(e,t){const n=_t(e,t);e[t];const r=Reflect.deleteProperty(e,t);return r&&n&&Vo(e,"delete",t,void 0),r}function ck(e,t){const n=Reflect.has(e,t);return(!zh(t)||!g_.has(t))&&tr(e,"has",t),n}function dk(e){return tr(e,"iterate",Je(e)?"length":Gi),Reflect.ownKeys(e)}const b_={get:tk,set:lk,deleteProperty:uk,has:ck,ownKeys:dk},__={get:rk,set(e,t){return!0},deleteProperty(e,t){return!0}},fk=$n({},b_,{get:nk,set:ak}),pk=$n({},__,{get:ok}),Jh=e=>e,Zc=e=>Reflect.getPrototypeOf(e);function Lu(e,t,n=!1,r=!1){e=e.__v_raw;const o=Ue(e),s=Ue(t);n||(t!==s&&tr(o,"get",t),tr(o,"get",s));const{has:l}=Zc(o),a=r?Jh:n?em:ra;if(l.call(o,t))return a(e.get(t));if(l.call(o,s))return a(e.get(s));e!==o&&e.get(t)}function Nu(e,t=!1){const n=this.__v_raw,r=Ue(n),o=Ue(e);return t||(e!==o&&tr(r,"has",e),tr(r,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function Mu(e,t=!1){return e=e.__v_raw,!t&&tr(Ue(e),"iterate",Gi),Reflect.get(e,"size",e)}function zy(e){e=Ue(e);const t=Ue(this);return Zc(t).has.call(t,e)||(t.add(e),Vo(t,"add",e,e)),this}function qy(e,t){t=Ue(t);const n=Ue(this),{has:r,get:o}=Zc(n);let s=r.call(n,e);s||(e=Ue(e),s=r.call(n,e));const l=o.call(n,e);return n.set(e,t),s?Hs(t,l)&&Vo(n,"set",e,t):Vo(n,"add",e,t),this}function Ky(e){const t=Ue(this),{has:n,get:r}=Zc(t);let o=n.call(t,e);o||(e=Ue(e),o=n.call(t,e)),r&&r.call(t,e);const s=t.delete(e);return o&&Vo(t,"delete",e,void 0),s}function Gy(){const e=Ue(this),t=e.size!==0,n=e.clear();return t&&Vo(e,"clear",void 0,void 0),n}function Du(e,t){return function(r,o){const s=this,l=s.__v_raw,a=Ue(l),c=t?Jh:e?em:ra;return!e&&tr(a,"iterate",Gi),l.forEach((f,p)=>r.call(o,c(f),c(p),s))}}function Fu(e,t,n){return function(...r){const o=this.__v_raw,s=Ue(o),l=Ms(s),a=e==="entries"||e===Symbol.iterator&&l,c=e==="keys"&&l,f=o[e](...r),p=n?Jh:t?em:ra;return!t&&tr(s,"iterate",c?Hp:Gi),{next(){const{value:h,done:v}=f.next();return v?{value:h,done:v}:{value:a?[p(h[0]),p(h[1])]:p(h),done:v}},[Symbol.iterator](){return this}}}}function oi(e){return function(...t){return e==="delete"?!1:this}}function hk(){const e={get(s){return Lu(this,s)},get size(){return Mu(this)},has:Nu,add:zy,set:qy,delete:Ky,clear:Gy,forEach:Du(!1,!1)},t={get(s){return Lu(this,s,!1,!0)},get size(){return Mu(this)},has:Nu,add:zy,set:qy,delete:Ky,clear:Gy,forEach:Du(!1,!0)},n={get(s){return Lu(this,s,!0)},get size(){return Mu(this,!0)},has(s){return Nu.call(this,s,!0)},add:oi("add"),set:oi("set"),delete:oi("delete"),clear:oi("clear"),forEach:Du(!0,!1)},r={get(s){return Lu(this,s,!0,!0)},get size(){return Mu(this,!0)},has(s){return Nu.call(this,s,!0)},add:oi("add"),set:oi("set"),delete:oi("delete"),clear:oi("clear"),forEach:Du(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=Fu(s,!1,!1),n[s]=Fu(s,!0,!1),t[s]=Fu(s,!1,!0),r[s]=Fu(s,!0,!0)}),[e,n,t,r]}const[mk,vk,gk,yk]=hk();function Qc(e,t){const n=t?e?yk:gk:e?vk:mk;return(r,o,s)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?r:Reflect.get(_t(n,o)&&o in r?n:r,o,s)}const bk={get:Qc(!1,!1)},_k={get:Qc(!1,!0)},wk={get:Qc(!0,!1)},Sk={get:Qc(!0,!0)},w_=new WeakMap,S_=new WeakMap,E_=new WeakMap,x_=new WeakMap;function Ek(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function xk(e){return e.__v_skip||!Object.isExtensible(e)?0:Ek(HP(e))}function Si(e){return ns(e)?e:ed(e,!1,b_,bk,w_)}function $_(e){return ed(e,!1,fk,_k,S_)}function Yh(e){return ed(e,!0,__,wk,E_)}function $k(e){return ed(e,!0,pk,Sk,x_)}function ed(e,t,n,r,o){if(!qt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=o.get(e);if(s)return s;const l=xk(e);if(l===0)return e;const a=new Proxy(e,l===2?r:n);return o.set(e,a),a}function Xi(e){return ns(e)?Xi(e.__v_raw):!!(e&&e.__v_isReactive)}function ns(e){return!!(e&&e.__v_isReadonly)}function na(e){return!!(e&&e.__v_isShallow)}function Zh(e){return Xi(e)||ns(e)}function Ue(e){const t=e&&e.__v_raw;return t?Ue(t):e}function Qh(e){return mc(e,"__v_skip",!0),e}const ra=e=>qt(e)?Si(e):e,em=e=>qt(e)?Yh(e):e;function tm(e){pi&&qr&&(e=Ue(e),v_(e.dep||(e.dep=Xh())))}function td(e,t){e=Ue(e);const n=e.dep;n&&Vp(n)}function dn(e){return!!(e&&e.__v_isRef===!0)}function _e(e){return C_(e,!1)}function nd(e){return C_(e,!0)}function C_(e,t){return dn(e)?e:new Ck(e,t)}class Ck{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:Ue(t),this._value=n?t:ra(t)}get value(){return tm(this),this._value}set value(t){const n=this.__v_isShallow||na(t)||ns(t);t=n?t:Ue(t),Hs(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:ra(t),td(this))}}function Wp(e){td(e)}function jn(e){return dn(e)?e.value:e}const Tk={get:(e,t,n)=>jn(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return dn(o)&&!dn(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function nm(e){return Xi(e)?e:new Proxy(e,Tk)}class Ok{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:r}=t(()=>tm(this),()=>td(this));this._get=n,this._set=r}get value(){return this._get()}set value(t){this._set(t)}}function Ak(e){return new Ok(e)}function rm(e){const t=Je(e)?new Array(e.length):{};for(const n in e)t[n]=T_(e,n);return t}class Ik{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return QP(Ue(this._object),this._key)}}function T_(e,t,n){const r=e[t];return dn(r)?r:new Ik(e,t,n)}var O_;class Pk{constructor(t,n,r,o){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[O_]=!1,this._dirty=!0,this.effect=new xa(t,()=>{this._dirty||(this._dirty=!0,td(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=r}get value(){const t=Ue(this);return tm(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}O_="__v_isReadonly";function kk(e,t,n=!1){let r,o;const s=et(e);return s?(r=e,o=Xr):(r=e.get,o=e.set),new Pk(r,o,s||!o,n)}function Rk(e,...t){}function Lk(e,t){}function Uo(e,t,n,r){let o;try{o=r?e(...r):e()}catch(s){us(s,t,n)}return o}function mr(e,t,n,r){if(et(e)){const s=Uo(e,t,n,r);return s&&qh(s)&&s.catch(l=>{us(l,t,n)}),s}const o=[];for(let s=0;s<e.length;s++)o.push(mr(e[s],t,n,r));return o}function us(e,t,n,r=!0){const o=t?t.vnode:null;if(t){let s=t.parent;const l=t.proxy,a=n;for(;s;){const f=s.ec;if(f){for(let p=0;p<f.length;p++)if(f[p](e,l,a)===!1)return}s=s.parent}const c=t.appContext.config.errorHandler;if(c){Uo(c,null,10,[e,l,a]);return}}Nk(e,n,o,r)}function Nk(e,t,n,r=!0){console.error(e)}let oa=!1,zp=!1;const In=[];let vo=0;const Ds=[];let Mo=null,Hi=0;const A_=Promise.resolve();let om=null;function rn(e){const t=om||A_;return e?t.then(this?e.bind(this):e):t}function Mk(e){let t=vo+1,n=In.length;for(;t<n;){const r=t+n>>>1;ia(In[r])<e?t=r+1:n=r}return t}function rd(e){(!In.length||!In.includes(e,oa&&e.allowRecurse?vo+1:vo))&&(e.id==null?In.push(e):In.splice(Mk(e.id),0,e),I_())}function I_(){!oa&&!zp&&(zp=!0,om=A_.then(P_))}function Dk(e){const t=In.indexOf(e);t>vo&&In.splice(t,1)}function im(e){Je(e)?Ds.push(...e):(!Mo||!Mo.includes(e,e.allowRecurse?Hi+1:Hi))&&Ds.push(e),I_()}function Xy(e,t=oa?vo+1:0){for(;t<In.length;t++){const n=In[t];n&&n.pre&&(In.splice(t,1),t--,n())}}function gc(e){if(Ds.length){const t=[...new Set(Ds)];if(Ds.length=0,Mo){Mo.push(...t);return}for(Mo=t,Mo.sort((n,r)=>ia(n)-ia(r)),Hi=0;Hi<Mo.length;Hi++)Mo[Hi]();Mo=null,Hi=0}}const ia=e=>e.id==null?1/0:e.id,Fk=(e,t)=>{const n=ia(e)-ia(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function P_(e){zp=!1,oa=!0,In.sort(Fk);const t=Xr;try{for(vo=0;vo<In.length;vo++){const n=In[vo];n&&n.active!==!1&&Uo(n,null,14)}}finally{vo=0,In.length=0,gc(),oa=!1,om=null,(In.length||Ds.length)&&P_()}}let Rs,Bu=[];function k_(e,t){var n,r;Rs=e,Rs?(Rs.enabled=!0,Bu.forEach(({event:o,args:s})=>Rs.emit(o,...s)),Bu=[]):typeof window!="undefined"&&window.HTMLElement&&!(!((r=(n=window.navigator)===null||n===void 0?void 0:n.userAgent)===null||r===void 0)&&r.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(s=>{k_(s,t)}),setTimeout(()=>{Rs||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Bu=[])},3e3)):Bu=[]}function Bk(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Ut;let o=n;const s=t.startsWith("update:"),l=s&&t.slice(7);if(l&&l in r){const p=`${l==="modelValue"?"model":l}Modifiers`,{number:h,trim:v}=r[p]||Ut;v&&(o=n.map(y=>on(y)?y.trim():y)),h&&(o=n.map(zP))}let a,c=r[a=Hl(t)]||r[a=Hl(eo(t))];!c&&s&&(c=r[a=Hl(Xc(t))]),c&&mr(c,e,6,o);const f=r[a+"Once"];if(f){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,mr(f,e,6,o)}}function R_(e,t,n=!1){const r=t.emitsCache,o=r.get(e);if(o!==void 0)return o;const s=e.emits;let l={},a=!1;if(!et(e)){const c=f=>{const p=R_(f,t,!0);p&&(a=!0,$n(l,p))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!s&&!a?(qt(e)&&r.set(e,null),null):(Je(s)?s.forEach(c=>l[c]=null):$n(l,s),qt(e)&&r.set(e,l),l)}function od(e,t){return!e||!Kc(t)?!1:(t=t.slice(2).replace(/Once$/,""),_t(e,t[0].toLowerCase()+t.slice(1))||_t(e,Xc(t))||_t(e,t))}let xn=null,id=null;function sa(e){const t=xn;return xn=e,id=e&&e.type.__scopeId||null,t}function Uk(e){id=e}function jk(){id=null}const Hk=e=>ye;function ye(e,t=xn,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&Zp(-1);const s=sa(t);let l;try{l=e(...o)}finally{sa(s),r._d&&Zp(1)}return l};return r._n=!0,r._c=!0,r._d=!0,r}function tc(e){const{type:t,vnode:n,proxy:r,withProxy:o,props:s,propsOptions:[l],slots:a,attrs:c,emit:f,render:p,renderCache:h,data:v,setupState:y,ctx:_,inheritAttrs:w}=e;let I,O;const S=sa(e);try{if(n.shapeFlag&4){const T=o||r;I=fr(p.call(T,T,h,s,y,v,_)),O=c}else{const T=t;I=fr(T.length>1?T(s,{attrs:c,slots:a,emit:f}):T(s,null)),O=t.props?c:Wk(c)}}catch(T){ql.length=0,us(T,e,1),I=q(Rn)}let E=I;if(O&&w!==!1){const T=Object.keys(O),{shapeFlag:$}=E;T.length&&$&7&&(l&&T.some(s_)&&(O=zk(O,l)),E=Dr(E,O))}return n.dirs&&(E=Dr(E),E.dirs=E.dirs?E.dirs.concat(n.dirs):n.dirs),n.transition&&(E.transition=n.transition),I=E,sa(S),I}function Vk(e){let t;for(let n=0;n<e.length;n++){const r=e[n];if(gi(r)){if(r.type!==Rn||r.children==="v-if"){if(t)return;t=r}}else return}return t}const Wk=e=>{let t;for(const n in e)(n==="class"||n==="style"||Kc(n))&&((t||(t={}))[n]=e[n]);return t},zk=(e,t)=>{const n={};for(const r in e)(!s_(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function qk(e,t,n){const{props:r,children:o,component:s}=e,{props:l,children:a,patchFlag:c}=t,f=s.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?Jy(r,l,f):!!l;if(c&8){const p=t.dynamicProps;for(let h=0;h<p.length;h++){const v=p[h];if(l[v]!==r[v]&&!od(f,v))return!0}}}else return(o||a)&&(!a||!a.$stable)?!0:r===l?!1:r?l?Jy(r,l,f):!0:!!l;return!1}function Jy(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let o=0;o<r.length;o++){const s=r[o];if(t[s]!==e[s]&&!od(n,s))return!0}return!1}function sm({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const L_=e=>e.__isSuspense,Kk={name:"Suspense",__isSuspense:!0,process(e,t,n,r,o,s,l,a,c,f){e==null?Xk(t,n,r,o,s,l,a,c,f):Jk(e,t,n,r,o,l,a,c,f)},hydrate:Yk,create:lm,normalize:Zk},Gk=Kk;function la(e,t){const n=e.props&&e.props[t];et(n)&&n()}function Xk(e,t,n,r,o,s,l,a,c){const{p:f,o:{createElement:p}}=c,h=p("div"),v=e.suspense=lm(e,o,r,t,h,n,s,l,a,c);f(null,v.pendingBranch=e.ssContent,h,null,r,v,s,l),v.deps>0?(la(e,"onPending"),la(e,"onFallback"),f(null,e.ssFallback,t,n,r,null,s,l),Fs(v,e.ssFallback)):v.resolve()}function Jk(e,t,n,r,o,s,l,a,{p:c,um:f,o:{createElement:p}}){const h=t.suspense=e.suspense;h.vnode=t,t.el=e.el;const v=t.ssContent,y=t.ssFallback,{activeBranch:_,pendingBranch:w,isInFallback:I,isHydrating:O}=h;if(w)h.pendingBranch=v,Kr(v,w)?(c(w,v,h.hiddenContainer,null,o,h,s,l,a),h.deps<=0?h.resolve():I&&(c(_,y,n,r,o,null,s,l,a),Fs(h,y))):(h.pendingId++,O?(h.isHydrating=!1,h.activeBranch=w):f(w,o,h),h.deps=0,h.effects.length=0,h.hiddenContainer=p("div"),I?(c(null,v,h.hiddenContainer,null,o,h,s,l,a),h.deps<=0?h.resolve():(c(_,y,n,r,o,null,s,l,a),Fs(h,y))):_&&Kr(v,_)?(c(_,v,n,r,o,h,s,l,a),h.resolve(!0)):(c(null,v,h.hiddenContainer,null,o,h,s,l,a),h.deps<=0&&h.resolve()));else if(_&&Kr(v,_))c(_,v,n,r,o,h,s,l,a),Fs(h,v);else if(la(t,"onPending"),h.pendingBranch=v,h.pendingId++,c(null,v,h.hiddenContainer,null,o,h,s,l,a),h.deps<=0)h.resolve();else{const{timeout:S,pendingId:E}=h;S>0?setTimeout(()=>{h.pendingId===E&&h.fallback(y)},S):S===0&&h.fallback(y)}}function lm(e,t,n,r,o,s,l,a,c,f,p=!1){const{p:h,m:v,um:y,n:_,o:{parentNode:w,remove:I}}=f,O=e.props?qP(e.props.timeout):void 0,S={vnode:e,parent:t,parentComponent:n,isSVG:l,container:r,hiddenContainer:o,anchor:s,deps:0,pendingId:0,timeout:typeof O=="number"?O:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:p,isUnmounted:!1,effects:[],resolve(E=!1){const{vnode:T,activeBranch:$,pendingBranch:P,pendingId:k,effects:A,parentComponent:H,container:D}=S;if(S.isHydrating)S.isHydrating=!1;else if(!E){const K=$&&P.transition&&P.transition.mode==="out-in";K&&($.transition.afterLeave=()=>{k===S.pendingId&&v(P,D,te,0)});let{anchor:te}=S;$&&(te=_($),y($,H,S,!0)),K||v(P,D,te,0)}Fs(S,P),S.pendingBranch=null,S.isInFallback=!1;let F=S.parent,z=!1;for(;F;){if(F.pendingBranch){F.effects.push(...A),z=!0;break}F=F.parent}z||im(A),S.effects=[],la(T,"onResolve")},fallback(E){if(!S.pendingBranch)return;const{vnode:T,activeBranch:$,parentComponent:P,container:k,isSVG:A}=S;la(T,"onFallback");const H=_($),D=()=>{!S.isInFallback||(h(null,E,k,H,P,null,A,a,c),Fs(S,E))},F=E.transition&&E.transition.mode==="out-in";F&&($.transition.afterLeave=D),S.isInFallback=!0,y($,P,null,!0),F||D()},move(E,T,$){S.activeBranch&&v(S.activeBranch,E,T,$),S.container=E},next(){return S.activeBranch&&_(S.activeBranch)},registerDep(E,T){const $=!!S.pendingBranch;$&&S.deps++;const P=E.vnode.el;E.asyncDep.catch(k=>{us(k,E,0)}).then(k=>{if(E.isUnmounted||S.isUnmounted||S.pendingId!==E.suspenseId)return;E.asyncResolved=!0;const{vnode:A}=E;Qp(E,k,!1),P&&(A.el=P);const H=!P&&E.subTree.el;T(E,A,w(P||E.subTree.el),P?null:_(E.subTree),S,l,c),H&&I(H),sm(E,A.el),$&&--S.deps===0&&S.resolve()})},unmount(E,T){S.isUnmounted=!0,S.activeBranch&&y(S.activeBranch,n,E,T),S.pendingBranch&&y(S.pendingBranch,n,E,T)}};return S}function Yk(e,t,n,r,o,s,l,a,c){const f=t.suspense=lm(t,r,n,e.parentNode,document.createElement("div"),null,o,s,l,a,!0),p=c(e,f.pendingBranch=t.ssContent,n,f,s,l);return f.deps===0&&f.resolve(),p}function Zk(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=Yy(r?n.default:n),e.ssFallback=r?Yy(n.fallback):q(Rn)}function Yy(e){let t;if(et(e)){const n=is&&e._c;n&&(e._d=!1,N()),e=e(),n&&(e._d=!0,t=Jn,uw())}return Je(e)&&(e=Vk(e)),e=fr(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function N_(e,t){t&&t.pendingBranch?Je(e)?t.effects.push(...e):t.effects.push(e):im(e)}function Fs(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e,o=n.el=t.el;r&&r.subTree===n&&(r.vnode.el=o,sm(r,o))}function Yt(e,t){if(Xt){let n=Xt.provides;const r=Xt.parent&&Xt.parent.provides;r===n&&(n=Xt.provides=Object.create(r)),n[e]=t}}function kt(e,t,n=!1){const r=Xt||xn;if(r){const o=r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(o&&e in o)return o[e];if(arguments.length>1)return n&&et(t)?t.call(r.proxy):t}}function jt(e,t){return $a(e,null,t)}function M_(e,t){return $a(e,null,{flush:"post"})}function Qk(e,t){return $a(e,null,{flush:"sync"})}const Uu={};function Ft(e,t,n){return $a(e,t,n)}function $a(e,t,{immediate:n,deep:r,flush:o,onTrack:s,onTrigger:l}=Ut){const a=d_()===(Xt==null?void 0:Xt.scope)?Xt:null;let c,f=!1,p=!1;if(dn(e)?(c=()=>e.value,f=na(e)):Xi(e)?(c=()=>e,r=!0):Je(e)?(p=!0,f=e.some(E=>Xi(E)||na(E)),c=()=>e.map(E=>{if(dn(E))return E.value;if(Xi(E))return zi(E);if(et(E))return Uo(E,a,2)})):et(e)?t?c=()=>Uo(e,a,2):c=()=>{if(!(a&&a.isUnmounted))return h&&h(),mr(e,a,3,[v])}:c=Xr,t&&r){const E=c;c=()=>zi(E())}let h,v=E=>{h=O.onStop=()=>{Uo(E,a,4)}},y;if(Ws)if(v=Xr,t?n&&mr(t,a,3,[c(),p?[]:void 0,v]):c(),o==="sync"){const E=Ew();y=E.__watcherHandles||(E.__watcherHandles=[])}else return Xr;let _=p?new Array(e.length).fill(Uu):Uu;const w=()=>{if(!!O.active)if(t){const E=O.run();(r||f||(p?E.some((T,$)=>Hs(T,_[$])):Hs(E,_)))&&(h&&h(),mr(t,a,3,[E,_===Uu?void 0:p&&_[0]===Uu?[]:_,v]),_=E)}else O.run()};w.allowRecurse=!!t;let I;o==="sync"?I=w:o==="post"?I=()=>Sn(w,a&&a.suspense):(w.pre=!0,a&&(w.id=a.uid),I=()=>rd(w));const O=new xa(c,I);t?n?w():_=O.run():o==="post"?Sn(O.run.bind(O),a&&a.suspense):O.run();const S=()=>{O.stop(),a&&a.scope&&Wh(a.scope.effects,O)};return y&&y.push(S),S}function eR(e,t,n){const r=this.proxy,o=on(e)?e.includes(".")?D_(r,e):()=>r[e]:e.bind(r,r);let s;et(t)?s=t:(s=t.handler,n=t);const l=Xt;yi(this);const a=$a(o,s.bind(r),n);return l?yi(l):hi(),a}function D_(e,t){const n=t.split(".");return()=>{let r=e;for(let o=0;o<n.length&&r;o++)r=r[n[o]];return r}}function zi(e,t){if(!qt(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),dn(e))zi(e.value,t);else if(Je(e))for(let n=0;n<e.length;n++)zi(e[n],t);else if(l_(e)||Ms(e))e.forEach(n=>{zi(n,t)});else if(u_(e))for(const n in e)zi(e[n],t);return e}function am(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return gt(()=>{e.isMounted=!0}),cs(()=>{e.isUnmounting=!0}),e}const Or=[Function,Array],tR={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Or,onEnter:Or,onAfterEnter:Or,onEnterCancelled:Or,onBeforeLeave:Or,onLeave:Or,onAfterLeave:Or,onLeaveCancelled:Or,onBeforeAppear:Or,onAppear:Or,onAfterAppear:Or,onAppearCancelled:Or},setup(e,{slots:t}){const n=Ko(),r=am();let o;return()=>{const s=t.default&&sd(t.default(),!0);if(!s||!s.length)return;let l=s[0];if(s.length>1){for(const w of s)if(w.type!==Rn){l=w;break}}const a=Ue(e),{mode:c}=a;if(r.isLeaving)return up(l);const f=Zy(l);if(!f)return up(l);const p=Vs(f,a,r,n);rs(f,p);const h=n.subTree,v=h&&Zy(h);let y=!1;const{getTransitionKey:_}=f.type;if(_){const w=_();o===void 0?o=w:w!==o&&(o=w,y=!0)}if(v&&v.type!==Rn&&(!Kr(f,v)||y)){const w=Vs(v,a,r,n);if(rs(v,w),c==="out-in")return r.isLeaving=!0,w.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},up(l);c==="in-out"&&f.type!==Rn&&(w.delayLeave=(I,O,S)=>{const E=F_(r,v);E[String(v.key)]=v,I._leaveCb=()=>{O(),I._leaveCb=void 0,delete p.delayedLeave},p.delayedLeave=S})}return l}}},um=tR;function F_(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Vs(e,t,n,r){const{appear:o,mode:s,persisted:l=!1,onBeforeEnter:a,onEnter:c,onAfterEnter:f,onEnterCancelled:p,onBeforeLeave:h,onLeave:v,onAfterLeave:y,onLeaveCancelled:_,onBeforeAppear:w,onAppear:I,onAfterAppear:O,onAppearCancelled:S}=t,E=String(e.key),T=F_(n,e),$=(A,H)=>{A&&mr(A,r,9,H)},P=(A,H)=>{const D=H[1];$(A,H),Je(A)?A.every(F=>F.length<=1)&&D():A.length<=1&&D()},k={mode:s,persisted:l,beforeEnter(A){let H=a;if(!n.isMounted)if(o)H=w||a;else return;A._leaveCb&&A._leaveCb(!0);const D=T[E];D&&Kr(e,D)&&D.el._leaveCb&&D.el._leaveCb(),$(H,[A])},enter(A){let H=c,D=f,F=p;if(!n.isMounted)if(o)H=I||c,D=O||f,F=S||p;else return;let z=!1;const K=A._enterCb=te=>{z||(z=!0,te?$(F,[A]):$(D,[A]),k.delayedLeave&&k.delayedLeave(),A._enterCb=void 0)};H?P(H,[A,K]):K()},leave(A,H){const D=String(e.key);if(A._enterCb&&A._enterCb(!0),n.isUnmounting)return H();$(h,[A]);let F=!1;const z=A._leaveCb=K=>{F||(F=!0,H(),K?$(_,[A]):$(y,[A]),A._leaveCb=void 0,T[D]===e&&delete T[D])};T[D]=e,v?P(v,[A,z]):z()},clone(A){return Vs(A,t,n,r)}};return k}function up(e){if(Ca(e))return e=Dr(e),e.children=null,e}function Zy(e){return Ca(e)?e.children?e.children[0]:void 0:e}function rs(e,t){e.shapeFlag&6&&e.component?rs(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function sd(e,t=!1,n){let r=[],o=0;for(let s=0;s<e.length;s++){let l=e[s];const a=n==null?l.key:String(n)+String(l.key!=null?l.key:s);l.type===Fe?(l.patchFlag&128&&o++,r=r.concat(sd(l.children,t,a))):(t||l.type!==Rn)&&r.push(a!=null?Dr(l,{key:a}):l)}if(o>1)for(let s=0;s<r.length;s++)r[s].patchFlag=-2;return r}function ve(e){return et(e)?{setup:e,name:e.name}:e}const Ji=e=>!!e.type.__asyncLoader;function nR(e){et(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:o=200,timeout:s,suspensible:l=!0,onError:a}=e;let c=null,f,p=0;const h=()=>(p++,c=null,v()),v=()=>{let y;return c||(y=c=t().catch(_=>{if(_=_ instanceof Error?_:new Error(String(_)),a)return new Promise((w,I)=>{a(_,()=>w(h()),()=>I(_),p+1)});throw _}).then(_=>y!==c&&c?c:(_&&(_.__esModule||_[Symbol.toStringTag]==="Module")&&(_=_.default),f=_,_)))};return ve({name:"AsyncComponentWrapper",__asyncLoader:v,get __asyncResolved(){return f},setup(){const y=Xt;if(f)return()=>cp(f,y);const _=S=>{c=null,us(S,y,13,!r)};if(l&&y.suspense||Ws)return v().then(S=>()=>cp(S,y)).catch(S=>(_(S),()=>r?q(r,{error:S}):null));const w=_e(!1),I=_e(),O=_e(!!o);return o&&setTimeout(()=>{O.value=!1},o),s!=null&&setTimeout(()=>{if(!w.value&&!I.value){const S=new Error(`Async component timed out after ${s}ms.`);_(S),I.value=S}},s),v().then(()=>{w.value=!0,y.parent&&Ca(y.parent.vnode)&&rd(y.parent.update)}).catch(S=>{_(S),I.value=S}),()=>{if(w.value&&f)return cp(f,y);if(I.value&&r)return q(r,{error:I.value});if(n&&!O.value)return q(n)}}})}function cp(e,t){const{ref:n,props:r,children:o,ce:s}=t.vnode,l=q(e,r,o);return l.ref=n,l.ce=s,delete t.vnode.ce,l}const Ca=e=>e.type.__isKeepAlive,rR={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Ko(),r=n.ctx;if(!r.renderer)return()=>{const S=t.default&&t.default();return S&&S.length===1?S[0]:S};const o=new Map,s=new Set;let l=null;const a=n.suspense,{renderer:{p:c,m:f,um:p,o:{createElement:h}}}=r,v=h("div");r.activate=(S,E,T,$,P)=>{const k=S.component;f(S,E,T,0,a),c(k.vnode,S,E,T,k,a,$,S.slotScopeIds,P),Sn(()=>{k.isDeactivated=!1,k.a&&Vl(k.a);const A=S.props&&S.props.onVnodeMounted;A&&Xn(A,k.parent,S)},a)},r.deactivate=S=>{const E=S.component;f(S,v,null,1,a),Sn(()=>{E.da&&Vl(E.da);const T=S.props&&S.props.onVnodeUnmounted;T&&Xn(T,E.parent,S),E.isDeactivated=!0},a)};function y(S){dp(S),p(S,n,a,!0)}function _(S){o.forEach((E,T)=>{const $=th(E.type);$&&(!S||!S($))&&w(T)})}function w(S){const E=o.get(S);!l||!Kr(E,l)?y(E):l&&dp(l),o.delete(S),s.delete(S)}Ft(()=>[e.include,e.exclude],([S,E])=>{S&&_(T=>Fl(S,T)),E&&_(T=>!Fl(E,T))},{flush:"post",deep:!0});let I=null;const O=()=>{I!=null&&o.set(I,fp(n.subTree))};return gt(O),ad(O),cs(()=>{o.forEach(S=>{const{subTree:E,suspense:T}=n,$=fp(E);if(S.type===$.type&&S.key===$.key){dp($);const P=$.component.da;P&&Sn(P,T);return}y(S)})}),()=>{if(I=null,!t.default)return null;const S=t.default(),E=S[0];if(S.length>1)return l=null,S;if(!gi(E)||!(E.shapeFlag&4)&&!(E.shapeFlag&128))return l=null,E;let T=fp(E);const $=T.type,P=th(Ji(T)?T.type.__asyncResolved||{}:$),{include:k,exclude:A,max:H}=e;if(k&&(!P||!Fl(k,P))||A&&P&&Fl(A,P))return l=T,E;const D=T.key==null?$:T.key,F=o.get(D);return T.el&&(T=Dr(T),E.shapeFlag&128&&(E.ssContent=T)),I=D,F?(T.el=F.el,T.component=F.component,T.transition&&rs(T,T.transition),T.shapeFlag|=512,s.delete(D),s.add(D)):(s.add(D),H&&s.size>parseInt(H,10)&&w(s.values().next().value)),T.shapeFlag|=256,l=T,L_(E.type)?E:T}}},oR=rR;function Fl(e,t){return Je(e)?e.some(n=>Fl(n,t)):on(e)?e.split(",").includes(t):jP(e)?e.test(t):!1}function B_(e,t){j_(e,"a",t)}function U_(e,t){j_(e,"da",t)}function j_(e,t,n=Xt){const r=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(ld(t,r,n),n){let o=n.parent;for(;o&&o.parent;)Ca(o.parent.vnode)&&iR(r,t,n,o),o=o.parent}}function iR(e,t,n,r){const o=ld(t,e,r,!0);Zt(()=>{Wh(r[t],o)},n)}function dp(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function fp(e){return e.shapeFlag&128?e.ssContent:e}function ld(e,t,n=Xt,r=!1){if(n){const o=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...l)=>{if(n.isUnmounted)return;sl(),yi(n);const a=mr(t,n,e,l);return hi(),ll(),a});return r?o.unshift(s):o.push(s),s}}const qo=e=>(t,n=Xt)=>(!Ws||e==="sp")&&ld(e,(...r)=>t(...r),n),H_=qo("bm"),gt=qo("m"),V_=qo("bu"),ad=qo("u"),cs=qo("bum"),Zt=qo("um"),W_=qo("sp"),z_=qo("rtg"),q_=qo("rtc");function K_(e,t=Xt){ld("ec",e,t)}function G_(e,t){const n=xn;if(n===null)return e;const r=cd(n)||n.proxy,o=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[l,a,c,f=Ut]=t[s];l&&(et(l)&&(l={mounted:l,updated:l}),l.deep&&zi(a),o.push({dir:l,instance:r,value:a,oldValue:void 0,arg:c,modifiers:f}))}return e}function mo(e,t,n,r){const o=e.dirs,s=t&&t.dirs;for(let l=0;l<o.length;l++){const a=o[l];s&&(a.oldValue=s[l].value);let c=a.dir[r];c&&(sl(),mr(c,n,8,[e.el,a,e,t]),ll())}}const cm="components",sR="directives";function X(e,t){return dm(cm,e,!0,t)||e}const X_=Symbol();function lR(e){return on(e)?dm(cm,e,!1)||e:e||X_}function aR(e){return dm(sR,e)}function dm(e,t,n=!0,r=!1){const o=xn||Xt;if(o){const s=o.type;if(e===cm){const a=th(s,!1);if(a&&(a===t||a===eo(t)||a===Jc(eo(t))))return s}const l=Qy(o[e]||s[e],t)||Qy(o.appContext[e],t);return!l&&r?s:l}}function Qy(e,t){return e&&(e[t]||e[eo(t)]||e[Jc(eo(t))])}function Mt(e,t,n,r){let o;const s=n&&n[r];if(Je(e)||on(e)){o=new Array(e.length);for(let l=0,a=e.length;l<a;l++)o[l]=t(e[l],l,void 0,s&&s[l])}else if(typeof e=="number"){o=new Array(e);for(let l=0;l<e;l++)o[l]=t(l+1,l,void 0,s&&s[l])}else if(qt(e))if(e[Symbol.iterator])o=Array.from(e,(l,a)=>t(l,a,void 0,s&&s[a]));else{const l=Object.keys(e);o=new Array(l.length);for(let a=0,c=l.length;a<c;a++){const f=l[a];o[a]=t(e[f],f,a,s&&s[a])}}else o=[];return n&&(n[r]=o),o}function uR(e,t){for(let n=0;n<t.length;n++){const r=t[n];if(Je(r))for(let o=0;o<r.length;o++)e[r[o].name]=r[o].fn;else r&&(e[r.name]=r.key?(...o)=>{const s=r.fn(...o);return s&&(s.key=r.key),s}:r.fn)}return e}function gr(e,t,n={},r,o){if(xn.isCE||xn.parent&&Ji(xn.parent)&&xn.parent.isCE)return t!=="default"&&(n.name=t),q("slot",n,r&&r());let s=e[t];s&&s._c&&(s._d=!1),N();const l=s&&J_(s(n)),a=bt(Fe,{key:n.key||l&&l.key||`_${t}`},l||(r?r():[]),l&&e._===1?64:-2);return!o&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),s&&s._c&&(s._d=!0),a}function J_(e){return e.some(t=>gi(t)?!(t.type===Rn||t.type===Fe&&!J_(t.children)):!0)?e:null}function cR(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:Hl(r)]=e[r];return n}const qp=e=>e?mw(e)?cd(e)||e.proxy:qp(e.parent):null,Wl=$n(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=>qp(e.parent),$root:e=>qp(e.root),$emit:e=>e.emit,$options:e=>fm(e),$forceUpdate:e=>e.f||(e.f=()=>rd(e.update)),$nextTick:e=>e.n||(e.n=rn.bind(e.proxy)),$watch:e=>eR.bind(e)}),pp=(e,t)=>e!==Ut&&!e.__isScriptSetup&&_t(e,t),Kp={get({_:e},t){const{ctx:n,setupState:r,data:o,props:s,accessCache:l,type:a,appContext:c}=e;let f;if(t[0]!=="$"){const y=l[t];if(y!==void 0)switch(y){case 1:return r[t];case 2:return o[t];case 4:return n[t];case 3:return s[t]}else{if(pp(r,t))return l[t]=1,r[t];if(o!==Ut&&_t(o,t))return l[t]=2,o[t];if((f=e.propsOptions[0])&&_t(f,t))return l[t]=3,s[t];if(n!==Ut&&_t(n,t))return l[t]=4,n[t];Gp&&(l[t]=0)}}const p=Wl[t];let h,v;if(p)return t==="$attrs"&&tr(e,"get",t),p(e);if((h=a.__cssModules)&&(h=h[t]))return h;if(n!==Ut&&_t(n,t))return l[t]=4,n[t];if(v=c.config.globalProperties,_t(v,t))return v[t]},set({_:e},t,n){const{data:r,setupState:o,ctx:s}=e;return pp(o,t)?(o[t]=n,!0):r!==Ut&&_t(r,t)?(r[t]=n,!0):_t(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,propsOptions:s}},l){let a;return!!n[l]||e!==Ut&&_t(e,l)||pp(t,l)||(a=s[0])&&_t(a,l)||_t(r,l)||_t(Wl,l)||_t(o.config.globalProperties,l)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:_t(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},dR=$n({},Kp,{get(e,t){if(t!==Symbol.unscopables)return Kp.get(e,t,e)},has(e,t){return t[0]!=="_"&&!kP(t)}});let Gp=!0;function fR(e){const t=fm(e),n=e.proxy,r=e.ctx;Gp=!1,t.beforeCreate&&eb(t.beforeCreate,e,"bc");const{data:o,computed:s,methods:l,watch:a,provide:c,inject:f,created:p,beforeMount:h,mounted:v,beforeUpdate:y,updated:_,activated:w,deactivated:I,beforeDestroy:O,beforeUnmount:S,destroyed:E,unmounted:T,render:$,renderTracked:P,renderTriggered:k,errorCaptured:A,serverPrefetch:H,expose:D,inheritAttrs:F,components:z,directives:K,filters:te}=t;if(f&&pR(f,r,null,e.appContext.config.unwrapInjectedRef),l)for(const Oe in l){const Ae=l[Oe];et(Ae)&&(r[Oe]=Ae.bind(n))}if(o){const Oe=o.call(n,n);qt(Oe)&&(e.data=Si(Oe))}if(Gp=!0,s)for(const Oe in s){const Ae=s[Oe],Ye=et(Ae)?Ae.bind(n,n):et(Ae.get)?Ae.get.bind(n,n):Xr,ft=!et(Ae)&&et(Ae.set)?Ae.set.bind(n):Xr,Le=ce({get:Ye,set:ft});Object.defineProperty(r,Oe,{enumerable:!0,configurable:!0,get:()=>Le.value,set:Ke=>Le.value=Ke})}if(a)for(const Oe in a)Y_(a[Oe],r,n,Oe);if(c){const Oe=et(c)?c.call(n):c;Reflect.ownKeys(Oe).forEach(Ae=>{Yt(Ae,Oe[Ae])})}p&&eb(p,e,"c");function be(Oe,Ae){Je(Ae)?Ae.forEach(Ye=>Oe(Ye.bind(n))):Ae&&Oe(Ae.bind(n))}if(be(H_,h),be(gt,v),be(V_,y),be(ad,_),be(B_,w),be(U_,I),be(K_,A),be(q_,P),be(z_,k),be(cs,S),be(Zt,T),be(W_,H),Je(D))if(D.length){const Oe=e.exposed||(e.exposed={});D.forEach(Ae=>{Object.defineProperty(Oe,Ae,{get:()=>n[Ae],set:Ye=>n[Ae]=Ye})})}else e.exposed||(e.exposed={});$&&e.render===Xr&&(e.render=$),F!=null&&(e.inheritAttrs=F),z&&(e.components=z),K&&(e.directives=K)}function pR(e,t,n=Xr,r=!1){Je(e)&&(e=Xp(e));for(const o in e){const s=e[o];let l;qt(s)?"default"in s?l=kt(s.from||o,s.default,!0):l=kt(s.from||o):l=kt(s),dn(l)&&r?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>l.value,set:a=>l.value=a}):t[o]=l}}function eb(e,t,n){mr(Je(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Y_(e,t,n,r){const o=r.includes(".")?D_(n,r):()=>n[r];if(on(e)){const s=t[e];et(s)&&Ft(o,s)}else if(et(e))Ft(o,e.bind(n));else if(qt(e))if(Je(e))e.forEach(s=>Y_(s,t,n,r));else{const s=et(e.handler)?e.handler.bind(n):t[e.handler];et(s)&&Ft(o,s,e)}}function fm(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:s,config:{optionMergeStrategies:l}}=e.appContext,a=s.get(t);let c;return a?c=a:!o.length&&!n&&!r?c=t:(c={},o.length&&o.forEach(f=>yc(c,f,l,!0)),yc(c,t,l)),qt(t)&&s.set(t,c),c}function yc(e,t,n,r=!1){const{mixins:o,extends:s}=t;s&&yc(e,s,n,!0),o&&o.forEach(l=>yc(e,l,n,!0));for(const l in t)if(!(r&&l==="expose")){const a=hR[l]||n&&n[l];e[l]=a?a(e[l],t[l]):t[l]}return e}const hR={data:tb,props:Ui,emits:Ui,methods:Ui,computed:Ui,beforeCreate:Un,created:Un,beforeMount:Un,mounted:Un,beforeUpdate:Un,updated:Un,beforeDestroy:Un,beforeUnmount:Un,destroyed:Un,unmounted:Un,activated:Un,deactivated:Un,errorCaptured:Un,serverPrefetch:Un,components:Ui,directives:Ui,watch:vR,provide:tb,inject:mR};function tb(e,t){return t?e?function(){return $n(et(e)?e.call(this,this):e,et(t)?t.call(this,this):t)}:t:e}function mR(e,t){return Ui(Xp(e),Xp(t))}function Xp(e){if(Je(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Un(e,t){return e?[...new Set([].concat(e,t))]:t}function Ui(e,t){return e?$n($n(Object.create(null),e),t):t}function vR(e,t){if(!e)return t;if(!t)return e;const n=$n(Object.create(null),e);for(const r in t)n[r]=Un(e[r],t[r]);return n}function gR(e,t,n,r=!1){const o={},s={};mc(s,ud,1),e.propsDefaults=Object.create(null),Z_(e,t,o,s);for(const l in e.propsOptions[0])l in o||(o[l]=void 0);n?e.props=r?o:$_(o):e.type.props?e.props=o:e.props=s,e.attrs=s}function yR(e,t,n,r){const{props:o,attrs:s,vnode:{patchFlag:l}}=e,a=Ue(o),[c]=e.propsOptions;let f=!1;if((r||l>0)&&!(l&16)){if(l&8){const p=e.vnode.dynamicProps;for(let h=0;h<p.length;h++){let v=p[h];if(od(e.emitsOptions,v))continue;const y=t[v];if(c)if(_t(s,v))y!==s[v]&&(s[v]=y,f=!0);else{const _=eo(v);o[_]=Jp(c,a,_,y,e,!1)}else y!==s[v]&&(s[v]=y,f=!0)}}}else{Z_(e,t,o,s)&&(f=!0);let p;for(const h in a)(!t||!_t(t,h)&&((p=Xc(h))===h||!_t(t,p)))&&(c?n&&(n[h]!==void 0||n[p]!==void 0)&&(o[h]=Jp(c,a,h,void 0,e,!0)):delete o[h]);if(s!==a)for(const h in s)(!t||!_t(t,h)&&!0)&&(delete s[h],f=!0)}f&&Vo(e,"set","$attrs")}function Z_(e,t,n,r){const[o,s]=e.propsOptions;let l=!1,a;if(t)for(let c in t){if(jl(c))continue;const f=t[c];let p;o&&_t(o,p=eo(c))?!s||!s.includes(p)?n[p]=f:(a||(a={}))[p]=f:od(e.emitsOptions,c)||(!(c in r)||f!==r[c])&&(r[c]=f,l=!0)}if(s){const c=Ue(n),f=a||Ut;for(let p=0;p<s.length;p++){const h=s[p];n[h]=Jp(o,c,h,f[h],e,!_t(f,h))}}return l}function Jp(e,t,n,r,o,s){const l=e[n];if(l!=null){const a=_t(l,"default");if(a&&r===void 0){const c=l.default;if(l.type!==Function&&et(c)){const{propsDefaults:f}=o;n in f?r=f[n]:(yi(o),r=f[n]=c.call(null,t),hi())}else r=c}l[0]&&(s&&!a?r=!1:l[1]&&(r===""||r===Xc(n))&&(r=!0))}return r}function Q_(e,t,n=!1){const r=t.propsCache,o=r.get(e);if(o)return o;const s=e.props,l={},a=[];let c=!1;if(!et(e)){const p=h=>{c=!0;const[v,y]=Q_(h,t,!0);$n(l,v),y&&a.push(...y)};!n&&t.mixins.length&&t.mixins.forEach(p),e.extends&&p(e.extends),e.mixins&&e.mixins.forEach(p)}if(!s&&!c)return qt(e)&&r.set(e,Ns),Ns;if(Je(s))for(let p=0;p<s.length;p++){const h=eo(s[p]);nb(h)&&(l[h]=Ut)}else if(s)for(const p in s){const h=eo(p);if(nb(h)){const v=s[p],y=l[h]=Je(v)||et(v)?{type:v}:Object.assign({},v);if(y){const _=ib(Boolean,y.type),w=ib(String,y.type);y[0]=_>-1,y[1]=w<0||_<w,(_>-1||_t(y,"default"))&&a.push(h)}}}const f=[l,a];return qt(e)&&r.set(e,f),f}function nb(e){return e[0]!=="$"}function rb(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function ob(e,t){return rb(e)===rb(t)}function ib(e,t){return Je(t)?t.findIndex(n=>ob(n,e)):et(t)&&ob(t,e)?0:-1}const ew=e=>e[0]==="_"||e==="$stable",pm=e=>Je(e)?e.map(fr):[fr(e)],bR=(e,t,n)=>{if(t._n)return t;const r=ye((...o)=>pm(t(...o)),n);return r._c=!1,r},tw=(e,t,n)=>{const r=e._ctx;for(const o in e){if(ew(o))continue;const s=e[o];if(et(s))t[o]=bR(o,s,r);else if(s!=null){const l=pm(s);t[o]=()=>l}}},nw=(e,t)=>{const n=pm(t);e.slots.default=()=>n},_R=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=Ue(t),mc(t,"_",n)):tw(t,e.slots={})}else e.slots={},t&&nw(e,t);mc(e.slots,ud,1)},wR=(e,t,n)=>{const{vnode:r,slots:o}=e;let s=!0,l=Ut;if(r.shapeFlag&32){const a=t._;a?n&&a===1?s=!1:($n(o,t),!n&&a===1&&delete o._):(s=!t.$stable,tw(t,o)),l=t}else t&&(nw(e,t),l={default:1});if(s)for(const a in o)!ew(a)&&!(a in l)&&delete o[a]};function rw(){return{app:null,config:{isNativeTag:FP,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 SR=0;function ER(e,t){return function(r,o=null){et(r)||(r=Object.assign({},r)),o!=null&&!qt(o)&&(o=null);const s=rw(),l=new Set;let a=!1;const c=s.app={_uid:SR++,_component:r,_props:o,_container:null,_context:s,_instance:null,version:$w,get config(){return s.config},set config(f){},use(f,...p){return l.has(f)||(f&&et(f.install)?(l.add(f),f.install(c,...p)):et(f)&&(l.add(f),f(c,...p))),c},mixin(f){return s.mixins.includes(f)||s.mixins.push(f),c},component(f,p){return p?(s.components[f]=p,c):s.components[f]},directive(f,p){return p?(s.directives[f]=p,c):s.directives[f]},mount(f,p,h){if(!a){const v=q(r,o);return v.appContext=s,p&&t?t(v,f):e(v,f,h),a=!0,c._container=f,f.__vue_app__=c,cd(v.component)||v.component.proxy}},unmount(){a&&(e(null,c._container),delete c._container.__vue_app__)},provide(f,p){return s.provides[f]=p,c}};return c}}function bc(e,t,n,r,o=!1){if(Je(e)){e.forEach((v,y)=>bc(v,t&&(Je(t)?t[y]:t),n,r,o));return}if(Ji(r)&&!o)return;const s=r.shapeFlag&4?cd(r.component)||r.component.proxy:r.el,l=o?null:s,{i:a,r:c}=e,f=t&&t.r,p=a.refs===Ut?a.refs={}:a.refs,h=a.setupState;if(f!=null&&f!==c&&(on(f)?(p[f]=null,_t(h,f)&&(h[f]=null)):dn(f)&&(f.value=null)),et(c))Uo(c,a,12,[l,p]);else{const v=on(c),y=dn(c);if(v||y){const _=()=>{if(e.f){const w=v?_t(h,c)?h[c]:p[c]:c.value;o?Je(w)&&Wh(w,s):Je(w)?w.includes(s)||w.push(s):v?(p[c]=[s],_t(h,c)&&(h[c]=p[c])):(c.value=[s],e.k&&(p[e.k]=c.value))}else v?(p[c]=l,_t(h,c)&&(h[c]=l)):y&&(c.value=l,e.k&&(p[e.k]=l))};l?(_.id=-1,Sn(_,n)):_()}}}let ii=!1;const ju=e=>/svg/.test(e.namespaceURI)&&e.tagName!=="foreignObject",Hu=e=>e.nodeType===8;function xR(e){const{mt:t,p:n,o:{patchProp:r,createText:o,nextSibling:s,parentNode:l,remove:a,insert:c,createComment:f}}=e,p=(O,S)=>{if(!S.hasChildNodes()){n(null,O,S),gc(),S._vnode=O;return}ii=!1,h(S.firstChild,O,null,null,null),gc(),S._vnode=O,ii&&console.error("Hydration completed but contains mismatches.")},h=(O,S,E,T,$,P=!1)=>{const k=Hu(O)&&O.data==="[",A=()=>w(O,S,E,T,$,k),{type:H,ref:D,shapeFlag:F,patchFlag:z}=S;let K=O.nodeType;S.el=O,z===-2&&(P=!1,S.dynamicChildren=null);let te=null;switch(H){case os:K!==3?S.children===""?(c(S.el=o(""),l(O),O),te=O):te=A():(O.data!==S.children&&(ii=!0,O.data=S.children),te=s(O));break;case Rn:K!==8||k?te=A():te=s(O);break;case Yi:if(k&&(O=s(O),K=O.nodeType),K===1||K===3){te=O;const we=!S.children.length;for(let be=0;be<S.staticCount;be++)we&&(S.children+=te.nodeType===1?te.outerHTML:te.data),be===S.staticCount-1&&(S.anchor=te),te=s(te);return k?s(te):te}else A();break;case Fe:k?te=_(O,S,E,T,$,P):te=A();break;default:if(F&1)K!==1||S.type.toLowerCase()!==O.tagName.toLowerCase()?te=A():te=v(O,S,E,T,$,P);else if(F&6){S.slotScopeIds=$;const we=l(O);if(t(S,we,null,E,T,ju(we),P),te=k?I(O):s(O),te&&Hu(te)&&te.data==="teleport end"&&(te=s(te)),Ji(S)){let be;k?(be=q(Fe),be.anchor=te?te.previousSibling:we.lastChild):be=O.nodeType===3? Xe(""):q("div"),be.el=O,S.component.subTree=be}}else F&64?K!==8?te=A():te=S.type.hydrate(O,S,E,T,$,P,e,y):F&128&&(te=S.type.hydrate(O,S,E,T,ju(l(O)),$,P,e,h))}return D!=null&&bc(D,null,T,S),te},v=(O,S,E,T,$,P)=>{P=P||!!S.dynamicChildren;const{type:k,props:A,patchFlag:H,shapeFlag:D,dirs:F}=S,z=k==="input"&&F||k==="option";if(z||H!==-1){if(F&&mo(S,null,E,"created"),A)if(z||!P||H&48)for(const te in A)(z&&te.endsWith("value")||Kc(te)&&!jl(te))&&r(O,te,null,A[te],!1,void 0,E);else A.onClick&&r(O,"onClick",null,A.onClick,!1,void 0,E);let K;if((K=A&&A.onVnodeBeforeMount)&&Xn(K,E,S),F&&mo(S,null,E,"beforeMount"),((K=A&&A.onVnodeMounted)||F)&&N_(()=>{K&&Xn(K,E,S),F&&mo(S,null,E,"mounted")},T),D&16&&!(A&&(A.innerHTML||A.textContent))){let te=y(O.firstChild,S,O,E,T,$,P);for(;te;){ii=!0;const we=te;te=te.nextSibling,a(we)}}else D&8&&O.textContent!==S.children&&(ii=!0,O.textContent=S.children)}return O.nextSibling},y=(O,S,E,T,$,P,k)=>{k=k||!!S.dynamicChildren;const A=S.children,H=A.length;for(let D=0;D<H;D++){const F=k?A[D]:A[D]=fr(A[D]);if(O)O=h(O,F,T,$,P,k);else{if(F.type===os&&!F.children)continue;ii=!0,n(null,F,E,null,T,$,ju(E),P)}}return O},_=(O,S,E,T,$,P)=>{const{slotScopeIds:k}=S;k&&($=$?$.concat(k):k);const A=l(O),H=y(s(O),S,A,E,T,$,P);return H&&Hu(H)&&H.data==="]"?s(S.anchor=H):(ii=!0,c(S.anchor=f("]"),A,H),H)},w=(O,S,E,T,$,P)=>{if(ii=!0,S.el=null,P){const H=I(O);for(;;){const D=s(O);if(D&&D!==H)a(D);else break}}const k=s(O),A=l(O);return a(O),n(null,S,A,k,E,T,ju(A),$),k},I=O=>{let S=0;for(;O;)if(O=s(O),O&&Hu(O)&&(O.data==="["&&S++,O.data==="]")){if(S===0)return s(O);S--}return O};return[p,h]}const Sn=N_;function ow(e){return sw(e)}function iw(e){return sw(e,xR)}function sw(e,t){const n=KP();n.__VUE__=!0;const{insert:r,remove:o,patchProp:s,createElement:l,createText:a,createComment:c,setText:f,setElementText:p,parentNode:h,nextSibling:v,setScopeId:y=Xr,insertStaticContent:_}=e,w=(L,B,Z,le=null,ie=null,pe=null,Ee=!1,he=null,me=!!B.dynamicChildren)=>{if(L===B)return;L&&!Kr(L,B)&&(le=He(L),Ke(L,ie,pe,!0),L=null),B.patchFlag===-2&&(me=!1,B.dynamicChildren=null);const{type:se,ref:Re,shapeFlag:Pe}=B;switch(se){case os:I(L,B,Z,le);break;case Rn:O(L,B,Z,le);break;case Yi:L==null&&S(B,Z,le,Ee);break;case Fe:z(L,B,Z,le,ie,pe,Ee,he,me);break;default:Pe&1?$(L,B,Z,le,ie,pe,Ee,he,me):Pe&6?K(L,B,Z,le,ie,pe,Ee,he,me):(Pe&64||Pe&128)&&se.process(L,B,Z,le,ie,pe,Ee,he,me,tt)}Re!=null&&ie&&bc(Re,L&&L.ref,pe,B||L,!B)},I=(L,B,Z,le)=>{if(L==null)r(B.el=a(B.children),Z,le);else{const ie=B.el=L.el;B.children!==L.children&&f(ie,B.children)}},O=(L,B,Z,le)=>{L==null?r(B.el=c(B.children||""),Z,le):B.el=L.el},S=(L,B,Z,le)=>{[L.el,L.anchor]=_(L.children,B,Z,le,L.el,L.anchor)},E=({el:L,anchor:B},Z,le)=>{let ie;for(;L&&L!==B;)ie=v(L),r(L,Z,le),L=ie;r(B,Z,le)},T=({el:L,anchor:B})=>{let Z;for(;L&&L!==B;)Z=v(L),o(L),L=Z;o(B)},$=(L,B,Z,le,ie,pe,Ee,he,me)=>{Ee=Ee||B.type==="svg",L==null?P(B,Z,le,ie,pe,Ee,he,me):H(L,B,ie,pe,Ee,he,me)},P=(L,B,Z,le,ie,pe,Ee,he)=>{let me,se;const{type:Re,props:Pe,shapeFlag:Me,transition:je,dirs:rt}=L;if(me=L.el=l(L.type,pe,Pe&&Pe.is,Pe),Me&8?p(me,L.children):Me&16&&A(L.children,me,null,le,ie,pe&&Re!=="foreignObject",Ee,he),rt&&mo(L,null,le,"created"),k(me,L,L.scopeId,Ee,le),Pe){for(const ct in Pe)ct!=="value"&&!jl(ct)&&s(me,ct,null,Pe[ct],pe,L.children,le,ie,Se);"value"in Pe&&s(me,"value",null,Pe.value),(se=Pe.onVnodeBeforeMount)&&Xn(se,le,L)}rt&&mo(L,null,le,"beforeMount");const mt=(!ie||ie&&!ie.pendingBranch)&&je&&!je.persisted;mt&&je.beforeEnter(me),r(me,B,Z),((se=Pe&&Pe.onVnodeMounted)||mt||rt)&&Sn(()=>{se&&Xn(se,le,L),mt&&je.enter(me),rt&&mo(L,null,le,"mounted")},ie)},k=(L,B,Z,le,ie)=>{if(Z&&y(L,Z),le)for(let pe=0;pe<le.length;pe++)y(L,le[pe]);if(ie){let pe=ie.subTree;if(B===pe){const Ee=ie.vnode;k(L,Ee,Ee.scopeId,Ee.slotScopeIds,ie.parent)}}},A=(L,B,Z,le,ie,pe,Ee,he,me=0)=>{for(let se=me;se<L.length;se++){const Re=L[se]=he?ui(L[se]):fr(L[se]);w(null,Re,B,Z,le,ie,pe,Ee,he)}},H=(L,B,Z,le,ie,pe,Ee)=>{const he=B.el=L.el;let{patchFlag:me,dynamicChildren:se,dirs:Re}=B;me|=L.patchFlag&16;const Pe=L.props||Ut,Me=B.props||Ut;let je;Z&&Mi(Z,!1),(je=Me.onVnodeBeforeUpdate)&&Xn(je,Z,B,L),Re&&mo(B,L,Z,"beforeUpdate"),Z&&Mi(Z,!0);const rt=ie&&B.type!=="foreignObject";if(se?D(L.dynamicChildren,se,he,Z,le,rt,pe):Ee||Ae(L,B,he,null,Z,le,rt,pe,!1),me>0){if(me&16)F(he,B,Pe,Me,Z,le,ie);else if(me&2&&Pe.class!==Me.class&&s(he,"class",null,Me.class,ie),me&4&&s(he,"style",Pe.style,Me.style,ie),me&8){const mt=B.dynamicProps;for(let ct=0;ct<mt.length;ct++){const Ht=mt[ct],Mn=Pe[Ht],uo=Me[Ht];(uo!==Mn||Ht==="value")&&s(he,Ht,Mn,uo,ie,L.children,Z,le,Se)}}me&1&&L.children!==B.children&&p(he,B.children)}else!Ee&&se==null&&F(he,B,Pe,Me,Z,le,ie);((je=Me.onVnodeUpdated)||Re)&&Sn(()=>{je&&Xn(je,Z,B,L),Re&&mo(B,L,Z,"updated")},le)},D=(L,B,Z,le,ie,pe,Ee)=>{for(let he=0;he<B.length;he++){const me=L[he],se=B[he],Re=me.el&&(me.type===Fe||!Kr(me,se)||me.shapeFlag&70)?h(me.el):Z;w(me,se,Re,null,le,ie,pe,Ee,!0)}},F=(L,B,Z,le,ie,pe,Ee)=>{if(Z!==le){if(Z!==Ut)for(const he in Z)!jl(he)&&!(he in le)&&s(L,he,Z[he],null,Ee,B.children,ie,pe,Se);for(const he in le){if(jl(he))continue;const me=le[he],se=Z[he];me!==se&&he!=="value"&&s(L,he,se,me,Ee,B.children,ie,pe,Se)}"value"in le&&s(L,"value",Z.value,le.value)}},z=(L,B,Z,le,ie,pe,Ee,he,me)=>{const se=B.el=L?L.el:a(""),Re=B.anchor=L?L.anchor:a("");let{patchFlag:Pe,dynamicChildren:Me,slotScopeIds:je}=B;je&&(he=he?he.concat(je):je),L==null?(r(se,Z,le),r(Re,Z,le),A(B.children,Z,Re,ie,pe,Ee,he,me)):Pe>0&&Pe&64&&Me&&L.dynamicChildren?(D(L.dynamicChildren,Me,Z,ie,pe,Ee,he),(B.key!=null||ie&&B===ie.subTree)&&hm(L,B,!0)):Ae(L,B,Z,Re,ie,pe,Ee,he,me)},K=(L,B,Z,le,ie,pe,Ee,he,me)=>{B.slotScopeIds=he,L==null?B.shapeFlag&512?ie.ctx.activate(B,Z,le,Ee,me):te(B,Z,le,ie,pe,Ee,me):we(L,B,me)},te=(L,B,Z,le,ie,pe,Ee)=>{const he=L.component=hw(L,le,ie);if(Ca(L)&&(he.ctx.renderer=tt),vw(he),he.asyncDep){if(ie&&ie.registerDep(he,be),!L.el){const me=he.subTree=q(Rn);O(null,me,B,Z)}return}be(he,L,B,Z,ie,pe,Ee)},we=(L,B,Z)=>{const le=B.component=L.component;if(qk(L,B,Z))if(le.asyncDep&&!le.asyncResolved){Oe(le,B,Z);return}else le.next=B,Dk(le.update),le.update();else B.el=L.el,le.vnode=B},be=(L,B,Z,le,ie,pe,Ee)=>{const he=()=>{if(L.isMounted){let{next:Re,bu:Pe,u:Me,parent:je,vnode:rt}=L,mt=Re,ct;Mi(L,!1),Re?(Re.el=rt.el,Oe(L,Re,Ee)):Re=rt,Pe&&Vl(Pe),(ct=Re.props&&Re.props.onVnodeBeforeUpdate)&&Xn(ct,je,Re,rt),Mi(L,!0);const Ht=tc(L),Mn=L.subTree;L.subTree=Ht,w(Mn,Ht,h(Mn.el),He(Mn),L,ie,pe),Re.el=Ht.el,mt===null&&sm(L,Ht.el),Me&&Sn(Me,ie),(ct=Re.props&&Re.props.onVnodeUpdated)&&Sn(()=>Xn(ct,je,Re,rt),ie)}else{let Re;const{el:Pe,props:Me}=B,{bm:je,m:rt,parent:mt}=L,ct=Ji(B);if(Mi(L,!1),je&&Vl(je),!ct&&(Re=Me&&Me.onVnodeBeforeMount)&&Xn(Re,mt,B),Mi(L,!0),Pe&&ln){const Ht=()=>{L.subTree=tc(L),ln(Pe,L.subTree,L,ie,null)};ct?B.type.__asyncLoader().then(()=>!L.isUnmounted&&Ht()):Ht()}else{const Ht=L.subTree=tc(L);w(null,Ht,Z,le,L,ie,pe),B.el=Ht.el}if(rt&&Sn(rt,ie),!ct&&(Re=Me&&Me.onVnodeMounted)){const Ht=B;Sn(()=>Xn(Re,mt,Ht),ie)}(B.shapeFlag&256||mt&&Ji(mt.vnode)&&mt.vnode.shapeFlag&256)&&L.a&&Sn(L.a,ie),L.isMounted=!0,B=Z=le=null}},me=L.effect=new xa(he,()=>rd(se),L.scope),se=L.update=()=>me.run();se.id=L.uid,Mi(L,!0),se()},Oe=(L,B,Z)=>{B.component=L;const le=L.vnode.props;L.vnode=B,L.next=null,yR(L,B.props,le,Z),wR(L,B.children,Z),sl(),Xy(),ll()},Ae=(L,B,Z,le,ie,pe,Ee,he,me=!1)=>{const se=L&&L.children,Re=L?L.shapeFlag:0,Pe=B.children,{patchFlag:Me,shapeFlag:je}=B;if(Me>0){if(Me&128){ft(se,Pe,Z,le,ie,pe,Ee,he,me);return}else if(Me&256){Ye(se,Pe,Z,le,ie,pe,Ee,he,me);return}}je&8?(Re&16&&Se(se,ie,pe),Pe!==se&&p(Z,Pe)):Re&16?je&16?ft(se,Pe,Z,le,ie,pe,Ee,he,me):Se(se,ie,pe,!0):(Re&8&&p(Z,""),je&16&&A(Pe,Z,le,ie,pe,Ee,he,me))},Ye=(L,B,Z,le,ie,pe,Ee,he,me)=>{L=L||Ns,B=B||Ns;const se=L.length,Re=B.length,Pe=Math.min(se,Re);let Me;for(Me=0;Me<Pe;Me++){const je=B[Me]=me?ui(B[Me]):fr(B[Me]);w(L[Me],je,Z,null,ie,pe,Ee,he,me)}se>Re?Se(L,ie,pe,!0,!1,Pe):A(B,Z,le,ie,pe,Ee,he,me,Pe)},ft=(L,B,Z,le,ie,pe,Ee,he,me)=>{let se=0;const Re=B.length;let Pe=L.length-1,Me=Re-1;for(;se<=Pe&&se<=Me;){const je=L[se],rt=B[se]=me?ui(B[se]):fr(B[se]);if(Kr(je,rt))w(je,rt,Z,null,ie,pe,Ee,he,me);else break;se++}for(;se<=Pe&&se<=Me;){const je=L[Pe],rt=B[Me]=me?ui(B[Me]):fr(B[Me]);if(Kr(je,rt))w(je,rt,Z,null,ie,pe,Ee,he,me);else break;Pe--,Me--}if(se>Pe){if(se<=Me){const je=Me+1,rt=je<Re?B[je].el:le;for(;se<=Me;)w(null,B[se]=me?ui(B[se]):fr(B[se]),Z,rt,ie,pe,Ee,he,me),se++}}else if(se>Me)for(;se<=Pe;)Ke(L[se],ie,pe,!0),se++;else{const je=se,rt=se,mt=new Map;for(se=rt;se<=Me;se++){const gn=B[se]=me?ui(B[se]):fr(B[se]);gn.key!=null&&mt.set(gn.key,se)}let ct,Ht=0;const Mn=Me-rt+1;let uo=!1,ms=0;const $o=new Array(Mn);for(se=0;se<Mn;se++)$o[se]=0;for(se=je;se<=Pe;se++){const gn=L[se];if(Ht>=Mn){Ke(gn,ie,pe,!0);continue}let Wn;if(gn.key!=null)Wn=mt.get(gn.key);else for(ct=rt;ct<=Me;ct++)if($o[ct-rt]===0&&Kr(gn,B[ct])){Wn=ct;break}Wn===void 0?Ke(gn,ie,pe,!0):($o[Wn-rt]=se+1,Wn>=ms?ms=Wn:uo=!0,w(gn,B[Wn],Z,null,ie,pe,Ee,he,me),Ht++)}const vs=uo?$R($o):Ns;for(ct=vs.length-1,se=Mn-1;se>=0;se--){const gn=rt+se,Wn=B[gn],gs=gn+1<Re?B[gn+1].el:le;$o[se]===0?w(null,Wn,Z,gs,ie,pe,Ee,he,me):uo&&(ct<0||se!==vs[ct]?Le(Wn,Z,gs,2):ct--)}}},Le=(L,B,Z,le,ie=null)=>{const{el:pe,type:Ee,transition:he,children:me,shapeFlag:se}=L;if(se&6){Le(L.component.subTree,B,Z,le);return}if(se&128){L.suspense.move(B,Z,le);return}if(se&64){Ee.move(L,B,Z,tt);return}if(Ee===Fe){r(pe,B,Z);for(let Pe=0;Pe<me.length;Pe++)Le(me[Pe],B,Z,le);r(L.anchor,B,Z);return}if(Ee===Yi){E(L,B,Z);return}if(le!==2&&se&1&&he)if(le===0)he.beforeEnter(pe),r(pe,B,Z),Sn(()=>he.enter(pe),ie);else{const{leave:Pe,delayLeave:Me,afterLeave:je}=he,rt=()=>r(pe,B,Z),mt=()=>{Pe(pe,()=>{rt(),je&&je()})};Me?Me(pe,rt,mt):mt()}else r(pe,B,Z)},Ke=(L,B,Z,le=!1,ie=!1)=>{const{type:pe,props:Ee,ref:he,children:me,dynamicChildren:se,shapeFlag:Re,patchFlag:Pe,dirs:Me}=L;if(he!=null&&bc(he,null,Z,L,!0),Re&256){B.ctx.deactivate(L);return}const je=Re&1&&Me,rt=!Ji(L);let mt;if(rt&&(mt=Ee&&Ee.onVnodeBeforeUnmount)&&Xn(mt,B,L),Re&6)fe(L.component,Z,le);else{if(Re&128){L.suspense.unmount(Z,le);return}je&&mo(L,null,B,"beforeUnmount"),Re&64?L.type.remove(L,B,Z,ie,tt,le):se&&(pe!==Fe||Pe>0&&Pe&64)?Se(se,B,Z,!1,!0):(pe===Fe&&Pe&384||!ie&&Re&16)&&Se(me,B,Z),le&&Q(L)}(rt&&(mt=Ee&&Ee.onVnodeUnmounted)||je)&&Sn(()=>{mt&&Xn(mt,B,L),je&&mo(L,null,B,"unmounted")},Z)},Q=L=>{const{type:B,el:Z,anchor:le,transition:ie}=L;if(B===Fe){ae(Z,le);return}if(B===Yi){T(L);return}const pe=()=>{o(Z),ie&&!ie.persisted&&ie.afterLeave&&ie.afterLeave()};if(L.shapeFlag&1&&ie&&!ie.persisted){const{leave:Ee,delayLeave:he}=ie,me=()=>Ee(Z,pe);he?he(L.el,pe,me):me()}else pe()},ae=(L,B)=>{let Z;for(;L!==B;)Z=v(L),o(L),L=Z;o(B)},fe=(L,B,Z)=>{const{bum:le,scope:ie,update:pe,subTree:Ee,um:he}=L;le&&Vl(le),ie.stop(),pe&&(pe.active=!1,Ke(Ee,L,B,Z)),he&&Sn(he,B),Sn(()=>{L.isUnmounted=!0},B),B&&B.pendingBranch&&!B.isUnmounted&&L.asyncDep&&!L.asyncResolved&&L.suspenseId===B.pendingId&&(B.deps--,B.deps===0&&B.resolve())},Se=(L,B,Z,le=!1,ie=!1,pe=0)=>{for(let Ee=pe;Ee<L.length;Ee++)Ke(L[Ee],B,Z,le,ie)},He=L=>L.shapeFlag&6?He(L.component.subTree):L.shapeFlag&128?L.suspense.next():v(L.anchor||L.el),De=(L,B,Z)=>{L==null?B._vnode&&Ke(B._vnode,null,null,!0):w(B._vnode||null,L,B,null,null,null,Z),Xy(),gc(),B._vnode=L},tt={p:w,um:Ke,m:Le,r:Q,mt:te,mc:A,pc:Ae,pbc:D,n:He,o:e};let vn,ln;return t&&([vn,ln]=t(tt)),{render:De,hydrate:vn,createApp:ER(De,vn)}}function Mi({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function hm(e,t,n=!1){const r=e.children,o=t.children;if(Je(r)&&Je(o))for(let s=0;s<r.length;s++){const l=r[s];let a=o[s];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=o[s]=ui(o[s]),a.el=l.el),n||hm(l,a)),a.type===os&&(a.el=l.el)}}function $R(e){const t=e.slice(),n=[0];let r,o,s,l,a;const c=e.length;for(r=0;r<c;r++){const f=e[r];if(f!==0){if(o=n[n.length-1],e[o]<f){t[r]=o,n.push(r);continue}for(s=0,l=n.length-1;s<l;)a=s+l>>1,e[n[a]]<f?s=a+1:l=a;f<e[n[s]]&&(s>0&&(t[r]=n[s-1]),n[s]=r)}}for(s=n.length,l=n[s-1];s-- >0;)n[s]=l,l=t[l];return n}const CR=e=>e.__isTeleport,zl=e=>e&&(e.disabled||e.disabled===""),sb=e=>typeof SVGElement!="undefined"&&e instanceof SVGElement,Yp=(e,t)=>{const n=e&&e.to;return on(n)?t?t(n):null:n},TR={__isTeleport:!0,process(e,t,n,r,o,s,l,a,c,f){const{mc:p,pc:h,pbc:v,o:{insert:y,querySelector:_,createText:w,createComment:I}}=f,O=zl(t.props);let{shapeFlag:S,children:E,dynamicChildren:T}=t;if(e==null){const $=t.el=w(""),P=t.anchor=w("");y($,n,r),y(P,n,r);const k=t.target=Yp(t.props,_),A=t.targetAnchor=w("");k&&(y(A,k),l=l||sb(k));const H=(D,F)=>{S&16&&p(E,D,F,o,s,l,a,c)};O?H(n,P):k&&H(k,A)}else{t.el=e.el;const $=t.anchor=e.anchor,P=t.target=e.target,k=t.targetAnchor=e.targetAnchor,A=zl(e.props),H=A?n:P,D=A?$:k;if(l=l||sb(P),T?(v(e.dynamicChildren,T,H,o,s,l,a),hm(e,t,!0)):c||h(e,t,H,D,o,s,l,a,!1),O)A||Vu(t,n,$,f,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const F=t.target=Yp(t.props,_);F&&Vu(t,F,null,f,0)}else A&&Vu(t,P,k,f,1)}aw(t)},remove(e,t,n,r,{um:o,o:{remove:s}},l){const{shapeFlag:a,children:c,anchor:f,targetAnchor:p,target:h,props:v}=e;if(h&&s(p),(l||!zl(v))&&(s(f),a&16))for(let y=0;y<c.length;y++){const _=c[y];o(_,t,n,!0,!!_.dynamicChildren)}},move:Vu,hydrate:OR};function Vu(e,t,n,{o:{insert:r},m:o},s=2){s===0&&r(e.targetAnchor,t,n);const{el:l,anchor:a,shapeFlag:c,children:f,props:p}=e,h=s===2;if(h&&r(l,t,n),(!h||zl(p))&&c&16)for(let v=0;v<f.length;v++)o(f[v],t,n,2);h&&r(a,t,n)}function OR(e,t,n,r,o,s,{o:{nextSibling:l,parentNode:a,querySelector:c}},f){const p=t.target=Yp(t.props,c);if(p){const h=p._lpa||p.firstChild;if(t.shapeFlag&16)if(zl(t.props))t.anchor=f(l(e),t,a(e),n,r,o,s),t.targetAnchor=h;else{t.anchor=l(e);let v=h;for(;v;)if(v=l(v),v&&v.nodeType===8&&v.data==="teleport anchor"){t.targetAnchor=v,p._lpa=t.targetAnchor&&l(t.targetAnchor);break}f(h,t,p,n,r,o,s)}aw(t)}return t.anchor&&l(t.anchor)}const lw=TR;function aw(e){const t=e.ctx;if(t&&t.ut){let n=e.children[0].el;for(;n!==e.targetAnchor;)n.nodeType===1&&n.setAttribute("data-v-owner",t.uid),n=n.nextSibling;t.ut()}}const Fe=Symbol(void 0),os=Symbol(void 0),Rn=Symbol(void 0),Yi=Symbol(void 0),ql=[];let Jn=null;function N(e=!1){ql.push(Jn=e?null:[])}function uw(){ql.pop(),Jn=ql[ql.length-1]||null}let is=1;function Zp(e){is+=e}function cw(e){return e.dynamicChildren=is>0?Jn||Ns:null,uw(),is>0&&Jn&&Jn.push(e),e}function V(e,t,n,r,o,s){return cw(g(e,t,n,r,o,s,!0))}function bt(e,t,n,r,o){return cw(q(e,t,n,r,o,!0))}function gi(e){return e?e.__v_isVNode===!0:!1}function Kr(e,t){return e.type===t.type&&e.key===t.key}function AR(e){}const ud="__vInternal",dw=({key:e})=>e!=null?e:null,nc=({ref:e,ref_key:t,ref_for:n})=>e!=null?on(e)||dn(e)||et(e)?{i:xn,r:e,k:t,f:!!n}:e:null;function g(e,t=null,n=null,r=0,o=null,s=e===Fe?0:1,l=!1,a=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&dw(t),ref:t&&nc(t),scopeId:id,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:xn};return a?(mm(c,n),s&128&&e.normalize(c)):n&&(c.shapeFlag|=on(n)?8:16),is>0&&!l&&Jn&&(c.patchFlag>0||s&6)&&c.patchFlag!==32&&Jn.push(c),c}const q=IR;function IR(e,t=null,n=null,r=0,o=null,s=!1){if((!e||e===X_)&&(e=Rn),gi(e)){const a=Dr(e,t,!0);return n&&mm(a,n),is>0&&!s&&Jn&&(a.shapeFlag&6?Jn[Jn.indexOf(e)]=a:Jn.push(a)),a.patchFlag|=-2,a}if(DR(e)&&(e=e.__vccOpts),t){t=fw(t);let{class:a,style:c}=t;a&&!on(a)&&(t.class=wt(a)),qt(c)&&(Zh(c)&&!Je(c)&&(c=$n({},c)),t.style=as(c))}const l=on(e)?1:L_(e)?128:CR(e)?64:qt(e)?4:et(e)?2:0;return g(e,t,n,r,o,l,s,!0)}function fw(e){return e?Zh(e)||ud in e?$n({},e):e:null}function Dr(e,t,n=!1){const{props:r,ref:o,patchFlag:s,children:l}=e,a=t?pw(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&dw(a),ref:t&&t.ref?n&&o?Je(o)?o.concat(nc(t)):[o,nc(t)]:nc(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Fe?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Dr(e.ssContent),ssFallback:e.ssFallback&&Dr(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Xe(e=" ",t=0){return q(os,null,e,t)}function PR(e,t){const n=q(Yi,null,e);return n.staticCount=t,n}function qe(e="",t=!1){return t?(N(),bt(Rn,null,e)):q(Rn,null,e)}function fr(e){return e==null||typeof e=="boolean"?q(Rn):Je(e)?q(Fe,null,e.slice()):typeof e=="object"?ui(e):q(os,null,String(e))}function ui(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Dr(e)}function mm(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(Je(t))n=16;else if(typeof t=="object")if(r&65){const o=t.default;o&&(o._c&&(o._d=!1),mm(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!(ud in t)?t._ctx=xn:o===3&&xn&&(xn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else et(t)?(t={default:t,_ctx:xn},n=32):(t=String(t),r&64?(n=16,t=[Xe(t)]):n=8);e.children=t,e.shapeFlag|=n}function pw(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const o in r)if(o==="class")t.class!==r.class&&(t.class=wt([t.class,r.class]));else if(o==="style")t.style=as([t.style,r.style]);else if(Kc(o)){const s=t[o],l=r[o];l&&s!==l&&!(Je(s)&&s.includes(l))&&(t[o]=s?[].concat(s,l):l)}else o!==""&&(t[o]=r[o])}return t}function Xn(e,t,n,r=null){mr(e,t,7,[n,r])}const kR=rw();let RR=0;function hw(e,t,n){const r=e.type,o=(t?t.appContext:e.appContext)||kR,s={uid:RR++,vnode:e,type:r,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,scope:new Gh(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Q_(r,o),emitsOptions:R_(r,o),emit:null,emitted:null,propsDefaults:Ut,inheritAttrs:r.inheritAttrs,ctx:Ut,data:Ut,props:Ut,attrs:Ut,slots:Ut,refs:Ut,setupState:Ut,setupContext:null,suspense:n,suspenseId:n?n.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 s.ctx={_:s},s.root=t?t.root:s,s.emit=Bk.bind(null,s),e.ce&&e.ce(s),s}let Xt=null;const Ko=()=>Xt||xn,yi=e=>{Xt=e,e.scope.on()},hi=()=>{Xt&&Xt.scope.off(),Xt=null};function mw(e){return e.vnode.shapeFlag&4}let Ws=!1;function vw(e,t=!1){Ws=t;const{props:n,children:r}=e.vnode,o=mw(e);gR(e,n,o,t),_R(e,r);const s=o?LR(e,t):void 0;return Ws=!1,s}function LR(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Qh(new Proxy(e.ctx,Kp));const{setup:r}=n;if(r){const o=e.setupContext=r.length>1?bw(e):null;yi(e),sl();const s=Uo(r,e,0,[e.props,o]);if(ll(),hi(),qh(s)){if(s.then(hi,hi),t)return s.then(l=>{Qp(e,l,t)}).catch(l=>{us(l,e,0)});e.asyncDep=s}else Qp(e,s,t)}else yw(e,t)}function Qp(e,t,n){et(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:qt(t)&&(e.setupState=nm(t)),yw(e,n)}let _c,eh;function gw(e){_c=e,eh=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,dR))}}const NR=()=>!_c;function yw(e,t,n){const r=e.type;if(!e.render){if(!t&&_c&&!r.render){const o=r.template||fm(e).template;if(o){const{isCustomElement:s,compilerOptions:l}=e.appContext.config,{delimiters:a,compilerOptions:c}=r,f=$n($n({isCustomElement:s,delimiters:a},l),c);r.render=_c(o,f)}}e.render=r.render||Xr,eh&&eh(e)}yi(e),sl(),fR(e),ll(),hi()}function MR(e){return new Proxy(e.attrs,{get(t,n){return tr(e,"get","$attrs"),t[n]}})}function bw(e){const t=r=>{e.exposed=r||{}};let n;return{get attrs(){return n||(n=MR(e))},slots:e.slots,emit:e.emit,expose:t}}function cd(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(nm(Qh(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Wl)return Wl[n](e)},has(t,n){return n in t||n in Wl}}))}function th(e,t=!0){return et(e)?e.displayName||e.name:e.name||t&&e.__name}function DR(e){return et(e)&&"__vccOpts"in e}const ce=(e,t)=>kk(e,t,Ws);function FR(){return null}function BR(){return null}function UR(e){}function jR(e,t){return null}function _w(){return ww().slots}function HR(){return ww().attrs}function ww(){const e=Ko();return e.setupContext||(e.setupContext=bw(e))}function VR(e,t){const n=Je(e)?e.reduce((r,o)=>(r[o]={},r),{}):e;for(const r in t){const o=n[r];o?Je(o)||et(o)?n[r]={type:o,default:t[r]}:o.default=t[r]:o===null&&(n[r]={default:t[r]})}return n}function WR(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function zR(e){const t=Ko();let n=e();return hi(),qh(n)&&(n=n.catch(r=>{throw yi(t),r})),[n,()=>yi(t)]}function dt(e,t,n){const r=arguments.length;return r===2?qt(t)&&!Je(t)?gi(t)?q(e,null,[t]):q(e,t):q(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&gi(n)&&(n=[n]),q(e,t,n))}const Sw=Symbol(""),Ew=()=>kt(Sw);function qR(){}function KR(e,t,n,r){const o=n[r];if(o&&xw(o,e))return o;const s=t();return s.memo=e.slice(),n[r]=s}function xw(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let r=0;r<n.length;r++)if(Hs(n[r],t[r]))return!1;return is>0&&Jn&&Jn.push(e),!0}const $w="3.2.47",GR={createComponentInstance:hw,setupComponent:vw,renderComponentRoot:tc,setCurrentRenderingInstance:sa,isVNode:gi,normalizeVNode:fr},XR=GR,JR=null,YR=null;function ZR(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o<r.length;o++)n[r[o]]=!0;return t?o=>!!n[o.toLowerCase()]:o=>!!n[o]}const QR="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",e4=ZR(QR);function Cw(e){return!!e||e===""}function t4(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=bi(e[r],t[r]);return n}function bi(e,t){if(e===t)return!0;let n=lb(e),r=lb(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=ab(e),r=ab(t),n||r)return e===t;if(n=nr(e),r=nr(t),n||r)return n&&r?t4(e,t):!1;if(n=nh(e),r=nh(t),n||r){if(!n||!r)return!1;const o=Object.keys(e).length,s=Object.keys(t).length;if(o!==s)return!1;for(const l in e){const a=e.hasOwnProperty(l),c=t.hasOwnProperty(l);if(a&&!c||!a&&c||!bi(e[l],t[l]))return!1}}return String(e)===String(t)}function dd(e,t){return e.findIndex(n=>bi(n,t))}const hp={},n4=/^on[^a-z]/,r4=e=>n4.test(e),o4=e=>e.startsWith("onUpdate:"),Ta=Object.assign,nr=Array.isArray,Oa=e=>Ow(e)==="[object Set]",lb=e=>Ow(e)==="[object Date]",Tw=e=>typeof e=="function",aa=e=>typeof e=="string",ab=e=>typeof e=="symbol",nh=e=>e!==null&&typeof e=="object",i4=Object.prototype.toString,Ow=e=>i4.call(e),vm=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},s4=/-(\w)/g,mp=vm(e=>e.replace(s4,(t,n)=>n?n.toUpperCase():"")),l4=/\B([A-Z])/g,ci=vm(e=>e.replace(l4,"-$1").toLowerCase()),a4=vm(e=>e.charAt(0).toUpperCase()+e.slice(1)),u4=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},rh=e=>{const t=parseFloat(e);return isNaN(t)?e:t},oh=e=>{const t=aa(e)?Number(e):NaN;return isNaN(t)?e:t},c4="http://www.w3.org/2000/svg",Vi=typeof document!="undefined"?document:null,ub=Vi&&Vi.createElement("template"),d4={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t?Vi.createElementNS(c4,e):Vi.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>Vi.createTextNode(e),createComment:e=>Vi.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Vi.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,s){const l=n?n.previousSibling:t.lastChild;if(o&&(o===s||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===s||!(o=o.nextSibling)););else{ub.innerHTML=r?`<svg>${e}</svg>`:e;const a=ub.content;if(r){const c=a.firstChild;for(;c.firstChild;)a.appendChild(c.firstChild);a.removeChild(c)}t.insertBefore(a,n)}return[l?l.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function f4(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function p4(e,t,n){const r=e.style,o=aa(n);if(n&&!o){if(t&&!aa(t))for(const s in t)n[s]==null&&ih(r,s,"");for(const s in n)ih(r,s,n[s])}else{const s=r.display;o?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=s)}}const cb=/\s*!important$/;function ih(e,t,n){if(nr(n))n.forEach(r=>ih(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=h4(e,t);cb.test(n)?e.setProperty(ci(r),n.replace(cb,""),"important"):e[r]=n}}const db=["Webkit","Moz","ms"],vp={};function h4(e,t){const n=vp[t];if(n)return n;let r=eo(t);if(r!=="filter"&&r in e)return vp[t]=r;r=a4(r);for(let o=0;o<db.length;o++){const s=db[o]+r;if(s in e)return vp[t]=s}return t}const fb="http://www.w3.org/1999/xlink";function m4(e,t,n,r,o){if(r&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(fb,t.slice(6,t.length)):e.setAttributeNS(fb,t,n);else{const s=e4(t);n==null||s&&!Cw(n)?e.removeAttribute(t):e.setAttribute(t,s?"":n)}}function v4(e,t,n,r,o,s,l){if(t==="innerHTML"||t==="textContent"){r&&l(r,o,s),e[t]=n==null?"":n;return}if(t==="value"&&e.tagName!=="PROGRESS"&&!e.tagName.includes("-")){e._value=n;const c=n==null?"":n;(e.value!==c||e.tagName==="OPTION")&&(e.value=c),n==null&&e.removeAttribute(t);return}let a=!1;if(n===""||n==null){const c=typeof e[t];c==="boolean"?n=Cw(n):n==null&&c==="string"?(n="",a=!0):c==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(t)}function Do(e,t,n,r){e.addEventListener(t,n,r)}function g4(e,t,n,r){e.removeEventListener(t,n,r)}function y4(e,t,n,r,o=null){const s=e._vei||(e._vei={}),l=s[t];if(r&&l)l.value=r;else{const[a,c]=b4(t);if(r){const f=s[t]=S4(r,o);Do(e,a,f,c)}else l&&(g4(e,a,l,c),s[t]=void 0)}}const pb=/(?:Once|Passive|Capture)$/;function b4(e){let t;if(pb.test(e)){t={};let r;for(;r=e.match(pb);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):ci(e.slice(2)),t]}let gp=0;const _4=Promise.resolve(),w4=()=>gp||(_4.then(()=>gp=0),gp=Date.now());function S4(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;mr(E4(r,n.value),t,5,[r])};return n.value=e,n.attached=w4(),n}function E4(e,t){if(nr(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>o=>!o._stopped&&r&&r(o))}else return t}const hb=/^on[a-z]/,x4=(e,t,n,r,o=!1,s,l,a,c)=>{t==="class"?f4(e,r,o):t==="style"?p4(e,n,r):r4(t)?o4(t)||y4(e,t,n,r,l):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):$4(e,t,r,o))?v4(e,t,r,s,l,a,c):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),m4(e,t,r,o))};function $4(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&hb.test(t)&&Tw(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||hb.test(t)&&aa(n)?!1:t in e}function Aw(e,t){const n=ve(e);class r extends fd{constructor(s){super(n,s,t)}}return r.def=n,r}const C4=e=>Aw(e,qw),T4=typeof HTMLElement!="undefined"?HTMLElement:class{};class fd extends T4{constructor(t,n={},r){super(),this._def=t,this._props=n,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&r?r(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,rn(()=>{this._connected||(ah(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let r=0;r<this.attributes.length;r++)this._setAttr(this.attributes[r].name);new MutationObserver(r=>{for(const o of r)this._setAttr(o.attributeName)}).observe(this,{attributes:!0});const t=(r,o=!1)=>{const{props:s,styles:l}=r;let a;if(s&&!nr(s))for(const c in s){const f=s[c];(f===Number||f&&f.type===Number)&&(c in this._props&&(this._props[c]=oh(this._props[c])),(a||(a=Object.create(null)))[mp(c)]=!0)}this._numberProps=a,o&&this._resolveProps(r),this._applyStyles(l),this._update()},n=this._def.__asyncLoader;n?n().then(r=>t(r,!0)):t(this._def)}_resolveProps(t){const{props:n}=t,r=nr(n)?n:Object.keys(n||{});for(const o of Object.keys(this))o[0]!=="_"&&r.includes(o)&&this._setProp(o,this[o],!0,!1);for(const o of r.map(mp))Object.defineProperty(this,o,{get(){return this._getProp(o)},set(s){this._setProp(o,s)}})}_setAttr(t){let n=this.getAttribute(t);const r=mp(t);this._numberProps&&this._numberProps[r]&&(n=oh(n)),this._setProp(r,n,!1)}_getProp(t){return this._props[t]}_setProp(t,n,r=!0,o=!0){n!==this._props[t]&&(this._props[t]=n,o&&this._instance&&this._update(),r&&(n===!0?this.setAttribute(ci(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(ci(t),n+""):n||this.removeAttribute(ci(t))))}_update(){ah(this._createVNode(),this.shadowRoot)}_createVNode(){const t=q(this._def,Ta({},this._props));return this._instance||(t.ce=n=>{this._instance=n,n.isCE=!0;const r=(s,l)=>{this.dispatchEvent(new CustomEvent(s,{detail:l}))};n.emit=(s,...l)=>{r(s,l),ci(s)!==s&&r(ci(s),l)};let o=this;for(;o=o&&(o.parentNode||o.host);)if(o instanceof fd){n.parent=o._instance,n.provides=o._instance.provides;break}}),t}_applyStyles(t){t&&t.forEach(n=>{const r=document.createElement("style");r.textContent=n,this.shadowRoot.appendChild(r)})}}function O4(e="$style"){{const t=Ko();if(!t)return hp;const n=t.type.__cssModules;if(!n)return hp;const r=n[e];return r||hp}}function Iw(e){const t=Ko();if(!t)return;const n=t.ut=(o=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(s=>lh(s,o))},r=()=>{const o=e(t.proxy);sh(t.subTree,o),n(o)};M_(r),gt(()=>{const o=new MutationObserver(r);o.observe(t.subTree.el.parentNode,{childList:!0}),Zt(()=>o.disconnect())})}function sh(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{sh(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)lh(e.el,t);else if(e.type===Fe)e.children.forEach(n=>sh(n,t));else if(e.type===Yi){let{el:n,anchor:r}=e;for(;n&&(lh(n,t),n!==r);)n=n.nextSibling}}function lh(e,t){if(e.nodeType===1){const n=e.style;for(const r in t)n.setProperty(`--${r}`,t[r])}}const si="transition",Cl="animation",Ei=(e,{slots:t})=>dt(um,kw(e),t);Ei.displayName="Transition";const Pw={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},A4=Ei.props=Ta({},um.props,Pw),Di=(e,t=[])=>{nr(e)?e.forEach(n=>n(...t)):e&&e(...t)},mb=e=>e?nr(e)?e.some(t=>t.length>1):e.length>1:!1;function kw(e){const t={};for(const z in e)z in Pw||(t[z]=e[z]);if(e.css===!1)return t;const{name:n="v",type:r,duration:o,enterFromClass:s=`${n}-enter-from`,enterActiveClass:l=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:c=s,appearActiveClass:f=l,appearToClass:p=a,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:v=`${n}-leave-active`,leaveToClass:y=`${n}-leave-to`}=e,_=I4(o),w=_&&_[0],I=_&&_[1],{onBeforeEnter:O,onEnter:S,onEnterCancelled:E,onLeave:T,onLeaveCancelled:$,onBeforeAppear:P=O,onAppear:k=S,onAppearCancelled:A=E}=t,H=(z,K,te)=>{ai(z,K?p:a),ai(z,K?f:l),te&&te()},D=(z,K)=>{z._isLeaving=!1,ai(z,h),ai(z,y),ai(z,v),K&&K()},F=z=>(K,te)=>{const we=z?k:S,be=()=>H(K,z,te);Di(we,[K,be]),vb(()=>{ai(K,z?c:s),No(K,z?p:a),mb(we)||gb(K,r,w,be)})};return Ta(t,{onBeforeEnter(z){Di(O,[z]),No(z,s),No(z,l)},onBeforeAppear(z){Di(P,[z]),No(z,c),No(z,f)},onEnter:F(!1),onAppear:F(!0),onLeave(z,K){z._isLeaving=!0;const te=()=>D(z,K);No(z,h),Lw(),No(z,v),vb(()=>{!z._isLeaving||(ai(z,h),No(z,y),mb(T)||gb(z,r,I,te))}),Di(T,[z,te])},onEnterCancelled(z){H(z,!1),Di(E,[z])},onAppearCancelled(z){H(z,!0),Di(A,[z])},onLeaveCancelled(z){D(z),Di($,[z])}})}function I4(e){if(e==null)return null;if(nh(e))return[yp(e.enter),yp(e.leave)];{const t=yp(e);return[t,t]}}function yp(e){return oh(e)}function No(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function ai(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function vb(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let P4=0;function gb(e,t,n,r){const o=e._endId=++P4,s=()=>{o===e._endId&&r()};if(n)return setTimeout(s,n);const{type:l,timeout:a,propCount:c}=Rw(e,t);if(!l)return r();const f=l+"end";let p=0;const h=()=>{e.removeEventListener(f,v),s()},v=y=>{y.target===e&&++p>=c&&h()};setTimeout(()=>{p<c&&h()},a+1),e.addEventListener(f,v)}function Rw(e,t){const n=window.getComputedStyle(e),r=_=>(n[_]||"").split(", "),o=r(`${si}Delay`),s=r(`${si}Duration`),l=yb(o,s),a=r(`${Cl}Delay`),c=r(`${Cl}Duration`),f=yb(a,c);let p=null,h=0,v=0;t===si?l>0&&(p=si,h=l,v=s.length):t===Cl?f>0&&(p=Cl,h=f,v=c.length):(h=Math.max(l,f),p=h>0?l>f?si:Cl:null,v=p?p===si?s.length:c.length:0);const y=p===si&&/\b(transform|all)(,|$)/.test(r(`${si}Property`).toString());return{type:p,timeout:h,propCount:v,hasTransform:y}}function yb(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>bb(n)+bb(e[r])))}function bb(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function Lw(){return document.body.offsetHeight}const Nw=new WeakMap,Mw=new WeakMap,Dw={name:"TransitionGroup",props:Ta({},A4,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Ko(),r=am();let o,s;return ad(()=>{if(!o.length)return;const l=e.moveClass||`${e.name||"v"}-move`;if(!D4(o[0].el,n.vnode.el,l))return;o.forEach(L4),o.forEach(N4);const a=o.filter(M4);Lw(),a.forEach(c=>{const f=c.el,p=f.style;No(f,l),p.transform=p.webkitTransform=p.transitionDuration="";const h=f._moveCb=v=>{v&&v.target!==f||(!v||/transform$/.test(v.propertyName))&&(f.removeEventListener("transitionend",h),f._moveCb=null,ai(f,l))};f.addEventListener("transitionend",h)})}),()=>{const l=Ue(e),a=kw(l);let c=l.tag||Fe;o=s,s=t.default?sd(t.default()):[];for(let f=0;f<s.length;f++){const p=s[f];p.key!=null&&rs(p,Vs(p,a,r,n))}if(o)for(let f=0;f<o.length;f++){const p=o[f];rs(p,Vs(p,a,r,n)),Nw.set(p,p.el.getBoundingClientRect())}return q(c,null,s)}}},k4=e=>delete e.mode;Dw.props;const R4=Dw;function L4(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function N4(e){Mw.set(e,e.el.getBoundingClientRect())}function M4(e){const t=Nw.get(e),n=Mw.get(e),r=t.left-n.left,o=t.top-n.top;if(r||o){const s=e.el.style;return s.transform=s.webkitTransform=`translate(${r}px,${o}px)`,s.transitionDuration="0s",e}}function D4(e,t,n){const r=e.cloneNode();e._vtc&&e._vtc.forEach(l=>{l.split(/\s+/).forEach(a=>a&&r.classList.remove(a))}),n.split(/\s+/).forEach(l=>l&&r.classList.add(l)),r.style.display="none";const o=t.nodeType===1?t:t.parentNode;o.appendChild(r);const{hasTransform:s}=Rw(r);return o.removeChild(r),s}const _i=e=>{const t=e.props["onUpdate:modelValue"]||!1;return nr(t)?n=>u4(t,n):t};function F4(e){e.target.composing=!0}function _b(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const wc={created(e,{modifiers:{lazy:t,trim:n,number:r}},o){e._assign=_i(o);const s=r||o.props&&o.props.type==="number";Do(e,t?"change":"input",l=>{if(l.target.composing)return;let a=e.value;n&&(a=a.trim()),s&&(a=rh(a)),e._assign(a)}),n&&Do(e,"change",()=>{e.value=e.value.trim()}),t||(Do(e,"compositionstart",F4),Do(e,"compositionend",_b),Do(e,"change",_b))},mounted(e,{value:t}){e.value=t==null?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:o}},s){if(e._assign=_i(s),e.composing||document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===t||(o||e.type==="number")&&rh(e.value)===t))return;const l=t==null?"":t;e.value!==l&&(e.value=l)}},gm={deep:!0,created(e,t,n){e._assign=_i(n),Do(e,"change",()=>{const r=e._modelValue,o=zs(e),s=e.checked,l=e._assign;if(nr(r)){const a=dd(r,o),c=a!==-1;if(s&&!c)l(r.concat(o));else if(!s&&c){const f=[...r];f.splice(a,1),l(f)}}else if(Oa(r)){const a=new Set(r);s?a.add(o):a.delete(o),l(a)}else l(Bw(e,s))})},mounted:wb,beforeUpdate(e,t,n){e._assign=_i(n),wb(e,t,n)}};function wb(e,{value:t,oldValue:n},r){e._modelValue=t,nr(t)?e.checked=dd(t,r.props.value)>-1:Oa(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=bi(t,Bw(e,!0)))}const ym={created(e,{value:t},n){e.checked=bi(t,n.props.value),e._assign=_i(n),Do(e,"change",()=>{e._assign(zs(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e._assign=_i(r),t!==n&&(e.checked=bi(t,r.props.value))}},Fw={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const o=Oa(t);Do(e,"change",()=>{const s=Array.prototype.filter.call(e.options,l=>l.selected).map(l=>n?rh(zs(l)):zs(l));e._assign(e.multiple?o?new Set(s):s:s[0])}),e._assign=_i(r)},mounted(e,{value:t}){Sb(e,t)},beforeUpdate(e,t,n){e._assign=_i(n)},updated(e,{value:t}){Sb(e,t)}};function Sb(e,t){const n=e.multiple;if(!(n&&!nr(t)&&!Oa(t))){for(let r=0,o=e.options.length;r<o;r++){const s=e.options[r],l=zs(s);if(n)nr(t)?s.selected=dd(t,l)>-1:s.selected=t.has(l);else if(bi(zs(s),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function zs(e){return"_value"in e?e._value:e.value}function Bw(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Uw={created(e,t,n){Wu(e,t,n,null,"created")},mounted(e,t,n){Wu(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){Wu(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){Wu(e,t,n,r,"updated")}};function jw(e,t){switch(e){case"SELECT":return Fw;case"TEXTAREA":return wc;default:switch(t){case"checkbox":return gm;case"radio":return ym;default:return wc}}}function Wu(e,t,n,r,o){const l=jw(e.tagName,n.props&&n.props.type)[o];l&&l(e,t,n,r)}function B4(){wc.getSSRProps=({value:e})=>({value:e}),ym.getSSRProps=({value:e},t)=>{if(t.props&&bi(t.props.value,e))return{checked:!0}},gm.getSSRProps=({value:e},t)=>{if(nr(e)){if(t.props&&dd(e,t.props.value)>-1)return{checked:!0}}else if(Oa(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},Uw.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const n=jw(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}const U4=["ctrl","shift","alt","meta"],j4={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&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>U4.some(n=>e[`${n}Key`]&&!t.includes(n))},Sc=(e,t)=>(n,...r)=>{for(let o=0;o<t.length;o++){const s=j4[t[o]];if(s&&s(n,t))return}return e(n,...r)},H4={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Hw=(e,t)=>n=>{if(!("key"in n))return;const r=ci(n.key);if(t.some(o=>o===r||H4[o]===r))return e(n)},bm={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Tl(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Tl(e,!0),r.enter(e)):r.leave(e,()=>{Tl(e,!1)}):Tl(e,t))},beforeUnmount(e,{value:t}){Tl(e,t)}};function Tl(e,t){e.style.display=t?e._vod:"none"}function V4(){bm.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const Vw=Ta({patchProp:x4},d4);let Kl,Eb=!1;function Ww(){return Kl||(Kl=ow(Vw))}function zw(){return Kl=Eb?Kl:iw(Vw),Eb=!0,Kl}const ah=(...e)=>{Ww().render(...e)},qw=(...e)=>{zw().hydrate(...e)},Kw=(...e)=>{const t=Ww().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=Gw(r);if(!o)return;const s=t._component;!Tw(s)&&!s.render&&!s.template&&(s.template=o.innerHTML),o.innerHTML="";const l=n(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),l},t},W4=(...e)=>{const t=zw().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=Gw(r);if(o)return n(o,!0,o instanceof SVGElement)},t};function Gw(e){return aa(e)?document.querySelector(e):e}let xb=!1;const z4=()=>{xb||(xb=!0,B4(),V4())};var q4=Object.freeze(Object.defineProperty({__proto__:null,Transition:Ei,TransitionGroup:R4,VueElement:fd,createApp:Kw,createSSRApp:W4,defineCustomElement:Aw,defineSSRCustomElement:C4,hydrate:qw,initDirectivesForSSR:z4,render:ah,useCssModule:O4,useCssVars:Iw,vModelCheckbox:gm,vModelDynamic:Uw,vModelRadio:ym,vModelSelect:Fw,vModelText:wc,vShow:bm,withKeys:Hw,withModifiers:Sc,EffectScope:Gh,ReactiveEffect:xa,customRef:Ak,effect:YP,effectScope:GP,getCurrentScope:d_,isProxy:Zh,isReactive:Xi,isReadonly:ns,isRef:dn,isShallow:na,markRaw:Qh,onScopeDispose:f_,proxyRefs:nm,reactive:Si,readonly:Yh,ref:_e,shallowReactive:$_,shallowReadonly:$k,shallowRef:nd,stop:ZP,toRaw:Ue,toRef:T_,toRefs:rm,triggerRef:Wp,unref:jn,camelize:eo,capitalize:Jc,normalizeClass:wt,normalizeProps:DP,normalizeStyle:as,toDisplayString:U,toHandlerKey:Hl,BaseTransition:um,Comment:Rn,Fragment:Fe,KeepAlive:oR,Static:Yi,Suspense:Gk,Teleport:lw,Text:os,assertNumber:Lk,callWithAsyncErrorHandling:mr,callWithErrorHandling:Uo,cloneVNode:Dr,compatUtils:YR,computed:ce,createBlock:bt,createCommentVNode:qe,createElementBlock:V,createElementVNode:g,createHydrationRenderer:iw,createPropsRestProxy:WR,createRenderer:ow,createSlots:uR,createStaticVNode:PR,createTextVNode:Xe,createVNode:q,defineAsyncComponent:nR,defineComponent:ve,defineEmits:BR,defineExpose:UR,defineProps:FR,get devtools(){return Rs},getCurrentInstance:Ko,getTransitionRawChildren:sd,guardReactiveProps:fw,h:dt,handleError:us,initCustomFormatter:qR,inject:kt,isMemoSame:xw,isRuntimeOnly:NR,isVNode:gi,mergeDefaults:VR,mergeProps:pw,nextTick:rn,onActivated:B_,onBeforeMount:H_,onBeforeUnmount:cs,onBeforeUpdate:V_,onDeactivated:U_,onErrorCaptured:K_,onMounted:gt,onRenderTracked:q_,onRenderTriggered:z_,onServerPrefetch:W_,onUnmounted:Zt,onUpdated:ad,openBlock:N,popScopeId:jk,provide:Yt,pushScopeId:Uk,queuePostFlushCb:im,registerRuntimeCompiler:gw,renderList:Mt,renderSlot:gr,resolveComponent:X,resolveDirective:aR,resolveDynamicComponent:lR,resolveFilter:JR,resolveTransitionHooks:Vs,setBlockTracking:Zp,setDevtoolsHook:k_,setTransitionHooks:rs,ssrContextKey:Sw,ssrUtils:XR,toHandlers:cR,transformVNodeArgs:AR,useAttrs:HR,useSSRContext:Ew,useSlots:_w,useTransitionState:am,version:$w,warn:Rk,watch:Ft,watchEffect:jt,watchPostEffect:M_,watchSyncEffect:Qk,withAsyncContext:zR,withCtx:ye,withDefaults:jR,withDirectives:G_,withMemo:KR,withScopeId:Hk},Symbol.toStringTag,{value:"Module"}));function oo(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o<r.length;o++)n[r[o]]=!0;return t?o=>!!n[o.toLowerCase()]:o=>!!n[o]}const K4=/;(?![^(]*\))/g,G4=/:([^]+)/,X4=/\/\*.*?\*\//gs;function J4(e){const t={};return e.replace(X4,"").split(K4).forEach(n=>{if(n){const r=n.split(G4);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}const Y4="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot",Z4="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",Q4="area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr",eL=oo(Y4),tL=oo(Z4),nL=oo(Q4),rL={},Ec=()=>{},bp=()=>!1,oL=/^on[^a-z]/,Xw=e=>oL.test(e),jo=Object.assign,qs=Array.isArray,mn=e=>typeof e=="string",_m=e=>typeof e=="symbol",iL=e=>e!==null&&typeof e=="object",$b=oo(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),sL=oo("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),pd=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},lL=/-(\w)/g,hd=pd(e=>e.replace(lL,(t,n)=>n?n.toUpperCase():"")),aL=/\B([A-Z])/g,uL=pd(e=>e.replace(aL,"-$1").toLowerCase()),wm=pd(e=>e.charAt(0).toUpperCase()+e.slice(1)),cL=pd(e=>e?`on${wm(e)}`:"");function Sm(e){throw e}function Jw(e){}function Wt(e,t,n,r){const o=e,s=new SyntaxError(String(o));return s.code=e,s.loc=t,s}const ua=Symbol(""),Gl=Symbol(""),Em=Symbol(""),xc=Symbol(""),Yw=Symbol(""),ss=Symbol(""),Zw=Symbol(""),Qw=Symbol(""),xm=Symbol(""),$m=Symbol(""),Aa=Symbol(""),Cm=Symbol(""),eS=Symbol(""),Tm=Symbol(""),$c=Symbol(""),Om=Symbol(""),Am=Symbol(""),Im=Symbol(""),Pm=Symbol(""),tS=Symbol(""),nS=Symbol(""),md=Symbol(""),Cc=Symbol(""),km=Symbol(""),Rm=Symbol(""),ca=Symbol(""),Ia=Symbol(""),Lm=Symbol(""),uh=Symbol(""),dL=Symbol(""),ch=Symbol(""),Tc=Symbol(""),fL=Symbol(""),pL=Symbol(""),Nm=Symbol(""),hL=Symbol(""),mL=Symbol(""),Mm=Symbol(""),rS=Symbol(""),Ks={[ua]:"Fragment",[Gl]:"Teleport",[Em]:"Suspense",[xc]:"KeepAlive",[Yw]:"BaseTransition",[ss]:"openBlock",[Zw]:"createBlock",[Qw]:"createElementBlock",[xm]:"createVNode",[$m]:"createElementVNode",[Aa]:"createCommentVNode",[Cm]:"createTextVNode",[eS]:"createStaticVNode",[Tm]:"resolveComponent",[$c]:"resolveDynamicComponent",[Om]:"resolveDirective",[Am]:"resolveFilter",[Im]:"withDirectives",[Pm]:"renderList",[tS]:"renderSlot",[nS]:"createSlots",[md]:"toDisplayString",[Cc]:"mergeProps",[km]:"normalizeClass",[Rm]:"normalizeStyle",[ca]:"normalizeProps",[Ia]:"guardReactiveProps",[Lm]:"toHandlers",[uh]:"camelize",[dL]:"capitalize",[ch]:"toHandlerKey",[Tc]:"setBlockTracking",[fL]:"pushScopeId",[pL]:"popScopeId",[Nm]:"withCtx",[hL]:"unref",[mL]:"isRef",[Mm]:"withMemo",[rS]:"isMemoSame"};function vL(e){Object.getOwnPropertySymbols(e).forEach(t=>{Ks[t]=e[t]})}const yr={source:"",start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0}};function gL(e,t=yr){return{type:0,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:t}}function da(e,t,n,r,o,s,l,a=!1,c=!1,f=!1,p=yr){return e&&(a?(e.helper(ss),e.helper(Js(e.inSSR,f))):e.helper(Xs(e.inSSR,f)),l&&e.helper(Im)),{type:13,tag:t,props:n,children:r,patchFlag:o,dynamicProps:s,directives:l,isBlock:a,disableTracking:c,isComponent:f,loc:p}}function Pa(e,t=yr){return{type:17,loc:t,elements:e}}function Ir(e,t=yr){return{type:15,loc:t,properties:e}}function Jt(e,t){return{type:16,loc:yr,key:mn(e)?ut(e,!0):e,value:t}}function ut(e,t=!1,n=yr,r=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:r}}function Jr(e,t=yr){return{type:8,loc:t,children:e}}function nn(e,t=[],n=yr){return{type:14,loc:n,callee:e,arguments:t}}function Gs(e,t=void 0,n=!1,r=!1,o=yr){return{type:18,params:e,returns:t,newline:n,isSlot:r,loc:o}}function dh(e,t,n,r=!0){return{type:19,test:e,consequent:t,alternate:n,newline:r,loc:yr}}function yL(e,t,n=!1){return{type:20,index:e,value:t,isVNode:n,loc:yr}}function bL(e){return{type:21,body:e,loc:yr}}const Yn=e=>e.type===4&&e.isStatic,Ls=(e,t)=>e===t||e===uL(t);function oS(e){if(Ls(e,"Teleport"))return Gl;if(Ls(e,"Suspense"))return Em;if(Ls(e,"KeepAlive"))return xc;if(Ls(e,"BaseTransition"))return Yw}const _L=/^\d|[^\$\w]/,Dm=e=>!_L.test(e),wL=/[A-Za-z_$\xA0-\uFFFF]/,SL=/[\.\?\w$\xA0-\uFFFF]/,EL=/\s+[.[]\s*|\s*[.[]\s+/g,xL=e=>{e=e.trim().replace(EL,l=>l.trim());let t=0,n=[],r=0,o=0,s=null;for(let l=0;l<e.length;l++){const a=e.charAt(l);switch(t){case 0:if(a==="[")n.push(t),t=1,r++;else if(a==="(")n.push(t),t=2,o++;else if(!(l===0?wL:SL).test(a))return!1;break;case 1:a==="'"||a==='"'||a==="`"?(n.push(t),t=3,s=a):a==="["?r++:a==="]"&&(--r||(t=n.pop()));break;case 2:if(a==="'"||a==='"'||a==="`")n.push(t),t=3,s=a;else if(a==="(")o++;else if(a===")"){if(l===e.length-1)return!1;--o||(t=n.pop())}break;case 3:a===s&&(t=n.pop(),s=null);break}}return!r&&!o},iS=xL;function sS(e,t,n){const o={source:e.source.slice(t,t+n),start:Oc(e.start,e.source,t),end:e.end};return n!=null&&(o.end=Oc(e.start,e.source,t+n)),o}function Oc(e,t,n=t.length){return Ac(jo({},e),t,n)}function Ac(e,t,n=t.length){let r=0,o=-1;for(let s=0;s<n;s++)t.charCodeAt(s)===10&&(r++,o=s);return e.offset+=n,e.line+=r,e.column=o===-1?e.column+n:n-o,e}function Ar(e,t,n=!1){for(let r=0;r<e.props.length;r++){const o=e.props[r];if(o.type===7&&(n||o.exp)&&(mn(t)?o.name===t:t.test(o.name)))return o}}function vd(e,t,n=!1,r=!1){for(let o=0;o<e.props.length;o++){const s=e.props[o];if(s.type===6){if(n)continue;if(s.name===t&&(s.value||r))return s}else if(s.name==="bind"&&(s.exp||r)&&qi(s.arg,t))return s}}function qi(e,t){return!!(e&&Yn(e)&&e.content===t)}function $L(e){return e.props.some(t=>t.type===7&&t.name==="bind"&&(!t.arg||t.arg.type!==4||!t.arg.isStatic))}function _p(e){return e.type===5||e.type===2}function CL(e){return e.type===7&&e.name==="slot"}function Ic(e){return e.type===1&&e.tagType===3}function Pc(e){return e.type===1&&e.tagType===2}function Xs(e,t){return e||t?xm:$m}function Js(e,t){return e||t?Zw:Qw}const TL=new Set([ca,Ia]);function lS(e,t=[]){if(e&&!mn(e)&&e.type===14){const n=e.callee;if(!mn(n)&&TL.has(n))return lS(e.arguments[0],t.concat(e))}return[e,t]}function kc(e,t,n){let r,o=e.type===13?e.props:e.arguments[2],s=[],l;if(o&&!mn(o)&&o.type===14){const a=lS(o);o=a[0],s=a[1],l=s[s.length-1]}if(o==null||mn(o))r=Ir([t]);else if(o.type===14){const a=o.arguments[0];!mn(a)&&a.type===15?Cb(t,a)||a.properties.unshift(t):o.callee===Lm?r=nn(n.helper(Cc),[Ir([t]),o]):o.arguments.unshift(Ir([t])),!r&&(r=o)}else o.type===15?(Cb(t,o)||o.properties.unshift(t),r=o):(r=nn(n.helper(Cc),[Ir([t]),o]),l&&l.callee===Ia&&(l=s[s.length-2]));e.type===13?l?l.arguments[0]=r:e.props=r:l?l.arguments[0]=r:e.arguments[2]=r}function Cb(e,t){let n=!1;if(e.key.type===4){const r=e.key.content;n=t.properties.some(o=>o.key.type===4&&o.key.content===r)}return n}function fa(e,t){return`_${t}_${e.replace(/[^\w]/g,(n,r)=>n==="-"?"_":e.charCodeAt(r).toString())}`}function OL(e){return e.type===14&&e.callee===Mm?e.arguments[1].returns:e}function Fm(e,{helper:t,removeHelper:n,inSSR:r}){e.isBlock||(e.isBlock=!0,n(Xs(r,e.isComponent)),t(ss),t(Js(r,e.isComponent)))}function Tb(e,t){const n=t.options?t.options.compatConfig:t.compatConfig,r=n&&n[e];return e==="MODE"?r||3:r}function Zi(e,t){const n=Tb("MODE",t),r=Tb(e,t);return n===3?r===!0:r!==!1}function pa(e,t,n,...r){return Zi(e,t)}const AL=/&(gt|lt|amp|apos|quot);/g,IL={gt:">",lt:"<",amp:"&",apos:"'",quot:'"'},Ob={delimiters:["{{","}}"],getNamespace:()=>0,getTextMode:()=>0,isVoidTag:bp,isPreTag:bp,isCustomElement:bp,decodeEntities:e=>e.replace(AL,(t,n)=>IL[n]),onError:Sm,onWarn:Jw,comments:!1};function PL(e,t={}){const n=kL(e,t),r=vr(n);return gL(Bm(n,0,[]),Fr(n,r))}function kL(e,t){const n=jo({},Ob);let r;for(r in t)n[r]=t[r]===void 0?Ob[r]:t[r];return{options:n,column:1,line:1,offset:0,originalSource:e,source:e,inPre:!1,inVPre:!1,onWarn:n.onWarn}}function Bm(e,t,n){const r=gd(n),o=r?r.ns:0,s=[];for(;!jL(e,t,n);){const a=e.source;let c;if(t===0||t===1){if(!e.inVPre&&kn(a,e.options.delimiters[0]))c=BL(e,t);else if(t===0&&a[0]==="<")if(a.length===1)At(e,5,1);else if(a[1]==="!")kn(a,"<!--")?c=LL(e):kn(a,"<!DOCTYPE")?c=Ol(e):kn(a,"<![CDATA[")?o!==0?c=RL(e,n):(At(e,1),c=Ol(e)):(At(e,11),c=Ol(e));else if(a[1]==="/")if(a.length===2)At(e,5,2);else if(a[2]===">"){At(e,14,2),fn(e,3);continue}else if(/[a-z]/i.test(a[2])){At(e,23),fh(e,1,r);continue}else At(e,12,2),c=Ol(e);else/[a-z]/i.test(a[1])?(c=NL(e,n),Zi("COMPILER_NATIVE_TEMPLATE",e)&&c&&c.tag==="template"&&!c.props.some(f=>f.type===7&&aS(f.name))&&(c=c.children)):a[1]==="?"?(At(e,21,1),c=Ol(e)):At(e,12,1)}if(c||(c=UL(e,t)),qs(c))for(let f=0;f<c.length;f++)Ab(s,c[f]);else Ab(s,c)}let l=!1;if(t!==2&&t!==1){const a=e.options.whitespace!=="preserve";for(let c=0;c<s.length;c++){const f=s[c];if(f.type===2)if(e.inPre)f.content=f.content.replace(/\r\n/g,`1 const IP=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const l of s.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerpolicy&&(s.referrerPolicy=o.referrerpolicy),o.crossorigin==="use-credentials"?s.credentials="include":o.crossorigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}};IP();function Vh(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o<r.length;o++)n[r[o]]=!0;return t?o=>!!n[o.toLowerCase()]:o=>!!n[o]}const PP="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt",kP=Vh(PP);function as(e){if(Je(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],o=on(r)?MP(r):as(r);if(o)for(const s in o)t[s]=o[s]}return t}else{if(on(e))return e;if(qt(e))return e}}const RP=/;(?![^(]*\))/g,LP=/:([^]+)/,NP=/\/\*.*?\*\//gs;function MP(e){const t={};return e.replace(NP,"").split(RP).forEach(n=>{if(n){const r=n.split(LP);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function wt(e){let t="";if(on(e))t=e;else if(Je(e))for(let n=0;n<e.length;n++){const r=wt(e[n]);r&&(t+=r+" ")}else if(qt(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function DP(e){if(!e)return null;let{class:t,style:n}=e;return t&&!on(t)&&(e.class=wt(t)),n&&(e.style=as(n)),e}const U=e=>on(e)?e:e==null?"":Je(e)||qt(e)&&(e.toString===a_||!et(e.toString))?JSON.stringify(e,i_,2):String(e),i_=(e,t)=>t&&t.__v_isRef?i_(e,t.value):Ms(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o])=>(n[`${r} =>`]=o,n),{})}:l_(t)?{[`Set(${t.size})`]:[...t.values()]}:qt(t)&&!Je(t)&&!u_(t)?String(t):t,Ut={},Ns=[],Xr=()=>{},FP=()=>!1,BP=/^on[^a-z]/,Kc=e=>BP.test(e),s_=e=>e.startsWith("onUpdate:"),$n=Object.assign,Wh=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},UP=Object.prototype.hasOwnProperty,_t=(e,t)=>UP.call(e,t),Je=Array.isArray,Ms=e=>Ea(e)==="[object Map]",l_=e=>Ea(e)==="[object Set]",jP=e=>Ea(e)==="[object RegExp]",et=e=>typeof e=="function",on=e=>typeof e=="string",zh=e=>typeof e=="symbol",qt=e=>e!==null&&typeof e=="object",qh=e=>qt(e)&&et(e.then)&&et(e.catch),a_=Object.prototype.toString,Ea=e=>a_.call(e),HP=e=>Ea(e).slice(8,-1),u_=e=>Ea(e)==="[object Object]",Kh=e=>on(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,jl=Vh(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Gc=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},VP=/-(\w)/g,eo=Gc(e=>e.replace(VP,(t,n)=>n?n.toUpperCase():"")),WP=/\B([A-Z])/g,Xc=Gc(e=>e.replace(WP,"-$1").toLowerCase()),Jc=Gc(e=>e.charAt(0).toUpperCase()+e.slice(1)),Hl=Gc(e=>e?`on${Jc(e)}`:""),Hs=(e,t)=>!Object.is(e,t),Vl=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},mc=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},zP=e=>{const t=parseFloat(e);return isNaN(t)?e:t},qP=e=>{const t=on(e)?Number(e):NaN;return isNaN(t)?e:t};let jy;const KP=()=>jy||(jy=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});let dr;class Gh{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=dr,!t&&dr&&(this.index=(dr.scopes||(dr.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=dr;try{return dr=this,t()}finally{dr=n}}}on(){dr=this}off(){dr=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.scopes)for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0,this._active=!1}}}function GP(e){return new Gh(e)}function c_(e,t=dr){t&&t.active&&t.effects.push(e)}function d_(){return dr}function f_(e){dr&&dr.cleanups.push(e)}const Xh=e=>{const t=new Set(e);return t.w=0,t.n=0,t},p_=e=>(e.w&vi)>0,h_=e=>(e.n&vi)>0,XP=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=vi},JP=e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const o=t[r];p_(o)&&!h_(o)?o.delete(e):t[n++]=o,o.w&=~vi,o.n&=~vi}t.length=n}},vc=new WeakMap;let Dl=0,vi=1;const jp=30;let qr;const Gi=Symbol(""),Hp=Symbol("");class xa{constructor(t,n=null,r){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,c_(this,r)}run(){if(!this.active)return this.fn();let t=qr,n=pi;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=qr,qr=this,pi=!0,vi=1<<++Dl,Dl<=jp?XP(this):Hy(this),this.fn()}finally{Dl<=jp&&JP(this),vi=1<<--Dl,qr=this.parent,pi=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){qr===this?this.deferStop=!0:this.active&&(Hy(this),this.onStop&&this.onStop(),this.active=!1)}}function Hy(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}function YP(e,t){e.effect&&(e=e.effect.fn);const n=new xa(e);t&&($n(n,t),t.scope&&c_(n,t.scope)),(!t||!t.lazy)&&n.run();const r=n.run.bind(n);return r.effect=n,r}function ZP(e){e.effect.stop()}let pi=!0;const m_=[];function sl(){m_.push(pi),pi=!1}function ll(){const e=m_.pop();pi=e===void 0?!0:e}function tr(e,t,n){if(pi&&qr){let r=vc.get(e);r||vc.set(e,r=new Map);let o=r.get(n);o||r.set(n,o=Xh()),v_(o)}}function v_(e,t){let n=!1;Dl<=jp?h_(e)||(e.n|=vi,n=!p_(e)):n=!e.has(qr),n&&(e.add(qr),qr.deps.push(e))}function Vo(e,t,n,r,o,s){const l=vc.get(e);if(!l)return;let a=[];if(t==="clear")a=[...l.values()];else if(n==="length"&&Je(e)){const c=Number(r);l.forEach((f,p)=>{(p==="length"||p>=c)&&a.push(f)})}else switch(n!==void 0&&a.push(l.get(n)),t){case"add":Je(e)?Kh(n)&&a.push(l.get("length")):(a.push(l.get(Gi)),Ms(e)&&a.push(l.get(Hp)));break;case"delete":Je(e)||(a.push(l.get(Gi)),Ms(e)&&a.push(l.get(Hp)));break;case"set":Ms(e)&&a.push(l.get(Gi));break}if(a.length===1)a[0]&&Vp(a[0]);else{const c=[];for(const f of a)f&&c.push(...f);Vp(Xh(c))}}function Vp(e,t){const n=Je(e)?e:[...e];for(const r of n)r.computed&&Vy(r);for(const r of n)r.computed||Vy(r)}function Vy(e,t){(e!==qr||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function QP(e,t){var n;return(n=vc.get(e))===null||n===void 0?void 0:n.get(t)}const ek=Vh("__proto__,__v_isRef,__isVue"),g_=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(zh)),tk=Yc(),nk=Yc(!1,!0),rk=Yc(!0),ok=Yc(!0,!0),Wy=ik();function ik(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=Ue(this);for(let s=0,l=this.length;s<l;s++)tr(r,"get",s+"");const o=r[t](...n);return o===-1||o===!1?r[t](...n.map(Ue)):o}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){sl();const r=Ue(this)[t].apply(this,n);return ll(),r}}),e}function sk(e){const t=Ue(this);return tr(t,"has",e),t.hasOwnProperty(e)}function Yc(e=!1,t=!1){return function(r,o,s){if(o==="__v_isReactive")return!e;if(o==="__v_isReadonly")return e;if(o==="__v_isShallow")return t;if(o==="__v_raw"&&s===(e?t?x_:E_:t?S_:w_).get(r))return r;const l=Je(r);if(!e){if(l&&_t(Wy,o))return Reflect.get(Wy,o,s);if(o==="hasOwnProperty")return sk}const a=Reflect.get(r,o,s);return(zh(o)?g_.has(o):ek(o))||(e||tr(r,"get",o),t)?a:dn(a)?l&&Kh(o)?a:a.value:qt(a)?e?Yh(a):Si(a):a}}const lk=y_(),ak=y_(!0);function y_(e=!1){return function(n,r,o,s){let l=n[r];if(ns(l)&&dn(l)&&!dn(o))return!1;if(!e&&(!na(o)&&!ns(o)&&(l=Ue(l),o=Ue(o)),!Je(n)&&dn(l)&&!dn(o)))return l.value=o,!0;const a=Je(n)&&Kh(r)?Number(r)<n.length:_t(n,r),c=Reflect.set(n,r,o,s);return n===Ue(s)&&(a?Hs(o,l)&&Vo(n,"set",r,o):Vo(n,"add",r,o)),c}}function uk(e,t){const n=_t(e,t);e[t];const r=Reflect.deleteProperty(e,t);return r&&n&&Vo(e,"delete",t,void 0),r}function ck(e,t){const n=Reflect.has(e,t);return(!zh(t)||!g_.has(t))&&tr(e,"has",t),n}function dk(e){return tr(e,"iterate",Je(e)?"length":Gi),Reflect.ownKeys(e)}const b_={get:tk,set:lk,deleteProperty:uk,has:ck,ownKeys:dk},__={get:rk,set(e,t){return!0},deleteProperty(e,t){return!0}},fk=$n({},b_,{get:nk,set:ak}),pk=$n({},__,{get:ok}),Jh=e=>e,Zc=e=>Reflect.getPrototypeOf(e);function Lu(e,t,n=!1,r=!1){e=e.__v_raw;const o=Ue(e),s=Ue(t);n||(t!==s&&tr(o,"get",t),tr(o,"get",s));const{has:l}=Zc(o),a=r?Jh:n?em:ra;if(l.call(o,t))return a(e.get(t));if(l.call(o,s))return a(e.get(s));e!==o&&e.get(t)}function Nu(e,t=!1){const n=this.__v_raw,r=Ue(n),o=Ue(e);return t||(e!==o&&tr(r,"has",e),tr(r,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function Mu(e,t=!1){return e=e.__v_raw,!t&&tr(Ue(e),"iterate",Gi),Reflect.get(e,"size",e)}function zy(e){e=Ue(e);const t=Ue(this);return Zc(t).has.call(t,e)||(t.add(e),Vo(t,"add",e,e)),this}function qy(e,t){t=Ue(t);const n=Ue(this),{has:r,get:o}=Zc(n);let s=r.call(n,e);s||(e=Ue(e),s=r.call(n,e));const l=o.call(n,e);return n.set(e,t),s?Hs(t,l)&&Vo(n,"set",e,t):Vo(n,"add",e,t),this}function Ky(e){const t=Ue(this),{has:n,get:r}=Zc(t);let o=n.call(t,e);o||(e=Ue(e),o=n.call(t,e)),r&&r.call(t,e);const s=t.delete(e);return o&&Vo(t,"delete",e,void 0),s}function Gy(){const e=Ue(this),t=e.size!==0,n=e.clear();return t&&Vo(e,"clear",void 0,void 0),n}function Du(e,t){return function(r,o){const s=this,l=s.__v_raw,a=Ue(l),c=t?Jh:e?em:ra;return!e&&tr(a,"iterate",Gi),l.forEach((f,p)=>r.call(o,c(f),c(p),s))}}function Fu(e,t,n){return function(...r){const o=this.__v_raw,s=Ue(o),l=Ms(s),a=e==="entries"||e===Symbol.iterator&&l,c=e==="keys"&&l,f=o[e](...r),p=n?Jh:t?em:ra;return!t&&tr(s,"iterate",c?Hp:Gi),{next(){const{value:h,done:v}=f.next();return v?{value:h,done:v}:{value:a?[p(h[0]),p(h[1])]:p(h),done:v}},[Symbol.iterator](){return this}}}}function oi(e){return function(...t){return e==="delete"?!1:this}}function hk(){const e={get(s){return Lu(this,s)},get size(){return Mu(this)},has:Nu,add:zy,set:qy,delete:Ky,clear:Gy,forEach:Du(!1,!1)},t={get(s){return Lu(this,s,!1,!0)},get size(){return Mu(this)},has:Nu,add:zy,set:qy,delete:Ky,clear:Gy,forEach:Du(!1,!0)},n={get(s){return Lu(this,s,!0)},get size(){return Mu(this,!0)},has(s){return Nu.call(this,s,!0)},add:oi("add"),set:oi("set"),delete:oi("delete"),clear:oi("clear"),forEach:Du(!0,!1)},r={get(s){return Lu(this,s,!0,!0)},get size(){return Mu(this,!0)},has(s){return Nu.call(this,s,!0)},add:oi("add"),set:oi("set"),delete:oi("delete"),clear:oi("clear"),forEach:Du(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=Fu(s,!1,!1),n[s]=Fu(s,!0,!1),t[s]=Fu(s,!1,!0),r[s]=Fu(s,!0,!0)}),[e,n,t,r]}const[mk,vk,gk,yk]=hk();function Qc(e,t){const n=t?e?yk:gk:e?vk:mk;return(r,o,s)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?r:Reflect.get(_t(n,o)&&o in r?n:r,o,s)}const bk={get:Qc(!1,!1)},_k={get:Qc(!1,!0)},wk={get:Qc(!0,!1)},Sk={get:Qc(!0,!0)},w_=new WeakMap,S_=new WeakMap,E_=new WeakMap,x_=new WeakMap;function Ek(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function xk(e){return e.__v_skip||!Object.isExtensible(e)?0:Ek(HP(e))}function Si(e){return ns(e)?e:ed(e,!1,b_,bk,w_)}function $_(e){return ed(e,!1,fk,_k,S_)}function Yh(e){return ed(e,!0,__,wk,E_)}function $k(e){return ed(e,!0,pk,Sk,x_)}function ed(e,t,n,r,o){if(!qt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=o.get(e);if(s)return s;const l=xk(e);if(l===0)return e;const a=new Proxy(e,l===2?r:n);return o.set(e,a),a}function Xi(e){return ns(e)?Xi(e.__v_raw):!!(e&&e.__v_isReactive)}function ns(e){return!!(e&&e.__v_isReadonly)}function na(e){return!!(e&&e.__v_isShallow)}function Zh(e){return Xi(e)||ns(e)}function Ue(e){const t=e&&e.__v_raw;return t?Ue(t):e}function Qh(e){return mc(e,"__v_skip",!0),e}const ra=e=>qt(e)?Si(e):e,em=e=>qt(e)?Yh(e):e;function tm(e){pi&&qr&&(e=Ue(e),v_(e.dep||(e.dep=Xh())))}function td(e,t){e=Ue(e);const n=e.dep;n&&Vp(n)}function dn(e){return!!(e&&e.__v_isRef===!0)}function _e(e){return C_(e,!1)}function nd(e){return C_(e,!0)}function C_(e,t){return dn(e)?e:new Ck(e,t)}class Ck{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:Ue(t),this._value=n?t:ra(t)}get value(){return tm(this),this._value}set value(t){const n=this.__v_isShallow||na(t)||ns(t);t=n?t:Ue(t),Hs(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:ra(t),td(this))}}function Wp(e){td(e)}function jn(e){return dn(e)?e.value:e}const Tk={get:(e,t,n)=>jn(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return dn(o)&&!dn(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function nm(e){return Xi(e)?e:new Proxy(e,Tk)}class Ok{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:r}=t(()=>tm(this),()=>td(this));this._get=n,this._set=r}get value(){return this._get()}set value(t){this._set(t)}}function Ak(e){return new Ok(e)}function rm(e){const t=Je(e)?new Array(e.length):{};for(const n in e)t[n]=T_(e,n);return t}class Ik{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return QP(Ue(this._object),this._key)}}function T_(e,t,n){const r=e[t];return dn(r)?r:new Ik(e,t,n)}var O_;class Pk{constructor(t,n,r,o){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[O_]=!1,this._dirty=!0,this.effect=new xa(t,()=>{this._dirty||(this._dirty=!0,td(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=r}get value(){const t=Ue(this);return tm(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}O_="__v_isReadonly";function kk(e,t,n=!1){let r,o;const s=et(e);return s?(r=e,o=Xr):(r=e.get,o=e.set),new Pk(r,o,s||!o,n)}function Rk(e,...t){}function Lk(e,t){}function Uo(e,t,n,r){let o;try{o=r?e(...r):e()}catch(s){us(s,t,n)}return o}function mr(e,t,n,r){if(et(e)){const s=Uo(e,t,n,r);return s&&qh(s)&&s.catch(l=>{us(l,t,n)}),s}const o=[];for(let s=0;s<e.length;s++)o.push(mr(e[s],t,n,r));return o}function us(e,t,n,r=!0){const o=t?t.vnode:null;if(t){let s=t.parent;const l=t.proxy,a=n;for(;s;){const f=s.ec;if(f){for(let p=0;p<f.length;p++)if(f[p](e,l,a)===!1)return}s=s.parent}const c=t.appContext.config.errorHandler;if(c){Uo(c,null,10,[e,l,a]);return}}Nk(e,n,o,r)}function Nk(e,t,n,r=!0){console.error(e)}let oa=!1,zp=!1;const In=[];let vo=0;const Ds=[];let Mo=null,Hi=0;const A_=Promise.resolve();let om=null;function rn(e){const t=om||A_;return e?t.then(this?e.bind(this):e):t}function Mk(e){let t=vo+1,n=In.length;for(;t<n;){const r=t+n>>>1;ia(In[r])<e?t=r+1:n=r}return t}function rd(e){(!In.length||!In.includes(e,oa&&e.allowRecurse?vo+1:vo))&&(e.id==null?In.push(e):In.splice(Mk(e.id),0,e),I_())}function I_(){!oa&&!zp&&(zp=!0,om=A_.then(P_))}function Dk(e){const t=In.indexOf(e);t>vo&&In.splice(t,1)}function im(e){Je(e)?Ds.push(...e):(!Mo||!Mo.includes(e,e.allowRecurse?Hi+1:Hi))&&Ds.push(e),I_()}function Xy(e,t=oa?vo+1:0){for(;t<In.length;t++){const n=In[t];n&&n.pre&&(In.splice(t,1),t--,n())}}function gc(e){if(Ds.length){const t=[...new Set(Ds)];if(Ds.length=0,Mo){Mo.push(...t);return}for(Mo=t,Mo.sort((n,r)=>ia(n)-ia(r)),Hi=0;Hi<Mo.length;Hi++)Mo[Hi]();Mo=null,Hi=0}}const ia=e=>e.id==null?1/0:e.id,Fk=(e,t)=>{const n=ia(e)-ia(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function P_(e){zp=!1,oa=!0,In.sort(Fk);const t=Xr;try{for(vo=0;vo<In.length;vo++){const n=In[vo];n&&n.active!==!1&&Uo(n,null,14)}}finally{vo=0,In.length=0,gc(),oa=!1,om=null,(In.length||Ds.length)&&P_()}}let Rs,Bu=[];function k_(e,t){var n,r;Rs=e,Rs?(Rs.enabled=!0,Bu.forEach(({event:o,args:s})=>Rs.emit(o,...s)),Bu=[]):typeof window!="undefined"&&window.HTMLElement&&!(!((r=(n=window.navigator)===null||n===void 0?void 0:n.userAgent)===null||r===void 0)&&r.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(s=>{k_(s,t)}),setTimeout(()=>{Rs||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Bu=[])},3e3)):Bu=[]}function Bk(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Ut;let o=n;const s=t.startsWith("update:"),l=s&&t.slice(7);if(l&&l in r){const p=`${l==="modelValue"?"model":l}Modifiers`,{number:h,trim:v}=r[p]||Ut;v&&(o=n.map(y=>on(y)?y.trim():y)),h&&(o=n.map(zP))}let a,c=r[a=Hl(t)]||r[a=Hl(eo(t))];!c&&s&&(c=r[a=Hl(Xc(t))]),c&&mr(c,e,6,o);const f=r[a+"Once"];if(f){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,mr(f,e,6,o)}}function R_(e,t,n=!1){const r=t.emitsCache,o=r.get(e);if(o!==void 0)return o;const s=e.emits;let l={},a=!1;if(!et(e)){const c=f=>{const p=R_(f,t,!0);p&&(a=!0,$n(l,p))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!s&&!a?(qt(e)&&r.set(e,null),null):(Je(s)?s.forEach(c=>l[c]=null):$n(l,s),qt(e)&&r.set(e,l),l)}function od(e,t){return!e||!Kc(t)?!1:(t=t.slice(2).replace(/Once$/,""),_t(e,t[0].toLowerCase()+t.slice(1))||_t(e,Xc(t))||_t(e,t))}let xn=null,id=null;function sa(e){const t=xn;return xn=e,id=e&&e.type.__scopeId||null,t}function Uk(e){id=e}function jk(){id=null}const Hk=e=>ye;function ye(e,t=xn,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&Zp(-1);const s=sa(t);let l;try{l=e(...o)}finally{sa(s),r._d&&Zp(1)}return l};return r._n=!0,r._c=!0,r._d=!0,r}function tc(e){const{type:t,vnode:n,proxy:r,withProxy:o,props:s,propsOptions:[l],slots:a,attrs:c,emit:f,render:p,renderCache:h,data:v,setupState:y,ctx:_,inheritAttrs:w}=e;let I,O;const S=sa(e);try{if(n.shapeFlag&4){const T=o||r;I=fr(p.call(T,T,h,s,y,v,_)),O=c}else{const T=t;I=fr(T.length>1?T(s,{attrs:c,slots:a,emit:f}):T(s,null)),O=t.props?c:Wk(c)}}catch(T){ql.length=0,us(T,e,1),I=q(Rn)}let E=I;if(O&&w!==!1){const T=Object.keys(O),{shapeFlag:$}=E;T.length&&$&7&&(l&&T.some(s_)&&(O=zk(O,l)),E=Dr(E,O))}return n.dirs&&(E=Dr(E),E.dirs=E.dirs?E.dirs.concat(n.dirs):n.dirs),n.transition&&(E.transition=n.transition),I=E,sa(S),I}function Vk(e){let t;for(let n=0;n<e.length;n++){const r=e[n];if(gi(r)){if(r.type!==Rn||r.children==="v-if"){if(t)return;t=r}}else return}return t}const Wk=e=>{let t;for(const n in e)(n==="class"||n==="style"||Kc(n))&&((t||(t={}))[n]=e[n]);return t},zk=(e,t)=>{const n={};for(const r in e)(!s_(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function qk(e,t,n){const{props:r,children:o,component:s}=e,{props:l,children:a,patchFlag:c}=t,f=s.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?Jy(r,l,f):!!l;if(c&8){const p=t.dynamicProps;for(let h=0;h<p.length;h++){const v=p[h];if(l[v]!==r[v]&&!od(f,v))return!0}}}else return(o||a)&&(!a||!a.$stable)?!0:r===l?!1:r?l?Jy(r,l,f):!0:!!l;return!1}function Jy(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let o=0;o<r.length;o++){const s=r[o];if(t[s]!==e[s]&&!od(n,s))return!0}return!1}function sm({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const L_=e=>e.__isSuspense,Kk={name:"Suspense",__isSuspense:!0,process(e,t,n,r,o,s,l,a,c,f){e==null?Xk(t,n,r,o,s,l,a,c,f):Jk(e,t,n,r,o,l,a,c,f)},hydrate:Yk,create:lm,normalize:Zk},Gk=Kk;function la(e,t){const n=e.props&&e.props[t];et(n)&&n()}function Xk(e,t,n,r,o,s,l,a,c){const{p:f,o:{createElement:p}}=c,h=p("div"),v=e.suspense=lm(e,o,r,t,h,n,s,l,a,c);f(null,v.pendingBranch=e.ssContent,h,null,r,v,s,l),v.deps>0?(la(e,"onPending"),la(e,"onFallback"),f(null,e.ssFallback,t,n,r,null,s,l),Fs(v,e.ssFallback)):v.resolve()}function Jk(e,t,n,r,o,s,l,a,{p:c,um:f,o:{createElement:p}}){const h=t.suspense=e.suspense;h.vnode=t,t.el=e.el;const v=t.ssContent,y=t.ssFallback,{activeBranch:_,pendingBranch:w,isInFallback:I,isHydrating:O}=h;if(w)h.pendingBranch=v,Kr(v,w)?(c(w,v,h.hiddenContainer,null,o,h,s,l,a),h.deps<=0?h.resolve():I&&(c(_,y,n,r,o,null,s,l,a),Fs(h,y))):(h.pendingId++,O?(h.isHydrating=!1,h.activeBranch=w):f(w,o,h),h.deps=0,h.effects.length=0,h.hiddenContainer=p("div"),I?(c(null,v,h.hiddenContainer,null,o,h,s,l,a),h.deps<=0?h.resolve():(c(_,y,n,r,o,null,s,l,a),Fs(h,y))):_&&Kr(v,_)?(c(_,v,n,r,o,h,s,l,a),h.resolve(!0)):(c(null,v,h.hiddenContainer,null,o,h,s,l,a),h.deps<=0&&h.resolve()));else if(_&&Kr(v,_))c(_,v,n,r,o,h,s,l,a),Fs(h,v);else if(la(t,"onPending"),h.pendingBranch=v,h.pendingId++,c(null,v,h.hiddenContainer,null,o,h,s,l,a),h.deps<=0)h.resolve();else{const{timeout:S,pendingId:E}=h;S>0?setTimeout(()=>{h.pendingId===E&&h.fallback(y)},S):S===0&&h.fallback(y)}}function lm(e,t,n,r,o,s,l,a,c,f,p=!1){const{p:h,m:v,um:y,n:_,o:{parentNode:w,remove:I}}=f,O=e.props?qP(e.props.timeout):void 0,S={vnode:e,parent:t,parentComponent:n,isSVG:l,container:r,hiddenContainer:o,anchor:s,deps:0,pendingId:0,timeout:typeof O=="number"?O:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:p,isUnmounted:!1,effects:[],resolve(E=!1){const{vnode:T,activeBranch:$,pendingBranch:P,pendingId:k,effects:A,parentComponent:H,container:D}=S;if(S.isHydrating)S.isHydrating=!1;else if(!E){const K=$&&P.transition&&P.transition.mode==="out-in";K&&($.transition.afterLeave=()=>{k===S.pendingId&&v(P,D,te,0)});let{anchor:te}=S;$&&(te=_($),y($,H,S,!0)),K||v(P,D,te,0)}Fs(S,P),S.pendingBranch=null,S.isInFallback=!1;let F=S.parent,z=!1;for(;F;){if(F.pendingBranch){F.effects.push(...A),z=!0;break}F=F.parent}z||im(A),S.effects=[],la(T,"onResolve")},fallback(E){if(!S.pendingBranch)return;const{vnode:T,activeBranch:$,parentComponent:P,container:k,isSVG:A}=S;la(T,"onFallback");const H=_($),D=()=>{!S.isInFallback||(h(null,E,k,H,P,null,A,a,c),Fs(S,E))},F=E.transition&&E.transition.mode==="out-in";F&&($.transition.afterLeave=D),S.isInFallback=!0,y($,P,null,!0),F||D()},move(E,T,$){S.activeBranch&&v(S.activeBranch,E,T,$),S.container=E},next(){return S.activeBranch&&_(S.activeBranch)},registerDep(E,T){const $=!!S.pendingBranch;$&&S.deps++;const P=E.vnode.el;E.asyncDep.catch(k=>{us(k,E,0)}).then(k=>{if(E.isUnmounted||S.isUnmounted||S.pendingId!==E.suspenseId)return;E.asyncResolved=!0;const{vnode:A}=E;Qp(E,k,!1),P&&(A.el=P);const H=!P&&E.subTree.el;T(E,A,w(P||E.subTree.el),P?null:_(E.subTree),S,l,c),H&&I(H),sm(E,A.el),$&&--S.deps===0&&S.resolve()})},unmount(E,T){S.isUnmounted=!0,S.activeBranch&&y(S.activeBranch,n,E,T),S.pendingBranch&&y(S.pendingBranch,n,E,T)}};return S}function Yk(e,t,n,r,o,s,l,a,c){const f=t.suspense=lm(t,r,n,e.parentNode,document.createElement("div"),null,o,s,l,a,!0),p=c(e,f.pendingBranch=t.ssContent,n,f,s,l);return f.deps===0&&f.resolve(),p}function Zk(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=Yy(r?n.default:n),e.ssFallback=r?Yy(n.fallback):q(Rn)}function Yy(e){let t;if(et(e)){const n=is&&e._c;n&&(e._d=!1,N()),e=e(),n&&(e._d=!0,t=Jn,uw())}return Je(e)&&(e=Vk(e)),e=fr(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function N_(e,t){t&&t.pendingBranch?Je(e)?t.effects.push(...e):t.effects.push(e):im(e)}function Fs(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e,o=n.el=t.el;r&&r.subTree===n&&(r.vnode.el=o,sm(r,o))}function Yt(e,t){if(Xt){let n=Xt.provides;const r=Xt.parent&&Xt.parent.provides;r===n&&(n=Xt.provides=Object.create(r)),n[e]=t}}function kt(e,t,n=!1){const r=Xt||xn;if(r){const o=r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(o&&e in o)return o[e];if(arguments.length>1)return n&&et(t)?t.call(r.proxy):t}}function jt(e,t){return $a(e,null,t)}function M_(e,t){return $a(e,null,{flush:"post"})}function Qk(e,t){return $a(e,null,{flush:"sync"})}const Uu={};function Ft(e,t,n){return $a(e,t,n)}function $a(e,t,{immediate:n,deep:r,flush:o,onTrack:s,onTrigger:l}=Ut){const a=d_()===(Xt==null?void 0:Xt.scope)?Xt:null;let c,f=!1,p=!1;if(dn(e)?(c=()=>e.value,f=na(e)):Xi(e)?(c=()=>e,r=!0):Je(e)?(p=!0,f=e.some(E=>Xi(E)||na(E)),c=()=>e.map(E=>{if(dn(E))return E.value;if(Xi(E))return zi(E);if(et(E))return Uo(E,a,2)})):et(e)?t?c=()=>Uo(e,a,2):c=()=>{if(!(a&&a.isUnmounted))return h&&h(),mr(e,a,3,[v])}:c=Xr,t&&r){const E=c;c=()=>zi(E())}let h,v=E=>{h=O.onStop=()=>{Uo(E,a,4)}},y;if(Ws)if(v=Xr,t?n&&mr(t,a,3,[c(),p?[]:void 0,v]):c(),o==="sync"){const E=Ew();y=E.__watcherHandles||(E.__watcherHandles=[])}else return Xr;let _=p?new Array(e.length).fill(Uu):Uu;const w=()=>{if(!!O.active)if(t){const E=O.run();(r||f||(p?E.some((T,$)=>Hs(T,_[$])):Hs(E,_)))&&(h&&h(),mr(t,a,3,[E,_===Uu?void 0:p&&_[0]===Uu?[]:_,v]),_=E)}else O.run()};w.allowRecurse=!!t;let I;o==="sync"?I=w:o==="post"?I=()=>Sn(w,a&&a.suspense):(w.pre=!0,a&&(w.id=a.uid),I=()=>rd(w));const O=new xa(c,I);t?n?w():_=O.run():o==="post"?Sn(O.run.bind(O),a&&a.suspense):O.run();const S=()=>{O.stop(),a&&a.scope&&Wh(a.scope.effects,O)};return y&&y.push(S),S}function eR(e,t,n){const r=this.proxy,o=on(e)?e.includes(".")?D_(r,e):()=>r[e]:e.bind(r,r);let s;et(t)?s=t:(s=t.handler,n=t);const l=Xt;yi(this);const a=$a(o,s.bind(r),n);return l?yi(l):hi(),a}function D_(e,t){const n=t.split(".");return()=>{let r=e;for(let o=0;o<n.length&&r;o++)r=r[n[o]];return r}}function zi(e,t){if(!qt(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),dn(e))zi(e.value,t);else if(Je(e))for(let n=0;n<e.length;n++)zi(e[n],t);else if(l_(e)||Ms(e))e.forEach(n=>{zi(n,t)});else if(u_(e))for(const n in e)zi(e[n],t);return e}function am(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return gt(()=>{e.isMounted=!0}),cs(()=>{e.isUnmounting=!0}),e}const Or=[Function,Array],tR={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Or,onEnter:Or,onAfterEnter:Or,onEnterCancelled:Or,onBeforeLeave:Or,onLeave:Or,onAfterLeave:Or,onLeaveCancelled:Or,onBeforeAppear:Or,onAppear:Or,onAfterAppear:Or,onAppearCancelled:Or},setup(e,{slots:t}){const n=Ko(),r=am();let o;return()=>{const s=t.default&&sd(t.default(),!0);if(!s||!s.length)return;let l=s[0];if(s.length>1){for(const w of s)if(w.type!==Rn){l=w;break}}const a=Ue(e),{mode:c}=a;if(r.isLeaving)return up(l);const f=Zy(l);if(!f)return up(l);const p=Vs(f,a,r,n);rs(f,p);const h=n.subTree,v=h&&Zy(h);let y=!1;const{getTransitionKey:_}=f.type;if(_){const w=_();o===void 0?o=w:w!==o&&(o=w,y=!0)}if(v&&v.type!==Rn&&(!Kr(f,v)||y)){const w=Vs(v,a,r,n);if(rs(v,w),c==="out-in")return r.isLeaving=!0,w.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},up(l);c==="in-out"&&f.type!==Rn&&(w.delayLeave=(I,O,S)=>{const E=F_(r,v);E[String(v.key)]=v,I._leaveCb=()=>{O(),I._leaveCb=void 0,delete p.delayedLeave},p.delayedLeave=S})}return l}}},um=tR;function F_(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Vs(e,t,n,r){const{appear:o,mode:s,persisted:l=!1,onBeforeEnter:a,onEnter:c,onAfterEnter:f,onEnterCancelled:p,onBeforeLeave:h,onLeave:v,onAfterLeave:y,onLeaveCancelled:_,onBeforeAppear:w,onAppear:I,onAfterAppear:O,onAppearCancelled:S}=t,E=String(e.key),T=F_(n,e),$=(A,H)=>{A&&mr(A,r,9,H)},P=(A,H)=>{const D=H[1];$(A,H),Je(A)?A.every(F=>F.length<=1)&&D():A.length<=1&&D()},k={mode:s,persisted:l,beforeEnter(A){let H=a;if(!n.isMounted)if(o)H=w||a;else return;A._leaveCb&&A._leaveCb(!0);const D=T[E];D&&Kr(e,D)&&D.el._leaveCb&&D.el._leaveCb(),$(H,[A])},enter(A){let H=c,D=f,F=p;if(!n.isMounted)if(o)H=I||c,D=O||f,F=S||p;else return;let z=!1;const K=A._enterCb=te=>{z||(z=!0,te?$(F,[A]):$(D,[A]),k.delayedLeave&&k.delayedLeave(),A._enterCb=void 0)};H?P(H,[A,K]):K()},leave(A,H){const D=String(e.key);if(A._enterCb&&A._enterCb(!0),n.isUnmounting)return H();$(h,[A]);let F=!1;const z=A._leaveCb=K=>{F||(F=!0,H(),K?$(_,[A]):$(y,[A]),A._leaveCb=void 0,T[D]===e&&delete T[D])};T[D]=e,v?P(v,[A,z]):z()},clone(A){return Vs(A,t,n,r)}};return k}function up(e){if(Ca(e))return e=Dr(e),e.children=null,e}function Zy(e){return Ca(e)?e.children?e.children[0]:void 0:e}function rs(e,t){e.shapeFlag&6&&e.component?rs(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function sd(e,t=!1,n){let r=[],o=0;for(let s=0;s<e.length;s++){let l=e[s];const a=n==null?l.key:String(n)+String(l.key!=null?l.key:s);l.type===Fe?(l.patchFlag&128&&o++,r=r.concat(sd(l.children,t,a))):(t||l.type!==Rn)&&r.push(a!=null?Dr(l,{key:a}):l)}if(o>1)for(let s=0;s<r.length;s++)r[s].patchFlag=-2;return r}function ve(e){return et(e)?{setup:e,name:e.name}:e}const Ji=e=>!!e.type.__asyncLoader;function nR(e){et(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:o=200,timeout:s,suspensible:l=!0,onError:a}=e;let c=null,f,p=0;const h=()=>(p++,c=null,v()),v=()=>{let y;return c||(y=c=t().catch(_=>{if(_=_ instanceof Error?_:new Error(String(_)),a)return new Promise((w,I)=>{a(_,()=>w(h()),()=>I(_),p+1)});throw _}).then(_=>y!==c&&c?c:(_&&(_.__esModule||_[Symbol.toStringTag]==="Module")&&(_=_.default),f=_,_)))};return ve({name:"AsyncComponentWrapper",__asyncLoader:v,get __asyncResolved(){return f},setup(){const y=Xt;if(f)return()=>cp(f,y);const _=S=>{c=null,us(S,y,13,!r)};if(l&&y.suspense||Ws)return v().then(S=>()=>cp(S,y)).catch(S=>(_(S),()=>r?q(r,{error:S}):null));const w=_e(!1),I=_e(),O=_e(!!o);return o&&setTimeout(()=>{O.value=!1},o),s!=null&&setTimeout(()=>{if(!w.value&&!I.value){const S=new Error(`Async component timed out after ${s}ms.`);_(S),I.value=S}},s),v().then(()=>{w.value=!0,y.parent&&Ca(y.parent.vnode)&&rd(y.parent.update)}).catch(S=>{_(S),I.value=S}),()=>{if(w.value&&f)return cp(f,y);if(I.value&&r)return q(r,{error:I.value});if(n&&!O.value)return q(n)}}})}function cp(e,t){const{ref:n,props:r,children:o,ce:s}=t.vnode,l=q(e,r,o);return l.ref=n,l.ce=s,delete t.vnode.ce,l}const Ca=e=>e.type.__isKeepAlive,rR={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Ko(),r=n.ctx;if(!r.renderer)return()=>{const S=t.default&&t.default();return S&&S.length===1?S[0]:S};const o=new Map,s=new Set;let l=null;const a=n.suspense,{renderer:{p:c,m:f,um:p,o:{createElement:h}}}=r,v=h("div");r.activate=(S,E,T,$,P)=>{const k=S.component;f(S,E,T,0,a),c(k.vnode,S,E,T,k,a,$,S.slotScopeIds,P),Sn(()=>{k.isDeactivated=!1,k.a&&Vl(k.a);const A=S.props&&S.props.onVnodeMounted;A&&Xn(A,k.parent,S)},a)},r.deactivate=S=>{const E=S.component;f(S,v,null,1,a),Sn(()=>{E.da&&Vl(E.da);const T=S.props&&S.props.onVnodeUnmounted;T&&Xn(T,E.parent,S),E.isDeactivated=!0},a)};function y(S){dp(S),p(S,n,a,!0)}function _(S){o.forEach((E,T)=>{const $=th(E.type);$&&(!S||!S($))&&w(T)})}function w(S){const E=o.get(S);!l||!Kr(E,l)?y(E):l&&dp(l),o.delete(S),s.delete(S)}Ft(()=>[e.include,e.exclude],([S,E])=>{S&&_(T=>Fl(S,T)),E&&_(T=>!Fl(E,T))},{flush:"post",deep:!0});let I=null;const O=()=>{I!=null&&o.set(I,fp(n.subTree))};return gt(O),ad(O),cs(()=>{o.forEach(S=>{const{subTree:E,suspense:T}=n,$=fp(E);if(S.type===$.type&&S.key===$.key){dp($);const P=$.component.da;P&&Sn(P,T);return}y(S)})}),()=>{if(I=null,!t.default)return null;const S=t.default(),E=S[0];if(S.length>1)return l=null,S;if(!gi(E)||!(E.shapeFlag&4)&&!(E.shapeFlag&128))return l=null,E;let T=fp(E);const $=T.type,P=th(Ji(T)?T.type.__asyncResolved||{}:$),{include:k,exclude:A,max:H}=e;if(k&&(!P||!Fl(k,P))||A&&P&&Fl(A,P))return l=T,E;const D=T.key==null?$:T.key,F=o.get(D);return T.el&&(T=Dr(T),E.shapeFlag&128&&(E.ssContent=T)),I=D,F?(T.el=F.el,T.component=F.component,T.transition&&rs(T,T.transition),T.shapeFlag|=512,s.delete(D),s.add(D)):(s.add(D),H&&s.size>parseInt(H,10)&&w(s.values().next().value)),T.shapeFlag|=256,l=T,L_(E.type)?E:T}}},oR=rR;function Fl(e,t){return Je(e)?e.some(n=>Fl(n,t)):on(e)?e.split(",").includes(t):jP(e)?e.test(t):!1}function B_(e,t){j_(e,"a",t)}function U_(e,t){j_(e,"da",t)}function j_(e,t,n=Xt){const r=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(ld(t,r,n),n){let o=n.parent;for(;o&&o.parent;)Ca(o.parent.vnode)&&iR(r,t,n,o),o=o.parent}}function iR(e,t,n,r){const o=ld(t,e,r,!0);Zt(()=>{Wh(r[t],o)},n)}function dp(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function fp(e){return e.shapeFlag&128?e.ssContent:e}function ld(e,t,n=Xt,r=!1){if(n){const o=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...l)=>{if(n.isUnmounted)return;sl(),yi(n);const a=mr(t,n,e,l);return hi(),ll(),a});return r?o.unshift(s):o.push(s),s}}const qo=e=>(t,n=Xt)=>(!Ws||e==="sp")&&ld(e,(...r)=>t(...r),n),H_=qo("bm"),gt=qo("m"),V_=qo("bu"),ad=qo("u"),cs=qo("bum"),Zt=qo("um"),W_=qo("sp"),z_=qo("rtg"),q_=qo("rtc");function K_(e,t=Xt){ld("ec",e,t)}function G_(e,t){const n=xn;if(n===null)return e;const r=cd(n)||n.proxy,o=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[l,a,c,f=Ut]=t[s];l&&(et(l)&&(l={mounted:l,updated:l}),l.deep&&zi(a),o.push({dir:l,instance:r,value:a,oldValue:void 0,arg:c,modifiers:f}))}return e}function mo(e,t,n,r){const o=e.dirs,s=t&&t.dirs;for(let l=0;l<o.length;l++){const a=o[l];s&&(a.oldValue=s[l].value);let c=a.dir[r];c&&(sl(),mr(c,n,8,[e.el,a,e,t]),ll())}}const cm="components",sR="directives";function X(e,t){return dm(cm,e,!0,t)||e}const X_=Symbol();function lR(e){return on(e)?dm(cm,e,!1)||e:e||X_}function aR(e){return dm(sR,e)}function dm(e,t,n=!0,r=!1){const o=xn||Xt;if(o){const s=o.type;if(e===cm){const a=th(s,!1);if(a&&(a===t||a===eo(t)||a===Jc(eo(t))))return s}const l=Qy(o[e]||s[e],t)||Qy(o.appContext[e],t);return!l&&r?s:l}}function Qy(e,t){return e&&(e[t]||e[eo(t)]||e[Jc(eo(t))])}function Mt(e,t,n,r){let o;const s=n&&n[r];if(Je(e)||on(e)){o=new Array(e.length);for(let l=0,a=e.length;l<a;l++)o[l]=t(e[l],l,void 0,s&&s[l])}else if(typeof e=="number"){o=new Array(e);for(let l=0;l<e;l++)o[l]=t(l+1,l,void 0,s&&s[l])}else if(qt(e))if(e[Symbol.iterator])o=Array.from(e,(l,a)=>t(l,a,void 0,s&&s[a]));else{const l=Object.keys(e);o=new Array(l.length);for(let a=0,c=l.length;a<c;a++){const f=l[a];o[a]=t(e[f],f,a,s&&s[a])}}else o=[];return n&&(n[r]=o),o}function uR(e,t){for(let n=0;n<t.length;n++){const r=t[n];if(Je(r))for(let o=0;o<r.length;o++)e[r[o].name]=r[o].fn;else r&&(e[r.name]=r.key?(...o)=>{const s=r.fn(...o);return s&&(s.key=r.key),s}:r.fn)}return e}function gr(e,t,n={},r,o){if(xn.isCE||xn.parent&&Ji(xn.parent)&&xn.parent.isCE)return t!=="default"&&(n.name=t),q("slot",n,r&&r());let s=e[t];s&&s._c&&(s._d=!1),N();const l=s&&J_(s(n)),a=bt(Fe,{key:n.key||l&&l.key||`_${t}`},l||(r?r():[]),l&&e._===1?64:-2);return!o&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),s&&s._c&&(s._d=!0),a}function J_(e){return e.some(t=>gi(t)?!(t.type===Rn||t.type===Fe&&!J_(t.children)):!0)?e:null}function cR(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:Hl(r)]=e[r];return n}const qp=e=>e?mw(e)?cd(e)||e.proxy:qp(e.parent):null,Wl=$n(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=>qp(e.parent),$root:e=>qp(e.root),$emit:e=>e.emit,$options:e=>fm(e),$forceUpdate:e=>e.f||(e.f=()=>rd(e.update)),$nextTick:e=>e.n||(e.n=rn.bind(e.proxy)),$watch:e=>eR.bind(e)}),pp=(e,t)=>e!==Ut&&!e.__isScriptSetup&&_t(e,t),Kp={get({_:e},t){const{ctx:n,setupState:r,data:o,props:s,accessCache:l,type:a,appContext:c}=e;let f;if(t[0]!=="$"){const y=l[t];if(y!==void 0)switch(y){case 1:return r[t];case 2:return o[t];case 4:return n[t];case 3:return s[t]}else{if(pp(r,t))return l[t]=1,r[t];if(o!==Ut&&_t(o,t))return l[t]=2,o[t];if((f=e.propsOptions[0])&&_t(f,t))return l[t]=3,s[t];if(n!==Ut&&_t(n,t))return l[t]=4,n[t];Gp&&(l[t]=0)}}const p=Wl[t];let h,v;if(p)return t==="$attrs"&&tr(e,"get",t),p(e);if((h=a.__cssModules)&&(h=h[t]))return h;if(n!==Ut&&_t(n,t))return l[t]=4,n[t];if(v=c.config.globalProperties,_t(v,t))return v[t]},set({_:e},t,n){const{data:r,setupState:o,ctx:s}=e;return pp(o,t)?(o[t]=n,!0):r!==Ut&&_t(r,t)?(r[t]=n,!0):_t(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,propsOptions:s}},l){let a;return!!n[l]||e!==Ut&&_t(e,l)||pp(t,l)||(a=s[0])&&_t(a,l)||_t(r,l)||_t(Wl,l)||_t(o.config.globalProperties,l)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:_t(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},dR=$n({},Kp,{get(e,t){if(t!==Symbol.unscopables)return Kp.get(e,t,e)},has(e,t){return t[0]!=="_"&&!kP(t)}});let Gp=!0;function fR(e){const t=fm(e),n=e.proxy,r=e.ctx;Gp=!1,t.beforeCreate&&eb(t.beforeCreate,e,"bc");const{data:o,computed:s,methods:l,watch:a,provide:c,inject:f,created:p,beforeMount:h,mounted:v,beforeUpdate:y,updated:_,activated:w,deactivated:I,beforeDestroy:O,beforeUnmount:S,destroyed:E,unmounted:T,render:$,renderTracked:P,renderTriggered:k,errorCaptured:A,serverPrefetch:H,expose:D,inheritAttrs:F,components:z,directives:K,filters:te}=t;if(f&&pR(f,r,null,e.appContext.config.unwrapInjectedRef),l)for(const Oe in l){const Ae=l[Oe];et(Ae)&&(r[Oe]=Ae.bind(n))}if(o){const Oe=o.call(n,n);qt(Oe)&&(e.data=Si(Oe))}if(Gp=!0,s)for(const Oe in s){const Ae=s[Oe],Ye=et(Ae)?Ae.bind(n,n):et(Ae.get)?Ae.get.bind(n,n):Xr,ft=!et(Ae)&&et(Ae.set)?Ae.set.bind(n):Xr,Le=ce({get:Ye,set:ft});Object.defineProperty(r,Oe,{enumerable:!0,configurable:!0,get:()=>Le.value,set:Ke=>Le.value=Ke})}if(a)for(const Oe in a)Y_(a[Oe],r,n,Oe);if(c){const Oe=et(c)?c.call(n):c;Reflect.ownKeys(Oe).forEach(Ae=>{Yt(Ae,Oe[Ae])})}p&&eb(p,e,"c");function be(Oe,Ae){Je(Ae)?Ae.forEach(Ye=>Oe(Ye.bind(n))):Ae&&Oe(Ae.bind(n))}if(be(H_,h),be(gt,v),be(V_,y),be(ad,_),be(B_,w),be(U_,I),be(K_,A),be(q_,P),be(z_,k),be(cs,S),be(Zt,T),be(W_,H),Je(D))if(D.length){const Oe=e.exposed||(e.exposed={});D.forEach(Ae=>{Object.defineProperty(Oe,Ae,{get:()=>n[Ae],set:Ye=>n[Ae]=Ye})})}else e.exposed||(e.exposed={});$&&e.render===Xr&&(e.render=$),F!=null&&(e.inheritAttrs=F),z&&(e.components=z),K&&(e.directives=K)}function pR(e,t,n=Xr,r=!1){Je(e)&&(e=Xp(e));for(const o in e){const s=e[o];let l;qt(s)?"default"in s?l=kt(s.from||o,s.default,!0):l=kt(s.from||o):l=kt(s),dn(l)&&r?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>l.value,set:a=>l.value=a}):t[o]=l}}function eb(e,t,n){mr(Je(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Y_(e,t,n,r){const o=r.includes(".")?D_(n,r):()=>n[r];if(on(e)){const s=t[e];et(s)&&Ft(o,s)}else if(et(e))Ft(o,e.bind(n));else if(qt(e))if(Je(e))e.forEach(s=>Y_(s,t,n,r));else{const s=et(e.handler)?e.handler.bind(n):t[e.handler];et(s)&&Ft(o,s,e)}}function fm(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:s,config:{optionMergeStrategies:l}}=e.appContext,a=s.get(t);let c;return a?c=a:!o.length&&!n&&!r?c=t:(c={},o.length&&o.forEach(f=>yc(c,f,l,!0)),yc(c,t,l)),qt(t)&&s.set(t,c),c}function yc(e,t,n,r=!1){const{mixins:o,extends:s}=t;s&&yc(e,s,n,!0),o&&o.forEach(l=>yc(e,l,n,!0));for(const l in t)if(!(r&&l==="expose")){const a=hR[l]||n&&n[l];e[l]=a?a(e[l],t[l]):t[l]}return e}const hR={data:tb,props:Ui,emits:Ui,methods:Ui,computed:Ui,beforeCreate:Un,created:Un,beforeMount:Un,mounted:Un,beforeUpdate:Un,updated:Un,beforeDestroy:Un,beforeUnmount:Un,destroyed:Un,unmounted:Un,activated:Un,deactivated:Un,errorCaptured:Un,serverPrefetch:Un,components:Ui,directives:Ui,watch:vR,provide:tb,inject:mR};function tb(e,t){return t?e?function(){return $n(et(e)?e.call(this,this):e,et(t)?t.call(this,this):t)}:t:e}function mR(e,t){return Ui(Xp(e),Xp(t))}function Xp(e){if(Je(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Un(e,t){return e?[...new Set([].concat(e,t))]:t}function Ui(e,t){return e?$n($n(Object.create(null),e),t):t}function vR(e,t){if(!e)return t;if(!t)return e;const n=$n(Object.create(null),e);for(const r in t)n[r]=Un(e[r],t[r]);return n}function gR(e,t,n,r=!1){const o={},s={};mc(s,ud,1),e.propsDefaults=Object.create(null),Z_(e,t,o,s);for(const l in e.propsOptions[0])l in o||(o[l]=void 0);n?e.props=r?o:$_(o):e.type.props?e.props=o:e.props=s,e.attrs=s}function yR(e,t,n,r){const{props:o,attrs:s,vnode:{patchFlag:l}}=e,a=Ue(o),[c]=e.propsOptions;let f=!1;if((r||l>0)&&!(l&16)){if(l&8){const p=e.vnode.dynamicProps;for(let h=0;h<p.length;h++){let v=p[h];if(od(e.emitsOptions,v))continue;const y=t[v];if(c)if(_t(s,v))y!==s[v]&&(s[v]=y,f=!0);else{const _=eo(v);o[_]=Jp(c,a,_,y,e,!1)}else y!==s[v]&&(s[v]=y,f=!0)}}}else{Z_(e,t,o,s)&&(f=!0);let p;for(const h in a)(!t||!_t(t,h)&&((p=Xc(h))===h||!_t(t,p)))&&(c?n&&(n[h]!==void 0||n[p]!==void 0)&&(o[h]=Jp(c,a,h,void 0,e,!0)):delete o[h]);if(s!==a)for(const h in s)(!t||!_t(t,h)&&!0)&&(delete s[h],f=!0)}f&&Vo(e,"set","$attrs")}function Z_(e,t,n,r){const[o,s]=e.propsOptions;let l=!1,a;if(t)for(let c in t){if(jl(c))continue;const f=t[c];let p;o&&_t(o,p=eo(c))?!s||!s.includes(p)?n[p]=f:(a||(a={}))[p]=f:od(e.emitsOptions,c)||(!(c in r)||f!==r[c])&&(r[c]=f,l=!0)}if(s){const c=Ue(n),f=a||Ut;for(let p=0;p<s.length;p++){const h=s[p];n[h]=Jp(o,c,h,f[h],e,!_t(f,h))}}return l}function Jp(e,t,n,r,o,s){const l=e[n];if(l!=null){const a=_t(l,"default");if(a&&r===void 0){const c=l.default;if(l.type!==Function&&et(c)){const{propsDefaults:f}=o;n in f?r=f[n]:(yi(o),r=f[n]=c.call(null,t),hi())}else r=c}l[0]&&(s&&!a?r=!1:l[1]&&(r===""||r===Xc(n))&&(r=!0))}return r}function Q_(e,t,n=!1){const r=t.propsCache,o=r.get(e);if(o)return o;const s=e.props,l={},a=[];let c=!1;if(!et(e)){const p=h=>{c=!0;const[v,y]=Q_(h,t,!0);$n(l,v),y&&a.push(...y)};!n&&t.mixins.length&&t.mixins.forEach(p),e.extends&&p(e.extends),e.mixins&&e.mixins.forEach(p)}if(!s&&!c)return qt(e)&&r.set(e,Ns),Ns;if(Je(s))for(let p=0;p<s.length;p++){const h=eo(s[p]);nb(h)&&(l[h]=Ut)}else if(s)for(const p in s){const h=eo(p);if(nb(h)){const v=s[p],y=l[h]=Je(v)||et(v)?{type:v}:Object.assign({},v);if(y){const _=ib(Boolean,y.type),w=ib(String,y.type);y[0]=_>-1,y[1]=w<0||_<w,(_>-1||_t(y,"default"))&&a.push(h)}}}const f=[l,a];return qt(e)&&r.set(e,f),f}function nb(e){return e[0]!=="$"}function rb(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function ob(e,t){return rb(e)===rb(t)}function ib(e,t){return Je(t)?t.findIndex(n=>ob(n,e)):et(t)&&ob(t,e)?0:-1}const ew=e=>e[0]==="_"||e==="$stable",pm=e=>Je(e)?e.map(fr):[fr(e)],bR=(e,t,n)=>{if(t._n)return t;const r=ye((...o)=>pm(t(...o)),n);return r._c=!1,r},tw=(e,t,n)=>{const r=e._ctx;for(const o in e){if(ew(o))continue;const s=e[o];if(et(s))t[o]=bR(o,s,r);else if(s!=null){const l=pm(s);t[o]=()=>l}}},nw=(e,t)=>{const n=pm(t);e.slots.default=()=>n},_R=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=Ue(t),mc(t,"_",n)):tw(t,e.slots={})}else e.slots={},t&&nw(e,t);mc(e.slots,ud,1)},wR=(e,t,n)=>{const{vnode:r,slots:o}=e;let s=!0,l=Ut;if(r.shapeFlag&32){const a=t._;a?n&&a===1?s=!1:($n(o,t),!n&&a===1&&delete o._):(s=!t.$stable,tw(t,o)),l=t}else t&&(nw(e,t),l={default:1});if(s)for(const a in o)!ew(a)&&!(a in l)&&delete o[a]};function rw(){return{app:null,config:{isNativeTag:FP,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 SR=0;function ER(e,t){return function(r,o=null){et(r)||(r=Object.assign({},r)),o!=null&&!qt(o)&&(o=null);const s=rw(),l=new Set;let a=!1;const c=s.app={_uid:SR++,_component:r,_props:o,_container:null,_context:s,_instance:null,version:$w,get config(){return s.config},set config(f){},use(f,...p){return l.has(f)||(f&&et(f.install)?(l.add(f),f.install(c,...p)):et(f)&&(l.add(f),f(c,...p))),c},mixin(f){return s.mixins.includes(f)||s.mixins.push(f),c},component(f,p){return p?(s.components[f]=p,c):s.components[f]},directive(f,p){return p?(s.directives[f]=p,c):s.directives[f]},mount(f,p,h){if(!a){const v=q(r,o);return v.appContext=s,p&&t?t(v,f):e(v,f,h),a=!0,c._container=f,f.__vue_app__=c,cd(v.component)||v.component.proxy}},unmount(){a&&(e(null,c._container),delete c._container.__vue_app__)},provide(f,p){return s.provides[f]=p,c}};return c}}function bc(e,t,n,r,o=!1){if(Je(e)){e.forEach((v,y)=>bc(v,t&&(Je(t)?t[y]:t),n,r,o));return}if(Ji(r)&&!o)return;const s=r.shapeFlag&4?cd(r.component)||r.component.proxy:r.el,l=o?null:s,{i:a,r:c}=e,f=t&&t.r,p=a.refs===Ut?a.refs={}:a.refs,h=a.setupState;if(f!=null&&f!==c&&(on(f)?(p[f]=null,_t(h,f)&&(h[f]=null)):dn(f)&&(f.value=null)),et(c))Uo(c,a,12,[l,p]);else{const v=on(c),y=dn(c);if(v||y){const _=()=>{if(e.f){const w=v?_t(h,c)?h[c]:p[c]:c.value;o?Je(w)&&Wh(w,s):Je(w)?w.includes(s)||w.push(s):v?(p[c]=[s],_t(h,c)&&(h[c]=p[c])):(c.value=[s],e.k&&(p[e.k]=c.value))}else v?(p[c]=l,_t(h,c)&&(h[c]=l)):y&&(c.value=l,e.k&&(p[e.k]=l))};l?(_.id=-1,Sn(_,n)):_()}}}let ii=!1;const ju=e=>/svg/.test(e.namespaceURI)&&e.tagName!=="foreignObject",Hu=e=>e.nodeType===8;function xR(e){const{mt:t,p:n,o:{patchProp:r,createText:o,nextSibling:s,parentNode:l,remove:a,insert:c,createComment:f}}=e,p=(O,S)=>{if(!S.hasChildNodes()){n(null,O,S),gc(),S._vnode=O;return}ii=!1,h(S.firstChild,O,null,null,null),gc(),S._vnode=O,ii&&console.error("Hydration completed but contains mismatches.")},h=(O,S,E,T,$,P=!1)=>{const k=Hu(O)&&O.data==="[",A=()=>w(O,S,E,T,$,k),{type:H,ref:D,shapeFlag:F,patchFlag:z}=S;let K=O.nodeType;S.el=O,z===-2&&(P=!1,S.dynamicChildren=null);let te=null;switch(H){case os:K!==3?S.children===""?(c(S.el=o(""),l(O),O),te=O):te=A():(O.data!==S.children&&(ii=!0,O.data=S.children),te=s(O));break;case Rn:K!==8||k?te=A():te=s(O);break;case Yi:if(k&&(O=s(O),K=O.nodeType),K===1||K===3){te=O;const we=!S.children.length;for(let be=0;be<S.staticCount;be++)we&&(S.children+=te.nodeType===1?te.outerHTML:te.data),be===S.staticCount-1&&(S.anchor=te),te=s(te);return k?s(te):te}else A();break;case Fe:k?te=_(O,S,E,T,$,P):te=A();break;default:if(F&1)K!==1||S.type.toLowerCase()!==O.tagName.toLowerCase()?te=A():te=v(O,S,E,T,$,P);else if(F&6){S.slotScopeIds=$;const we=l(O);if(t(S,we,null,E,T,ju(we),P),te=k?I(O):s(O),te&&Hu(te)&&te.data==="teleport end"&&(te=s(te)),Ji(S)){let be;k?(be=q(Fe),be.anchor=te?te.previousSibling:we.lastChild):be=O.nodeType===3?Ge(""):q("div"),be.el=O,S.component.subTree=be}}else F&64?K!==8?te=A():te=S.type.hydrate(O,S,E,T,$,P,e,y):F&128&&(te=S.type.hydrate(O,S,E,T,ju(l(O)),$,P,e,h))}return D!=null&&bc(D,null,T,S),te},v=(O,S,E,T,$,P)=>{P=P||!!S.dynamicChildren;const{type:k,props:A,patchFlag:H,shapeFlag:D,dirs:F}=S,z=k==="input"&&F||k==="option";if(z||H!==-1){if(F&&mo(S,null,E,"created"),A)if(z||!P||H&48)for(const te in A)(z&&te.endsWith("value")||Kc(te)&&!jl(te))&&r(O,te,null,A[te],!1,void 0,E);else A.onClick&&r(O,"onClick",null,A.onClick,!1,void 0,E);let K;if((K=A&&A.onVnodeBeforeMount)&&Xn(K,E,S),F&&mo(S,null,E,"beforeMount"),((K=A&&A.onVnodeMounted)||F)&&N_(()=>{K&&Xn(K,E,S),F&&mo(S,null,E,"mounted")},T),D&16&&!(A&&(A.innerHTML||A.textContent))){let te=y(O.firstChild,S,O,E,T,$,P);for(;te;){ii=!0;const we=te;te=te.nextSibling,a(we)}}else D&8&&O.textContent!==S.children&&(ii=!0,O.textContent=S.children)}return O.nextSibling},y=(O,S,E,T,$,P,k)=>{k=k||!!S.dynamicChildren;const A=S.children,H=A.length;for(let D=0;D<H;D++){const F=k?A[D]:A[D]=fr(A[D]);if(O)O=h(O,F,T,$,P,k);else{if(F.type===os&&!F.children)continue;ii=!0,n(null,F,E,null,T,$,ju(E),P)}}return O},_=(O,S,E,T,$,P)=>{const{slotScopeIds:k}=S;k&&($=$?$.concat(k):k);const A=l(O),H=y(s(O),S,A,E,T,$,P);return H&&Hu(H)&&H.data==="]"?s(S.anchor=H):(ii=!0,c(S.anchor=f("]"),A,H),H)},w=(O,S,E,T,$,P)=>{if(ii=!0,S.el=null,P){const H=I(O);for(;;){const D=s(O);if(D&&D!==H)a(D);else break}}const k=s(O),A=l(O);return a(O),n(null,S,A,k,E,T,ju(A),$),k},I=O=>{let S=0;for(;O;)if(O=s(O),O&&Hu(O)&&(O.data==="["&&S++,O.data==="]")){if(S===0)return s(O);S--}return O};return[p,h]}const Sn=N_;function ow(e){return sw(e)}function iw(e){return sw(e,xR)}function sw(e,t){const n=KP();n.__VUE__=!0;const{insert:r,remove:o,patchProp:s,createElement:l,createText:a,createComment:c,setText:f,setElementText:p,parentNode:h,nextSibling:v,setScopeId:y=Xr,insertStaticContent:_}=e,w=(L,B,Z,le=null,ie=null,pe=null,Ee=!1,he=null,me=!!B.dynamicChildren)=>{if(L===B)return;L&&!Kr(L,B)&&(le=He(L),Ke(L,ie,pe,!0),L=null),B.patchFlag===-2&&(me=!1,B.dynamicChildren=null);const{type:se,ref:Re,shapeFlag:Pe}=B;switch(se){case os:I(L,B,Z,le);break;case Rn:O(L,B,Z,le);break;case Yi:L==null&&S(B,Z,le,Ee);break;case Fe:z(L,B,Z,le,ie,pe,Ee,he,me);break;default:Pe&1?$(L,B,Z,le,ie,pe,Ee,he,me):Pe&6?K(L,B,Z,le,ie,pe,Ee,he,me):(Pe&64||Pe&128)&&se.process(L,B,Z,le,ie,pe,Ee,he,me,tt)}Re!=null&&ie&&bc(Re,L&&L.ref,pe,B||L,!B)},I=(L,B,Z,le)=>{if(L==null)r(B.el=a(B.children),Z,le);else{const ie=B.el=L.el;B.children!==L.children&&f(ie,B.children)}},O=(L,B,Z,le)=>{L==null?r(B.el=c(B.children||""),Z,le):B.el=L.el},S=(L,B,Z,le)=>{[L.el,L.anchor]=_(L.children,B,Z,le,L.el,L.anchor)},E=({el:L,anchor:B},Z,le)=>{let ie;for(;L&&L!==B;)ie=v(L),r(L,Z,le),L=ie;r(B,Z,le)},T=({el:L,anchor:B})=>{let Z;for(;L&&L!==B;)Z=v(L),o(L),L=Z;o(B)},$=(L,B,Z,le,ie,pe,Ee,he,me)=>{Ee=Ee||B.type==="svg",L==null?P(B,Z,le,ie,pe,Ee,he,me):H(L,B,ie,pe,Ee,he,me)},P=(L,B,Z,le,ie,pe,Ee,he)=>{let me,se;const{type:Re,props:Pe,shapeFlag:Me,transition:je,dirs:rt}=L;if(me=L.el=l(L.type,pe,Pe&&Pe.is,Pe),Me&8?p(me,L.children):Me&16&&A(L.children,me,null,le,ie,pe&&Re!=="foreignObject",Ee,he),rt&&mo(L,null,le,"created"),k(me,L,L.scopeId,Ee,le),Pe){for(const ct in Pe)ct!=="value"&&!jl(ct)&&s(me,ct,null,Pe[ct],pe,L.children,le,ie,Se);"value"in Pe&&s(me,"value",null,Pe.value),(se=Pe.onVnodeBeforeMount)&&Xn(se,le,L)}rt&&mo(L,null,le,"beforeMount");const mt=(!ie||ie&&!ie.pendingBranch)&&je&&!je.persisted;mt&&je.beforeEnter(me),r(me,B,Z),((se=Pe&&Pe.onVnodeMounted)||mt||rt)&&Sn(()=>{se&&Xn(se,le,L),mt&&je.enter(me),rt&&mo(L,null,le,"mounted")},ie)},k=(L,B,Z,le,ie)=>{if(Z&&y(L,Z),le)for(let pe=0;pe<le.length;pe++)y(L,le[pe]);if(ie){let pe=ie.subTree;if(B===pe){const Ee=ie.vnode;k(L,Ee,Ee.scopeId,Ee.slotScopeIds,ie.parent)}}},A=(L,B,Z,le,ie,pe,Ee,he,me=0)=>{for(let se=me;se<L.length;se++){const Re=L[se]=he?ui(L[se]):fr(L[se]);w(null,Re,B,Z,le,ie,pe,Ee,he)}},H=(L,B,Z,le,ie,pe,Ee)=>{const he=B.el=L.el;let{patchFlag:me,dynamicChildren:se,dirs:Re}=B;me|=L.patchFlag&16;const Pe=L.props||Ut,Me=B.props||Ut;let je;Z&&Mi(Z,!1),(je=Me.onVnodeBeforeUpdate)&&Xn(je,Z,B,L),Re&&mo(B,L,Z,"beforeUpdate"),Z&&Mi(Z,!0);const rt=ie&&B.type!=="foreignObject";if(se?D(L.dynamicChildren,se,he,Z,le,rt,pe):Ee||Ae(L,B,he,null,Z,le,rt,pe,!1),me>0){if(me&16)F(he,B,Pe,Me,Z,le,ie);else if(me&2&&Pe.class!==Me.class&&s(he,"class",null,Me.class,ie),me&4&&s(he,"style",Pe.style,Me.style,ie),me&8){const mt=B.dynamicProps;for(let ct=0;ct<mt.length;ct++){const Ht=mt[ct],Mn=Pe[Ht],uo=Me[Ht];(uo!==Mn||Ht==="value")&&s(he,Ht,Mn,uo,ie,L.children,Z,le,Se)}}me&1&&L.children!==B.children&&p(he,B.children)}else!Ee&&se==null&&F(he,B,Pe,Me,Z,le,ie);((je=Me.onVnodeUpdated)||Re)&&Sn(()=>{je&&Xn(je,Z,B,L),Re&&mo(B,L,Z,"updated")},le)},D=(L,B,Z,le,ie,pe,Ee)=>{for(let he=0;he<B.length;he++){const me=L[he],se=B[he],Re=me.el&&(me.type===Fe||!Kr(me,se)||me.shapeFlag&70)?h(me.el):Z;w(me,se,Re,null,le,ie,pe,Ee,!0)}},F=(L,B,Z,le,ie,pe,Ee)=>{if(Z!==le){if(Z!==Ut)for(const he in Z)!jl(he)&&!(he in le)&&s(L,he,Z[he],null,Ee,B.children,ie,pe,Se);for(const he in le){if(jl(he))continue;const me=le[he],se=Z[he];me!==se&&he!=="value"&&s(L,he,se,me,Ee,B.children,ie,pe,Se)}"value"in le&&s(L,"value",Z.value,le.value)}},z=(L,B,Z,le,ie,pe,Ee,he,me)=>{const se=B.el=L?L.el:a(""),Re=B.anchor=L?L.anchor:a("");let{patchFlag:Pe,dynamicChildren:Me,slotScopeIds:je}=B;je&&(he=he?he.concat(je):je),L==null?(r(se,Z,le),r(Re,Z,le),A(B.children,Z,Re,ie,pe,Ee,he,me)):Pe>0&&Pe&64&&Me&&L.dynamicChildren?(D(L.dynamicChildren,Me,Z,ie,pe,Ee,he),(B.key!=null||ie&&B===ie.subTree)&&hm(L,B,!0)):Ae(L,B,Z,Re,ie,pe,Ee,he,me)},K=(L,B,Z,le,ie,pe,Ee,he,me)=>{B.slotScopeIds=he,L==null?B.shapeFlag&512?ie.ctx.activate(B,Z,le,Ee,me):te(B,Z,le,ie,pe,Ee,me):we(L,B,me)},te=(L,B,Z,le,ie,pe,Ee)=>{const he=L.component=hw(L,le,ie);if(Ca(L)&&(he.ctx.renderer=tt),vw(he),he.asyncDep){if(ie&&ie.registerDep(he,be),!L.el){const me=he.subTree=q(Rn);O(null,me,B,Z)}return}be(he,L,B,Z,ie,pe,Ee)},we=(L,B,Z)=>{const le=B.component=L.component;if(qk(L,B,Z))if(le.asyncDep&&!le.asyncResolved){Oe(le,B,Z);return}else le.next=B,Dk(le.update),le.update();else B.el=L.el,le.vnode=B},be=(L,B,Z,le,ie,pe,Ee)=>{const he=()=>{if(L.isMounted){let{next:Re,bu:Pe,u:Me,parent:je,vnode:rt}=L,mt=Re,ct;Mi(L,!1),Re?(Re.el=rt.el,Oe(L,Re,Ee)):Re=rt,Pe&&Vl(Pe),(ct=Re.props&&Re.props.onVnodeBeforeUpdate)&&Xn(ct,je,Re,rt),Mi(L,!0);const Ht=tc(L),Mn=L.subTree;L.subTree=Ht,w(Mn,Ht,h(Mn.el),He(Mn),L,ie,pe),Re.el=Ht.el,mt===null&&sm(L,Ht.el),Me&&Sn(Me,ie),(ct=Re.props&&Re.props.onVnodeUpdated)&&Sn(()=>Xn(ct,je,Re,rt),ie)}else{let Re;const{el:Pe,props:Me}=B,{bm:je,m:rt,parent:mt}=L,ct=Ji(B);if(Mi(L,!1),je&&Vl(je),!ct&&(Re=Me&&Me.onVnodeBeforeMount)&&Xn(Re,mt,B),Mi(L,!0),Pe&&ln){const Ht=()=>{L.subTree=tc(L),ln(Pe,L.subTree,L,ie,null)};ct?B.type.__asyncLoader().then(()=>!L.isUnmounted&&Ht()):Ht()}else{const Ht=L.subTree=tc(L);w(null,Ht,Z,le,L,ie,pe),B.el=Ht.el}if(rt&&Sn(rt,ie),!ct&&(Re=Me&&Me.onVnodeMounted)){const Ht=B;Sn(()=>Xn(Re,mt,Ht),ie)}(B.shapeFlag&256||mt&&Ji(mt.vnode)&&mt.vnode.shapeFlag&256)&&L.a&&Sn(L.a,ie),L.isMounted=!0,B=Z=le=null}},me=L.effect=new xa(he,()=>rd(se),L.scope),se=L.update=()=>me.run();se.id=L.uid,Mi(L,!0),se()},Oe=(L,B,Z)=>{B.component=L;const le=L.vnode.props;L.vnode=B,L.next=null,yR(L,B.props,le,Z),wR(L,B.children,Z),sl(),Xy(),ll()},Ae=(L,B,Z,le,ie,pe,Ee,he,me=!1)=>{const se=L&&L.children,Re=L?L.shapeFlag:0,Pe=B.children,{patchFlag:Me,shapeFlag:je}=B;if(Me>0){if(Me&128){ft(se,Pe,Z,le,ie,pe,Ee,he,me);return}else if(Me&256){Ye(se,Pe,Z,le,ie,pe,Ee,he,me);return}}je&8?(Re&16&&Se(se,ie,pe),Pe!==se&&p(Z,Pe)):Re&16?je&16?ft(se,Pe,Z,le,ie,pe,Ee,he,me):Se(se,ie,pe,!0):(Re&8&&p(Z,""),je&16&&A(Pe,Z,le,ie,pe,Ee,he,me))},Ye=(L,B,Z,le,ie,pe,Ee,he,me)=>{L=L||Ns,B=B||Ns;const se=L.length,Re=B.length,Pe=Math.min(se,Re);let Me;for(Me=0;Me<Pe;Me++){const je=B[Me]=me?ui(B[Me]):fr(B[Me]);w(L[Me],je,Z,null,ie,pe,Ee,he,me)}se>Re?Se(L,ie,pe,!0,!1,Pe):A(B,Z,le,ie,pe,Ee,he,me,Pe)},ft=(L,B,Z,le,ie,pe,Ee,he,me)=>{let se=0;const Re=B.length;let Pe=L.length-1,Me=Re-1;for(;se<=Pe&&se<=Me;){const je=L[se],rt=B[se]=me?ui(B[se]):fr(B[se]);if(Kr(je,rt))w(je,rt,Z,null,ie,pe,Ee,he,me);else break;se++}for(;se<=Pe&&se<=Me;){const je=L[Pe],rt=B[Me]=me?ui(B[Me]):fr(B[Me]);if(Kr(je,rt))w(je,rt,Z,null,ie,pe,Ee,he,me);else break;Pe--,Me--}if(se>Pe){if(se<=Me){const je=Me+1,rt=je<Re?B[je].el:le;for(;se<=Me;)w(null,B[se]=me?ui(B[se]):fr(B[se]),Z,rt,ie,pe,Ee,he,me),se++}}else if(se>Me)for(;se<=Pe;)Ke(L[se],ie,pe,!0),se++;else{const je=se,rt=se,mt=new Map;for(se=rt;se<=Me;se++){const gn=B[se]=me?ui(B[se]):fr(B[se]);gn.key!=null&&mt.set(gn.key,se)}let ct,Ht=0;const Mn=Me-rt+1;let uo=!1,ms=0;const $o=new Array(Mn);for(se=0;se<Mn;se++)$o[se]=0;for(se=je;se<=Pe;se++){const gn=L[se];if(Ht>=Mn){Ke(gn,ie,pe,!0);continue}let Wn;if(gn.key!=null)Wn=mt.get(gn.key);else for(ct=rt;ct<=Me;ct++)if($o[ct-rt]===0&&Kr(gn,B[ct])){Wn=ct;break}Wn===void 0?Ke(gn,ie,pe,!0):($o[Wn-rt]=se+1,Wn>=ms?ms=Wn:uo=!0,w(gn,B[Wn],Z,null,ie,pe,Ee,he,me),Ht++)}const vs=uo?$R($o):Ns;for(ct=vs.length-1,se=Mn-1;se>=0;se--){const gn=rt+se,Wn=B[gn],gs=gn+1<Re?B[gn+1].el:le;$o[se]===0?w(null,Wn,Z,gs,ie,pe,Ee,he,me):uo&&(ct<0||se!==vs[ct]?Le(Wn,Z,gs,2):ct--)}}},Le=(L,B,Z,le,ie=null)=>{const{el:pe,type:Ee,transition:he,children:me,shapeFlag:se}=L;if(se&6){Le(L.component.subTree,B,Z,le);return}if(se&128){L.suspense.move(B,Z,le);return}if(se&64){Ee.move(L,B,Z,tt);return}if(Ee===Fe){r(pe,B,Z);for(let Pe=0;Pe<me.length;Pe++)Le(me[Pe],B,Z,le);r(L.anchor,B,Z);return}if(Ee===Yi){E(L,B,Z);return}if(le!==2&&se&1&&he)if(le===0)he.beforeEnter(pe),r(pe,B,Z),Sn(()=>he.enter(pe),ie);else{const{leave:Pe,delayLeave:Me,afterLeave:je}=he,rt=()=>r(pe,B,Z),mt=()=>{Pe(pe,()=>{rt(),je&&je()})};Me?Me(pe,rt,mt):mt()}else r(pe,B,Z)},Ke=(L,B,Z,le=!1,ie=!1)=>{const{type:pe,props:Ee,ref:he,children:me,dynamicChildren:se,shapeFlag:Re,patchFlag:Pe,dirs:Me}=L;if(he!=null&&bc(he,null,Z,L,!0),Re&256){B.ctx.deactivate(L);return}const je=Re&1&&Me,rt=!Ji(L);let mt;if(rt&&(mt=Ee&&Ee.onVnodeBeforeUnmount)&&Xn(mt,B,L),Re&6)fe(L.component,Z,le);else{if(Re&128){L.suspense.unmount(Z,le);return}je&&mo(L,null,B,"beforeUnmount"),Re&64?L.type.remove(L,B,Z,ie,tt,le):se&&(pe!==Fe||Pe>0&&Pe&64)?Se(se,B,Z,!1,!0):(pe===Fe&&Pe&384||!ie&&Re&16)&&Se(me,B,Z),le&&Q(L)}(rt&&(mt=Ee&&Ee.onVnodeUnmounted)||je)&&Sn(()=>{mt&&Xn(mt,B,L),je&&mo(L,null,B,"unmounted")},Z)},Q=L=>{const{type:B,el:Z,anchor:le,transition:ie}=L;if(B===Fe){ae(Z,le);return}if(B===Yi){T(L);return}const pe=()=>{o(Z),ie&&!ie.persisted&&ie.afterLeave&&ie.afterLeave()};if(L.shapeFlag&1&&ie&&!ie.persisted){const{leave:Ee,delayLeave:he}=ie,me=()=>Ee(Z,pe);he?he(L.el,pe,me):me()}else pe()},ae=(L,B)=>{let Z;for(;L!==B;)Z=v(L),o(L),L=Z;o(B)},fe=(L,B,Z)=>{const{bum:le,scope:ie,update:pe,subTree:Ee,um:he}=L;le&&Vl(le),ie.stop(),pe&&(pe.active=!1,Ke(Ee,L,B,Z)),he&&Sn(he,B),Sn(()=>{L.isUnmounted=!0},B),B&&B.pendingBranch&&!B.isUnmounted&&L.asyncDep&&!L.asyncResolved&&L.suspenseId===B.pendingId&&(B.deps--,B.deps===0&&B.resolve())},Se=(L,B,Z,le=!1,ie=!1,pe=0)=>{for(let Ee=pe;Ee<L.length;Ee++)Ke(L[Ee],B,Z,le,ie)},He=L=>L.shapeFlag&6?He(L.component.subTree):L.shapeFlag&128?L.suspense.next():v(L.anchor||L.el),De=(L,B,Z)=>{L==null?B._vnode&&Ke(B._vnode,null,null,!0):w(B._vnode||null,L,B,null,null,null,Z),Xy(),gc(),B._vnode=L},tt={p:w,um:Ke,m:Le,r:Q,mt:te,mc:A,pc:Ae,pbc:D,n:He,o:e};let vn,ln;return t&&([vn,ln]=t(tt)),{render:De,hydrate:vn,createApp:ER(De,vn)}}function Mi({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function hm(e,t,n=!1){const r=e.children,o=t.children;if(Je(r)&&Je(o))for(let s=0;s<r.length;s++){const l=r[s];let a=o[s];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=o[s]=ui(o[s]),a.el=l.el),n||hm(l,a)),a.type===os&&(a.el=l.el)}}function $R(e){const t=e.slice(),n=[0];let r,o,s,l,a;const c=e.length;for(r=0;r<c;r++){const f=e[r];if(f!==0){if(o=n[n.length-1],e[o]<f){t[r]=o,n.push(r);continue}for(s=0,l=n.length-1;s<l;)a=s+l>>1,e[n[a]]<f?s=a+1:l=a;f<e[n[s]]&&(s>0&&(t[r]=n[s-1]),n[s]=r)}}for(s=n.length,l=n[s-1];s-- >0;)n[s]=l,l=t[l];return n}const CR=e=>e.__isTeleport,zl=e=>e&&(e.disabled||e.disabled===""),sb=e=>typeof SVGElement!="undefined"&&e instanceof SVGElement,Yp=(e,t)=>{const n=e&&e.to;return on(n)?t?t(n):null:n},TR={__isTeleport:!0,process(e,t,n,r,o,s,l,a,c,f){const{mc:p,pc:h,pbc:v,o:{insert:y,querySelector:_,createText:w,createComment:I}}=f,O=zl(t.props);let{shapeFlag:S,children:E,dynamicChildren:T}=t;if(e==null){const $=t.el=w(""),P=t.anchor=w("");y($,n,r),y(P,n,r);const k=t.target=Yp(t.props,_),A=t.targetAnchor=w("");k&&(y(A,k),l=l||sb(k));const H=(D,F)=>{S&16&&p(E,D,F,o,s,l,a,c)};O?H(n,P):k&&H(k,A)}else{t.el=e.el;const $=t.anchor=e.anchor,P=t.target=e.target,k=t.targetAnchor=e.targetAnchor,A=zl(e.props),H=A?n:P,D=A?$:k;if(l=l||sb(P),T?(v(e.dynamicChildren,T,H,o,s,l,a),hm(e,t,!0)):c||h(e,t,H,D,o,s,l,a,!1),O)A||Vu(t,n,$,f,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const F=t.target=Yp(t.props,_);F&&Vu(t,F,null,f,0)}else A&&Vu(t,P,k,f,1)}aw(t)},remove(e,t,n,r,{um:o,o:{remove:s}},l){const{shapeFlag:a,children:c,anchor:f,targetAnchor:p,target:h,props:v}=e;if(h&&s(p),(l||!zl(v))&&(s(f),a&16))for(let y=0;y<c.length;y++){const _=c[y];o(_,t,n,!0,!!_.dynamicChildren)}},move:Vu,hydrate:OR};function Vu(e,t,n,{o:{insert:r},m:o},s=2){s===0&&r(e.targetAnchor,t,n);const{el:l,anchor:a,shapeFlag:c,children:f,props:p}=e,h=s===2;if(h&&r(l,t,n),(!h||zl(p))&&c&16)for(let v=0;v<f.length;v++)o(f[v],t,n,2);h&&r(a,t,n)}function OR(e,t,n,r,o,s,{o:{nextSibling:l,parentNode:a,querySelector:c}},f){const p=t.target=Yp(t.props,c);if(p){const h=p._lpa||p.firstChild;if(t.shapeFlag&16)if(zl(t.props))t.anchor=f(l(e),t,a(e),n,r,o,s),t.targetAnchor=h;else{t.anchor=l(e);let v=h;for(;v;)if(v=l(v),v&&v.nodeType===8&&v.data==="teleport anchor"){t.targetAnchor=v,p._lpa=t.targetAnchor&&l(t.targetAnchor);break}f(h,t,p,n,r,o,s)}aw(t)}return t.anchor&&l(t.anchor)}const lw=TR;function aw(e){const t=e.ctx;if(t&&t.ut){let n=e.children[0].el;for(;n!==e.targetAnchor;)n.nodeType===1&&n.setAttribute("data-v-owner",t.uid),n=n.nextSibling;t.ut()}}const Fe=Symbol(void 0),os=Symbol(void 0),Rn=Symbol(void 0),Yi=Symbol(void 0),ql=[];let Jn=null;function N(e=!1){ql.push(Jn=e?null:[])}function uw(){ql.pop(),Jn=ql[ql.length-1]||null}let is=1;function Zp(e){is+=e}function cw(e){return e.dynamicChildren=is>0?Jn||Ns:null,uw(),is>0&&Jn&&Jn.push(e),e}function V(e,t,n,r,o,s){return cw(g(e,t,n,r,o,s,!0))}function bt(e,t,n,r,o){return cw(q(e,t,n,r,o,!0))}function gi(e){return e?e.__v_isVNode===!0:!1}function Kr(e,t){return e.type===t.type&&e.key===t.key}function AR(e){}const ud="__vInternal",dw=({key:e})=>e!=null?e:null,nc=({ref:e,ref_key:t,ref_for:n})=>e!=null?on(e)||dn(e)||et(e)?{i:xn,r:e,k:t,f:!!n}:e:null;function g(e,t=null,n=null,r=0,o=null,s=e===Fe?0:1,l=!1,a=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&dw(t),ref:t&&nc(t),scopeId:id,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:xn};return a?(mm(c,n),s&128&&e.normalize(c)):n&&(c.shapeFlag|=on(n)?8:16),is>0&&!l&&Jn&&(c.patchFlag>0||s&6)&&c.patchFlag!==32&&Jn.push(c),c}const q=IR;function IR(e,t=null,n=null,r=0,o=null,s=!1){if((!e||e===X_)&&(e=Rn),gi(e)){const a=Dr(e,t,!0);return n&&mm(a,n),is>0&&!s&&Jn&&(a.shapeFlag&6?Jn[Jn.indexOf(e)]=a:Jn.push(a)),a.patchFlag|=-2,a}if(DR(e)&&(e=e.__vccOpts),t){t=fw(t);let{class:a,style:c}=t;a&&!on(a)&&(t.class=wt(a)),qt(c)&&(Zh(c)&&!Je(c)&&(c=$n({},c)),t.style=as(c))}const l=on(e)?1:L_(e)?128:CR(e)?64:qt(e)?4:et(e)?2:0;return g(e,t,n,r,o,l,s,!0)}function fw(e){return e?Zh(e)||ud in e?$n({},e):e:null}function Dr(e,t,n=!1){const{props:r,ref:o,patchFlag:s,children:l}=e,a=t?pw(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&dw(a),ref:t&&t.ref?n&&o?Je(o)?o.concat(nc(t)):[o,nc(t)]:nc(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Fe?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Dr(e.ssContent),ssFallback:e.ssFallback&&Dr(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Ge(e=" ",t=0){return q(os,null,e,t)}function PR(e,t){const n=q(Yi,null,e);return n.staticCount=t,n}function qe(e="",t=!1){return t?(N(),bt(Rn,null,e)):q(Rn,null,e)}function fr(e){return e==null||typeof e=="boolean"?q(Rn):Je(e)?q(Fe,null,e.slice()):typeof e=="object"?ui(e):q(os,null,String(e))}function ui(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Dr(e)}function mm(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(Je(t))n=16;else if(typeof t=="object")if(r&65){const o=t.default;o&&(o._c&&(o._d=!1),mm(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!(ud in t)?t._ctx=xn:o===3&&xn&&(xn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else et(t)?(t={default:t,_ctx:xn},n=32):(t=String(t),r&64?(n=16,t=[Ge(t)]):n=8);e.children=t,e.shapeFlag|=n}function pw(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const o in r)if(o==="class")t.class!==r.class&&(t.class=wt([t.class,r.class]));else if(o==="style")t.style=as([t.style,r.style]);else if(Kc(o)){const s=t[o],l=r[o];l&&s!==l&&!(Je(s)&&s.includes(l))&&(t[o]=s?[].concat(s,l):l)}else o!==""&&(t[o]=r[o])}return t}function Xn(e,t,n,r=null){mr(e,t,7,[n,r])}const kR=rw();let RR=0;function hw(e,t,n){const r=e.type,o=(t?t.appContext:e.appContext)||kR,s={uid:RR++,vnode:e,type:r,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,scope:new Gh(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Q_(r,o),emitsOptions:R_(r,o),emit:null,emitted:null,propsDefaults:Ut,inheritAttrs:r.inheritAttrs,ctx:Ut,data:Ut,props:Ut,attrs:Ut,slots:Ut,refs:Ut,setupState:Ut,setupContext:null,suspense:n,suspenseId:n?n.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 s.ctx={_:s},s.root=t?t.root:s,s.emit=Bk.bind(null,s),e.ce&&e.ce(s),s}let Xt=null;const Ko=()=>Xt||xn,yi=e=>{Xt=e,e.scope.on()},hi=()=>{Xt&&Xt.scope.off(),Xt=null};function mw(e){return e.vnode.shapeFlag&4}let Ws=!1;function vw(e,t=!1){Ws=t;const{props:n,children:r}=e.vnode,o=mw(e);gR(e,n,o,t),_R(e,r);const s=o?LR(e,t):void 0;return Ws=!1,s}function LR(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Qh(new Proxy(e.ctx,Kp));const{setup:r}=n;if(r){const o=e.setupContext=r.length>1?bw(e):null;yi(e),sl();const s=Uo(r,e,0,[e.props,o]);if(ll(),hi(),qh(s)){if(s.then(hi,hi),t)return s.then(l=>{Qp(e,l,t)}).catch(l=>{us(l,e,0)});e.asyncDep=s}else Qp(e,s,t)}else yw(e,t)}function Qp(e,t,n){et(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:qt(t)&&(e.setupState=nm(t)),yw(e,n)}let _c,eh;function gw(e){_c=e,eh=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,dR))}}const NR=()=>!_c;function yw(e,t,n){const r=e.type;if(!e.render){if(!t&&_c&&!r.render){const o=r.template||fm(e).template;if(o){const{isCustomElement:s,compilerOptions:l}=e.appContext.config,{delimiters:a,compilerOptions:c}=r,f=$n($n({isCustomElement:s,delimiters:a},l),c);r.render=_c(o,f)}}e.render=r.render||Xr,eh&&eh(e)}yi(e),sl(),fR(e),ll(),hi()}function MR(e){return new Proxy(e.attrs,{get(t,n){return tr(e,"get","$attrs"),t[n]}})}function bw(e){const t=r=>{e.exposed=r||{}};let n;return{get attrs(){return n||(n=MR(e))},slots:e.slots,emit:e.emit,expose:t}}function cd(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(nm(Qh(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Wl)return Wl[n](e)},has(t,n){return n in t||n in Wl}}))}function th(e,t=!0){return et(e)?e.displayName||e.name:e.name||t&&e.__name}function DR(e){return et(e)&&"__vccOpts"in e}const ce=(e,t)=>kk(e,t,Ws);function FR(){return null}function BR(){return null}function UR(e){}function jR(e,t){return null}function _w(){return ww().slots}function HR(){return ww().attrs}function ww(){const e=Ko();return e.setupContext||(e.setupContext=bw(e))}function VR(e,t){const n=Je(e)?e.reduce((r,o)=>(r[o]={},r),{}):e;for(const r in t){const o=n[r];o?Je(o)||et(o)?n[r]={type:o,default:t[r]}:o.default=t[r]:o===null&&(n[r]={default:t[r]})}return n}function WR(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function zR(e){const t=Ko();let n=e();return hi(),qh(n)&&(n=n.catch(r=>{throw yi(t),r})),[n,()=>yi(t)]}function dt(e,t,n){const r=arguments.length;return r===2?qt(t)&&!Je(t)?gi(t)?q(e,null,[t]):q(e,t):q(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&gi(n)&&(n=[n]),q(e,t,n))}const Sw=Symbol(""),Ew=()=>kt(Sw);function qR(){}function KR(e,t,n,r){const o=n[r];if(o&&xw(o,e))return o;const s=t();return s.memo=e.slice(),n[r]=s}function xw(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let r=0;r<n.length;r++)if(Hs(n[r],t[r]))return!1;return is>0&&Jn&&Jn.push(e),!0}const $w="3.2.47",GR={createComponentInstance:hw,setupComponent:vw,renderComponentRoot:tc,setCurrentRenderingInstance:sa,isVNode:gi,normalizeVNode:fr},XR=GR,JR=null,YR=null;function ZR(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o<r.length;o++)n[r[o]]=!0;return t?o=>!!n[o.toLowerCase()]:o=>!!n[o]}const QR="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",e4=ZR(QR);function Cw(e){return!!e||e===""}function t4(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=bi(e[r],t[r]);return n}function bi(e,t){if(e===t)return!0;let n=lb(e),r=lb(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=ab(e),r=ab(t),n||r)return e===t;if(n=nr(e),r=nr(t),n||r)return n&&r?t4(e,t):!1;if(n=nh(e),r=nh(t),n||r){if(!n||!r)return!1;const o=Object.keys(e).length,s=Object.keys(t).length;if(o!==s)return!1;for(const l in e){const a=e.hasOwnProperty(l),c=t.hasOwnProperty(l);if(a&&!c||!a&&c||!bi(e[l],t[l]))return!1}}return String(e)===String(t)}function dd(e,t){return e.findIndex(n=>bi(n,t))}const hp={},n4=/^on[^a-z]/,r4=e=>n4.test(e),o4=e=>e.startsWith("onUpdate:"),Ta=Object.assign,nr=Array.isArray,Oa=e=>Ow(e)==="[object Set]",lb=e=>Ow(e)==="[object Date]",Tw=e=>typeof e=="function",aa=e=>typeof e=="string",ab=e=>typeof e=="symbol",nh=e=>e!==null&&typeof e=="object",i4=Object.prototype.toString,Ow=e=>i4.call(e),vm=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},s4=/-(\w)/g,mp=vm(e=>e.replace(s4,(t,n)=>n?n.toUpperCase():"")),l4=/\B([A-Z])/g,ci=vm(e=>e.replace(l4,"-$1").toLowerCase()),a4=vm(e=>e.charAt(0).toUpperCase()+e.slice(1)),u4=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},rh=e=>{const t=parseFloat(e);return isNaN(t)?e:t},oh=e=>{const t=aa(e)?Number(e):NaN;return isNaN(t)?e:t},c4="http://www.w3.org/2000/svg",Vi=typeof document!="undefined"?document:null,ub=Vi&&Vi.createElement("template"),d4={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t?Vi.createElementNS(c4,e):Vi.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>Vi.createTextNode(e),createComment:e=>Vi.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Vi.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,s){const l=n?n.previousSibling:t.lastChild;if(o&&(o===s||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===s||!(o=o.nextSibling)););else{ub.innerHTML=r?`<svg>${e}</svg>`:e;const a=ub.content;if(r){const c=a.firstChild;for(;c.firstChild;)a.appendChild(c.firstChild);a.removeChild(c)}t.insertBefore(a,n)}return[l?l.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function f4(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function p4(e,t,n){const r=e.style,o=aa(n);if(n&&!o){if(t&&!aa(t))for(const s in t)n[s]==null&&ih(r,s,"");for(const s in n)ih(r,s,n[s])}else{const s=r.display;o?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=s)}}const cb=/\s*!important$/;function ih(e,t,n){if(nr(n))n.forEach(r=>ih(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=h4(e,t);cb.test(n)?e.setProperty(ci(r),n.replace(cb,""),"important"):e[r]=n}}const db=["Webkit","Moz","ms"],vp={};function h4(e,t){const n=vp[t];if(n)return n;let r=eo(t);if(r!=="filter"&&r in e)return vp[t]=r;r=a4(r);for(let o=0;o<db.length;o++){const s=db[o]+r;if(s in e)return vp[t]=s}return t}const fb="http://www.w3.org/1999/xlink";function m4(e,t,n,r,o){if(r&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(fb,t.slice(6,t.length)):e.setAttributeNS(fb,t,n);else{const s=e4(t);n==null||s&&!Cw(n)?e.removeAttribute(t):e.setAttribute(t,s?"":n)}}function v4(e,t,n,r,o,s,l){if(t==="innerHTML"||t==="textContent"){r&&l(r,o,s),e[t]=n==null?"":n;return}if(t==="value"&&e.tagName!=="PROGRESS"&&!e.tagName.includes("-")){e._value=n;const c=n==null?"":n;(e.value!==c||e.tagName==="OPTION")&&(e.value=c),n==null&&e.removeAttribute(t);return}let a=!1;if(n===""||n==null){const c=typeof e[t];c==="boolean"?n=Cw(n):n==null&&c==="string"?(n="",a=!0):c==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(t)}function Do(e,t,n,r){e.addEventListener(t,n,r)}function g4(e,t,n,r){e.removeEventListener(t,n,r)}function y4(e,t,n,r,o=null){const s=e._vei||(e._vei={}),l=s[t];if(r&&l)l.value=r;else{const[a,c]=b4(t);if(r){const f=s[t]=S4(r,o);Do(e,a,f,c)}else l&&(g4(e,a,l,c),s[t]=void 0)}}const pb=/(?:Once|Passive|Capture)$/;function b4(e){let t;if(pb.test(e)){t={};let r;for(;r=e.match(pb);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):ci(e.slice(2)),t]}let gp=0;const _4=Promise.resolve(),w4=()=>gp||(_4.then(()=>gp=0),gp=Date.now());function S4(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;mr(E4(r,n.value),t,5,[r])};return n.value=e,n.attached=w4(),n}function E4(e,t){if(nr(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>o=>!o._stopped&&r&&r(o))}else return t}const hb=/^on[a-z]/,x4=(e,t,n,r,o=!1,s,l,a,c)=>{t==="class"?f4(e,r,o):t==="style"?p4(e,n,r):r4(t)?o4(t)||y4(e,t,n,r,l):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):$4(e,t,r,o))?v4(e,t,r,s,l,a,c):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),m4(e,t,r,o))};function $4(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&hb.test(t)&&Tw(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||hb.test(t)&&aa(n)?!1:t in e}function Aw(e,t){const n=ve(e);class r extends fd{constructor(s){super(n,s,t)}}return r.def=n,r}const C4=e=>Aw(e,qw),T4=typeof HTMLElement!="undefined"?HTMLElement:class{};class fd extends T4{constructor(t,n={},r){super(),this._def=t,this._props=n,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&r?r(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,rn(()=>{this._connected||(ah(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let r=0;r<this.attributes.length;r++)this._setAttr(this.attributes[r].name);new MutationObserver(r=>{for(const o of r)this._setAttr(o.attributeName)}).observe(this,{attributes:!0});const t=(r,o=!1)=>{const{props:s,styles:l}=r;let a;if(s&&!nr(s))for(const c in s){const f=s[c];(f===Number||f&&f.type===Number)&&(c in this._props&&(this._props[c]=oh(this._props[c])),(a||(a=Object.create(null)))[mp(c)]=!0)}this._numberProps=a,o&&this._resolveProps(r),this._applyStyles(l),this._update()},n=this._def.__asyncLoader;n?n().then(r=>t(r,!0)):t(this._def)}_resolveProps(t){const{props:n}=t,r=nr(n)?n:Object.keys(n||{});for(const o of Object.keys(this))o[0]!=="_"&&r.includes(o)&&this._setProp(o,this[o],!0,!1);for(const o of r.map(mp))Object.defineProperty(this,o,{get(){return this._getProp(o)},set(s){this._setProp(o,s)}})}_setAttr(t){let n=this.getAttribute(t);const r=mp(t);this._numberProps&&this._numberProps[r]&&(n=oh(n)),this._setProp(r,n,!1)}_getProp(t){return this._props[t]}_setProp(t,n,r=!0,o=!0){n!==this._props[t]&&(this._props[t]=n,o&&this._instance&&this._update(),r&&(n===!0?this.setAttribute(ci(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(ci(t),n+""):n||this.removeAttribute(ci(t))))}_update(){ah(this._createVNode(),this.shadowRoot)}_createVNode(){const t=q(this._def,Ta({},this._props));return this._instance||(t.ce=n=>{this._instance=n,n.isCE=!0;const r=(s,l)=>{this.dispatchEvent(new CustomEvent(s,{detail:l}))};n.emit=(s,...l)=>{r(s,l),ci(s)!==s&&r(ci(s),l)};let o=this;for(;o=o&&(o.parentNode||o.host);)if(o instanceof fd){n.parent=o._instance,n.provides=o._instance.provides;break}}),t}_applyStyles(t){t&&t.forEach(n=>{const r=document.createElement("style");r.textContent=n,this.shadowRoot.appendChild(r)})}}function O4(e="$style"){{const t=Ko();if(!t)return hp;const n=t.type.__cssModules;if(!n)return hp;const r=n[e];return r||hp}}function Iw(e){const t=Ko();if(!t)return;const n=t.ut=(o=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(s=>lh(s,o))},r=()=>{const o=e(t.proxy);sh(t.subTree,o),n(o)};M_(r),gt(()=>{const o=new MutationObserver(r);o.observe(t.subTree.el.parentNode,{childList:!0}),Zt(()=>o.disconnect())})}function sh(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{sh(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)lh(e.el,t);else if(e.type===Fe)e.children.forEach(n=>sh(n,t));else if(e.type===Yi){let{el:n,anchor:r}=e;for(;n&&(lh(n,t),n!==r);)n=n.nextSibling}}function lh(e,t){if(e.nodeType===1){const n=e.style;for(const r in t)n.setProperty(`--${r}`,t[r])}}const si="transition",Cl="animation",Ei=(e,{slots:t})=>dt(um,kw(e),t);Ei.displayName="Transition";const Pw={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},A4=Ei.props=Ta({},um.props,Pw),Di=(e,t=[])=>{nr(e)?e.forEach(n=>n(...t)):e&&e(...t)},mb=e=>e?nr(e)?e.some(t=>t.length>1):e.length>1:!1;function kw(e){const t={};for(const z in e)z in Pw||(t[z]=e[z]);if(e.css===!1)return t;const{name:n="v",type:r,duration:o,enterFromClass:s=`${n}-enter-from`,enterActiveClass:l=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:c=s,appearActiveClass:f=l,appearToClass:p=a,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:v=`${n}-leave-active`,leaveToClass:y=`${n}-leave-to`}=e,_=I4(o),w=_&&_[0],I=_&&_[1],{onBeforeEnter:O,onEnter:S,onEnterCancelled:E,onLeave:T,onLeaveCancelled:$,onBeforeAppear:P=O,onAppear:k=S,onAppearCancelled:A=E}=t,H=(z,K,te)=>{ai(z,K?p:a),ai(z,K?f:l),te&&te()},D=(z,K)=>{z._isLeaving=!1,ai(z,h),ai(z,y),ai(z,v),K&&K()},F=z=>(K,te)=>{const we=z?k:S,be=()=>H(K,z,te);Di(we,[K,be]),vb(()=>{ai(K,z?c:s),No(K,z?p:a),mb(we)||gb(K,r,w,be)})};return Ta(t,{onBeforeEnter(z){Di(O,[z]),No(z,s),No(z,l)},onBeforeAppear(z){Di(P,[z]),No(z,c),No(z,f)},onEnter:F(!1),onAppear:F(!0),onLeave(z,K){z._isLeaving=!0;const te=()=>D(z,K);No(z,h),Lw(),No(z,v),vb(()=>{!z._isLeaving||(ai(z,h),No(z,y),mb(T)||gb(z,r,I,te))}),Di(T,[z,te])},onEnterCancelled(z){H(z,!1),Di(E,[z])},onAppearCancelled(z){H(z,!0),Di(A,[z])},onLeaveCancelled(z){D(z),Di($,[z])}})}function I4(e){if(e==null)return null;if(nh(e))return[yp(e.enter),yp(e.leave)];{const t=yp(e);return[t,t]}}function yp(e){return oh(e)}function No(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function ai(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function vb(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let P4=0;function gb(e,t,n,r){const o=e._endId=++P4,s=()=>{o===e._endId&&r()};if(n)return setTimeout(s,n);const{type:l,timeout:a,propCount:c}=Rw(e,t);if(!l)return r();const f=l+"end";let p=0;const h=()=>{e.removeEventListener(f,v),s()},v=y=>{y.target===e&&++p>=c&&h()};setTimeout(()=>{p<c&&h()},a+1),e.addEventListener(f,v)}function Rw(e,t){const n=window.getComputedStyle(e),r=_=>(n[_]||"").split(", "),o=r(`${si}Delay`),s=r(`${si}Duration`),l=yb(o,s),a=r(`${Cl}Delay`),c=r(`${Cl}Duration`),f=yb(a,c);let p=null,h=0,v=0;t===si?l>0&&(p=si,h=l,v=s.length):t===Cl?f>0&&(p=Cl,h=f,v=c.length):(h=Math.max(l,f),p=h>0?l>f?si:Cl:null,v=p?p===si?s.length:c.length:0);const y=p===si&&/\b(transform|all)(,|$)/.test(r(`${si}Property`).toString());return{type:p,timeout:h,propCount:v,hasTransform:y}}function yb(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>bb(n)+bb(e[r])))}function bb(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function Lw(){return document.body.offsetHeight}const Nw=new WeakMap,Mw=new WeakMap,Dw={name:"TransitionGroup",props:Ta({},A4,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Ko(),r=am();let o,s;return ad(()=>{if(!o.length)return;const l=e.moveClass||`${e.name||"v"}-move`;if(!D4(o[0].el,n.vnode.el,l))return;o.forEach(L4),o.forEach(N4);const a=o.filter(M4);Lw(),a.forEach(c=>{const f=c.el,p=f.style;No(f,l),p.transform=p.webkitTransform=p.transitionDuration="";const h=f._moveCb=v=>{v&&v.target!==f||(!v||/transform$/.test(v.propertyName))&&(f.removeEventListener("transitionend",h),f._moveCb=null,ai(f,l))};f.addEventListener("transitionend",h)})}),()=>{const l=Ue(e),a=kw(l);let c=l.tag||Fe;o=s,s=t.default?sd(t.default()):[];for(let f=0;f<s.length;f++){const p=s[f];p.key!=null&&rs(p,Vs(p,a,r,n))}if(o)for(let f=0;f<o.length;f++){const p=o[f];rs(p,Vs(p,a,r,n)),Nw.set(p,p.el.getBoundingClientRect())}return q(c,null,s)}}},k4=e=>delete e.mode;Dw.props;const R4=Dw;function L4(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function N4(e){Mw.set(e,e.el.getBoundingClientRect())}function M4(e){const t=Nw.get(e),n=Mw.get(e),r=t.left-n.left,o=t.top-n.top;if(r||o){const s=e.el.style;return s.transform=s.webkitTransform=`translate(${r}px,${o}px)`,s.transitionDuration="0s",e}}function D4(e,t,n){const r=e.cloneNode();e._vtc&&e._vtc.forEach(l=>{l.split(/\s+/).forEach(a=>a&&r.classList.remove(a))}),n.split(/\s+/).forEach(l=>l&&r.classList.add(l)),r.style.display="none";const o=t.nodeType===1?t:t.parentNode;o.appendChild(r);const{hasTransform:s}=Rw(r);return o.removeChild(r),s}const _i=e=>{const t=e.props["onUpdate:modelValue"]||!1;return nr(t)?n=>u4(t,n):t};function F4(e){e.target.composing=!0}function _b(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const wc={created(e,{modifiers:{lazy:t,trim:n,number:r}},o){e._assign=_i(o);const s=r||o.props&&o.props.type==="number";Do(e,t?"change":"input",l=>{if(l.target.composing)return;let a=e.value;n&&(a=a.trim()),s&&(a=rh(a)),e._assign(a)}),n&&Do(e,"change",()=>{e.value=e.value.trim()}),t||(Do(e,"compositionstart",F4),Do(e,"compositionend",_b),Do(e,"change",_b))},mounted(e,{value:t}){e.value=t==null?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:o}},s){if(e._assign=_i(s),e.composing||document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===t||(o||e.type==="number")&&rh(e.value)===t))return;const l=t==null?"":t;e.value!==l&&(e.value=l)}},gm={deep:!0,created(e,t,n){e._assign=_i(n),Do(e,"change",()=>{const r=e._modelValue,o=zs(e),s=e.checked,l=e._assign;if(nr(r)){const a=dd(r,o),c=a!==-1;if(s&&!c)l(r.concat(o));else if(!s&&c){const f=[...r];f.splice(a,1),l(f)}}else if(Oa(r)){const a=new Set(r);s?a.add(o):a.delete(o),l(a)}else l(Bw(e,s))})},mounted:wb,beforeUpdate(e,t,n){e._assign=_i(n),wb(e,t,n)}};function wb(e,{value:t,oldValue:n},r){e._modelValue=t,nr(t)?e.checked=dd(t,r.props.value)>-1:Oa(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=bi(t,Bw(e,!0)))}const ym={created(e,{value:t},n){e.checked=bi(t,n.props.value),e._assign=_i(n),Do(e,"change",()=>{e._assign(zs(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e._assign=_i(r),t!==n&&(e.checked=bi(t,r.props.value))}},Fw={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const o=Oa(t);Do(e,"change",()=>{const s=Array.prototype.filter.call(e.options,l=>l.selected).map(l=>n?rh(zs(l)):zs(l));e._assign(e.multiple?o?new Set(s):s:s[0])}),e._assign=_i(r)},mounted(e,{value:t}){Sb(e,t)},beforeUpdate(e,t,n){e._assign=_i(n)},updated(e,{value:t}){Sb(e,t)}};function Sb(e,t){const n=e.multiple;if(!(n&&!nr(t)&&!Oa(t))){for(let r=0,o=e.options.length;r<o;r++){const s=e.options[r],l=zs(s);if(n)nr(t)?s.selected=dd(t,l)>-1:s.selected=t.has(l);else if(bi(zs(s),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function zs(e){return"_value"in e?e._value:e.value}function Bw(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Uw={created(e,t,n){Wu(e,t,n,null,"created")},mounted(e,t,n){Wu(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){Wu(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){Wu(e,t,n,r,"updated")}};function jw(e,t){switch(e){case"SELECT":return Fw;case"TEXTAREA":return wc;default:switch(t){case"checkbox":return gm;case"radio":return ym;default:return wc}}}function Wu(e,t,n,r,o){const l=jw(e.tagName,n.props&&n.props.type)[o];l&&l(e,t,n,r)}function B4(){wc.getSSRProps=({value:e})=>({value:e}),ym.getSSRProps=({value:e},t)=>{if(t.props&&bi(t.props.value,e))return{checked:!0}},gm.getSSRProps=({value:e},t)=>{if(nr(e)){if(t.props&&dd(e,t.props.value)>-1)return{checked:!0}}else if(Oa(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},Uw.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const n=jw(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}const U4=["ctrl","shift","alt","meta"],j4={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&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>U4.some(n=>e[`${n}Key`]&&!t.includes(n))},Sc=(e,t)=>(n,...r)=>{for(let o=0;o<t.length;o++){const s=j4[t[o]];if(s&&s(n,t))return}return e(n,...r)},H4={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Hw=(e,t)=>n=>{if(!("key"in n))return;const r=ci(n.key);if(t.some(o=>o===r||H4[o]===r))return e(n)},bm={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Tl(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Tl(e,!0),r.enter(e)):r.leave(e,()=>{Tl(e,!1)}):Tl(e,t))},beforeUnmount(e,{value:t}){Tl(e,t)}};function Tl(e,t){e.style.display=t?e._vod:"none"}function V4(){bm.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const Vw=Ta({patchProp:x4},d4);let Kl,Eb=!1;function Ww(){return Kl||(Kl=ow(Vw))}function zw(){return Kl=Eb?Kl:iw(Vw),Eb=!0,Kl}const ah=(...e)=>{Ww().render(...e)},qw=(...e)=>{zw().hydrate(...e)},Kw=(...e)=>{const t=Ww().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=Gw(r);if(!o)return;const s=t._component;!Tw(s)&&!s.render&&!s.template&&(s.template=o.innerHTML),o.innerHTML="";const l=n(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),l},t},W4=(...e)=>{const t=zw().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=Gw(r);if(o)return n(o,!0,o instanceof SVGElement)},t};function Gw(e){return aa(e)?document.querySelector(e):e}let xb=!1;const z4=()=>{xb||(xb=!0,B4(),V4())};var q4=Object.freeze(Object.defineProperty({__proto__:null,Transition:Ei,TransitionGroup:R4,VueElement:fd,createApp:Kw,createSSRApp:W4,defineCustomElement:Aw,defineSSRCustomElement:C4,hydrate:qw,initDirectivesForSSR:z4,render:ah,useCssModule:O4,useCssVars:Iw,vModelCheckbox:gm,vModelDynamic:Uw,vModelRadio:ym,vModelSelect:Fw,vModelText:wc,vShow:bm,withKeys:Hw,withModifiers:Sc,EffectScope:Gh,ReactiveEffect:xa,customRef:Ak,effect:YP,effectScope:GP,getCurrentScope:d_,isProxy:Zh,isReactive:Xi,isReadonly:ns,isRef:dn,isShallow:na,markRaw:Qh,onScopeDispose:f_,proxyRefs:nm,reactive:Si,readonly:Yh,ref:_e,shallowReactive:$_,shallowReadonly:$k,shallowRef:nd,stop:ZP,toRaw:Ue,toRef:T_,toRefs:rm,triggerRef:Wp,unref:jn,camelize:eo,capitalize:Jc,normalizeClass:wt,normalizeProps:DP,normalizeStyle:as,toDisplayString:U,toHandlerKey:Hl,BaseTransition:um,Comment:Rn,Fragment:Fe,KeepAlive:oR,Static:Yi,Suspense:Gk,Teleport:lw,Text:os,assertNumber:Lk,callWithAsyncErrorHandling:mr,callWithErrorHandling:Uo,cloneVNode:Dr,compatUtils:YR,computed:ce,createBlock:bt,createCommentVNode:qe,createElementBlock:V,createElementVNode:g,createHydrationRenderer:iw,createPropsRestProxy:WR,createRenderer:ow,createSlots:uR,createStaticVNode:PR,createTextVNode:Ge,createVNode:q,defineAsyncComponent:nR,defineComponent:ve,defineEmits:BR,defineExpose:UR,defineProps:FR,get devtools(){return Rs},getCurrentInstance:Ko,getTransitionRawChildren:sd,guardReactiveProps:fw,h:dt,handleError:us,initCustomFormatter:qR,inject:kt,isMemoSame:xw,isRuntimeOnly:NR,isVNode:gi,mergeDefaults:VR,mergeProps:pw,nextTick:rn,onActivated:B_,onBeforeMount:H_,onBeforeUnmount:cs,onBeforeUpdate:V_,onDeactivated:U_,onErrorCaptured:K_,onMounted:gt,onRenderTracked:q_,onRenderTriggered:z_,onServerPrefetch:W_,onUnmounted:Zt,onUpdated:ad,openBlock:N,popScopeId:jk,provide:Yt,pushScopeId:Uk,queuePostFlushCb:im,registerRuntimeCompiler:gw,renderList:Mt,renderSlot:gr,resolveComponent:X,resolveDirective:aR,resolveDynamicComponent:lR,resolveFilter:JR,resolveTransitionHooks:Vs,setBlockTracking:Zp,setDevtoolsHook:k_,setTransitionHooks:rs,ssrContextKey:Sw,ssrUtils:XR,toHandlers:cR,transformVNodeArgs:AR,useAttrs:HR,useSSRContext:Ew,useSlots:_w,useTransitionState:am,version:$w,warn:Rk,watch:Ft,watchEffect:jt,watchPostEffect:M_,watchSyncEffect:Qk,withAsyncContext:zR,withCtx:ye,withDefaults:jR,withDirectives:G_,withMemo:KR,withScopeId:Hk},Symbol.toStringTag,{value:"Module"}));function oo(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o<r.length;o++)n[r[o]]=!0;return t?o=>!!n[o.toLowerCase()]:o=>!!n[o]}const K4=/;(?![^(]*\))/g,G4=/:([^]+)/,X4=/\/\*.*?\*\//gs;function J4(e){const t={};return e.replace(X4,"").split(K4).forEach(n=>{if(n){const r=n.split(G4);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}const Y4="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot",Z4="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",Q4="area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr",eL=oo(Y4),tL=oo(Z4),nL=oo(Q4),rL={},Ec=()=>{},bp=()=>!1,oL=/^on[^a-z]/,Xw=e=>oL.test(e),jo=Object.assign,qs=Array.isArray,mn=e=>typeof e=="string",_m=e=>typeof e=="symbol",iL=e=>e!==null&&typeof e=="object",$b=oo(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),sL=oo("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),pd=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},lL=/-(\w)/g,hd=pd(e=>e.replace(lL,(t,n)=>n?n.toUpperCase():"")),aL=/\B([A-Z])/g,uL=pd(e=>e.replace(aL,"-$1").toLowerCase()),wm=pd(e=>e.charAt(0).toUpperCase()+e.slice(1)),cL=pd(e=>e?`on${wm(e)}`:"");function Sm(e){throw e}function Jw(e){}function Wt(e,t,n,r){const o=e,s=new SyntaxError(String(o));return s.code=e,s.loc=t,s}const ua=Symbol(""),Gl=Symbol(""),Em=Symbol(""),xc=Symbol(""),Yw=Symbol(""),ss=Symbol(""),Zw=Symbol(""),Qw=Symbol(""),xm=Symbol(""),$m=Symbol(""),Aa=Symbol(""),Cm=Symbol(""),eS=Symbol(""),Tm=Symbol(""),$c=Symbol(""),Om=Symbol(""),Am=Symbol(""),Im=Symbol(""),Pm=Symbol(""),tS=Symbol(""),nS=Symbol(""),md=Symbol(""),Cc=Symbol(""),km=Symbol(""),Rm=Symbol(""),ca=Symbol(""),Ia=Symbol(""),Lm=Symbol(""),uh=Symbol(""),dL=Symbol(""),ch=Symbol(""),Tc=Symbol(""),fL=Symbol(""),pL=Symbol(""),Nm=Symbol(""),hL=Symbol(""),mL=Symbol(""),Mm=Symbol(""),rS=Symbol(""),Ks={[ua]:"Fragment",[Gl]:"Teleport",[Em]:"Suspense",[xc]:"KeepAlive",[Yw]:"BaseTransition",[ss]:"openBlock",[Zw]:"createBlock",[Qw]:"createElementBlock",[xm]:"createVNode",[$m]:"createElementVNode",[Aa]:"createCommentVNode",[Cm]:"createTextVNode",[eS]:"createStaticVNode",[Tm]:"resolveComponent",[$c]:"resolveDynamicComponent",[Om]:"resolveDirective",[Am]:"resolveFilter",[Im]:"withDirectives",[Pm]:"renderList",[tS]:"renderSlot",[nS]:"createSlots",[md]:"toDisplayString",[Cc]:"mergeProps",[km]:"normalizeClass",[Rm]:"normalizeStyle",[ca]:"normalizeProps",[Ia]:"guardReactiveProps",[Lm]:"toHandlers",[uh]:"camelize",[dL]:"capitalize",[ch]:"toHandlerKey",[Tc]:"setBlockTracking",[fL]:"pushScopeId",[pL]:"popScopeId",[Nm]:"withCtx",[hL]:"unref",[mL]:"isRef",[Mm]:"withMemo",[rS]:"isMemoSame"};function vL(e){Object.getOwnPropertySymbols(e).forEach(t=>{Ks[t]=e[t]})}const yr={source:"",start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0}};function gL(e,t=yr){return{type:0,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:t}}function da(e,t,n,r,o,s,l,a=!1,c=!1,f=!1,p=yr){return e&&(a?(e.helper(ss),e.helper(Js(e.inSSR,f))):e.helper(Xs(e.inSSR,f)),l&&e.helper(Im)),{type:13,tag:t,props:n,children:r,patchFlag:o,dynamicProps:s,directives:l,isBlock:a,disableTracking:c,isComponent:f,loc:p}}function Pa(e,t=yr){return{type:17,loc:t,elements:e}}function Ir(e,t=yr){return{type:15,loc:t,properties:e}}function Jt(e,t){return{type:16,loc:yr,key:mn(e)?ut(e,!0):e,value:t}}function ut(e,t=!1,n=yr,r=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:r}}function Jr(e,t=yr){return{type:8,loc:t,children:e}}function nn(e,t=[],n=yr){return{type:14,loc:n,callee:e,arguments:t}}function Gs(e,t=void 0,n=!1,r=!1,o=yr){return{type:18,params:e,returns:t,newline:n,isSlot:r,loc:o}}function dh(e,t,n,r=!0){return{type:19,test:e,consequent:t,alternate:n,newline:r,loc:yr}}function yL(e,t,n=!1){return{type:20,index:e,value:t,isVNode:n,loc:yr}}function bL(e){return{type:21,body:e,loc:yr}}const Yn=e=>e.type===4&&e.isStatic,Ls=(e,t)=>e===t||e===uL(t);function oS(e){if(Ls(e,"Teleport"))return Gl;if(Ls(e,"Suspense"))return Em;if(Ls(e,"KeepAlive"))return xc;if(Ls(e,"BaseTransition"))return Yw}const _L=/^\d|[^\$\w]/,Dm=e=>!_L.test(e),wL=/[A-Za-z_$\xA0-\uFFFF]/,SL=/[\.\?\w$\xA0-\uFFFF]/,EL=/\s+[.[]\s*|\s*[.[]\s+/g,xL=e=>{e=e.trim().replace(EL,l=>l.trim());let t=0,n=[],r=0,o=0,s=null;for(let l=0;l<e.length;l++){const a=e.charAt(l);switch(t){case 0:if(a==="[")n.push(t),t=1,r++;else if(a==="(")n.push(t),t=2,o++;else if(!(l===0?wL:SL).test(a))return!1;break;case 1:a==="'"||a==='"'||a==="`"?(n.push(t),t=3,s=a):a==="["?r++:a==="]"&&(--r||(t=n.pop()));break;case 2:if(a==="'"||a==='"'||a==="`")n.push(t),t=3,s=a;else if(a==="(")o++;else if(a===")"){if(l===e.length-1)return!1;--o||(t=n.pop())}break;case 3:a===s&&(t=n.pop(),s=null);break}}return!r&&!o},iS=xL;function sS(e,t,n){const o={source:e.source.slice(t,t+n),start:Oc(e.start,e.source,t),end:e.end};return n!=null&&(o.end=Oc(e.start,e.source,t+n)),o}function Oc(e,t,n=t.length){return Ac(jo({},e),t,n)}function Ac(e,t,n=t.length){let r=0,o=-1;for(let s=0;s<n;s++)t.charCodeAt(s)===10&&(r++,o=s);return e.offset+=n,e.line+=r,e.column=o===-1?e.column+n:n-o,e}function Ar(e,t,n=!1){for(let r=0;r<e.props.length;r++){const o=e.props[r];if(o.type===7&&(n||o.exp)&&(mn(t)?o.name===t:t.test(o.name)))return o}}function vd(e,t,n=!1,r=!1){for(let o=0;o<e.props.length;o++){const s=e.props[o];if(s.type===6){if(n)continue;if(s.name===t&&(s.value||r))return s}else if(s.name==="bind"&&(s.exp||r)&&qi(s.arg,t))return s}}function qi(e,t){return!!(e&&Yn(e)&&e.content===t)}function $L(e){return e.props.some(t=>t.type===7&&t.name==="bind"&&(!t.arg||t.arg.type!==4||!t.arg.isStatic))}function _p(e){return e.type===5||e.type===2}function CL(e){return e.type===7&&e.name==="slot"}function Ic(e){return e.type===1&&e.tagType===3}function Pc(e){return e.type===1&&e.tagType===2}function Xs(e,t){return e||t?xm:$m}function Js(e,t){return e||t?Zw:Qw}const TL=new Set([ca,Ia]);function lS(e,t=[]){if(e&&!mn(e)&&e.type===14){const n=e.callee;if(!mn(n)&&TL.has(n))return lS(e.arguments[0],t.concat(e))}return[e,t]}function kc(e,t,n){let r,o=e.type===13?e.props:e.arguments[2],s=[],l;if(o&&!mn(o)&&o.type===14){const a=lS(o);o=a[0],s=a[1],l=s[s.length-1]}if(o==null||mn(o))r=Ir([t]);else if(o.type===14){const a=o.arguments[0];!mn(a)&&a.type===15?Cb(t,a)||a.properties.unshift(t):o.callee===Lm?r=nn(n.helper(Cc),[Ir([t]),o]):o.arguments.unshift(Ir([t])),!r&&(r=o)}else o.type===15?(Cb(t,o)||o.properties.unshift(t),r=o):(r=nn(n.helper(Cc),[Ir([t]),o]),l&&l.callee===Ia&&(l=s[s.length-2]));e.type===13?l?l.arguments[0]=r:e.props=r:l?l.arguments[0]=r:e.arguments[2]=r}function Cb(e,t){let n=!1;if(e.key.type===4){const r=e.key.content;n=t.properties.some(o=>o.key.type===4&&o.key.content===r)}return n}function fa(e,t){return`_${t}_${e.replace(/[^\w]/g,(n,r)=>n==="-"?"_":e.charCodeAt(r).toString())}`}function OL(e){return e.type===14&&e.callee===Mm?e.arguments[1].returns:e}function Fm(e,{helper:t,removeHelper:n,inSSR:r}){e.isBlock||(e.isBlock=!0,n(Xs(r,e.isComponent)),t(ss),t(Js(r,e.isComponent)))}function Tb(e,t){const n=t.options?t.options.compatConfig:t.compatConfig,r=n&&n[e];return e==="MODE"?r||3:r}function Zi(e,t){const n=Tb("MODE",t),r=Tb(e,t);return n===3?r===!0:r!==!1}function pa(e,t,n,...r){return Zi(e,t)}const AL=/&(gt|lt|amp|apos|quot);/g,IL={gt:">",lt:"<",amp:"&",apos:"'",quot:'"'},Ob={delimiters:["{{","}}"],getNamespace:()=>0,getTextMode:()=>0,isVoidTag:bp,isPreTag:bp,isCustomElement:bp,decodeEntities:e=>e.replace(AL,(t,n)=>IL[n]),onError:Sm,onWarn:Jw,comments:!1};function PL(e,t={}){const n=kL(e,t),r=vr(n);return gL(Bm(n,0,[]),Fr(n,r))}function kL(e,t){const n=jo({},Ob);let r;for(r in t)n[r]=t[r]===void 0?Ob[r]:t[r];return{options:n,column:1,line:1,offset:0,originalSource:e,source:e,inPre:!1,inVPre:!1,onWarn:n.onWarn}}function Bm(e,t,n){const r=gd(n),o=r?r.ns:0,s=[];for(;!jL(e,t,n);){const a=e.source;let c;if(t===0||t===1){if(!e.inVPre&&kn(a,e.options.delimiters[0]))c=BL(e,t);else if(t===0&&a[0]==="<")if(a.length===1)At(e,5,1);else if(a[1]==="!")kn(a,"<!--")?c=LL(e):kn(a,"<!DOCTYPE")?c=Ol(e):kn(a,"<![CDATA[")?o!==0?c=RL(e,n):(At(e,1),c=Ol(e)):(At(e,11),c=Ol(e));else if(a[1]==="/")if(a.length===2)At(e,5,2);else if(a[2]===">"){At(e,14,2),fn(e,3);continue}else if(/[a-z]/i.test(a[2])){At(e,23),fh(e,1,r);continue}else At(e,12,2),c=Ol(e);else/[a-z]/i.test(a[1])?(c=NL(e,n),Zi("COMPILER_NATIVE_TEMPLATE",e)&&c&&c.tag==="template"&&!c.props.some(f=>f.type===7&&aS(f.name))&&(c=c.children)):a[1]==="?"?(At(e,21,1),c=Ol(e)):At(e,12,1)}if(c||(c=UL(e,t)),qs(c))for(let f=0;f<c.length;f++)Ab(s,c[f]);else Ab(s,c)}let l=!1;if(t!==2&&t!==1){const a=e.options.whitespace!=="preserve";for(let c=0;c<s.length;c++){const f=s[c];if(f.type===2)if(e.inPre)f.content=f.content.replace(/\r\n/g,` 2 2 `);else if(/[^\t\r\n\f ]/.test(f.content))a&&(f.content=f.content.replace(/[\t\r\n\f ]+/g," "));else{const p=s[c-1],h=s[c+1];!p||!h||a&&(p.type===3&&h.type===3||p.type===3&&h.type===1||p.type===1&&h.type===3||p.type===1&&h.type===1&&/[\r\n]/.test(f.content))?(l=!0,s[c]=null):f.content=" "}else f.type===3&&!e.options.comments&&(l=!0,s[c]=null)}if(e.inPre&&r&&e.options.isPreTag(r.tag)){const c=s[0];c&&c.type===2&&(c.content=c.content.replace(/^\r?\n/,""))}}return l?s.filter(Boolean):s}function Ab(e,t){if(t.type===2){const n=gd(e);if(n&&n.type===2&&n.loc.end.offset===t.loc.start.offset){n.content+=t.content,n.loc.end=t.loc.end,n.loc.source+=t.loc.source;return}}e.push(t)}function RL(e,t){fn(e,9);const n=Bm(e,3,t);return e.source.length===0?At(e,6):fn(e,3),n}function LL(e){const t=vr(e);let n;const r=/--(\!)?>/.exec(e.source);if(!r)n=e.source.slice(4),fn(e,e.source.length),At(e,7);else{r.index<=3&&At(e,0),r[1]&&At(e,10),n=e.source.slice(4,r.index);const o=e.source.slice(0,r.index);let s=1,l=0;for(;(l=o.indexOf("<!--",s))!==-1;)fn(e,l-s+1),l+4<o.length&&At(e,16),s=l+1;fn(e,r.index+r[0].length-s+1)}return{type:3,content:n,loc:Fr(e,t)}}function Ol(e){const t=vr(e),n=e.source[1]==="?"?1:2;let r;const o=e.source.indexOf(">");return o===-1?(r=e.source.slice(n),fn(e,e.source.length)):(r=e.source.slice(n,o),fn(e,o+1)),{type:3,content:r,loc:Fr(e,t)}}function NL(e,t){const n=e.inPre,r=e.inVPre,o=gd(t),s=fh(e,0,o),l=e.inPre&&!n,a=e.inVPre&&!r;if(s.isSelfClosing||e.options.isVoidTag(s.tag))return l&&(e.inPre=!1),a&&(e.inVPre=!1),s;t.push(s);const c=e.options.getTextMode(s,o),f=Bm(e,c,t);t.pop();{const p=s.props.find(h=>h.type===6&&h.name==="inline-template");if(p&&pa("COMPILER_INLINE_TEMPLATE",e,p.loc)){const h=Fr(e,s.loc.end);p.value={type:2,content:h.source,loc:h}}}if(s.children=f,ph(e.source,s.tag))fh(e,1,o);else if(At(e,24,0,s.loc.start),e.source.length===0&&s.tag.toLowerCase()==="script"){const p=f[0];p&&kn(p.loc.source,"<!--")&&At(e,8)}return s.loc=Fr(e,s.loc.start),l&&(e.inPre=!1),a&&(e.inVPre=!1),s}const aS=oo("if,else,else-if,for,slot");function fh(e,t,n){const r=vr(e),o=/^<\/?([a-z][^\t\r\n\f />]*)/i.exec(e.source),s=o[1],l=e.options.getNamespace(s,n);fn(e,o[0].length),ha(e);const a=vr(e),c=e.source;e.options.isPreTag(s)&&(e.inPre=!0);let f=Ib(e,t);t===0&&!e.inVPre&&f.some(v=>v.type===7&&v.name==="pre")&&(e.inVPre=!0,jo(e,a),e.source=c,f=Ib(e,t).filter(v=>v.name!=="v-pre"));let p=!1;if(e.source.length===0?At(e,9):(p=kn(e.source,"/>"),t===1&&p&&At(e,4),fn(e,p?2:1)),t===1)return;let h=0;return e.inVPre||(s==="slot"?h=2:s==="template"?f.some(v=>v.type===7&&aS(v.name))&&(h=3):ML(s,f,e)&&(h=1)),{type:1,ns:l,tag:s,tagType:h,props:f,isSelfClosing:p,children:[],loc:Fr(e,r),codegenNode:void 0}}function ML(e,t,n){const r=n.options;if(r.isCustomElement(e))return!1;if(e==="component"||/^[A-Z]/.test(e)||oS(e)||r.isBuiltInComponent&&r.isBuiltInComponent(e)||r.isNativeTag&&!r.isNativeTag(e))return!0;for(let o=0;o<t.length;o++){const s=t[o];if(s.type===6){if(s.name==="is"&&s.value){if(s.value.content.startsWith("vue:"))return!0;if(pa("COMPILER_IS_ON_ELEMENT",n,s.loc))return!0}}else{if(s.name==="is")return!0;if(s.name==="bind"&&qi(s.arg,"is")&&!0&&pa("COMPILER_IS_ON_ELEMENT",n,s.loc))return!0}}}function Ib(e,t){const n=[],r=new Set;for(;e.source.length>0&&!kn(e.source,">")&&!kn(e.source,"/>");){if(kn(e.source,"/")){At(e,22),fn(e,1),ha(e);continue}t===1&&At(e,3);const o=DL(e,r);o.type===6&&o.value&&o.name==="class"&&(o.value.content=o.value.content.replace(/\s+/g," ").trim()),t===0&&n.push(o),/^[^\t\r\n\f />]/.test(e.source)&&At(e,15),ha(e)}return n}function DL(e,t){const n=vr(e),o=/^[^\t\r\n\f />][^\t\r\n\f />=]*/.exec(e.source)[0];t.has(o)&&At(e,2),t.add(o),o[0]==="="&&At(e,19);{const a=/["'<]/g;let c;for(;c=a.exec(o);)At(e,17,c.index)}fn(e,o.length);let s;/^[\t\r\n\f ]*=/.test(e.source)&&(ha(e),fn(e,1),ha(e),s=FL(e),s||At(e,13));const l=Fr(e,n);if(!e.inVPre&&/^(v-[A-Za-z0-9-]|:|\.|@|#)/.test(o)){const a=/(?:^v-([a-z0-9-]+))?(?:(?::|^\.|^@|^#)(\[[^\]]+\]|[^\.]+))?(.+)?$/i.exec(o);let c=kn(o,"."),f=a[1]||(c||kn(o,":")?"bind":kn(o,"@")?"on":"slot"),p;if(a[2]){const v=f==="slot",y=o.lastIndexOf(a[2]),_=Fr(e,Pb(e,n,y),Pb(e,n,y+a[2].length+(v&&a[3]||"").length));let w=a[2],I=!0;w.startsWith("[")?(I=!1,w.endsWith("]")?w=w.slice(1,w.length-1):(At(e,27),w=w.slice(1))):v&&(w+=a[3]||""),p={type:4,content:w,isStatic:I,constType:I?3:0,loc:_}}if(s&&s.isQuoted){const v=s.loc;v.start.offset++,v.start.column++,v.end=Oc(v.start,s.content),v.source=v.source.slice(1,-1)}const h=a[3]?a[3].slice(1).split("."):[];return c&&h.push("prop"),f==="bind"&&p&&h.includes("sync")&&pa("COMPILER_V_BIND_SYNC",e,l,p.loc.source)&&(f="model",h.splice(h.indexOf("sync"),1)),{type:7,name:f,exp:s&&{type:4,content:s.content,isStatic:!1,constType:0,loc:s.loc},arg:p,modifiers:h,loc:l}}return!e.inVPre&&kn(o,"v-")&&At(e,26),{type:6,name:o,value:s&&{type:2,content:s.content,loc:s.loc},loc:l}}function FL(e){const t=vr(e);let n;const r=e.source[0],o=r==='"'||r==="'";if(o){fn(e,1);const s=e.source.indexOf(r);s===-1?n=Xl(e,e.source.length,4):(n=Xl(e,s,4),fn(e,1))}else{const s=/^[^\t\r\n\f >]+/.exec(e.source);if(!s)return;const l=/["'<=`]/g;let a;for(;a=l.exec(s[0]);)At(e,18,a.index);n=Xl(e,s[0].length,4)}return{content:n,isQuoted:o,loc:Fr(e,t)}}function BL(e,t){const[n,r]=e.options.delimiters,o=e.source.indexOf(r,n.length);if(o===-1){At(e,25);return}const s=vr(e);fn(e,n.length);const l=vr(e),a=vr(e),c=o-n.length,f=e.source.slice(0,c),p=Xl(e,c,t),h=p.trim(),v=p.indexOf(h);v>0&&Ac(l,f,v);const y=c-(p.length-h.length-v);return Ac(a,f,y),fn(e,r.length),{type:5,content:{type:4,isStatic:!1,constType:0,content:h,loc:Fr(e,l,a)},loc:Fr(e,s)}}function UL(e,t){const n=t===3?["]]>"]:["<",e.options.delimiters[0]];let r=e.source.length;for(let l=0;l<n.length;l++){const a=e.source.indexOf(n[l],1);a!==-1&&r>a&&(r=a)}const o=vr(e),s=Xl(e,r,t);return{type:2,content:s,loc:Fr(e,o)}}function Xl(e,t,n){const r=e.source.slice(0,t);return fn(e,t),n===2||n===3||!r.includes("&")?r:e.options.decodeEntities(r,n===4)}function vr(e){const{column:t,line:n,offset:r}=e;return{column:t,line:n,offset:r}}function Fr(e,t,n){return n=n||vr(e),{start:t,end:n,source:e.originalSource.slice(t.offset,n.offset)}}function gd(e){return e[e.length-1]}function kn(e,t){return e.startsWith(t)}function fn(e,t){const{source:n}=e;Ac(e,n,t),e.source=n.slice(t)}function ha(e){const t=/^[\t\r\n\f ]+/.exec(e.source);t&&fn(e,t[0].length)}function Pb(e,t,n){return Oc(t,e.originalSource.slice(t.offset,n),n)}function At(e,t,n,r=vr(e)){n&&(r.offset+=n,r.column+=n),e.options.onError(Wt(t,{start:r,end:r,source:""}))}function jL(e,t,n){const r=e.source;switch(t){case 0:if(kn(r,"</")){for(let o=n.length-1;o>=0;--o)if(ph(r,n[o].tag))return!0}break;case 1:case 2:{const o=gd(n);if(o&&ph(r,o.tag))return!0;break}case 3:if(kn(r,"]]>"))return!0;break}return!r}function ph(e,t){return kn(e,"</")&&e.slice(2,2+t.length).toLowerCase()===t.toLowerCase()&&/[\t\r\n\f />]/.test(e[2+t.length]||">")}function HL(e,t){rc(e,t,uS(e,e.children[0]))}function uS(e,t){const{children:n}=e;return n.length===1&&t.type===1&&!Pc(t)}function rc(e,t,n=!1){const{children:r}=e,o=r.length;let s=0;for(let l=0;l<r.length;l++){const a=r[l];if(a.type===1&&a.tagType===0){const c=n?0:Pr(a,t);if(c>0){if(c>=2){a.codegenNode.patchFlag=-1+"",a.codegenNode=t.hoist(a.codegenNode),s++;continue}}else{const f=a.codegenNode;if(f.type===13){const p=pS(f);if((!p||p===512||p===1)&&dS(a,t)>=2){const h=fS(a);h&&(f.props=t.hoist(h))}f.dynamicProps&&(f.dynamicProps=t.hoist(f.dynamicProps))}}}if(a.type===1){const c=a.tagType===1;c&&t.scopes.vSlot++,rc(a,t),c&&t.scopes.vSlot--}else if(a.type===11)rc(a,t,a.children.length===1);else if(a.type===9)for(let c=0;c<a.branches.length;c++)rc(a.branches[c],t,a.branches[c].children.length===1)}s&&t.transformHoist&&t.transformHoist(r,t,e),s&&s===o&&e.type===1&&e.tagType===0&&e.codegenNode&&e.codegenNode.type===13&&qs(e.codegenNode.children)&&(e.codegenNode.children=t.hoist(Pa(e.codegenNode.children)))}function Pr(e,t){const{constantCache:n}=t;switch(e.type){case 1:if(e.tagType!==0)return 0;const r=n.get(e);if(r!==void 0)return r;const o=e.codegenNode;if(o.type!==13||o.isBlock&&e.tag!=="svg"&&e.tag!=="foreignObject")return 0;if(pS(o))return n.set(e,0),0;{let a=3;const c=dS(e,t);if(c===0)return n.set(e,0),0;c<a&&(a=c);for(let f=0;f<e.children.length;f++){const p=Pr(e.children[f],t);if(p===0)return n.set(e,0),0;p<a&&(a=p)}if(a>1)for(let f=0;f<e.props.length;f++){const p=e.props[f];if(p.type===7&&p.name==="bind"&&p.exp){const h=Pr(p.exp,t);if(h===0)return n.set(e,0),0;h<a&&(a=h)}}if(o.isBlock){for(let f=0;f<e.props.length;f++)if(e.props[f].type===7)return n.set(e,0),0;t.removeHelper(ss),t.removeHelper(Js(t.inSSR,o.isComponent)),o.isBlock=!1,t.helper(Xs(t.inSSR,o.isComponent))}return n.set(e,a),a}case 2:case 3:return 3;case 9:case 11:case 10:return 0;case 5:case 12:return Pr(e.content,t);case 4:return e.constType;case 8:let l=3;for(let a=0;a<e.children.length;a++){const c=e.children[a];if(mn(c)||_m(c))continue;const f=Pr(c,t);if(f===0)return 0;f<l&&(l=f)}return l;default:return 0}}const VL=new Set([km,Rm,ca,Ia]);function cS(e,t){if(e.type===14&&!mn(e.callee)&&VL.has(e.callee)){const n=e.arguments[0];if(n.type===4)return Pr(n,t);if(n.type===14)return cS(n,t)}return 0}function dS(e,t){let n=3;const r=fS(e);if(r&&r.type===15){const{properties:o}=r;for(let s=0;s<o.length;s++){const{key:l,value:a}=o[s],c=Pr(l,t);if(c===0)return c;c<n&&(n=c);let f;if(a.type===4?f=Pr(a,t):a.type===14?f=cS(a,t):f=0,f===0)return f;f<n&&(n=f)}}return n}function fS(e){const t=e.codegenNode;if(t.type===13)return t.props}function pS(e){const t=e.patchFlag;return t?parseInt(t,10):void 0}function WL(e,{filename:t="",prefixIdentifiers:n=!1,hoistStatic:r=!1,cacheHandlers:o=!1,nodeTransforms:s=[],directiveTransforms:l={},transformHoist:a=null,isBuiltInComponent:c=Ec,isCustomElement:f=Ec,expressionPlugins:p=[],scopeId:h=null,slotted:v=!0,ssr:y=!1,inSSR:_=!1,ssrCssVars:w="",bindingMetadata:I=rL,inline:O=!1,isTS:S=!1,onError:E=Sm,onWarn:T=Jw,compatConfig:$}){const P=t.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),k={selfName:P&&wm(hd(P[1])),prefixIdentifiers:n,hoistStatic:r,cacheHandlers:o,nodeTransforms:s,directiveTransforms:l,transformHoist:a,isBuiltInComponent:c,isCustomElement:f,expressionPlugins:p,scopeId:h,slotted:v,ssr:y,inSSR:_,ssrCssVars:w,bindingMetadata:I,inline:O,isTS:S,onError:E,onWarn:T,compatConfig:$,root:e,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],constantCache:new Map,temps:0,cached:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,currentNode:e,childIndex:0,inVOnce:!1,helper(A){const H=k.helpers.get(A)||0;return k.helpers.set(A,H+1),A},removeHelper(A){const H=k.helpers.get(A);if(H){const D=H-1;D?k.helpers.set(A,D):k.helpers.delete(A)}},helperString(A){return`_${Ks[k.helper(A)]}`},replaceNode(A){k.parent.children[k.childIndex]=k.currentNode=A},removeNode(A){const H=k.parent.children,D=A?H.indexOf(A):k.currentNode?k.childIndex:-1;!A||A===k.currentNode?(k.currentNode=null,k.onNodeRemoved()):k.childIndex>D&&(k.childIndex--,k.onNodeRemoved()),k.parent.children.splice(D,1)},onNodeRemoved:()=>{},addIdentifiers(A){},removeIdentifiers(A){},hoist(A){mn(A)&&(A=ut(A)),k.hoists.push(A);const H=ut(`_hoisted_${k.hoists.length}`,!1,A.loc,2);return H.hoisted=A,H},cache(A,H=!1){return yL(k.cached++,A,H)}};return k.filters=new Set,k}function zL(e,t){const n=WL(e,t);yd(e,n),t.hoistStatic&&HL(e,n),t.ssr||qL(e,n),e.helpers=new Set([...n.helpers.keys()]),e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached,e.filters=[...n.filters]}function qL(e,t){const{helper:n}=t,{children:r}=e;if(r.length===1){const o=r[0];if(uS(e,o)&&o.codegenNode){const s=o.codegenNode;s.type===13&&Fm(s,t),e.codegenNode=s}else e.codegenNode=o}else if(r.length>1){let o=64;e.codegenNode=da(t,n(ua),void 0,e.children,o+"",void 0,void 0,!0,void 0,!1)}}function KL(e,t){let n=0;const r=()=>{n--};for(;n<e.children.length;n++){const o=e.children[n];mn(o)||(t.parent=e,t.childIndex=n,t.onNodeRemoved=r,yd(o,t))}}function yd(e,t){t.currentNode=e;const{nodeTransforms:n}=t,r=[];for(let s=0;s<n.length;s++){const l=n[s](e,t);if(l&&(qs(l)?r.push(...l):r.push(l)),t.currentNode)e=t.currentNode;else return}switch(e.type){case 3:t.ssr||t.helper(Aa);break;case 5:t.ssr||t.helper(md);break;case 9:for(let s=0;s<e.branches.length;s++)yd(e.branches[s],t);break;case 10:case 11:case 1:case 0:KL(e,t);break}t.currentNode=e;let o=r.length;for(;o--;)r[o]()}function hS(e,t){const n=mn(e)?r=>r===e:r=>e.test(r);return(r,o)=>{if(r.type===1){const{props:s}=r;if(r.tagType===3&&s.some(CL))return;const l=[];for(let a=0;a<s.length;a++){const c=s[a];if(c.type===7&&n(c.name)){s.splice(a,1),a--;const f=t(r,c,o);f&&l.push(f)}}return l}}}const bd="/*#__PURE__*/",mS=e=>`${Ks[e]}: _${Ks[e]}`;function kb(e,{mode:t="function",prefixIdentifiers:n=t==="module",sourceMap:r=!1,filename:o="template.vue.html",scopeId:s=null,optimizeImports:l=!1,runtimeGlobalName:a="Vue",runtimeModuleName:c="vue",ssrRuntimeModuleName:f="vue/server-renderer",ssr:p=!1,isTS:h=!1,inSSR:v=!1}){const y={mode:t,prefixIdentifiers:n,sourceMap:r,filename:o,scopeId:s,optimizeImports:l,runtimeGlobalName:a,runtimeModuleName:c,ssrRuntimeModuleName:f,ssr:p,isTS:h,inSSR:v,source:e.loc.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(w){return`_${Ks[w]}`},push(w,I){y.code+=w},indent(){_(++y.indentLevel)},deindent(w=!1){w?--y.indentLevel:_(--y.indentLevel)},newline(){_(y.indentLevel)}};function _(w){y.push(` 3 3 `+" ".repeat(w))}return y}function GL(e,t={}){const n=kb(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:r,push:o,prefixIdentifiers:s,indent:l,deindent:a,newline:c,scopeId:f,ssr:p}=n,h=Array.from(e.helpers),v=h.length>0,y=!s&&r!=="module",_=!1,w=_?kb(e,t):n;XL(e,w);const I=p?"ssrRender":"render",S=(p?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ");if(o(`function ${I}(${S}) {`),l(),y&&(o("with (_ctx) {"),l(),v&&(o(`const { ${h.map(mS).join(", ")} } = _Vue`),o(` … … 44 44 `:`; 45 45 `)+de+`return __p 46 }`;var st=Fy(function(){return Et(C,Ne+"return "+de).apply(n,R)});if(st.source=de,Zf(st))throw st;return st}function DI(i){return Ct(i).toLowerCase()}function FI(i){return Ct(i).toUpperCase()}function BI(i,u,d){if(i=Ct(i),i&&(d||u===n))return Kg(i);if(!i||!(u=lr(u)))return i;var m=Hr(i),b=Hr(u),C=Gg(m,b),R=Xg(m,b)+1;return ni(m,C,R).join("")}function UI(i,u,d){if(i=Ct(i),i&&(d||u===n))return i.slice(0,Yg(i)+1);if(!i||!(u=lr(u)))return i;var m=Hr(i),b=Xg(m,Hr(u))+1;return ni(m,0,b).join("")}function jI(i,u,d){if(i=Ct(i),i&&(d||u===n))return i.replace(Yd,"");if(!i||!(u=lr(u)))return i;var m=Hr(i),b=Gg(m,Hr(u));return ni(m,b).join("")}function HI(i,u){var d=D,m=F;if(Kt(u)){var b="separator"in u?u.separator:b;d="length"in u?ot(u.length):d,m="omission"in u?lr(u.omission):m}i=Ct(i);var C=i.length;if(_s(i)){var R=Hr(i);C=R.length}if(d>=C)return i;var M=d-ws(m);if(M<1)return m;var W=R?ni(R,0,M).join(""):i.slice(0,M);if(b===n)return W+m;if(R&&(M+=W.length-M),Qf(b)){if(i.slice(M).search(b)){var re,oe=W;for(b.global||(b=mf(b.source,Ct(mg.exec(b))+"g")),b.lastIndex=0;re=b.exec(oe);)var de=re.index;W=W.slice(0,de===n?M:de)}}else if(i.indexOf(lr(b),M)!=M){var Ce=W.lastIndexOf(b);Ce>-1&&(W=W.slice(0,Ce))}return W+m}function VI(i){return i=Ct(i),i&&eC.test(i)?i.replace(fg,yT):i}var WI=Os(function(i,u,d){return i+(d?" ":"")+u.toUpperCase()}),np=B0("toUpperCase");function Dy(i,u,d){return i=Ct(i),u=d?n:u,u===n?pT(i)?wT(i):oT(i):i.match(u)||[]}var Fy=at(function(i,u){try{return ir(i,n,u)}catch(d){return Zf(d)?d:new Ze(d)}}),zI=Io(function(i,u){return wr(u,function(d){d=po(d),Oo(i,d,Jf(i[d],i))}),i});function qI(i){var u=i==null?0:i.length,d=Ve();return i=u?Vt(i,function(m){if(typeof m[1]!="function")throw new Sr(l);return[d(m[0]),m[1]]}):[],at(function(m){for(var b=-1;++b<u;){var C=i[b];if(ir(C[0],this,m))return ir(C[1],this,m)}})}function KI(i){return yO(xr(i,h))}function rp(i){return function(){return i}}function GI(i,u){return i==null||i!==i?u:i}var XI=j0(),JI=j0(!0);function Gn(i){return i}function op(i){return g0(typeof i=="function"?i:xr(i,h))}function YI(i){return b0(xr(i,h))}function ZI(i,u){return _0(i,xr(u,h))}var QI=at(function(i,u){return function(d){return bl(d,i,u)}}),eP=at(function(i,u){return function(d){return bl(i,d,u)}});function ip(i,u,d){var m=pn(u),b=hu(u,m);d==null&&!(Kt(u)&&(b.length||!m.length))&&(d=u,u=i,i=this,b=hu(u,pn(u)));var C=!(Kt(d)&&"chain"in d)||!!d.chain,R=ko(i);return wr(b,function(M){var W=u[M];i[M]=W,R&&(i.prototype[M]=function(){var re=this.__chain__;if(C||re){var oe=i(this.__wrapped__),de=oe.__actions__=zn(this.__actions__);return de.push({func:W,args:arguments,thisArg:i}),oe.__chain__=re,oe}return W.apply(i,Jo([this.value()],arguments))})}),i}function tP(){return yn._===this&&(yn._=TT),this}function sp(){}function nP(i){return i=ot(i),at(function(u){return w0(u,i)})}var rP=Df(Vt),oP=Df(Hg),iP=Df(af);function By(i){return Wf(i)?uf(po(i)):NO(i)}function sP(i){return function(u){return i==null?n:ki(i,u)}}var lP=V0(),aP=V0(!0);function lp(){return[]}function ap(){return!1}function uP(){return{}}function cP(){return""}function dP(){return!0}function fP(i,u){if(i=ot(i),i<1||i>Ae)return[];var d=Le,m=Cn(i,Le);u=Ve(u),i-=Le;for(var b=ff(m,u);++d<i;)u(d);return b}function pP(i){return Qe(i)?Vt(i,po):ar(i)?[i]:zn(iy(Ct(i)))}function hP(i){var u=++$T;return Ct(i)+u}var mP=_u(function(i,u){return i+u},0),vP=Ff("ceil"),gP=_u(function(i,u){return i/u},1),yP=Ff("floor");function bP(i){return i&&i.length?pu(i,Gn,Ef):n}function _P(i,u){return i&&i.length?pu(i,Ve(u,2),Ef):n}function wP(i){return zg(i,Gn)}function SP(i,u){return zg(i,Ve(u,2))}function EP(i){return i&&i.length?pu(i,Gn,Tf):n}function xP(i,u){return i&&i.length?pu(i,Ve(u,2),Tf):n}var $P=_u(function(i,u){return i*u},1),CP=Ff("round"),TP=_u(function(i,u){return i-u},0);function OP(i){return i&&i.length?df(i,Gn):0}function AP(i,u){return i&&i.length?df(i,Ve(u,2)):0}return x.after=YA,x.ary=vy,x.assign=F3,x.assignIn=Iy,x.assignInWith=Ru,x.assignWith=B3,x.at=U3,x.before=gy,x.bind=Jf,x.bindAll=zI,x.bindKey=yy,x.castArray=u3,x.chain=py,x.chunk=y5,x.compact=b5,x.concat=_5,x.cond=qI,x.conforms=KI,x.constant=rp,x.countBy=OA,x.create=j3,x.curry=by,x.curryRight=_y,x.debounce=wy,x.defaults=H3,x.defaultsDeep=V3,x.defer=ZA,x.delay=QA,x.difference=w5,x.differenceBy=S5,x.differenceWith=E5,x.drop=x5,x.dropRight=$5,x.dropRightWhile=C5,x.dropWhile=T5,x.fill=O5,x.filter=IA,x.flatMap=RA,x.flatMapDeep=LA,x.flatMapDepth=NA,x.flatten=uy,x.flattenDeep=A5,x.flattenDepth=I5,x.flip=e3,x.flow=XI,x.flowRight=JI,x.fromPairs=P5,x.functions=J3,x.functionsIn=Y3,x.groupBy=MA,x.initial=R5,x.intersection=L5,x.intersectionBy=N5,x.intersectionWith=M5,x.invert=Q3,x.invertBy=eI,x.invokeMap=FA,x.iteratee=op,x.keyBy=BA,x.keys=pn,x.keysIn=Kn,x.map=Tu,x.mapKeys=nI,x.mapValues=rI,x.matches=YI,x.matchesProperty=ZI,x.memoize=Au,x.merge=oI,x.mergeWith=Py,x.method=QI,x.methodOf=eP,x.mixin=ip,x.negate=Iu,x.nthArg=nP,x.omit=iI,x.omitBy=sI,x.once=t3,x.orderBy=UA,x.over=rP,x.overArgs=n3,x.overEvery=oP,x.overSome=iP,x.partial=Yf,x.partialRight=Sy,x.partition=jA,x.pick=lI,x.pickBy=ky,x.property=By,x.propertyOf=sP,x.pull=U5,x.pullAll=dy,x.pullAllBy=j5,x.pullAllWith=H5,x.pullAt=V5,x.range=lP,x.rangeRight=aP,x.rearg=r3,x.reject=WA,x.remove=W5,x.rest=o3,x.reverse=Gf,x.sampleSize=qA,x.set=uI,x.setWith=cI,x.shuffle=KA,x.slice=z5,x.sortBy=JA,x.sortedUniq=Z5,x.sortedUniqBy=Q5,x.split=RI,x.spread=i3,x.tail=eA,x.take=tA,x.takeRight=nA,x.takeRightWhile=rA,x.takeWhile=oA,x.tap=bA,x.throttle=s3,x.thru=Cu,x.toArray=Ty,x.toPairs=Ry,x.toPairsIn=Ly,x.toPath=pP,x.toPlainObject=Ay,x.transform=dI,x.unary=l3,x.union=iA,x.unionBy=sA,x.unionWith=lA,x.uniq=aA,x.uniqBy=uA,x.uniqWith=cA,x.unset=fI,x.unzip=Xf,x.unzipWith=fy,x.update=pI,x.updateWith=hI,x.values=Ps,x.valuesIn=mI,x.without=dA,x.words=Dy,x.wrap=a3,x.xor=fA,x.xorBy=pA,x.xorWith=hA,x.zip=mA,x.zipObject=vA,x.zipObjectDeep=gA,x.zipWith=yA,x.entries=Ry,x.entriesIn=Ly,x.extend=Iy,x.extendWith=Ru,ip(x,x),x.add=mP,x.attempt=Fy,x.camelCase=bI,x.capitalize=Ny,x.ceil=vP,x.clamp=vI,x.clone=c3,x.cloneDeep=f3,x.cloneDeepWith=p3,x.cloneWith=d3,x.conformsTo=h3,x.deburr=My,x.defaultTo=GI,x.divide=gP,x.endsWith=_I,x.eq=Wr,x.escape=wI,x.escapeRegExp=SI,x.every=AA,x.find=PA,x.findIndex=ly,x.findKey=W3,x.findLast=kA,x.findLastIndex=ay,x.findLastKey=z3,x.floor=yP,x.forEach=hy,x.forEachRight=my,x.forIn=q3,x.forInRight=K3,x.forOwn=G3,x.forOwnRight=X3,x.get=ep,x.gt=m3,x.gte=v3,x.has=Z3,x.hasIn=tp,x.head=cy,x.identity=Gn,x.includes=DA,x.indexOf=k5,x.inRange=gI,x.invoke=tI,x.isArguments=Ni,x.isArray=Qe,x.isArrayBuffer=g3,x.isArrayLike=qn,x.isArrayLikeObject=Qt,x.isBoolean=y3,x.isBuffer=ri,x.isDate=b3,x.isElement=_3,x.isEmpty=w3,x.isEqual=S3,x.isEqualWith=E3,x.isError=Zf,x.isFinite=x3,x.isFunction=ko,x.isInteger=Ey,x.isLength=Pu,x.isMap=xy,x.isMatch=$3,x.isMatchWith=C3,x.isNaN=T3,x.isNative=O3,x.isNil=I3,x.isNull=A3,x.isNumber=$y,x.isObject=Kt,x.isObjectLike=Gt,x.isPlainObject=$l,x.isRegExp=Qf,x.isSafeInteger=P3,x.isSet=Cy,x.isString=ku,x.isSymbol=ar,x.isTypedArray=Is,x.isUndefined=k3,x.isWeakMap=R3,x.isWeakSet=L3,x.join=D5,x.kebabCase=EI,x.last=Cr,x.lastIndexOf=F5,x.lowerCase=xI,x.lowerFirst=$I,x.lt=N3,x.lte=M3,x.max=bP,x.maxBy=_P,x.mean=wP,x.meanBy=SP,x.min=EP,x.minBy=xP,x.stubArray=lp,x.stubFalse=ap,x.stubObject=uP,x.stubString=cP,x.stubTrue=dP,x.multiply=$P,x.nth=B5,x.noConflict=tP,x.noop=sp,x.now=Ou,x.pad=CI,x.padEnd=TI,x.padStart=OI,x.parseInt=AI,x.random=yI,x.reduce=HA,x.reduceRight=VA,x.repeat=II,x.replace=PI,x.result=aI,x.round=CP,x.runInContext=j,x.sample=zA,x.size=GA,x.snakeCase=kI,x.some=XA,x.sortedIndex=q5,x.sortedIndexBy=K5,x.sortedIndexOf=G5,x.sortedLastIndex=X5,x.sortedLastIndexBy=J5,x.sortedLastIndexOf=Y5,x.startCase=LI,x.startsWith=NI,x.subtract=TP,x.sum=OP,x.sumBy=AP,x.template=MI,x.times=fP,x.toFinite=Ro,x.toInteger=ot,x.toLength=Oy,x.toLower=DI,x.toNumber=Tr,x.toSafeInteger=D3,x.toString=Ct,x.toUpper=FI,x.trim=BI,x.trimEnd=UI,x.trimStart=jI,x.truncate=HI,x.unescape=VI,x.uniqueId=hP,x.upperCase=WI,x.upperFirst=np,x.each=hy,x.eachRight=my,x.first=cy,ip(x,function(){var i={};return co(x,function(u,d){Ot.call(x.prototype,d)||(i[d]=u)}),i}(),{chain:!1}),x.VERSION=r,wr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(i){x[i].placeholder=x}),wr(["drop","take"],function(i,u){ht.prototype[i]=function(d){d=d===n?1:un(ot(d),0);var m=this.__filtered__&&!u?new ht(this):this.clone();return m.__filtered__?m.__takeCount__=Cn(d,m.__takeCount__):m.__views__.push({size:Cn(d,Le),type:i+(m.__dir__<0?"Right":"")}),m},ht.prototype[i+"Right"]=function(d){return this.reverse()[i](d).reverse()}}),wr(["filter","map","takeWhile"],function(i,u){var d=u+1,m=d==te||d==be;ht.prototype[i]=function(b){var C=this.clone();return C.__iteratees__.push({iteratee:Ve(b,3),type:d}),C.__filtered__=C.__filtered__||m,C}}),wr(["head","last"],function(i,u){var d="take"+(u?"Right":"");ht.prototype[i]=function(){return this[d](1).value()[0]}}),wr(["initial","tail"],function(i,u){var d="drop"+(u?"":"Right");ht.prototype[i]=function(){return this.__filtered__?new ht(this):this[d](1)}}),ht.prototype.compact=function(){return this.filter(Gn)},ht.prototype.find=function(i){return this.filter(i).head()},ht.prototype.findLast=function(i){return this.reverse().find(i)},ht.prototype.invokeMap=at(function(i,u){return typeof i=="function"?new ht(this):this.map(function(d){return bl(d,i,u)})}),ht.prototype.reject=function(i){return this.filter(Iu(Ve(i)))},ht.prototype.slice=function(i,u){i=ot(i);var d=this;return d.__filtered__&&(i>0||u<0)?new ht(d):(i<0?d=d.takeRight(-i):i&&(d=d.drop(i)),u!==n&&(u=ot(u),d=u<0?d.dropRight(-u):d.take(u-i)),d)},ht.prototype.takeRightWhile=function(i){return this.reverse().takeWhile(i).reverse()},ht.prototype.toArray=function(){return this.take(Le)},co(ht.prototype,function(i,u){var d=/^(?:filter|find|map|reject)|While$/.test(u),m=/^(?:head|last)$/.test(u),b=x[m?"take"+(u=="last"?"Right":""):u],C=m||/^find/.test(u);!b||(x.prototype[u]=function(){var R=this.__wrapped__,M=m?[1]:arguments,W=R instanceof ht,re=M[0],oe=W||Qe(R),de=function(pt){var vt=b.apply(x,Jo([pt],M));return m&&Ce?vt[0]:vt};oe&&d&&typeof re=="function"&&re.length!=1&&(W=oe=!1);var Ce=this.__chain__,Ne=!!this.__actions__.length,We=C&&!Ce,st=W&&!Ne;if(!C&&oe){R=st?R:new ht(this);var ze=i.apply(R,M);return ze.__actions__.push({func:Cu,args:[de],thisArg:n}),new Er(ze,Ce)}return We&&st?i.apply(this,M):(ze=this.thru(de),We?m?ze.value()[0]:ze.value():ze)})}),wr(["pop","push","shift","sort","splice","unshift"],function(i){var u=Za[i],d=/^(?:push|sort|unshift)$/.test(i)?"tap":"thru",m=/^(?:pop|shift)$/.test(i);x.prototype[i]=function(){var b=arguments;if(m&&!this.__chain__){var C=this.value();return u.apply(Qe(C)?C:[],b)}return this[d](function(R){return u.apply(Qe(R)?R:[],b)})}}),co(ht.prototype,function(i,u){var d=x[u];if(d){var m=d.name+"";Ot.call($s,m)||($s[m]=[]),$s[m].push({name:u,func:d})}}),$s[bu(n,O).name]=[{name:"wrapper",func:n}],ht.prototype.clone=VT,ht.prototype.reverse=WT,ht.prototype.value=zT,x.prototype.at=_A,x.prototype.chain=wA,x.prototype.commit=SA,x.prototype.next=EA,x.prototype.plant=$A,x.prototype.reverse=CA,x.prototype.toJSON=x.prototype.valueOf=x.prototype.value=TA,x.prototype.first=x.prototype.head,fl&&(x.prototype[fl]=xA),x},Ss=ST();Ti?((Ti.exports=Ss)._=Ss,rf._=Ss):yn._=Ss}).call(Al)})(Y,Y.exports);const YM={chapters:[],selected:null},AE="podlove/publisher/chapter/INIT",Qm="podlove/publisher/chapter/UPDATE",IE="podlove/publisher/chapter/SELECT",ev="podlove/publisher/chapter/REMOVE",tv="podlove/publisher/chapter/ADD",PE="podlove/publisher/chapter/PARSE",nv="podlove/publisher/chapter/PARSED",kE="podlove/publisher/chapter/SET",RE="podlove/publisher/chapter/DOWNLOAD",rv="podlove/publisher/chapter/SELECT_IMAGE",ov="podlove/publisher/chapter/SET_IMAGE",ZM=ge(AE),QM=ge(Qm),di=ge(IE),eD=ge(ev),tD=ge(tv),nD=ge(PE),LE=ge(nv),rD=ge(kE),oD=ge(RE),iD=ge(rv);ge(ov);const sD=or({[nv]:(e,t)=>({...e,selected:null,chapters:Y.exports.get(t,["payload"],[])}),[kE]:(e,t)=>({...e,selected:null,chapters:Y.exports.get(t,["payload"],[])}),[Qm]:(e,t)=>{let n=NE(e);const r=ME(e),s=e.chapters.reduce((a,c,f)=>[...a,f===t.payload.index?{...c,...t.payload.chapter}:c],[]).sort((a,c)=>a.start-c.start),l=s.findIndex(a=>r&&a.title==r.title);return{...e,chapters:s,selected:l>=0?l:n}},[IE]:(e,t)=>({...e,selected:t.payload}),[tv]:e=>({...e,chapters:[...e.chapters,{start:Y.exports.get(e,["chapters",e.chapters.length-1,"start"],0),title:"",href:"",image:""}]}),[ev]:(e,t)=>({...e,selected:null,chapters:e.chapters.filter((n,r)=>r!==t.payload)}),[ov]:(e,t)=>({...e,chapters:e.chapters.map((n,r)=>r!==e.selected?n:{...n,image:t.payload})})},YM),lD=e=>e.chapters,NE=e=>e.selected,ME=e=>e.selected!==null?Y.exports.get(e,["chapters",e.selected],null):null,$p={chapters:lD,selectedIndex:NE,selected:ME},Cp=function(e){if(!e)return 0;switch(e.length){case 0:return 0;case 1:return parseInt(e,10)*100;case 2:return parseInt(e,10)*10;default:return parseInt(e.substr(0,3),10)}},La=function(e){e=(e||"").trim();const t=/^(\d+)(?:\.(\d+))?$/,n=/^(\d+):(\d\d?)(?:\.(\d+))?$/,r=/^(\d+):(\d\d?):(\d\d?)(?:\.(\d+))?$/;let o,s=0,l=0,a=0,c=0;if(o=e.match(t))s=Cp(o[2]),l=o[1]?parseInt(o[1],10):0;else if(o=e.match(n))s=Cp(o[3]),l=o[2]?parseInt(o[2],10):0,a=o[1]?parseInt(o[1],10):0;else if(o=e.match(r))s=Cp(o[4]),l=o[3]?parseInt(o[3],10):0,a=o[2]?parseInt(o[2],10):0,c=o[1]?parseInt(o[1],10):0;else return null;return((c*60+a)*60+l)*1e3+s};class Nt{constructor(t){this.totalMs=t}get totalSeconds(){return Math.floor(this.totalMs/1e3)}get totalMinutes(){return Math.floor(this.totalSeconds/60)}get totalHours(){return Math.floor(this.totalMinutes/60)}get milliseconds(){return this.totalMs%1e3}get seconds(){return this.totalSeconds%60}get minutes(){return this.totalMinutes%60}get hours(){return this.totalHours%60}get pretty(){return this.pad(this.totalHours)+":"+this.pad(this.minutes)+":"+this.pad(this.seconds)+"."+this.pad(this.milliseconds,"000")}get prettyShort(){return this.totalHours?this.pad(this.totalHours)+":"+this.pad(this.minutes)+":"+this.pad(this.seconds):this.pad(this.minutes)+":"+this.pad(this.seconds)}pad(t,n="00"){let r=""+t;return r.length<n.length?n.substring(0,n.length-r.length)+r:t}static fromString(t){let n=0;return t==parseInt(t,10)?n=parseInt(t,10):n=La(t)||0,new Nt(n)}}const s1=(e,t,n)=>{const r=[...e];return r.splice(n,0,r.splice(t,1)[0]),r},DE="podlove/publisher/episode/INIT",Ys="podlove/publisher/episode/UPDATE",FE="podlove/publisher/episode/QUICKSAVE",BE="podlove/publisher/episode/SAVED",UE="podlove/publisher/episode/SLUG_CHANGED",Td="podlove/publisher/episode/SET",jE="podlove/publisher/episode/SET_POSTER",HE="podlove/publisher/episode/SELECT_POSTER",iv="podlove/publisher/episode/MOVE_CONTRIBUTION_UP",sv="podlove/publisher/episode/MOVE_CONTRIBUTION_DOWN",lv="podlove/publisher/episode/DELETE_CONTRIBUTION",av="podlove/publisher/episode/UPDATE_CONTRIBUTION",uv="podlove/publisher/episode/ADD_CONTRIBUTION",VE="podlove/publisher/episode/CREATE_CONTRIBUTION",aD={id:null,slug:null,duration:null,number:null,subtitle:null,title:null,summary:null,type:null,episode_poster:null,poster:null,mnemonic:null,explicit:null,auphonic_production_id:null,auphonic_webhook_config:null,soundbite_start:null,soundbite_duration:null,soundbite_title:null,contributions:[],license_name:null,license_url:null,show:null},$t=ge(Ys),uD=ge(FE),Od=ge(DE),cD=ge(HE),WE=ge(Td),dD=ge(iv),fD=ge(sv),pD=ge(lv),Tp=ge(av),zE=ge(uv),hD=ge(VE),mD=ge(BE),vD=ge(UE),gD=or({[Eo]:(e,t)=>({...e,id:Y.exports.get(t,["payload","episode","id"],null),duration:Nt.fromString(Y.exports.get(t,["payload","episode","duration"],null)).totalMs}),[Ys]:(e,t)=>{const n=Y.exports.get(t,["payload","prop"]),r=Y.exports.get(t,["payload","value"],null);return["title","subtitle","summary","duration","slug","auphonic_webhook_config","soundbite_start","soundbite_duration","soundbite_title","license_name","license_url","show","number" ].includes(n)?{...e,[n]:r}:n=="image"?{...e,episode_poster:r}:(console.debug("todo",n,r),{...e})},[Td]:(e,t)=>({...e,slug:Y.exports.get(t,["payload","slug"],e.slug),number:Y.exports.get(t,["payload","number"],e.number),duration:Y.exports.get(t,["payload","duration"],e.duration),title:Y.exports.get(t,["payload","title_clean"],e.title),subtitle:Y.exports.get(t,["payload","subtitle"],e.subtitle),summary:Y.exports.get(t,["payload","summary"],e.summary),type:Y.exports.get(t,["payload","type"],e.type),episode_poster:Y.exports.get(t,["payload","episode_poster"],e.episode_poster),poster:Y.exports.get(t,["payload","poster"],e.poster),mnemonic:Y.exports.get(t,["payload","mnemonic"],e.mnemonic),explicit:Y.exports.get(t,["payload","explicit"],e.explicit),auphonic_production_id:Y.exports.get(t,["payload","auphonic_production_id"],e.auphonic_production_id),auphonic_webhook_config:Y.exports.get(t,["payload","auphonic_webhook_config"],e.auphonic_webhook_config),soundbite_start:Y.exports.get(t,["payload","soundbite_start"],e.soundbite_start),soundbite_duration:Y.exports.get(t,["payload","soundbite_duration"],e.soundbite_duration),soundbite_title:Y.exports.get(t,["payload","soundbite_title"],e.soundbite_title),license_name:Y.exports.get(t,["payload","license_name"],e.license_name),license_url:Y.exports.get(t,["payload","license_url"],e.license_url),contributions:Y.exports.get(t,["payload","contributions"],e.contributions),show:Y.exports.get(t,["payload","show"],e.show)}),[iv]:(e,t)=>{const n=e.contributions.findIndex(r=>r.position===Y.exports.get(t,["payload","position"]));return n<1?e:{...e,contributions:s1(e.contributions,n,n-1).map((r,o)=>({...r,position:o}))}},[sv]:(e,t)=>{const n=e.contributions.findIndex(r=>r.position===Y.exports.get(t,["payload","position"]));return n>e.contributions.length?e:{...e,contributions:s1(e.contributions,n,n+1).map((r,o)=>({...r,position:o}))}},[lv]:(e,t)=>({...e,contributions:e.contributions.filter(({position:n})=>Y.exports.get(t,["payload","position"])!==n).map((n,r)=>({...n,position:r}))}),[av]:(e,t)=>({...e,contributions:e.contributions.map(n=>n.contributor_id!==Y.exports.get(t,["payload","contributor_id"])?n:Y.exports.pick(Y.exports.get(t,["payload"],{}),["id","contributor_id","role_id","group_id","position","comment"]))}),[uv]:(e,t)=>({...e,contributions:[...e.contributions,{id:null,contributor_id:Y.exports.get(t,["payload","id"],null),role_id:null,group_id:null,position:e.contributions.length,comment:null}]})},aD),tn={id:e=>e.id,slug:e=>e.slug,duration:e=>e.duration,number:e=>e.number,title:e=>e.title,subtitle:e=>e.subtitle,summary:e=>e.summary,type:e=>e.type,poster:e=>e.poster,episodePoster:e=>e.episode_poster,mnemonic:e=>e.mnemonic,explicit:e=>e.explicit,auphonicProductionId:e=>e.auphonic_production_id,auphonicWebhookConfig:e=>e.auphonic_webhook_config,soundbite_start:e=>e.soundbite_start,soundbite_duration:e=>e.soundbite_duration,soundbite_title:e=>e.soundbite_title,license_name:e=>e.license_name,license_url:e=>e.license_url,contributions:e=>e.contributions,currentShow:e=>e.show},yD={baseUrl:null,api:{nonce:null,base:null,auth:null,bearer:null}},bD=or({[Eo]:(e,t)=>({...e,baseUrl:Y.exports.get(t,["payload","baseUrl"],null),api:{base:Y.exports.get(t,["payload","api","base"],null),nonce:Y.exports.get(t,["payload","api","nonce"],null),auth:Y.exports.get(t,["payload","api","auth"],null),bearer:Y.exports.get(t,["payload","api","bearer"],null)}})},yD),Il={baseUrl:e=>e.baseUrl,nonce:e=>e.api.nonce,base:e=>e.api.base,auth:e=>e.api.auth,bearer:e=>e.api.bearer},cv="podlove/publisher/wordpress/UPDATE",qE="podlove/publisher/wordpress/SELECT_MEDIA_FROM_LIBRARY",KE=ge(cv),dv=ge(qE),_D={id:null,title:null},wD=or({[Eo]:(e,t)=>({...e,id:Y.exports.get(t,["payload","post","id"],null),title:Y.exports.get(t,["payload","post","title"],null)}),[cv]:(e,t)=>t.payload.prop!=="title"?e:{...e,title:t.payload.value}},_D),l1={id:e=>e.id,title:e=>e.title},GE="podlove/publisher/transcript/INIT",XE="podlove/publisher/transcript/SET_TRANSCRIPTS",JE="podlove/publisher/transcript/SET_VOICES",fv="podlove/publisher/transcript/UPDATE_VOICE",YE="podlove/publisher/transcript/IMPORT_TRANSCRIPTS",ZE="podlove/publisher/transcript/IMPORT_ASSET_TRANSCRIPTS",QE="podlove/publisher/transcript/DELETE_TRANSCRIPTS",SD=ge(GE),ED=ge(XE),xD=ge(JE),$D=ge(fv),CD=ge(YE),TD=ge(ZE),OD=ge(QE),AD={transcripts:[],voices:[]},ID=or({[XE]:(e,t)=>({...e,transcripts:t.payload}),[JE]:(e,t)=>({...e,voices:t.payload.map(n=>({voice:n.voice,contributor:n.contributor_id}))}),[fv]:(e,t)=>({...e,voices:e.voices.map(n=>n.voice===t.payload.voice?{...n,contributor:t.payload.contributor}:n)})},AD),a1={transcripts:e=>e.transcripts,voices:e=>e.voices},PD={contributors:[],roles:[],groups:[]},ex="podlove/publisher/contributors/INIT",tx="podlove/publisher/contributors/SET_CONTRIBUTORS",nx="podlove/publisher/contributors/SET_ROLES",rx="podlove/publisher/contributors/SET_GROUPS",ox="podlove/publisher/contributors/ADD",ix=ge(ex),kD=ge(tx),RD=ge(nx),LD=ge(rx),ND=ge(ox),MD=or({[tx]:(e,t)=>({...e,contributors:t.payload}),[nx]:(e,t)=>({...e,roles:t.payload}),[rx]:(e,t)=>({...e,groups:t.payload}),[ox]:(e,t)=>({...e,contributors:[...e.contributors,t.payload]})},PD),Op={contributors:e=>e.contributors,roles:e=>e.roles,groups:e=>e.groups},DD={metadata:{enable_episode_explicit:null,enable_episode_license:null,enable_episode_recording_date:null},tracking:{mode:null,window:null},website:{blog_title_template:null,custom_episode_slug:null,enable_generated_blog_post_title:null,episode_archive:null,episode_archive_slug:null,episode_number_padding:null,feeds_skip_redirect:null,hide_wp_feed_discovery:null,landing_page:null,merge_episodes:null,ssl_verify_peer:null,url_template:null,use_post_permastruct:null},assets:{image:null,chapter:null,transcript:null},media:{base_uri:null},modules:[]},FD=e=>{switch(e){case"0":return"podcast-cover";case"post-thumbnail":return"post-thumbnail";case"manual":return"manual";default:return null}},BD=e=>{switch(e){case"0":return"none";case"manual":return"manual";default:return null}},UD=or({[Eo]:(e,t)=>({...e,metadata:{enable_episode_explicit:Y.exports.get(t,["payload","expert_settings","metadata","enable_episode_explicit"],null)==="1",enable_episode_license:Y.exports.get(t,["payload","expert_settings","metadata","enable_episode_license"],null)==="1",enable_episode_recording_date:Y.exports.get(t,["payload","expert_settings","metadata","enable_episode_license"],null)==="1"},tracking:{mode:Y.exports.get(t,["payload","expert_settings","tracking","mode"],null),window:Y.exports.get(t,["payload","expert_settings","tracking","mode"],null)},media:{base_uri:Y.exports.get(t,["payload","media","base_uri"],null)},website:{blog_title_template:Y.exports.get(t,["payload","expert_settings","website","blog_title_template"],null),custom_episode_slug:Y.exports.get(t,["payload","expert_settings","website","custom_episode_slug"],null),enable_generated_blog_post_title:Y.exports.get(t,["payload","expert_settings","website","enable_generated_blog_post_title"],null)==="on",episode_archive:Y.exports.get(t,["payload","expert_settings","website","episode_archive"],null)==="on",episode_archive_slug:Y.exports.get(t,["payload","expert_settings","website","episode_archive_slug"],null),episode_number_padding:Y.exports.get(t,["payload","expert_settings","website","episode_number_padding"],null),feeds_skip_redirect:Y.exports.get(t,["payload","expert_settings","website","feeds_skip_redirect"],null)==="on",hide_wp_feed_discovery:Y.exports.get(t,["payload","expert_settings","website","hide_wp_feed_discovery"],null)==="on",landing_page:Y.exports.get(t,["payload","expert_settings","website","landing_page"],null),merge_episodes:Y.exports.get(t,["payload","expert_settings","website","merge_episodes"],null)==="on",ssl_verify_peer:Y.exports.get(t,["payload","expert_settings","website","ssl_verify_peer"],null)==="on",url_template:Y.exports.get(t,["payload","expert_settings","website","url_template"],null),use_post_permastruct:Y.exports.get(t,["payload","expert_settings","website","use_post_permastruct"],null)==="on"},assets:{image:FD(Y.exports.get(t,["payload","assignments","image"],null)),chapter:BD(Y.exports.get(t,["payload","assignments","chapter"],null)),transcript:Y.exports.get(t,["payload","assignments","transcript"],null)},modules:Y.exports.get(t,["payload","modules"])})},DD),Fi={autoGenerateEpisodeTitle:e=>e.website.enable_generated_blog_post_title,blogTitleTemplate:e=>e.website.blog_title_template,episodeNumberPadding:e=>e.website.episode_number_padding,imageAsset:e=>e.assets.image,enableEpisodeExplicit:e=>e.metadata.enable_episode_explicit,mediaFileBaseUri:e=>e.media.base_uri,modules:e=>e.modules},jD="podlove/publisher/podcast/INIT",sx="podlove/publisher/podcast/SET",HD="podlove/publisher/podcasr/SAVED",pv="podlove/publisher/podcast/UPDATE",VD={title:null,subtitle:null,summary:null,mnemonic:null,itunes_type:null,author_name:null,poster:null,link:null,license_name:null,license_url:null};ge(jD);const WD=ge(sx);ge(HD);const Zl=ge(pv),zD=or({[sx]:(e,t)=>({title:Y.exports.get(t,["payload","title"],e.title),subtitle:Y.exports.get(t,["payload","subtitle"],e.subtitle),summary:Y.exports.get(t,["payload","summary"],e.summary),mnemonic:Y.exports.get(t,["payload","mnemonic"],e.mnemonic),itunes_type:Y.exports.get(t,["payload","itunes_type"],e.itunes_type),author_name:Y.exports.get(t,["payload","author_name"],e.author_name),poster:Y.exports.get(t,["payload","poster"],e.poster),link:Y.exports.get(t,["payload","link"],e.link),license_name:Y.exports.get(t,["payload","license_name"],e.license_name),license_url:Y.exports.get(t,["payload","license_url"],e.license_url)}),[pv]:(e,t)=>{const n=Y.exports.get(t,["payload","prop"]),r=Y.exports.get(t,["payload","value"],null);return["title","subtitle","summary","author_name","podcast_email","funding_url","funding_label","license_name","license_url"].includes(n)?{...e,[n]:r}:(console.debug("todo",n,r),{...e})}},VD),ho={title:e=>e.title,subtitle:e=>e.subtitle,summary:e=>e.summary,mnemonic:e=>e.mnemonic,itunesType:e=>e.itunes_type,author:e=>e.author_name,poster:e=>e.poster,link:e=>e.link,license_name:e=>e.license_name,license_url:e=>e.license_url},qD={token:null,production:null,productions:[],presets:[],preset:null,services:[],service_files:{},tracks:[],file_selections:{},current_file_selection:null,is_saving:!1,is_initializing:!0,publish_when_done:!1},lx="podlove/publisher/auphonic/INIT",ax="podlove/publisher/auphonic/INIT_DONE",ux="podlove/publisher/auphonic/SET_TOKEN",Bc="podlove/publisher/auphonic/SET_PRODUCTION",cx="podlove/publisher/auphonic/SET_PRODUCTIONS",dx="podlove/publisher/auphonic/SET_SERVICES",fx="podlove/publisher/auphonic/CREATE_PRODUCTION",px="podlove/publisher/auphonic/CREATE_MULTITRACK_PRODUCTION",hx="podlove/publisher/auphonic/SAVE_PRODUCTION",KD="podlove/publisher/auphonic/START_PRODUCTION",hv="podlove/publisher/auphonic/DESELECT_PRODUCTION",GD="podlove/publisher/auphonic/SELECT_SERVICE",mv="podlove/publisher/auphonic/SET_SERVICE_FILES",XD="podlove/publisher/auphonic/SELECT_TRACKS",mx="podlove/publisher/auphonic/ADD_TRACK",vx="podlove/publisher/auphonic/REMOVE_TRACK",gx="podlove/publisher/auphonic/UPDATE_TRACK",yx="podlove/publisher/auphonic/SET_PRESETS",vv="podlove/publisher/auphonic/SET_PRESET",gv="podlove/publisher/auphonic/UPDATE_FILE_SELECTION",bx="podlove/publisher/auphonic/START_POLLING",_h="podlove/publisher/auphonic/STOP_POLLING",_x="podlove/publisher/auphonic/START_SAVING",wx="podlove/publisher/auphonic/STOP_SAVING",yv="podlove/publisher/auphonic/UPDATE_WEBHOOK",JD=ge(lx),YD=ge(ax),ZD=ge(ux),ds=ge(Bc),Sx=ge(hv),Ex=ge(cx),QD=ge(fx),e7=ge(px),xx=ge(hx),wh=ge(KD),t7=ge(yx),bv=ge(vv),n7=ge(dx),r7=ge(mv),$x=ge(GD),Cx=ge(gv);ge(XD);const o7=ge(mx),Tx=ge(vx),Ox=ge(gx),i7=ge(bx),u1=ge(_h),s7=ge(_x),l7=ge(wx),Ax=ge(yv),a7=or({[ax]:e=>({...e,is_initializing:!1}),[gv]:(e,t)=>({...e,current_file_selection:t.payload.key,file_selections:{...e.file_selections,[t.payload.key]:{...e.file_selections[t.payload.key],[t.payload.prop]:t.payload.value}}}),[mx]:(e,t)=>{const n=`Track ${e.tracks.length+1}`;return{...e,tracks:[...e.tracks,{identifier:n,identifier_new:n,fileSelection:null,input_file_name:"",filtering:!0,noise_and_hum_reduction:!1,fore_background:"auto",track_gain:"0",save_state:"new"}]}},[vx]:(e,t)=>({...e,tracks:e.tracks.filter((n,r)=>n.identifier!=t.payload)}),[gx]:(e,t)=>{const n=(o,s)=>o.save_state=="new"?{save_state:"new"}:{save_state:"edited"},r=e.tracks.reduce((o,s,l)=>[...o,l===t.payload.index?{...s,...t.payload.track,...n(s,t.payload.track)}:s],[]);return{...e,tracks:r}},[mv]:(e,t)=>{const{uuid:n,files:r}=t.payload;return{...e,service_files:{...e.service_files,[n]:r}}},[dx]:(e,t)=>({...e,services:t.payload}),[yx]:(e,t)=>({...e,presets:t.payload}),[cx]:(e,t)=>({...e,productions:t.payload}),[Bc]:(e,t)=>{var o,s;const n=t.payload;return{...e,production:n,file_selections:(()=>{var l;if(n!=null&&n.is_multitrack)return((l=n==null?void 0:n.multi_input_files)==null?void 0:l.reduce((a,c,f)=>{let p=c.service;return p||(c.input_file.substring(0,4)=="http"?p="url":p="file"),{...a,[`${n==null?void 0:n.uuid}_t${f}`]:{currentServiceSelection:p,fileSelection:c.service?c.input_file:null,urlValue:p=="url"?c.input_file:null,fileValue:null}}},{}))||{};{let a=n==null?void 0:n.service;const c=n==null?void 0:n.input_file;return a||((c==null?void 0:c.substring(0,4))=="http"?a="url":a="file"),{[`${n==null?void 0:n.uuid}`]:{currentServiceSelection:a,fileSelection:a?c:null,urlValue:a=="url"?c:null,fileValue:null}}}})(),tracks:((s=(o=t.payload)==null?void 0:o.multi_input_files)==null?void 0:s.reduce((l,a)=>{var c,f,p;return[...l,{identifier:a.id,identifier_new:a.id,filtering:(c=a.algorithms)==null?void 0:c.filtering,noise_and_hum_reduction:(f=a.algorithms)==null?void 0:f.denoise,fore_background:(p=a.algorithms)==null?void 0:p.backforeground,input_file_name:a.input_file,save_state:"unchanged"}]},[]))||[]}},[hv]:e=>({...e,production:null,tracks:[],file_selections:[],current_file_selection:null}),[vv]:(e,t)=>({...e,preset:t.payload}),[ux]:(e,t)=>({...e,token:t.payload}),[_x]:(e,t)=>({...e,is_saving:!0}),[wx]:(e,t)=>({...e,is_saving:!1}),[yv]:(e,t)=>({...e,publish_when_done:t.payload})},qD),u7=e=>e?e.map(t=>{let n={start:t.start,title:t.title};return t.image&&(n.image=t.image),t.url&&(n.url=t.url),n}):[],c7=e=>e?e.map(t=>({format:t.format,bitrate:t.bitrate,suffix:t.suffix,ending:t.ending,filename:t.filename,mono_mixdown:t.mono_mixdown,split_on_chapters:t.split_on_chapters,outgoing_services:t.outgoing_services})):[],d7=e=>{const t=e.production;return{uuid:t==null?void 0:t.uuid,metadata:t==null?void 0:t.metadata,input_file:t==null?void 0:t.input_file,chapters:u7(t==null?void 0:t.chapters),output_files:c7(t==null?void 0:t.output_files),output_basename:t==null?void 0:t.output_basename,outgoing_services:t==null?void 0:t.outgoing_services,algorithms:t==null?void 0:t.algorithms,speech_recognition:t==null?void 0:t.speech_recognition}},On={token:e=>e.token,production:e=>e.production,productionId:e=>{var t;return(t=e.production)==null?void 0:t.uuid},productions:e=>e.productions,presets:e=>e.presets,preset:e=>e.preset,productionPayload:d7,services:e=>e.services,incomingServices:e=>e.services.filter(t=>t.incoming),outgoingServices:e=>e.services.filter(t=>t.outgoing),serviceFiles:e=>e.service_files,tracks:e=>e.tracks,fileSelections:e=>e.file_selections,currentFileSelection:e=>e.current_file_selection,isSaving:e=>e.is_saving,isInitializing:e=>e.is_initializing,publishWhenDone:e=>e.publish_when_done},f7={is_initializing:!0,slug_autogeneration_enabled:!1,files:[]},Ix="podlove/publisher/mediafiles/INIT",Px="podlove/publisher/mediafiles/INIT_DONE",kx="podlove/publisher/mediafiles/SET",_v="podlove/publisher/mediafiles/UPDATE",Uc="podlove/publisher/mediafiles/ENABLE",jc="podlove/publisher/mediafiles/DISABLE",Rx="podlove/publisher/mediafiles/VERIFY",Lx="podlove/publisher/mediafiles/UPLOAD_INTENT",wv="podlove/publisher/mediafiles/SET_UPLOAD_URL",Nx="podlove/publisher/mediafiles/ENABLE_SLUG_AUTOGEN",Mx="podlove/publisher/mediafiles/DISABLE_SLUG_AUTOGEN",p7=ge(Ix),h7=ge(Px),m7=ge(kx),Sh=ge(_v),v7=ge(Uc),g7=ge(jc),y7=ge(Rx),b7=ge(Lx);ge(wv);const _7=ge(Nx),Dx=ge(Mx),w7=or({[Px]:e=>({...e,is_initializing:!1}),[kx]:(e,t)=>({...e,files:t.payload}),[_v]:(e,t)=>({...e,files:e.files.reduce((n,r)=>[...n,r.asset_id==t.payload.asset_id?{...r,...t.payload}:r],[])}),[Uc]:(e,t)=>({...e,files:e.files.reduce((n,r)=>[...n,r.asset_id==t.payload?{...r,enable:!0}:r],[])}),[jc]:(e,t)=>({...e,files:e.files.reduce((n,r)=>[...n,r.asset_id==t.payload?{...r,enable:!1}:r],[])}),[Nx]:e=>({...e,slug_autogeneration_enabled:!0}),[Mx]:e=>({...e,slug_autogeneration_enabled:!1})},f7),Ap={isInitializing:e=>e.is_initializing,slugAutogenerationEnabled:e=>e.slug_autogeneration_enabled,files:e=>e.files},S7={episodeList:[],selectEpisodes:[]},Fx="podlove/publisher/relatedEpisodes/INIT",Bx="podlove/publisher/relatedEpisodes/SET_EPISODE_LIST",Sv="podlove/publisher/relatedEpisodes/SET_SELECTED_EPISODES",E7="podlove/publisher/relatedEpisodes/UPDATE_RELATED_EPISODES",x7=ge(Fx),$7=ge(Bx),Ux=ge(Sv);ge(E7);const C7=or({[Eo]:(e,t)=>({...e}),[Bx]:(e,t)=>({...e,episodeList:t.payload}),[Sv]:(e,t)=>({...e,selectEpisodes:t.payload})},S7),c1={episodeList:e=>e.episodeList,selectEpisodes:e=>e.selectEpisodes},Ev="podlove/publisher/shows/INIT",xv="podlove/publisher/shows/SET",Hc="podlove/publisher/shows/SELECT",jx=ge(Ev),Hx=ge(xv),Vx=ge(Hc),Wx={shows:[]},zx=or({[xv]:(e,t)=>({...e,shows:Y.exports.get(t,["payload"],[])})},Wx),qx={shows:e=>e.shows};var T7=Object.freeze(Object.defineProperty({__proto__:null,INIT:Ev,SET:xv,SELECT:Hc,init:jx,set:Hx,select:Vx,initialState:Wx,reducer:zx,selectors:qx},Symbol.toStringTag,{value:"Module"}));const $e={lifecycle:e=>e.lifecycle,chapters:e=>e.chapters,podcast:e=>e.podcast,episode:e=>e.episode,runtime:e=>e.runtime,post:e=>e.post,transcripts:e=>e.transcripts,contributors:e=>e.contributors,auphonic:e=>e.auphonic,mediafiles:e=>e.mediafiles,settings:e=>e.settings,relatedEpisodes:e=>e.relatedEpisodes,shows:e=>e.shows},O7={bootstrapped:xe($e.lifecycle,JM.bootstrapped)},A7={token:xe($e.auphonic,On.token),productionId:xe($e.auphonic,On.productionId),productions:xe($e.auphonic,On.productions),production:xe($e.auphonic,On.production),presets:xe($e.auphonic,On.presets),preset:xe($e.auphonic,On.preset),productionPayload:xe($e.auphonic,On.productionPayload),incomingServices:xe($e.auphonic,On.incomingServices),outgoingServices:xe($e.auphonic,On.outgoingServices),serviceFiles:xe($e.auphonic,On.serviceFiles),tracks:xe($e.auphonic,On.tracks),fileSelections:xe($e.auphonic,On.fileSelections),currentFileSelection:xe($e.auphonic,On.currentFileSelection),isSaving:xe($e.auphonic,On.isSaving),isInitializing:xe($e.auphonic,On.isInitializing),publishWhenDone:xe($e.auphonic,On.publishWhenDone)},I7={title:xe($e.podcast,ho.title),subtitle:xe($e.podcast,ho.subtitle),summary:xe($e.podcast,ho.summary),mnemonic:xe($e.podcast,ho.mnemonic),itunesType:xe($e.podcast,ho.itunesType),author:xe($e.podcast,ho.author),poster:xe($e.podcast,ho.poster),link:xe($e.podcast,ho.link),license_name:xe($e.podcast,ho.license_name),license_url:xe($e.podcast,ho.license_url)},P7={list:xe($e.chapters,$p.chapters),selected:xe($e.chapters,$p.selected),selectedIndex:xe($e.chapters,$p.selectedIndex)},Kx={contributors:xe($e.contributors,Op.contributors),roles:xe($e.contributors,Op.roles),groups:xe($e.contributors,Op.groups)},k7={id:xe($e.episode,tn.id),slug:xe($e.episode,tn.slug),duration:xe($e.episode,tn.duration),number:xe($e.episode,tn.number),title:xe($e.episode,tn.title),subtitle:xe($e.episode,tn.subtitle),summary:xe($e.episode,tn.summary),type:xe($e.episode,tn.type),poster:xe($e.episode,tn.poster),episodePoster:xe($e.episode,tn.episodePoster),mnemonic:xe($e.episode,tn.mnemonic),explicit:xe($e.episode,tn.explicit),soundbite_start:xe($e.episode,tn.soundbite_start),soundbite_duration:xe($e.episode,tn.soundbite_duration),soundbite_title:xe($e.episode,tn.soundbite_title),auphonicProductionId:xe($e.episode,tn.auphonicProductionId),auphonicWebhookConfig:xe($e.episode,tn.auphonicWebhookConfig),license_name:xe($e.episode,tn.license_name),license_url:xe($e.episode,tn.license_url),contributions:xe(xe($e.episode,tn.contributions),Kx.contributors,(e,t)=>e.map(r=>({...r,...r.contributor_id?t.find(({id:o})=>o.toString()===r.contributor_id.toString()):{}}))),currentShow:xe($e.episode,tn.currentShow)},R7={isInitializing:xe($e.mediafiles,Ap.isInitializing),files:xe($e.mediafiles,Ap.files),slugAutogenerationEnabled:xe($e.mediafiles,Ap.slugAutogenerationEnabled)},L7={baseUrl:xe($e.runtime,Il.baseUrl),nonce:xe($e.runtime,Il.nonce),base:xe($e.runtime,Il.base),auth:xe($e.runtime,Il.auth),bearer:xe($e.runtime,Il.bearer)},N7={id:xe($e.post,l1.id),title:xe($e.post,l1.title)},M7={list:xe($e.transcripts,a1.transcripts),voices:xe($e.transcripts,a1.voices)},D7={autoGenerateEpisodeTitle:xe($e.settings,Fi.autoGenerateEpisodeTitle),blogTitleTemplate:xe($e.settings,Fi.blogTitleTemplate),episodeNumberPadding:xe($e.settings,Fi.episodeNumberPadding),mediaFileBaseUri:xe($e.settings,Fi.mediaFileBaseUri),imageAsset:xe($e.settings,Fi.imageAsset),enableEpisodeExplicit:xe($e.settings,Fi.enableEpisodeExplicit),modules:xe($e.settings,Fi.modules)},F7={episodeList:xe($e.relatedEpisodes,c1.episodeList),selectEpisode:xe($e.relatedEpisodes,c1.selectEpisodes)},B7={list:xe($e.shows,qx.shows)};var G={lifecycle:O7,podcast:I7,chapters:P7,episode:k7,runtime:L7,post:N7,transcripts:M7,contributors:Kx,settings:D7,auphonic:A7,mediafiles:R7,relatedEpisodes:F7,shows:B7},U7=LS({lifecycle:XM,chapters:sD,episode:gD,runtime:bD,post:wD,transcripts:ID,contributors:MD,settings:UD,podcast:zD,auphonic:a7,mediafiles:w7,relatedEpisodes:C7,shows:zx}),d1=function(t){return{done:!0,value:t}},Ip={};function Ad(e){return wd(e)?"channel":zS(e)?String(e):Hn(e)?e.name:String(e)}function Id(e,t,n){var r,o,s,l=t;function a(c,f){if(l===Ip)return d1(c);if(f&&!o)throw l=Ip,f;r&&r(c);var p=f?e[o](f):e[l]();return l=p.nextState,s=p.effect,r=p.stateUpdater,o=p.errorState,l===Ip?d1(c):s}return yh(a,function(c){return a(null,c)},n)}function j7(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var s={done:!1,value:go(e)},l=function(p){return{done:!1,value:Dt.apply(void 0,[t].concat(r,[p]))}},a,c=function(p){return a=p};return Id({q1:function(){return{nextState:"q2",effect:s,stateUpdater:c}},q2:function(){return{nextState:"q1",effect:l(a)}}},"q1","takeEvery("+Ad(e)+", "+t.name+")")}function H7(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var s={done:!1,value:go(e)},l=function(y){return{done:!1,value:Dt.apply(void 0,[t].concat(r,[y]))}},a=function(y){return{done:!1,value:W6(y)}},c,f,p=function(y){return c=y},h=function(y){return f=y};return Id({q1:function(){return{nextState:"q2",effect:s,stateUpdater:h}},q2:function(){return c?{nextState:"q3",effect:a(c)}:{nextState:"q1",effect:l(f),stateUpdater:p}},q3:function(){return{nextState:"q1",effect:l(f),stateUpdater:p}}},"q1","takeLatest("+Ad(e)+", "+t.name+")")}function V7(e,t,n){for(var r=arguments.length,o=new Array(r>3?r-3:0),s=3;s<r;s++)o[s-3]=arguments[s];var l,a,c=function(){return{done:!1,value:go(a)}},f=function(w){return{done:!1,value:Dt.apply(void 0,[n].concat(o,[w]))}},p={done:!1,value:qm(e)},h=function(w){return l=w},v=function(w){return a=w},y=!wd(t);return y||v(t),Id({q1:function(){var w={done:!1,value:z6(t,M6(1))};return{nextState:"q2",effect:w,stateUpdater:v}},q2:function(){return{nextState:"q3",effect:c(),stateUpdater:h}},q3:function(){return{nextState:"q4",effect:f(l)}},q4:function(){return{nextState:"q2",effect:p}}},y?"q1":"q2","throttle("+Ad(t)+", "+n.name+")")}function W7(e,t,n){for(var r=arguments.length,o=new Array(r>3?r-3:0),s=3;s<r;s++)o[s-3]=arguments[s];var l,a,c={done:!1,value:go(t)},f={done:!1,value:bh({action:go(t),debounce:qm(e)})},p=function(w){return{done:!1,value:Dt.apply(void 0,[n].concat(o,[w]))}},h=function(w){return{done:!1,value:w}},v=function(w){return l=w},y=function(w){return a=w};return Id({q1:function(){return{nextState:"q2",effect:c,stateUpdater:v}},q2:function(){return{nextState:"q3",effect:f,stateUpdater:y}},q3:function(){return a.debounce?{nextState:"q1",effect:p(l)}:{nextState:"q2",effect:h(a.action),stateUpdater:v}}},"q1","debounce("+Ad(t)+", "+n.name+")")}function Ge(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return Dt.apply(void 0,[j7,e,t].concat(r))}function z7(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return Dt.apply(void 0,[H7,e,t].concat(r))}function Gx(e,t,n){for(var r=arguments.length,o=new Array(r>3?r-3:0),s=3;s<r;s++)o[s-3]=arguments[s];return Dt.apply(void 0,[V7,e,t,n].concat(o))}function Eh(e,t,n){for(var r=arguments.length,o=new Array(r>3?r-3:0),s=3;s<r;s++)o[s-3]=arguments[s];return Dt.apply(void 0,[W7,e,t,n].concat(o))}function q7(){return function*(){const e=yield Zn(X7,"click","button.editor-post-publish-button");yield Ge(e,K7),yield Ge(Eo,G7)}}function*K7(){yield Ie(qM())}function*G7(){yield Ie(KM())}function X7(e,t){return SE(n=>{let r;const o=s=>{n(s)};return window.addEventListener("load",()=>{r=document.querySelector(t),r==null||r.addEventListener(e,o)}),()=>{r==null||r.removeEventListener(e,o),n(Us)}})}const xh=e=>SE(t=>(e(r=>{t(r||{})}),()=>{}));function*xo(e,t,...n){return yield Dt(function*(){for(;;){const o=yield go(e);yield Zn(t,...n.concat(o))}})}function*J7(e){if(!(yield Te(e))){for(;;)if(yield go("*"),yield Te(e))return}}const al=(e,t={})=>{const n=Object.keys(t).map(r=>encodeURIComponent(r)+"="+encodeURIComponent(t[r])).join("&");return e+=(e.indexOf("?")===-1?"?":"&")+n},Na=(e=console.error)=>async t=>{let n;try{n=await t.json()}catch{n={}}return t.status>=300?(e(n),{error:n}):{result:n}},Xx=({nonce:e,auth:t,bearer:n},r={})=>({"Content-Type":"application/json",Accept:"application/json",...n?{Authorization:`Bearer ${n}`}:{},...t?{Authorization:`Basic ${t}`}:{},...e?{"X-WP-Nonce":e}:{},...r}),f1=({errorHandler:e,nonce:t,auth:n,bearer:r,method:o,urlProcessor:s})=>(l,{headers:a,query:c}={})=>fetch(al(s?s(l):l,c),{method:o,headers:Xx({nonce:t,auth:n,bearer:r},a)}).then(Na(e)),p1=({errorHandler:e,nonce:t,auth:n,bearer:r,method:o,urlProcessor:s})=>(l,a,{headers:c,query:f}={})=>fetch(al(s?s(l):l,f),{method:o,headers:Xx({nonce:t,auth:n,bearer:r},c),body:JSON.stringify(a)}).then(Na(e)),Y7=Y.exports.curry(({base:e,version:t,nonce:n,auth:r,bearer:o,errorHandler:s})=>({get:f1({nonce:n,auth:r,bearer:o,method:"GET",errorHandler:s,urlProcessor:l=>`${e}/${t}/${l}`}),delete:f1({nonce:n,auth:r,bearer:o,errorHandler:s,method:"DELETE",urlProcessor:l=>`${e}/${t}/${l}`}),post:p1({nonce:n,auth:r,bearer:o,errorHandler:s,method:"POST",urlProcessor:l=>`${e}/${t}/${l}`}),put:p1({nonce:n,auth:r,bearer:o,errorHandler:s,method:"PUT",urlProcessor:l=>`${e}/${t}/${l}`})})),Jx="podlove/publisher/NOTIFY",$v=ge(Jx),Z7={};or({},Z7);function*Go(){yield Zn(J7,G.lifecycle.bootstrapped);const e=yield Te(G.runtime.base),t=yield Te(G.runtime.nonce),n=yield Te(G.runtime.auth),r=yield Te(G.runtime.bearer);return Y7({base:e,version:"v2",nonce:t,auth:n,bearer:r,errorHandler:function(s){Fd.dispatch($v({type:"error",message:s}))}})}function*Q7(){const e=yield Go();yield Dt(eF,e),yield Ge(pv,tF)}function*eF(e){const{result:t}=yield e.get("podcast");t&&(yield Ie(WD(t)))}function tF(e){const t=Y.exports.get(e,["payload","prop"]);Y.exports.get(e,["payload","value"],null)}function nF(){return function*(){yield xo(Eo,Q7)}}function rF(){return function*(){yield Ge(Jx,oF)}}function*oF(e){const t=Y.exports.get(globalThis,["wp","data","dispatch"]);t?iF(t,Y.exports.get(e,["payload"])):sF(e.payload)}function iF(e,{type:t,message:n}){!n||e("core/notices").createNotice(t,n,{type:"snackbar",isDismissible:!0})}function sF({type:e,message:t}){switch(e){case"success":case"info":console.log(t);break;case"warning":console.warn(t);break;case"error":console.error(t);break}}var Yx={};/*! For license information please see keyboard.js.LICENSE.txt */(()=>{var e={9620:(o,s)=>{function l(v){if(v&&typeof v=="object"){var y=v.which||v.keyCode||v.charCode;y&&(v=y)}if(typeof v=="number")return p[v];var _,w=String(v);return(_=a[w.toLowerCase()])?_:(_=c[w.toLowerCase()])||(w.length===1?w.charCodeAt(0):void 0)}l.isEventKey=function(v,y){if(v&&typeof v=="object"){var _=v.which||v.keyCode||v.charCode;if(_==null)return!1;if(typeof y=="string"){var w;if((w=a[y.toLowerCase()])||(w=c[y.toLowerCase()]))return w===_}else if(typeof y=="number")return y===_;return!1}};var a=(s=o.exports=l).code=s.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},c=s.aliases={windows:91,"\u21E7":16,"\u2325":18,"\u2303":17,"\u2318":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};for(f=97;f<123;f++)a[String.fromCharCode(f)]=f-32;for(var f=48;f<58;f++)a[f-48]=f;for(f=1;f<13;f++)a["f"+f]=f+111;for(f=0;f<10;f++)a["numpad "+f]=f+96;var p=s.names=s.title={};for(f in a)p[a[f]]=f;for(var h in c)a[h]=c[h]}},t={};function n(o){var s=t[o];if(s!==void 0)return s.exports;var l=t[o]={exports:{}};return e[o](l,l.exports,n),l.exports}n.n=o=>{var s=o&&o.__esModule?()=>o.default:()=>o;return n.d(s,{a:s}),s},n.d=(o,s)=>{for(var l in s)n.o(s,l)&&!n.o(o,l)&&Object.defineProperty(o,l,{enumerable:!0,get:s[l]})},n.o=(o,s)=>Object.prototype.hasOwnProperty.call(o,s),n.r=o=>{typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})};var r={};(()=>{function o(Q){return Q!=null&&typeof Q=="object"&&Q["@@functional/placeholder"]===!0}function s(Q){return function ae(fe){return arguments.length===0||o(fe)?ae:Q.apply(this,arguments)}}function l(Q){return function ae(fe,Se){switch(arguments.length){case 0:return ae;case 1:return o(fe)?ae:s(function(He){return Q(fe,He)});default:return o(fe)&&o(Se)?ae:o(fe)?s(function(He){return Q(He,Se)}):o(Se)?s(function(He){return Q(fe,He)}):Q(fe,Se)}}}n.r(r),n.d(r,{keydown:()=>Le,keyup:()=>Ke});const a=Number.isInteger||function(Q){return Q<<0===Q};function c(Q){return Object.prototype.toString.call(Q)==="[object String]"}const f=l(function(Q,ae){var fe=Q<0?ae.length+Q:Q;return c(ae)?ae.charAt(fe):ae[fe]}),p=l(function(Q,ae){return Q.map(function(fe){for(var Se,He=ae,De=0;De<fe.length;){if(He==null)return;Se=fe[De],He=a(Se)?f(Se,He):He[Se],De+=1}return He})}),h=l(function(Q,ae){return p([Q],ae)[0]}),v=l(function(Q,ae){return h([Q],ae)});function y(Q){return function ae(fe,Se,He){switch(arguments.length){case 0:return ae;case 1:return o(fe)?ae:l(function(De,tt){return Q(fe,De,tt)});case 2:return o(fe)&&o(Se)?ae:o(fe)?l(function(De,tt){return Q(De,Se,tt)}):o(Se)?l(function(De,tt){return Q(fe,De,tt)}):s(function(De){return Q(fe,Se,De)});default:return o(fe)&&o(Se)&&o(He)?ae:o(fe)&&o(Se)?l(function(De,tt){return Q(De,tt,He)}):o(fe)&&o(He)?l(function(De,tt){return Q(De,Se,tt)}):o(Se)&&o(He)?l(function(De,tt){return Q(fe,De,tt)}):o(fe)?s(function(De){return Q(De,Se,He)}):o(Se)?s(function(De){return Q(fe,De,He)}):o(He)?s(function(De){return Q(fe,Se,De)}):Q(fe,Se,He)}}}const _=l(function(Q,ae){return ae==null||ae!=ae?Q:ae}),w=y(function(Q,ae,fe){return _(Q,h(ae,fe))}),I=y(function(Q,ae,fe){return w(Q,[ae],fe)});function O(Q,ae){switch(Q){case 0:return function(){return ae.apply(this,arguments)};case 1:return function(fe){return ae.apply(this,arguments)};case 2:return function(fe,Se){return ae.apply(this,arguments)};case 3:return function(fe,Se,He){return ae.apply(this,arguments)};case 4:return function(fe,Se,He,De){return ae.apply(this,arguments)};case 5:return function(fe,Se,He,De,tt){return ae.apply(this,arguments)};case 6:return function(fe,Se,He,De,tt,vn){return ae.apply(this,arguments)};case 7:return function(fe,Se,He,De,tt,vn,ln){return ae.apply(this,arguments)};case 8:return function(fe,Se,He,De,tt,vn,ln,L){return ae.apply(this,arguments)};case 9:return function(fe,Se,He,De,tt,vn,ln,L,B){return ae.apply(this,arguments)};case 10:return function(fe,Se,He,De,tt,vn,ln,L,B,Z){return ae.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function S(Q,ae){return function(){return ae.call(this,Q.apply(this,arguments))}}const E=Array.isArray||function(Q){return Q!=null&&Q.length>=0&&Object.prototype.toString.call(Q)==="[object Array]"},T=s(function(Q){return!!E(Q)||!!Q&&typeof Q=="object"&&!c(Q)&&(Q.nodeType===1?!!Q.length:Q.length===0||Q.length>0&&Q.hasOwnProperty(0)&&Q.hasOwnProperty(Q.length-1))});var $=function(){function Q(ae){this.f=ae}return Q.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},Q.prototype["@@transducer/result"]=function(ae){return ae},Q.prototype["@@transducer/step"]=function(ae,fe){return this.f(ae,fe)},Q}();const P=l(function(Q,ae){return O(Q.length,function(){return Q.apply(ae,arguments)})});function k(Q,ae,fe){for(var Se=fe.next();!Se.done;){if((ae=Q["@@transducer/step"](ae,Se.value))&&ae["@@transducer/reduced"]){ae=ae["@@transducer/value"];break}Se=fe.next()}return Q["@@transducer/result"](ae)}function A(Q,ae,fe,Se){return Q["@@transducer/result"](fe[Se](P(Q["@@transducer/step"],Q),ae))}var H=typeof Symbol!="undefined"?Symbol.iterator:"@@iterator";function D(Q,ae,fe){if(typeof Q=="function"&&(Q=function(Se){return new $(Se)}(Q)),T(fe))return function(Se,He,De){for(var tt=0,vn=De.length;tt<vn;){if((He=Se["@@transducer/step"](He,De[tt]))&&He["@@transducer/reduced"]){He=He["@@transducer/value"];break}tt+=1}return Se["@@transducer/result"](He)}(Q,ae,fe);if(typeof fe["fantasy-land/reduce"]=="function")return A(Q,ae,fe,"fantasy-land/reduce");if(fe[H]!=null)return k(Q,ae,fe[H]());if(typeof fe.next=="function")return k(Q,ae,fe);if(typeof fe.reduce=="function")return A(Q,ae,fe,"reduce");throw new TypeError("reduce: list must be array or iterable")}const F=y(D);function z(Q,ae){return function(){var fe=arguments.length;if(fe===0)return ae();var Se=arguments[fe-1];return E(Se)||typeof Se[Q]!="function"?ae.apply(this,arguments):Se[Q].apply(Se,Array.prototype.slice.call(arguments,0,fe-1))}}const K=s(z("tail",y(z("slice",function(Q,ae,fe){return Array.prototype.slice.call(fe,Q,ae)}))(1,1/0)));function te(){if(arguments.length===0)throw new Error("pipe requires at least one argument");return O(arguments[0].length,F(S,arguments[0],K(arguments)))}const we=s(function(Q){return c(Q)?Q.split("").reverse().join(""):Array.prototype.slice.call(Q,0).reverse()});function be(){if(arguments.length===0)throw new Error("compose requires at least one argument");return te.apply(this,we(arguments))}var Oe=n(9620),Ae=n.n(Oe);const Ye=Q=>ae=>{v("nodeName",ae.target)==="BODY"&&Q(ae)},ft=Q=>({key:Ae()(Q),ctrl:I(!1,"ctrlKey",Q),shift:I(!1,"shiftKey",Q),meta:I(!1,"metaKey",Q),alt:I(!1,"altKey",Q)}),Le=Q=>document.addEventListener("keydown",Ye(be(Q,ft))),Ke=Q=>document.addEventListener("keyup",Ye(be(Q,ft)))})(),Yx.utils=r})();function lF(e){const t=/^([\d\.:]+)\s(.*)$/;return e.trim().split(/(\r?\n)/).reduce(function(n,r){var o=r.match(t);if(o){var s=La(o[1]);s!==null&&n.push({title:o[2].trim(),start:s})}return n},[])}function aF(e){const t=/^([\d\.,]+)\s+([\d\.,]+)\s+(.*)$/;return e.trim().split(/(\r\n|\r|\n)/).reduce(function(n,r){var o=r.match(t);if(o){var s=La(o[1].replace(",",".")),l=o[3].trim();s!==null&&n.push({title:l,start:s})}return n},[])}function uF(e){const r=new window.DOMParser().parseFromString(e,"text/xml").getElementsByTagName("Marker");let o=Array.from(r).reduce((s,l)=>{var p;if(!l||!l.getAttribute("Type")||((p=l.getAttribute("Type"))==null?void 0:p.toLowerCase())!=="chapter")return s;const a=La(l.getAttribute("Time")||""),c=l.getAttribute("Name")||"",f=l.getAttribute("URL")||"";return a!==null&&s.push({start:a,title:c.trim(),...f?{href:f.trim()}:{}}),s},[]);return o.sort(function(s,l){return s.start-l.start}),o}function cF(e){const r=new window.DOMParser().parseFromString(e,"text/xml").getElementsByTagNameNS("http://podlove.org/simple-chapters","chapter");return Array.from(r).reduce((o,s)=>{var l=La(s.getAttribute("start")||""),a=s.getAttribute("title")||"",c=s.getAttribute("href")||"",f=s.getAttribute("image")||"";return l!==null&&o.push({start:l,title:a.trim(),...c?{href:c.trim()}:{},...f?{image:f.trim()}:{}}),o},[])}const Zx=Y.exports.get(window,["wp","i18n","__"],e=>e),dF=Zx;var fF={install(e){e.config.globalProperties.__=(t,n)=>Zx(t,n)}};function*pF(){const e=yield Go();yield Dt(hF,e),yield Ge([PE],bF),yield Ge(RE,vF),yield Ge([Qm,nv,tv,ev,ov],mF,e);const t=yield Zn(xh,Yx.utils.keydown);yield Ge(t,_F),yield Ge(rv,wF)}function*hF(e){const t=yield Te(G.episode.id),{result:n}=yield e.get(`chapters/${t}`);n&&(yield Ie(rD(n.chapters.map(r=>({...r,start:Nt.fromString(r.start).totalMs})))))}function*mF(e){const t=yield Te(G.episode.id),n=yield Te(G.chapters.list);yield e.put(`chapters/${t}`,{chapters:n.map(r=>({...r,start:new Nt(r.start).pretty}))})}function*vF(e){const t=yield Te(G.chapters.list);switch(e.payload){case"psc":h1("chapters.psc",gF(t));break;case"mp4":h1("chapters.txt",yF(t));break}}function gF(e){const t=new XMLSerializer,n='<psc:chapters version="1.2" xmlns:psc="http://podlove.org/simple-chapters"/>',o=new DOMParser().parseFromString(n,"text/xml");let s=o.getElementsByTagName("chapters");return s.length||(s=o.getElementsByTagName("psc:chapters")),s=s[0],e.forEach(c=>{let f=o.createElement("psc:chapter");f.setAttribute("title",c.title||""),f.setAttribute("start",c.start?new Nt(c.start).pretty:"00:00:00"),c.href&&f.setAttribute("href",c.href),c.image&&f.setAttribute("image",c.image),s.appendChild(f)}),t.serializeToString(o).replace(/\<psc:chapter\s/gi,`46 }`;var st=Fy(function(){return Et(C,Ne+"return "+de).apply(n,R)});if(st.source=de,Zf(st))throw st;return st}function DI(i){return Ct(i).toLowerCase()}function FI(i){return Ct(i).toUpperCase()}function BI(i,u,d){if(i=Ct(i),i&&(d||u===n))return Kg(i);if(!i||!(u=lr(u)))return i;var m=Hr(i),b=Hr(u),C=Gg(m,b),R=Xg(m,b)+1;return ni(m,C,R).join("")}function UI(i,u,d){if(i=Ct(i),i&&(d||u===n))return i.slice(0,Yg(i)+1);if(!i||!(u=lr(u)))return i;var m=Hr(i),b=Xg(m,Hr(u))+1;return ni(m,0,b).join("")}function jI(i,u,d){if(i=Ct(i),i&&(d||u===n))return i.replace(Yd,"");if(!i||!(u=lr(u)))return i;var m=Hr(i),b=Gg(m,Hr(u));return ni(m,b).join("")}function HI(i,u){var d=D,m=F;if(Kt(u)){var b="separator"in u?u.separator:b;d="length"in u?ot(u.length):d,m="omission"in u?lr(u.omission):m}i=Ct(i);var C=i.length;if(_s(i)){var R=Hr(i);C=R.length}if(d>=C)return i;var M=d-ws(m);if(M<1)return m;var W=R?ni(R,0,M).join(""):i.slice(0,M);if(b===n)return W+m;if(R&&(M+=W.length-M),Qf(b)){if(i.slice(M).search(b)){var re,oe=W;for(b.global||(b=mf(b.source,Ct(mg.exec(b))+"g")),b.lastIndex=0;re=b.exec(oe);)var de=re.index;W=W.slice(0,de===n?M:de)}}else if(i.indexOf(lr(b),M)!=M){var Ce=W.lastIndexOf(b);Ce>-1&&(W=W.slice(0,Ce))}return W+m}function VI(i){return i=Ct(i),i&&eC.test(i)?i.replace(fg,yT):i}var WI=Os(function(i,u,d){return i+(d?" ":"")+u.toUpperCase()}),np=B0("toUpperCase");function Dy(i,u,d){return i=Ct(i),u=d?n:u,u===n?pT(i)?wT(i):oT(i):i.match(u)||[]}var Fy=at(function(i,u){try{return ir(i,n,u)}catch(d){return Zf(d)?d:new Ze(d)}}),zI=Io(function(i,u){return wr(u,function(d){d=po(d),Oo(i,d,Jf(i[d],i))}),i});function qI(i){var u=i==null?0:i.length,d=Ve();return i=u?Vt(i,function(m){if(typeof m[1]!="function")throw new Sr(l);return[d(m[0]),m[1]]}):[],at(function(m){for(var b=-1;++b<u;){var C=i[b];if(ir(C[0],this,m))return ir(C[1],this,m)}})}function KI(i){return yO(xr(i,h))}function rp(i){return function(){return i}}function GI(i,u){return i==null||i!==i?u:i}var XI=j0(),JI=j0(!0);function Gn(i){return i}function op(i){return g0(typeof i=="function"?i:xr(i,h))}function YI(i){return b0(xr(i,h))}function ZI(i,u){return _0(i,xr(u,h))}var QI=at(function(i,u){return function(d){return bl(d,i,u)}}),eP=at(function(i,u){return function(d){return bl(i,d,u)}});function ip(i,u,d){var m=pn(u),b=hu(u,m);d==null&&!(Kt(u)&&(b.length||!m.length))&&(d=u,u=i,i=this,b=hu(u,pn(u)));var C=!(Kt(d)&&"chain"in d)||!!d.chain,R=ko(i);return wr(b,function(M){var W=u[M];i[M]=W,R&&(i.prototype[M]=function(){var re=this.__chain__;if(C||re){var oe=i(this.__wrapped__),de=oe.__actions__=zn(this.__actions__);return de.push({func:W,args:arguments,thisArg:i}),oe.__chain__=re,oe}return W.apply(i,Jo([this.value()],arguments))})}),i}function tP(){return yn._===this&&(yn._=TT),this}function sp(){}function nP(i){return i=ot(i),at(function(u){return w0(u,i)})}var rP=Df(Vt),oP=Df(Hg),iP=Df(af);function By(i){return Wf(i)?uf(po(i)):NO(i)}function sP(i){return function(u){return i==null?n:ki(i,u)}}var lP=V0(),aP=V0(!0);function lp(){return[]}function ap(){return!1}function uP(){return{}}function cP(){return""}function dP(){return!0}function fP(i,u){if(i=ot(i),i<1||i>Ae)return[];var d=Le,m=Cn(i,Le);u=Ve(u),i-=Le;for(var b=ff(m,u);++d<i;)u(d);return b}function pP(i){return Qe(i)?Vt(i,po):ar(i)?[i]:zn(iy(Ct(i)))}function hP(i){var u=++$T;return Ct(i)+u}var mP=_u(function(i,u){return i+u},0),vP=Ff("ceil"),gP=_u(function(i,u){return i/u},1),yP=Ff("floor");function bP(i){return i&&i.length?pu(i,Gn,Ef):n}function _P(i,u){return i&&i.length?pu(i,Ve(u,2),Ef):n}function wP(i){return zg(i,Gn)}function SP(i,u){return zg(i,Ve(u,2))}function EP(i){return i&&i.length?pu(i,Gn,Tf):n}function xP(i,u){return i&&i.length?pu(i,Ve(u,2),Tf):n}var $P=_u(function(i,u){return i*u},1),CP=Ff("round"),TP=_u(function(i,u){return i-u},0);function OP(i){return i&&i.length?df(i,Gn):0}function AP(i,u){return i&&i.length?df(i,Ve(u,2)):0}return x.after=YA,x.ary=vy,x.assign=F3,x.assignIn=Iy,x.assignInWith=Ru,x.assignWith=B3,x.at=U3,x.before=gy,x.bind=Jf,x.bindAll=zI,x.bindKey=yy,x.castArray=u3,x.chain=py,x.chunk=y5,x.compact=b5,x.concat=_5,x.cond=qI,x.conforms=KI,x.constant=rp,x.countBy=OA,x.create=j3,x.curry=by,x.curryRight=_y,x.debounce=wy,x.defaults=H3,x.defaultsDeep=V3,x.defer=ZA,x.delay=QA,x.difference=w5,x.differenceBy=S5,x.differenceWith=E5,x.drop=x5,x.dropRight=$5,x.dropRightWhile=C5,x.dropWhile=T5,x.fill=O5,x.filter=IA,x.flatMap=RA,x.flatMapDeep=LA,x.flatMapDepth=NA,x.flatten=uy,x.flattenDeep=A5,x.flattenDepth=I5,x.flip=e3,x.flow=XI,x.flowRight=JI,x.fromPairs=P5,x.functions=J3,x.functionsIn=Y3,x.groupBy=MA,x.initial=R5,x.intersection=L5,x.intersectionBy=N5,x.intersectionWith=M5,x.invert=Q3,x.invertBy=eI,x.invokeMap=FA,x.iteratee=op,x.keyBy=BA,x.keys=pn,x.keysIn=Kn,x.map=Tu,x.mapKeys=nI,x.mapValues=rI,x.matches=YI,x.matchesProperty=ZI,x.memoize=Au,x.merge=oI,x.mergeWith=Py,x.method=QI,x.methodOf=eP,x.mixin=ip,x.negate=Iu,x.nthArg=nP,x.omit=iI,x.omitBy=sI,x.once=t3,x.orderBy=UA,x.over=rP,x.overArgs=n3,x.overEvery=oP,x.overSome=iP,x.partial=Yf,x.partialRight=Sy,x.partition=jA,x.pick=lI,x.pickBy=ky,x.property=By,x.propertyOf=sP,x.pull=U5,x.pullAll=dy,x.pullAllBy=j5,x.pullAllWith=H5,x.pullAt=V5,x.range=lP,x.rangeRight=aP,x.rearg=r3,x.reject=WA,x.remove=W5,x.rest=o3,x.reverse=Gf,x.sampleSize=qA,x.set=uI,x.setWith=cI,x.shuffle=KA,x.slice=z5,x.sortBy=JA,x.sortedUniq=Z5,x.sortedUniqBy=Q5,x.split=RI,x.spread=i3,x.tail=eA,x.take=tA,x.takeRight=nA,x.takeRightWhile=rA,x.takeWhile=oA,x.tap=bA,x.throttle=s3,x.thru=Cu,x.toArray=Ty,x.toPairs=Ry,x.toPairsIn=Ly,x.toPath=pP,x.toPlainObject=Ay,x.transform=dI,x.unary=l3,x.union=iA,x.unionBy=sA,x.unionWith=lA,x.uniq=aA,x.uniqBy=uA,x.uniqWith=cA,x.unset=fI,x.unzip=Xf,x.unzipWith=fy,x.update=pI,x.updateWith=hI,x.values=Ps,x.valuesIn=mI,x.without=dA,x.words=Dy,x.wrap=a3,x.xor=fA,x.xorBy=pA,x.xorWith=hA,x.zip=mA,x.zipObject=vA,x.zipObjectDeep=gA,x.zipWith=yA,x.entries=Ry,x.entriesIn=Ly,x.extend=Iy,x.extendWith=Ru,ip(x,x),x.add=mP,x.attempt=Fy,x.camelCase=bI,x.capitalize=Ny,x.ceil=vP,x.clamp=vI,x.clone=c3,x.cloneDeep=f3,x.cloneDeepWith=p3,x.cloneWith=d3,x.conformsTo=h3,x.deburr=My,x.defaultTo=GI,x.divide=gP,x.endsWith=_I,x.eq=Wr,x.escape=wI,x.escapeRegExp=SI,x.every=AA,x.find=PA,x.findIndex=ly,x.findKey=W3,x.findLast=kA,x.findLastIndex=ay,x.findLastKey=z3,x.floor=yP,x.forEach=hy,x.forEachRight=my,x.forIn=q3,x.forInRight=K3,x.forOwn=G3,x.forOwnRight=X3,x.get=ep,x.gt=m3,x.gte=v3,x.has=Z3,x.hasIn=tp,x.head=cy,x.identity=Gn,x.includes=DA,x.indexOf=k5,x.inRange=gI,x.invoke=tI,x.isArguments=Ni,x.isArray=Qe,x.isArrayBuffer=g3,x.isArrayLike=qn,x.isArrayLikeObject=Qt,x.isBoolean=y3,x.isBuffer=ri,x.isDate=b3,x.isElement=_3,x.isEmpty=w3,x.isEqual=S3,x.isEqualWith=E3,x.isError=Zf,x.isFinite=x3,x.isFunction=ko,x.isInteger=Ey,x.isLength=Pu,x.isMap=xy,x.isMatch=$3,x.isMatchWith=C3,x.isNaN=T3,x.isNative=O3,x.isNil=I3,x.isNull=A3,x.isNumber=$y,x.isObject=Kt,x.isObjectLike=Gt,x.isPlainObject=$l,x.isRegExp=Qf,x.isSafeInteger=P3,x.isSet=Cy,x.isString=ku,x.isSymbol=ar,x.isTypedArray=Is,x.isUndefined=k3,x.isWeakMap=R3,x.isWeakSet=L3,x.join=D5,x.kebabCase=EI,x.last=Cr,x.lastIndexOf=F5,x.lowerCase=xI,x.lowerFirst=$I,x.lt=N3,x.lte=M3,x.max=bP,x.maxBy=_P,x.mean=wP,x.meanBy=SP,x.min=EP,x.minBy=xP,x.stubArray=lp,x.stubFalse=ap,x.stubObject=uP,x.stubString=cP,x.stubTrue=dP,x.multiply=$P,x.nth=B5,x.noConflict=tP,x.noop=sp,x.now=Ou,x.pad=CI,x.padEnd=TI,x.padStart=OI,x.parseInt=AI,x.random=yI,x.reduce=HA,x.reduceRight=VA,x.repeat=II,x.replace=PI,x.result=aI,x.round=CP,x.runInContext=j,x.sample=zA,x.size=GA,x.snakeCase=kI,x.some=XA,x.sortedIndex=q5,x.sortedIndexBy=K5,x.sortedIndexOf=G5,x.sortedLastIndex=X5,x.sortedLastIndexBy=J5,x.sortedLastIndexOf=Y5,x.startCase=LI,x.startsWith=NI,x.subtract=TP,x.sum=OP,x.sumBy=AP,x.template=MI,x.times=fP,x.toFinite=Ro,x.toInteger=ot,x.toLength=Oy,x.toLower=DI,x.toNumber=Tr,x.toSafeInteger=D3,x.toString=Ct,x.toUpper=FI,x.trim=BI,x.trimEnd=UI,x.trimStart=jI,x.truncate=HI,x.unescape=VI,x.uniqueId=hP,x.upperCase=WI,x.upperFirst=np,x.each=hy,x.eachRight=my,x.first=cy,ip(x,function(){var i={};return co(x,function(u,d){Ot.call(x.prototype,d)||(i[d]=u)}),i}(),{chain:!1}),x.VERSION=r,wr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(i){x[i].placeholder=x}),wr(["drop","take"],function(i,u){ht.prototype[i]=function(d){d=d===n?1:un(ot(d),0);var m=this.__filtered__&&!u?new ht(this):this.clone();return m.__filtered__?m.__takeCount__=Cn(d,m.__takeCount__):m.__views__.push({size:Cn(d,Le),type:i+(m.__dir__<0?"Right":"")}),m},ht.prototype[i+"Right"]=function(d){return this.reverse()[i](d).reverse()}}),wr(["filter","map","takeWhile"],function(i,u){var d=u+1,m=d==te||d==be;ht.prototype[i]=function(b){var C=this.clone();return C.__iteratees__.push({iteratee:Ve(b,3),type:d}),C.__filtered__=C.__filtered__||m,C}}),wr(["head","last"],function(i,u){var d="take"+(u?"Right":"");ht.prototype[i]=function(){return this[d](1).value()[0]}}),wr(["initial","tail"],function(i,u){var d="drop"+(u?"":"Right");ht.prototype[i]=function(){return this.__filtered__?new ht(this):this[d](1)}}),ht.prototype.compact=function(){return this.filter(Gn)},ht.prototype.find=function(i){return this.filter(i).head()},ht.prototype.findLast=function(i){return this.reverse().find(i)},ht.prototype.invokeMap=at(function(i,u){return typeof i=="function"?new ht(this):this.map(function(d){return bl(d,i,u)})}),ht.prototype.reject=function(i){return this.filter(Iu(Ve(i)))},ht.prototype.slice=function(i,u){i=ot(i);var d=this;return d.__filtered__&&(i>0||u<0)?new ht(d):(i<0?d=d.takeRight(-i):i&&(d=d.drop(i)),u!==n&&(u=ot(u),d=u<0?d.dropRight(-u):d.take(u-i)),d)},ht.prototype.takeRightWhile=function(i){return this.reverse().takeWhile(i).reverse()},ht.prototype.toArray=function(){return this.take(Le)},co(ht.prototype,function(i,u){var d=/^(?:filter|find|map|reject)|While$/.test(u),m=/^(?:head|last)$/.test(u),b=x[m?"take"+(u=="last"?"Right":""):u],C=m||/^find/.test(u);!b||(x.prototype[u]=function(){var R=this.__wrapped__,M=m?[1]:arguments,W=R instanceof ht,re=M[0],oe=W||Qe(R),de=function(pt){var vt=b.apply(x,Jo([pt],M));return m&&Ce?vt[0]:vt};oe&&d&&typeof re=="function"&&re.length!=1&&(W=oe=!1);var Ce=this.__chain__,Ne=!!this.__actions__.length,We=C&&!Ce,st=W&&!Ne;if(!C&&oe){R=st?R:new ht(this);var ze=i.apply(R,M);return ze.__actions__.push({func:Cu,args:[de],thisArg:n}),new Er(ze,Ce)}return We&&st?i.apply(this,M):(ze=this.thru(de),We?m?ze.value()[0]:ze.value():ze)})}),wr(["pop","push","shift","sort","splice","unshift"],function(i){var u=Za[i],d=/^(?:push|sort|unshift)$/.test(i)?"tap":"thru",m=/^(?:pop|shift)$/.test(i);x.prototype[i]=function(){var b=arguments;if(m&&!this.__chain__){var C=this.value();return u.apply(Qe(C)?C:[],b)}return this[d](function(R){return u.apply(Qe(R)?R:[],b)})}}),co(ht.prototype,function(i,u){var d=x[u];if(d){var m=d.name+"";Ot.call($s,m)||($s[m]=[]),$s[m].push({name:u,func:d})}}),$s[bu(n,O).name]=[{name:"wrapper",func:n}],ht.prototype.clone=VT,ht.prototype.reverse=WT,ht.prototype.value=zT,x.prototype.at=_A,x.prototype.chain=wA,x.prototype.commit=SA,x.prototype.next=EA,x.prototype.plant=$A,x.prototype.reverse=CA,x.prototype.toJSON=x.prototype.valueOf=x.prototype.value=TA,x.prototype.first=x.prototype.head,fl&&(x.prototype[fl]=xA),x},Ss=ST();Ti?((Ti.exports=Ss)._=Ss,rf._=Ss):yn._=Ss}).call(Al)})(Y,Y.exports);const YM={chapters:[],selected:null},AE="podlove/publisher/chapter/INIT",Qm="podlove/publisher/chapter/UPDATE",IE="podlove/publisher/chapter/SELECT",ev="podlove/publisher/chapter/REMOVE",tv="podlove/publisher/chapter/ADD",PE="podlove/publisher/chapter/PARSE",nv="podlove/publisher/chapter/PARSED",kE="podlove/publisher/chapter/SET",RE="podlove/publisher/chapter/DOWNLOAD",rv="podlove/publisher/chapter/SELECT_IMAGE",ov="podlove/publisher/chapter/SET_IMAGE",ZM=ge(AE),QM=ge(Qm),di=ge(IE),eD=ge(ev),tD=ge(tv),nD=ge(PE),LE=ge(nv),rD=ge(kE),oD=ge(RE),iD=ge(rv);ge(ov);const sD=or({[nv]:(e,t)=>({...e,selected:null,chapters:Y.exports.get(t,["payload"],[])}),[kE]:(e,t)=>({...e,selected:null,chapters:Y.exports.get(t,["payload"],[])}),[Qm]:(e,t)=>{let n=NE(e);const r=ME(e),s=e.chapters.reduce((a,c,f)=>[...a,f===t.payload.index?{...c,...t.payload.chapter}:c],[]).sort((a,c)=>a.start-c.start),l=s.findIndex(a=>r&&a.title==r.title);return{...e,chapters:s,selected:l>=0?l:n}},[IE]:(e,t)=>({...e,selected:t.payload}),[tv]:e=>({...e,chapters:[...e.chapters,{start:Y.exports.get(e,["chapters",e.chapters.length-1,"start"],0),title:"",href:"",image:""}]}),[ev]:(e,t)=>({...e,selected:null,chapters:e.chapters.filter((n,r)=>r!==t.payload)}),[ov]:(e,t)=>({...e,chapters:e.chapters.map((n,r)=>r!==e.selected?n:{...n,image:t.payload})})},YM),lD=e=>e.chapters,NE=e=>e.selected,ME=e=>e.selected!==null?Y.exports.get(e,["chapters",e.selected],null):null,$p={chapters:lD,selectedIndex:NE,selected:ME},Cp=function(e){if(!e)return 0;switch(e.length){case 0:return 0;case 1:return parseInt(e,10)*100;case 2:return parseInt(e,10)*10;default:return parseInt(e.substr(0,3),10)}},La=function(e){e=(e||"").trim();const t=/^(\d+)(?:\.(\d+))?$/,n=/^(\d+):(\d\d?)(?:\.(\d+))?$/,r=/^(\d+):(\d\d?):(\d\d?)(?:\.(\d+))?$/;let o,s=0,l=0,a=0,c=0;if(o=e.match(t))s=Cp(o[2]),l=o[1]?parseInt(o[1],10):0;else if(o=e.match(n))s=Cp(o[3]),l=o[2]?parseInt(o[2],10):0,a=o[1]?parseInt(o[1],10):0;else if(o=e.match(r))s=Cp(o[4]),l=o[3]?parseInt(o[3],10):0,a=o[2]?parseInt(o[2],10):0,c=o[1]?parseInt(o[1],10):0;else return null;return((c*60+a)*60+l)*1e3+s};class Nt{constructor(t){this.totalMs=t}get totalSeconds(){return Math.floor(this.totalMs/1e3)}get totalMinutes(){return Math.floor(this.totalSeconds/60)}get totalHours(){return Math.floor(this.totalMinutes/60)}get milliseconds(){return this.totalMs%1e3}get seconds(){return this.totalSeconds%60}get minutes(){return this.totalMinutes%60}get hours(){return this.totalHours%60}get pretty(){return this.pad(this.totalHours)+":"+this.pad(this.minutes)+":"+this.pad(this.seconds)+"."+this.pad(this.milliseconds,"000")}get prettyShort(){return this.totalHours?this.pad(this.totalHours)+":"+this.pad(this.minutes)+":"+this.pad(this.seconds):this.pad(this.minutes)+":"+this.pad(this.seconds)}pad(t,n="00"){let r=""+t;return r.length<n.length?n.substring(0,n.length-r.length)+r:t}static fromString(t){let n=0;return t==parseInt(t,10)?n=parseInt(t,10):n=La(t)||0,new Nt(n)}}const s1=(e,t,n)=>{const r=[...e];return r.splice(n,0,r.splice(t,1)[0]),r},DE="podlove/publisher/episode/INIT",Ys="podlove/publisher/episode/UPDATE",FE="podlove/publisher/episode/QUICKSAVE",BE="podlove/publisher/episode/SAVED",UE="podlove/publisher/episode/SLUG_CHANGED",Td="podlove/publisher/episode/SET",jE="podlove/publisher/episode/SET_POSTER",HE="podlove/publisher/episode/SELECT_POSTER",iv="podlove/publisher/episode/MOVE_CONTRIBUTION_UP",sv="podlove/publisher/episode/MOVE_CONTRIBUTION_DOWN",lv="podlove/publisher/episode/DELETE_CONTRIBUTION",av="podlove/publisher/episode/UPDATE_CONTRIBUTION",uv="podlove/publisher/episode/ADD_CONTRIBUTION",VE="podlove/publisher/episode/CREATE_CONTRIBUTION",aD={id:null,slug:null,duration:null,number:null,subtitle:null,title:null,summary:null,type:null,episode_poster:null,poster:null,mnemonic:null,explicit:null,auphonic_production_id:null,auphonic_webhook_config:null,soundbite_start:null,soundbite_duration:null,soundbite_title:null,contributions:[],license_name:null,license_url:null,show:null},$t=ge(Ys),uD=ge(FE),Od=ge(DE),cD=ge(HE),WE=ge(Td),dD=ge(iv),fD=ge(sv),pD=ge(lv),Tp=ge(av),zE=ge(uv),hD=ge(VE),mD=ge(BE),vD=ge(UE),gD=or({[Eo]:(e,t)=>({...e,id:Y.exports.get(t,["payload","episode","id"],null),duration:Nt.fromString(Y.exports.get(t,["payload","episode","duration"],null)).totalMs}),[Ys]:(e,t)=>{const n=Y.exports.get(t,["payload","prop"]),r=Y.exports.get(t,["payload","value"],null);return["title","subtitle","summary","duration","slug","auphonic_webhook_config","soundbite_start","soundbite_duration","soundbite_title","license_name","license_url","show","number","episode_poster"].includes(n)?{...e,[n]:r}:(console.debug("todo",n,r),{...e})},[Td]:(e,t)=>({...e,slug:Y.exports.get(t,["payload","slug"],e.slug),number:Y.exports.get(t,["payload","number"],e.number),duration:Y.exports.get(t,["payload","duration"],e.duration),title:Y.exports.get(t,["payload","title_clean"],e.title),subtitle:Y.exports.get(t,["payload","subtitle"],e.subtitle),summary:Y.exports.get(t,["payload","summary"],e.summary),type:Y.exports.get(t,["payload","type"],e.type),episode_poster:Y.exports.get(t,["payload","episode_poster"],e.episode_poster),poster:Y.exports.get(t,["payload","poster"],e.poster),mnemonic:Y.exports.get(t,["payload","mnemonic"],e.mnemonic),explicit:Y.exports.get(t,["payload","explicit"],e.explicit),auphonic_production_id:Y.exports.get(t,["payload","auphonic_production_id"],e.auphonic_production_id),auphonic_webhook_config:Y.exports.get(t,["payload","auphonic_webhook_config"],e.auphonic_webhook_config),soundbite_start:Y.exports.get(t,["payload","soundbite_start"],e.soundbite_start),soundbite_duration:Y.exports.get(t,["payload","soundbite_duration"],e.soundbite_duration),soundbite_title:Y.exports.get(t,["payload","soundbite_title"],e.soundbite_title),license_name:Y.exports.get(t,["payload","license_name"],e.license_name),license_url:Y.exports.get(t,["payload","license_url"],e.license_url),contributions:Y.exports.get(t,["payload","contributions"],e.contributions),show:Y.exports.get(t,["payload","show"],e.show)}),[iv]:(e,t)=>{const n=e.contributions.findIndex(r=>r.position===Y.exports.get(t,["payload","position"]));return n<1?e:{...e,contributions:s1(e.contributions,n,n-1).map((r,o)=>({...r,position:o}))}},[sv]:(e,t)=>{const n=e.contributions.findIndex(r=>r.position===Y.exports.get(t,["payload","position"]));return n>e.contributions.length?e:{...e,contributions:s1(e.contributions,n,n+1).map((r,o)=>({...r,position:o}))}},[lv]:(e,t)=>({...e,contributions:e.contributions.filter(({position:n})=>Y.exports.get(t,["payload","position"])!==n).map((n,r)=>({...n,position:r}))}),[av]:(e,t)=>({...e,contributions:e.contributions.map(n=>n.contributor_id!==Y.exports.get(t,["payload","contributor_id"])?n:Y.exports.pick(Y.exports.get(t,["payload"],{}),["id","contributor_id","role_id","group_id","position","comment"]))}),[uv]:(e,t)=>({...e,contributions:[...e.contributions,{id:null,contributor_id:Y.exports.get(t,["payload","id"],null),role_id:null,group_id:null,position:e.contributions.length,comment:null}]})},aD),tn={id:e=>e.id,slug:e=>e.slug,duration:e=>e.duration,number:e=>e.number,title:e=>e.title,subtitle:e=>e.subtitle,summary:e=>e.summary,type:e=>e.type,poster:e=>e.poster,episodePoster:e=>e.episode_poster,mnemonic:e=>e.mnemonic,explicit:e=>e.explicit,auphonicProductionId:e=>e.auphonic_production_id,auphonicWebhookConfig:e=>e.auphonic_webhook_config,soundbite_start:e=>e.soundbite_start,soundbite_duration:e=>e.soundbite_duration,soundbite_title:e=>e.soundbite_title,license_name:e=>e.license_name,license_url:e=>e.license_url,contributions:e=>e.contributions,currentShow:e=>e.show},yD={baseUrl:null,api:{nonce:null,base:null,auth:null,bearer:null}},bD=or({[Eo]:(e,t)=>({...e,baseUrl:Y.exports.get(t,["payload","baseUrl"],null),api:{base:Y.exports.get(t,["payload","api","base"],null),nonce:Y.exports.get(t,["payload","api","nonce"],null),auth:Y.exports.get(t,["payload","api","auth"],null),bearer:Y.exports.get(t,["payload","api","bearer"],null)}})},yD),Il={baseUrl:e=>e.baseUrl,nonce:e=>e.api.nonce,base:e=>e.api.base,auth:e=>e.api.auth,bearer:e=>e.api.bearer},cv="podlove/publisher/wordpress/UPDATE",qE="podlove/publisher/wordpress/SELECT_MEDIA_FROM_LIBRARY",KE=ge(cv),dv=ge(qE),_D={id:null,title:null},wD=or({[Eo]:(e,t)=>({...e,id:Y.exports.get(t,["payload","post","id"],null),title:Y.exports.get(t,["payload","post","title"],null)}),[cv]:(e,t)=>t.payload.prop!=="title"?e:{...e,title:t.payload.value}},_D),l1={id:e=>e.id,title:e=>e.title},GE="podlove/publisher/transcript/INIT",XE="podlove/publisher/transcript/SET_TRANSCRIPTS",JE="podlove/publisher/transcript/SET_VOICES",fv="podlove/publisher/transcript/UPDATE_VOICE",YE="podlove/publisher/transcript/IMPORT_TRANSCRIPTS",ZE="podlove/publisher/transcript/IMPORT_ASSET_TRANSCRIPTS",QE="podlove/publisher/transcript/DELETE_TRANSCRIPTS",SD=ge(GE),ED=ge(XE),xD=ge(JE),$D=ge(fv),CD=ge(YE),TD=ge(ZE),OD=ge(QE),AD={transcripts:[],voices:[]},ID=or({[XE]:(e,t)=>({...e,transcripts:t.payload}),[JE]:(e,t)=>({...e,voices:t.payload.map(n=>({voice:n.voice,contributor:n.contributor_id}))}),[fv]:(e,t)=>({...e,voices:e.voices.map(n=>n.voice===t.payload.voice?{...n,contributor:t.payload.contributor}:n)})},AD),a1={transcripts:e=>e.transcripts,voices:e=>e.voices},PD={contributors:[],roles:[],groups:[]},ex="podlove/publisher/contributors/INIT",tx="podlove/publisher/contributors/SET_CONTRIBUTORS",nx="podlove/publisher/contributors/SET_ROLES",rx="podlove/publisher/contributors/SET_GROUPS",ox="podlove/publisher/contributors/ADD",ix=ge(ex),kD=ge(tx),RD=ge(nx),LD=ge(rx),ND=ge(ox),MD=or({[tx]:(e,t)=>({...e,contributors:t.payload}),[nx]:(e,t)=>({...e,roles:t.payload}),[rx]:(e,t)=>({...e,groups:t.payload}),[ox]:(e,t)=>({...e,contributors:[...e.contributors,t.payload]})},PD),Op={contributors:e=>e.contributors,roles:e=>e.roles,groups:e=>e.groups},DD={metadata:{enable_episode_explicit:null,enable_episode_license:null,enable_episode_recording_date:null},tracking:{mode:null,window:null},website:{blog_title_template:null,custom_episode_slug:null,enable_generated_blog_post_title:null,episode_archive:null,episode_archive_slug:null,episode_number_padding:null,feeds_skip_redirect:null,hide_wp_feed_discovery:null,landing_page:null,merge_episodes:null,ssl_verify_peer:null,url_template:null,use_post_permastruct:null},assets:{image:null,chapter:null,transcript:null},media:{base_uri:null},modules:[]},FD=e=>{switch(e){case"0":return"podcast-cover";case"post-thumbnail":return"post-thumbnail";case"manual":return"manual";default:return null}},BD=e=>{switch(e){case"0":return"none";case"manual":return"manual";default:return null}},UD=or({[Eo]:(e,t)=>({...e,metadata:{enable_episode_explicit:Y.exports.get(t,["payload","expert_settings","metadata","enable_episode_explicit"],null)==="1",enable_episode_license:Y.exports.get(t,["payload","expert_settings","metadata","enable_episode_license"],null)==="1",enable_episode_recording_date:Y.exports.get(t,["payload","expert_settings","metadata","enable_episode_license"],null)==="1"},tracking:{mode:Y.exports.get(t,["payload","expert_settings","tracking","mode"],null),window:Y.exports.get(t,["payload","expert_settings","tracking","mode"],null)},media:{base_uri:Y.exports.get(t,["payload","media","base_uri"],null)},website:{blog_title_template:Y.exports.get(t,["payload","expert_settings","website","blog_title_template"],null),custom_episode_slug:Y.exports.get(t,["payload","expert_settings","website","custom_episode_slug"],null),enable_generated_blog_post_title:Y.exports.get(t,["payload","expert_settings","website","enable_generated_blog_post_title"],null)==="on",episode_archive:Y.exports.get(t,["payload","expert_settings","website","episode_archive"],null)==="on",episode_archive_slug:Y.exports.get(t,["payload","expert_settings","website","episode_archive_slug"],null),episode_number_padding:Y.exports.get(t,["payload","expert_settings","website","episode_number_padding"],null),feeds_skip_redirect:Y.exports.get(t,["payload","expert_settings","website","feeds_skip_redirect"],null)==="on",hide_wp_feed_discovery:Y.exports.get(t,["payload","expert_settings","website","hide_wp_feed_discovery"],null)==="on",landing_page:Y.exports.get(t,["payload","expert_settings","website","landing_page"],null),merge_episodes:Y.exports.get(t,["payload","expert_settings","website","merge_episodes"],null)==="on",ssl_verify_peer:Y.exports.get(t,["payload","expert_settings","website","ssl_verify_peer"],null)==="on",url_template:Y.exports.get(t,["payload","expert_settings","website","url_template"],null),use_post_permastruct:Y.exports.get(t,["payload","expert_settings","website","use_post_permastruct"],null)==="on"},assets:{image:FD(Y.exports.get(t,["payload","assignments","image"],null)),chapter:BD(Y.exports.get(t,["payload","assignments","chapter"],null)),transcript:Y.exports.get(t,["payload","assignments","transcript"],null)},modules:Y.exports.get(t,["payload","modules"])})},DD),Fi={autoGenerateEpisodeTitle:e=>e.website.enable_generated_blog_post_title,blogTitleTemplate:e=>e.website.blog_title_template,episodeNumberPadding:e=>e.website.episode_number_padding,imageAsset:e=>e.assets.image,enableEpisodeExplicit:e=>e.metadata.enable_episode_explicit,mediaFileBaseUri:e=>e.media.base_uri,modules:e=>e.modules},jD="podlove/publisher/podcast/INIT",sx="podlove/publisher/podcast/SET",HD="podlove/publisher/podcasr/SAVED",pv="podlove/publisher/podcast/UPDATE",VD={title:null,subtitle:null,summary:null,mnemonic:null,itunes_type:null,author_name:null,poster:null,link:null,license_name:null,license_url:null};ge(jD);const WD=ge(sx);ge(HD);const Zl=ge(pv),zD=or({[sx]:(e,t)=>({title:Y.exports.get(t,["payload","title"],e.title),subtitle:Y.exports.get(t,["payload","subtitle"],e.subtitle),summary:Y.exports.get(t,["payload","summary"],e.summary),mnemonic:Y.exports.get(t,["payload","mnemonic"],e.mnemonic),itunes_type:Y.exports.get(t,["payload","itunes_type"],e.itunes_type),author_name:Y.exports.get(t,["payload","author_name"],e.author_name),poster:Y.exports.get(t,["payload","poster"],e.poster),link:Y.exports.get(t,["payload","link"],e.link),license_name:Y.exports.get(t,["payload","license_name"],e.license_name),license_url:Y.exports.get(t,["payload","license_url"],e.license_url)}),[pv]:(e,t)=>{const n=Y.exports.get(t,["payload","prop"]),r=Y.exports.get(t,["payload","value"],null);return["title","subtitle","summary","author_name","podcast_email","funding_url","funding_label","license_name","license_url"].includes(n)?{...e,[n]:r}:(console.debug("todo",n,r),{...e})}},VD),ho={title:e=>e.title,subtitle:e=>e.subtitle,summary:e=>e.summary,mnemonic:e=>e.mnemonic,itunesType:e=>e.itunes_type,author:e=>e.author_name,poster:e=>e.poster,link:e=>e.link,license_name:e=>e.license_name,license_url:e=>e.license_url},qD={token:null,production:null,productions:[],presets:[],preset:null,services:[],service_files:{},tracks:[],file_selections:{},current_file_selection:null,is_saving:!1,is_initializing:!0,publish_when_done:!1},lx="podlove/publisher/auphonic/INIT",ax="podlove/publisher/auphonic/INIT_DONE",ux="podlove/publisher/auphonic/SET_TOKEN",Bc="podlove/publisher/auphonic/SET_PRODUCTION",cx="podlove/publisher/auphonic/SET_PRODUCTIONS",dx="podlove/publisher/auphonic/SET_SERVICES",fx="podlove/publisher/auphonic/CREATE_PRODUCTION",px="podlove/publisher/auphonic/CREATE_MULTITRACK_PRODUCTION",hx="podlove/publisher/auphonic/SAVE_PRODUCTION",KD="podlove/publisher/auphonic/START_PRODUCTION",hv="podlove/publisher/auphonic/DESELECT_PRODUCTION",GD="podlove/publisher/auphonic/SELECT_SERVICE",mv="podlove/publisher/auphonic/SET_SERVICE_FILES",XD="podlove/publisher/auphonic/SELECT_TRACKS",mx="podlove/publisher/auphonic/ADD_TRACK",vx="podlove/publisher/auphonic/REMOVE_TRACK",gx="podlove/publisher/auphonic/UPDATE_TRACK",yx="podlove/publisher/auphonic/SET_PRESETS",vv="podlove/publisher/auphonic/SET_PRESET",gv="podlove/publisher/auphonic/UPDATE_FILE_SELECTION",bx="podlove/publisher/auphonic/START_POLLING",_h="podlove/publisher/auphonic/STOP_POLLING",_x="podlove/publisher/auphonic/START_SAVING",wx="podlove/publisher/auphonic/STOP_SAVING",yv="podlove/publisher/auphonic/UPDATE_WEBHOOK",JD=ge(lx),YD=ge(ax),ZD=ge(ux),ds=ge(Bc),Sx=ge(hv),Ex=ge(cx),QD=ge(fx),e7=ge(px),xx=ge(hx),wh=ge(KD),t7=ge(yx),bv=ge(vv),n7=ge(dx),r7=ge(mv),$x=ge(GD),Cx=ge(gv);ge(XD);const o7=ge(mx),Tx=ge(vx),Ox=ge(gx),i7=ge(bx),u1=ge(_h),s7=ge(_x),l7=ge(wx),Ax=ge(yv),a7=or({[ax]:e=>({...e,is_initializing:!1}),[gv]:(e,t)=>({...e,current_file_selection:t.payload.key,file_selections:{...e.file_selections,[t.payload.key]:{...e.file_selections[t.payload.key],[t.payload.prop]:t.payload.value}}}),[mx]:(e,t)=>{const n=`Track ${e.tracks.length+1}`;return{...e,tracks:[...e.tracks,{identifier:n,identifier_new:n,fileSelection:null,input_file_name:"",filtering:!0,noise_and_hum_reduction:!1,fore_background:"auto",track_gain:"0",save_state:"new"}]}},[vx]:(e,t)=>({...e,tracks:e.tracks.filter((n,r)=>n.identifier!=t.payload)}),[gx]:(e,t)=>{const n=(o,s)=>o.save_state=="new"?{save_state:"new"}:{save_state:"edited"},r=e.tracks.reduce((o,s,l)=>[...o,l===t.payload.index?{...s,...t.payload.track,...n(s,t.payload.track)}:s],[]);return{...e,tracks:r}},[mv]:(e,t)=>{const{uuid:n,files:r}=t.payload;return{...e,service_files:{...e.service_files,[n]:r}}},[dx]:(e,t)=>({...e,services:t.payload}),[yx]:(e,t)=>({...e,presets:t.payload}),[cx]:(e,t)=>({...e,productions:t.payload}),[Bc]:(e,t)=>{var o,s;const n=t.payload;return{...e,production:n,file_selections:(()=>{var l;if(n!=null&&n.is_multitrack)return((l=n==null?void 0:n.multi_input_files)==null?void 0:l.reduce((a,c,f)=>{let p=c.service;return p||(c.input_file.substring(0,4)=="http"?p="url":p="file"),{...a,[`${n==null?void 0:n.uuid}_t${f}`]:{currentServiceSelection:p,fileSelection:c.service?c.input_file:null,urlValue:p=="url"?c.input_file:null,fileValue:null}}},{}))||{};{let a=n==null?void 0:n.service;const c=n==null?void 0:n.input_file;return a||((c==null?void 0:c.substring(0,4))=="http"?a="url":a="file"),{[`${n==null?void 0:n.uuid}`]:{currentServiceSelection:a,fileSelection:a?c:null,urlValue:a=="url"?c:null,fileValue:null}}}})(),tracks:((s=(o=t.payload)==null?void 0:o.multi_input_files)==null?void 0:s.reduce((l,a)=>{var c,f,p;return[...l,{identifier:a.id,identifier_new:a.id,filtering:(c=a.algorithms)==null?void 0:c.filtering,noise_and_hum_reduction:(f=a.algorithms)==null?void 0:f.denoise,fore_background:(p=a.algorithms)==null?void 0:p.backforeground,input_file_name:a.input_file,save_state:"unchanged"}]},[]))||[]}},[hv]:e=>({...e,production:null,tracks:[],file_selections:[],current_file_selection:null}),[vv]:(e,t)=>({...e,preset:t.payload}),[ux]:(e,t)=>({...e,token:t.payload}),[_x]:(e,t)=>({...e,is_saving:!0}),[wx]:(e,t)=>({...e,is_saving:!1}),[yv]:(e,t)=>({...e,publish_when_done:t.payload})},qD),u7=e=>e?e.map(t=>{let n={start:t.start,title:t.title};return t.image&&(n.image=t.image),t.url&&(n.url=t.url),n}):[],c7=e=>e?e.map(t=>({format:t.format,bitrate:t.bitrate,suffix:t.suffix,ending:t.ending,filename:t.filename,mono_mixdown:t.mono_mixdown,split_on_chapters:t.split_on_chapters,outgoing_services:t.outgoing_services})):[],d7=e=>{const t=e.production;return{uuid:t==null?void 0:t.uuid,metadata:t==null?void 0:t.metadata,input_file:t==null?void 0:t.input_file,chapters:u7(t==null?void 0:t.chapters),output_files:c7(t==null?void 0:t.output_files),output_basename:t==null?void 0:t.output_basename,outgoing_services:t==null?void 0:t.outgoing_services,algorithms:t==null?void 0:t.algorithms,speech_recognition:t==null?void 0:t.speech_recognition}},On={token:e=>e.token,production:e=>e.production,productionId:e=>{var t;return(t=e.production)==null?void 0:t.uuid},productions:e=>e.productions,presets:e=>e.presets,preset:e=>e.preset,productionPayload:d7,services:e=>e.services,incomingServices:e=>e.services.filter(t=>t.incoming),outgoingServices:e=>e.services.filter(t=>t.outgoing),serviceFiles:e=>e.service_files,tracks:e=>e.tracks,fileSelections:e=>e.file_selections,currentFileSelection:e=>e.current_file_selection,isSaving:e=>e.is_saving,isInitializing:e=>e.is_initializing,publishWhenDone:e=>e.publish_when_done},f7={is_initializing:!0,slug_autogeneration_enabled:!1,files:[]},Ix="podlove/publisher/mediafiles/INIT",Px="podlove/publisher/mediafiles/INIT_DONE",kx="podlove/publisher/mediafiles/SET",_v="podlove/publisher/mediafiles/UPDATE",Uc="podlove/publisher/mediafiles/ENABLE",jc="podlove/publisher/mediafiles/DISABLE",Rx="podlove/publisher/mediafiles/VERIFY",Lx="podlove/publisher/mediafiles/UPLOAD_INTENT",wv="podlove/publisher/mediafiles/SET_UPLOAD_URL",Nx="podlove/publisher/mediafiles/ENABLE_SLUG_AUTOGEN",Mx="podlove/publisher/mediafiles/DISABLE_SLUG_AUTOGEN",p7=ge(Ix),h7=ge(Px),m7=ge(kx),Sh=ge(_v),v7=ge(Uc),g7=ge(jc),y7=ge(Rx),b7=ge(Lx);ge(wv);const _7=ge(Nx),Dx=ge(Mx),w7=or({[Px]:e=>({...e,is_initializing:!1}),[kx]:(e,t)=>({...e,files:t.payload}),[_v]:(e,t)=>({...e,files:e.files.reduce((n,r)=>[...n,r.asset_id==t.payload.asset_id?{...r,...t.payload}:r],[])}),[Uc]:(e,t)=>({...e,files:e.files.reduce((n,r)=>[...n,r.asset_id==t.payload?{...r,enable:!0}:r],[])}),[jc]:(e,t)=>({...e,files:e.files.reduce((n,r)=>[...n,r.asset_id==t.payload?{...r,enable:!1}:r],[])}),[Nx]:e=>({...e,slug_autogeneration_enabled:!0}),[Mx]:e=>({...e,slug_autogeneration_enabled:!1})},f7),Ap={isInitializing:e=>e.is_initializing,slugAutogenerationEnabled:e=>e.slug_autogeneration_enabled,files:e=>e.files},S7={episodeList:[],selectEpisodes:[]},Fx="podlove/publisher/relatedEpisodes/INIT",Bx="podlove/publisher/relatedEpisodes/SET_EPISODE_LIST",Sv="podlove/publisher/relatedEpisodes/SET_SELECTED_EPISODES",E7="podlove/publisher/relatedEpisodes/UPDATE_RELATED_EPISODES",x7=ge(Fx),$7=ge(Bx),Ux=ge(Sv);ge(E7);const C7=or({[Eo]:(e,t)=>({...e}),[Bx]:(e,t)=>({...e,episodeList:t.payload}),[Sv]:(e,t)=>({...e,selectEpisodes:t.payload})},S7),c1={episodeList:e=>e.episodeList,selectEpisodes:e=>e.selectEpisodes},Ev="podlove/publisher/shows/INIT",xv="podlove/publisher/shows/SET",Hc="podlove/publisher/shows/SELECT",jx=ge(Ev),Hx=ge(xv),Vx=ge(Hc),Wx={shows:[]},zx=or({[xv]:(e,t)=>({...e,shows:Y.exports.get(t,["payload"],[])})},Wx),qx={shows:e=>e.shows};var T7=Object.freeze(Object.defineProperty({__proto__:null,INIT:Ev,SET:xv,SELECT:Hc,init:jx,set:Hx,select:Vx,initialState:Wx,reducer:zx,selectors:qx},Symbol.toStringTag,{value:"Module"}));const $e={lifecycle:e=>e.lifecycle,chapters:e=>e.chapters,podcast:e=>e.podcast,episode:e=>e.episode,runtime:e=>e.runtime,post:e=>e.post,transcripts:e=>e.transcripts,contributors:e=>e.contributors,auphonic:e=>e.auphonic,mediafiles:e=>e.mediafiles,settings:e=>e.settings,relatedEpisodes:e=>e.relatedEpisodes,shows:e=>e.shows},O7={bootstrapped:xe($e.lifecycle,JM.bootstrapped)},A7={token:xe($e.auphonic,On.token),productionId:xe($e.auphonic,On.productionId),productions:xe($e.auphonic,On.productions),production:xe($e.auphonic,On.production),presets:xe($e.auphonic,On.presets),preset:xe($e.auphonic,On.preset),productionPayload:xe($e.auphonic,On.productionPayload),incomingServices:xe($e.auphonic,On.incomingServices),outgoingServices:xe($e.auphonic,On.outgoingServices),serviceFiles:xe($e.auphonic,On.serviceFiles),tracks:xe($e.auphonic,On.tracks),fileSelections:xe($e.auphonic,On.fileSelections),currentFileSelection:xe($e.auphonic,On.currentFileSelection),isSaving:xe($e.auphonic,On.isSaving),isInitializing:xe($e.auphonic,On.isInitializing),publishWhenDone:xe($e.auphonic,On.publishWhenDone)},I7={title:xe($e.podcast,ho.title),subtitle:xe($e.podcast,ho.subtitle),summary:xe($e.podcast,ho.summary),mnemonic:xe($e.podcast,ho.mnemonic),itunesType:xe($e.podcast,ho.itunesType),author:xe($e.podcast,ho.author),poster:xe($e.podcast,ho.poster),link:xe($e.podcast,ho.link),license_name:xe($e.podcast,ho.license_name),license_url:xe($e.podcast,ho.license_url)},P7={list:xe($e.chapters,$p.chapters),selected:xe($e.chapters,$p.selected),selectedIndex:xe($e.chapters,$p.selectedIndex)},Kx={contributors:xe($e.contributors,Op.contributors),roles:xe($e.contributors,Op.roles),groups:xe($e.contributors,Op.groups)},k7={id:xe($e.episode,tn.id),slug:xe($e.episode,tn.slug),duration:xe($e.episode,tn.duration),number:xe($e.episode,tn.number),title:xe($e.episode,tn.title),subtitle:xe($e.episode,tn.subtitle),summary:xe($e.episode,tn.summary),type:xe($e.episode,tn.type),poster:xe($e.episode,tn.poster),episodePoster:xe($e.episode,tn.episodePoster),mnemonic:xe($e.episode,tn.mnemonic),explicit:xe($e.episode,tn.explicit),soundbite_start:xe($e.episode,tn.soundbite_start),soundbite_duration:xe($e.episode,tn.soundbite_duration),soundbite_title:xe($e.episode,tn.soundbite_title),auphonicProductionId:xe($e.episode,tn.auphonicProductionId),auphonicWebhookConfig:xe($e.episode,tn.auphonicWebhookConfig),license_name:xe($e.episode,tn.license_name),license_url:xe($e.episode,tn.license_url),contributions:xe(xe($e.episode,tn.contributions),Kx.contributors,(e,t)=>e.map(r=>({...r,...r.contributor_id?t.find(({id:o})=>o.toString()===r.contributor_id.toString()):{}}))),currentShow:xe($e.episode,tn.currentShow)},R7={isInitializing:xe($e.mediafiles,Ap.isInitializing),files:xe($e.mediafiles,Ap.files),slugAutogenerationEnabled:xe($e.mediafiles,Ap.slugAutogenerationEnabled)},L7={baseUrl:xe($e.runtime,Il.baseUrl),nonce:xe($e.runtime,Il.nonce),base:xe($e.runtime,Il.base),auth:xe($e.runtime,Il.auth),bearer:xe($e.runtime,Il.bearer)},N7={id:xe($e.post,l1.id),title:xe($e.post,l1.title)},M7={list:xe($e.transcripts,a1.transcripts),voices:xe($e.transcripts,a1.voices)},D7={autoGenerateEpisodeTitle:xe($e.settings,Fi.autoGenerateEpisodeTitle),blogTitleTemplate:xe($e.settings,Fi.blogTitleTemplate),episodeNumberPadding:xe($e.settings,Fi.episodeNumberPadding),mediaFileBaseUri:xe($e.settings,Fi.mediaFileBaseUri),imageAsset:xe($e.settings,Fi.imageAsset),enableEpisodeExplicit:xe($e.settings,Fi.enableEpisodeExplicit),modules:xe($e.settings,Fi.modules)},F7={episodeList:xe($e.relatedEpisodes,c1.episodeList),selectEpisode:xe($e.relatedEpisodes,c1.selectEpisodes)},B7={list:xe($e.shows,qx.shows)};var G={lifecycle:O7,podcast:I7,chapters:P7,episode:k7,runtime:L7,post:N7,transcripts:M7,contributors:Kx,settings:D7,auphonic:A7,mediafiles:R7,relatedEpisodes:F7,shows:B7},U7=LS({lifecycle:XM,chapters:sD,episode:gD,runtime:bD,post:wD,transcripts:ID,contributors:MD,settings:UD,podcast:zD,auphonic:a7,mediafiles:w7,relatedEpisodes:C7,shows:zx}),d1=function(t){return{done:!0,value:t}},Ip={};function Ad(e){return wd(e)?"channel":zS(e)?String(e):Hn(e)?e.name:String(e)}function Id(e,t,n){var r,o,s,l=t;function a(c,f){if(l===Ip)return d1(c);if(f&&!o)throw l=Ip,f;r&&r(c);var p=f?e[o](f):e[l]();return l=p.nextState,s=p.effect,r=p.stateUpdater,o=p.errorState,l===Ip?d1(c):s}return yh(a,function(c){return a(null,c)},n)}function j7(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var s={done:!1,value:go(e)},l=function(p){return{done:!1,value:Dt.apply(void 0,[t].concat(r,[p]))}},a,c=function(p){return a=p};return Id({q1:function(){return{nextState:"q2",effect:s,stateUpdater:c}},q2:function(){return{nextState:"q1",effect:l(a)}}},"q1","takeEvery("+Ad(e)+", "+t.name+")")}function H7(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var s={done:!1,value:go(e)},l=function(y){return{done:!1,value:Dt.apply(void 0,[t].concat(r,[y]))}},a=function(y){return{done:!1,value:W6(y)}},c,f,p=function(y){return c=y},h=function(y){return f=y};return Id({q1:function(){return{nextState:"q2",effect:s,stateUpdater:h}},q2:function(){return c?{nextState:"q3",effect:a(c)}:{nextState:"q1",effect:l(f),stateUpdater:p}},q3:function(){return{nextState:"q1",effect:l(f),stateUpdater:p}}},"q1","takeLatest("+Ad(e)+", "+t.name+")")}function V7(e,t,n){for(var r=arguments.length,o=new Array(r>3?r-3:0),s=3;s<r;s++)o[s-3]=arguments[s];var l,a,c=function(){return{done:!1,value:go(a)}},f=function(w){return{done:!1,value:Dt.apply(void 0,[n].concat(o,[w]))}},p={done:!1,value:qm(e)},h=function(w){return l=w},v=function(w){return a=w},y=!wd(t);return y||v(t),Id({q1:function(){var w={done:!1,value:z6(t,M6(1))};return{nextState:"q2",effect:w,stateUpdater:v}},q2:function(){return{nextState:"q3",effect:c(),stateUpdater:h}},q3:function(){return{nextState:"q4",effect:f(l)}},q4:function(){return{nextState:"q2",effect:p}}},y?"q1":"q2","throttle("+Ad(t)+", "+n.name+")")}function W7(e,t,n){for(var r=arguments.length,o=new Array(r>3?r-3:0),s=3;s<r;s++)o[s-3]=arguments[s];var l,a,c={done:!1,value:go(t)},f={done:!1,value:bh({action:go(t),debounce:qm(e)})},p=function(w){return{done:!1,value:Dt.apply(void 0,[n].concat(o,[w]))}},h=function(w){return{done:!1,value:w}},v=function(w){return l=w},y=function(w){return a=w};return Id({q1:function(){return{nextState:"q2",effect:c,stateUpdater:v}},q2:function(){return{nextState:"q3",effect:f,stateUpdater:y}},q3:function(){return a.debounce?{nextState:"q1",effect:p(l)}:{nextState:"q2",effect:h(a.action),stateUpdater:v}}},"q1","debounce("+Ad(t)+", "+n.name+")")}function Xe(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return Dt.apply(void 0,[j7,e,t].concat(r))}function z7(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return Dt.apply(void 0,[H7,e,t].concat(r))}function Gx(e,t,n){for(var r=arguments.length,o=new Array(r>3?r-3:0),s=3;s<r;s++)o[s-3]=arguments[s];return Dt.apply(void 0,[V7,e,t,n].concat(o))}function Eh(e,t,n){for(var r=arguments.length,o=new Array(r>3?r-3:0),s=3;s<r;s++)o[s-3]=arguments[s];return Dt.apply(void 0,[W7,e,t,n].concat(o))}function q7(){return function*(){const e=yield Zn(X7,"click","button.editor-post-publish-button");yield Xe(e,K7),yield Xe(Eo,G7)}}function*K7(){yield Ie(qM())}function*G7(){yield Ie(KM())}function X7(e,t){return SE(n=>{let r;const o=s=>{n(s)};return window.addEventListener("load",()=>{r=document.querySelector(t),r==null||r.addEventListener(e,o)}),()=>{r==null||r.removeEventListener(e,o),n(Us)}})}const xh=e=>SE(t=>(e(r=>{t(r||{})}),()=>{}));function*xo(e,t,...n){return yield Dt(function*(){for(;;){const o=yield go(e);yield Zn(t,...n.concat(o))}})}function*J7(e){if(!(yield Te(e))){for(;;)if(yield go("*"),yield Te(e))return}}const al=(e,t={})=>{const n=Object.keys(t).map(r=>encodeURIComponent(r)+"="+encodeURIComponent(t[r])).join("&");return e+=(e.indexOf("?")===-1?"?":"&")+n},Na=(e=console.error)=>async t=>{let n;try{n=await t.json()}catch{n={}}return t.status>=300?(e(n),{error:n}):{result:n}},Xx=({nonce:e,auth:t,bearer:n},r={})=>({"Content-Type":"application/json",Accept:"application/json",...n?{Authorization:`Bearer ${n}`}:{},...t?{Authorization:`Basic ${t}`}:{},...e?{"X-WP-Nonce":e}:{},...r}),f1=({errorHandler:e,nonce:t,auth:n,bearer:r,method:o,urlProcessor:s})=>(l,{headers:a,query:c}={})=>fetch(al(s?s(l):l,c),{method:o,headers:Xx({nonce:t,auth:n,bearer:r},a)}).then(Na(e)),p1=({errorHandler:e,nonce:t,auth:n,bearer:r,method:o,urlProcessor:s})=>(l,a,{headers:c,query:f}={})=>fetch(al(s?s(l):l,f),{method:o,headers:Xx({nonce:t,auth:n,bearer:r},c),body:JSON.stringify(a)}).then(Na(e)),Y7=Y.exports.curry(({base:e,version:t,nonce:n,auth:r,bearer:o,errorHandler:s})=>({get:f1({nonce:n,auth:r,bearer:o,method:"GET",errorHandler:s,urlProcessor:l=>`${e}/${t}/${l}`}),delete:f1({nonce:n,auth:r,bearer:o,errorHandler:s,method:"DELETE",urlProcessor:l=>`${e}/${t}/${l}`}),post:p1({nonce:n,auth:r,bearer:o,errorHandler:s,method:"POST",urlProcessor:l=>`${e}/${t}/${l}`}),put:p1({nonce:n,auth:r,bearer:o,errorHandler:s,method:"PUT",urlProcessor:l=>`${e}/${t}/${l}`})})),Jx="podlove/publisher/NOTIFY",$v=ge(Jx),Z7={};or({},Z7);function*Go(){yield Zn(J7,G.lifecycle.bootstrapped);const e=yield Te(G.runtime.base),t=yield Te(G.runtime.nonce),n=yield Te(G.runtime.auth),r=yield Te(G.runtime.bearer);return Y7({base:e,version:"v2",nonce:t,auth:n,bearer:r,errorHandler:function(s){Fd.dispatch($v({type:"error",message:s}))}})}function*Q7(){const e=yield Go();yield Dt(eF,e),yield Xe(pv,tF)}function*eF(e){const{result:t}=yield e.get("podcast");t&&(yield Ie(WD(t)))}function tF(e){const t=Y.exports.get(e,["payload","prop"]);Y.exports.get(e,["payload","value"],null)}function nF(){return function*(){yield xo(Eo,Q7)}}function rF(){return function*(){yield Xe(Jx,oF)}}function*oF(e){const t=Y.exports.get(globalThis,["wp","data","dispatch"]);t?iF(t,Y.exports.get(e,["payload"])):sF(e.payload)}function iF(e,{type:t,message:n}){!n||e("core/notices").createNotice(t,n,{type:"snackbar",isDismissible:!0})}function sF({type:e,message:t}){switch(e){case"success":case"info":console.log(t);break;case"warning":console.warn(t);break;case"error":console.error(t);break}}var Yx={};/*! For license information please see keyboard.js.LICENSE.txt */(()=>{var e={9620:(o,s)=>{function l(v){if(v&&typeof v=="object"){var y=v.which||v.keyCode||v.charCode;y&&(v=y)}if(typeof v=="number")return p[v];var _,w=String(v);return(_=a[w.toLowerCase()])?_:(_=c[w.toLowerCase()])||(w.length===1?w.charCodeAt(0):void 0)}l.isEventKey=function(v,y){if(v&&typeof v=="object"){var _=v.which||v.keyCode||v.charCode;if(_==null)return!1;if(typeof y=="string"){var w;if((w=a[y.toLowerCase()])||(w=c[y.toLowerCase()]))return w===_}else if(typeof y=="number")return y===_;return!1}};var a=(s=o.exports=l).code=s.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},c=s.aliases={windows:91,"\u21E7":16,"\u2325":18,"\u2303":17,"\u2318":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};for(f=97;f<123;f++)a[String.fromCharCode(f)]=f-32;for(var f=48;f<58;f++)a[f-48]=f;for(f=1;f<13;f++)a["f"+f]=f+111;for(f=0;f<10;f++)a["numpad "+f]=f+96;var p=s.names=s.title={};for(f in a)p[a[f]]=f;for(var h in c)a[h]=c[h]}},t={};function n(o){var s=t[o];if(s!==void 0)return s.exports;var l=t[o]={exports:{}};return e[o](l,l.exports,n),l.exports}n.n=o=>{var s=o&&o.__esModule?()=>o.default:()=>o;return n.d(s,{a:s}),s},n.d=(o,s)=>{for(var l in s)n.o(s,l)&&!n.o(o,l)&&Object.defineProperty(o,l,{enumerable:!0,get:s[l]})},n.o=(o,s)=>Object.prototype.hasOwnProperty.call(o,s),n.r=o=>{typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})};var r={};(()=>{function o(Q){return Q!=null&&typeof Q=="object"&&Q["@@functional/placeholder"]===!0}function s(Q){return function ae(fe){return arguments.length===0||o(fe)?ae:Q.apply(this,arguments)}}function l(Q){return function ae(fe,Se){switch(arguments.length){case 0:return ae;case 1:return o(fe)?ae:s(function(He){return Q(fe,He)});default:return o(fe)&&o(Se)?ae:o(fe)?s(function(He){return Q(He,Se)}):o(Se)?s(function(He){return Q(fe,He)}):Q(fe,Se)}}}n.r(r),n.d(r,{keydown:()=>Le,keyup:()=>Ke});const a=Number.isInteger||function(Q){return Q<<0===Q};function c(Q){return Object.prototype.toString.call(Q)==="[object String]"}const f=l(function(Q,ae){var fe=Q<0?ae.length+Q:Q;return c(ae)?ae.charAt(fe):ae[fe]}),p=l(function(Q,ae){return Q.map(function(fe){for(var Se,He=ae,De=0;De<fe.length;){if(He==null)return;Se=fe[De],He=a(Se)?f(Se,He):He[Se],De+=1}return He})}),h=l(function(Q,ae){return p([Q],ae)[0]}),v=l(function(Q,ae){return h([Q],ae)});function y(Q){return function ae(fe,Se,He){switch(arguments.length){case 0:return ae;case 1:return o(fe)?ae:l(function(De,tt){return Q(fe,De,tt)});case 2:return o(fe)&&o(Se)?ae:o(fe)?l(function(De,tt){return Q(De,Se,tt)}):o(Se)?l(function(De,tt){return Q(fe,De,tt)}):s(function(De){return Q(fe,Se,De)});default:return o(fe)&&o(Se)&&o(He)?ae:o(fe)&&o(Se)?l(function(De,tt){return Q(De,tt,He)}):o(fe)&&o(He)?l(function(De,tt){return Q(De,Se,tt)}):o(Se)&&o(He)?l(function(De,tt){return Q(fe,De,tt)}):o(fe)?s(function(De){return Q(De,Se,He)}):o(Se)?s(function(De){return Q(fe,De,He)}):o(He)?s(function(De){return Q(fe,Se,De)}):Q(fe,Se,He)}}}const _=l(function(Q,ae){return ae==null||ae!=ae?Q:ae}),w=y(function(Q,ae,fe){return _(Q,h(ae,fe))}),I=y(function(Q,ae,fe){return w(Q,[ae],fe)});function O(Q,ae){switch(Q){case 0:return function(){return ae.apply(this,arguments)};case 1:return function(fe){return ae.apply(this,arguments)};case 2:return function(fe,Se){return ae.apply(this,arguments)};case 3:return function(fe,Se,He){return ae.apply(this,arguments)};case 4:return function(fe,Se,He,De){return ae.apply(this,arguments)};case 5:return function(fe,Se,He,De,tt){return ae.apply(this,arguments)};case 6:return function(fe,Se,He,De,tt,vn){return ae.apply(this,arguments)};case 7:return function(fe,Se,He,De,tt,vn,ln){return ae.apply(this,arguments)};case 8:return function(fe,Se,He,De,tt,vn,ln,L){return ae.apply(this,arguments)};case 9:return function(fe,Se,He,De,tt,vn,ln,L,B){return ae.apply(this,arguments)};case 10:return function(fe,Se,He,De,tt,vn,ln,L,B,Z){return ae.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function S(Q,ae){return function(){return ae.call(this,Q.apply(this,arguments))}}const E=Array.isArray||function(Q){return Q!=null&&Q.length>=0&&Object.prototype.toString.call(Q)==="[object Array]"},T=s(function(Q){return!!E(Q)||!!Q&&typeof Q=="object"&&!c(Q)&&(Q.nodeType===1?!!Q.length:Q.length===0||Q.length>0&&Q.hasOwnProperty(0)&&Q.hasOwnProperty(Q.length-1))});var $=function(){function Q(ae){this.f=ae}return Q.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},Q.prototype["@@transducer/result"]=function(ae){return ae},Q.prototype["@@transducer/step"]=function(ae,fe){return this.f(ae,fe)},Q}();const P=l(function(Q,ae){return O(Q.length,function(){return Q.apply(ae,arguments)})});function k(Q,ae,fe){for(var Se=fe.next();!Se.done;){if((ae=Q["@@transducer/step"](ae,Se.value))&&ae["@@transducer/reduced"]){ae=ae["@@transducer/value"];break}Se=fe.next()}return Q["@@transducer/result"](ae)}function A(Q,ae,fe,Se){return Q["@@transducer/result"](fe[Se](P(Q["@@transducer/step"],Q),ae))}var H=typeof Symbol!="undefined"?Symbol.iterator:"@@iterator";function D(Q,ae,fe){if(typeof Q=="function"&&(Q=function(Se){return new $(Se)}(Q)),T(fe))return function(Se,He,De){for(var tt=0,vn=De.length;tt<vn;){if((He=Se["@@transducer/step"](He,De[tt]))&&He["@@transducer/reduced"]){He=He["@@transducer/value"];break}tt+=1}return Se["@@transducer/result"](He)}(Q,ae,fe);if(typeof fe["fantasy-land/reduce"]=="function")return A(Q,ae,fe,"fantasy-land/reduce");if(fe[H]!=null)return k(Q,ae,fe[H]());if(typeof fe.next=="function")return k(Q,ae,fe);if(typeof fe.reduce=="function")return A(Q,ae,fe,"reduce");throw new TypeError("reduce: list must be array or iterable")}const F=y(D);function z(Q,ae){return function(){var fe=arguments.length;if(fe===0)return ae();var Se=arguments[fe-1];return E(Se)||typeof Se[Q]!="function"?ae.apply(this,arguments):Se[Q].apply(Se,Array.prototype.slice.call(arguments,0,fe-1))}}const K=s(z("tail",y(z("slice",function(Q,ae,fe){return Array.prototype.slice.call(fe,Q,ae)}))(1,1/0)));function te(){if(arguments.length===0)throw new Error("pipe requires at least one argument");return O(arguments[0].length,F(S,arguments[0],K(arguments)))}const we=s(function(Q){return c(Q)?Q.split("").reverse().join(""):Array.prototype.slice.call(Q,0).reverse()});function be(){if(arguments.length===0)throw new Error("compose requires at least one argument");return te.apply(this,we(arguments))}var Oe=n(9620),Ae=n.n(Oe);const Ye=Q=>ae=>{v("nodeName",ae.target)==="BODY"&&Q(ae)},ft=Q=>({key:Ae()(Q),ctrl:I(!1,"ctrlKey",Q),shift:I(!1,"shiftKey",Q),meta:I(!1,"metaKey",Q),alt:I(!1,"altKey",Q)}),Le=Q=>document.addEventListener("keydown",Ye(be(Q,ft))),Ke=Q=>document.addEventListener("keyup",Ye(be(Q,ft)))})(),Yx.utils=r})();function lF(e){const t=/^([\d\.:]+)\s(.*)$/;return e.trim().split(/(\r?\n)/).reduce(function(n,r){var o=r.match(t);if(o){var s=La(o[1]);s!==null&&n.push({title:o[2].trim(),start:s})}return n},[])}function aF(e){const t=/^([\d\.,]+)\s+([\d\.,]+)\s+(.*)$/;return e.trim().split(/(\r\n|\r|\n)/).reduce(function(n,r){var o=r.match(t);if(o){var s=La(o[1].replace(",",".")),l=o[3].trim();s!==null&&n.push({title:l,start:s})}return n},[])}function uF(e){const r=new window.DOMParser().parseFromString(e,"text/xml").getElementsByTagName("Marker");let o=Array.from(r).reduce((s,l)=>{var p;if(!l||!l.getAttribute("Type")||((p=l.getAttribute("Type"))==null?void 0:p.toLowerCase())!=="chapter")return s;const a=La(l.getAttribute("Time")||""),c=l.getAttribute("Name")||"",f=l.getAttribute("URL")||"";return a!==null&&s.push({start:a,title:c.trim(),...f?{href:f.trim()}:{}}),s},[]);return o.sort(function(s,l){return s.start-l.start}),o}function cF(e){const r=new window.DOMParser().parseFromString(e,"text/xml").getElementsByTagNameNS("http://podlove.org/simple-chapters","chapter");return Array.from(r).reduce((o,s)=>{var l=La(s.getAttribute("start")||""),a=s.getAttribute("title")||"",c=s.getAttribute("href")||"",f=s.getAttribute("image")||"";return l!==null&&o.push({start:l,title:a.trim(),...c?{href:c.trim()}:{},...f?{image:f.trim()}:{}}),o},[])}const Zx=Y.exports.get(window,["wp","i18n","__"],e=>e),dF=Zx;var fF={install(e){e.config.globalProperties.__=(t,n)=>Zx(t,n)}};function*pF(){const e=yield Go();yield Dt(hF,e),yield Xe([PE],bF),yield Xe(RE,vF),yield Xe([Qm,nv,tv,ev,ov],mF,e);const t=yield Zn(xh,Yx.utils.keydown);yield Xe(t,_F),yield Xe(rv,wF)}function*hF(e){const t=yield Te(G.episode.id),{result:n}=yield e.get(`chapters/${t}`);n&&(yield Ie(rD(n.chapters.map(r=>({...r,start:Nt.fromString(r.start).totalMs})))))}function*mF(e){const t=yield Te(G.episode.id),n=yield Te(G.chapters.list);yield e.put(`chapters/${t}`,{chapters:n.map(r=>({...r,start:new Nt(r.start).pretty}))})}function*vF(e){const t=yield Te(G.chapters.list);switch(e.payload){case"psc":h1("chapters.psc",gF(t));break;case"mp4":h1("chapters.txt",yF(t));break}}function gF(e){const t=new XMLSerializer,n='<psc:chapters version="1.2" xmlns:psc="http://podlove.org/simple-chapters"/>',o=new DOMParser().parseFromString(n,"text/xml");let s=o.getElementsByTagName("chapters");return s.length||(s=o.getElementsByTagName("psc:chapters")),s=s[0],e.forEach(c=>{let f=o.createElement("psc:chapter");f.setAttribute("title",c.title||""),f.setAttribute("start",c.start?new Nt(c.start).pretty:"00:00:00"),c.href&&f.setAttribute("href",c.href),c.image&&f.setAttribute("image",c.image),s.appendChild(f)}),t.serializeToString(o).replace(/\<psc:chapter\s/gi,` 47 47 <psc:chapter `).replace("</psc:chapters>",` 48 48 </psc:chapters>`)}function yF(e){const t=r=>isNaN(r.start)?"":new Nt(r.start).pretty,n=r=>r.href?"<"+r.href+">":"";return e.reduce((r,o)=>{let s=t(o)+" "+o.title+" "+n(o);return[...r,s.trim()]},[]).join(` 49 49 `)+` 50 `}function h1(e,t){var n=new Blob([t],{type:"text/plain"});const r=document.createElement("a");r.href=window.URL.createObjectURL(n),r.download=e,document.body.appendChild(r),r.click(),document.body.removeChild(r)}function*bF(e){const t=[lF,aF,uF,cF];let n=[];if(t.forEach(r=>{if(!(n!==null&&n.length>0))try{n=r(e.payload)}catch{n=null}}),n===null){yield Ie($v({type:"error",message:dF("Unable to parse PSC chapters.","podlove-podcasting-plugin-for-wordpress")}));return}yield Ie(LE(n))}function*_F(e){const t=yield Te(G.chapters.selectedIndex);if(t===null)return;const n=yield Te(G.chapters.list);switch(!0){case e.key==="up":t===0?yield Ie(di(n.length-1)):yield Ie(di(t-1));break;case e.key==="down":t===n.length-1?yield Ie(di(0)):yield Ie(di(t+1));break;case e.key==="esc":yield Ie(di(null));break}}function*wF(){yield Ie(dv({onSuccess:{type:rv}}))}function SF(){return function*(){yield xo(AE,pF)}}function*EF(){const e=yield Go();yield Dt(Pd,e),yield Ge(YE,xF,e),yield Ge(fv,CF,e),yield Ge(QE,TF,e),yield Ge(ZE,$F,e)}function*Pd(e){const t=yield Te(G.episode.id),[n,r]=yield Promise.all([e.get(`transcripts/${t}`),e.get(`transcripts/voices/${t}`)]);yield Ie(ED(Y.exports.get(n,["result","transcript"],[]))),yield Ie(xD(Y.exports.get(r,["result","voices"],[])))}function*xF(e,t){const n=yield Te(G.episode.id),{result:r}=yield e.put(`transcripts/${n}`,{content:t.payload});r&&(yield Dt(Pd,e))}function*$F(e,t){const n=yield Te(G.episode.id),{result:r}=yield e.put(`transcripts/${n}`,{asset:1});r&&(yield Dt(Pd,e))}function*CF(e,t){const n=yield Te(G.episode.id);yield e.post(`transcripts/voices/${n}`,{voice:t.payload.voice,contributor_id:t.payload.contributor})}function*TF(e){const t=yield Te(G.episode.id),{result:n}=yield e.delete(`transcripts/${t}`);n&&(yield Dt(Pd,e))}function OF(){return function*(){yield xo(GE,EF)}}function*AF(){const e=yield Go();yield Dt(kF,e),yield Dt(RF,e),yield Dt(LF,e),yield Dt(IF,e),yield Ge(VE,NF,e),yield Gx(3e3,[sv,iv,lv,av,uv],PF,e)}function*IF(e){const t=yield Te(G.episode.id);if(!t)return;const{result:n}=yield e.get(`episodes/${t}/contributions`);!n||(yield Ie(WE({contributions:Y.exports.get(n,["contribution"],[])})))}function*PF(e){const t=yield Te(G.episode.id);if(!t)return;const n=yield Te(G.contributors.roles),r=yield Te(G.contributors.groups);let s=(yield Te(G.episode.contributions)).map(function({contributor_id:l,role_id:a,group_id:c,position:f,comment:p}){return{contributor_id:Y.exports.toInteger(l),role_id:Y.exports.toInteger(a)==0&&n.length>0?n[0].id:Y.exports.toInteger(a),group_id:Y.exports.toInteger(c)==0&&r.length>0?r[0].id:Y.exports.toInteger(c),position:Y.exports.toInteger(f),comment:p||""}});yield e.put(`episodes/${t}/contributions`,{contributors:s})}function*kF(e){const{result:t}=yield e.get("contributors",{query:{filter:"all"}});!t||(yield Ie(kD(Y.exports.get(t,"contributors",[]))))}function*RF(e){const{result:t}=yield e.get("contributors/roles");!t||(yield Ie(RD(Y.exports.get(t,"roles",[]))))}function*LF(e){const{result:t}=yield e.get("contributors/groups");!t||(yield Ie(LD(Y.exports.get(t,"groups",[]))))}function*NF(e,t){const{result:n,error:r}=yield e.post("contributors",{});if(r)return;const o=n==null?void 0:n.id,s=Y.exports.get(t,["payload"]),{error:l}=yield e.put(`contributors/${o}`,{realname:s});if(l)return;const a={id:o,realname:s};yield Ie(ND(a)),yield Ie(zE(a))}function MF(){return function*(){yield xo(ex,AF)}}const ji=Y.exports.get(window,["wp","data"],null),Qx=Y.exports.get(window,["wp","media"],null),Qi=document.querySelector('input[name="post_title"]'),DF=e=>Qi==null?void 0:Qi.addEventListener("change",t=>e(Y.exports.get(t,["target","value"])));function*FF(){const e=yield Te(G.settings.autoGenerateEpisodeTitle);typeof(ji==null?void 0:ji.subscribe)!="undefined"&&(yield Ge(yield Zn(xh,ji==null?void 0:ji.subscribe),BF)),Qi&&(yield Ge(yield Zn(xh,DF),e2)),e&&(yield Ge(Td,m1),yield Ge(Ys,m1)),Qx&&(yield Ge(qE,UF))}function*BF(){yield Ie(KE({prop:"title",value:ji.select("core/editor").getEditedPostAttribute("title")}))}function*e2(e){yield Ie(KE({prop:"title",value:e}))}function*m1(){if(!Qi)return;const e=yield Te(G.settings.blogTitleTemplate);if(!e)return;const t=yield Te(G.episode.title),n=yield Te(G.episode.number),r=yield Te(G.podcast.mnemonic),o=yield Te(G.settings.episodeNumberPadding),s=e.replace("%mnemonic%",r||"").replace("%episode_number%",(n||"").padStart(o||0,"0")).replace("%season_number%","").replace("%episode_title%",t||"");Qi.value!=s&&(Qi.value=s,yield e2(s))}function*UF(e){const t=Y.exports.get(e,["payload","onSuccess"]);if(!t){console.warn("Missing successAction");return}const n=Qx({title:"Select or Upload Media Of Your Chosen Persuasion",button:{text:"Use this media"},multiple:!1}),r=new Promise(o=>{n.on("select",()=>{const{url:s}=n.state().get("selection").first().toJSON();o(s)})});n.open();try{const o=yield r;yield Ie({...t,payload:o})}finally{}}function jF(){return function*(){yield xo(Eo,FF)}}let Bl={};function*HF(){const e=yield Go();yield Dt(WF,e),yield Ge(Ys,zF),yield Eh(1e3,Ys,v1,e),yield Eh(50,FE,v1,e),yield Ge(BE,qF),yield Ge(HE,KF),yield Ge(jE,GF),yield Ge(Td,VF)}function*VF(){const e=yield Te(G.episode.auphonicWebhookConfig);e&&(yield Ie(Ax(e.enabled)))}function*WF(e){const t=yield Te(G.episode.id),{result:n}=yield e.get(`episodes/${t}`);n&&(n.slug===null&&(yield Ie(_7())),yield Ie(WE(n)))}function zF(e){const t=Y.exports.get(e,["payload","prop"]),n=Y.exports.get(e,["payload","value"],null);!t||(Bl[t]=n)}function*v1(e,t){const n=yield Te(G.episode.id);Y.exports.isEmpty(Bl)||(yield e.put(`episodes/${n}`,Bl,{query:{skip_validation:"1"}}),yield Ie(mD(Bl)),Bl={})}function*qF(e){Object.keys(e.payload).includes("slug")&&(yield Ie(vD()))}function*KF(){yield Ie(dv({onSuccess:{type:jE}}))}function*GF(e){yield Ie($t({prop:"episode_poster",value:Y.exports.get(e,["payload"])}))}function XF(){return function*(){yield xo(DE,HF)}}function t2(e,t){return function(){return e.apply(t,arguments)}}const{toString:JF}=Object.prototype,{getPrototypeOf:Cv}=Object,kd=(e=>t=>{const n=JF.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),so=e=>(e=e.toLowerCase(),t=>kd(t)===e),Rd=e=>t=>typeof t===e,{isArray:ul}=Array,va=Rd("undefined");function YF(e){return e!==null&&!va(e)&&e.constructor!==null&&!va(e.constructor)&&kr(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const n2=so("ArrayBuffer");function ZF(e){let t;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&n2(e.buffer),t}const QF=Rd("string"),kr=Rd("function"),r2=Rd("number"),Ld=e=>e!==null&&typeof e=="object",e8=e=>e===!0||e===!1,uc=e=>{if(kd(e)!=="object")return!1;const t=Cv(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},t8=so("Date"),n8=so("File"),r8=so("Blob"),o8=so("FileList"),i8=e=>Ld(e)&&kr(e.pipe),s8=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||kr(e.append)&&((t=kd(e))==="formdata"||t==="object"&&kr(e.toString)&&e.toString()==="[object FormData]"))},l8=so("URLSearchParams"),[a8,u8,c8,d8]=["ReadableStream","Request","Response","Headers"].map(so),f8=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ma(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e=="undefined")return;let r,o;if(typeof e!="object"&&(e=[e]),ul(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const s=n?Object.getOwnPropertyNames(e):Object.keys(e),l=s.length;let a;for(r=0;r<l;r++)a=s[r],t.call(null,e[a],a,e)}}function o2(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const i2=(()=>typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:global)(),s2=e=>!va(e)&&e!==i2;function $h(){const{caseless:e}=s2(this)&&this||{},t={},n=(r,o)=>{const s=e&&o2(t,o)||o;uc(t[s])&&uc(r)?t[s]=$h(t[s],r):uc(r)?t[s]=$h({},r):ul(r)?t[s]=r.slice():t[s]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&Ma(arguments[r],n);return t}const p8=(e,t,n,{allOwnKeys:r}={})=>(Ma(t,(o,s)=>{n&&kr(o)?e[s]=t2(o,n):e[s]=o},{allOwnKeys:r}),e),h8=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),m8=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},v8=(e,t,n,r)=>{let o,s,l;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)l=o[s],(!r||r(l,e,t))&&!a[l]&&(t[l]=e[l],a[l]=!0);e=n!==!1&&Cv(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},g8=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},y8=e=>{if(!e)return null;if(ul(e))return e;let t=e.length;if(!r2(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},b8=(e=>t=>e&&t instanceof e)(typeof Uint8Array!="undefined"&&Cv(Uint8Array)),_8=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const s=o.value;t.call(e,s[0],s[1])}},w8=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},S8=so("HTMLFormElement"),E8=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),g1=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),x8=so("RegExp"),l2=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Ma(n,(o,s)=>{let l;(l=t(o,s,e))!==!1&&(r[s]=l||o)}),Object.defineProperties(e,r)},$8=e=>{l2(e,(t,n)=>{if(kr(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(!!kr(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},C8=(e,t)=>{const n={},r=o=>{o.forEach(s=>{n[s]=!0})};return ul(e)?r(e):r(String(e).split(t)),n},T8=()=>{},O8=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Pp="abcdefghijklmnopqrstuvwxyz",y1="0123456789",a2={DIGIT:y1,ALPHA:Pp,ALPHA_DIGIT:Pp+Pp.toUpperCase()+y1},A8=(e=16,t=a2.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function I8(e){return!!(e&&kr(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const P8=e=>{const t=new Array(10),n=(r,o)=>{if(Ld(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const s=ul(r)?[]:{};return Ma(r,(l,a)=>{const c=n(l,o+1);!va(c)&&(s[a]=c)}),t[o]=void 0,s}}return r};return n(e,0)},k8=so("AsyncFunction"),R8=e=>e&&(Ld(e)||kr(e))&&kr(e.then)&&kr(e.catch);var ee={isArray:ul,isArrayBuffer:n2,isBuffer:YF,isFormData:s8,isArrayBufferView:ZF,isString:QF,isNumber:r2,isBoolean:e8,isObject:Ld,isPlainObject:uc,isReadableStream:a8,isRequest:u8,isResponse:c8,isHeaders:d8,isUndefined:va,isDate:t8,isFile:n8,isBlob:r8,isRegExp:x8,isFunction:kr,isStream:i8,isURLSearchParams:l8,isTypedArray:b8,isFileList:o8,forEach:Ma,merge:$h,extend:p8,trim:f8,stripBOM:h8,inherits:m8,toFlatObject:v8,kindOf:kd,kindOfTest:so,endsWith:g8,toArray:y8,forEachEntry:_8,matchAll:w8,isHTMLForm:S8,hasOwnProperty:g1,hasOwnProp:g1,reduceDescriptors:l2,freezeMethods:$8,toObjectSet:C8,toCamelCase:E8,noop:T8,toFiniteNumber:O8,findKey:o2,global:i2,isContextDefined:s2,ALPHABET:a2,generateString:A8,isSpecCompliantForm:I8,toJSONObject:P8,isAsyncFn:k8,isThenable:R8};function nt(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}ee.inherits(nt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ee.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const u2=nt.prototype,c2={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{c2[e]={value:e}});Object.defineProperties(nt,c2);Object.defineProperty(u2,"isAxiosError",{value:!0});nt.from=(e,t,n,r,o,s)=>{const l=Object.create(u2);return ee.toFlatObject(e,l,function(c){return c!==Error.prototype},a=>a!=="isAxiosError"),nt.call(l,e.message,t,n,r,o),l.cause=e,l.name=e.name,s&&Object.assign(l,s),l};var L8=null;function Ch(e){return ee.isPlainObject(e)||ee.isArray(e)}function d2(e){return ee.endsWith(e,"[]")?e.slice(0,-2):e}function b1(e,t,n){return e?e.concat(t).map(function(o,s){return o=d2(o),!n&&s?"["+o+"]":o}).join(n?".":""):t}function N8(e){return ee.isArray(e)&&!e.some(Ch)}const M8=ee.toFlatObject(ee,{},null,function(t){return/^is[A-Z]/.test(t)});function Nd(e,t,n){if(!ee.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=ee.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(w,I){return!ee.isUndefined(I[w])});const r=n.metaTokens,o=n.visitor||p,s=n.dots,l=n.indexes,c=(n.Blob||typeof Blob!="undefined"&&Blob)&&ee.isSpecCompliantForm(t);if(!ee.isFunction(o))throw new TypeError("visitor must be a function");function f(_){if(_===null)return"";if(ee.isDate(_))return _.toISOString();if(!c&&ee.isBlob(_))throw new nt("Blob is not supported. Use a Buffer instead.");return ee.isArrayBuffer(_)||ee.isTypedArray(_)?c&&typeof Blob=="function"?new Blob([_]):Buffer.from(_):_}function p(_,w,I){let O=_;if(_&&!I&&typeof _=="object"){if(ee.endsWith(w,"{}"))w=r?w:w.slice(0,-2),_=JSON.stringify(_);else if(ee.isArray(_)&&N8(_)||(ee.isFileList(_)||ee.endsWith(w,"[]"))&&(O=ee.toArray(_)))return w=d2(w),O.forEach(function(E,T){!(ee.isUndefined(E)||E===null)&&t.append(l===!0?b1([w],T,s):l===null?w:w+"[]",f(E))}),!1}return Ch(_)?!0:(t.append(b1(I,w,s),f(_)),!1)}const h=[],v=Object.assign(M8,{defaultVisitor:p,convertValue:f,isVisitable:Ch});function y(_,w){if(!ee.isUndefined(_)){if(h.indexOf(_)!==-1)throw Error("Circular reference detected in "+w.join("."));h.push(_),ee.forEach(_,function(O,S){(!(ee.isUndefined(O)||O===null)&&o.call(t,O,ee.isString(S)?S.trim():S,w,v))===!0&&y(O,w?w.concat(S):[S])}),h.pop()}}if(!ee.isObject(e))throw new TypeError("data must be an object");return y(e),t}function _1(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Tv(e,t){this._pairs=[],e&&Nd(e,this,t)}const f2=Tv.prototype;f2.append=function(t,n){this._pairs.push([t,n])};f2.toString=function(t){const n=t?function(r){return t.call(this,r,_1)}:_1;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function D8(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function p2(e,t,n){if(!t)return e;const r=n&&n.encode||D8,o=n&&n.serialize;let s;if(o?s=o(t,n):s=ee.isURLSearchParams(t)?t.toString():new Tv(t,n).toString(r),s){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class F8{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){ee.forEach(this.handlers,function(r){r!==null&&t(r)})}}var w1=F8,h2={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},B8=typeof URLSearchParams!="undefined"?URLSearchParams:Tv,U8=typeof FormData!="undefined"?FormData:null,j8=typeof Blob!="undefined"?Blob:null,H8={isBrowser:!0,classes:{URLSearchParams:B8,FormData:U8,Blob:j8},protocols:["http","https","file","blob","url","data"]};const Ov=typeof window!="undefined"&&typeof document!="undefined",V8=(e=>Ov&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator!="undefined"&&navigator.product),W8=(()=>typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),z8=Ov&&window.location.href||"http://localhost";var q8=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ov,hasStandardBrowserWebWorkerEnv:W8,hasStandardBrowserEnv:V8,origin:z8},Symbol.toStringTag,{value:"Module"})),Zr={...q8,...H8};function K8(e,t){return Nd(e,new Zr.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,s){return Zr.isNode&&ee.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function G8(e){return ee.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function X8(e){const t={},n=Object.keys(e);let r;const o=n.length;let s;for(r=0;r<o;r++)s=n[r],t[s]=e[s];return t}function m2(e){function t(n,r,o,s){let l=n[s++];if(l==="__proto__")return!0;const a=Number.isFinite(+l),c=s>=n.length;return l=!l&&ee.isArray(o)?o.length:l,c?(ee.hasOwnProp(o,l)?o[l]=[o[l],r]:o[l]=r,!a):((!o[l]||!ee.isObject(o[l]))&&(o[l]=[]),t(n,r,o[l],s)&&ee.isArray(o[l])&&(o[l]=X8(o[l])),!a)}if(ee.isFormData(e)&&ee.isFunction(e.entries)){const n={};return ee.forEachEntry(e,(r,o)=>{t(G8(r),o,n,0)}),n}return null}function J8(e,t,n){if(ee.isString(e))try{return(t||JSON.parse)(e),ee.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Av={transitional:h2,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,s=ee.isObject(t);if(s&&ee.isHTMLForm(t)&&(t=new FormData(t)),ee.isFormData(t))return o?JSON.stringify(m2(t)):t;if(ee.isArrayBuffer(t)||ee.isBuffer(t)||ee.isStream(t)||ee.isFile(t)||ee.isBlob(t)||ee.isReadableStream(t))return t;if(ee.isArrayBufferView(t))return t.buffer;if(ee.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return K8(t,this.formSerializer).toString();if((a=ee.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Nd(a?{"files[]":t}:t,c&&new c,this.formSerializer)}}return s||o?(n.setContentType("application/json",!1),J8(t)):t}],transformResponse:[function(t){const n=this.transitional||Av.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(ee.isResponse(t)||ee.isReadableStream(t))return t;if(t&&ee.isString(t)&&(r&&!this.responseType||o)){const l=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(a){if(l)throw a.name==="SyntaxError"?nt.from(a,nt.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Zr.classes.FormData,Blob:Zr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ee.forEach(["delete","get","head","post","put","patch"],e=>{Av.headers[e]={}});var Iv=Av;const Y8=ee.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var Z8=e=>{const t={};let n,r,o;return e&&e.split(`50 `}function h1(e,t){var n=new Blob([t],{type:"text/plain"});const r=document.createElement("a");r.href=window.URL.createObjectURL(n),r.download=e,document.body.appendChild(r),r.click(),document.body.removeChild(r)}function*bF(e){const t=[lF,aF,uF,cF];let n=[];if(t.forEach(r=>{if(!(n!==null&&n.length>0))try{n=r(e.payload)}catch{n=null}}),n===null){yield Ie($v({type:"error",message:dF("Unable to parse PSC chapters.","podlove-podcasting-plugin-for-wordpress")}));return}yield Ie(LE(n))}function*_F(e){const t=yield Te(G.chapters.selectedIndex);if(t===null)return;const n=yield Te(G.chapters.list);switch(!0){case e.key==="up":t===0?yield Ie(di(n.length-1)):yield Ie(di(t-1));break;case e.key==="down":t===n.length-1?yield Ie(di(0)):yield Ie(di(t+1));break;case e.key==="esc":yield Ie(di(null));break}}function*wF(){yield Ie(dv({onSuccess:{type:rv}}))}function SF(){return function*(){yield xo(AE,pF)}}function*EF(){const e=yield Go();yield Dt(Pd,e),yield Xe(YE,xF,e),yield Xe(fv,CF,e),yield Xe(QE,TF,e),yield Xe(ZE,$F,e)}function*Pd(e){const t=yield Te(G.episode.id),[n,r]=yield Promise.all([e.get(`transcripts/${t}`),e.get(`transcripts/voices/${t}`)]);yield Ie(ED(Y.exports.get(n,["result","transcript"],[]))),yield Ie(xD(Y.exports.get(r,["result","voices"],[])))}function*xF(e,t){const n=yield Te(G.episode.id),{result:r}=yield e.put(`transcripts/${n}`,{content:t.payload});r&&(yield Dt(Pd,e))}function*$F(e,t){const n=yield Te(G.episode.id),{result:r}=yield e.put(`transcripts/${n}`,{asset:1});r&&(yield Dt(Pd,e))}function*CF(e,t){const n=yield Te(G.episode.id);yield e.post(`transcripts/voices/${n}`,{voice:t.payload.voice,contributor_id:t.payload.contributor})}function*TF(e){const t=yield Te(G.episode.id),{result:n}=yield e.delete(`transcripts/${t}`);n&&(yield Dt(Pd,e))}function OF(){return function*(){yield xo(GE,EF)}}function*AF(){const e=yield Go();yield Dt(kF,e),yield Dt(RF,e),yield Dt(LF,e),yield Dt(IF,e),yield Xe(VE,NF,e),yield Gx(3e3,[sv,iv,lv,av,uv],PF,e)}function*IF(e){const t=yield Te(G.episode.id);if(!t)return;const{result:n}=yield e.get(`episodes/${t}/contributions`);!n||(yield Ie(WE({contributions:Y.exports.get(n,["contribution"],[])})))}function*PF(e){const t=yield Te(G.episode.id);if(!t)return;const n=yield Te(G.contributors.roles),r=yield Te(G.contributors.groups);let s=(yield Te(G.episode.contributions)).map(function({contributor_id:l,role_id:a,group_id:c,position:f,comment:p}){return{contributor_id:Y.exports.toInteger(l),role_id:Y.exports.toInteger(a)==0&&n.length>0?n[0].id:Y.exports.toInteger(a),group_id:Y.exports.toInteger(c)==0&&r.length>0?r[0].id:Y.exports.toInteger(c),position:Y.exports.toInteger(f),comment:p||""}});yield e.put(`episodes/${t}/contributions`,{contributors:s})}function*kF(e){const{result:t}=yield e.get("contributors",{query:{filter:"all"}});!t||(yield Ie(kD(Y.exports.get(t,"contributors",[]))))}function*RF(e){const{result:t}=yield e.get("contributors/roles");!t||(yield Ie(RD(Y.exports.get(t,"roles",[]))))}function*LF(e){const{result:t}=yield e.get("contributors/groups");!t||(yield Ie(LD(Y.exports.get(t,"groups",[]))))}function*NF(e,t){const{result:n,error:r}=yield e.post("contributors",{});if(r)return;const o=n==null?void 0:n.id,s=Y.exports.get(t,["payload"]),{error:l}=yield e.put(`contributors/${o}`,{realname:s});if(l)return;const a={id:o,realname:s};yield Ie(ND(a)),yield Ie(zE(a))}function MF(){return function*(){yield xo(ex,AF)}}const ji=Y.exports.get(window,["wp","data"],null),Qx=Y.exports.get(window,["wp","media"],null),Qi=document.querySelector('input[name="post_title"]'),DF=e=>Qi==null?void 0:Qi.addEventListener("change",t=>e(Y.exports.get(t,["target","value"])));function*FF(){const e=yield Te(G.settings.autoGenerateEpisodeTitle);typeof(ji==null?void 0:ji.subscribe)!="undefined"&&(yield Xe(yield Zn(xh,ji==null?void 0:ji.subscribe),BF)),Qi&&(yield Xe(yield Zn(xh,DF),e2)),e&&(yield Xe(Td,m1),yield Xe(Ys,m1)),Qx&&(yield Xe(qE,UF))}function*BF(){yield Ie(KE({prop:"title",value:ji.select("core/editor").getEditedPostAttribute("title")}))}function*e2(e){yield Ie(KE({prop:"title",value:e}))}function*m1(){if(!Qi)return;const e=yield Te(G.settings.blogTitleTemplate);if(!e)return;const t=yield Te(G.episode.title),n=yield Te(G.episode.number),r=yield Te(G.podcast.mnemonic),o=yield Te(G.settings.episodeNumberPadding),s=e.replace("%mnemonic%",r||"").replace("%episode_number%",(n||"").padStart(o||0,"0")).replace("%season_number%","").replace("%episode_title%",t||"");Qi.value!=s&&(Qi.value=s,yield e2(s))}function*UF(e){const t=Y.exports.get(e,["payload","onSuccess"]);if(!t){console.warn("Missing successAction");return}const n=Qx({title:"Select or Upload Media Of Your Chosen Persuasion",button:{text:"Use this media"},multiple:!1}),r=new Promise(o=>{n.on("select",()=>{const{url:s}=n.state().get("selection").first().toJSON();o(s)})});n.open();try{const o=yield r;yield Ie({...t,payload:o})}finally{}}function jF(){return function*(){yield xo(Eo,FF)}}let Bl={};function*HF(){const e=yield Go();yield Dt(WF,e),yield Xe(Ys,zF),yield Eh(1e3,Ys,v1,e),yield Eh(50,FE,v1,e),yield Xe(BE,qF),yield Xe(HE,KF),yield Xe(jE,GF),yield Xe(Td,VF)}function*VF(){const e=yield Te(G.episode.auphonicWebhookConfig);e&&(yield Ie(Ax(e.enabled)))}function*WF(e){const t=yield Te(G.episode.id),{result:n}=yield e.get(`episodes/${t}`);n&&(n.slug===null&&(yield Ie(_7())),yield Ie(WE(n)))}function zF(e){const t=Y.exports.get(e,["payload","prop"]),n=Y.exports.get(e,["payload","value"],null);!t||(Bl[t]=n)}function*v1(e,t){const n=yield Te(G.episode.id);Y.exports.isEmpty(Bl)||(yield e.put(`episodes/${n}`,Bl,{query:{skip_validation:"1"}}),yield Ie(mD(Bl)),Bl={})}function*qF(e){Object.keys(e.payload).includes("slug")&&(yield Ie(vD()))}function*KF(){yield Ie(dv({onSuccess:{type:jE}}))}function*GF(e){yield Ie($t({prop:"episode_poster",value:Y.exports.get(e,["payload"])}))}function XF(){return function*(){yield xo(DE,HF)}}function t2(e,t){return function(){return e.apply(t,arguments)}}const{toString:JF}=Object.prototype,{getPrototypeOf:Cv}=Object,kd=(e=>t=>{const n=JF.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),so=e=>(e=e.toLowerCase(),t=>kd(t)===e),Rd=e=>t=>typeof t===e,{isArray:ul}=Array,va=Rd("undefined");function YF(e){return e!==null&&!va(e)&&e.constructor!==null&&!va(e.constructor)&&kr(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const n2=so("ArrayBuffer");function ZF(e){let t;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&n2(e.buffer),t}const QF=Rd("string"),kr=Rd("function"),r2=Rd("number"),Ld=e=>e!==null&&typeof e=="object",e8=e=>e===!0||e===!1,uc=e=>{if(kd(e)!=="object")return!1;const t=Cv(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},t8=so("Date"),n8=so("File"),r8=so("Blob"),o8=so("FileList"),i8=e=>Ld(e)&&kr(e.pipe),s8=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||kr(e.append)&&((t=kd(e))==="formdata"||t==="object"&&kr(e.toString)&&e.toString()==="[object FormData]"))},l8=so("URLSearchParams"),[a8,u8,c8,d8]=["ReadableStream","Request","Response","Headers"].map(so),f8=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ma(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e=="undefined")return;let r,o;if(typeof e!="object"&&(e=[e]),ul(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const s=n?Object.getOwnPropertyNames(e):Object.keys(e),l=s.length;let a;for(r=0;r<l;r++)a=s[r],t.call(null,e[a],a,e)}}function o2(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const i2=(()=>typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:global)(),s2=e=>!va(e)&&e!==i2;function $h(){const{caseless:e}=s2(this)&&this||{},t={},n=(r,o)=>{const s=e&&o2(t,o)||o;uc(t[s])&&uc(r)?t[s]=$h(t[s],r):uc(r)?t[s]=$h({},r):ul(r)?t[s]=r.slice():t[s]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&Ma(arguments[r],n);return t}const p8=(e,t,n,{allOwnKeys:r}={})=>(Ma(t,(o,s)=>{n&&kr(o)?e[s]=t2(o,n):e[s]=o},{allOwnKeys:r}),e),h8=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),m8=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},v8=(e,t,n,r)=>{let o,s,l;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)l=o[s],(!r||r(l,e,t))&&!a[l]&&(t[l]=e[l],a[l]=!0);e=n!==!1&&Cv(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},g8=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},y8=e=>{if(!e)return null;if(ul(e))return e;let t=e.length;if(!r2(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},b8=(e=>t=>e&&t instanceof e)(typeof Uint8Array!="undefined"&&Cv(Uint8Array)),_8=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const s=o.value;t.call(e,s[0],s[1])}},w8=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},S8=so("HTMLFormElement"),E8=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),g1=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),x8=so("RegExp"),l2=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Ma(n,(o,s)=>{let l;(l=t(o,s,e))!==!1&&(r[s]=l||o)}),Object.defineProperties(e,r)},$8=e=>{l2(e,(t,n)=>{if(kr(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(!!kr(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},C8=(e,t)=>{const n={},r=o=>{o.forEach(s=>{n[s]=!0})};return ul(e)?r(e):r(String(e).split(t)),n},T8=()=>{},O8=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Pp="abcdefghijklmnopqrstuvwxyz",y1="0123456789",a2={DIGIT:y1,ALPHA:Pp,ALPHA_DIGIT:Pp+Pp.toUpperCase()+y1},A8=(e=16,t=a2.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function I8(e){return!!(e&&kr(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const P8=e=>{const t=new Array(10),n=(r,o)=>{if(Ld(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const s=ul(r)?[]:{};return Ma(r,(l,a)=>{const c=n(l,o+1);!va(c)&&(s[a]=c)}),t[o]=void 0,s}}return r};return n(e,0)},k8=so("AsyncFunction"),R8=e=>e&&(Ld(e)||kr(e))&&kr(e.then)&&kr(e.catch);var ee={isArray:ul,isArrayBuffer:n2,isBuffer:YF,isFormData:s8,isArrayBufferView:ZF,isString:QF,isNumber:r2,isBoolean:e8,isObject:Ld,isPlainObject:uc,isReadableStream:a8,isRequest:u8,isResponse:c8,isHeaders:d8,isUndefined:va,isDate:t8,isFile:n8,isBlob:r8,isRegExp:x8,isFunction:kr,isStream:i8,isURLSearchParams:l8,isTypedArray:b8,isFileList:o8,forEach:Ma,merge:$h,extend:p8,trim:f8,stripBOM:h8,inherits:m8,toFlatObject:v8,kindOf:kd,kindOfTest:so,endsWith:g8,toArray:y8,forEachEntry:_8,matchAll:w8,isHTMLForm:S8,hasOwnProperty:g1,hasOwnProp:g1,reduceDescriptors:l2,freezeMethods:$8,toObjectSet:C8,toCamelCase:E8,noop:T8,toFiniteNumber:O8,findKey:o2,global:i2,isContextDefined:s2,ALPHABET:a2,generateString:A8,isSpecCompliantForm:I8,toJSONObject:P8,isAsyncFn:k8,isThenable:R8};function nt(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}ee.inherits(nt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ee.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const u2=nt.prototype,c2={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{c2[e]={value:e}});Object.defineProperties(nt,c2);Object.defineProperty(u2,"isAxiosError",{value:!0});nt.from=(e,t,n,r,o,s)=>{const l=Object.create(u2);return ee.toFlatObject(e,l,function(c){return c!==Error.prototype},a=>a!=="isAxiosError"),nt.call(l,e.message,t,n,r,o),l.cause=e,l.name=e.name,s&&Object.assign(l,s),l};var L8=null;function Ch(e){return ee.isPlainObject(e)||ee.isArray(e)}function d2(e){return ee.endsWith(e,"[]")?e.slice(0,-2):e}function b1(e,t,n){return e?e.concat(t).map(function(o,s){return o=d2(o),!n&&s?"["+o+"]":o}).join(n?".":""):t}function N8(e){return ee.isArray(e)&&!e.some(Ch)}const M8=ee.toFlatObject(ee,{},null,function(t){return/^is[A-Z]/.test(t)});function Nd(e,t,n){if(!ee.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=ee.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(w,I){return!ee.isUndefined(I[w])});const r=n.metaTokens,o=n.visitor||p,s=n.dots,l=n.indexes,c=(n.Blob||typeof Blob!="undefined"&&Blob)&&ee.isSpecCompliantForm(t);if(!ee.isFunction(o))throw new TypeError("visitor must be a function");function f(_){if(_===null)return"";if(ee.isDate(_))return _.toISOString();if(!c&&ee.isBlob(_))throw new nt("Blob is not supported. Use a Buffer instead.");return ee.isArrayBuffer(_)||ee.isTypedArray(_)?c&&typeof Blob=="function"?new Blob([_]):Buffer.from(_):_}function p(_,w,I){let O=_;if(_&&!I&&typeof _=="object"){if(ee.endsWith(w,"{}"))w=r?w:w.slice(0,-2),_=JSON.stringify(_);else if(ee.isArray(_)&&N8(_)||(ee.isFileList(_)||ee.endsWith(w,"[]"))&&(O=ee.toArray(_)))return w=d2(w),O.forEach(function(E,T){!(ee.isUndefined(E)||E===null)&&t.append(l===!0?b1([w],T,s):l===null?w:w+"[]",f(E))}),!1}return Ch(_)?!0:(t.append(b1(I,w,s),f(_)),!1)}const h=[],v=Object.assign(M8,{defaultVisitor:p,convertValue:f,isVisitable:Ch});function y(_,w){if(!ee.isUndefined(_)){if(h.indexOf(_)!==-1)throw Error("Circular reference detected in "+w.join("."));h.push(_),ee.forEach(_,function(O,S){(!(ee.isUndefined(O)||O===null)&&o.call(t,O,ee.isString(S)?S.trim():S,w,v))===!0&&y(O,w?w.concat(S):[S])}),h.pop()}}if(!ee.isObject(e))throw new TypeError("data must be an object");return y(e),t}function _1(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Tv(e,t){this._pairs=[],e&&Nd(e,this,t)}const f2=Tv.prototype;f2.append=function(t,n){this._pairs.push([t,n])};f2.toString=function(t){const n=t?function(r){return t.call(this,r,_1)}:_1;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function D8(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function p2(e,t,n){if(!t)return e;const r=n&&n.encode||D8,o=n&&n.serialize;let s;if(o?s=o(t,n):s=ee.isURLSearchParams(t)?t.toString():new Tv(t,n).toString(r),s){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class F8{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){ee.forEach(this.handlers,function(r){r!==null&&t(r)})}}var w1=F8,h2={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},B8=typeof URLSearchParams!="undefined"?URLSearchParams:Tv,U8=typeof FormData!="undefined"?FormData:null,j8=typeof Blob!="undefined"?Blob:null,H8={isBrowser:!0,classes:{URLSearchParams:B8,FormData:U8,Blob:j8},protocols:["http","https","file","blob","url","data"]};const Ov=typeof window!="undefined"&&typeof document!="undefined",V8=(e=>Ov&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator!="undefined"&&navigator.product),W8=(()=>typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),z8=Ov&&window.location.href||"http://localhost";var q8=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ov,hasStandardBrowserWebWorkerEnv:W8,hasStandardBrowserEnv:V8,origin:z8},Symbol.toStringTag,{value:"Module"})),Zr={...q8,...H8};function K8(e,t){return Nd(e,new Zr.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,s){return Zr.isNode&&ee.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function G8(e){return ee.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function X8(e){const t={},n=Object.keys(e);let r;const o=n.length;let s;for(r=0;r<o;r++)s=n[r],t[s]=e[s];return t}function m2(e){function t(n,r,o,s){let l=n[s++];if(l==="__proto__")return!0;const a=Number.isFinite(+l),c=s>=n.length;return l=!l&&ee.isArray(o)?o.length:l,c?(ee.hasOwnProp(o,l)?o[l]=[o[l],r]:o[l]=r,!a):((!o[l]||!ee.isObject(o[l]))&&(o[l]=[]),t(n,r,o[l],s)&&ee.isArray(o[l])&&(o[l]=X8(o[l])),!a)}if(ee.isFormData(e)&&ee.isFunction(e.entries)){const n={};return ee.forEachEntry(e,(r,o)=>{t(G8(r),o,n,0)}),n}return null}function J8(e,t,n){if(ee.isString(e))try{return(t||JSON.parse)(e),ee.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Av={transitional:h2,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,s=ee.isObject(t);if(s&&ee.isHTMLForm(t)&&(t=new FormData(t)),ee.isFormData(t))return o?JSON.stringify(m2(t)):t;if(ee.isArrayBuffer(t)||ee.isBuffer(t)||ee.isStream(t)||ee.isFile(t)||ee.isBlob(t)||ee.isReadableStream(t))return t;if(ee.isArrayBufferView(t))return t.buffer;if(ee.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return K8(t,this.formSerializer).toString();if((a=ee.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Nd(a?{"files[]":t}:t,c&&new c,this.formSerializer)}}return s||o?(n.setContentType("application/json",!1),J8(t)):t}],transformResponse:[function(t){const n=this.transitional||Av.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(ee.isResponse(t)||ee.isReadableStream(t))return t;if(t&&ee.isString(t)&&(r&&!this.responseType||o)){const l=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(a){if(l)throw a.name==="SyntaxError"?nt.from(a,nt.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Zr.classes.FormData,Blob:Zr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ee.forEach(["delete","get","head","post","put","patch"],e=>{Av.headers[e]={}});var Iv=Av;const Y8=ee.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var Z8=e=>{const t={};let n,r,o;return e&&e.split(` 51 51 `).forEach(function(l){o=l.indexOf(":"),n=l.substring(0,o).trim().toLowerCase(),r=l.substring(o+1).trim(),!(!n||t[n]&&Y8[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t};const S1=Symbol("internals");function Pl(e){return e&&String(e).trim().toLowerCase()}function cc(e){return e===!1||e==null?e:ee.isArray(e)?e.map(cc):String(e)}function Q8(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const eB=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function kp(e,t,n,r,o){if(ee.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!ee.isString(t)){if(ee.isString(r))return t.indexOf(r)!==-1;if(ee.isRegExp(r))return r.test(t)}}function tB(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function nB(e,t){const n=ee.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,s,l){return this[r].call(this,t,o,s,l)},configurable:!0})})}class Md{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function s(a,c,f){const p=Pl(c);if(!p)throw new Error("header name must be a non-empty string");const h=ee.findKey(o,p);(!h||o[h]===void 0||f===!0||f===void 0&&o[h]!==!1)&&(o[h||c]=cc(a))}const l=(a,c)=>ee.forEach(a,(f,p)=>s(f,p,c));if(ee.isPlainObject(t)||t instanceof this.constructor)l(t,n);else if(ee.isString(t)&&(t=t.trim())&&!eB(t))l(Z8(t),n);else if(ee.isHeaders(t))for(const[a,c]of t.entries())s(c,a,r);else t!=null&&s(n,t,r);return this}get(t,n){if(t=Pl(t),t){const r=ee.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return Q8(o);if(ee.isFunction(n))return n.call(this,o,r);if(ee.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Pl(t),t){const r=ee.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||kp(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function s(l){if(l=Pl(l),l){const a=ee.findKey(r,l);a&&(!n||kp(r,r[a],a,n))&&(delete r[a],o=!0)}}return ee.isArray(t)?t.forEach(s):s(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const s=n[r];(!t||kp(this,this[s],s,t,!0))&&(delete this[s],o=!0)}return o}normalize(t){const n=this,r={};return ee.forEach(this,(o,s)=>{const l=ee.findKey(r,s);if(l){n[l]=cc(o),delete n[s];return}const a=t?tB(s):String(s).trim();a!==s&&delete n[s],n[a]=cc(o),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return ee.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&ee.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` 52 52 `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[S1]=this[S1]={accessors:{}}).accessors,o=this.prototype;function s(l){const a=Pl(l);r[a]||(nB(o,l),r[a]=!0)}return ee.isArray(t)?t.forEach(s):s(t),this}}Md.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ee.reduceDescriptors(Md.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});ee.freezeMethods(Md);var Qr=Md;function Rp(e,t){const n=this||Iv,r=t||n,o=Qr.from(r.headers);let s=r.data;return ee.forEach(e,function(a){s=a.call(n,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}function v2(e){return!!(e&&e.__CANCEL__)}function cl(e,t,n){nt.call(this,e==null?"canceled":e,nt.ERR_CANCELED,t,n),this.name="CanceledError"}ee.inherits(cl,nt,{__CANCEL__:!0});function g2(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new nt("Request failed with status code "+n.status,[nt.ERR_BAD_REQUEST,nt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function rB(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function oB(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,s=0,l;return t=t!==void 0?t:1e3,function(c){const f=Date.now(),p=r[s];l||(l=f),n[o]=c,r[o]=f;let h=s,v=0;for(;h!==o;)v+=n[h++],h=h%e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),f-l<t)return;const y=p&&f-p;return y?Math.round(v*1e3/y):void 0}}function iB(e,t){let n=0;const r=1e3/t;let o=null;return function(){const l=this===!0,a=Date.now();if(l||a-n>r)return o&&(clearTimeout(o),o=null),n=a,e.apply(null,arguments);o||(o=setTimeout(()=>(o=null,n=Date.now(),e.apply(null,arguments)),r-(a-n)))}}var Vc=(e,t,n=3)=>{let r=0;const o=oB(50,250);return iB(s=>{const l=s.loaded,a=s.lengthComputable?s.total:void 0,c=l-r,f=o(c),p=l<=a;r=l;const h={loaded:l,total:a,progress:a?l/a:void 0,bytes:c,rate:f||void 0,estimated:f&&a&&p?(a-l)/f:void 0,event:s,lengthComputable:a!=null};h[t?"download":"upload"]=!0,e(h)},n)},sB=Zr.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(s){let l=s;return t&&(n.setAttribute("href",l),l=n.href),n.setAttribute("href",l),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(l){const a=ee.isString(l)?o(l):l;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}(),lB=Zr.hasStandardBrowserEnv?{write(e,t,n,r,o,s){const l=[e+"="+encodeURIComponent(t)];ee.isNumber(n)&&l.push("expires="+new Date(n).toGMTString()),ee.isString(r)&&l.push("path="+r),ee.isString(o)&&l.push("domain="+o),s===!0&&l.push("secure"),document.cookie=l.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function aB(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function uB(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function y2(e,t){return e&&!aB(t)?uB(e,t):t}const E1=e=>e instanceof Qr?{...e}:e;function ls(e,t){t=t||{};const n={};function r(f,p,h){return ee.isPlainObject(f)&&ee.isPlainObject(p)?ee.merge.call({caseless:h},f,p):ee.isPlainObject(p)?ee.merge({},p):ee.isArray(p)?p.slice():p}function o(f,p,h){if(ee.isUndefined(p)){if(!ee.isUndefined(f))return r(void 0,f,h)}else return r(f,p,h)}function s(f,p){if(!ee.isUndefined(p))return r(void 0,p)}function l(f,p){if(ee.isUndefined(p)){if(!ee.isUndefined(f))return r(void 0,f)}else return r(void 0,p)}function a(f,p,h){if(h in t)return r(f,p);if(h in e)return r(void 0,f)}const c={url:s,method:s,data:s,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:a,headers:(f,p)=>o(E1(f),E1(p),!0)};return ee.forEach(Object.keys(Object.assign({},e,t)),function(p){const h=c[p]||o,v=h(e[p],t[p],p);ee.isUndefined(v)&&h!==a||(n[p]=v)}),n}var b2=e=>{const t=ls({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:s,headers:l,auth:a}=t;t.headers=l=Qr.from(l),t.url=p2(y2(t.baseURL,t.url),e.params,e.paramsSerializer),a&&l.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let c;if(ee.isFormData(n)){if(Zr.hasStandardBrowserEnv||Zr.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else if((c=l.getContentType())!==!1){const[f,...p]=c?c.split(";").map(h=>h.trim()).filter(Boolean):[];l.setContentType([f||"multipart/form-data",...p].join("; "))}}if(Zr.hasStandardBrowserEnv&&(r&&ee.isFunction(r)&&(r=r(t)),r||r!==!1&&sB(t.url))){const f=o&&s&&lB.read(s);f&&l.set(o,f)}return t};const cB=typeof XMLHttpRequest!="undefined";var dB=cB&&function(e){return new Promise(function(n,r){const o=b2(e);let s=o.data;const l=Qr.from(o.headers).normalize();let{responseType:a}=o,c;function f(){o.cancelToken&&o.cancelToken.unsubscribe(c),o.signal&&o.signal.removeEventListener("abort",c)}let p=new XMLHttpRequest;p.open(o.method.toUpperCase(),o.url,!0),p.timeout=o.timeout;function h(){if(!p)return;const y=Qr.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),w={data:!a||a==="text"||a==="json"?p.responseText:p.response,status:p.status,statusText:p.statusText,headers:y,config:e,request:p};g2(function(O){n(O),f()},function(O){r(O),f()},w),p=null}"onloadend"in p?p.onloadend=h:p.onreadystatechange=function(){!p||p.readyState!==4||p.status===0&&!(p.responseURL&&p.responseURL.indexOf("file:")===0)||setTimeout(h)},p.onabort=function(){!p||(r(new nt("Request aborted",nt.ECONNABORTED,o,p)),p=null)},p.onerror=function(){r(new nt("Network Error",nt.ERR_NETWORK,o,p)),p=null},p.ontimeout=function(){let _=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const w=o.transitional||h2;o.timeoutErrorMessage&&(_=o.timeoutErrorMessage),r(new nt(_,w.clarifyTimeoutError?nt.ETIMEDOUT:nt.ECONNABORTED,o,p)),p=null},s===void 0&&l.setContentType(null),"setRequestHeader"in p&&ee.forEach(l.toJSON(),function(_,w){p.setRequestHeader(w,_)}),ee.isUndefined(o.withCredentials)||(p.withCredentials=!!o.withCredentials),a&&a!=="json"&&(p.responseType=o.responseType),typeof o.onDownloadProgress=="function"&&p.addEventListener("progress",Vc(o.onDownloadProgress,!0)),typeof o.onUploadProgress=="function"&&p.upload&&p.upload.addEventListener("progress",Vc(o.onUploadProgress)),(o.cancelToken||o.signal)&&(c=y=>{!p||(r(!y||y.type?new cl(null,e,p):y),p.abort(),p=null)},o.cancelToken&&o.cancelToken.subscribe(c),o.signal&&(o.signal.aborted?c():o.signal.addEventListener("abort",c)));const v=rB(o.url);if(v&&Zr.protocols.indexOf(v)===-1){r(new nt("Unsupported protocol "+v+":",nt.ERR_BAD_REQUEST,e));return}p.send(s||null)})};const fB=(e,t)=>{let n=new AbortController,r;const o=function(c){if(!r){r=!0,l();const f=c instanceof Error?c:this.reason;n.abort(f instanceof nt?f:new cl(f instanceof Error?f.message:f))}};let s=t&&setTimeout(()=>{o(new nt(`timeout ${t} of ms exceeded`,nt.ETIMEDOUT))},t);const l=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(c=>{c&&(c.removeEventListener?c.removeEventListener("abort",o):c.unsubscribe(o))}),e=null)};e.forEach(c=>c&&c.addEventListener&&c.addEventListener("abort",o));const{signal:a}=n;return a.unsubscribe=l,[a,()=>{s&&clearTimeout(s),s=null}]};var pB=fB;const hB=function*(e,t){let n=e.byteLength;if(!t||n<t){yield e;return}let r=0,o;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},mB=async function*(e,t,n){for await(const r of e)yield*hB(ArrayBuffer.isView(r)?r:await n(String(r)),t)},x1=(e,t,n,r,o)=>{const s=mB(e,t,o);let l=0;return new ReadableStream({type:"bytes",async pull(a){const{done:c,value:f}=await s.next();if(c){a.close(),r();return}let p=f.byteLength;n&&n(l+=p),a.enqueue(new Uint8Array(f))},cancel(a){return r(a),s.return()}},{highWaterMark:2})},$1=(e,t)=>{const n=e!=null;return r=>setTimeout(()=>t({lengthComputable:n,total:e,loaded:r}))},Dd=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",_2=Dd&&typeof ReadableStream=="function",Th=Dd&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),vB=_2&&(()=>{let e=!1;const t=new Request(Zr.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})(),C1=64*1024,Oh=_2&&!!(()=>{try{return ee.isReadableStream(new Response("").body)}catch{}})(),Wc={stream:Oh&&(e=>e.body)};Dd&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Wc[t]&&(Wc[t]=ee.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new nt(`Response type '${t}' is not supported`,nt.ERR_NOT_SUPPORT,r)})})})(new Response);const gB=async e=>{if(e==null)return 0;if(ee.isBlob(e))return e.size;if(ee.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(ee.isArrayBufferView(e))return e.byteLength;if(ee.isURLSearchParams(e)&&(e=e+""),ee.isString(e))return(await Th(e)).byteLength},yB=async(e,t)=>{const n=ee.toFiniteNumber(e.getContentLength());return n==null?gB(t):n};var bB=Dd&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:s,timeout:l,onDownloadProgress:a,onUploadProgress:c,responseType:f,headers:p,withCredentials:h="same-origin",fetchOptions:v}=b2(e);f=f?(f+"").toLowerCase():"text";let[y,_]=o||s||l?pB([o,s],l):[],w,I;const O=()=>{!w&&setTimeout(()=>{y&&y.unsubscribe()}),w=!0};let S;try{if(c&&vB&&n!=="get"&&n!=="head"&&(S=await yB(p,r))!==0){let P=new Request(t,{method:"POST",body:r,duplex:"half"}),k;ee.isFormData(r)&&(k=P.headers.get("content-type"))&&p.setContentType(k),P.body&&(r=x1(P.body,C1,$1(S,Vc(c)),null,Th))}ee.isString(h)||(h=h?"cors":"omit"),I=new Request(t,{...v,signal:y,method:n.toUpperCase(),headers:p.normalize().toJSON(),body:r,duplex:"half",withCredentials:h});let E=await fetch(I);const T=Oh&&(f==="stream"||f==="response");if(Oh&&(a||T)){const P={};["status","statusText","headers"].forEach(A=>{P[A]=E[A]});const k=ee.toFiniteNumber(E.headers.get("content-length"));E=new Response(x1(E.body,C1,a&&$1(k,Vc(a,!0)),T&&O,Th),P)}f=f||"text";let $=await Wc[ee.findKey(Wc,f)||"text"](E,e);return!T&&O(),_&&_(),await new Promise((P,k)=>{g2(P,k,{data:$,headers:Qr.from(E.headers),status:E.status,statusText:E.statusText,config:e,request:I})})}catch(E){throw O(),E&&E.name==="TypeError"&&/fetch/i.test(E.message)?Object.assign(new nt("Network Error",nt.ERR_NETWORK,e,I),{cause:E.cause||E}):nt.from(E,E&&E.code,e,I)}});const Ah={http:L8,xhr:dB,fetch:bB};ee.forEach(Ah,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const T1=e=>`- ${e}`,_B=e=>ee.isFunction(e)||e===null||e===!1;var w2={getAdapter:e=>{e=ee.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let s=0;s<t;s++){n=e[s];let l;if(r=n,!_B(n)&&(r=Ah[(l=String(n)).toLowerCase()],r===void 0))throw new nt(`Unknown adapter '${l}'`);if(r)break;o[l||"#"+s]=r}if(!r){const s=Object.entries(o).map(([a,c])=>`adapter ${a} `+(c===!1?"is not supported by the environment":"is not available in the build"));let l=t?s.length>1?`since : 53 53 `+s.map(T1).join(` 54 54 `):" "+T1(s[0]):"as no adapter specified";throw new nt("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return r},adapters:Ah};function Lp(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new cl(null,e)}function O1(e){return Lp(e),e.headers=Qr.from(e.headers),e.data=Rp.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),w2.getAdapter(e.adapter||Iv.adapter)(e).then(function(r){return Lp(e),r.data=Rp.call(e,e.transformResponse,r),r.headers=Qr.from(r.headers),r},function(r){return v2(r)||(Lp(e),r&&r.response&&(r.response.data=Rp.call(e,e.transformResponse,r.response),r.response.headers=Qr.from(r.response.headers))),Promise.reject(r)})}const S2="1.7.2",Pv={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Pv[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const A1={};Pv.transitional=function(t,n,r){function o(s,l){return"[Axios v"+S2+"] Transitional option '"+s+"'"+l+(r?". "+r:"")}return(s,l,a)=>{if(t===!1)throw new nt(o(l," has been removed"+(n?" in "+n:"")),nt.ERR_DEPRECATED);return n&&!A1[l]&&(A1[l]=!0,console.warn(o(l," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(s,l,a):!0}};function wB(e,t,n){if(typeof e!="object")throw new nt("options must be an object",nt.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const s=r[o],l=t[s];if(l){const a=e[s],c=a===void 0||l(a,s,e);if(c!==!0)throw new nt("option "+s+" must be "+c,nt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new nt("Unknown option "+s,nt.ERR_BAD_OPTION)}}var Ih={assertOptions:wB,validators:Pv};const li=Ih.validators;class zc{constructor(t){this.defaults=t,this.interceptors={request:new w1,response:new w1}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const s=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?s&&!String(r.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(r.stack+=` 55 `+s):r.stack=s}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=ls(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:s}=n;r!==void 0&&Ih.assertOptions(r,{silentJSONParsing:li.transitional(li.boolean),forcedJSONParsing:li.transitional(li.boolean),clarifyTimeoutError:li.transitional(li.boolean)},!1),o!=null&&(ee.isFunction(o)?n.paramsSerializer={serialize:o}:Ih.assertOptions(o,{encode:li.function,serialize:li.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l=s&&ee.merge(s.common,s[n.method]);s&&ee.forEach(["delete","get","head","post","put","patch","common"],_=>{delete s[_]}),n.headers=Qr.concat(l,s);const a=[];let c=!0;this.interceptors.request.forEach(function(w){typeof w.runWhen=="function"&&w.runWhen(n)===!1||(c=c&&w.synchronous,a.unshift(w.fulfilled,w.rejected))});const f=[];this.interceptors.response.forEach(function(w){f.push(w.fulfilled,w.rejected)});let p,h=0,v;if(!c){const _=[O1.bind(this),void 0];for(_.unshift.apply(_,a),_.push.apply(_,f),v=_.length,p=Promise.resolve(n);h<v;)p=p.then(_[h++],_[h++]);return p}v=a.length;let y=n;for(h=0;h<v;){const _=a[h++],w=a[h++];try{y=_(y)}catch(I){w.call(this,I);break}}try{p=O1.call(this,y)}catch(_){return Promise.reject(_)}for(h=0,v=f.length;h<v;)p=p.then(f[h++],f[h++]);return p}getUri(t){t=ls(this.defaults,t);const n=y2(t.baseURL,t.url);return p2(n,t.params,t.paramsSerializer)}}ee.forEach(["delete","get","head","options"],function(t){zc.prototype[t]=function(n,r){return this.request(ls(r||{},{method:t,url:n,data:(r||{}).data}))}});ee.forEach(["post","put","patch"],function(t){function n(r){return function(s,l,a){return this.request(ls(a||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:l}))}}zc.prototype[t]=n(),zc.prototype[t+"Form"]=n(!0)});var dc=zc;class kv{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const r=this;this.promise.then(o=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](o);r._listeners=null}),this.promise.then=o=>{let s;const l=new Promise(a=>{r.subscribe(a),s=a}).then(o);return l.cancel=function(){r.unsubscribe(s)},l},t(function(s,l,a){r.reason||(r.reason=new cl(s,l,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new kv(function(o){t=o}),cancel:t}}}var SB=kv;function EB(e){return function(n){return e.apply(null,n)}}function xB(e){return ee.isObject(e)&&e.isAxiosError===!0}const Ph={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ph).forEach(([e,t])=>{Ph[t]=e});var $B=Ph;function E2(e){const t=new dc(e),n=t2(dc.prototype.request,t);return ee.extend(n,dc.prototype,t,{allOwnKeys:!0}),ee.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return E2(ls(e,o))},n}const sn=E2(Iv);sn.Axios=dc;sn.CanceledError=cl;sn.CancelToken=SB;sn.isCancel=v2;sn.VERSION=S2;sn.toFormData=Nd;sn.AxiosError=nt;sn.Cancel=sn.CanceledError;sn.all=function(t){return Promise.all(t)};sn.spread=EB;sn.isAxiosError=xB;sn.mergeConfig=ls;sn.AxiosHeaders=Qr;sn.formToJSON=e=>m2(ee.isHTMLForm(e)?new FormData(e):e);sn.getAdapter=w2.getAdapter;sn.HttpStatusCode=$B;sn.default=sn;var CB=sn;const Rv=({bearer:e},t={})=>({"Content-Type":"application/json",Accept:"application/json",...x2({bearer:e}),...t}),x2=({bearer:e})=>({...e?{Authorization:`Bearer ${e}`}:{}}),TB=({errorHandler:e,bearer:t,method:n,urlProcessor:r})=>(o,{headers:s,query:l}={})=>fetch(al(r?r(o):o,l),{method:n,headers:Rv({bearer:t},s)}).then(Na(e)),OB=({errorHandler:e,bearer:t,method:n,urlProcessor:r})=>(o,s,{headers:l,query:a}={})=>fetch(al(r?r(o):o,a),{method:n,headers:Rv({bearer:t},l),body:JSON.stringify(s)}).then(Na(e)),AB=({errorHandler:e,bearer:t,method:n,urlProcessor:r})=>(o,s,{headers:l,query:a}={})=>fetch(al(r?r(o):o,a),{method:n,headers:Rv({bearer:t},l),body:JSON.stringify(s)}).then(Na(e)),IB=({errorHandler:e,bearer:t,urlProcessor:n})=>(r,o,{query:s}={})=>{const l=new FormData;if(o.file){const a=o.track_id||"input_file";l.append(a,o.file)}return o.image&&l.append("image",o.image),CB.post(al(n?n(r):r,s),l,{headers:{...x2({bearer:t})},onUploadProgress:a=>console.log("progress",a)})},PB=Y.exports.curry(({base:e,bearer:t,errorHandler:n})=>({get:TB({bearer:t,method:"GET",errorHandler:n,urlProcessor:r=>`${e}/${r}`}),post:OB({bearer:t,errorHandler:n,method:"POST",urlProcessor:r=>`${e}/${r}`}),delete:AB({bearer:t,errorHandler:n,method:"DELETE",urlProcessor:r=>`${e}/${r}`}),upload:IB({bearer:t,errorHandler:n,urlProcessor:r=>`${e}/${r}`})}));function*kB(){const e="https://auphonic.com/api",t=yield Te(G.auphonic.token);return PB({base:e,bearer:t,errorHandler:function(r){Fd.dispatch($v({type:"error",message:`Auphonic: ${r.error_message}`}))}})}let Gu;const RB=new Uint8Array(16);function LB(){if(!Gu&&(Gu=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Gu))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Gu(RB)}const wn=[];for(let e=0;e<256;++e)wn.push((e+256).toString(16).slice(1));function NB(e,t=0){return wn[e[t+0]]+wn[e[t+1]]+wn[e[t+2]]+wn[e[t+3]]+"-"+wn[e[t+4]]+wn[e[t+5]]+"-"+wn[e[t+6]]+wn[e[t+7]]+"-"+wn[e[t+8]]+wn[e[t+9]]+"-"+wn[e[t+10]]+wn[e[t+11]]+wn[e[t+12]]+wn[e[t+13]]+wn[e[t+14]]+wn[e[t+15]]}const MB=typeof crypto!="undefined"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);var I1={randomUUID:MB};function DB(e,t,n){if(I1.randomUUID&&!t&&!e)return I1.randomUUID();e=e||{};const r=e.random||(e.rng||LB)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(let o=0;o<16;++o)t[n+o]=r[o];return t}return NB(r)}function*FB(){const e=yield Go();yield Dt(BB,e),yield Ge(gv,t9),yield Ge(mv,e9)}function*BB(e){const{result:t}=yield e.get("auphonic/token");t&&(yield Ie(ZD(t)),yield Dt(UB),yield Ge(Bc,r9,e),yield Ge(yv,n9,e),yield Ge(Bc,o9,e),yield Ge(hv,i9,e),yield Ge(vv,l9))}function*UB(){const e=yield kB(),{result:{data:t}}=yield e.get("presets.json"),{result:{data:n}}=yield e.get("productions.json",{limit:10,minimal_data:!0});let{result:{data:r}}=yield e.get("services.json");yield Ie(Ex(n)),yield Ie(t7(t)),yield Ie(n7([{uuid:"url",display_name:"From URL",email:"",incoming:!0,outgoing:!1,type:"url"},{uuid:"file",display_name:"Upload from computer",email:"",incoming:!0,outgoing:!1,type:"file"},...r])),yield Zn(s9),yield Zn(a9),yield Ie(YD()),yield Ge(fx,ZB,e),yield Ge(px,QB,e),yield Ge($x,YB,e),yield Ge(xx,C2,e),yield Ge(wh,WB,e),yield Ge(Sx,HB,e),yield Ge(Tx,VB,e),yield Ge(wh,function*(){yield Ie(i7())}),yield Zn(jB,e)}function*jB(e){for(yield bh([Zn(P1,e),go(_h)]);;)yield go(bx),yield bh([Zn(P1,e),go(_h)])}function*P1(e){for(;;){let t=yield Te(G.auphonic.productionId);t||(yield Ie(u1()));let{result:{data:n}}=yield e.get(`production/${t}.json`);yield Ie(ds(n)),n.status==3&&(yield Ie($t({prop:"slug",value:n.output_basename}))),[0,1,4,5,6,7,8,12,13,14].includes(n.status)||(yield Ie(u1())),yield qm(2500)}}function*HB(e){const{result:{data:t}}=yield e.get("productions.json",{limit:10,minimal_data:!0});yield Ie(Ex(t))}function*VB(e,t){let n=yield Te(G.auphonic.productionId);yield e.delete(`production/${n}/multi_input_files/${t.payload}.json`)}function*WB(e,t){const n=t.payload.uuid;yield Zn(C2,e,{type:hx,payload:{uuid:n}});const r=yield Te(G.episode.auphonicWebhookConfig),o=yield Te(G.auphonic.publishWhenDone),s=yield Te(G.runtime.baseUrl),l=yield Te(G.post.id),a=s+"/?podlove-auphonic-production="+l+"&authkey="+(r==null?void 0:r.authkey),c={webhook:r&&o?a:""};yield e.post(`production/${n}.json`,c);const f=yield e.post(`production/${n}/start.json`,{});f.result?yield Ie(ds(f.result.data)):console.warn(f.error.error_message)}function*zB(e,t,n){var a;let r=n.payload;const o=r.id,s=r.id_new,l=!!((a=n.upload)!=null&&a.file);switch(delete r.id_new,r.id=s,n.state){case"edited":yield e.post(`production/${t}/multi_input_files/${o}.json`,r),l&&(yield e.upload(`production/${t}/upload.json`,n.upload));break;case"new":yield e.post(`production/${t}.json`,{multi_input_files:[n.payload]}),l&&(yield e.upload(`production/${t}/upload.json`,n.upload));break}}const $2=e=>{if(!e)return{};switch(e.currentServiceSelection){case"url":return{service:"url",value:e.urlValue};case"file":return{service:"file",value:e.fileValue};default:return{service:e.currentServiceSelection,value:e.fileSelection}}};function qB(e){const t=Y.exports.get(e,["auphonic","file_selections"]),n=Y.exports.get(e,["auphonic","production","uuid"],"");return $2(Y.exports.get(t,n))}function KB(e){const t=Y.exports.get(e,["auphonic","file_selections"]),n=Y.exports.get(e,["auphonic","production","uuid"],"");return Y.exports.get(e,["auphonic","tracks"],[]).reduce((o,s,l)=>(o.push($2(Y.exports.get(t,`${n}_t${l}`))),o),[])}function GB(e){const t=Y.exports.get(e,["auphonic","production","is_multitrack"],!1),n=Y.exports.get(e,["auphonic","tracks"],[]);if(!t)return[];const r=KB(e);return n.map((o,s)=>{const l=o.save_state;if(l=="unchanged")return{};let a={},c={};return r[s].service=="url"?c={input_file:r[s].value}:r[s].service=="file"?a={track_id:o.identifier_new,file:r[s].value}:c={service:r[s].service,input_file:r[s].value},{state:l,upload:a,payload:{type:"multitrack",id:o.identifier,id_new:o.identifier_new,...c,algorithms:{denoise:o.noise_and_hum_reduction,filtering:o.filtering,backforeground:o.fore_background}}}}).filter(o=>Object.keys(o).length>0)}function XB(e){let t=Y.exports.get(e,["auphonic","productionPayload"],{});const{output_files:n,...r}=t,o=e.episode.poster||e.podcast.poster,s=e.episode.slug?{output_basename:e.episode.slug}:{};return{...r,...s,image:o,metadata:{...r.metadata,title:e.episode.title||e.post.title,subtitle:e.episode.subtitle,summary:e.episode.summary,artist:e.podcast.author_name,album:e.podcast.title,url:e.podcast.link,track:e.episode.number},chapters:e.chapters.chapters.map(l=>({title:l.title,url:l.href,start:new Nt(l.start).pretty}))}}function JB(e){const t=Y.exports.get(e,["auphonic","production","is_multitrack"],!1),n=XB(e);let r={};if(!t){const o=qB(e);o.service=="url"?r={input_file:o.value}:o.service=="file"?r={input_file:o.value}:r={service:o.service,input_file:o.value}}return{...n,...r}}function*C2(e,t){yield Ie(s7());const n=t.payload.uuid,r=yield Te(JB),o=yield Te(GB);yield e.delete(`production/${n}/chapters.json`),yield pE(o.map(c=>Zn(zB,e,n,c)));const s=r.input_file;typeof s=="object"&&(yield e.upload(`production/${n}/upload.json`,{file:s}),delete r.input_file);const l=r.image;fetch(l).then(c=>c.blob()).then(c=>{const f=c.type.includes("png")?"png":"jpg",p="image."+f,h=new File([c],p,{type:c.type});e.upload(`production/${n}/upload.json`,{image:h})}),delete r.image;const{result:{data:a}}=yield e.post(`production/${n}.json`,r);yield Ie(ds(a)),yield Ie(l7())}function*YB(e,t){const n=t.payload;if(n=="file"||n=="url")return;const{result:r}=yield e.get(`service/${n}/ls.json`);yield Ie(r7({uuid:n,files:r.data}))}function*T2(){const e=yield Te(G.episode.title),t=yield Te(G.post.title);return e||t||"New Production"}function*ZB(e){const t=yield Te(G.auphonic.preset),n=yield T2(),{result:r}=yield e.post("productions.json",{preset:t,metadata:{title:n}}),o=r.data;yield Ie(ds(o))}function*QB(e){const t=yield Te(G.auphonic.preset),n=yield T2(),{result:r}=yield e.post("productions.json",{preset:t,metadata:{title:n},is_multitrack:!0}),o=r.data;yield Ie(ds(o))}function*e9(e){const t=yield Te(G.auphonic.currentFileSelection);(yield Te(G.auphonic.fileSelections))[t].fileSelection||(yield Ie(Cx({key:t,prop:"fileSelection",value:e.payload.files[0]})))}function*t9(e){const{prop:t,value:n}=e.payload;t==="currentServiceSelection"&&(yield Ie($x(n)))}function*n9(e){const t=yield Te(G.episode.auphonicWebhookConfig),n=yield Te(G.auphonic.publishWhenDone);!t||t.enabled==n||(yield Ie($t({prop:"auphonic_webhook_config",value:{...t,enabled:n}})))}function*r9(e){const t=yield Te(G.episode.auphonicWebhookConfig),n=yield Te(G.auphonic.publishWhenDone);if(t&&t.authkey)return;const r=DB();yield Ie($t({prop:"auphonic_webhook_config",value:{authkey:r,enabled:n||!1}}))}function*o9(e){const t=yield Te(G.episode.id),n=yield Te(G.auphonic.productionId);yield e.put(`episodes/${t}`,{auphonic_production_id:n})}function*i9(e){const t=yield Te(G.episode.id);yield e.put(`episodes/${t}`,{auphonic_production_id:""})}function*s9(){const e=yield Te(G.episode.id),t=yield Te(G.episode.auphonicProductionId),n=yield Te(G.auphonic.productionId),r=yield Te(G.auphonic.productions);if(!n&&t&&e){const o=r.find(s=>s.uuid==t);o&&(yield Ie(ds(o)))}}function*l9(){const e=yield Te(G.auphonic.preset);localStorage&&localStorage.setItem("podlove-auphonic-preset",e)}function*a9(){let e=null;localStorage&&(e=localStorage.getItem("podlove-auphonic-preset"),e&&(yield Ie(bv(e))))}function u9(){return function*(){yield xo(lx,FB)}}function*c9(){const e=yield Go();yield Dt(d9,e)}function*d9(e){const t=yield Te(G.episode.id);yield Te(G.episode.slug);const{result:{results:n}}=yield e.get(`episodes/${t}/media`);n&&(yield Ie(m7(n))),yield Ge(Uc,m9,e),yield Ge(jc,v9,e),yield Ge(Rx,b9,e),yield z7(UE,g9,e),yield Eh(2e3,cv,y9,e),yield Gx(2e3,[Uc,jc,_v],h9,e),yield Ge(Lx,f9),yield Ge(wv,p9),yield Ie(h7())}function*f9(){yield Ie(dv({onSuccess:{type:wv}}))}function*p9(e){const n=Y.exports.get(e,["payload"]).split("\\").pop().split("/").pop().split(".").shift();yield Ie($t({prop:"slug",value:n})),yield Ie(uD())}function*h9(e){const t=yield Te(G.mediafiles.files),n=yield Te(G.episode.duration),o=t.filter(l=>l.enable&&l.size&&l.url).filter(l=>l.url.match(/\.(mp3|mp4|m4a|ogg|oga|opus)$/));let s;if(o.length===0)s="0";else{const l=o[0].url;s=(yield w9(l)).toString()}parseFloat(n)!==parseFloat(s)&&(yield Ie($t({prop:"duration",value:s})))}function*m9(e,t){const n=yield Te(G.episode.id),r=t.payload,{result:o}=yield e.put(`episodes/${n}/media/${r}/enable`,{}),s={asset_id:r,url:o.file_url,size:o.file_size,enable:!0};yield Ie(Sh(s))}function*v9(e,t){const n=yield Te(G.episode.id),r=t.payload;yield e.put(`episodes/${n}/media/${r}/disable`,{})}function*g9(e){const t=yield Te(G.episode.id),n=yield Te(G.mediafiles.files);yield pE(n.map(r=>Dt(O2,e,t,r.asset_id)))}function*y9(e,t){const n=yield Te(G.episode.id),r=yield Te(G.episode.slug);if((yield Te(G.mediafiles.slugAutogenerationEnabled))&&t.payload.prop=="title"&&t.payload.value){const s=t.payload.value,{result:l}=yield e.get(`episodes/${n}/build_slug`,{query:{title:s}});r!=l.slug&&(yield Ie($t({prop:"slug",value:l.slug})))}}function*O2(e,t,n){const o=(yield Te(G.mediafiles.files)).find(c=>c.asset_id==n);yield Ie(Sh({asset_id:n,is_verifying:!0}));const{result:s}=yield e.put(`episodes/${t}/media/${n}/verify`,{}),l=!(o!=null&&o.size)&&s.file_size||(o==null?void 0:o.enable),a={asset_id:n,url:s.file_url,size:s.file_size,enable:l,is_verifying:!1};yield Ie(Sh(a))}function*b9(e,t){const n=yield Te(G.episode.id),r=t.payload;yield O2(e,n,r)}async function _9(e){return new Promise(t=>e.onloadedmetadata=()=>t())}async function w9(e){var t=new Audio;return t.setAttribute("preload","metadata"),t.setAttribute("src",e),t.load(),await _9(t),t.duration}function S9(){return function*(){yield xo(Ix,c9)}}function*E9(){const e=yield Go();yield Dt(x9,e),yield Ge(Sv,$9,e)}function*x9(e){const t=yield Te(G.episode.id),[n,r]=yield Promise.all([e.get(`episodes/${t}/related?status=all`),e.get("episodes?status=all&sort_by=post_id&order_by=asc")]),o=Y.exports.get(n,["result","relatedEpisodes"],[]),s=Y.exports.get(r,["result","results"],[]),l=o.map(a=>a.related_episode_id);yield Ie(Ux(l)),yield Ie($7(s))}function*$9(e,t){const n=yield Te(G.episode.id),r=yield Te(G.relatedEpisodes.selectEpisode);yield e.post(`episodes/${n}/related`,{related:r})}function C9(){return function*(){yield xo(Fx,E9)}}function*T9(){const e=yield Go();yield Dt(O9,e)}function*O9(e){const t=yield Te(G.settings.modules),{result:n}=yield e.get("shows");T7&&(yield Ie(Hx(n)),yield Ge(Ys,I9),t.includes("automatic_numbering")&&(yield Ge(Hc,P9,e)),t.includes("auphonic")&&(yield Ge(Hc,A9,n)))}function*A9(e,t){const n=e.find(r=>r.slug===t.payload);n&&n.auphonic_preset&&(yield Ie(bv(n.auphonic_preset)))}function*I9(e){const t=Y.exports.get(e,["payload","prop"]),n=Y.exports.get(e,["payload","value"],null);t==="show"&&(yield Ie(Vx(n)))}function*P9(e,t){const{result:n}=yield e.get("shows/next_episode_number",{query:{show:t.payload}});yield Ie($t({prop:"number",value:n.toString()}))}function k9(){return function*(){yield xo(Ev,T9)}}const br=xM(),R9=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||NS,Fd=jm(U7,R9(c6(br)));br.run(q7());br.run(rF());br.run(SF());br.run(OF());br.run(MF());br.run(jF());br.run(XF());br.run(nF());br.run(u9());br.run(S9());br.run(C9());br.run(k9());var Be=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n};const L9=ve({props:{name:{type:String,default:null},title:{type:String,default:null}}}),N9={class:"bg-white font-sans sm:rounded-lg sm:shadow-md"},M9={class:"bg-white px-4 py-5 border-b border-gray-200 sm:px-6"},D9={class:"-ml-4 -mt-2 flex items-center justify-between flex-wrap sm:flex-nowrap"},F9={class:"ml-4 mt-2"},B9=["for"],U9={class:"ml-4 mt-2 flex flex-shrink-0"};function j9(e,t,n,r,o,s){return N(),V("section",N9,[g("div",M9,[g("div",D9,[g("div",F9,[g("h3",{class:"text-lg leading-6 font-medium text-gray-900",for:`podlove-module-${e.name}`},U(e.title),9,B9)]),g("div",U9,[gr(e.$slots,"actions")])])]),g("div",null,[gr(e.$slots,"default")])])}var Nn=Be(L9,[["render",j9]]);function H9(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5M16.5 12 12 16.5m0 0L7.5 12m4.5 4.5V3"})])}function A2(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 13.5 12 21m0 0-7.5-7.5M12 21V3"})])}function I2(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"})])}function P2(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M13.5 6H5.25A2.25 2.25 0 0 0 3 8.25v10.5A2.25 2.25 0 0 0 5.25 21h10.5A2.25 2.25 0 0 0 18 18.75V10.5m-10.5 6L21 3m0 0h-5.25M21 3v5.25"})])}function V9(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5m-13.5-9L12 3m0 0 4.5 4.5M12 3v13.5"})])}function W9(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4.5 10.5 12 3m0 0 7.5 7.5M12 3v18"})])}function z9(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M17.593 3.322c1.1.128 1.907 1.077 1.907 2.185V21L12 17.25 4.5 21V5.507c0-1.108.806-2.057 1.907-2.185a48.507 48.507 0 0 1 11.186 0Z"})])}function q9(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m4.5 12.75 6 6 9-13.5"})])}function k2(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"})])}function K9(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})])}function G9(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M20.25 6.375c0 2.278-3.694 4.125-8.25 4.125S3.75 8.653 3.75 6.375m16.5 0c0-2.278-3.694-4.125-8.25-4.125S3.75 4.097 3.75 6.375m16.5 0v11.25c0 2.278-3.694 4.125-8.25 4.125s-8.25-1.847-8.25-4.125V6.375m16.5 0v3.75m-16.5-3.75v3.75m16.5 0v3.75C20.25 16.153 16.556 18 12 18s-8.25-1.847-8.25-4.125v-3.75m16.5 0c0 2.278-3.694 4.125-8.25 4.125s-8.25-1.847-8.25-4.125"})])}function X9(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M11.35 3.836c-.065.21-.1.433-.1.664 0 .414.336.75.75.75h4.5a.75.75 0 0 0 .75-.75 2.25 2.25 0 0 0-.1-.664m-5.8 0A2.251 2.251 0 0 1 13.5 2.25H15c1.012 0 1.867.668 2.15 1.586m-5.8 0c-.376.023-.75.05-1.124.08C9.095 4.01 8.25 4.973 8.25 6.108V8.25m8.9-4.414c.376.023.75.05 1.124.08 1.131.094 1.976 1.057 1.976 2.192V16.5A2.25 2.25 0 0 1 18 18.75h-2.25m-7.5-10.5H4.875c-.621 0-1.125.504-1.125 1.125v11.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V18.75m-7.5-10.5h6.375c.621 0 1.125.504 1.125 1.125v9.375m-8.25-3 1.5 1.5 3-3.75"})])}function R2(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 16.5V9.75m0 0 3 3m-3-3-3 3M6.75 19.5a4.5 4.5 0 0 1-1.41-8.775 5.25 5.25 0 0 1 10.233-2.33 3 3 0 0 1 3.758 3.848A3.752 3.752 0 0 1 18 19.5H6.75Z"})])}function L2(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M2.25 15a4.5 4.5 0 0 0 4.5 4.5H18a3.75 3.75 0 0 0 1.332-7.257 3 3 0 0 0-3.758-3.848 5.25 5.25 0 0 0-10.233 2.33A4.502 4.502 0 0 0 2.25 15Z"})])}function J9(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4.5 12a7.5 7.5 0 0 0 15 0m-15 0a7.5 7.5 0 1 1 15 0m-15 0H3m16.5 0H21m-1.5 0H12m-8.457 3.077 1.41-.513m14.095-5.13 1.41-.513M5.106 17.785l1.15-.964m11.49-9.642 1.149-.964M7.501 19.795l.75-1.3m7.5-12.99.75-1.3m-6.063 16.658.26-1.477m2.605-14.772.26-1.477m0 17.726-.26-1.477M10.698 4.614l-.26-1.477M16.5 19.794l-.75-1.299M7.5 4.205 12 12m6.894 5.785-1.149-.964M6.256 7.178l-1.15-.964m15.352 8.864-1.41-.513M4.954 9.435l-1.41-.514M12.002 12l-3.75 6.495"})])}function Y9(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M10.125 2.25h-4.5c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125v-9M10.125 2.25h.375a9 9 0 0 1 9 9v.375M10.125 2.25A3.375 3.375 0 0 1 13.5 5.625v1.5c0 .621.504 1.125 1.125 1.125h1.5a3.375 3.375 0 0 1 3.375 3.375M9 15l2.25 2.25L15 12"})])}function N2(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"})])}function M2(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z"})])}function D2(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L6.832 19.82a4.5 4.5 0 0 1-1.897 1.13l-2.685.8.8-2.685a4.5 4.5 0 0 1 1.13-1.897L16.863 4.487Zm0 0L19.5 7.125"})])}function Lv(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 4.5v15m7.5-7.5h-15"})])}function Z9(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"})])}function F2(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M17.982 18.725A7.488 7.488 0 0 0 12 15.75a7.488 7.488 0 0 0-5.982 2.975m11.963 0a9 9 0 1 0-11.963 0m11.963 0A8.966 8.966 0 0 1 12 21a8.966 8.966 0 0 1-5.982-2.275M15 9.75a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})])}function Da(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18 18 6M6 6l12 12"})])}function kl(e,t,n){var s;let r=(s=n.initialDeps)!=null?s:[],o;return()=>{var l,a,c,f;let p;n.key&&((l=n.debug)==null?void 0:l.call(n))&&(p=Date.now());const h=e();if(!(h.length!==r.length||h.some((_,w)=>r[w]!==_)))return o;r=h;let y;if(n.key&&((a=n.debug)==null?void 0:a.call(n))&&(y=Date.now()),o=t(...h),n.key&&((c=n.debug)==null?void 0:c.call(n))){const _=Math.round((Date.now()-p)*100)/100,w=Math.round((Date.now()-y)*100)/100,I=w/16,O=(S,E)=>{for(S=String(S);S.length<E;)S=" "+S;return S};console.info(`%c\u23F1 ${O(w,5)} /${O(_,5)} ms`,`55 `+s):r.stack=s}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=ls(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:s}=n;r!==void 0&&Ih.assertOptions(r,{silentJSONParsing:li.transitional(li.boolean),forcedJSONParsing:li.transitional(li.boolean),clarifyTimeoutError:li.transitional(li.boolean)},!1),o!=null&&(ee.isFunction(o)?n.paramsSerializer={serialize:o}:Ih.assertOptions(o,{encode:li.function,serialize:li.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l=s&&ee.merge(s.common,s[n.method]);s&&ee.forEach(["delete","get","head","post","put","patch","common"],_=>{delete s[_]}),n.headers=Qr.concat(l,s);const a=[];let c=!0;this.interceptors.request.forEach(function(w){typeof w.runWhen=="function"&&w.runWhen(n)===!1||(c=c&&w.synchronous,a.unshift(w.fulfilled,w.rejected))});const f=[];this.interceptors.response.forEach(function(w){f.push(w.fulfilled,w.rejected)});let p,h=0,v;if(!c){const _=[O1.bind(this),void 0];for(_.unshift.apply(_,a),_.push.apply(_,f),v=_.length,p=Promise.resolve(n);h<v;)p=p.then(_[h++],_[h++]);return p}v=a.length;let y=n;for(h=0;h<v;){const _=a[h++],w=a[h++];try{y=_(y)}catch(I){w.call(this,I);break}}try{p=O1.call(this,y)}catch(_){return Promise.reject(_)}for(h=0,v=f.length;h<v;)p=p.then(f[h++],f[h++]);return p}getUri(t){t=ls(this.defaults,t);const n=y2(t.baseURL,t.url);return p2(n,t.params,t.paramsSerializer)}}ee.forEach(["delete","get","head","options"],function(t){zc.prototype[t]=function(n,r){return this.request(ls(r||{},{method:t,url:n,data:(r||{}).data}))}});ee.forEach(["post","put","patch"],function(t){function n(r){return function(s,l,a){return this.request(ls(a||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:l}))}}zc.prototype[t]=n(),zc.prototype[t+"Form"]=n(!0)});var dc=zc;class kv{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const r=this;this.promise.then(o=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](o);r._listeners=null}),this.promise.then=o=>{let s;const l=new Promise(a=>{r.subscribe(a),s=a}).then(o);return l.cancel=function(){r.unsubscribe(s)},l},t(function(s,l,a){r.reason||(r.reason=new cl(s,l,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new kv(function(o){t=o}),cancel:t}}}var SB=kv;function EB(e){return function(n){return e.apply(null,n)}}function xB(e){return ee.isObject(e)&&e.isAxiosError===!0}const Ph={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ph).forEach(([e,t])=>{Ph[t]=e});var $B=Ph;function E2(e){const t=new dc(e),n=t2(dc.prototype.request,t);return ee.extend(n,dc.prototype,t,{allOwnKeys:!0}),ee.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return E2(ls(e,o))},n}const sn=E2(Iv);sn.Axios=dc;sn.CanceledError=cl;sn.CancelToken=SB;sn.isCancel=v2;sn.VERSION=S2;sn.toFormData=Nd;sn.AxiosError=nt;sn.Cancel=sn.CanceledError;sn.all=function(t){return Promise.all(t)};sn.spread=EB;sn.isAxiosError=xB;sn.mergeConfig=ls;sn.AxiosHeaders=Qr;sn.formToJSON=e=>m2(ee.isHTMLForm(e)?new FormData(e):e);sn.getAdapter=w2.getAdapter;sn.HttpStatusCode=$B;sn.default=sn;var CB=sn;const Rv=({bearer:e},t={})=>({"Content-Type":"application/json",Accept:"application/json",...x2({bearer:e}),...t}),x2=({bearer:e})=>({...e?{Authorization:`Bearer ${e}`}:{}}),TB=({errorHandler:e,bearer:t,method:n,urlProcessor:r})=>(o,{headers:s,query:l}={})=>fetch(al(r?r(o):o,l),{method:n,headers:Rv({bearer:t},s)}).then(Na(e)),OB=({errorHandler:e,bearer:t,method:n,urlProcessor:r})=>(o,s,{headers:l,query:a}={})=>fetch(al(r?r(o):o,a),{method:n,headers:Rv({bearer:t},l),body:JSON.stringify(s)}).then(Na(e)),AB=({errorHandler:e,bearer:t,method:n,urlProcessor:r})=>(o,s,{headers:l,query:a}={})=>fetch(al(r?r(o):o,a),{method:n,headers:Rv({bearer:t},l),body:JSON.stringify(s)}).then(Na(e)),IB=({errorHandler:e,bearer:t,urlProcessor:n})=>(r,o,{query:s}={})=>{const l=new FormData;if(o.file){const a=o.track_id||"input_file";l.append(a,o.file)}return o.image&&l.append("image",o.image),CB.post(al(n?n(r):r,s),l,{headers:{...x2({bearer:t})},onUploadProgress:a=>console.log("progress",a)})},PB=Y.exports.curry(({base:e,bearer:t,errorHandler:n})=>({get:TB({bearer:t,method:"GET",errorHandler:n,urlProcessor:r=>`${e}/${r}`}),post:OB({bearer:t,errorHandler:n,method:"POST",urlProcessor:r=>`${e}/${r}`}),delete:AB({bearer:t,errorHandler:n,method:"DELETE",urlProcessor:r=>`${e}/${r}`}),upload:IB({bearer:t,errorHandler:n,urlProcessor:r=>`${e}/${r}`})}));function*kB(){const e="https://auphonic.com/api",t=yield Te(G.auphonic.token);return PB({base:e,bearer:t,errorHandler:function(r){Fd.dispatch($v({type:"error",message:`Auphonic: ${r.error_message}`}))}})}let Gu;const RB=new Uint8Array(16);function LB(){if(!Gu&&(Gu=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Gu))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Gu(RB)}const wn=[];for(let e=0;e<256;++e)wn.push((e+256).toString(16).slice(1));function NB(e,t=0){return wn[e[t+0]]+wn[e[t+1]]+wn[e[t+2]]+wn[e[t+3]]+"-"+wn[e[t+4]]+wn[e[t+5]]+"-"+wn[e[t+6]]+wn[e[t+7]]+"-"+wn[e[t+8]]+wn[e[t+9]]+"-"+wn[e[t+10]]+wn[e[t+11]]+wn[e[t+12]]+wn[e[t+13]]+wn[e[t+14]]+wn[e[t+15]]}const MB=typeof crypto!="undefined"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);var I1={randomUUID:MB};function DB(e,t,n){if(I1.randomUUID&&!t&&!e)return I1.randomUUID();e=e||{};const r=e.random||(e.rng||LB)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(let o=0;o<16;++o)t[n+o]=r[o];return t}return NB(r)}function*FB(){const e=yield Go();yield Dt(BB,e),yield Xe(gv,t9),yield Xe(mv,e9)}function*BB(e){const{result:t}=yield e.get("auphonic/token");t&&(yield Ie(ZD(t)),yield Dt(UB),yield Xe(Bc,r9,e),yield Xe(yv,n9,e),yield Xe(Bc,o9,e),yield Xe(hv,i9,e),yield Xe(vv,l9))}function*UB(){const e=yield kB(),{result:{data:t}}=yield e.get("presets.json"),{result:{data:n}}=yield e.get("productions.json",{limit:10,minimal_data:!0});let{result:{data:r}}=yield e.get("services.json");yield Ie(Ex(n)),yield Ie(t7(t)),yield Ie(n7([{uuid:"url",display_name:"From URL",email:"",incoming:!0,outgoing:!1,type:"url"},{uuid:"file",display_name:"Upload from computer",email:"",incoming:!0,outgoing:!1,type:"file"},...r])),yield Zn(s9),yield Zn(a9),yield Ie(YD()),yield Xe(fx,ZB,e),yield Xe(px,QB,e),yield Xe($x,YB,e),yield Xe(xx,C2,e),yield Xe(wh,WB,e),yield Xe(Sx,HB,e),yield Xe(Tx,VB,e),yield Xe(wh,function*(){yield Ie(i7())}),yield Zn(jB,e)}function*jB(e){for(yield bh([Zn(P1,e),go(_h)]);;)yield go(bx),yield bh([Zn(P1,e),go(_h)])}function*P1(e){for(;;){let t=yield Te(G.auphonic.productionId);t||(yield Ie(u1()));let{result:{data:n}}=yield e.get(`production/${t}.json`);yield Ie(ds(n)),n.status==3&&(yield Ie($t({prop:"slug",value:n.output_basename}))),[0,1,4,5,6,7,8,12,13,14].includes(n.status)||(yield Ie(u1())),yield qm(2500)}}function*HB(e){const{result:{data:t}}=yield e.get("productions.json",{limit:10,minimal_data:!0});yield Ie(Ex(t))}function*VB(e,t){let n=yield Te(G.auphonic.productionId);yield e.delete(`production/${n}/multi_input_files/${t.payload}.json`)}function*WB(e,t){const n=t.payload.uuid;yield Zn(C2,e,{type:hx,payload:{uuid:n}});const r=yield Te(G.episode.auphonicWebhookConfig),o=yield Te(G.auphonic.publishWhenDone),s=yield Te(G.runtime.baseUrl),l=yield Te(G.post.id),a=s+"/?podlove-auphonic-production="+l+"&authkey="+(r==null?void 0:r.authkey),c={webhook:r&&o?a:""};yield e.post(`production/${n}.json`,c);const f=yield e.post(`production/${n}/start.json`,{});f.result?yield Ie(ds(f.result.data)):console.warn(f.error.error_message)}function*zB(e,t,n){var a;let r=n.payload;const o=r.id,s=r.id_new,l=!!((a=n.upload)!=null&&a.file);switch(delete r.id_new,r.id=s,n.state){case"edited":yield e.post(`production/${t}/multi_input_files/${o}.json`,r),l&&(yield e.upload(`production/${t}/upload.json`,n.upload));break;case"new":yield e.post(`production/${t}.json`,{multi_input_files:[n.payload]}),l&&(yield e.upload(`production/${t}/upload.json`,n.upload));break}}const $2=e=>{if(!e)return{};switch(e.currentServiceSelection){case"url":return{service:"url",value:e.urlValue};case"file":return{service:"file",value:e.fileValue};default:return{service:e.currentServiceSelection,value:e.fileSelection}}};function qB(e){const t=Y.exports.get(e,["auphonic","file_selections"]),n=Y.exports.get(e,["auphonic","production","uuid"],"");return $2(Y.exports.get(t,n))}function KB(e){const t=Y.exports.get(e,["auphonic","file_selections"]),n=Y.exports.get(e,["auphonic","production","uuid"],"");return Y.exports.get(e,["auphonic","tracks"],[]).reduce((o,s,l)=>(o.push($2(Y.exports.get(t,`${n}_t${l}`))),o),[])}function GB(e){const t=Y.exports.get(e,["auphonic","production","is_multitrack"],!1),n=Y.exports.get(e,["auphonic","tracks"],[]);if(!t)return[];const r=KB(e);return n.map((o,s)=>{const l=o.save_state;if(l=="unchanged")return{};let a={},c={};return r[s].service=="url"?c={input_file:r[s].value}:r[s].service=="file"?a={track_id:o.identifier_new,file:r[s].value}:c={service:r[s].service,input_file:r[s].value},{state:l,upload:a,payload:{type:"multitrack",id:o.identifier,id_new:o.identifier_new,...c,algorithms:{denoise:o.noise_and_hum_reduction,filtering:o.filtering,backforeground:o.fore_background}}}}).filter(o=>Object.keys(o).length>0)}function XB(e){let t=Y.exports.get(e,["auphonic","productionPayload"],{});const{output_files:n,...r}=t,o=e.episode.poster||e.podcast.poster,s=e.episode.slug?{output_basename:e.episode.slug}:{};return{...r,...s,image:o,metadata:{...r.metadata,title:e.episode.title||e.post.title,subtitle:e.episode.subtitle,summary:e.episode.summary,artist:e.podcast.author_name,album:e.podcast.title,url:e.podcast.link,track:e.episode.number},chapters:e.chapters.chapters.map(l=>({title:l.title,url:l.href,start:new Nt(l.start).pretty}))}}function JB(e){const t=Y.exports.get(e,["auphonic","production","is_multitrack"],!1),n=XB(e);let r={};if(!t){const o=qB(e);o.service=="url"?r={input_file:o.value}:o.service=="file"?r={input_file:o.value}:r={service:o.service,input_file:o.value}}return{...n,...r}}function*C2(e,t){yield Ie(s7());const n=t.payload.uuid,r=yield Te(JB),o=yield Te(GB);yield e.delete(`production/${n}/chapters.json`),yield pE(o.map(c=>Zn(zB,e,n,c)));const s=r.input_file;typeof s=="object"&&(yield e.upload(`production/${n}/upload.json`,{file:s}),delete r.input_file);const l=r.image;fetch(l).then(c=>c.blob()).then(c=>{const f=c.type.includes("png")?"png":"jpg",p="image."+f,h=new File([c],p,{type:c.type});e.upload(`production/${n}/upload.json`,{image:h})}),delete r.image;const{result:{data:a}}=yield e.post(`production/${n}.json`,r);yield Ie(ds(a)),yield Ie(l7())}function*YB(e,t){const n=t.payload;if(n=="file"||n=="url")return;const{result:r}=yield e.get(`service/${n}/ls.json`);yield Ie(r7({uuid:n,files:r.data}))}function*T2(){const e=yield Te(G.episode.title),t=yield Te(G.post.title);return e||t||"New Production"}function*ZB(e){const t=yield Te(G.auphonic.preset),n=yield T2(),{result:r}=yield e.post("productions.json",{preset:t,metadata:{title:n}}),o=r.data;yield Ie(ds(o))}function*QB(e){const t=yield Te(G.auphonic.preset),n=yield T2(),{result:r}=yield e.post("productions.json",{preset:t,metadata:{title:n},is_multitrack:!0}),o=r.data;yield Ie(ds(o))}function*e9(e){const t=yield Te(G.auphonic.currentFileSelection);(yield Te(G.auphonic.fileSelections))[t].fileSelection||(yield Ie(Cx({key:t,prop:"fileSelection",value:e.payload.files[0]})))}function*t9(e){const{prop:t,value:n}=e.payload;t==="currentServiceSelection"&&(yield Ie($x(n)))}function*n9(e){const t=yield Te(G.episode.auphonicWebhookConfig),n=yield Te(G.auphonic.publishWhenDone);!t||t.enabled==n||(yield Ie($t({prop:"auphonic_webhook_config",value:{...t,enabled:n}})))}function*r9(e){const t=yield Te(G.episode.auphonicWebhookConfig),n=yield Te(G.auphonic.publishWhenDone);if(t&&t.authkey)return;const r=DB();yield Ie($t({prop:"auphonic_webhook_config",value:{authkey:r,enabled:n||!1}}))}function*o9(e){const t=yield Te(G.episode.id),n=yield Te(G.auphonic.productionId);yield e.put(`episodes/${t}`,{auphonic_production_id:n})}function*i9(e){const t=yield Te(G.episode.id);yield e.put(`episodes/${t}`,{auphonic_production_id:""})}function*s9(){const e=yield Te(G.episode.id),t=yield Te(G.episode.auphonicProductionId),n=yield Te(G.auphonic.productionId),r=yield Te(G.auphonic.productions);if(!n&&t&&e){const o=r.find(s=>s.uuid==t);o&&(yield Ie(ds(o)))}}function*l9(){const e=yield Te(G.auphonic.preset);localStorage&&localStorage.setItem("podlove-auphonic-preset",e)}function*a9(){let e=null;localStorage&&(e=localStorage.getItem("podlove-auphonic-preset"),e&&(yield Ie(bv(e))))}function u9(){return function*(){yield xo(lx,FB)}}function*c9(){const e=yield Go();yield Dt(d9,e)}function*d9(e){const t=yield Te(G.episode.id);yield Te(G.episode.slug);const{result:{results:n}}=yield e.get(`episodes/${t}/media`);n&&(yield Ie(m7(n))),yield Xe(Uc,m9,e),yield Xe(jc,v9,e),yield Xe(Rx,b9,e),yield z7(UE,g9,e),yield Eh(2e3,cv,y9,e),yield Gx(2e3,[Uc,jc,_v],h9,e),yield Xe(Lx,f9),yield Xe(wv,p9),yield Ie(h7())}function*f9(){yield Ie(dv({onSuccess:{type:wv}}))}function*p9(e){const n=Y.exports.get(e,["payload"]).split("\\").pop().split("/").pop().split(".").shift();yield Ie($t({prop:"slug",value:n})),yield Ie(uD())}function*h9(e){const t=yield Te(G.mediafiles.files),n=yield Te(G.episode.duration),o=t.filter(l=>l.enable&&l.size&&l.url).filter(l=>l.url.match(/\.(mp3|mp4|m4a|ogg|oga|opus)$/));let s;if(o.length===0)s="0";else{const l=o[0].url;s=(yield w9(l)).toString()}parseFloat(n)!==parseFloat(s)&&(yield Ie($t({prop:"duration",value:s})))}function*m9(e,t){const n=yield Te(G.episode.id),r=t.payload,{result:o}=yield e.put(`episodes/${n}/media/${r}/enable`,{}),s={asset_id:r,url:o.file_url,size:o.file_size,enable:!0};yield Ie(Sh(s))}function*v9(e,t){const n=yield Te(G.episode.id),r=t.payload;yield e.put(`episodes/${n}/media/${r}/disable`,{})}function*g9(e){const t=yield Te(G.episode.id),n=yield Te(G.mediafiles.files);yield pE(n.map(r=>Dt(O2,e,t,r.asset_id)))}function*y9(e,t){const n=yield Te(G.episode.id),r=yield Te(G.episode.slug);if((yield Te(G.mediafiles.slugAutogenerationEnabled))&&t.payload.prop=="title"&&t.payload.value){const s=t.payload.value,{result:l}=yield e.get(`episodes/${n}/build_slug`,{query:{title:s}});r!=l.slug&&(yield Ie($t({prop:"slug",value:l.slug})))}}function*O2(e,t,n){const o=(yield Te(G.mediafiles.files)).find(c=>c.asset_id==n);yield Ie(Sh({asset_id:n,is_verifying:!0}));const{result:s}=yield e.put(`episodes/${t}/media/${n}/verify`,{}),l=!(o!=null&&o.size)&&s.file_size||(o==null?void 0:o.enable),a={asset_id:n,url:s.file_url,size:s.file_size,enable:l,is_verifying:!1};yield Ie(Sh(a))}function*b9(e,t){const n=yield Te(G.episode.id),r=t.payload;yield O2(e,n,r)}async function _9(e){return new Promise(t=>e.onloadedmetadata=()=>t())}async function w9(e){var t=new Audio;return t.setAttribute("preload","metadata"),t.setAttribute("src",e),t.load(),await _9(t),t.duration}function S9(){return function*(){yield xo(Ix,c9)}}function*E9(){const e=yield Go();yield Dt(x9,e),yield Xe(Sv,$9,e)}function*x9(e){const t=yield Te(G.episode.id),[n,r]=yield Promise.all([e.get(`episodes/${t}/related?status=all`),e.get("episodes?status=all&sort_by=post_id&order_by=asc")]),o=Y.exports.get(n,["result","relatedEpisodes"],[]),s=Y.exports.get(r,["result","results"],[]),l=o.map(a=>a.related_episode_id);yield Ie(Ux(l)),yield Ie($7(s))}function*$9(e,t){const n=yield Te(G.episode.id),r=yield Te(G.relatedEpisodes.selectEpisode);yield e.post(`episodes/${n}/related`,{related:r})}function C9(){return function*(){yield xo(Fx,E9)}}function*T9(){const e=yield Go();yield Dt(O9,e)}function*O9(e){const t=yield Te(G.settings.modules),{result:n}=yield e.get("shows");T7&&(yield Ie(Hx(n)),yield Xe(Ys,I9),t.includes("automatic_numbering")&&(yield Xe(Hc,P9,e)),t.includes("auphonic")&&(yield Xe(Hc,A9,n)))}function*A9(e,t){const n=e.find(r=>r.slug===t.payload);n&&n.auphonic_preset&&(yield Ie(bv(n.auphonic_preset)))}function*I9(e){const t=Y.exports.get(e,["payload","prop"]),n=Y.exports.get(e,["payload","value"],null);t==="show"&&(yield Ie(Vx(n)))}function*P9(e,t){const{result:n}=yield e.get("shows/next_episode_number",{query:{show:t.payload}});yield Ie($t({prop:"number",value:n.toString()}))}function k9(){return function*(){yield xo(Ev,T9)}}const br=xM(),R9=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||NS,Fd=jm(U7,R9(c6(br)));br.run(q7());br.run(rF());br.run(SF());br.run(OF());br.run(MF());br.run(jF());br.run(XF());br.run(nF());br.run(u9());br.run(S9());br.run(C9());br.run(k9());var Be=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n};const L9=ve({props:{name:{type:String,default:null},title:{type:String,default:null}}}),N9={class:"bg-white font-sans sm:rounded-lg sm:shadow-md"},M9={class:"bg-white px-4 py-5 border-b border-gray-200 sm:px-6"},D9={class:"-ml-4 -mt-2 flex items-center justify-between flex-wrap sm:flex-nowrap"},F9={class:"ml-4 mt-2"},B9=["for"],U9={class:"ml-4 mt-2 flex flex-shrink-0"};function j9(e,t,n,r,o,s){return N(),V("section",N9,[g("div",M9,[g("div",D9,[g("div",F9,[g("h3",{class:"text-lg leading-6 font-medium text-gray-900",for:`podlove-module-${e.name}`},U(e.title),9,B9)]),g("div",U9,[gr(e.$slots,"actions")])])]),g("div",null,[gr(e.$slots,"default")])])}var Nn=Be(L9,[["render",j9]]);function H9(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5M16.5 12 12 16.5m0 0L7.5 12m4.5 4.5V3"})])}function A2(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 13.5 12 21m0 0-7.5-7.5M12 21V3"})])}function I2(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"})])}function P2(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M13.5 6H5.25A2.25 2.25 0 0 0 3 8.25v10.5A2.25 2.25 0 0 0 5.25 21h10.5A2.25 2.25 0 0 0 18 18.75V10.5m-10.5 6L21 3m0 0h-5.25M21 3v5.25"})])}function V9(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5m-13.5-9L12 3m0 0 4.5 4.5M12 3v13.5"})])}function W9(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4.5 10.5 12 3m0 0 7.5 7.5M12 3v18"})])}function z9(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M17.593 3.322c1.1.128 1.907 1.077 1.907 2.185V21L12 17.25 4.5 21V5.507c0-1.108.806-2.057 1.907-2.185a48.507 48.507 0 0 1 11.186 0Z"})])}function q9(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m4.5 12.75 6 6 9-13.5"})])}function k2(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"})])}function K9(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})])}function G9(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M20.25 6.375c0 2.278-3.694 4.125-8.25 4.125S3.75 8.653 3.75 6.375m16.5 0c0-2.278-3.694-4.125-8.25-4.125S3.75 4.097 3.75 6.375m16.5 0v11.25c0 2.278-3.694 4.125-8.25 4.125s-8.25-1.847-8.25-4.125V6.375m16.5 0v3.75m-16.5-3.75v3.75m16.5 0v3.75C20.25 16.153 16.556 18 12 18s-8.25-1.847-8.25-4.125v-3.75m16.5 0c0 2.278-3.694 4.125-8.25 4.125s-8.25-1.847-8.25-4.125"})])}function X9(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M11.35 3.836c-.065.21-.1.433-.1.664 0 .414.336.75.75.75h4.5a.75.75 0 0 0 .75-.75 2.25 2.25 0 0 0-.1-.664m-5.8 0A2.251 2.251 0 0 1 13.5 2.25H15c1.012 0 1.867.668 2.15 1.586m-5.8 0c-.376.023-.75.05-1.124.08C9.095 4.01 8.25 4.973 8.25 6.108V8.25m8.9-4.414c.376.023.75.05 1.124.08 1.131.094 1.976 1.057 1.976 2.192V16.5A2.25 2.25 0 0 1 18 18.75h-2.25m-7.5-10.5H4.875c-.621 0-1.125.504-1.125 1.125v11.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V18.75m-7.5-10.5h6.375c.621 0 1.125.504 1.125 1.125v9.375m-8.25-3 1.5 1.5 3-3.75"})])}function R2(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 16.5V9.75m0 0 3 3m-3-3-3 3M6.75 19.5a4.5 4.5 0 0 1-1.41-8.775 5.25 5.25 0 0 1 10.233-2.33 3 3 0 0 1 3.758 3.848A3.752 3.752 0 0 1 18 19.5H6.75Z"})])}function L2(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M2.25 15a4.5 4.5 0 0 0 4.5 4.5H18a3.75 3.75 0 0 0 1.332-7.257 3 3 0 0 0-3.758-3.848 5.25 5.25 0 0 0-10.233 2.33A4.502 4.502 0 0 0 2.25 15Z"})])}function J9(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4.5 12a7.5 7.5 0 0 0 15 0m-15 0a7.5 7.5 0 1 1 15 0m-15 0H3m16.5 0H21m-1.5 0H12m-8.457 3.077 1.41-.513m14.095-5.13 1.41-.513M5.106 17.785l1.15-.964m11.49-9.642 1.149-.964M7.501 19.795l.75-1.3m7.5-12.99.75-1.3m-6.063 16.658.26-1.477m2.605-14.772.26-1.477m0 17.726-.26-1.477M10.698 4.614l-.26-1.477M16.5 19.794l-.75-1.299M7.5 4.205 12 12m6.894 5.785-1.149-.964M6.256 7.178l-1.15-.964m15.352 8.864-1.41-.513M4.954 9.435l-1.41-.514M12.002 12l-3.75 6.495"})])}function Y9(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M10.125 2.25h-4.5c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125v-9M10.125 2.25h.375a9 9 0 0 1 9 9v.375M10.125 2.25A3.375 3.375 0 0 1 13.5 5.625v1.5c0 .621.504 1.125 1.125 1.125h1.5a3.375 3.375 0 0 1 3.375 3.375M9 15l2.25 2.25L15 12"})])}function N2(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"})])}function M2(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z"})])}function D2(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L6.832 19.82a4.5 4.5 0 0 1-1.897 1.13l-2.685.8.8-2.685a4.5 4.5 0 0 1 1.13-1.897L16.863 4.487Zm0 0L19.5 7.125"})])}function Lv(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 4.5v15m7.5-7.5h-15"})])}function Z9(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"})])}function F2(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M17.982 18.725A7.488 7.488 0 0 0 12 15.75a7.488 7.488 0 0 0-5.982 2.975m11.963 0a9 9 0 1 0-11.963 0m11.963 0A8.966 8.966 0 0 1 12 21a8.966 8.966 0 0 1-5.982-2.275M15 9.75a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})])}function Da(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18 18 6M6 6l12 12"})])}function kl(e,t,n){var s;let r=(s=n.initialDeps)!=null?s:[],o;return()=>{var l,a,c,f;let p;n.key&&((l=n.debug)==null?void 0:l.call(n))&&(p=Date.now());const h=e();if(!(h.length!==r.length||h.some((_,w)=>r[w]!==_)))return o;r=h;let y;if(n.key&&((a=n.debug)==null?void 0:a.call(n))&&(y=Date.now()),o=t(...h),n.key&&((c=n.debug)==null?void 0:c.call(n))){const _=Math.round((Date.now()-p)*100)/100,w=Math.round((Date.now()-y)*100)/100,I=w/16,O=(S,E)=>{for(S=String(S);S.length<E;)S=" "+S;return S};console.info(`%c\u23F1 ${O(w,5)} /${O(_,5)} ms`,` 56 56 font-size: .6rem; 57 57 font-weight: bold; … … 59 59 `),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".',"Render a single element as the child so that we can forward the props onto that element."].map(w=>` - ${w}`).join(` 60 60 `)].join(` 61 `));let y=z2((l=h.props)!=null?l:{},c,p),_=Dr(h,y,!0);for(let w in y)w.startsWith("on")&&(_.props||(_.props={}),_.props[w]=y[w]);return _}return Array.isArray(f)&&f.length===1?f[0]:f}return dt(a,Object.assign({},c,p),{default:()=>f})}function W2(e){return e.flatMap(t=>t.type===Fe?W2(t.children):[t])}function z2(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let o in r)o.startsWith("on")&&typeof r[o]=="function"?(n[o]!=null||(n[o]=[]),n[o].push(r[o])):t[o]=r[o];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(r=>[r,void 0])));for(let r in n)Object.assign(t,{[r](o,...s){let l=n[r];for(let a of l){if(o instanceof Event&&o.defaultPrevented)return;a(o,...s)}}});return t}function Bv(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function fs(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function $U(e){return e==null?!1:typeof e.type=="string"||typeof e.type=="object"||typeof e.type=="function"}var to=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(to||{});let _o=ve({name:"Hidden",props:{as:{type:[Object,String],default:"div"},features:{type:Number,default:1}},setup(e,{slots:t,attrs:n}){return()=>{var r;let{features:o,...s}=e,l={"aria-hidden":(o&2)===2?!0:(r=s["aria-hidden"])!=null?r:void 0,hidden:(o&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(o&4)===4&&(o&2)!==2&&{display:"none"}}};return St({ourProps:l,theirProps:s,slot:{},attrs:n,slots:t,name:"Hidden"})}}}),q2=Symbol("Context");var Pt=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Pt||{});function CU(){return ps()!==null}function ps(){return kt(q2,null)}function Vd(e){Yt(q2,e)}var lt=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(lt||{}),K2=(e=>(e[e.Left=0]="Left",e[e.Right=2]="Right",e))(K2||{});function TU(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window!="undefined"&&typeof document!="undefined"&&(document.addEventListener("DOMContentLoaded",t),t())}let Bo=[];TU(()=>{function e(t){t.target instanceof HTMLElement&&t.target!==document.body&&Bo[0]!==t.target&&(Bo.unshift(t.target),Bo=Bo.filter(n=>n!=null&&n.isConnected),Bo.splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function OU(e){throw new Error("Unexpected object: "+e)}var xt=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(xt||{});function Rh(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),o=r!=null?r:-1;switch(e.focus){case 0:{for(let s=0;s<n.length;++s)if(!t.resolveDisabled(n[s],s,n))return s;return r}case 1:{o===-1&&(o=n.length);for(let s=o-1;s>=0;--s)if(!t.resolveDisabled(n[s],s,n))return s;return r}case 2:{for(let s=o+1;s<n.length;++s)if(!t.resolveDisabled(n[s],s,n))return s;return r}case 3:{for(let s=n.length-1;s>=0;--s)if(!t.resolveDisabled(n[s],s,n))return s;return r}case 4:{for(let s=0;s<n.length;++s)if(t.resolveId(n[s],s,n)===e.id)return s;return r}case 5:return null;default:OU(e)}}function Uv(e={},t=null,n=[]){for(let[r,o]of Object.entries(e))X2(n,G2(t,r),o);return n}function G2(e,t){return e?e+"["+t+"]":t}function X2(e,t,n){if(Array.isArray(n))for(let[r,o]of n.entries())X2(e,G2(t,r.toString()),o);else n instanceof Date?e.push([t,n.toISOString()]):typeof n=="boolean"?e.push([t,n?"1":"0"]):typeof n=="string"?e.push([t,n]):typeof n=="number"?e.push([t,`${n}`]):n==null?e.push([t,""]):Uv(n,t,e)}function AU(e){var t,n;let r=(t=e==null?void 0:e.form)!=null?t:e.closest("form");if(r){for(let o of r.elements)if(o!==e&&(o.tagName==="INPUT"&&o.type==="submit"||o.tagName==="BUTTON"&&o.type==="submit"||o.nodeName==="INPUT"&&o.type==="image")){o.click();return}(n=r.requestSubmit)==null||n.call(r)}}function IU(e,t){return e===t}var PU=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(PU||{}),kU=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(kU||{}),RU=(e=>(e[e.Pointer=0]="Pointer",e[e.Focus=1]="Focus",e[e.Other=2]="Other",e))(RU||{});let J2=Symbol("ComboboxContext");function hs(e){let t=kt(J2,null);if(t===null){let n=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,hs),n}return t}let Y2=Symbol("VirtualContext"),LU=ve({name:"VirtualProvider",setup(e,{slots:t}){let n=hs("VirtualProvider"),r=ce(()=>{let a=ue(n.optionsRef);if(!a)return{start:0,end:0};let c=window.getComputedStyle(a);return{start:parseFloat(c.paddingBlockStart||c.paddingTop),end:parseFloat(c.paddingBlockEnd||c.paddingBottom)}}),o=dU(ce(()=>({scrollPaddingStart:r.value.start,scrollPaddingEnd:r.value.end,count:n.virtual.value.options.length,estimateSize(){return 40},getScrollElement(){return ue(n.optionsRef)},overscan:12}))),s=ce(()=>{var a;return(a=n.virtual.value)==null?void 0:a.options}),l=_e(0);return Ft([s],()=>{l.value+=1}),Yt(Y2,n.virtual.value?o:null),()=>[dt("div",{style:{position:"relative",width:"100%",height:`${o.value.getTotalSize()}px`},ref:a=>{if(a){if(typeof process!="undefined"&&{}.JEST_WORKER_ID!==void 0||n.activationTrigger.value===0)return;n.activeOptionIndex.value!==null&&n.virtual.value.options.length>n.activeOptionIndex.value&&o.value.scrollToIndex(n.activeOptionIndex.value)}}},o.value.getVirtualItems().map(a=>Dr(t.default({option:n.virtual.value.options[a.index],open:n.comboboxState.value===0})[0],{key:`${l.value}-${a.index}`,"data-index":a.index,"aria-setsize":n.virtual.value.options.length,"aria-posinset":a.index+1,style:{position:"absolute",top:0,left:0,transform:`translateY(${a.start}px)`,overflowAnchor:"none"}})))]}}),Z2=ve({name:"Combobox",emits:{"update:modelValue":e=>!0},props:{as:{type:[Object,String],default:"template"},disabled:{type:[Boolean],default:!1},by:{type:[String,Function],nullable:!0,default:null},modelValue:{type:[Object,String,Number,Boolean],default:void 0},defaultValue:{type:[Object,String,Number,Boolean],default:void 0},form:{type:String,optional:!0},name:{type:String,optional:!0},nullable:{type:Boolean,default:!1},multiple:{type:[Boolean],default:!1},immediate:{type:[Boolean],default:!1},virtual:{type:Object,default:null}},inheritAttrs:!1,setup(e,{slots:t,attrs:n,emit:r}){let o=_e(1),s=_e(null),l=_e(null),a=_e(null),c=_e(null),f=_e({static:!1,hold:!1}),p=_e([]),h=_e(null),v=_e(2),y=_e(!1);function _(D=F=>F){let F=h.value!==null?p.value[h.value]:null,z=D(p.value.slice()),K=z.length>0&&z[0].dataRef.order.value!==null?z.sort((we,be)=>we.dataRef.order.value-be.dataRef.order.value):Fv(z,we=>ue(we.dataRef.domRef)),te=F?K.indexOf(F):null;return te===-1&&(te=null),{options:K,activeOptionIndex:te}}let w=ce(()=>e.multiple?1:0),I=ce(()=>e.nullable),[O,S]=Nv(ce(()=>e.modelValue),D=>r("update:modelValue",D),ce(()=>e.defaultValue)),E=ce(()=>O.value===void 0?Tt(w.value,{[1]:[],[0]:void 0}):O.value),T=null,$=null;function P(D){return Tt(w.value,{[0](){return S==null?void 0:S(D)},[1]:()=>{let F=Ue(A.value.value).slice(),z=Ue(D),K=F.findIndex(te=>A.compare(z,Ue(te)));return K===-1?F.push(z):F.splice(K,1),S==null?void 0:S(F)}})}let k=ce(()=>{});Ft([k],([D],[F])=>{if(A.virtual.value&&D&&F&&h.value!==null){let z=D.indexOf(F[h.value]);z!==-1?h.value=z:h.value=null}});let A={comboboxState:o,value:E,mode:w,compare(D,F){if(typeof e.by=="string"){let z=e.by;return(D==null?void 0:D[z])===(F==null?void 0:F[z])}return e.by===null?IU(D,F):e.by(D,F)},calculateIndex(D){return A.virtual.value?e.by===null?A.virtual.value.options.indexOf(D):A.virtual.value.options.findIndex(F=>A.compare(F,D)):p.value.findIndex(F=>A.compare(F.dataRef.value,D))},defaultValue:ce(()=>e.defaultValue),nullable:I,immediate:ce(()=>!1),virtual:ce(()=>null),inputRef:l,labelRef:s,buttonRef:a,optionsRef:c,disabled:ce(()=>e.disabled),options:p,change(D){S(D)},activeOptionIndex:ce(()=>{if(y.value&&h.value===null&&(A.virtual.value?A.virtual.value.options.length>0:p.value.length>0)){if(A.virtual.value){let F=A.virtual.value.options.findIndex(z=>{var K;return!((K=A.virtual.value)!=null&&K.disabled(z))});if(F!==-1)return F}let D=p.value.findIndex(F=>!F.dataRef.disabled);if(D!==-1)return D}return h.value}),activationTrigger:v,optionsPropsRef:f,closeCombobox(){y.value=!1,!e.disabled&&o.value!==1&&(o.value=1,h.value=null)},openCombobox(){if(y.value=!0,!e.disabled&&o.value!==0){if(A.value.value){let D=A.calculateIndex(A.value.value);D!==-1&&(h.value=D)}o.value=0}},setActivationTrigger(D){v.value=D},goToOption(D,F,z){y.value=!1,T!==null&&cancelAnimationFrame(T),T=requestAnimationFrame(()=>{if(e.disabled||c.value&&!f.value.static&&o.value===1)return;if(A.virtual.value){h.value=D===xt.Specific?F:Rh({focus:D},{resolveItems:()=>A.virtual.value.options,resolveActiveIndex:()=>{var we,be;return(be=(we=A.activeOptionIndex.value)!=null?we:A.virtual.value.options.findIndex(Oe=>{var Ae;return!((Ae=A.virtual.value)!=null&&Ae.disabled(Oe))}))!=null?be:null},resolveDisabled:we=>A.virtual.value.disabled(we),resolveId(){throw new Error("Function not implemented.")}}),v.value=z!=null?z:2;return}let K=_();if(K.activeOptionIndex===null){let we=K.options.findIndex(be=>!be.dataRef.disabled);we!==-1&&(K.activeOptionIndex=we)}let te=D===xt.Specific?F:Rh({focus:D},{resolveItems:()=>K.options,resolveActiveIndex:()=>K.activeOptionIndex,resolveId:we=>we.id,resolveDisabled:we=>we.dataRef.disabled});h.value=te,v.value=z!=null?z:2,p.value=K.options})},selectOption(D){let F=p.value.find(K=>K.id===D);if(!F)return;let{dataRef:z}=F;P(z.value)},selectActiveOption(){if(A.activeOptionIndex.value!==null){if(A.virtual.value)P(A.virtual.value.options[A.activeOptionIndex.value]);else{let{dataRef:D}=p.value[A.activeOptionIndex.value];P(D.value)}A.goToOption(xt.Specific,A.activeOptionIndex.value)}},registerOption(D,F){let z=Si({id:D,dataRef:F});if(A.virtual.value){p.value.push(z);return}$&&cancelAnimationFrame($);let K=_(te=>(te.push(z),te));h.value===null&&A.isSelected(F.value.value)&&(K.activeOptionIndex=K.options.indexOf(z)),p.value=K.options,h.value=K.activeOptionIndex,v.value=2,K.options.some(te=>!ue(te.dataRef.domRef))&&($=requestAnimationFrame(()=>{let te=_();p.value=te.options,h.value=te.activeOptionIndex}))},unregisterOption(D,F){if(T!==null&&cancelAnimationFrame(T),F&&(y.value=!0),A.virtual.value){p.value=p.value.filter(K=>K.id!==D);return}let z=_(K=>{let te=K.findIndex(we=>we.id===D);return te!==-1&&K.splice(te,1),K});p.value=z.options,h.value=z.activeOptionIndex,v.value=2},isSelected(D){return Tt(w.value,{[0]:()=>A.compare(Ue(A.value.value),Ue(D)),[1]:()=>Ue(A.value.value).some(F=>A.compare(Ue(F),Ue(D)))})},isActive(D){return h.value===A.calculateIndex(D)}};jd([l,a,c],()=>A.closeCombobox(),ce(()=>o.value===0)),Yt(J2,A),Vd(ce(()=>Tt(o.value,{[0]:Pt.Open,[1]:Pt.Closed})));let H=ce(()=>{var D;return(D=ue(l))==null?void 0:D.closest("form")});return gt(()=>{Ft([H],()=>{if(!H.value||e.defaultValue===void 0)return;function D(){A.change(e.defaultValue)}return H.value.addEventListener("reset",D),()=>{var F;(F=H.value)==null||F.removeEventListener("reset",D)}},{immediate:!0})}),()=>{var D,F,z;let{name:K,disabled:te,form:we,...be}=e,Oe={open:o.value===0,disabled:te,activeIndex:A.activeOptionIndex.value,activeOption:A.activeOptionIndex.value===null?null:A.virtual.value?A.virtual.value.options[(D=A.activeOptionIndex.value)!=null?D:0]:(z=(F=A.options.value[A.activeOptionIndex.value])==null?void 0:F.dataRef.value)!=null?z:null,value:E.value};return dt(Fe,[...K!=null&&E.value!=null?Uv({[K]:E.value}).map(([Ae,Ye])=>dt(_o,Bv({features:to.Hidden,key:Ae,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:we,disabled:te,name:Ae,value:Ye}))):[],St({theirProps:{...n,...fs(be,["by","defaultValue","immediate","modelValue","multiple","nullable","onUpdate:modelValue","virtual"])},ourProps:{},slot:Oe,slots:t,attrs:n,name:"Combobox"})])}}}),NU=ve({name:"ComboboxLabel",props:{as:{type:[Object,String],default:"label"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n}){var r;let o=(r=e.id)!=null?r:`headlessui-combobox-label-${zt()}`,s=hs("ComboboxLabel");function l(){var a;(a=ue(s.inputRef))==null||a.focus({preventScroll:!0})}return()=>{let a={open:s.comboboxState.value===0,disabled:s.disabled.value},{...c}=e,f={id:o,ref:s.labelRef,onClick:l};return St({ourProps:f,theirProps:c,slot:a,attrs:t,slots:n,name:"ComboboxLabel"})}}}),Q2=ve({name:"ComboboxButton",props:{as:{type:[Object,String],default:"button"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:r}){var o;let s=(o=e.id)!=null?o:`headlessui-combobox-button-${zt()}`,l=hs("ComboboxButton");r({el:l.buttonRef,$el:l.buttonRef});function a(p){l.disabled.value||(l.comboboxState.value===0?l.closeCombobox():(p.preventDefault(),l.openCombobox()),rn(()=>{var h;return(h=ue(l.inputRef))==null?void 0:h.focus({preventScroll:!0})}))}function c(p){switch(p.key){case lt.ArrowDown:p.preventDefault(),p.stopPropagation(),l.comboboxState.value===1&&l.openCombobox(),rn(()=>{var h;return(h=l.inputRef.value)==null?void 0:h.focus({preventScroll:!0})});return;case lt.ArrowUp:p.preventDefault(),p.stopPropagation(),l.comboboxState.value===1&&(l.openCombobox(),rn(()=>{l.value.value||l.goToOption(xt.Last)})),rn(()=>{var h;return(h=l.inputRef.value)==null?void 0:h.focus({preventScroll:!0})});return;case lt.Escape:if(l.comboboxState.value!==0)return;p.preventDefault(),l.optionsRef.value&&!l.optionsPropsRef.value.static&&p.stopPropagation(),l.closeCombobox(),rn(()=>{var h;return(h=l.inputRef.value)==null?void 0:h.focus({preventScroll:!0})});return}}let f=Hd(ce(()=>({as:e.as,type:t.type})),l.buttonRef);return()=>{var p,h;let v={open:l.comboboxState.value===0,disabled:l.disabled.value,value:l.value.value},{...y}=e,_={ref:l.buttonRef,id:s,type:f.value,tabindex:"-1","aria-haspopup":"listbox","aria-controls":(p=ue(l.optionsRef))==null?void 0:p.id,"aria-expanded":l.comboboxState.value===0,"aria-labelledby":l.labelRef.value?[(h=ue(l.labelRef))==null?void 0:h.id,s].join(" "):void 0,disabled:l.disabled.value===!0?!0:void 0,onKeydown:c,onClick:a};return St({ourProps:_,theirProps:y,slot:v,attrs:t,slots:n,name:"ComboboxButton"})}}}),e$=ve({name:"ComboboxInput",props:{as:{type:[Object,String],default:"input"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},displayValue:{type:Function},defaultValue:{type:String,default:void 0},id:{type:String,default:null}},emits:{change:e=>!0},setup(e,{emit:t,attrs:n,slots:r,expose:o}){var s;let l=(s=e.id)!=null?s:`headlessui-combobox-input-${zt()}`,a=hs("ComboboxInput"),c=ce(()=>jr(ue(a.inputRef))),f={value:!1};o({el:a.inputRef,$el:a.inputRef});function p(){a.change(null);let $=ue(a.optionsRef);$&&($.scrollTop=0),a.goToOption(xt.Nothing)}let h=ce(()=>{var $;let P=a.value.value;return ue(a.inputRef)?typeof e.displayValue!="undefined"&&P!==void 0?($=e.displayValue(P))!=null?$:"":typeof P=="string"?P:"":""});gt(()=>{Ft([h,a.comboboxState,c],([$,P],[k,A])=>{if(f.value)return;let H=ue(a.inputRef);H&&((A===0&&P===1||$!==k)&&(H.value=$),requestAnimationFrame(()=>{var D;if(f.value||!H||((D=c.value)==null?void 0:D.activeElement)!==H)return;let{selectionStart:F,selectionEnd:z}=H;Math.abs((z!=null?z:0)-(F!=null?F:0))===0&&F===0&&H.setSelectionRange(H.value.length,H.value.length)}))},{immediate:!0}),Ft([a.comboboxState],([$],[P])=>{if($===0&&P===1){if(f.value)return;let k=ue(a.inputRef);if(!k)return;let A=k.value,{selectionStart:H,selectionEnd:D,selectionDirection:F}=k;k.value="",k.value=A,F!==null?k.setSelectionRange(H,D,F):k.setSelectionRange(H,D)}})});let v=_e(!1);function y(){v.value=!0}function _(){wi().nextFrame(()=>{v.value=!1})}let w=pU();function I($){switch(f.value=!0,w(()=>{f.value=!1}),$.key){case lt.Enter:if(f.value=!1,a.comboboxState.value!==0||v.value)return;if($.preventDefault(),$.stopPropagation(),a.activeOptionIndex.value===null){a.closeCombobox();return}a.selectActiveOption(),a.mode.value===0&&a.closeCombobox();break;case lt.ArrowDown:return f.value=!1,$.preventDefault(),$.stopPropagation(),Tt(a.comboboxState.value,{[0]:()=>a.goToOption(xt.Next),[1]:()=>a.openCombobox()});case lt.ArrowUp:return f.value=!1,$.preventDefault(),$.stopPropagation(),Tt(a.comboboxState.value,{[0]:()=>a.goToOption(xt.Previous),[1]:()=>{a.openCombobox(),rn(()=>{a.value.value||a.goToOption(xt.Last)})}});case lt.Home:if($.shiftKey)break;return f.value=!1,$.preventDefault(),$.stopPropagation(),a.goToOption(xt.First);case lt.PageUp:return f.value=!1,$.preventDefault(),$.stopPropagation(),a.goToOption(xt.First);case lt.End:if($.shiftKey)break;return f.value=!1,$.preventDefault(),$.stopPropagation(),a.goToOption(xt.Last);case lt.PageDown:return f.value=!1,$.preventDefault(),$.stopPropagation(),a.goToOption(xt.Last);case lt.Escape:if(f.value=!1,a.comboboxState.value!==0)return;$.preventDefault(),a.optionsRef.value&&!a.optionsPropsRef.value.static&&$.stopPropagation(),a.nullable.value&&a.mode.value===0&&a.value.value===null&&p(),a.closeCombobox();break;case lt.Tab:if(f.value=!1,a.comboboxState.value!==0)return;a.mode.value===0&&a.activationTrigger.value!==1&&a.selectActiveOption(),a.closeCombobox();break}}function O($){t("change",$),a.nullable.value&&a.mode.value===0&&$.target.value===""&&p(),a.openCombobox()}function S($){var P,k,A;let H=(P=$.relatedTarget)!=null?P:Bo.find(D=>D!==$.currentTarget);if(f.value=!1,!((k=ue(a.optionsRef))!=null&&k.contains(H))&&!((A=ue(a.buttonRef))!=null&&A.contains(H))&&a.comboboxState.value===0)return $.preventDefault(),a.mode.value===0&&(a.nullable.value&&a.value.value===null?p():a.activationTrigger.value!==1&&a.selectActiveOption()),a.closeCombobox()}function E($){var P,k,A;let H=(P=$.relatedTarget)!=null?P:Bo.find(D=>D!==$.currentTarget);(k=ue(a.buttonRef))!=null&&k.contains(H)||(A=ue(a.optionsRef))!=null&&A.contains(H)||a.disabled.value||a.immediate.value&&a.comboboxState.value!==0&&(a.openCombobox(),wi().nextFrame(()=>{a.setActivationTrigger(1)}))}let T=ce(()=>{var $,P,k,A;return(A=(k=(P=e.defaultValue)!=null?P:a.defaultValue.value!==void 0?($=e.displayValue)==null?void 0:$.call(e,a.defaultValue.value):null)!=null?k:a.defaultValue.value)!=null?A:""});return()=>{var $,P,k,A,H,D,F;let z={open:a.comboboxState.value===0},{displayValue:K,onChange:te,...we}=e,be={"aria-controls":($=a.optionsRef.value)==null?void 0:$.id,"aria-expanded":a.comboboxState.value===0,"aria-activedescendant":a.activeOptionIndex.value===null?void 0:a.virtual.value?(P=a.options.value.find(Oe=>!a.virtual.value.disabled(Oe.dataRef.value)&&a.compare(Oe.dataRef.value,a.virtual.value.options[a.activeOptionIndex.value])))==null?void 0:P.id:(k=a.options.value[a.activeOptionIndex.value])==null?void 0:k.id,"aria-labelledby":(D=(A=ue(a.labelRef))==null?void 0:A.id)!=null?D:(H=ue(a.buttonRef))==null?void 0:H.id,"aria-autocomplete":"list",id:l,onCompositionstart:y,onCompositionend:_,onKeydown:I,onInput:O,onFocus:E,onBlur:S,role:"combobox",type:(F=n.type)!=null?F:"text",tabIndex:0,ref:a.inputRef,defaultValue:T.value,disabled:a.disabled.value===!0?!0:void 0};return St({ourProps:be,theirProps:we,slot:z,attrs:n,slots:r,features:rr.RenderStrategy|rr.Static,name:"ComboboxInput"})}}}),t$=ve({name:"ComboboxOptions",props:{as:{type:[Object,String],default:"ul"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},hold:{type:[Boolean],default:!1}},setup(e,{attrs:t,slots:n,expose:r}){let o=hs("ComboboxOptions"),s=`headlessui-combobox-options-${zt()}`;r({el:o.optionsRef,$el:o.optionsRef}),jt(()=>{o.optionsPropsRef.value.static=e.static}),jt(()=>{o.optionsPropsRef.value.hold=e.hold});let l=ps(),a=ce(()=>l!==null?(l.value&Pt.Open)===Pt.Open:o.comboboxState.value===0);xU({container:ce(()=>ue(o.optionsRef)),enabled:ce(()=>o.comboboxState.value===0),accept(f){return f.getAttribute("role")==="option"?NodeFilter.FILTER_REJECT:f.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(f){f.setAttribute("role","none")}});function c(f){f.preventDefault()}return()=>{var f,p,h;let v={open:o.comboboxState.value===0},y={"aria-labelledby":(h=(f=ue(o.labelRef))==null?void 0:f.id)!=null?h:(p=ue(o.buttonRef))==null?void 0:p.id,id:s,ref:o.optionsRef,role:"listbox","aria-multiselectable":o.mode.value===1?!0:void 0,onMousedown:c},_=fs(e,["hold"]);return St({ourProps:y,theirProps:_,slot:v,attrs:t,slots:o.virtual.value&&o.comboboxState.value===0?{...n,default:()=>[dt(LU,{},n.default)]}:n,features:rr.RenderStrategy|rr.Static,visible:a.value,name:"ComboboxOptions"})}}}),n$=ve({name:"ComboboxOption",props:{as:{type:[Object,String],default:"li"},value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1},order:{type:[Number],default:null}},setup(e,{slots:t,attrs:n,expose:r}){let o=hs("ComboboxOption"),s=`headlessui-combobox-option-${zt()}`,l=_e(null),a=ce(()=>e.disabled);r({el:l,$el:l});let c=ce(()=>{var S;return o.virtual.value?o.activeOptionIndex.value===o.calculateIndex(e.value):o.activeOptionIndex.value===null?!1:((S=o.options.value[o.activeOptionIndex.value])==null?void 0:S.id)===s}),f=ce(()=>o.isSelected(e.value)),p=kt(Y2,null),h=ce(()=>({disabled:e.disabled,value:e.value,domRef:l,order:ce(()=>e.order)}));gt(()=>o.registerOption(s,h)),Zt(()=>o.unregisterOption(s,c.value)),jt(()=>{let S=ue(l);S&&(p==null||p.value.measureElement(S))}),jt(()=>{o.comboboxState.value===0&&c.value&&(o.virtual.value||o.activationTrigger.value!==0&&rn(()=>{var S,E;return(E=(S=ue(l))==null?void 0:S.scrollIntoView)==null?void 0:E.call(S,{block:"nearest"})}))});function v(S){S.preventDefault(),S.button===K2.Left&&(a.value||(o.selectOption(s),j2()||requestAnimationFrame(()=>{var E;return(E=ue(o.inputRef))==null?void 0:E.focus({preventScroll:!0})}),o.mode.value===0&&o.closeCombobox()))}function y(){var S;if(e.disabled||(S=o.virtual.value)!=null&&S.disabled(e.value))return o.goToOption(xt.Nothing);let E=o.calculateIndex(e.value);o.goToOption(xt.Specific,E)}let _=V2();function w(S){_.update(S)}function I(S){var E;if(!_.wasMoved(S)||e.disabled||(E=o.virtual.value)!=null&&E.disabled(e.value)||c.value)return;let T=o.calculateIndex(e.value);o.goToOption(xt.Specific,T,0)}function O(S){var E;_.wasMoved(S)&&(e.disabled||(E=o.virtual.value)!=null&&E.disabled(e.value)||c.value&&(o.optionsPropsRef.value.hold||o.goToOption(xt.Nothing)))}return()=>{let{disabled:S}=e,E={active:c.value,selected:f.value,disabled:S},T={id:s,ref:l,role:"option",tabIndex:S===!0?void 0:-1,"aria-disabled":S===!0?!0:void 0,"aria-selected":f.value,disabled:void 0,onMousedown:v,onFocus:y,onPointerenter:w,onMouseenter:w,onPointermove:I,onMousemove:I,onPointerleave:O,onMouseleave:O},$=fs(e,["order","value"]);return St({ourProps:T,theirProps:$,slot:E,attrs:n,slots:t,name:"ComboboxOption"})}}});function jv(e,t,n,r){Fa.isServer||jt(o=>{e=e!=null?e:window,e.addEventListener(t,n,r),o(()=>e.removeEventListener(t,n,r))})}var pr=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(pr||{});function Hv(){let e=_e(0);return H2("keydown",t=>{t.key==="Tab"&&(e.value=t.shiftKey?1:0)}),e}function r$(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let n of e.value){let r=ue(n);r instanceof HTMLElement&&t.add(r)}return t}var o$=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(o$||{});let Rl=Object.assign(ve({name:"FocusTrap",props:{as:{type:[Object,String],default:"div"},initialFocus:{type:Object,default:null},features:{type:Number,default:30},containers:{type:[Object,Function],default:_e(new Set)}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:r}){let o=_e(null);r({el:o,$el:o});let s=ce(()=>jr(o)),l=_e(!1);gt(()=>l.value=!0),Zt(()=>l.value=!1),DU({ownerDocument:s},ce(()=>l.value&&Boolean(e.features&16)));let a=FU({ownerDocument:s,container:o,initialFocus:ce(()=>e.initialFocus)},ce(()=>l.value&&Boolean(e.features&2)));BU({ownerDocument:s,container:o,containers:e.containers,previousActiveElement:a},ce(()=>l.value&&Boolean(e.features&8)));let c=Hv();function f(y){let _=ue(o);!_||(w=>w())(()=>{Tt(c.value,{[pr.Forwards]:()=>{Gr(_,Pn.First,{skipElements:[y.relatedTarget]})},[pr.Backwards]:()=>{Gr(_,Pn.Last,{skipElements:[y.relatedTarget]})}})})}let p=_e(!1);function h(y){y.key==="Tab"&&(p.value=!0,requestAnimationFrame(()=>{p.value=!1}))}function v(y){if(!l.value)return;let _=r$(e.containers);ue(o)instanceof HTMLElement&&_.add(ue(o));let w=y.relatedTarget;w instanceof HTMLElement&&w.dataset.headlessuiFocusGuard!=="true"&&(i$(_,w)||(p.value?Gr(ue(o),Tt(c.value,{[pr.Forwards]:()=>Pn.Next,[pr.Backwards]:()=>Pn.Previous})|Pn.WrapAround,{relativeTo:y.target}):y.target instanceof HTMLElement&&es(y.target)))}return()=>{let y={},_={ref:o,onKeydown:h,onFocusout:v},{features:w,initialFocus:I,containers:O,...S}=e;return dt(Fe,[Boolean(w&4)&&dt(_o,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:f,features:to.Focusable}),St({ourProps:_,theirProps:{...t,...S},slot:y,attrs:t,slots:n,name:"FocusTrap"}),Boolean(w&4)&&dt(_o,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:f,features:to.Focusable})])}}}),{features:o$});function MU(e){let t=_e(Bo.slice());return Ft([e],([n],[r])=>{r===!0&&n===!1?Mv(()=>{t.value.splice(0)}):r===!1&&n===!0&&(t.value=Bo.slice())},{flush:"post"}),()=>{var n;return(n=t.value.find(r=>r!=null&&r.isConnected))!=null?n:null}}function DU({ownerDocument:e},t){let n=MU(t);gt(()=>{jt(()=>{var r,o;t.value||((r=e.value)==null?void 0:r.activeElement)===((o=e.value)==null?void 0:o.body)&&es(n())},{flush:"post"})}),Zt(()=>{t.value&&es(n())})}function FU({ownerDocument:e,container:t,initialFocus:n},r){let o=_e(null),s=_e(!1);return gt(()=>s.value=!0),Zt(()=>s.value=!1),gt(()=>{Ft([t,n,r],(l,a)=>{if(l.every((f,p)=>(a==null?void 0:a[p])===f)||!r.value)return;let c=ue(t);c&&Mv(()=>{var f,p;if(!s.value)return;let h=ue(n),v=(f=e.value)==null?void 0:f.activeElement;if(h){if(h===v){o.value=v;return}}else if(c.contains(v)){o.value=v;return}h?es(h):Gr(c,Pn.First|Pn.NoScroll)===ga.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),o.value=(p=e.value)==null?void 0:p.activeElement})},{immediate:!0,flush:"post"})}),o}function BU({ownerDocument:e,container:t,containers:n,previousActiveElement:r},o){var s;jv((s=e.value)==null?void 0:s.defaultView,"focus",l=>{if(!o.value)return;let a=r$(n);ue(t)instanceof HTMLElement&&a.add(ue(t));let c=r.value;if(!c)return;let f=l.target;f&&f instanceof HTMLElement?i$(a,f)?(r.value=f,es(f)):(l.preventDefault(),l.stopPropagation(),es(c)):es(r.value)},!0)}function i$(e,t){for(let n of e)if(n.contains(t))return!0;return!1}function UU(e){let t=nd(e.getSnapshot());return Zt(e.subscribe(()=>{t.value=e.getSnapshot()})),t}function jU(e,t){let n=e(),r=new Set;return{getSnapshot(){return n},subscribe(o){return r.add(o),()=>r.delete(o)},dispatch(o,...s){let l=t[o].call(n,...s);l&&(n=l,r.forEach(a=>a()))}}}function HU(){let e;return{before({doc:t}){var n;let r=t.documentElement;e=((n=t.defaultView)!=null?n:window).innerWidth-r.clientWidth},after({doc:t,d:n}){let r=t.documentElement,o=r.clientWidth-r.offsetWidth,s=e-o;n.style(r,"paddingRight",`${s}px`)}}}function VU(){return U2()?{before({doc:e,d:t,meta:n}){function r(o){return n.containers.flatMap(s=>s()).some(s=>s.contains(o))}t.microTask(()=>{var o;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let a=wi();a.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>a.dispose()))}let s=(o=window.scrollY)!=null?o:window.pageYOffset,l=null;t.addEventListener(e,"click",a=>{if(a.target instanceof HTMLElement)try{let c=a.target.closest("a");if(!c)return;let{hash:f}=new URL(c.href),p=e.querySelector(f);p&&!r(p)&&(l=p)}catch{}},!0),t.addEventListener(e,"touchstart",a=>{if(a.target instanceof HTMLElement)if(r(a.target)){let c=a.target;for(;c.parentElement&&r(c.parentElement);)c=c.parentElement;t.style(c,"overscrollBehavior","contain")}else t.style(a.target,"touchAction","none")}),t.addEventListener(e,"touchmove",a=>{if(a.target instanceof HTMLElement){if(a.target.tagName==="INPUT")return;if(r(a.target)){let c=a.target;for(;c.parentElement&&c.dataset.headlessuiPortal!==""&&!(c.scrollHeight>c.clientHeight||c.scrollWidth>c.clientWidth);)c=c.parentElement;c.dataset.headlessuiPortal===""&&a.preventDefault()}else a.preventDefault()}},{passive:!1}),t.add(()=>{var a;let c=(a=window.scrollY)!=null?a:window.pageYOffset;s!==c&&window.scrollTo(0,s),l&&l.isConnected&&(l.scrollIntoView({block:"nearest"}),l=null)})})}}:{}}function WU(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function zU(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let Ki=jU(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:wi(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let r={doc:e,d:t,meta:zU(n)},o=[VU(),HU(),WU()];o.forEach(({before:s})=>s==null?void 0:s(r)),o.forEach(({after:s})=>s==null?void 0:s(r))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});Ki.subscribe(()=>{let e=Ki.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let r=t.get(n.doc)==="hidden",o=n.count!==0;(o&&!r||!o&&r)&&Ki.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&Ki.dispatch("TEARDOWN",n)}});function qU(e,t,n){let r=UU(Ki),o=ce(()=>{let s=e.value?r.value.get(e.value):void 0;return s?s.count>0:!1});return Ft([e,t],([s,l],[a],c)=>{if(!s||!l)return;Ki.dispatch("PUSH",s,n);let f=!1;c(()=>{f||(Ki.dispatch("POP",a!=null?a:s,n),f=!0)})},{immediate:!0}),o}let Dp=new Map,Ll=new Map;function M1(e,t=_e(!0)){jt(n=>{var r;if(!t.value)return;let o=ue(e);if(!o)return;n(function(){var l;if(!o)return;let a=(l=Ll.get(o))!=null?l:1;if(a===1?Ll.delete(o):Ll.set(o,a-1),a!==1)return;let c=Dp.get(o);c&&(c["aria-hidden"]===null?o.removeAttribute("aria-hidden"):o.setAttribute("aria-hidden",c["aria-hidden"]),o.inert=c.inert,Dp.delete(o))});let s=(r=Ll.get(o))!=null?r:0;Ll.set(o,s+1),s===0&&(Dp.set(o,{"aria-hidden":o.getAttribute("aria-hidden"),inert:o.inert}),o.setAttribute("aria-hidden","true"),o.inert=!0)})}function s$({defaultContainers:e=[],portals:t,mainTreeNodeRef:n}={}){let r=_e(null),o=jr(r);function s(){var l,a,c;let f=[];for(let p of e)p!==null&&(p instanceof HTMLElement?f.push(p):"value"in p&&p.value instanceof HTMLElement&&f.push(p.value));if(t!=null&&t.value)for(let p of t.value)f.push(p);for(let p of(l=o==null?void 0:o.querySelectorAll("html > *, body > *"))!=null?l:[])p!==document.body&&p!==document.head&&p instanceof HTMLElement&&p.id!=="headlessui-portal-root"&&(p.contains(ue(r))||p.contains((c=(a=ue(r))==null?void 0:a.getRootNode())==null?void 0:c.host)||f.some(h=>p.contains(h))||f.push(p));return f}return{resolveContainers:s,contains(l){return s().some(a=>a.contains(l))},mainTreeNodeRef:r,MainTreeNode(){return n!=null?null:dt(_o,{features:to.Hidden,ref:r})}}}function KU(){let e=_e(null);return{mainTreeNodeRef:e,MainTreeNode(){return dt(_o,{features:to.Hidden,ref:e})}}}let l$=Symbol("ForcePortalRootContext");function GU(){return kt(l$,!1)}let Lh=ve({name:"ForcePortalRoot",props:{as:{type:[Object,String],default:"template"},force:{type:Boolean,default:!1}},setup(e,{slots:t,attrs:n}){return Yt(l$,e.force),()=>{let{force:r,...o}=e;return St({theirProps:o,ourProps:{},slot:{},slots:t,attrs:n,name:"ForcePortalRoot"})}}}),a$=Symbol("StackContext");var Nh=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(Nh||{});function XU(){return kt(a$,()=>{})}function JU({type:e,enabled:t,element:n,onUpdate:r}){let o=XU();function s(...l){r==null||r(...l),o(...l)}gt(()=>{Ft(t,(l,a)=>{l?s(0,e,n):a===!0&&s(1,e,n)},{immediate:!0,flush:"sync"})}),Zt(()=>{t.value&&s(1,e,n)}),Yt(a$,s)}let u$=Symbol("DescriptionContext");function YU(){let e=kt(u$,null);if(e===null)throw new Error("Missing parent");return e}function c$({slot:e=_e({}),name:t="Description",props:n={}}={}){let r=_e([]);function o(s){return r.value.push(s),()=>{let l=r.value.indexOf(s);l!==-1&&r.value.splice(l,1)}}return Yt(u$,{register:o,slot:e,name:t,props:n}),ce(()=>r.value.length>0?r.value.join(" "):void 0)}let Bte=ve({name:"Description",props:{as:{type:[Object,String],default:"p"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n}){var r;let o=(r=e.id)!=null?r:`headlessui-description-${zt()}`,s=YU();return gt(()=>Zt(s.register(o))),()=>{let{name:l="Description",slot:a=_e({}),props:c={}}=s,{...f}=e,p={...Object.entries(c).reduce((h,[v,y])=>Object.assign(h,{[v]:jn(y)}),{}),id:o};return St({ourProps:p,theirProps:f,slot:a.value,attrs:t,slots:n,name:l})}}});function ZU(e){let t=jr(e);if(!t){if(e===null)return null;throw new Error(`[Headless UI]: Cannot find ownerDocument for contextElement: ${e}`)}let n=t.getElementById("headlessui-portal-root");if(n)return n;let r=t.createElement("div");return r.setAttribute("id","headlessui-portal-root"),t.body.appendChild(r)}const Mh=new WeakMap;function QU(e){var t;return(t=Mh.get(e))!=null?t:0}function D1(e,t){let n=t(QU(e));return n<=0?Mh.delete(e):Mh.set(e,n),n}let d$=ve({name:"Portal",props:{as:{type:[Object,String],default:"div"}},setup(e,{slots:t,attrs:n}){let r=_e(null),o=ce(()=>jr(r)),s=GU(),l=kt(p$,null),a=_e(s===!0||l==null?ZU(r.value):l.resolveTarget());a.value&&D1(a.value,v=>v+1);let c=_e(!1);gt(()=>{c.value=!0}),jt(()=>{s||l!=null&&(a.value=l.resolveTarget())});let f=kt(Dh,null),p=!1,h=Ko();return Ft(r,()=>{if(p||!f)return;let v=ue(r);v&&(Zt(f.register(v),h),p=!0)}),Zt(()=>{var v,y;let _=(v=o.value)==null?void 0:v.getElementById("headlessui-portal-root");!_||a.value!==_||D1(a.value,w=>w-1)||a.value.children.length>0||(y=a.value.parentElement)==null||y.removeChild(a.value)}),()=>{if(!c.value||a.value===null)return null;let v={ref:r,"data-headlessui-portal":""};return dt(lw,{to:a.value},St({ourProps:v,theirProps:e,slot:{},attrs:n,slots:t,name:"Portal"}))}}}),Dh=Symbol("PortalParentContext");function f$(){let e=kt(Dh,null),t=_e([]);function n(s){return t.value.push(s),e&&e.register(s),()=>r(s)}function r(s){let l=t.value.indexOf(s);l!==-1&&t.value.splice(l,1),e&&e.unregister(s)}let o={register:n,unregister:r,portals:t};return[t,ve({name:"PortalWrapper",setup(s,{slots:l}){return Yt(Dh,o),()=>{var a;return(a=l.default)==null?void 0:a.call(l)}}})]}let p$=Symbol("PortalGroupContext"),ej=ve({name:"PortalGroup",props:{as:{type:[Object,String],default:"template"},target:{type:Object,default:null}},setup(e,{attrs:t,slots:n}){let r=Si({resolveTarget(){return e.target}});return Yt(p$,r),()=>{let{target:o,...s}=e;return St({theirProps:s,ourProps:{},slot:{},attrs:t,slots:n,name:"PortalGroup"})}}});var tj=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(tj||{});let Fh=Symbol("DialogContext");function Ba(e){let t=kt(Fh,null);if(t===null){let n=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Ba),n}return t}let Ju="DC8F892D-2EBD-447C-A4C8-A03058436FF4",nj=ve({name:"Dialog",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},open:{type:[Boolean,String],default:Ju},initialFocus:{type:Object,default:null},id:{type:String,default:null},role:{type:String,default:"dialog"}},emits:{close:e=>!0},setup(e,{emit:t,attrs:n,slots:r,expose:o}){var s,l;let a=(s=e.id)!=null?s:`headlessui-dialog-${zt()}`,c=_e(!1);gt(()=>{c.value=!0});let f=!1,p=ce(()=>e.role==="dialog"||e.role==="alertdialog"?e.role:(f||(f=!0,console.warn(`Invalid role [${p}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")),h=_e(0),v=ps(),y=ce(()=>e.open===Ju&&v!==null?(v.value&Pt.Open)===Pt.Open:e.open),_=_e(null),w=ce(()=>jr(_));if(o({el:_,$el:_}),!(e.open!==Ju||v!==null))throw new Error("You forgot to provide an `open` prop to the `Dialog`.");if(typeof y.value!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${y.value===Ju?void 0:e.open}`);let I=ce(()=>c.value&&y.value?0:1),O=ce(()=>I.value===0),S=ce(()=>h.value>1),E=kt(Fh,null)!==null,[T,$]=f$(),{resolveContainers:P,mainTreeNodeRef:k,MainTreeNode:A}=s$({portals:T,defaultContainers:[ce(()=>{var Le;return(Le=Oe.panelRef.value)!=null?Le:_.value})]}),H=ce(()=>S.value?"parent":"leaf"),D=ce(()=>v!==null?(v.value&Pt.Closing)===Pt.Closing:!1),F=ce(()=>E||D.value?!1:O.value),z=ce(()=>{var Le,Ke,Q;return(Q=Array.from((Ke=(Le=w.value)==null?void 0:Le.querySelectorAll("body > *"))!=null?Ke:[]).find(ae=>ae.id==="headlessui-portal-root"?!1:ae.contains(ue(k))&&ae instanceof HTMLElement))!=null?Q:null});M1(z,F);let K=ce(()=>S.value?!0:O.value),te=ce(()=>{var Le,Ke,Q;return(Q=Array.from((Ke=(Le=w.value)==null?void 0:Le.querySelectorAll("[data-headlessui-portal]"))!=null?Ke:[]).find(ae=>ae.contains(ue(k))&&ae instanceof HTMLElement))!=null?Q:null});M1(te,K),JU({type:"Dialog",enabled:ce(()=>I.value===0),element:_,onUpdate:(Le,Ke)=>{if(Ke==="Dialog")return Tt(Le,{[Nh.Add]:()=>h.value+=1,[Nh.Remove]:()=>h.value-=1})}});let we=c$({name:"DialogDescription",slot:ce(()=>({open:y.value}))}),be=_e(null),Oe={titleId:be,panelRef:_e(null),dialogState:I,setTitleId(Le){be.value!==Le&&(be.value=Le)},close(){t("close",!1)}};Yt(Fh,Oe);let Ae=ce(()=>!(!O.value||S.value));jd(P,(Le,Ke)=>{Le.preventDefault(),Oe.close(),rn(()=>Ke==null?void 0:Ke.focus())},Ae);let Ye=ce(()=>!(S.value||I.value!==0));jv((l=w.value)==null?void 0:l.defaultView,"keydown",Le=>{Ye.value&&(Le.defaultPrevented||Le.key===lt.Escape&&(Le.preventDefault(),Le.stopPropagation(),Oe.close()))});let ft=ce(()=>!(D.value||I.value!==0||E));return qU(w,ft,Le=>{var Ke;return{containers:[...(Ke=Le.containers)!=null?Ke:[],P]}}),jt(Le=>{if(I.value!==0)return;let Ke=ue(_);if(!Ke)return;let Q=new ResizeObserver(ae=>{for(let fe of ae){let Se=fe.target.getBoundingClientRect();Se.x===0&&Se.y===0&&Se.width===0&&Se.height===0&&Oe.close()}});Q.observe(Ke),Le(()=>Q.disconnect())}),()=>{let{open:Le,initialFocus:Ke,...Q}=e,ae={...n,ref:_,id:a,role:p.value,"aria-modal":I.value===0?!0:void 0,"aria-labelledby":be.value,"aria-describedby":we.value},fe={open:I.value===0};return dt(Lh,{force:!0},()=>[dt(d$,()=>dt(ej,{target:_.value},()=>dt(Lh,{force:!1},()=>dt(Rl,{initialFocus:Ke,containers:P,features:O.value?Tt(H.value,{parent:Rl.features.RestoreFocus,leaf:Rl.features.All&~Rl.features.FocusLock}):Rl.features.None},()=>dt($,{},()=>St({ourProps:ae,theirProps:{...Q,...n},slot:fe,attrs:n,slots:r,visible:I.value===0,features:rr.RenderStrategy|rr.Static,name:"Dialog"})))))),dt(A)])}}}),rj=ve({name:"DialogOverlay",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n}){var r;let o=(r=e.id)!=null?r:`headlessui-dialog-overlay-${zt()}`,s=Ba("DialogOverlay");function l(a){a.target===a.currentTarget&&(a.preventDefault(),a.stopPropagation(),s.close())}return()=>{let{...a}=e;return St({ourProps:{id:o,"aria-hidden":!0,onClick:l},theirProps:a,slot:{open:s.dialogState.value===0},attrs:t,slots:n,name:"DialogOverlay"})}}});ve({name:"DialogBackdrop",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:null}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:r}){var o;let s=(o=e.id)!=null?o:`headlessui-dialog-backdrop-${zt()}`,l=Ba("DialogBackdrop"),a=_e(null);return r({el:a,$el:a}),gt(()=>{if(l.panelRef.value===null)throw new Error("A <DialogBackdrop /> component is being used, but a <DialogPanel /> component is missing.")}),()=>{let{...c}=e,f={id:s,ref:a,"aria-hidden":!0};return dt(Lh,{force:!0},()=>dt(d$,()=>St({ourProps:f,theirProps:{...t,...c},slot:{open:l.dialogState.value===0},attrs:t,slots:n,name:"DialogBackdrop"})))}}});ve({name:"DialogPanel",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:r}){var o;let s=(o=e.id)!=null?o:`headlessui-dialog-panel-${zt()}`,l=Ba("DialogPanel");r({el:l.panelRef,$el:l.panelRef});function a(c){c.stopPropagation()}return()=>{let{...c}=e,f={id:s,ref:l.panelRef,onClick:a};return St({ourProps:f,theirProps:c,slot:{open:l.dialogState.value===0},attrs:t,slots:n,name:"DialogPanel"})}}});let oj=ve({name:"DialogTitle",props:{as:{type:[Object,String],default:"h2"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n}){var r;let o=(r=e.id)!=null?r:`headlessui-dialog-title-${zt()}`,s=Ba("DialogTitle");return gt(()=>{s.setTitleId(o),Zt(()=>s.setTitleId(null))}),()=>{let{...l}=e;return St({ourProps:{id:o},theirProps:l,slot:{open:s.dialogState.value===0},attrs:t,slots:n,name:"DialogTitle"})}}}),F1=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function B1(e){var t,n;let r=(t=e.innerText)!=null?t:"",o=e.cloneNode(!0);if(!(o instanceof HTMLElement))return r;let s=!1;for(let a of o.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))a.remove(),s=!0;let l=s?(n=o.innerText)!=null?n:"":r;return F1.test(l)&&(l=l.replace(F1,"")),l}function ij(e){let t=e.getAttribute("aria-label");if(typeof t=="string")return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let r=n.split(" ").map(o=>{let s=document.getElementById(o);if(s){let l=s.getAttribute("aria-label");return typeof l=="string"?l.trim():B1(s).trim()}return null}).filter(Boolean);if(r.length>0)return r.join(", ")}return B1(e).trim()}function sj(e){let t=_e(""),n=_e("");return()=>{let r=ue(e);if(!r)return"";let o=r.innerText;if(t.value===o)return n.value;let s=ij(r).trim().toLowerCase();return t.value=o,n.value=s,s}}function lj(e,t){return e===t}var aj=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(aj||{}),uj=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(uj||{}),cj=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(cj||{});function dj(e){requestAnimationFrame(()=>requestAnimationFrame(e))}let h$=Symbol("ListboxContext");function Ua(e){let t=kt(h$,null);if(t===null){let n=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Ua),n}return t}let Vv=ve({name:"Listbox",emits:{"update:modelValue":e=>!0},props:{as:{type:[Object,String],default:"template"},disabled:{type:[Boolean],default:!1},by:{type:[String,Function],default:()=>lj},horizontal:{type:[Boolean],default:!1},modelValue:{type:[Object,String,Number,Boolean],default:void 0},defaultValue:{type:[Object,String,Number,Boolean],default:void 0},form:{type:String,optional:!0},name:{type:String,optional:!0},multiple:{type:[Boolean],default:!1}},inheritAttrs:!1,setup(e,{slots:t,attrs:n,emit:r}){let o=_e(1),s=_e(null),l=_e(null),a=_e(null),c=_e([]),f=_e(""),p=_e(null),h=_e(1);function v(E=T=>T){let T=p.value!==null?c.value[p.value]:null,$=Fv(E(c.value.slice()),k=>ue(k.dataRef.domRef)),P=T?$.indexOf(T):null;return P===-1&&(P=null),{options:$,activeOptionIndex:P}}let y=ce(()=>e.multiple?1:0),[_,w]=Nv(ce(()=>e.modelValue),E=>r("update:modelValue",E),ce(()=>e.defaultValue)),I=ce(()=>_.value===void 0?Tt(y.value,{[1]:[],[0]:void 0}):_.value),O={listboxState:o,value:I,mode:y,compare(E,T){if(typeof e.by=="string"){let $=e.by;return(E==null?void 0:E[$])===(T==null?void 0:T[$])}return e.by(E,T)},orientation:ce(()=>e.horizontal?"horizontal":"vertical"),labelRef:s,buttonRef:l,optionsRef:a,disabled:ce(()=>e.disabled),options:c,searchQuery:f,activeOptionIndex:p,activationTrigger:h,closeListbox(){e.disabled||o.value!==1&&(o.value=1,p.value=null)},openListbox(){e.disabled||o.value!==0&&(o.value=0)},goToOption(E,T,$){if(e.disabled||o.value===1)return;let P=v(),k=Rh(E===xt.Specific?{focus:xt.Specific,id:T}:{focus:E},{resolveItems:()=>P.options,resolveActiveIndex:()=>P.activeOptionIndex,resolveId:A=>A.id,resolveDisabled:A=>A.dataRef.disabled});f.value="",p.value=k,h.value=$!=null?$:1,c.value=P.options},search(E){if(e.disabled||o.value===1)return;let T=f.value!==""?0:1;f.value+=E.toLowerCase();let $=(p.value!==null?c.value.slice(p.value+T).concat(c.value.slice(0,p.value+T)):c.value).find(k=>k.dataRef.textValue.startsWith(f.value)&&!k.dataRef.disabled),P=$?c.value.indexOf($):-1;P===-1||P===p.value||(p.value=P,h.value=1)},clearSearch(){e.disabled||o.value!==1&&f.value!==""&&(f.value="")},registerOption(E,T){let $=v(P=>[...P,{id:E,dataRef:T}]);c.value=$.options,p.value=$.activeOptionIndex},unregisterOption(E){let T=v($=>{let P=$.findIndex(k=>k.id===E);return P!==-1&&$.splice(P,1),$});c.value=T.options,p.value=T.activeOptionIndex,h.value=1},theirOnChange(E){e.disabled||w(E)},select(E){e.disabled||w(Tt(y.value,{[0]:()=>E,[1]:()=>{let T=Ue(O.value.value).slice(),$=Ue(E),P=T.findIndex(k=>O.compare($,Ue(k)));return P===-1?T.push($):T.splice(P,1),T}}))}};jd([l,a],(E,T)=>{var $;O.closeListbox(),Dv(T,Ud.Loose)||(E.preventDefault(),($=ue(l))==null||$.focus())},ce(()=>o.value===0)),Yt(h$,O),Vd(ce(()=>Tt(o.value,{[0]:Pt.Open,[1]:Pt.Closed})));let S=ce(()=>{var E;return(E=ue(l))==null?void 0:E.closest("form")});return gt(()=>{Ft([S],()=>{if(!S.value||e.defaultValue===void 0)return;function E(){O.theirOnChange(e.defaultValue)}return S.value.addEventListener("reset",E),()=>{var T;(T=S.value)==null||T.removeEventListener("reset",E)}},{immediate:!0})}),()=>{let{name:E,modelValue:T,disabled:$,form:P,...k}=e,A={open:o.value===0,disabled:$,value:I.value};return dt(Fe,[...E!=null&&I.value!=null?Uv({[E]:I.value}).map(([H,D])=>dt(_o,Bv({features:to.Hidden,key:H,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:P,disabled:$,name:H,value:D}))):[],St({ourProps:{},theirProps:{...n,...fs(k,["defaultValue","onUpdate:modelValue","horizontal","multiple","by"])},slot:A,slots:t,attrs:n,name:"Listbox"})])}}}),Wv=ve({name:"ListboxLabel",props:{as:{type:[Object,String],default:"label"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n}){var r;let o=(r=e.id)!=null?r:`headlessui-listbox-label-${zt()}`,s=Ua("ListboxLabel");function l(){var a;(a=ue(s.buttonRef))==null||a.focus({preventScroll:!0})}return()=>{let a={open:s.listboxState.value===0,disabled:s.disabled.value},{...c}=e,f={id:o,ref:s.labelRef,onClick:l};return St({ourProps:f,theirProps:c,slot:a,attrs:t,slots:n,name:"ListboxLabel"})}}}),zv=ve({name:"ListboxButton",props:{as:{type:[Object,String],default:"button"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:r}){var o;let s=(o=e.id)!=null?o:`headlessui-listbox-button-${zt()}`,l=Ua("ListboxButton");r({el:l.buttonRef,$el:l.buttonRef});function a(h){switch(h.key){case lt.Space:case lt.Enter:case lt.ArrowDown:h.preventDefault(),l.openListbox(),rn(()=>{var v;(v=ue(l.optionsRef))==null||v.focus({preventScroll:!0}),l.value.value||l.goToOption(xt.First)});break;case lt.ArrowUp:h.preventDefault(),l.openListbox(),rn(()=>{var v;(v=ue(l.optionsRef))==null||v.focus({preventScroll:!0}),l.value.value||l.goToOption(xt.Last)});break}}function c(h){switch(h.key){case lt.Space:h.preventDefault();break}}function f(h){l.disabled.value||(l.listboxState.value===0?(l.closeListbox(),rn(()=>{var v;return(v=ue(l.buttonRef))==null?void 0:v.focus({preventScroll:!0})})):(h.preventDefault(),l.openListbox(),dj(()=>{var v;return(v=ue(l.optionsRef))==null?void 0:v.focus({preventScroll:!0})})))}let p=Hd(ce(()=>({as:e.as,type:t.type})),l.buttonRef);return()=>{var h,v;let y={open:l.listboxState.value===0,disabled:l.disabled.value,value:l.value.value},{..._}=e,w={ref:l.buttonRef,id:s,type:p.value,"aria-haspopup":"listbox","aria-controls":(h=ue(l.optionsRef))==null?void 0:h.id,"aria-expanded":l.listboxState.value===0,"aria-labelledby":l.labelRef.value?[(v=ue(l.labelRef))==null?void 0:v.id,s].join(" "):void 0,disabled:l.disabled.value===!0?!0:void 0,onKeydown:a,onKeyup:c,onClick:f};return St({ourProps:w,theirProps:_,slot:y,attrs:t,slots:n,name:"ListboxButton"})}}}),qv=ve({name:"ListboxOptions",props:{as:{type:[Object,String],default:"ul"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:r}){var o;let s=(o=e.id)!=null?o:`headlessui-listbox-options-${zt()}`,l=Ua("ListboxOptions"),a=_e(null);r({el:l.optionsRef,$el:l.optionsRef});function c(h){switch(a.value&&clearTimeout(a.value),h.key){case lt.Space:if(l.searchQuery.value!=="")return h.preventDefault(),h.stopPropagation(),l.search(h.key);case lt.Enter:if(h.preventDefault(),h.stopPropagation(),l.activeOptionIndex.value!==null){let v=l.options.value[l.activeOptionIndex.value];l.select(v.dataRef.value)}l.mode.value===0&&(l.closeListbox(),rn(()=>{var v;return(v=ue(l.buttonRef))==null?void 0:v.focus({preventScroll:!0})}));break;case Tt(l.orientation.value,{vertical:lt.ArrowDown,horizontal:lt.ArrowRight}):return h.preventDefault(),h.stopPropagation(),l.goToOption(xt.Next);case Tt(l.orientation.value,{vertical:lt.ArrowUp,horizontal:lt.ArrowLeft}):return h.preventDefault(),h.stopPropagation(),l.goToOption(xt.Previous);case lt.Home:case lt.PageUp:return h.preventDefault(),h.stopPropagation(),l.goToOption(xt.First);case lt.End:case lt.PageDown:return h.preventDefault(),h.stopPropagation(),l.goToOption(xt.Last);case lt.Escape:h.preventDefault(),h.stopPropagation(),l.closeListbox(),rn(()=>{var v;return(v=ue(l.buttonRef))==null?void 0:v.focus({preventScroll:!0})});break;case lt.Tab:h.preventDefault(),h.stopPropagation();break;default:h.key.length===1&&(l.search(h.key),a.value=setTimeout(()=>l.clearSearch(),350));break}}let f=ps(),p=ce(()=>f!==null?(f.value&Pt.Open)===Pt.Open:l.listboxState.value===0);return()=>{var h,v;let y={open:l.listboxState.value===0},{..._}=e,w={"aria-activedescendant":l.activeOptionIndex.value===null||(h=l.options.value[l.activeOptionIndex.value])==null?void 0:h.id,"aria-multiselectable":l.mode.value===1?!0:void 0,"aria-labelledby":(v=ue(l.buttonRef))==null?void 0:v.id,"aria-orientation":l.orientation.value,id:s,onKeydown:c,role:"listbox",tabIndex:0,ref:l.optionsRef};return St({ourProps:w,theirProps:_,slot:y,attrs:t,slots:n,features:rr.RenderStrategy|rr.Static,visible:p.value,name:"ListboxOptions"})}}}),Kv=ve({name:"ListboxOption",props:{as:{type:[Object,String],default:"li"},value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1},id:{type:String,default:null}},setup(e,{slots:t,attrs:n,expose:r}){var o;let s=(o=e.id)!=null?o:`headlessui-listbox-option-${zt()}`,l=Ua("ListboxOption"),a=_e(null);r({el:a,$el:a});let c=ce(()=>l.activeOptionIndex.value!==null?l.options.value[l.activeOptionIndex.value].id===s:!1),f=ce(()=>Tt(l.mode.value,{[0]:()=>l.compare(Ue(l.value.value),Ue(e.value)),[1]:()=>Ue(l.value.value).some(E=>l.compare(Ue(E),Ue(e.value)))})),p=ce(()=>Tt(l.mode.value,{[1]:()=>{var E;let T=Ue(l.value.value);return((E=l.options.value.find($=>T.some(P=>l.compare(Ue(P),Ue($.dataRef.value)))))==null?void 0:E.id)===s},[0]:()=>f.value})),h=sj(a),v=ce(()=>({disabled:e.disabled,value:e.value,get textValue(){return h()},domRef:a}));gt(()=>l.registerOption(s,v)),Zt(()=>l.unregisterOption(s)),gt(()=>{Ft([l.listboxState,f],()=>{l.listboxState.value===0&&f.value&&Tt(l.mode.value,{[1]:()=>{p.value&&l.goToOption(xt.Specific,s)},[0]:()=>{l.goToOption(xt.Specific,s)}})},{immediate:!0})}),jt(()=>{l.listboxState.value===0&&c.value&&l.activationTrigger.value!==0&&rn(()=>{var E,T;return(T=(E=ue(a))==null?void 0:E.scrollIntoView)==null?void 0:T.call(E,{block:"nearest"})})});function y(E){if(e.disabled)return E.preventDefault();l.select(e.value),l.mode.value===0&&(l.closeListbox(),rn(()=>{var T;return(T=ue(l.buttonRef))==null?void 0:T.focus({preventScroll:!0})}))}function _(){if(e.disabled)return l.goToOption(xt.Nothing);l.goToOption(xt.Specific,s)}let w=V2();function I(E){w.update(E)}function O(E){w.wasMoved(E)&&(e.disabled||c.value||l.goToOption(xt.Specific,s,0))}function S(E){w.wasMoved(E)&&(e.disabled||c.value&&l.goToOption(xt.Nothing))}return()=>{let{disabled:E}=e,T={active:c.value,selected:f.value,disabled:E},{value:$,disabled:P,...k}=e,A={id:s,ref:a,role:"option",tabIndex:E===!0?void 0:-1,"aria-disabled":E===!0?!0:void 0,"aria-selected":f.value,disabled:void 0,onClick:y,onFocus:_,onPointerenter:I,onMouseenter:I,onPointermove:O,onMousemove:O,onPointerleave:S,onMouseleave:S};return St({ourProps:A,theirProps:k,slot:T,attrs:n,slots:t,name:"ListboxOption"})}}});var fj=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(fj||{});let m$=Symbol("PopoverContext");function Wd(e){let t=kt(m$,null);if(t===null){let n=new Error(`<${e} /> is missing a parent <${b$.name} /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Wd),n}return t}let v$=Symbol("PopoverGroupContext");function g$(){return kt(v$,null)}let y$=Symbol("PopoverPanelContext");function pj(){return kt(y$,null)}let b$=ve({name:"Popover",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"}},setup(e,{slots:t,attrs:n,expose:r}){var o;let s=_e(null);r({el:s,$el:s});let l=_e(1),a=_e(null),c=_e(null),f=_e(null),p=_e(null),h=ce(()=>jr(s)),v=ce(()=>{var $,P;if(!ue(a)||!ue(p))return!1;for(let K of document.querySelectorAll("body > *"))if(Number(K==null?void 0:K.contains(ue(a)))^Number(K==null?void 0:K.contains(ue(p))))return!0;let k=Bd(),A=k.indexOf(ue(a)),H=(A+k.length-1)%k.length,D=(A+1)%k.length,F=k[H],z=k[D];return!(($=ue(p))!=null&&$.contains(F))&&!((P=ue(p))!=null&&P.contains(z))}),y={popoverState:l,buttonId:_e(null),panelId:_e(null),panel:p,button:a,isPortalled:v,beforePanelSentinel:c,afterPanelSentinel:f,togglePopover(){l.value=Tt(l.value,{[0]:1,[1]:0})},closePopover(){l.value!==1&&(l.value=1)},close($){y.closePopover();let P=(()=>$?$ instanceof HTMLElement?$:$.value instanceof HTMLElement?ue($):ue(y.button):ue(y.button))();P==null||P.focus()}};Yt(m$,y),Vd(ce(()=>Tt(l.value,{[0]:Pt.Open,[1]:Pt.Closed})));let _={buttonId:y.buttonId,panelId:y.panelId,close(){y.closePopover()}},w=g$(),I=w==null?void 0:w.registerPopover,[O,S]=f$(),E=s$({mainTreeNodeRef:w==null?void 0:w.mainTreeNodeRef,portals:O,defaultContainers:[a,p]});function T(){var $,P,k,A;return(A=w==null?void 0:w.isFocusWithinPopoverGroup())!=null?A:(($=h.value)==null?void 0:$.activeElement)&&(((P=ue(a))==null?void 0:P.contains(h.value.activeElement))||((k=ue(p))==null?void 0:k.contains(h.value.activeElement)))}return jt(()=>I==null?void 0:I(_)),jv((o=h.value)==null?void 0:o.defaultView,"focus",$=>{var P,k;$.target!==window&&$.target instanceof HTMLElement&&l.value===0&&(T()||a&&p&&(E.contains($.target)||(P=ue(y.beforePanelSentinel))!=null&&P.contains($.target)||(k=ue(y.afterPanelSentinel))!=null&&k.contains($.target)||y.closePopover()))},!0),jd(E.resolveContainers,($,P)=>{var k;y.closePopover(),Dv(P,Ud.Loose)||($.preventDefault(),(k=ue(a))==null||k.focus())},ce(()=>l.value===0)),()=>{let $={open:l.value===0,close:y.close};return dt(Fe,[dt(S,{},()=>St({theirProps:{...e,...n},ourProps:{ref:s},slot:$,slots:t,attrs:n,name:"Popover"})),dt(E.MainTreeNode)])}}}),hj=ve({name:"PopoverButton",props:{as:{type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1},id:{type:String,default:null}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:r}){var o;let s=(o=e.id)!=null?o:`headlessui-popover-button-${zt()}`,l=Wd("PopoverButton"),a=ce(()=>jr(l.button));r({el:l.button,$el:l.button}),gt(()=>{l.buttonId.value=s}),Zt(()=>{l.buttonId.value=null});let c=g$(),f=c==null?void 0:c.closeOthers,p=pj(),h=ce(()=>p===null?!1:p.value===l.panelId.value),v=_e(null),y=`headlessui-focus-sentinel-${zt()}`;h.value||jt(()=>{l.button.value=ue(v)});let _=Hd(ce(()=>({as:e.as,type:t.type})),v);function w($){var P,k,A,H,D;if(h.value){if(l.popoverState.value===1)return;switch($.key){case lt.Space:case lt.Enter:$.preventDefault(),(k=(P=$.target).click)==null||k.call(P),l.closePopover(),(A=ue(l.button))==null||A.focus();break}}else switch($.key){case lt.Space:case lt.Enter:$.preventDefault(),$.stopPropagation(),l.popoverState.value===1&&(f==null||f(l.buttonId.value)),l.togglePopover();break;case lt.Escape:if(l.popoverState.value!==0)return f==null?void 0:f(l.buttonId.value);if(!ue(l.button)||(H=a.value)!=null&&H.activeElement&&!((D=ue(l.button))!=null&&D.contains(a.value.activeElement)))return;$.preventDefault(),$.stopPropagation(),l.closePopover();break}}function I($){h.value||$.key===lt.Space&&$.preventDefault()}function O($){var P,k;e.disabled||(h.value?(l.closePopover(),(P=ue(l.button))==null||P.focus()):($.preventDefault(),$.stopPropagation(),l.popoverState.value===1&&(f==null||f(l.buttonId.value)),l.togglePopover(),(k=ue(l.button))==null||k.focus()))}function S($){$.preventDefault(),$.stopPropagation()}let E=Hv();function T(){let $=ue(l.panel);if(!$)return;function P(){Tt(E.value,{[pr.Forwards]:()=>Gr($,Pn.First),[pr.Backwards]:()=>Gr($,Pn.Last)})===ga.Error&&Gr(Bd().filter(k=>k.dataset.headlessuiFocusGuard!=="true"),Tt(E.value,{[pr.Forwards]:Pn.Next,[pr.Backwards]:Pn.Previous}),{relativeTo:ue(l.button)})}P()}return()=>{let $=l.popoverState.value===0,P={open:$},{...k}=e,A=h.value?{ref:v,type:_.value,onKeydown:w,onClick:O}:{ref:v,id:s,type:_.value,"aria-expanded":l.popoverState.value===0,"aria-controls":ue(l.panel)?l.panelId.value:void 0,disabled:e.disabled?!0:void 0,onKeydown:w,onKeyup:I,onClick:O,onMousedown:S};return dt(Fe,[St({ourProps:A,theirProps:{...t,...k},slot:P,attrs:t,slots:n,name:"PopoverButton"}),$&&!h.value&&l.isPortalled.value&&dt(_o,{id:y,features:to.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:T})])}}});ve({name:"PopoverOverlay",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0}},setup(e,{attrs:t,slots:n}){let r=Wd("PopoverOverlay"),o=`headlessui-popover-overlay-${zt()}`,s=ps(),l=ce(()=>s!==null?(s.value&Pt.Open)===Pt.Open:r.popoverState.value===0);function a(){r.closePopover()}return()=>{let c={open:r.popoverState.value===0};return St({ourProps:{id:o,"aria-hidden":!0,onClick:a},theirProps:e,slot:c,attrs:t,slots:n,features:rr.RenderStrategy|rr.Static,visible:l.value,name:"PopoverOverlay"})}}});let mj=ve({name:"PopoverPanel",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},focus:{type:Boolean,default:!1},id:{type:String,default:null}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:r}){var o;let s=(o=e.id)!=null?o:`headlessui-popover-panel-${zt()}`,{focus:l}=e,a=Wd("PopoverPanel"),c=ce(()=>jr(a.panel)),f=`headlessui-focus-sentinel-before-${zt()}`,p=`headlessui-focus-sentinel-after-${zt()}`;r({el:a.panel,$el:a.panel}),gt(()=>{a.panelId.value=s}),Zt(()=>{a.panelId.value=null}),Yt(y$,a.panelId),jt(()=>{var S,E;if(!l||a.popoverState.value!==0||!a.panel)return;let T=(S=c.value)==null?void 0:S.activeElement;(E=ue(a.panel))!=null&&E.contains(T)||Gr(ue(a.panel),Pn.First)});let h=ps(),v=ce(()=>h!==null?(h.value&Pt.Open)===Pt.Open:a.popoverState.value===0);function y(S){var E,T;switch(S.key){case lt.Escape:if(a.popoverState.value!==0||!ue(a.panel)||c.value&&!((E=ue(a.panel))!=null&&E.contains(c.value.activeElement)))return;S.preventDefault(),S.stopPropagation(),a.closePopover(),(T=ue(a.button))==null||T.focus();break}}function _(S){var E,T,$,P,k;let A=S.relatedTarget;A&&ue(a.panel)&&((E=ue(a.panel))!=null&&E.contains(A)||(a.closePopover(),(($=(T=ue(a.beforePanelSentinel))==null?void 0:T.contains)!=null&&$.call(T,A)||(k=(P=ue(a.afterPanelSentinel))==null?void 0:P.contains)!=null&&k.call(P,A))&&A.focus({preventScroll:!0})))}let w=Hv();function I(){let S=ue(a.panel);if(!S)return;function E(){Tt(w.value,{[pr.Forwards]:()=>{var T;Gr(S,Pn.First)===ga.Error&&((T=ue(a.afterPanelSentinel))==null||T.focus())},[pr.Backwards]:()=>{var T;(T=ue(a.button))==null||T.focus({preventScroll:!0})}})}E()}function O(){let S=ue(a.panel);if(!S)return;function E(){Tt(w.value,{[pr.Forwards]:()=>{let T=ue(a.button),$=ue(a.panel);if(!T)return;let P=Bd(),k=P.indexOf(T),A=P.slice(0,k+1),H=[...P.slice(k+1),...A];for(let D of H.slice())if(D.dataset.headlessuiFocusGuard==="true"||$!=null&&$.contains(D)){let F=H.indexOf(D);F!==-1&&H.splice(F,1)}Gr(H,Pn.First,{sorted:!1})},[pr.Backwards]:()=>{var T;Gr(S,Pn.Previous)===ga.Error&&((T=ue(a.button))==null||T.focus())}})}E()}return()=>{let S={open:a.popoverState.value===0,close:a.close},{focus:E,...T}=e,$={ref:a.panel,id:s,onKeydown:y,onFocusout:l&&a.popoverState.value===0?_:void 0,tabIndex:-1};return St({ourProps:$,theirProps:{...t,...T},attrs:t,slot:S,slots:{...n,default:(...P)=>{var k;return[dt(Fe,[v.value&&a.isPortalled.value&&dt(_o,{id:f,ref:a.beforePanelSentinel,features:to.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:I}),(k=n.default)==null?void 0:k.call(n,...P),v.value&&a.isPortalled.value&&dt(_o,{id:p,ref:a.afterPanelSentinel,features:to.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:O})])]}},features:rr.RenderStrategy|rr.Static,visible:v.value,name:"PopoverPanel"})}}});ve({name:"PopoverGroup",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"}},setup(e,{attrs:t,slots:n,expose:r}){let o=_e(null),s=nd([]),l=ce(()=>jr(o)),a=KU();r({el:o,$el:o});function c(v){let y=s.value.indexOf(v);y!==-1&&s.value.splice(y,1)}function f(v){return s.value.push(v),()=>{c(v)}}function p(){var v;let y=l.value;if(!y)return!1;let _=y.activeElement;return(v=ue(o))!=null&&v.contains(_)?!0:s.value.some(w=>{var I,O;return((I=y.getElementById(w.buttonId.value))==null?void 0:I.contains(_))||((O=y.getElementById(w.panelId.value))==null?void 0:O.contains(_))})}function h(v){for(let y of s.value)y.buttonId.value!==v&&y.close()}return Yt(v$,{registerPopover:f,unregisterPopover:c,isFocusWithinPopoverGroup:p,closeOthers:h,mainTreeNodeRef:a.mainTreeNodeRef}),()=>dt(Fe,[St({ourProps:{ref:o},theirProps:{...e,...t},slot:{},attrs:t,slots:n,name:"PopoverGroup"}),dt(a.MainTreeNode)])}});let _$=Symbol("LabelContext");function w$(){let e=kt(_$,null);if(e===null){let t=new Error("You used a <Label /> component, but it is not inside a parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,w$),t}return e}function vj({slot:e={},name:t="Label",props:n={}}={}){let r=_e([]);function o(s){return r.value.push(s),()=>{let l=r.value.indexOf(s);l!==-1&&r.value.splice(l,1)}}return Yt(_$,{register:o,slot:e,name:t,props:n}),ce(()=>r.value.length>0?r.value.join(" "):void 0)}let gj=ve({name:"Label",props:{as:{type:[Object,String],default:"label"},passive:{type:[Boolean],default:!1},id:{type:String,default:null}},setup(e,{slots:t,attrs:n}){var r;let o=(r=e.id)!=null?r:`headlessui-label-${zt()}`,s=w$();return gt(()=>Zt(s.register(o))),()=>{let{name:l="Label",slot:a={},props:c={}}=s,{passive:f,...p}=e,h={...Object.entries(c).reduce((v,[y,_])=>Object.assign(v,{[y]:jn(_)}),{}),id:o};return f&&(delete h.onClick,delete h.htmlFor,delete p.onClick),St({ourProps:h,theirProps:p,slot:a,attrs:n,slots:t,name:l})}}}),S$=Symbol("GroupContext"),yj=ve({name:"SwitchGroup",props:{as:{type:[Object,String],default:"template"}},setup(e,{slots:t,attrs:n}){let r=_e(null),o=vj({name:"SwitchLabel",props:{htmlFor:ce(()=>{var l;return(l=r.value)==null?void 0:l.id}),onClick(l){r.value&&(l.currentTarget.tagName==="LABEL"&&l.preventDefault(),r.value.click(),r.value.focus({preventScroll:!0}))}}}),s=c$({name:"SwitchDescription"});return Yt(S$,{switchRef:r,labelledby:o,describedby:s}),()=>St({theirProps:e,ourProps:{},slot:{},slots:t,attrs:n,name:"SwitchGroup"})}}),bj=ve({name:"Switch",emits:{"update:modelValue":e=>!0},props:{as:{type:[Object,String],default:"button"},modelValue:{type:Boolean,default:void 0},defaultChecked:{type:Boolean,optional:!0},form:{type:String,optional:!0},name:{type:String,optional:!0},value:{type:String,optional:!0},id:{type:String,default:null},disabled:{type:Boolean,default:!1},tabIndex:{type:Number,default:0}},inheritAttrs:!1,setup(e,{emit:t,attrs:n,slots:r,expose:o}){var s;let l=(s=e.id)!=null?s:`headlessui-switch-${zt()}`,a=kt(S$,null),[c,f]=Nv(ce(()=>e.modelValue),S=>t("update:modelValue",S),ce(()=>e.defaultChecked));function p(){f(!c.value)}let h=_e(null),v=a===null?h:a.switchRef,y=Hd(ce(()=>({as:e.as,type:n.type})),v);o({el:v,$el:v});function _(S){S.preventDefault(),p()}function w(S){S.key===lt.Space?(S.preventDefault(),p()):S.key===lt.Enter&&AU(S.currentTarget)}function I(S){S.preventDefault()}let O=ce(()=>{var S,E;return(E=(S=ue(v))==null?void 0:S.closest)==null?void 0:E.call(S,"form")});return gt(()=>{Ft([O],()=>{if(!O.value||e.defaultChecked===void 0)return;function S(){f(e.defaultChecked)}return O.value.addEventListener("reset",S),()=>{var E;(E=O.value)==null||E.removeEventListener("reset",S)}},{immediate:!0})}),()=>{let{name:S,value:E,form:T,tabIndex:$,...P}=e,k={checked:c.value},A={id:l,ref:v,role:"switch",type:y.value,tabIndex:$===-1?0:$,"aria-checked":c.value,"aria-labelledby":a==null?void 0:a.labelledby.value,"aria-describedby":a==null?void 0:a.describedby.value,onClick:_,onKeyup:w,onKeypress:I};return dt(Fe,[S!=null&&c.value!=null?dt(_o,Bv({features:to.Hidden,as:"input",type:"checkbox",hidden:!0,readOnly:!0,checked:c.value,form:T,disabled:P.disabled,name:S,value:E})):null,St({ourProps:A,theirProps:{...n,...fs(P,["modelValue","defaultChecked"])},slot:k,attrs:n,slots:r,name:"Switch"})])}}}),_j=gj;function wj(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function Fp(e,...t){e&&t.length>0&&e.classList.add(...t)}function Yu(e,...t){e&&t.length>0&&e.classList.remove(...t)}var Bh=(e=>(e.Finished="finished",e.Cancelled="cancelled",e))(Bh||{});function Sj(e,t){let n=wi();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:o}=getComputedStyle(e),[s,l]=[r,o].map(a=>{let[c=0]=a.split(",").filter(Boolean).map(f=>f.includes("ms")?parseFloat(f):parseFloat(f)*1e3).sort((f,p)=>p-f);return c});return s!==0?n.setTimeout(()=>t("finished"),s+l):t("finished"),n.add(()=>t("cancelled")),n.dispose}function U1(e,t,n,r,o,s){let l=wi(),a=s!==void 0?wj(s):()=>{};return Yu(e,...o),Fp(e,...t,...n),l.nextFrame(()=>{Yu(e,...n),Fp(e,...r),l.add(Sj(e,c=>(Yu(e,...r,...t),Fp(e,...o),a(c))))}),l.add(()=>Yu(e,...t,...n,...r,...o)),l.add(()=>a("cancelled")),l.dispose}function Bi(e=""){return e.split(/\s+/).filter(t=>t.length>1)}let Gv=Symbol("TransitionContext");var Ej=(e=>(e.Visible="visible",e.Hidden="hidden",e))(Ej||{});function xj(){return kt(Gv,null)!==null}function $j(){let e=kt(Gv,null);if(e===null)throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");return e}function Cj(){let e=kt(Xv,null);if(e===null)throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");return e}let Xv=Symbol("NestingContext");function zd(e){return"children"in e?zd(e.children):e.value.filter(({state:t})=>t==="visible").length>0}function E$(e){let t=_e([]),n=_e(!1);gt(()=>n.value=!0),Zt(()=>n.value=!1);function r(s,l=fi.Hidden){let a=t.value.findIndex(({id:c})=>c===s);a!==-1&&(Tt(l,{[fi.Unmount](){t.value.splice(a,1)},[fi.Hidden](){t.value[a].state="hidden"}}),!zd(t)&&n.value&&(e==null||e()))}function o(s){let l=t.value.find(({id:a})=>a===s);return l?l.state!=="visible"&&(l.state="visible"):t.value.push({id:s,state:"visible"}),()=>r(s,fi.Unmount)}return{children:t,register:o,unregister:r}}let x$=rr.RenderStrategy,$$=ve({props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(e,{emit:t,attrs:n,slots:r,expose:o}){let s=_e(0);function l(){s.value|=Pt.Opening,t("beforeEnter")}function a(){s.value&=~Pt.Opening,t("afterEnter")}function c(){s.value|=Pt.Closing,t("beforeLeave")}function f(){s.value&=~Pt.Closing,t("afterLeave")}if(!xj()&&CU())return()=>dt(C$,{...e,onBeforeEnter:l,onAfterEnter:a,onBeforeLeave:c,onAfterLeave:f},r);let p=_e(null),h=ce(()=>e.unmount?fi.Unmount:fi.Hidden);o({el:p,$el:p});let{show:v,appear:y}=$j(),{register:_,unregister:w}=Cj(),I=_e(v.value?"visible":"hidden"),O={value:!0},S=zt(),E={value:!1},T=E$(()=>{!E.value&&I.value!=="hidden"&&(I.value="hidden",w(S),f())});gt(()=>{let K=_(S);Zt(K)}),jt(()=>{if(h.value===fi.Hidden&&S){if(v.value&&I.value!=="visible"){I.value="visible";return}Tt(I.value,{hidden:()=>w(S),visible:()=>_(S)})}});let $=Bi(e.enter),P=Bi(e.enterFrom),k=Bi(e.enterTo),A=Bi(e.entered),H=Bi(e.leave),D=Bi(e.leaveFrom),F=Bi(e.leaveTo);gt(()=>{jt(()=>{if(I.value==="visible"){let K=ue(p);if(K instanceof Comment&&K.data==="")throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}})});function z(K){let te=O.value&&!y.value,we=ue(p);!we||!(we instanceof HTMLElement)||te||(E.value=!0,v.value&&l(),v.value||c(),K(v.value?U1(we,$,P,k,A,be=>{E.value=!1,be===Bh.Finished&&a()}):U1(we,H,D,F,A,be=>{E.value=!1,be===Bh.Finished&&(zd(T)||(I.value="hidden",w(S),f()))})))}return gt(()=>{Ft([v],(K,te,we)=>{z(we),O.value=!1},{immediate:!0})}),Yt(Xv,T),Vd(ce(()=>Tt(I.value,{visible:Pt.Open,hidden:Pt.Closed})|s.value)),()=>{let{appear:K,show:te,enter:we,enterFrom:be,enterTo:Oe,entered:Ae,leave:Ye,leaveFrom:ft,leaveTo:Le,...Ke}=e,Q={ref:p},ae={...Ke,...y.value&&v.value&&Fa.isServer?{class:wt([n.class,Ke.class,...$,...P])}:{}};return St({theirProps:ae,ourProps:Q,slot:{},slots:r,attrs:n,features:x$,visible:I.value==="visible",name:"TransitionChild"})}}}),Tj=$$,C$=ve({inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(e,{emit:t,attrs:n,slots:r}){let o=ps(),s=ce(()=>e.show===null&&o!==null?(o.value&Pt.Open)===Pt.Open:e.show);jt(()=>{if(![!0,!1].includes(s.value))throw new Error('A <Transition /> is used but it is missing a `:show="true | false"` prop.')});let l=_e(s.value?"visible":"hidden"),a=E$(()=>{l.value="hidden"}),c=_e(!0),f={show:s,appear:ce(()=>e.appear||!c.value)};return gt(()=>{jt(()=>{c.value=!1,s.value?l.value="visible":zd(a)||(l.value="hidden")})}),Yt(Xv,a),Yt(Gv,f),()=>{let p=fs(e,["show","appear","unmount","onBeforeEnter","onBeforeLeave","onAfterEnter","onAfterLeave"]),h={unmount:e.unmount};return St({ourProps:{...h,as:"template"},theirProps:{},slot:{},slots:{...r,default:()=>[dt(Tj,{onBeforeEnter:()=>t("beforeEnter"),onAfterEnter:()=>t("afterEnter"),onBeforeLeave:()=>t("beforeLeave"),onAfterLeave:()=>t("afterLeave"),...n,...h,...p},r.default)]},attrs:{},features:x$,visible:l.value==="visible",name:"Transition"})}}});const Oj=ve({components:{Dialog:nj,DialogOverlay:rj,TransitionChild:$$,TransitionRoot:C$,XIcon:Da},props:{open:{type:Boolean,default:!0},size:{type:String,default:"small"}},methods:{close(){this.$emit("close")}}}),Aj={class:"fixed inset-0 overflow-y-auto font-sans",style:{"z-index":"10000"}},Ij={class:"flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0"},Pj=g("span",{class:"hidden sm:inline-block sm:align-middle sm:h-screen","aria-hidden":"true"},"\u200B",-1),kj={class:"hidden sm:block absolute top-0 right-0 pt-4 pr-4"},Rj=g("span",{class:"sr-only"},"Close",-1);function Lj(e,t,n,r,o,s){const l=X("DialogOverlay"),a=X("TransitionChild"),c=X("XIcon"),f=X("Dialog"),p=X("TransitionRoot");return N(),bt(p,{as:"template",show:e.open},{default:ye(()=>[q(f,{as:"div",onClose:t[1]||(t[1]=h=>e.close()),"data-client":"podlove"},{default:ye(()=>[g("div",Aj,[g("div",Ij,[q(a,{as:"template",enter:"ease-out duration-300","enter-from":"opacity-0","enter-to":"opacity-100",leave:"ease-in duration-200","leave-from":"opacity-100","leave-to":"opacity-0"},{default:ye(()=>[q(l,{class:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"})]),_:1}),Pj,q(a,{as:"template",enter:"ease-out duration-300","enter-from":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95","enter-to":"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200","leave-from":"opacity-100 translate-y-0 sm:scale-100","leave-to":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"},{default:ye(()=>[g("div",{class:wt(["relative inline-block align-bottom bg-white rounded-lg px-4 pt-5 pb-4 text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:w-full sm:p-6",{"sm:max-w-sm":e.size==="small","sm:max-w-md":e.size==="medium"}])},[g("div",kj,[g("button",{type:"button",class:"bg-white rounded-md text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500",onClick:t[0]||(t[0]=h=>e.close())},[Rj,q(c,{class:"h-6 w-6","aria-hidden":"true"})])]),gr(e.$slots,"default")],2)]),_:3})])])]),_:3})]),_:3},8,["show"])}var ja=Be(Oj,[["render",Lj]]);const Nj=ve({props:{variant:{type:String,default:"default"},size:{type:String,default:"medium"},disabled:{type:Boolean,default:!1}},computed:{variantClass(){switch(this.variant){case"default":return"focus:outline-none text-gray-700 bg-white border border-gray-300 hover:bg-gray-50 focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 disabled:bg-gray-100";case"primary":return"focus:ring-offset-2 text-white focus:ring-indigo-500 bg-indigo-600 hover:bg-indigo-700 disabled:bg-indigo-300";case"primary-disabled":return"focus:ring-offset-2 text-white focus:ring-indigo-500 bg-indigo-600 opacity-50 cursor-not-allowed";case"secondary":return"focus:ring-offset-2 text-indigo-700 focus:ring-indigo-500 bg-indigo-100 hover:bg-indigo-200 disabled:bg-indigo-50";case"secondary-disabled":return"focus:ring-offset-2 text-indigo-700 focus:ring-indigo-500 bg-indigo-100 disabled:bg-indigo-50 opacity-50 cursor-not-allowed";case"danger":return"bg-red-600 text-white hover:bg-red-700 focus:ring-2 focus:ring-offset-2 focus:ring-red-500 disabled:bg-red-300"}},sizeClass(){switch(this.size){case"small":return"px-2.5 py-1.5 text-xs font-medium rounded ";case"medium":return"px-3 py-2 text-sm leading-4 font-medium rounded-md";case"large":return"px-6 py-3 text-base font-medium rounded-md"}}}}),Mj=["disabled"];function Dj(e,t,n,r,o,s){return N(),V("button",{type:"button",class:wt(["inline-flex items-center focus:outline-none focus:ring-2 border border-transparent shadow-sm whitespace-nowrap disabled:opacity-75",[e.variantClass,e.sizeClass]]),disabled:e.disabled},[gr(e.$slots,"default")],10,Mj)}var Vn=Be(Nj,[["render",Dj]]);const Fj=ve({components:{PodloveButton:Vn,Modal:ja,PencilIcon:D2,XIcon:Da},setup(){return{state:yt({poster:G.episode.poster,episodePoster:G.episode.episodePoster,asset:G.settings.imageAsset}),dispatch:it().dispatch}},data(){return{modalOpen:!1,inputValue:null}},computed:{posterStyle(){const e=this.state.episodePoster||this.state.poster;return e===null?{}:{"background-image":`url(${e})`}}},methods:{openModal(){this.modalOpen=!0},closeModal(){this.modalOpen=!1},selectImage(){this.dispatch(cD())},updatePoster(e){const t=Y.exports.get(e,["target","value"],null);this.dispatch($t({prop:"episode_poster",value:t}))}}}),Bj={class:"border-gray-200 border-b pb-2 px-4 -mx-6 mb-4"},Uj={class:"text-lg leading-6 font-medium text-gray-900"},jj={class:"relative"},Hj=["value"],Vj=["title"],Wj={class:"mt-2 text-sm text-gray-500"},zj={class:"block text-sm font-medium text-gray-700"},qj={key:0,class:"absolute z-10 left-0 top-0 w-full h-full flex justify-center items-center bg-white bg-opacity-40 hover:opacity-0 text-gray-500 opacity-100"},Kj={key:1,class:"absolute z-10 left-0 top-0 w-full h-full flex flex-col justify-center items-center bg-white bg-opacity-50 text-gray-500 opacity-0 hover:opacity-100"},Gj={class:"w-full text-center"},Xj={class:"w-full text-center"},Jj={class:"w-full text-center"};function Yj(e,t,n,r,o,s){const l=X("x-icon"),a=X("modal"),c=X("pencil-icon"),f=X("podlove-button");return N(),V("div",null,[q(a,{size:"medium",open:e.modalOpen,onClose:t[2]||(t[2]=p=>e.closeModal())},{default:ye(()=>[g("div",Bj,[g("h3",Uj,U(e.__("Episode Poster","podlove-podcasting-plugin-for-wordpress")),1)]),g("div",jj,[g("input",{name:"episode-poster",type:"text",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md pr-8",value:e.state.episodePoster,onChange:t[0]||(t[0]=p=>e.updatePoster(p))},null,40,Hj),g("button",{class:"absolute right-2 top-1/2 -mt-3 text-gray-400 hover:text-gray-700",title:e.__("Clear Input","podlove-podcasting-plugin-for-wordpress"),onClick:t[1]||(t[1]=p=>e.updatePoster(null))},[q(l,{class:"w-6 h-6"})],8,Vj)]),g("p",Wj,U(e.__("Enter URL or select image from media library. Apple/iTunes recommends 3000 x 3000 pixel JPG or PNG","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["open"]),g("label",zj,U(e.__("Poster","podlove-podcasting-plugin-for-wordpress")),1),g("div",{class:"border shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block relative w-44 h-44 sm:text-sm border-gray-300 rounded-md mt-1 overflow-hidden bg-cover bg-no-repeat bg-center",style:as(e.posterStyle)},[e.state.asset==="manual"?(N(),V("div",qj,[q(c,{class:"h-6 w-6","aria-hidden":"true"})])):qe("",!0),e.state.asset==="manual"?(N(),V("div",Kj,[q(f,{onClick:t[3]||(t[3]=p=>e.openModal()),class:"w-32 mb-2"},{default:ye(()=>[g("span",Gj,U(e.__("URL","podlove-podcasting-plugin-for-wordpress")),1)]),_:1}),q(f,{class:"w-32 text-center mb-2",onClick:t[4]||(t[4]=p=>e.selectImage())},{default:ye(()=>[g("span",Xj,U(e.__("Media","podlove-podcasting-plugin-for-wordpress")),1)]),_:1}),q(f,{variant:"danger",class:"w-32 text-center",disabled:e.state.episodePoster===null,onClick:t[5]||(t[5]=p=>e.updatePoster(null))},{default:ye(()=>[g("span",Jj,U(e.__("Reset","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["disabled"])])):qe("",!0)],4)])}var Zj=Be(Fj,[["render",Yj]]);const Qj=ve({components:{Module:Nn},setup(){return{state:yt({number:G.episode.number}),dispatch:it().dispatch}},methods:{updateNumber(e){this.dispatch($t({prop:"number",value:e.target.value}))}}}),eH={for:"episode-number",class:"block text-sm font-medium text-gray-700"},tH={class:"mt-1 mb-1"},nH=["value"],rH={class:"mt-2 text-sm text-gray-500"};function oH(e,t,n,r,o,s){return N(),V("div",null,[g("label",eH,U(e.__("Number","podlove-podcasting-plugin-for-wordpress")),1),g("div",tH,[g("input",{name:"episode-number",type:"number",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",value:e.state.number,onInput:t[0]||(t[0]=l=>e.updateNumber(l))},null,40,nH)]),g("p",rH,U(e.__("An episode number (1, 2, 3 etc.)","podlove-podcasting-plugin-for-wordpress")),1)])}var iH=Be(Qj,[["render",oH]]);const sH=ve({setup(){return{state:yt({explicit:G.episode.explicit}),dispatch:it().dispatch}},methods:{updateExplicit(e){this.dispatch($t({prop:"explicit",value:e.target.checked}))}}}),lH={class:"relative flex items-start"},aH={class:"flex items-center h-5"},uH=["checked"],cH={class:"ml-3 text-sm"},dH={for:"explicit-content",class:"font-medium text-gray-700"},fH={class:"text-gray-500"};function pH(e,t,n,r,o,s){return N(),V("div",lH,[g("div",aH,[g("input",{id:"explicit-content",type:"checkbox",class:"focus:ring-indigo-500 h-4 w-4 text-indigo-600 border-gray-300 rounded",checked:e.state.explicit,onInput:t[0]||(t[0]=l=>e.updateExplicit(l))},null,40,uH)]),g("div",cH,[g("label",dH,U(e.state.explicit?e.__("Explicit Content!","podlove-podcasting-plugin-for-wordpress"):e.__("Explicit Content?","podlove-podcasting-plugin-for-wordpress")),1),g("p",fH,U(e.__("For example, profanity or content that may not be suitable for children","podlove-podcasting-plugin-for-wordpress")),1)])])}var hH=Be(sH,[["render",pH]]);const mH=ve({components:{Module:Nn},setup(){return{state:yt({title:G.episode.title,post_title:G.post.title}),dispatch:it().dispatch}},methods:{updateTitle(e){this.dispatch($t({prop:"title",value:e.target.value}))}}}),vH={for:"episode-title",class:"block text-sm font-medium text-gray-700"},gH={class:"mt-1"},yH=["value","placeholder"],bH={class:"mt-2 text-sm text-gray-500"};function _H(e,t,n,r,o,s){return N(),V("div",null,[g("label",vH,U(e.__("Title","podlove-podcasting-plugin-for-wordpress")),1),g("div",gH,[g("input",{name:"episode-title",type:"text",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",value:e.state.title,placeholder:e.state.post_title,onInput:t[0]||(t[0]=l=>e.updateTitle(l))},null,40,yH)]),g("p",bH,U(e.__("Clear, concise name for your episode. It is recommended to not include the podcast title, episode number, season number or date in this tag.","podlove-podcasting-plugin-for-wordpress")),1)])}var wH=Be(mH,[["render",_H]]);const SH=ve({setup(){const e=yt({subtitle:G.episode.subtitle}),t=ce(()=>{var n;return 255-(((n=e==null?void 0:e.subtitle)==null?void 0:n.length)||"")});return{state:e,charactersLeft:t,dispatch:it().dispatch}},methods:{updateSubtitle(e){this.dispatch($t({prop:"subtitle",value:e.target.value}))}}}),EH={for:"subtitle",class:"block text-sm font-medium text-gray-700"},xH={class:"mt-1"},$H=["value"],CH={class:"mt-2 text-sm text-gray-500 flex justify-between"};function TH(e,t,n,r,o,s){return N(),V("div",null,[g("label",EH,U(e.__("Subtitle","podlove-podcasting-plugin-for-wordpress")),1),g("div",xH,[g("textarea",{id:"subtitle",name:"subtitle",maxlength:"250",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 mt-1 block w-full sm:text-sm border border-gray-300 rounded-md resize-y",value:e.state.subtitle,onInput:t[0]||(t[0]=l=>e.updateSubtitle(l))},null,40,$H)]),g("p",CH,[g("span",null,U(e.__("Single sentence describing the episode.","podlove-podcasting-plugin-for-wordpress")),1),g("span",null,U(e.charactersLeft),1)])])}var OH=Be(SH,[["render",TH]]);const AH=ve({setup(){const e=yt({summary:G.episode.summary}),t=ce(()=>{var n;return 4e3-(((n=e==null?void 0:e.summary)==null?void 0:n.length)||"")});return{state:e,charactersLeft:t,dispatch:it().dispatch}},methods:{updateSummary(e){this.dispatch($t({prop:"summary",value:e.target.value}))}}}),IH={for:"summary",class:"block text-sm font-medium text-gray-700"},PH={class:"mt-1"},kH=["value"],RH={class:"mt-2 text-sm text-gray-500 flex justify-end"};function LH(e,t,n,r,o,s){return N(),V("div",null,[g("label",IH,U(e.__("Summary","podlove-podcasting-plugin-for-wordpress")),1),g("div",PH,[g("textarea",{id:"summary",name:"summary",maxlength:"4000",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 mt-1 block w-full sm:text-sm border border-gray-300 rounded-md resize-y",value:e.state.summary,onInput:t[0]||(t[0]=l=>e.updateSummary(l))},null,40,kH)]),g("p",RH,[g("span",null,U(e.charactersLeft),1)])])}var NH=Be(AH,[["render",LH]]);const MH=ve({components:{Module:Nn},setup(){return{state:yt({type:G.episode.type}),dispatch:it().dispatch}},methods:{updateType(e){this.dispatch($t({prop:"type",value:e.target.value}))}}}),DH={for:"episode-type",class:"block text-sm font-medium text-gray-700"},FH={class:"mt-1"},BH=["value"],UH={value:"full"},jH={value:"trailer"},HH={value:"bonus"},VH={class:"mt-2 text-sm text-gray-500"};function WH(e,t,n,r,o,s){return N(),V("div",null,[g("label",DH,U(e.__("Type","podlove-podcasting-plugin-for-wordpress")),1),g("div",FH,[g("select",{name:"episode-type",class:"block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm rounded-md",value:e.state.type,onInput:t[0]||(t[0]=l=>e.updateType(l))},[g("option",null,U(e.__("Please choose ...","podlove-podcasting-plugin-for-wordpress")),1),g("option",UH,U(e.__("full (complete content of an episode)","podlove-podcasting-plugin-for-wordpress")),1),g("option",jH,U(e.__("trailer (short, promotional piece of content that represents a preview of an episode)","podlove-podcasting-plugin-for-wordpress")),1),g("option",HH,U(e.__("bonus (extra content for an episode, for example behind the scenes information)","podlove-podcasting-plugin-for-wordpress")),1)],40,BH)]),g("p",VH,U(e.__("Episode type. May be used by podcast clients.","podlove-podcasting-plugin-for-wordpress")),1)])}var zH=Be(MH,[["render",WH]]);const qH=ve({components:{Module:Nn,EpisodePoster:Zj,EpisodeNumber:iH,EpisodeContent:hH,EpisodeTitle:wH,EpisodeSubtitle:OH,EpisodeSummary:NH,EpisodeType:zH},setup(){return{state:yt({explicitContentEnabled:G.settings.enableEpisodeExplicit}),dispatch:it().dispatch}},created(){this.dispatch(Od())}}),KH={class:"p-3"},GH={class:"flex justify-items-stretch mb-5"},XH={class:"mb-2 w-full"},JH={class:"flex mb-5"},YH={class:"mb-5"},ZH={class:"mb-5"};function QH(e,t,n,r,o,s){const l=X("episode-poster"),a=X("episode-number"),c=X("episode-content"),f=X("episode-type"),p=X("episode-title"),h=X("episode-subtitle"),v=X("episode-summary"),y=X("module");return N(),bt(y,{name:"description",title:e.__("Episode Description","podlove-podcasting-plugin-for-wordpress")},{default:ye(()=>[g("div",KH,[g("div",GH,[q(l,{class:"mr-5"}),g("div",XH,[g("div",JH,[q(a,{class:"w-full"}),e.state.explicitContentEnabled?(N(),bt(c,{key:0,class:"ml-5 w-full"})):qe("",!0)]),q(f,{class:"w-full"})])]),g("div",YH,[q(p,{class:"w-full"})]),g("div",ZH,[q(h,{class:"w-full"})]),g("div",null,[q(v,{class:"w-full"})])])]),_:1},8,["title"])}var eV=Be(qH,[["render",QH]]);const tV=ve({data(){return{visible:!1}},props:{name:String},methods:{}}),nV=["data-tab"];function rV(e,t,n,r,o,s){return N(),V("div",{class:"hidden","data-tab":e.name},[gr(e.$slots,"default")],8,nV)}var T$=Be(tV,[["render",rV]]);const oV=ve({data(){return{activeTab:"",tabs:[]}},props:{active:{type:String,default:null}},created(){var e,t;this.tabs=((t=(e=this.$slots).default)==null?void 0:t.call(e).map(n=>({name:Y.exports.get(n,["props","name"]),title:Y.exports.get(n,["props","title"])})))||[]},mounted(){this.active?this.toggleTab(this.active):this.toggleTab(Y.exports.get(this.tabs,[0,"name"]))},methods:{toggleTab(e){this.activeTab=e,Array.from(this.$refs.tabs.children).forEach(t=>{t.dataset.tab===e?t.classList.remove("hidden"):t.classList.add("hidden")})}}}),iV={class:"block"},sV={class:"border-b border-gray-200"},lV={class:"-mb-px flex space-x-8 mx-2","aria-label":"Tabs"},aV=["onClick"],uV={ref:"tabs"};function cV(e,t,n,r,o,s){return N(),V("div",null,[g("div",iV,[g("div",sV,[g("nav",lV,[(N(!0),V(Fe,null,Mt(e.tabs,l=>(N(),V("button",{onClick:a=>e.toggleTab(l.name),key:l.name,class:wt([l.name===e.activeTab?"border-indigo-500 text-indigo-600":"border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300","group inline-flex items-center py-4 px-1 border-b-2 font-medium text-sm"])},[g("span",null,U(l.title),1)],10,aV))),128))])])]),g("div",uV,[gr(e.$slots,"default")],512)])}var O$=Be(oV,[["render",cV]]);const dV=ve({components:{PodloveButton:Vn,PlusSmIcon:Lv,BookmarkAltIcon:z9,UploadIcon:V9},setup(){return{state:yt({chapters:G.chapters.list,selected:G.chapters.selected,selectedIndex:G.chapters.selectedIndex,episodeDuration:G.episode.duration}),dispatch:it().dispatch}},computed:{selectedIndex(){return this.state.selectedIndex},episodeDuration(){return this.state.episodeDuration?Nt.fromString(this.state.episodeDuration).totalMs:0},chapters(){return this.state.chapters.reduce((e,t,n,r)=>{const o=Y.exports.get(r,n+1),s=o===void 0;let l;s?l=this.episodeDuration?this.episodeDuration-(t.start||0):-1:l=(o.start||0)-(t.start||0);const a=l<=0?"Unknown":new Nt(l).prettyShort;return[...e,{index:n,title:t.title,start:t.start?new Nt(t.start).pretty:new Nt(0).pretty,image:t.image,duration:a}]},[])},hasChapterImages(){return this.chapters.reduce((e,t)=>e||!!t.image,!1)}},methods:{selectChapter(e){e===this.state.selectedIndex?this.dispatch(di(null)):this.dispatch(di(e))},updateChapter(e,t){const n=t.target.value;if(this.state.selectedIndex===null)return;let r;switch(e){case"start":r=Nt.fromString(n).totalMs;break;default:r=n}this.dispatch(QM({chapter:{[e]:r},index:this.state.selectedIndex}))},removeChapter(){this.dispatch(eD(this.state.selectedIndex))},async addChapter(){this.dispatch(tD()),this.dispatch(di(this.state.chapters.length-1));const e=this.$refs.chaptersContainer;await rn(),e.scrollTo({top:e.scrollHeight-e.clientHeight,behavior:"smooth"})},formatTime(e){return new Nt(e).pretty},selectImage(){this.dispatch(iD())}}}),fV={key:0},pV={class:"md:flex p-2 sm:block"},hV={class:"w-full"},mV={class:"h-96 overflow-x-auto",ref:"chaptersContainer"},vV={class:"min-w-full divide-y divide-gray-200 mb-2"},gV={ref:"chapters"},yV=["onClick"],bV={key:0,class:"px-2 py-2 w-16"},_V=["src"],wV={class:"px-3 py-2 w-32 whitespace-nowrap text-sm font-medium text-gray-900 tabular-nums"},SV={class:"px-3 py-2 whitespace-nowrap text-sm text-gray-600"},EV={class:"px-3 py-2 whitespace-nowrap text-sm text-gray-600 text-right tabular-nums"},xV={key:0,class:"md:w-4/12 sm:w-full md:mx-4 md:my-2 mt-0"},$V={class:"mb-5 mt-2"},CV={for:"chapter-title",class:"block text-sm font-medium text-gray-700"},TV={class:"mt-1"},OV=["value"],AV={class:"mb-5"},IV={for:"chapter-href",class:"block text-sm font-medium text-gray-700"},PV={class:"text-xs"},kV={class:"mt-1"},RV=["value"],LV={class:"mb-5"},NV={for:"chapter-start",class:"block text-sm font-medium text-gray-700"},MV={class:"mt-1"},DV=["value"],FV={class:"mb-5"},BV={for:"chapter-image",class:"block text-sm font-medium text-gray-700"},UV={class:"text-xs"},jV={class:"mt-1 relative"},HV=["value"],VV=["title"],WV={class:"mb-5 ml-1"},zV={class:"mt-5 ml-5 pb-5"},qV={key:1,class:"text-center h-96 flex items-center justify-center flex-col"},KV={class:"mt-2 text-sm font-medium text-gray-900"},GV={class:"mt-1 text-sm text-gray-500"},XV={class:"mt-6"};function JV(e,t,n,r,o,s){const l=X("upload-icon"),a=X("podlove-button"),c=X("plus-sm-icon"),f=X("bookmark-alt-icon");return e.chapters.length>0?(N(),V("div",fV,[g("div",pV,[g("div",hV,[g("div",mV,[g("table",vV,[g("tbody",gV,[(N(!0),V(Fe,null,Mt(e.chapters,(p,h)=>(N(),V("tr",{onClick:v=>e.selectChapter(h),key:`chapter-${h}`,class:wt(["cursor-pointer",{"bg-indigo-100":e.selectedIndex===h,active:e.selectedIndex===h,"bg-white":h%2===0&&e.selectedIndex!==h,"bg-gray-50":h%2!==0&&e.selectedIndex!==h}])},[e.hasChapterImages?(N(),V("td",bV,[p!=null&&p.image?(N(),V("img",{key:0,class:"w-12 h-12 rounded",src:p==null?void 0:p.image},null,8,_V)):qe("",!0)])):qe("",!0),g("td",wV,U(p.start),1),g("td",SV,U(p.title),1),g("td",EV,U(p.duration),1)],10,yV))),128))],512)])],512)]),e.state.selected?(N(),V("div",xV,[g("div",$V,[g("label",CV,U(e.__("Title","podlove-podcasting-plugin-for-wordpress")),1),g("div",TV,[g("input",{name:"chapter-title",type:"text",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",onChange:t[0]||(t[0]=p=>e.updateChapter("title",p)),value:e.state.selected.title},null,40,OV)])]),g("div",AV,[g("label",IV,[Xe("Url "),g("span",PV,U(e.__("(optional)","podlove-podcasting-plugin-for-wordpress")),1)]),g("div",kV,[g("input",{name:"chapter-href",type:"text",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",onChange:t[1]||(t[1]=p=>e.updateChapter("href",p)),value:e.state.selected.href},null,40,RV)])]),g("div",LV,[g("label",NV,U(e.__("Start","podlove-podcasting-plugin-for-wordpress")),1),g("div",MV,[g("input",{name:"chapter-title",type:"text",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",onChange:t[2]||(t[2]=p=>e.updateChapter("start",p)),value:e.formatTime(e.state.selected.start)},null,40,DV)])]),g("div",FV,[g("label",BV,[Xe(U(e.__("Image","podlove-podcasting-plugin-for-wordpress"))+" ",1),g("span",UV,U(e.__("(optional)","podlove-podcasting-plugin-for-wordpress")),1)]),g("div",jV,[g("input",{name:"chapter-image",type:"text",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",onChange:t[3]||(t[3]=p=>e.updateChapter("image",p)),value:e.state.selected.image},null,40,HV),g("button",{onClick:t[4]||(t[4]=Sc(p=>e.selectImage(),["prevent"])),title:e.__("Select Chapter Image","podlove-podcasting-plugin-for-wordpress"),class:"absolute right-2 top-1/2 -mt-3 text-gray-400 hover:text-gray-700"},[q(l,{class:"w-6 h-6"})],8,VV)])]),g("div",WV,[q(a,{variant:"danger",onClick:t[5]||(t[5]=p=>e.removeChapter())},{default:ye(()=>[Xe(U(e.__("Delete Chapter","podlove-podcasting-plugin-for-wordpress")),1)]),_:1})])])):qe("",!0)]),g("div",zV,[q(a,{variant:"primary",onClick:t[6]||(t[6]=p=>e.addChapter())},{default:ye(()=>[q(c,{class:"-ml-0.5 mr-2 h-4 w-4","aria-hidden":"true"}),Xe(" "+U(e.__("Add Chapter","podlove-podcasting-plugin-for-wordpress")),1)]),_:1})])])):(N(),V("div",qV,[q(f,{class:"mx-auto h-12 w-12 text-gray-400"}),g("h3",KV,U(e.__("No chapters","podlove-podcasting-plugin-for-wordpress")),1),g("p",GV,U(e.__("Get started by creating a new chapter.","podlove-podcasting-plugin-for-wordpress")),1),g("div",XV,[q(a,{variant:"primary",onClick:t[7]||(t[7]=p=>e.addChapter()),class:"ml-1"},{default:ye(()=>[q(c,{class:"-ml-0.5 mr-2 h-4 w-4","aria-hidden":"true"}),Xe(" "+U(e.__("Add Chapter","podlove-podcasting-plugin-for-wordpress")),1)]),_:1})])]))}var YV=Be(dV,[["render",JV]]);function Uh(e,t,n){var r,o,s,l,a;t==null&&(t=100);function c(){var p=Date.now()-l;p<t&&p>=0?r=setTimeout(c,t-p):(r=null,n||(a=e.apply(s,o),s=o=null))}var f=function(){s=this,o=arguments,l=Date.now();var p=n&&!r;return r||(r=setTimeout(c,t)),p&&(a=e.apply(s,o),s=o=null),a};return f.clear=function(){r&&(clearTimeout(r),r=null)},f.flush=function(){r&&(a=e.apply(s,o),s=o=null,clearTimeout(r),r=null)},f}Uh.debounce=Uh;var Bp=Uh;function ZV(e,t,n){dn(e)?Ft(e,(r,o)=>{o==null||o.removeEventListener(t,n),r==null||r.addEventListener(t,n)}):gt(()=>{e.addEventListener(t,n)}),cs(()=>{var r;(r=jn(e))===null||r===void 0||r.removeEventListener(t,n)})}function QV(e,t){const n="pointerdown";return typeof window=="undefined"||!window?void 0:ZV(window,n,o=>{const s=jn(e);!s||s===o.target||o.composedPath().includes(s)||t(o)})}function eW(e,t,n){let r=null;const o=_e(!1);gt(()=>{(e.content!==void 0||n.value)&&(o.value=!0),r=new MutationObserver(s),r.observe(t.value,{childList:!0,subtree:!0})}),cs(()=>r.disconnect()),Ft(n,l=>{l?o.value=!0:o.value=!1});const s=()=>{e.content?o.value=!0:o.value=!1};return{hasContent:o}}function Zs(e,t){var n=e.getBoundingClientRect(),r=1,o=1;return{width:n.width/r,height:n.height/o,top:n.top/o,right:n.right/r,bottom:n.bottom/o,left:n.left/r,x:n.left/r,y:n.top/o}}function lo(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Jv(e){var t=lo(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function ya(e){var t=lo(e).Element;return e instanceof t||e instanceof Element}function Rr(e){var t=lo(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function A$(e){if(typeof ShadowRoot=="undefined")return!1;var t=lo(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function tW(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function nW(e){return e===lo(e)||!Rr(e)?Jv(e):tW(e)}function wo(e){return e?(e.nodeName||"").toLowerCase():null}function $i(e){return((ya(e)?e.ownerDocument:e.document)||window.document).documentElement}function Yv(e){return Zs($i(e)).left+Jv(e).scrollLeft}function Wo(e){return lo(e).getComputedStyle(e)}function Zv(e){var t=Wo(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function rW(e){var t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,r=t.height/e.offsetHeight||1;return n!==1||r!==1}function oW(e,t,n){n===void 0&&(n=!1);var r=Rr(t);Rr(t)&&rW(t);var o=$i(t),s=Zs(e),l={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(r||!r&&!n)&&((wo(t)!=="body"||Zv(o))&&(l=nW(t)),Rr(t)?(a=Zs(t),a.x+=t.clientLeft,a.y+=t.clientTop):o&&(a.x=Yv(o))),{x:s.left+l.scrollLeft-a.x,y:s.top+l.scrollTop-a.y,width:s.width,height:s.height}}function Qv(e){var t=Zs(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function qd(e){return wo(e)==="html"?e:e.assignedSlot||e.parentNode||(A$(e)?e.host:null)||$i(e)}function I$(e){return["html","body","#document"].indexOf(wo(e))>=0?e.ownerDocument.body:Rr(e)&&Zv(e)?e:I$(qd(e))}function Ql(e,t){var n;t===void 0&&(t=[]);var r=I$(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),s=lo(r),l=o?[s].concat(s.visualViewport||[],Zv(r)?r:[]):r,a=t.concat(l);return o?a:a.concat(Ql(qd(l)))}function iW(e){return["table","td","th"].indexOf(wo(e))>=0}function j1(e){return!Rr(e)||Wo(e).position==="fixed"?null:e.offsetParent}function sW(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&Rr(e)){var r=Wo(e);if(r.position==="fixed")return null}for(var o=qd(e);Rr(o)&&["html","body"].indexOf(wo(o))<0;){var s=Wo(o);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return o;o=o.parentNode}return null}function Ha(e){for(var t=lo(e),n=j1(e);n&&iW(n)&&Wo(n).position==="static";)n=j1(n);return n&&(wo(n)==="html"||wo(n)==="body"&&Wo(n).position==="static")?t:n||sW(e)||t}var Lr="top",no="bottom",ro="right",Nr="left",eg="auto",Va=[Lr,no,ro,Nr],Qs="start",ba="end",lW="clippingParents",P$="viewport",Nl="popper",aW="reference",H1=Va.reduce(function(e,t){return e.concat([t+"-"+Qs,t+"-"+ba])},[]),k$=[].concat(Va,[eg]).reduce(function(e,t){return e.concat([t,t+"-"+Qs,t+"-"+ba])},[]),uW="beforeRead",cW="read",dW="afterRead",fW="beforeMain",pW="main",hW="afterMain",mW="beforeWrite",vW="write",gW="afterWrite",yW=[uW,cW,dW,fW,pW,hW,mW,vW,gW];function bW(e){var t=new Map,n=new Set,r=[];e.forEach(function(s){t.set(s.name,s)});function o(s){n.add(s.name);var l=[].concat(s.requires||[],s.requiresIfExists||[]);l.forEach(function(a){if(!n.has(a)){var c=t.get(a);c&&o(c)}}),r.push(s)}return e.forEach(function(s){n.has(s.name)||o(s)}),r}function _W(e){var t=bW(e);return yW.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function wW(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function yo(e){return e.split("-")[0]}function SW(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}function EW(e){var t=lo(e),n=$i(e),r=t.visualViewport,o=n.clientWidth,s=n.clientHeight,l=0,a=0;return r&&(o=r.width,s=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(l=r.offsetLeft,a=r.offsetTop)),{width:o,height:s,x:l+Yv(e),y:a}}var mi=Math.max,_a=Math.min,Zu=Math.round;function xW(e){var t,n=$i(e),r=Jv(e),o=(t=e.ownerDocument)==null?void 0:t.body,s=mi(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),l=mi(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+Yv(e),c=-r.scrollTop;return Wo(o||n).direction==="rtl"&&(a+=mi(n.clientWidth,o?o.clientWidth:0)-s),{width:s,height:l,x:a,y:c}}function R$(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&A$(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function jh(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function $W(e){var t=Zs(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function V1(e,t){return t===P$?jh(EW(e)):Rr(t)?$W(t):jh(xW($i(e)))}function CW(e){var t=Ql(qd(e)),n=["absolute","fixed"].indexOf(Wo(e).position)>=0,r=n&&Rr(e)?Ha(e):e;return ya(r)?t.filter(function(o){return ya(o)&&R$(o,r)&&wo(o)!=="body"}):[]}function TW(e,t,n){var r=t==="clippingParents"?CW(e):[].concat(t),o=[].concat(r,[n]),s=o[0],l=o.reduce(function(a,c){var f=V1(e,c);return a.top=mi(f.top,a.top),a.right=_a(f.right,a.right),a.bottom=_a(f.bottom,a.bottom),a.left=mi(f.left,a.left),a},V1(e,s));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function el(e){return e.split("-")[1]}function tg(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function L$(e){var t=e.reference,n=e.element,r=e.placement,o=r?yo(r):null,s=r?el(r):null,l=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,c;switch(o){case Lr:c={x:l,y:t.y-n.height};break;case no:c={x:l,y:t.y+t.height};break;case ro:c={x:t.x+t.width,y:a};break;case Nr:c={x:t.x-n.width,y:a};break;default:c={x:t.x,y:t.y}}var f=o?tg(o):null;if(f!=null){var p=f==="y"?"height":"width";switch(s){case Qs:c[f]=c[f]-(t[p]/2-n[p]/2);break;case ba:c[f]=c[f]+(t[p]/2-n[p]/2);break}}return c}function N$(){return{top:0,right:0,bottom:0,left:0}}function M$(e){return Object.assign({},N$(),e)}function D$(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}function ng(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,s=n.boundary,l=s===void 0?lW:s,a=n.rootBoundary,c=a===void 0?P$:a,f=n.elementContext,p=f===void 0?Nl:f,h=n.altBoundary,v=h===void 0?!1:h,y=n.padding,_=y===void 0?0:y,w=M$(typeof _!="number"?_:D$(_,Va)),I=p===Nl?aW:Nl,O=e.rects.popper,S=e.elements[v?I:p],E=TW(ya(S)?S:S.contextElement||$i(e.elements.popper),l,c),T=Zs(e.elements.reference),$=L$({reference:T,element:O,strategy:"absolute",placement:o}),P=jh(Object.assign({},O,$)),k=p===Nl?P:T,A={top:E.top-k.top+w.top,bottom:k.bottom-E.bottom+w.bottom,left:E.left-k.left+w.left,right:k.right-E.right+w.right},H=e.modifiersData.offset;if(p===Nl&&H){var D=H[o];Object.keys(A).forEach(function(F){var z=[ro,no].indexOf(F)>=0?1:-1,K=[Lr,no].indexOf(F)>=0?"y":"x";A[F]+=D[K]*z})}return A}var W1={placement:"bottom",modifiers:[],strategy:"absolute"};function z1(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function OW(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,s=o===void 0?W1:o;return function(a,c,f){f===void 0&&(f=s);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},W1,s),modifiersData:{},elements:{reference:a,popper:c},attributes:{},styles:{}},h=[],v=!1,y={state:p,setOptions:function(O){var S=typeof O=="function"?O(p.options):O;w(),p.options=Object.assign({},s,p.options,S),p.scrollParents={reference:ya(a)?Ql(a):a.contextElement?Ql(a.contextElement):[],popper:Ql(c)};var E=_W(SW([].concat(r,p.options.modifiers)));return p.orderedModifiers=E.filter(function(T){return T.enabled}),_(),y.update()},forceUpdate:function(){if(!v){var O=p.elements,S=O.reference,E=O.popper;if(!!z1(S,E)){p.rects={reference:oW(S,Ha(E),p.options.strategy==="fixed"),popper:Qv(E)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(D){return p.modifiersData[D.name]=Object.assign({},D.data)});for(var T=0;T<p.orderedModifiers.length;T++){if(p.reset===!0){p.reset=!1,T=-1;continue}var $=p.orderedModifiers[T],P=$.fn,k=$.options,A=k===void 0?{}:k,H=$.name;typeof P=="function"&&(p=P({state:p,options:A,name:H,instance:y})||p)}}}},update:wW(function(){return new Promise(function(I){y.forceUpdate(),I(p)})}),destroy:function(){w(),v=!0}};if(!z1(a,c))return y;y.setOptions(f).then(function(I){!v&&f.onFirstUpdate&&f.onFirstUpdate(I)});function _(){p.orderedModifiers.forEach(function(I){var O=I.name,S=I.options,E=S===void 0?{}:S,T=I.effect;if(typeof T=="function"){var $=T({state:p,name:O,instance:y,options:E}),P=function(){};h.push($||P)}})}function w(){h.forEach(function(I){return I()}),h=[]}return y}}var Qu={passive:!0};function AW(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,s=o===void 0?!0:o,l=r.resize,a=l===void 0?!0:l,c=lo(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&f.forEach(function(p){p.addEventListener("scroll",n.update,Qu)}),a&&c.addEventListener("resize",n.update,Qu),function(){s&&f.forEach(function(p){p.removeEventListener("scroll",n.update,Qu)}),a&&c.removeEventListener("resize",n.update,Qu)}}var IW={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:AW,data:{}};function PW(e){var t=e.state,n=e.name;t.modifiersData[n]=L$({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var kW={name:"popperOffsets",enabled:!0,phase:"read",fn:PW,data:{}},RW={top:"auto",right:"auto",bottom:"auto",left:"auto"};function LW(e){var t=e.x,n=e.y,r=window,o=r.devicePixelRatio||1;return{x:Zu(Zu(t*o)/o)||0,y:Zu(Zu(n*o)/o)||0}}function q1(e){var t,n=e.popper,r=e.popperRect,o=e.placement,s=e.variation,l=e.offsets,a=e.position,c=e.gpuAcceleration,f=e.adaptive,p=e.roundOffsets,h=p===!0?LW(l):typeof p=="function"?p(l):l,v=h.x,y=v===void 0?0:v,_=h.y,w=_===void 0?0:_,I=l.hasOwnProperty("x"),O=l.hasOwnProperty("y"),S=Nr,E=Lr,T=window;if(f){var $=Ha(n),P="clientHeight",k="clientWidth";$===lo(n)&&($=$i(n),Wo($).position!=="static"&&a==="absolute"&&(P="scrollHeight",k="scrollWidth")),$=$,(o===Lr||(o===Nr||o===ro)&&s===ba)&&(E=no,w-=$[P]-r.height,w*=c?1:-1),(o===Nr||(o===Lr||o===no)&&s===ba)&&(S=ro,y-=$[k]-r.width,y*=c?1:-1)}var A=Object.assign({position:a},f&&RW);if(c){var H;return Object.assign({},A,(H={},H[E]=O?"0":"",H[S]=I?"0":"",H.transform=(T.devicePixelRatio||1)<=1?"translate("+y+"px, "+w+"px)":"translate3d("+y+"px, "+w+"px, 0)",H))}return Object.assign({},A,(t={},t[E]=O?w+"px":"",t[S]=I?y+"px":"",t.transform="",t))}function NW(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,s=n.adaptive,l=s===void 0?!0:s,a=n.roundOffsets,c=a===void 0?!0:a,f={placement:yo(t.placement),variation:el(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,q1(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,q1(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var MW={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:NW,data:{}};function DW(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},s=t.elements[n];!Rr(s)||!wo(s)||(Object.assign(s.style,r),Object.keys(o).forEach(function(l){var a=o[l];a===!1?s.removeAttribute(l):s.setAttribute(l,a===!0?"":a)}))})}function FW(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],s=t.attributes[r]||{},l=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=l.reduce(function(c,f){return c[f]="",c},{});!Rr(o)||!wo(o)||(Object.assign(o.style,a),Object.keys(s).forEach(function(c){o.removeAttribute(c)}))})}}var BW={name:"applyStyles",enabled:!0,phase:"write",fn:DW,effect:FW,requires:["computeStyles"]},UW=[IW,kW,MW,BW],jW=OW({defaultModifiers:UW});function HW(e){return e==="x"?"y":"x"}function fc(e,t,n){return mi(e,_a(t,n))}function VW(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,s=o===void 0?!0:o,l=n.altAxis,a=l===void 0?!1:l,c=n.boundary,f=n.rootBoundary,p=n.altBoundary,h=n.padding,v=n.tether,y=v===void 0?!0:v,_=n.tetherOffset,w=_===void 0?0:_,I=ng(t,{boundary:c,rootBoundary:f,padding:h,altBoundary:p}),O=yo(t.placement),S=el(t.placement),E=!S,T=tg(O),$=HW(T),P=t.modifiersData.popperOffsets,k=t.rects.reference,A=t.rects.popper,H=typeof w=="function"?w(Object.assign({},t.rects,{placement:t.placement})):w,D={x:0,y:0};if(!!P){if(s||a){var F=T==="y"?Lr:Nr,z=T==="y"?no:ro,K=T==="y"?"height":"width",te=P[T],we=P[T]+I[F],be=P[T]-I[z],Oe=y?-A[K]/2:0,Ae=S===Qs?k[K]:A[K],Ye=S===Qs?-A[K]:-k[K],ft=t.elements.arrow,Le=y&&ft?Qv(ft):{width:0,height:0},Ke=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:N$(),Q=Ke[F],ae=Ke[z],fe=fc(0,k[K],Le[K]),Se=E?k[K]/2-Oe-fe-Q-H:Ae-fe-Q-H,He=E?-k[K]/2+Oe+fe+ae+H:Ye+fe+ae+H,De=t.elements.arrow&&Ha(t.elements.arrow),tt=De?T==="y"?De.clientTop||0:De.clientLeft||0:0,vn=t.modifiersData.offset?t.modifiersData.offset[t.placement][T]:0,ln=P[T]+Se-vn-tt,L=P[T]+He-vn;if(s){var B=fc(y?_a(we,ln):we,te,y?mi(be,L):be);P[T]=B,D[T]=B-te}if(a){var Z=T==="x"?Lr:Nr,le=T==="x"?no:ro,ie=P[$],pe=ie+I[Z],Ee=ie-I[le],he=fc(y?_a(pe,ln):pe,ie,y?mi(Ee,L):Ee);P[$]=he,D[$]=he-ie}}t.modifiersData[r]=D}}var WW={name:"preventOverflow",enabled:!0,phase:"main",fn:VW,requiresIfExists:["offset"]},zW={left:"right",right:"left",bottom:"top",top:"bottom"};function pc(e){return e.replace(/left|right|bottom|top/g,function(t){return zW[t]})}var qW={start:"end",end:"start"};function K1(e){return e.replace(/start|end/g,function(t){return qW[t]})}function KW(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,s=n.rootBoundary,l=n.padding,a=n.flipVariations,c=n.allowedAutoPlacements,f=c===void 0?k$:c,p=el(r),h=p?a?H1:H1.filter(function(_){return el(_)===p}):Va,v=h.filter(function(_){return f.indexOf(_)>=0});v.length===0&&(v=h);var y=v.reduce(function(_,w){return _[w]=ng(e,{placement:w,boundary:o,rootBoundary:s,padding:l})[yo(w)],_},{});return Object.keys(y).sort(function(_,w){return y[_]-y[w]})}function GW(e){if(yo(e)===eg)return[];var t=pc(e);return[K1(e),t,K1(t)]}function XW(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,s=o===void 0?!0:o,l=n.altAxis,a=l===void 0?!0:l,c=n.fallbackPlacements,f=n.padding,p=n.boundary,h=n.rootBoundary,v=n.altBoundary,y=n.flipVariations,_=y===void 0?!0:y,w=n.allowedAutoPlacements,I=t.options.placement,O=yo(I),S=O===I,E=c||(S||!_?[pc(I)]:GW(I)),T=[I].concat(E).reduce(function(ae,fe){return ae.concat(yo(fe)===eg?KW(t,{placement:fe,boundary:p,rootBoundary:h,padding:f,flipVariations:_,allowedAutoPlacements:w}):fe)},[]),$=t.rects.reference,P=t.rects.popper,k=new Map,A=!0,H=T[0],D=0;D<T.length;D++){var F=T[D],z=yo(F),K=el(F)===Qs,te=[Lr,no].indexOf(z)>=0,we=te?"width":"height",be=ng(t,{placement:F,boundary:p,rootBoundary:h,altBoundary:v,padding:f}),Oe=te?K?ro:Nr:K?no:Lr;$[we]>P[we]&&(Oe=pc(Oe));var Ae=pc(Oe),Ye=[];if(s&&Ye.push(be[z]<=0),a&&Ye.push(be[Oe]<=0,be[Ae]<=0),Ye.every(function(ae){return ae})){H=F,A=!1;break}k.set(F,Ye)}if(A)for(var ft=_?3:1,Le=function(fe){var Se=T.find(function(He){var De=k.get(He);if(De)return De.slice(0,fe).every(function(tt){return tt})});if(Se)return H=Se,"break"},Ke=ft;Ke>0;Ke--){var Q=Le(Ke);if(Q==="break")break}t.placement!==H&&(t.modifiersData[r]._skip=!0,t.placement=H,t.reset=!0)}}var JW={name:"flip",enabled:!0,phase:"main",fn:XW,requiresIfExists:["offset"],data:{_skip:!1}};function YW(e,t,n){var r=yo(e),o=[Nr,Lr].indexOf(r)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,l=s[0],a=s[1];return l=l||0,a=(a||0)*o,[Nr,ro].indexOf(r)>=0?{x:a,y:l}:{x:l,y:a}}function ZW(e){var t=e.state,n=e.options,r=e.name,o=n.offset,s=o===void 0?[0,0]:o,l=k$.reduce(function(p,h){return p[h]=YW(h,t.rects,s),p},{}),a=l[t.placement],c=a.x,f=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=f),t.modifiersData[r]=l}var QW={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:ZW},ez=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,M$(typeof t!="number"?t:D$(t,Va))};function tz(e){var t,n=e.state,r=e.name,o=e.options,s=n.elements.arrow,l=n.modifiersData.popperOffsets,a=yo(n.placement),c=tg(a),f=[Nr,ro].indexOf(a)>=0,p=f?"height":"width";if(!(!s||!l)){var h=ez(o.padding,n),v=Qv(s),y=c==="y"?Lr:Nr,_=c==="y"?no:ro,w=n.rects.reference[p]+n.rects.reference[c]-l[c]-n.rects.popper[p],I=l[c]-n.rects.reference[c],O=Ha(s),S=O?c==="y"?O.clientHeight||0:O.clientWidth||0:0,E=w/2-I/2,T=h[y],$=S-v[p]-h[_],P=S/2-v[p]/2+E,k=fc(T,P,$),A=c;n.modifiersData[r]=(t={},t[A]=k,t.centerOffset=k-P,t)}}function nz(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||!R$(t.elements.popper,o)||(t.elements.arrow=o))}var rz={name:"arrow",enabled:!0,phase:"main",fn:tz,effect:nz,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};const Up=e=>parseInt(e,10);function oz({arrowPadding:e,emit:t,locked:n,offsetDistance:r,offsetSkid:o,placement:s,popperNode:l,triggerNode:a}){const c=Si({isOpen:!1,popperInstance:null}),f=w=>{var I;(I=c.popperInstance)===null||I===void 0||I.setOptions(O=>({...O,modifiers:[...O.modifiers,{name:"eventListeners",enabled:w}]}))},p=()=>f(!0),h=()=>f(!1),v=()=>{!c.isOpen||(c.isOpen=!1,t("close:popper"))},y=()=>{c.isOpen||(c.isOpen=!0,t("open:popper"))};Ft([()=>c.isOpen,s],async([w])=>{w?(await _(),p()):h()});const _=async()=>{await rn(),c.popperInstance=jW(a.value,l.value,{placement:s.value,modifiers:[WW,JW,{name:"flip",enabled:!n.value},rz,{name:"arrow",options:{padding:Up(e.value)}},QW,{name:"offset",options:{offset:[Up(o.value),Up(r.value)]}}]}),c.popperInstance.update()};return cs(()=>{var w;(w=c.popperInstance)===null||w===void 0||w.destroy()}),{...rm(c),open:y,close:v}}const iz={id:"arrow","data-popper-arrow":""};function sz(e,t){return N(),V("div",iz)}function F$(e,t){t===void 0&&(t={});var n=t.insertAt;if(!(!e||typeof document=="undefined")){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",n==="top"&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}var lz=`61 `));let y=z2((l=h.props)!=null?l:{},c,p),_=Dr(h,y,!0);for(let w in y)w.startsWith("on")&&(_.props||(_.props={}),_.props[w]=y[w]);return _}return Array.isArray(f)&&f.length===1?f[0]:f}return dt(a,Object.assign({},c,p),{default:()=>f})}function W2(e){return e.flatMap(t=>t.type===Fe?W2(t.children):[t])}function z2(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let o in r)o.startsWith("on")&&typeof r[o]=="function"?(n[o]!=null||(n[o]=[]),n[o].push(r[o])):t[o]=r[o];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(r=>[r,void 0])));for(let r in n)Object.assign(t,{[r](o,...s){let l=n[r];for(let a of l){if(o instanceof Event&&o.defaultPrevented)return;a(o,...s)}}});return t}function Bv(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function fs(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function $U(e){return e==null?!1:typeof e.type=="string"||typeof e.type=="object"||typeof e.type=="function"}var to=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(to||{});let _o=ve({name:"Hidden",props:{as:{type:[Object,String],default:"div"},features:{type:Number,default:1}},setup(e,{slots:t,attrs:n}){return()=>{var r;let{features:o,...s}=e,l={"aria-hidden":(o&2)===2?!0:(r=s["aria-hidden"])!=null?r:void 0,hidden:(o&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(o&4)===4&&(o&2)!==2&&{display:"none"}}};return St({ourProps:l,theirProps:s,slot:{},attrs:n,slots:t,name:"Hidden"})}}}),q2=Symbol("Context");var Pt=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Pt||{});function CU(){return ps()!==null}function ps(){return kt(q2,null)}function Vd(e){Yt(q2,e)}var lt=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(lt||{}),K2=(e=>(e[e.Left=0]="Left",e[e.Right=2]="Right",e))(K2||{});function TU(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window!="undefined"&&typeof document!="undefined"&&(document.addEventListener("DOMContentLoaded",t),t())}let Bo=[];TU(()=>{function e(t){t.target instanceof HTMLElement&&t.target!==document.body&&Bo[0]!==t.target&&(Bo.unshift(t.target),Bo=Bo.filter(n=>n!=null&&n.isConnected),Bo.splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function OU(e){throw new Error("Unexpected object: "+e)}var xt=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(xt||{});function Rh(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),o=r!=null?r:-1;switch(e.focus){case 0:{for(let s=0;s<n.length;++s)if(!t.resolveDisabled(n[s],s,n))return s;return r}case 1:{o===-1&&(o=n.length);for(let s=o-1;s>=0;--s)if(!t.resolveDisabled(n[s],s,n))return s;return r}case 2:{for(let s=o+1;s<n.length;++s)if(!t.resolveDisabled(n[s],s,n))return s;return r}case 3:{for(let s=n.length-1;s>=0;--s)if(!t.resolveDisabled(n[s],s,n))return s;return r}case 4:{for(let s=0;s<n.length;++s)if(t.resolveId(n[s],s,n)===e.id)return s;return r}case 5:return null;default:OU(e)}}function Uv(e={},t=null,n=[]){for(let[r,o]of Object.entries(e))X2(n,G2(t,r),o);return n}function G2(e,t){return e?e+"["+t+"]":t}function X2(e,t,n){if(Array.isArray(n))for(let[r,o]of n.entries())X2(e,G2(t,r.toString()),o);else n instanceof Date?e.push([t,n.toISOString()]):typeof n=="boolean"?e.push([t,n?"1":"0"]):typeof n=="string"?e.push([t,n]):typeof n=="number"?e.push([t,`${n}`]):n==null?e.push([t,""]):Uv(n,t,e)}function AU(e){var t,n;let r=(t=e==null?void 0:e.form)!=null?t:e.closest("form");if(r){for(let o of r.elements)if(o!==e&&(o.tagName==="INPUT"&&o.type==="submit"||o.tagName==="BUTTON"&&o.type==="submit"||o.nodeName==="INPUT"&&o.type==="image")){o.click();return}(n=r.requestSubmit)==null||n.call(r)}}function IU(e,t){return e===t}var PU=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(PU||{}),kU=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(kU||{}),RU=(e=>(e[e.Pointer=0]="Pointer",e[e.Focus=1]="Focus",e[e.Other=2]="Other",e))(RU||{});let J2=Symbol("ComboboxContext");function hs(e){let t=kt(J2,null);if(t===null){let n=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,hs),n}return t}let Y2=Symbol("VirtualContext"),LU=ve({name:"VirtualProvider",setup(e,{slots:t}){let n=hs("VirtualProvider"),r=ce(()=>{let a=ue(n.optionsRef);if(!a)return{start:0,end:0};let c=window.getComputedStyle(a);return{start:parseFloat(c.paddingBlockStart||c.paddingTop),end:parseFloat(c.paddingBlockEnd||c.paddingBottom)}}),o=dU(ce(()=>({scrollPaddingStart:r.value.start,scrollPaddingEnd:r.value.end,count:n.virtual.value.options.length,estimateSize(){return 40},getScrollElement(){return ue(n.optionsRef)},overscan:12}))),s=ce(()=>{var a;return(a=n.virtual.value)==null?void 0:a.options}),l=_e(0);return Ft([s],()=>{l.value+=1}),Yt(Y2,n.virtual.value?o:null),()=>[dt("div",{style:{position:"relative",width:"100%",height:`${o.value.getTotalSize()}px`},ref:a=>{if(a){if(typeof process!="undefined"&&{}.JEST_WORKER_ID!==void 0||n.activationTrigger.value===0)return;n.activeOptionIndex.value!==null&&n.virtual.value.options.length>n.activeOptionIndex.value&&o.value.scrollToIndex(n.activeOptionIndex.value)}}},o.value.getVirtualItems().map(a=>Dr(t.default({option:n.virtual.value.options[a.index],open:n.comboboxState.value===0})[0],{key:`${l.value}-${a.index}`,"data-index":a.index,"aria-setsize":n.virtual.value.options.length,"aria-posinset":a.index+1,style:{position:"absolute",top:0,left:0,transform:`translateY(${a.start}px)`,overflowAnchor:"none"}})))]}}),Z2=ve({name:"Combobox",emits:{"update:modelValue":e=>!0},props:{as:{type:[Object,String],default:"template"},disabled:{type:[Boolean],default:!1},by:{type:[String,Function],nullable:!0,default:null},modelValue:{type:[Object,String,Number,Boolean],default:void 0},defaultValue:{type:[Object,String,Number,Boolean],default:void 0},form:{type:String,optional:!0},name:{type:String,optional:!0},nullable:{type:Boolean,default:!1},multiple:{type:[Boolean],default:!1},immediate:{type:[Boolean],default:!1},virtual:{type:Object,default:null}},inheritAttrs:!1,setup(e,{slots:t,attrs:n,emit:r}){let o=_e(1),s=_e(null),l=_e(null),a=_e(null),c=_e(null),f=_e({static:!1,hold:!1}),p=_e([]),h=_e(null),v=_e(2),y=_e(!1);function _(D=F=>F){let F=h.value!==null?p.value[h.value]:null,z=D(p.value.slice()),K=z.length>0&&z[0].dataRef.order.value!==null?z.sort((we,be)=>we.dataRef.order.value-be.dataRef.order.value):Fv(z,we=>ue(we.dataRef.domRef)),te=F?K.indexOf(F):null;return te===-1&&(te=null),{options:K,activeOptionIndex:te}}let w=ce(()=>e.multiple?1:0),I=ce(()=>e.nullable),[O,S]=Nv(ce(()=>e.modelValue),D=>r("update:modelValue",D),ce(()=>e.defaultValue)),E=ce(()=>O.value===void 0?Tt(w.value,{[1]:[],[0]:void 0}):O.value),T=null,$=null;function P(D){return Tt(w.value,{[0](){return S==null?void 0:S(D)},[1]:()=>{let F=Ue(A.value.value).slice(),z=Ue(D),K=F.findIndex(te=>A.compare(z,Ue(te)));return K===-1?F.push(z):F.splice(K,1),S==null?void 0:S(F)}})}let k=ce(()=>{});Ft([k],([D],[F])=>{if(A.virtual.value&&D&&F&&h.value!==null){let z=D.indexOf(F[h.value]);z!==-1?h.value=z:h.value=null}});let A={comboboxState:o,value:E,mode:w,compare(D,F){if(typeof e.by=="string"){let z=e.by;return(D==null?void 0:D[z])===(F==null?void 0:F[z])}return e.by===null?IU(D,F):e.by(D,F)},calculateIndex(D){return A.virtual.value?e.by===null?A.virtual.value.options.indexOf(D):A.virtual.value.options.findIndex(F=>A.compare(F,D)):p.value.findIndex(F=>A.compare(F.dataRef.value,D))},defaultValue:ce(()=>e.defaultValue),nullable:I,immediate:ce(()=>!1),virtual:ce(()=>null),inputRef:l,labelRef:s,buttonRef:a,optionsRef:c,disabled:ce(()=>e.disabled),options:p,change(D){S(D)},activeOptionIndex:ce(()=>{if(y.value&&h.value===null&&(A.virtual.value?A.virtual.value.options.length>0:p.value.length>0)){if(A.virtual.value){let F=A.virtual.value.options.findIndex(z=>{var K;return!((K=A.virtual.value)!=null&&K.disabled(z))});if(F!==-1)return F}let D=p.value.findIndex(F=>!F.dataRef.disabled);if(D!==-1)return D}return h.value}),activationTrigger:v,optionsPropsRef:f,closeCombobox(){y.value=!1,!e.disabled&&o.value!==1&&(o.value=1,h.value=null)},openCombobox(){if(y.value=!0,!e.disabled&&o.value!==0){if(A.value.value){let D=A.calculateIndex(A.value.value);D!==-1&&(h.value=D)}o.value=0}},setActivationTrigger(D){v.value=D},goToOption(D,F,z){y.value=!1,T!==null&&cancelAnimationFrame(T),T=requestAnimationFrame(()=>{if(e.disabled||c.value&&!f.value.static&&o.value===1)return;if(A.virtual.value){h.value=D===xt.Specific?F:Rh({focus:D},{resolveItems:()=>A.virtual.value.options,resolveActiveIndex:()=>{var we,be;return(be=(we=A.activeOptionIndex.value)!=null?we:A.virtual.value.options.findIndex(Oe=>{var Ae;return!((Ae=A.virtual.value)!=null&&Ae.disabled(Oe))}))!=null?be:null},resolveDisabled:we=>A.virtual.value.disabled(we),resolveId(){throw new Error("Function not implemented.")}}),v.value=z!=null?z:2;return}let K=_();if(K.activeOptionIndex===null){let we=K.options.findIndex(be=>!be.dataRef.disabled);we!==-1&&(K.activeOptionIndex=we)}let te=D===xt.Specific?F:Rh({focus:D},{resolveItems:()=>K.options,resolveActiveIndex:()=>K.activeOptionIndex,resolveId:we=>we.id,resolveDisabled:we=>we.dataRef.disabled});h.value=te,v.value=z!=null?z:2,p.value=K.options})},selectOption(D){let F=p.value.find(K=>K.id===D);if(!F)return;let{dataRef:z}=F;P(z.value)},selectActiveOption(){if(A.activeOptionIndex.value!==null){if(A.virtual.value)P(A.virtual.value.options[A.activeOptionIndex.value]);else{let{dataRef:D}=p.value[A.activeOptionIndex.value];P(D.value)}A.goToOption(xt.Specific,A.activeOptionIndex.value)}},registerOption(D,F){let z=Si({id:D,dataRef:F});if(A.virtual.value){p.value.push(z);return}$&&cancelAnimationFrame($);let K=_(te=>(te.push(z),te));h.value===null&&A.isSelected(F.value.value)&&(K.activeOptionIndex=K.options.indexOf(z)),p.value=K.options,h.value=K.activeOptionIndex,v.value=2,K.options.some(te=>!ue(te.dataRef.domRef))&&($=requestAnimationFrame(()=>{let te=_();p.value=te.options,h.value=te.activeOptionIndex}))},unregisterOption(D,F){if(T!==null&&cancelAnimationFrame(T),F&&(y.value=!0),A.virtual.value){p.value=p.value.filter(K=>K.id!==D);return}let z=_(K=>{let te=K.findIndex(we=>we.id===D);return te!==-1&&K.splice(te,1),K});p.value=z.options,h.value=z.activeOptionIndex,v.value=2},isSelected(D){return Tt(w.value,{[0]:()=>A.compare(Ue(A.value.value),Ue(D)),[1]:()=>Ue(A.value.value).some(F=>A.compare(Ue(F),Ue(D)))})},isActive(D){return h.value===A.calculateIndex(D)}};jd([l,a,c],()=>A.closeCombobox(),ce(()=>o.value===0)),Yt(J2,A),Vd(ce(()=>Tt(o.value,{[0]:Pt.Open,[1]:Pt.Closed})));let H=ce(()=>{var D;return(D=ue(l))==null?void 0:D.closest("form")});return gt(()=>{Ft([H],()=>{if(!H.value||e.defaultValue===void 0)return;function D(){A.change(e.defaultValue)}return H.value.addEventListener("reset",D),()=>{var F;(F=H.value)==null||F.removeEventListener("reset",D)}},{immediate:!0})}),()=>{var D,F,z;let{name:K,disabled:te,form:we,...be}=e,Oe={open:o.value===0,disabled:te,activeIndex:A.activeOptionIndex.value,activeOption:A.activeOptionIndex.value===null?null:A.virtual.value?A.virtual.value.options[(D=A.activeOptionIndex.value)!=null?D:0]:(z=(F=A.options.value[A.activeOptionIndex.value])==null?void 0:F.dataRef.value)!=null?z:null,value:E.value};return dt(Fe,[...K!=null&&E.value!=null?Uv({[K]:E.value}).map(([Ae,Ye])=>dt(_o,Bv({features:to.Hidden,key:Ae,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:we,disabled:te,name:Ae,value:Ye}))):[],St({theirProps:{...n,...fs(be,["by","defaultValue","immediate","modelValue","multiple","nullable","onUpdate:modelValue","virtual"])},ourProps:{},slot:Oe,slots:t,attrs:n,name:"Combobox"})])}}}),NU=ve({name:"ComboboxLabel",props:{as:{type:[Object,String],default:"label"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n}){var r;let o=(r=e.id)!=null?r:`headlessui-combobox-label-${zt()}`,s=hs("ComboboxLabel");function l(){var a;(a=ue(s.inputRef))==null||a.focus({preventScroll:!0})}return()=>{let a={open:s.comboboxState.value===0,disabled:s.disabled.value},{...c}=e,f={id:o,ref:s.labelRef,onClick:l};return St({ourProps:f,theirProps:c,slot:a,attrs:t,slots:n,name:"ComboboxLabel"})}}}),Q2=ve({name:"ComboboxButton",props:{as:{type:[Object,String],default:"button"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:r}){var o;let s=(o=e.id)!=null?o:`headlessui-combobox-button-${zt()}`,l=hs("ComboboxButton");r({el:l.buttonRef,$el:l.buttonRef});function a(p){l.disabled.value||(l.comboboxState.value===0?l.closeCombobox():(p.preventDefault(),l.openCombobox()),rn(()=>{var h;return(h=ue(l.inputRef))==null?void 0:h.focus({preventScroll:!0})}))}function c(p){switch(p.key){case lt.ArrowDown:p.preventDefault(),p.stopPropagation(),l.comboboxState.value===1&&l.openCombobox(),rn(()=>{var h;return(h=l.inputRef.value)==null?void 0:h.focus({preventScroll:!0})});return;case lt.ArrowUp:p.preventDefault(),p.stopPropagation(),l.comboboxState.value===1&&(l.openCombobox(),rn(()=>{l.value.value||l.goToOption(xt.Last)})),rn(()=>{var h;return(h=l.inputRef.value)==null?void 0:h.focus({preventScroll:!0})});return;case lt.Escape:if(l.comboboxState.value!==0)return;p.preventDefault(),l.optionsRef.value&&!l.optionsPropsRef.value.static&&p.stopPropagation(),l.closeCombobox(),rn(()=>{var h;return(h=l.inputRef.value)==null?void 0:h.focus({preventScroll:!0})});return}}let f=Hd(ce(()=>({as:e.as,type:t.type})),l.buttonRef);return()=>{var p,h;let v={open:l.comboboxState.value===0,disabled:l.disabled.value,value:l.value.value},{...y}=e,_={ref:l.buttonRef,id:s,type:f.value,tabindex:"-1","aria-haspopup":"listbox","aria-controls":(p=ue(l.optionsRef))==null?void 0:p.id,"aria-expanded":l.comboboxState.value===0,"aria-labelledby":l.labelRef.value?[(h=ue(l.labelRef))==null?void 0:h.id,s].join(" "):void 0,disabled:l.disabled.value===!0?!0:void 0,onKeydown:c,onClick:a};return St({ourProps:_,theirProps:y,slot:v,attrs:t,slots:n,name:"ComboboxButton"})}}}),e$=ve({name:"ComboboxInput",props:{as:{type:[Object,String],default:"input"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},displayValue:{type:Function},defaultValue:{type:String,default:void 0},id:{type:String,default:null}},emits:{change:e=>!0},setup(e,{emit:t,attrs:n,slots:r,expose:o}){var s;let l=(s=e.id)!=null?s:`headlessui-combobox-input-${zt()}`,a=hs("ComboboxInput"),c=ce(()=>jr(ue(a.inputRef))),f={value:!1};o({el:a.inputRef,$el:a.inputRef});function p(){a.change(null);let $=ue(a.optionsRef);$&&($.scrollTop=0),a.goToOption(xt.Nothing)}let h=ce(()=>{var $;let P=a.value.value;return ue(a.inputRef)?typeof e.displayValue!="undefined"&&P!==void 0?($=e.displayValue(P))!=null?$:"":typeof P=="string"?P:"":""});gt(()=>{Ft([h,a.comboboxState,c],([$,P],[k,A])=>{if(f.value)return;let H=ue(a.inputRef);H&&((A===0&&P===1||$!==k)&&(H.value=$),requestAnimationFrame(()=>{var D;if(f.value||!H||((D=c.value)==null?void 0:D.activeElement)!==H)return;let{selectionStart:F,selectionEnd:z}=H;Math.abs((z!=null?z:0)-(F!=null?F:0))===0&&F===0&&H.setSelectionRange(H.value.length,H.value.length)}))},{immediate:!0}),Ft([a.comboboxState],([$],[P])=>{if($===0&&P===1){if(f.value)return;let k=ue(a.inputRef);if(!k)return;let A=k.value,{selectionStart:H,selectionEnd:D,selectionDirection:F}=k;k.value="",k.value=A,F!==null?k.setSelectionRange(H,D,F):k.setSelectionRange(H,D)}})});let v=_e(!1);function y(){v.value=!0}function _(){wi().nextFrame(()=>{v.value=!1})}let w=pU();function I($){switch(f.value=!0,w(()=>{f.value=!1}),$.key){case lt.Enter:if(f.value=!1,a.comboboxState.value!==0||v.value)return;if($.preventDefault(),$.stopPropagation(),a.activeOptionIndex.value===null){a.closeCombobox();return}a.selectActiveOption(),a.mode.value===0&&a.closeCombobox();break;case lt.ArrowDown:return f.value=!1,$.preventDefault(),$.stopPropagation(),Tt(a.comboboxState.value,{[0]:()=>a.goToOption(xt.Next),[1]:()=>a.openCombobox()});case lt.ArrowUp:return f.value=!1,$.preventDefault(),$.stopPropagation(),Tt(a.comboboxState.value,{[0]:()=>a.goToOption(xt.Previous),[1]:()=>{a.openCombobox(),rn(()=>{a.value.value||a.goToOption(xt.Last)})}});case lt.Home:if($.shiftKey)break;return f.value=!1,$.preventDefault(),$.stopPropagation(),a.goToOption(xt.First);case lt.PageUp:return f.value=!1,$.preventDefault(),$.stopPropagation(),a.goToOption(xt.First);case lt.End:if($.shiftKey)break;return f.value=!1,$.preventDefault(),$.stopPropagation(),a.goToOption(xt.Last);case lt.PageDown:return f.value=!1,$.preventDefault(),$.stopPropagation(),a.goToOption(xt.Last);case lt.Escape:if(f.value=!1,a.comboboxState.value!==0)return;$.preventDefault(),a.optionsRef.value&&!a.optionsPropsRef.value.static&&$.stopPropagation(),a.nullable.value&&a.mode.value===0&&a.value.value===null&&p(),a.closeCombobox();break;case lt.Tab:if(f.value=!1,a.comboboxState.value!==0)return;a.mode.value===0&&a.activationTrigger.value!==1&&a.selectActiveOption(),a.closeCombobox();break}}function O($){t("change",$),a.nullable.value&&a.mode.value===0&&$.target.value===""&&p(),a.openCombobox()}function S($){var P,k,A;let H=(P=$.relatedTarget)!=null?P:Bo.find(D=>D!==$.currentTarget);if(f.value=!1,!((k=ue(a.optionsRef))!=null&&k.contains(H))&&!((A=ue(a.buttonRef))!=null&&A.contains(H))&&a.comboboxState.value===0)return $.preventDefault(),a.mode.value===0&&(a.nullable.value&&a.value.value===null?p():a.activationTrigger.value!==1&&a.selectActiveOption()),a.closeCombobox()}function E($){var P,k,A;let H=(P=$.relatedTarget)!=null?P:Bo.find(D=>D!==$.currentTarget);(k=ue(a.buttonRef))!=null&&k.contains(H)||(A=ue(a.optionsRef))!=null&&A.contains(H)||a.disabled.value||a.immediate.value&&a.comboboxState.value!==0&&(a.openCombobox(),wi().nextFrame(()=>{a.setActivationTrigger(1)}))}let T=ce(()=>{var $,P,k,A;return(A=(k=(P=e.defaultValue)!=null?P:a.defaultValue.value!==void 0?($=e.displayValue)==null?void 0:$.call(e,a.defaultValue.value):null)!=null?k:a.defaultValue.value)!=null?A:""});return()=>{var $,P,k,A,H,D,F;let z={open:a.comboboxState.value===0},{displayValue:K,onChange:te,...we}=e,be={"aria-controls":($=a.optionsRef.value)==null?void 0:$.id,"aria-expanded":a.comboboxState.value===0,"aria-activedescendant":a.activeOptionIndex.value===null?void 0:a.virtual.value?(P=a.options.value.find(Oe=>!a.virtual.value.disabled(Oe.dataRef.value)&&a.compare(Oe.dataRef.value,a.virtual.value.options[a.activeOptionIndex.value])))==null?void 0:P.id:(k=a.options.value[a.activeOptionIndex.value])==null?void 0:k.id,"aria-labelledby":(D=(A=ue(a.labelRef))==null?void 0:A.id)!=null?D:(H=ue(a.buttonRef))==null?void 0:H.id,"aria-autocomplete":"list",id:l,onCompositionstart:y,onCompositionend:_,onKeydown:I,onInput:O,onFocus:E,onBlur:S,role:"combobox",type:(F=n.type)!=null?F:"text",tabIndex:0,ref:a.inputRef,defaultValue:T.value,disabled:a.disabled.value===!0?!0:void 0};return St({ourProps:be,theirProps:we,slot:z,attrs:n,slots:r,features:rr.RenderStrategy|rr.Static,name:"ComboboxInput"})}}}),t$=ve({name:"ComboboxOptions",props:{as:{type:[Object,String],default:"ul"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},hold:{type:[Boolean],default:!1}},setup(e,{attrs:t,slots:n,expose:r}){let o=hs("ComboboxOptions"),s=`headlessui-combobox-options-${zt()}`;r({el:o.optionsRef,$el:o.optionsRef}),jt(()=>{o.optionsPropsRef.value.static=e.static}),jt(()=>{o.optionsPropsRef.value.hold=e.hold});let l=ps(),a=ce(()=>l!==null?(l.value&Pt.Open)===Pt.Open:o.comboboxState.value===0);xU({container:ce(()=>ue(o.optionsRef)),enabled:ce(()=>o.comboboxState.value===0),accept(f){return f.getAttribute("role")==="option"?NodeFilter.FILTER_REJECT:f.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(f){f.setAttribute("role","none")}});function c(f){f.preventDefault()}return()=>{var f,p,h;let v={open:o.comboboxState.value===0},y={"aria-labelledby":(h=(f=ue(o.labelRef))==null?void 0:f.id)!=null?h:(p=ue(o.buttonRef))==null?void 0:p.id,id:s,ref:o.optionsRef,role:"listbox","aria-multiselectable":o.mode.value===1?!0:void 0,onMousedown:c},_=fs(e,["hold"]);return St({ourProps:y,theirProps:_,slot:v,attrs:t,slots:o.virtual.value&&o.comboboxState.value===0?{...n,default:()=>[dt(LU,{},n.default)]}:n,features:rr.RenderStrategy|rr.Static,visible:a.value,name:"ComboboxOptions"})}}}),n$=ve({name:"ComboboxOption",props:{as:{type:[Object,String],default:"li"},value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1},order:{type:[Number],default:null}},setup(e,{slots:t,attrs:n,expose:r}){let o=hs("ComboboxOption"),s=`headlessui-combobox-option-${zt()}`,l=_e(null),a=ce(()=>e.disabled);r({el:l,$el:l});let c=ce(()=>{var S;return o.virtual.value?o.activeOptionIndex.value===o.calculateIndex(e.value):o.activeOptionIndex.value===null?!1:((S=o.options.value[o.activeOptionIndex.value])==null?void 0:S.id)===s}),f=ce(()=>o.isSelected(e.value)),p=kt(Y2,null),h=ce(()=>({disabled:e.disabled,value:e.value,domRef:l,order:ce(()=>e.order)}));gt(()=>o.registerOption(s,h)),Zt(()=>o.unregisterOption(s,c.value)),jt(()=>{let S=ue(l);S&&(p==null||p.value.measureElement(S))}),jt(()=>{o.comboboxState.value===0&&c.value&&(o.virtual.value||o.activationTrigger.value!==0&&rn(()=>{var S,E;return(E=(S=ue(l))==null?void 0:S.scrollIntoView)==null?void 0:E.call(S,{block:"nearest"})}))});function v(S){S.preventDefault(),S.button===K2.Left&&(a.value||(o.selectOption(s),j2()||requestAnimationFrame(()=>{var E;return(E=ue(o.inputRef))==null?void 0:E.focus({preventScroll:!0})}),o.mode.value===0&&o.closeCombobox()))}function y(){var S;if(e.disabled||(S=o.virtual.value)!=null&&S.disabled(e.value))return o.goToOption(xt.Nothing);let E=o.calculateIndex(e.value);o.goToOption(xt.Specific,E)}let _=V2();function w(S){_.update(S)}function I(S){var E;if(!_.wasMoved(S)||e.disabled||(E=o.virtual.value)!=null&&E.disabled(e.value)||c.value)return;let T=o.calculateIndex(e.value);o.goToOption(xt.Specific,T,0)}function O(S){var E;_.wasMoved(S)&&(e.disabled||(E=o.virtual.value)!=null&&E.disabled(e.value)||c.value&&(o.optionsPropsRef.value.hold||o.goToOption(xt.Nothing)))}return()=>{let{disabled:S}=e,E={active:c.value,selected:f.value,disabled:S},T={id:s,ref:l,role:"option",tabIndex:S===!0?void 0:-1,"aria-disabled":S===!0?!0:void 0,"aria-selected":f.value,disabled:void 0,onMousedown:v,onFocus:y,onPointerenter:w,onMouseenter:w,onPointermove:I,onMousemove:I,onPointerleave:O,onMouseleave:O},$=fs(e,["order","value"]);return St({ourProps:T,theirProps:$,slot:E,attrs:n,slots:t,name:"ComboboxOption"})}}});function jv(e,t,n,r){Fa.isServer||jt(o=>{e=e!=null?e:window,e.addEventListener(t,n,r),o(()=>e.removeEventListener(t,n,r))})}var pr=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(pr||{});function Hv(){let e=_e(0);return H2("keydown",t=>{t.key==="Tab"&&(e.value=t.shiftKey?1:0)}),e}function r$(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let n of e.value){let r=ue(n);r instanceof HTMLElement&&t.add(r)}return t}var o$=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(o$||{});let Rl=Object.assign(ve({name:"FocusTrap",props:{as:{type:[Object,String],default:"div"},initialFocus:{type:Object,default:null},features:{type:Number,default:30},containers:{type:[Object,Function],default:_e(new Set)}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:r}){let o=_e(null);r({el:o,$el:o});let s=ce(()=>jr(o)),l=_e(!1);gt(()=>l.value=!0),Zt(()=>l.value=!1),DU({ownerDocument:s},ce(()=>l.value&&Boolean(e.features&16)));let a=FU({ownerDocument:s,container:o,initialFocus:ce(()=>e.initialFocus)},ce(()=>l.value&&Boolean(e.features&2)));BU({ownerDocument:s,container:o,containers:e.containers,previousActiveElement:a},ce(()=>l.value&&Boolean(e.features&8)));let c=Hv();function f(y){let _=ue(o);!_||(w=>w())(()=>{Tt(c.value,{[pr.Forwards]:()=>{Gr(_,Pn.First,{skipElements:[y.relatedTarget]})},[pr.Backwards]:()=>{Gr(_,Pn.Last,{skipElements:[y.relatedTarget]})}})})}let p=_e(!1);function h(y){y.key==="Tab"&&(p.value=!0,requestAnimationFrame(()=>{p.value=!1}))}function v(y){if(!l.value)return;let _=r$(e.containers);ue(o)instanceof HTMLElement&&_.add(ue(o));let w=y.relatedTarget;w instanceof HTMLElement&&w.dataset.headlessuiFocusGuard!=="true"&&(i$(_,w)||(p.value?Gr(ue(o),Tt(c.value,{[pr.Forwards]:()=>Pn.Next,[pr.Backwards]:()=>Pn.Previous})|Pn.WrapAround,{relativeTo:y.target}):y.target instanceof HTMLElement&&es(y.target)))}return()=>{let y={},_={ref:o,onKeydown:h,onFocusout:v},{features:w,initialFocus:I,containers:O,...S}=e;return dt(Fe,[Boolean(w&4)&&dt(_o,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:f,features:to.Focusable}),St({ourProps:_,theirProps:{...t,...S},slot:y,attrs:t,slots:n,name:"FocusTrap"}),Boolean(w&4)&&dt(_o,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:f,features:to.Focusable})])}}}),{features:o$});function MU(e){let t=_e(Bo.slice());return Ft([e],([n],[r])=>{r===!0&&n===!1?Mv(()=>{t.value.splice(0)}):r===!1&&n===!0&&(t.value=Bo.slice())},{flush:"post"}),()=>{var n;return(n=t.value.find(r=>r!=null&&r.isConnected))!=null?n:null}}function DU({ownerDocument:e},t){let n=MU(t);gt(()=>{jt(()=>{var r,o;t.value||((r=e.value)==null?void 0:r.activeElement)===((o=e.value)==null?void 0:o.body)&&es(n())},{flush:"post"})}),Zt(()=>{t.value&&es(n())})}function FU({ownerDocument:e,container:t,initialFocus:n},r){let o=_e(null),s=_e(!1);return gt(()=>s.value=!0),Zt(()=>s.value=!1),gt(()=>{Ft([t,n,r],(l,a)=>{if(l.every((f,p)=>(a==null?void 0:a[p])===f)||!r.value)return;let c=ue(t);c&&Mv(()=>{var f,p;if(!s.value)return;let h=ue(n),v=(f=e.value)==null?void 0:f.activeElement;if(h){if(h===v){o.value=v;return}}else if(c.contains(v)){o.value=v;return}h?es(h):Gr(c,Pn.First|Pn.NoScroll)===ga.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),o.value=(p=e.value)==null?void 0:p.activeElement})},{immediate:!0,flush:"post"})}),o}function BU({ownerDocument:e,container:t,containers:n,previousActiveElement:r},o){var s;jv((s=e.value)==null?void 0:s.defaultView,"focus",l=>{if(!o.value)return;let a=r$(n);ue(t)instanceof HTMLElement&&a.add(ue(t));let c=r.value;if(!c)return;let f=l.target;f&&f instanceof HTMLElement?i$(a,f)?(r.value=f,es(f)):(l.preventDefault(),l.stopPropagation(),es(c)):es(r.value)},!0)}function i$(e,t){for(let n of e)if(n.contains(t))return!0;return!1}function UU(e){let t=nd(e.getSnapshot());return Zt(e.subscribe(()=>{t.value=e.getSnapshot()})),t}function jU(e,t){let n=e(),r=new Set;return{getSnapshot(){return n},subscribe(o){return r.add(o),()=>r.delete(o)},dispatch(o,...s){let l=t[o].call(n,...s);l&&(n=l,r.forEach(a=>a()))}}}function HU(){let e;return{before({doc:t}){var n;let r=t.documentElement;e=((n=t.defaultView)!=null?n:window).innerWidth-r.clientWidth},after({doc:t,d:n}){let r=t.documentElement,o=r.clientWidth-r.offsetWidth,s=e-o;n.style(r,"paddingRight",`${s}px`)}}}function VU(){return U2()?{before({doc:e,d:t,meta:n}){function r(o){return n.containers.flatMap(s=>s()).some(s=>s.contains(o))}t.microTask(()=>{var o;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let a=wi();a.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>a.dispose()))}let s=(o=window.scrollY)!=null?o:window.pageYOffset,l=null;t.addEventListener(e,"click",a=>{if(a.target instanceof HTMLElement)try{let c=a.target.closest("a");if(!c)return;let{hash:f}=new URL(c.href),p=e.querySelector(f);p&&!r(p)&&(l=p)}catch{}},!0),t.addEventListener(e,"touchstart",a=>{if(a.target instanceof HTMLElement)if(r(a.target)){let c=a.target;for(;c.parentElement&&r(c.parentElement);)c=c.parentElement;t.style(c,"overscrollBehavior","contain")}else t.style(a.target,"touchAction","none")}),t.addEventListener(e,"touchmove",a=>{if(a.target instanceof HTMLElement){if(a.target.tagName==="INPUT")return;if(r(a.target)){let c=a.target;for(;c.parentElement&&c.dataset.headlessuiPortal!==""&&!(c.scrollHeight>c.clientHeight||c.scrollWidth>c.clientWidth);)c=c.parentElement;c.dataset.headlessuiPortal===""&&a.preventDefault()}else a.preventDefault()}},{passive:!1}),t.add(()=>{var a;let c=(a=window.scrollY)!=null?a:window.pageYOffset;s!==c&&window.scrollTo(0,s),l&&l.isConnected&&(l.scrollIntoView({block:"nearest"}),l=null)})})}}:{}}function WU(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function zU(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let Ki=jU(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:wi(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let r={doc:e,d:t,meta:zU(n)},o=[VU(),HU(),WU()];o.forEach(({before:s})=>s==null?void 0:s(r)),o.forEach(({after:s})=>s==null?void 0:s(r))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});Ki.subscribe(()=>{let e=Ki.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let r=t.get(n.doc)==="hidden",o=n.count!==0;(o&&!r||!o&&r)&&Ki.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&Ki.dispatch("TEARDOWN",n)}});function qU(e,t,n){let r=UU(Ki),o=ce(()=>{let s=e.value?r.value.get(e.value):void 0;return s?s.count>0:!1});return Ft([e,t],([s,l],[a],c)=>{if(!s||!l)return;Ki.dispatch("PUSH",s,n);let f=!1;c(()=>{f||(Ki.dispatch("POP",a!=null?a:s,n),f=!0)})},{immediate:!0}),o}let Dp=new Map,Ll=new Map;function M1(e,t=_e(!0)){jt(n=>{var r;if(!t.value)return;let o=ue(e);if(!o)return;n(function(){var l;if(!o)return;let a=(l=Ll.get(o))!=null?l:1;if(a===1?Ll.delete(o):Ll.set(o,a-1),a!==1)return;let c=Dp.get(o);c&&(c["aria-hidden"]===null?o.removeAttribute("aria-hidden"):o.setAttribute("aria-hidden",c["aria-hidden"]),o.inert=c.inert,Dp.delete(o))});let s=(r=Ll.get(o))!=null?r:0;Ll.set(o,s+1),s===0&&(Dp.set(o,{"aria-hidden":o.getAttribute("aria-hidden"),inert:o.inert}),o.setAttribute("aria-hidden","true"),o.inert=!0)})}function s$({defaultContainers:e=[],portals:t,mainTreeNodeRef:n}={}){let r=_e(null),o=jr(r);function s(){var l,a,c;let f=[];for(let p of e)p!==null&&(p instanceof HTMLElement?f.push(p):"value"in p&&p.value instanceof HTMLElement&&f.push(p.value));if(t!=null&&t.value)for(let p of t.value)f.push(p);for(let p of(l=o==null?void 0:o.querySelectorAll("html > *, body > *"))!=null?l:[])p!==document.body&&p!==document.head&&p instanceof HTMLElement&&p.id!=="headlessui-portal-root"&&(p.contains(ue(r))||p.contains((c=(a=ue(r))==null?void 0:a.getRootNode())==null?void 0:c.host)||f.some(h=>p.contains(h))||f.push(p));return f}return{resolveContainers:s,contains(l){return s().some(a=>a.contains(l))},mainTreeNodeRef:r,MainTreeNode(){return n!=null?null:dt(_o,{features:to.Hidden,ref:r})}}}function KU(){let e=_e(null);return{mainTreeNodeRef:e,MainTreeNode(){return dt(_o,{features:to.Hidden,ref:e})}}}let l$=Symbol("ForcePortalRootContext");function GU(){return kt(l$,!1)}let Lh=ve({name:"ForcePortalRoot",props:{as:{type:[Object,String],default:"template"},force:{type:Boolean,default:!1}},setup(e,{slots:t,attrs:n}){return Yt(l$,e.force),()=>{let{force:r,...o}=e;return St({theirProps:o,ourProps:{},slot:{},slots:t,attrs:n,name:"ForcePortalRoot"})}}}),a$=Symbol("StackContext");var Nh=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(Nh||{});function XU(){return kt(a$,()=>{})}function JU({type:e,enabled:t,element:n,onUpdate:r}){let o=XU();function s(...l){r==null||r(...l),o(...l)}gt(()=>{Ft(t,(l,a)=>{l?s(0,e,n):a===!0&&s(1,e,n)},{immediate:!0,flush:"sync"})}),Zt(()=>{t.value&&s(1,e,n)}),Yt(a$,s)}let u$=Symbol("DescriptionContext");function YU(){let e=kt(u$,null);if(e===null)throw new Error("Missing parent");return e}function c$({slot:e=_e({}),name:t="Description",props:n={}}={}){let r=_e([]);function o(s){return r.value.push(s),()=>{let l=r.value.indexOf(s);l!==-1&&r.value.splice(l,1)}}return Yt(u$,{register:o,slot:e,name:t,props:n}),ce(()=>r.value.length>0?r.value.join(" "):void 0)}let Ute=ve({name:"Description",props:{as:{type:[Object,String],default:"p"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n}){var r;let o=(r=e.id)!=null?r:`headlessui-description-${zt()}`,s=YU();return gt(()=>Zt(s.register(o))),()=>{let{name:l="Description",slot:a=_e({}),props:c={}}=s,{...f}=e,p={...Object.entries(c).reduce((h,[v,y])=>Object.assign(h,{[v]:jn(y)}),{}),id:o};return St({ourProps:p,theirProps:f,slot:a.value,attrs:t,slots:n,name:l})}}});function ZU(e){let t=jr(e);if(!t){if(e===null)return null;throw new Error(`[Headless UI]: Cannot find ownerDocument for contextElement: ${e}`)}let n=t.getElementById("headlessui-portal-root");if(n)return n;let r=t.createElement("div");return r.setAttribute("id","headlessui-portal-root"),t.body.appendChild(r)}const Mh=new WeakMap;function QU(e){var t;return(t=Mh.get(e))!=null?t:0}function D1(e,t){let n=t(QU(e));return n<=0?Mh.delete(e):Mh.set(e,n),n}let d$=ve({name:"Portal",props:{as:{type:[Object,String],default:"div"}},setup(e,{slots:t,attrs:n}){let r=_e(null),o=ce(()=>jr(r)),s=GU(),l=kt(p$,null),a=_e(s===!0||l==null?ZU(r.value):l.resolveTarget());a.value&&D1(a.value,v=>v+1);let c=_e(!1);gt(()=>{c.value=!0}),jt(()=>{s||l!=null&&(a.value=l.resolveTarget())});let f=kt(Dh,null),p=!1,h=Ko();return Ft(r,()=>{if(p||!f)return;let v=ue(r);v&&(Zt(f.register(v),h),p=!0)}),Zt(()=>{var v,y;let _=(v=o.value)==null?void 0:v.getElementById("headlessui-portal-root");!_||a.value!==_||D1(a.value,w=>w-1)||a.value.children.length>0||(y=a.value.parentElement)==null||y.removeChild(a.value)}),()=>{if(!c.value||a.value===null)return null;let v={ref:r,"data-headlessui-portal":""};return dt(lw,{to:a.value},St({ourProps:v,theirProps:e,slot:{},attrs:n,slots:t,name:"Portal"}))}}}),Dh=Symbol("PortalParentContext");function f$(){let e=kt(Dh,null),t=_e([]);function n(s){return t.value.push(s),e&&e.register(s),()=>r(s)}function r(s){let l=t.value.indexOf(s);l!==-1&&t.value.splice(l,1),e&&e.unregister(s)}let o={register:n,unregister:r,portals:t};return[t,ve({name:"PortalWrapper",setup(s,{slots:l}){return Yt(Dh,o),()=>{var a;return(a=l.default)==null?void 0:a.call(l)}}})]}let p$=Symbol("PortalGroupContext"),ej=ve({name:"PortalGroup",props:{as:{type:[Object,String],default:"template"},target:{type:Object,default:null}},setup(e,{attrs:t,slots:n}){let r=Si({resolveTarget(){return e.target}});return Yt(p$,r),()=>{let{target:o,...s}=e;return St({theirProps:s,ourProps:{},slot:{},attrs:t,slots:n,name:"PortalGroup"})}}});var tj=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(tj||{});let Fh=Symbol("DialogContext");function Ba(e){let t=kt(Fh,null);if(t===null){let n=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Ba),n}return t}let Ju="DC8F892D-2EBD-447C-A4C8-A03058436FF4",nj=ve({name:"Dialog",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},open:{type:[Boolean,String],default:Ju},initialFocus:{type:Object,default:null},id:{type:String,default:null},role:{type:String,default:"dialog"}},emits:{close:e=>!0},setup(e,{emit:t,attrs:n,slots:r,expose:o}){var s,l;let a=(s=e.id)!=null?s:`headlessui-dialog-${zt()}`,c=_e(!1);gt(()=>{c.value=!0});let f=!1,p=ce(()=>e.role==="dialog"||e.role==="alertdialog"?e.role:(f||(f=!0,console.warn(`Invalid role [${p}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")),h=_e(0),v=ps(),y=ce(()=>e.open===Ju&&v!==null?(v.value&Pt.Open)===Pt.Open:e.open),_=_e(null),w=ce(()=>jr(_));if(o({el:_,$el:_}),!(e.open!==Ju||v!==null))throw new Error("You forgot to provide an `open` prop to the `Dialog`.");if(typeof y.value!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${y.value===Ju?void 0:e.open}`);let I=ce(()=>c.value&&y.value?0:1),O=ce(()=>I.value===0),S=ce(()=>h.value>1),E=kt(Fh,null)!==null,[T,$]=f$(),{resolveContainers:P,mainTreeNodeRef:k,MainTreeNode:A}=s$({portals:T,defaultContainers:[ce(()=>{var Le;return(Le=Oe.panelRef.value)!=null?Le:_.value})]}),H=ce(()=>S.value?"parent":"leaf"),D=ce(()=>v!==null?(v.value&Pt.Closing)===Pt.Closing:!1),F=ce(()=>E||D.value?!1:O.value),z=ce(()=>{var Le,Ke,Q;return(Q=Array.from((Ke=(Le=w.value)==null?void 0:Le.querySelectorAll("body > *"))!=null?Ke:[]).find(ae=>ae.id==="headlessui-portal-root"?!1:ae.contains(ue(k))&&ae instanceof HTMLElement))!=null?Q:null});M1(z,F);let K=ce(()=>S.value?!0:O.value),te=ce(()=>{var Le,Ke,Q;return(Q=Array.from((Ke=(Le=w.value)==null?void 0:Le.querySelectorAll("[data-headlessui-portal]"))!=null?Ke:[]).find(ae=>ae.contains(ue(k))&&ae instanceof HTMLElement))!=null?Q:null});M1(te,K),JU({type:"Dialog",enabled:ce(()=>I.value===0),element:_,onUpdate:(Le,Ke)=>{if(Ke==="Dialog")return Tt(Le,{[Nh.Add]:()=>h.value+=1,[Nh.Remove]:()=>h.value-=1})}});let we=c$({name:"DialogDescription",slot:ce(()=>({open:y.value}))}),be=_e(null),Oe={titleId:be,panelRef:_e(null),dialogState:I,setTitleId(Le){be.value!==Le&&(be.value=Le)},close(){t("close",!1)}};Yt(Fh,Oe);let Ae=ce(()=>!(!O.value||S.value));jd(P,(Le,Ke)=>{Le.preventDefault(),Oe.close(),rn(()=>Ke==null?void 0:Ke.focus())},Ae);let Ye=ce(()=>!(S.value||I.value!==0));jv((l=w.value)==null?void 0:l.defaultView,"keydown",Le=>{Ye.value&&(Le.defaultPrevented||Le.key===lt.Escape&&(Le.preventDefault(),Le.stopPropagation(),Oe.close()))});let ft=ce(()=>!(D.value||I.value!==0||E));return qU(w,ft,Le=>{var Ke;return{containers:[...(Ke=Le.containers)!=null?Ke:[],P]}}),jt(Le=>{if(I.value!==0)return;let Ke=ue(_);if(!Ke)return;let Q=new ResizeObserver(ae=>{for(let fe of ae){let Se=fe.target.getBoundingClientRect();Se.x===0&&Se.y===0&&Se.width===0&&Se.height===0&&Oe.close()}});Q.observe(Ke),Le(()=>Q.disconnect())}),()=>{let{open:Le,initialFocus:Ke,...Q}=e,ae={...n,ref:_,id:a,role:p.value,"aria-modal":I.value===0?!0:void 0,"aria-labelledby":be.value,"aria-describedby":we.value},fe={open:I.value===0};return dt(Lh,{force:!0},()=>[dt(d$,()=>dt(ej,{target:_.value},()=>dt(Lh,{force:!1},()=>dt(Rl,{initialFocus:Ke,containers:P,features:O.value?Tt(H.value,{parent:Rl.features.RestoreFocus,leaf:Rl.features.All&~Rl.features.FocusLock}):Rl.features.None},()=>dt($,{},()=>St({ourProps:ae,theirProps:{...Q,...n},slot:fe,attrs:n,slots:r,visible:I.value===0,features:rr.RenderStrategy|rr.Static,name:"Dialog"})))))),dt(A)])}}}),rj=ve({name:"DialogOverlay",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n}){var r;let o=(r=e.id)!=null?r:`headlessui-dialog-overlay-${zt()}`,s=Ba("DialogOverlay");function l(a){a.target===a.currentTarget&&(a.preventDefault(),a.stopPropagation(),s.close())}return()=>{let{...a}=e;return St({ourProps:{id:o,"aria-hidden":!0,onClick:l},theirProps:a,slot:{open:s.dialogState.value===0},attrs:t,slots:n,name:"DialogOverlay"})}}});ve({name:"DialogBackdrop",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:null}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:r}){var o;let s=(o=e.id)!=null?o:`headlessui-dialog-backdrop-${zt()}`,l=Ba("DialogBackdrop"),a=_e(null);return r({el:a,$el:a}),gt(()=>{if(l.panelRef.value===null)throw new Error("A <DialogBackdrop /> component is being used, but a <DialogPanel /> component is missing.")}),()=>{let{...c}=e,f={id:s,ref:a,"aria-hidden":!0};return dt(Lh,{force:!0},()=>dt(d$,()=>St({ourProps:f,theirProps:{...t,...c},slot:{open:l.dialogState.value===0},attrs:t,slots:n,name:"DialogBackdrop"})))}}});ve({name:"DialogPanel",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:r}){var o;let s=(o=e.id)!=null?o:`headlessui-dialog-panel-${zt()}`,l=Ba("DialogPanel");r({el:l.panelRef,$el:l.panelRef});function a(c){c.stopPropagation()}return()=>{let{...c}=e,f={id:s,ref:l.panelRef,onClick:a};return St({ourProps:f,theirProps:c,slot:{open:l.dialogState.value===0},attrs:t,slots:n,name:"DialogPanel"})}}});let oj=ve({name:"DialogTitle",props:{as:{type:[Object,String],default:"h2"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n}){var r;let o=(r=e.id)!=null?r:`headlessui-dialog-title-${zt()}`,s=Ba("DialogTitle");return gt(()=>{s.setTitleId(o),Zt(()=>s.setTitleId(null))}),()=>{let{...l}=e;return St({ourProps:{id:o},theirProps:l,slot:{open:s.dialogState.value===0},attrs:t,slots:n,name:"DialogTitle"})}}}),F1=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function B1(e){var t,n;let r=(t=e.innerText)!=null?t:"",o=e.cloneNode(!0);if(!(o instanceof HTMLElement))return r;let s=!1;for(let a of o.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))a.remove(),s=!0;let l=s?(n=o.innerText)!=null?n:"":r;return F1.test(l)&&(l=l.replace(F1,"")),l}function ij(e){let t=e.getAttribute("aria-label");if(typeof t=="string")return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let r=n.split(" ").map(o=>{let s=document.getElementById(o);if(s){let l=s.getAttribute("aria-label");return typeof l=="string"?l.trim():B1(s).trim()}return null}).filter(Boolean);if(r.length>0)return r.join(", ")}return B1(e).trim()}function sj(e){let t=_e(""),n=_e("");return()=>{let r=ue(e);if(!r)return"";let o=r.innerText;if(t.value===o)return n.value;let s=ij(r).trim().toLowerCase();return t.value=o,n.value=s,s}}function lj(e,t){return e===t}var aj=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(aj||{}),uj=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(uj||{}),cj=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(cj||{});function dj(e){requestAnimationFrame(()=>requestAnimationFrame(e))}let h$=Symbol("ListboxContext");function Ua(e){let t=kt(h$,null);if(t===null){let n=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Ua),n}return t}let Vv=ve({name:"Listbox",emits:{"update:modelValue":e=>!0},props:{as:{type:[Object,String],default:"template"},disabled:{type:[Boolean],default:!1},by:{type:[String,Function],default:()=>lj},horizontal:{type:[Boolean],default:!1},modelValue:{type:[Object,String,Number,Boolean],default:void 0},defaultValue:{type:[Object,String,Number,Boolean],default:void 0},form:{type:String,optional:!0},name:{type:String,optional:!0},multiple:{type:[Boolean],default:!1}},inheritAttrs:!1,setup(e,{slots:t,attrs:n,emit:r}){let o=_e(1),s=_e(null),l=_e(null),a=_e(null),c=_e([]),f=_e(""),p=_e(null),h=_e(1);function v(E=T=>T){let T=p.value!==null?c.value[p.value]:null,$=Fv(E(c.value.slice()),k=>ue(k.dataRef.domRef)),P=T?$.indexOf(T):null;return P===-1&&(P=null),{options:$,activeOptionIndex:P}}let y=ce(()=>e.multiple?1:0),[_,w]=Nv(ce(()=>e.modelValue),E=>r("update:modelValue",E),ce(()=>e.defaultValue)),I=ce(()=>_.value===void 0?Tt(y.value,{[1]:[],[0]:void 0}):_.value),O={listboxState:o,value:I,mode:y,compare(E,T){if(typeof e.by=="string"){let $=e.by;return(E==null?void 0:E[$])===(T==null?void 0:T[$])}return e.by(E,T)},orientation:ce(()=>e.horizontal?"horizontal":"vertical"),labelRef:s,buttonRef:l,optionsRef:a,disabled:ce(()=>e.disabled),options:c,searchQuery:f,activeOptionIndex:p,activationTrigger:h,closeListbox(){e.disabled||o.value!==1&&(o.value=1,p.value=null)},openListbox(){e.disabled||o.value!==0&&(o.value=0)},goToOption(E,T,$){if(e.disabled||o.value===1)return;let P=v(),k=Rh(E===xt.Specific?{focus:xt.Specific,id:T}:{focus:E},{resolveItems:()=>P.options,resolveActiveIndex:()=>P.activeOptionIndex,resolveId:A=>A.id,resolveDisabled:A=>A.dataRef.disabled});f.value="",p.value=k,h.value=$!=null?$:1,c.value=P.options},search(E){if(e.disabled||o.value===1)return;let T=f.value!==""?0:1;f.value+=E.toLowerCase();let $=(p.value!==null?c.value.slice(p.value+T).concat(c.value.slice(0,p.value+T)):c.value).find(k=>k.dataRef.textValue.startsWith(f.value)&&!k.dataRef.disabled),P=$?c.value.indexOf($):-1;P===-1||P===p.value||(p.value=P,h.value=1)},clearSearch(){e.disabled||o.value!==1&&f.value!==""&&(f.value="")},registerOption(E,T){let $=v(P=>[...P,{id:E,dataRef:T}]);c.value=$.options,p.value=$.activeOptionIndex},unregisterOption(E){let T=v($=>{let P=$.findIndex(k=>k.id===E);return P!==-1&&$.splice(P,1),$});c.value=T.options,p.value=T.activeOptionIndex,h.value=1},theirOnChange(E){e.disabled||w(E)},select(E){e.disabled||w(Tt(y.value,{[0]:()=>E,[1]:()=>{let T=Ue(O.value.value).slice(),$=Ue(E),P=T.findIndex(k=>O.compare($,Ue(k)));return P===-1?T.push($):T.splice(P,1),T}}))}};jd([l,a],(E,T)=>{var $;O.closeListbox(),Dv(T,Ud.Loose)||(E.preventDefault(),($=ue(l))==null||$.focus())},ce(()=>o.value===0)),Yt(h$,O),Vd(ce(()=>Tt(o.value,{[0]:Pt.Open,[1]:Pt.Closed})));let S=ce(()=>{var E;return(E=ue(l))==null?void 0:E.closest("form")});return gt(()=>{Ft([S],()=>{if(!S.value||e.defaultValue===void 0)return;function E(){O.theirOnChange(e.defaultValue)}return S.value.addEventListener("reset",E),()=>{var T;(T=S.value)==null||T.removeEventListener("reset",E)}},{immediate:!0})}),()=>{let{name:E,modelValue:T,disabled:$,form:P,...k}=e,A={open:o.value===0,disabled:$,value:I.value};return dt(Fe,[...E!=null&&I.value!=null?Uv({[E]:I.value}).map(([H,D])=>dt(_o,Bv({features:to.Hidden,key:H,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:P,disabled:$,name:H,value:D}))):[],St({ourProps:{},theirProps:{...n,...fs(k,["defaultValue","onUpdate:modelValue","horizontal","multiple","by"])},slot:A,slots:t,attrs:n,name:"Listbox"})])}}}),Wv=ve({name:"ListboxLabel",props:{as:{type:[Object,String],default:"label"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n}){var r;let o=(r=e.id)!=null?r:`headlessui-listbox-label-${zt()}`,s=Ua("ListboxLabel");function l(){var a;(a=ue(s.buttonRef))==null||a.focus({preventScroll:!0})}return()=>{let a={open:s.listboxState.value===0,disabled:s.disabled.value},{...c}=e,f={id:o,ref:s.labelRef,onClick:l};return St({ourProps:f,theirProps:c,slot:a,attrs:t,slots:n,name:"ListboxLabel"})}}}),zv=ve({name:"ListboxButton",props:{as:{type:[Object,String],default:"button"},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:r}){var o;let s=(o=e.id)!=null?o:`headlessui-listbox-button-${zt()}`,l=Ua("ListboxButton");r({el:l.buttonRef,$el:l.buttonRef});function a(h){switch(h.key){case lt.Space:case lt.Enter:case lt.ArrowDown:h.preventDefault(),l.openListbox(),rn(()=>{var v;(v=ue(l.optionsRef))==null||v.focus({preventScroll:!0}),l.value.value||l.goToOption(xt.First)});break;case lt.ArrowUp:h.preventDefault(),l.openListbox(),rn(()=>{var v;(v=ue(l.optionsRef))==null||v.focus({preventScroll:!0}),l.value.value||l.goToOption(xt.Last)});break}}function c(h){switch(h.key){case lt.Space:h.preventDefault();break}}function f(h){l.disabled.value||(l.listboxState.value===0?(l.closeListbox(),rn(()=>{var v;return(v=ue(l.buttonRef))==null?void 0:v.focus({preventScroll:!0})})):(h.preventDefault(),l.openListbox(),dj(()=>{var v;return(v=ue(l.optionsRef))==null?void 0:v.focus({preventScroll:!0})})))}let p=Hd(ce(()=>({as:e.as,type:t.type})),l.buttonRef);return()=>{var h,v;let y={open:l.listboxState.value===0,disabled:l.disabled.value,value:l.value.value},{..._}=e,w={ref:l.buttonRef,id:s,type:p.value,"aria-haspopup":"listbox","aria-controls":(h=ue(l.optionsRef))==null?void 0:h.id,"aria-expanded":l.listboxState.value===0,"aria-labelledby":l.labelRef.value?[(v=ue(l.labelRef))==null?void 0:v.id,s].join(" "):void 0,disabled:l.disabled.value===!0?!0:void 0,onKeydown:a,onKeyup:c,onClick:f};return St({ourProps:w,theirProps:_,slot:y,attrs:t,slots:n,name:"ListboxButton"})}}}),qv=ve({name:"ListboxOptions",props:{as:{type:[Object,String],default:"ul"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:r}){var o;let s=(o=e.id)!=null?o:`headlessui-listbox-options-${zt()}`,l=Ua("ListboxOptions"),a=_e(null);r({el:l.optionsRef,$el:l.optionsRef});function c(h){switch(a.value&&clearTimeout(a.value),h.key){case lt.Space:if(l.searchQuery.value!=="")return h.preventDefault(),h.stopPropagation(),l.search(h.key);case lt.Enter:if(h.preventDefault(),h.stopPropagation(),l.activeOptionIndex.value!==null){let v=l.options.value[l.activeOptionIndex.value];l.select(v.dataRef.value)}l.mode.value===0&&(l.closeListbox(),rn(()=>{var v;return(v=ue(l.buttonRef))==null?void 0:v.focus({preventScroll:!0})}));break;case Tt(l.orientation.value,{vertical:lt.ArrowDown,horizontal:lt.ArrowRight}):return h.preventDefault(),h.stopPropagation(),l.goToOption(xt.Next);case Tt(l.orientation.value,{vertical:lt.ArrowUp,horizontal:lt.ArrowLeft}):return h.preventDefault(),h.stopPropagation(),l.goToOption(xt.Previous);case lt.Home:case lt.PageUp:return h.preventDefault(),h.stopPropagation(),l.goToOption(xt.First);case lt.End:case lt.PageDown:return h.preventDefault(),h.stopPropagation(),l.goToOption(xt.Last);case lt.Escape:h.preventDefault(),h.stopPropagation(),l.closeListbox(),rn(()=>{var v;return(v=ue(l.buttonRef))==null?void 0:v.focus({preventScroll:!0})});break;case lt.Tab:h.preventDefault(),h.stopPropagation();break;default:h.key.length===1&&(l.search(h.key),a.value=setTimeout(()=>l.clearSearch(),350));break}}let f=ps(),p=ce(()=>f!==null?(f.value&Pt.Open)===Pt.Open:l.listboxState.value===0);return()=>{var h,v;let y={open:l.listboxState.value===0},{..._}=e,w={"aria-activedescendant":l.activeOptionIndex.value===null||(h=l.options.value[l.activeOptionIndex.value])==null?void 0:h.id,"aria-multiselectable":l.mode.value===1?!0:void 0,"aria-labelledby":(v=ue(l.buttonRef))==null?void 0:v.id,"aria-orientation":l.orientation.value,id:s,onKeydown:c,role:"listbox",tabIndex:0,ref:l.optionsRef};return St({ourProps:w,theirProps:_,slot:y,attrs:t,slots:n,features:rr.RenderStrategy|rr.Static,visible:p.value,name:"ListboxOptions"})}}}),Kv=ve({name:"ListboxOption",props:{as:{type:[Object,String],default:"li"},value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1},id:{type:String,default:null}},setup(e,{slots:t,attrs:n,expose:r}){var o;let s=(o=e.id)!=null?o:`headlessui-listbox-option-${zt()}`,l=Ua("ListboxOption"),a=_e(null);r({el:a,$el:a});let c=ce(()=>l.activeOptionIndex.value!==null?l.options.value[l.activeOptionIndex.value].id===s:!1),f=ce(()=>Tt(l.mode.value,{[0]:()=>l.compare(Ue(l.value.value),Ue(e.value)),[1]:()=>Ue(l.value.value).some(E=>l.compare(Ue(E),Ue(e.value)))})),p=ce(()=>Tt(l.mode.value,{[1]:()=>{var E;let T=Ue(l.value.value);return((E=l.options.value.find($=>T.some(P=>l.compare(Ue(P),Ue($.dataRef.value)))))==null?void 0:E.id)===s},[0]:()=>f.value})),h=sj(a),v=ce(()=>({disabled:e.disabled,value:e.value,get textValue(){return h()},domRef:a}));gt(()=>l.registerOption(s,v)),Zt(()=>l.unregisterOption(s)),gt(()=>{Ft([l.listboxState,f],()=>{l.listboxState.value===0&&f.value&&Tt(l.mode.value,{[1]:()=>{p.value&&l.goToOption(xt.Specific,s)},[0]:()=>{l.goToOption(xt.Specific,s)}})},{immediate:!0})}),jt(()=>{l.listboxState.value===0&&c.value&&l.activationTrigger.value!==0&&rn(()=>{var E,T;return(T=(E=ue(a))==null?void 0:E.scrollIntoView)==null?void 0:T.call(E,{block:"nearest"})})});function y(E){if(e.disabled)return E.preventDefault();l.select(e.value),l.mode.value===0&&(l.closeListbox(),rn(()=>{var T;return(T=ue(l.buttonRef))==null?void 0:T.focus({preventScroll:!0})}))}function _(){if(e.disabled)return l.goToOption(xt.Nothing);l.goToOption(xt.Specific,s)}let w=V2();function I(E){w.update(E)}function O(E){w.wasMoved(E)&&(e.disabled||c.value||l.goToOption(xt.Specific,s,0))}function S(E){w.wasMoved(E)&&(e.disabled||c.value&&l.goToOption(xt.Nothing))}return()=>{let{disabled:E}=e,T={active:c.value,selected:f.value,disabled:E},{value:$,disabled:P,...k}=e,A={id:s,ref:a,role:"option",tabIndex:E===!0?void 0:-1,"aria-disabled":E===!0?!0:void 0,"aria-selected":f.value,disabled:void 0,onClick:y,onFocus:_,onPointerenter:I,onMouseenter:I,onPointermove:O,onMousemove:O,onPointerleave:S,onMouseleave:S};return St({ourProps:A,theirProps:k,slot:T,attrs:n,slots:t,name:"ListboxOption"})}}});var fj=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(fj||{});let m$=Symbol("PopoverContext");function Wd(e){let t=kt(m$,null);if(t===null){let n=new Error(`<${e} /> is missing a parent <${b$.name} /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Wd),n}return t}let v$=Symbol("PopoverGroupContext");function g$(){return kt(v$,null)}let y$=Symbol("PopoverPanelContext");function pj(){return kt(y$,null)}let b$=ve({name:"Popover",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"}},setup(e,{slots:t,attrs:n,expose:r}){var o;let s=_e(null);r({el:s,$el:s});let l=_e(1),a=_e(null),c=_e(null),f=_e(null),p=_e(null),h=ce(()=>jr(s)),v=ce(()=>{var $,P;if(!ue(a)||!ue(p))return!1;for(let K of document.querySelectorAll("body > *"))if(Number(K==null?void 0:K.contains(ue(a)))^Number(K==null?void 0:K.contains(ue(p))))return!0;let k=Bd(),A=k.indexOf(ue(a)),H=(A+k.length-1)%k.length,D=(A+1)%k.length,F=k[H],z=k[D];return!(($=ue(p))!=null&&$.contains(F))&&!((P=ue(p))!=null&&P.contains(z))}),y={popoverState:l,buttonId:_e(null),panelId:_e(null),panel:p,button:a,isPortalled:v,beforePanelSentinel:c,afterPanelSentinel:f,togglePopover(){l.value=Tt(l.value,{[0]:1,[1]:0})},closePopover(){l.value!==1&&(l.value=1)},close($){y.closePopover();let P=(()=>$?$ instanceof HTMLElement?$:$.value instanceof HTMLElement?ue($):ue(y.button):ue(y.button))();P==null||P.focus()}};Yt(m$,y),Vd(ce(()=>Tt(l.value,{[0]:Pt.Open,[1]:Pt.Closed})));let _={buttonId:y.buttonId,panelId:y.panelId,close(){y.closePopover()}},w=g$(),I=w==null?void 0:w.registerPopover,[O,S]=f$(),E=s$({mainTreeNodeRef:w==null?void 0:w.mainTreeNodeRef,portals:O,defaultContainers:[a,p]});function T(){var $,P,k,A;return(A=w==null?void 0:w.isFocusWithinPopoverGroup())!=null?A:(($=h.value)==null?void 0:$.activeElement)&&(((P=ue(a))==null?void 0:P.contains(h.value.activeElement))||((k=ue(p))==null?void 0:k.contains(h.value.activeElement)))}return jt(()=>I==null?void 0:I(_)),jv((o=h.value)==null?void 0:o.defaultView,"focus",$=>{var P,k;$.target!==window&&$.target instanceof HTMLElement&&l.value===0&&(T()||a&&p&&(E.contains($.target)||(P=ue(y.beforePanelSentinel))!=null&&P.contains($.target)||(k=ue(y.afterPanelSentinel))!=null&&k.contains($.target)||y.closePopover()))},!0),jd(E.resolveContainers,($,P)=>{var k;y.closePopover(),Dv(P,Ud.Loose)||($.preventDefault(),(k=ue(a))==null||k.focus())},ce(()=>l.value===0)),()=>{let $={open:l.value===0,close:y.close};return dt(Fe,[dt(S,{},()=>St({theirProps:{...e,...n},ourProps:{ref:s},slot:$,slots:t,attrs:n,name:"Popover"})),dt(E.MainTreeNode)])}}}),hj=ve({name:"PopoverButton",props:{as:{type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1},id:{type:String,default:null}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:r}){var o;let s=(o=e.id)!=null?o:`headlessui-popover-button-${zt()}`,l=Wd("PopoverButton"),a=ce(()=>jr(l.button));r({el:l.button,$el:l.button}),gt(()=>{l.buttonId.value=s}),Zt(()=>{l.buttonId.value=null});let c=g$(),f=c==null?void 0:c.closeOthers,p=pj(),h=ce(()=>p===null?!1:p.value===l.panelId.value),v=_e(null),y=`headlessui-focus-sentinel-${zt()}`;h.value||jt(()=>{l.button.value=ue(v)});let _=Hd(ce(()=>({as:e.as,type:t.type})),v);function w($){var P,k,A,H,D;if(h.value){if(l.popoverState.value===1)return;switch($.key){case lt.Space:case lt.Enter:$.preventDefault(),(k=(P=$.target).click)==null||k.call(P),l.closePopover(),(A=ue(l.button))==null||A.focus();break}}else switch($.key){case lt.Space:case lt.Enter:$.preventDefault(),$.stopPropagation(),l.popoverState.value===1&&(f==null||f(l.buttonId.value)),l.togglePopover();break;case lt.Escape:if(l.popoverState.value!==0)return f==null?void 0:f(l.buttonId.value);if(!ue(l.button)||(H=a.value)!=null&&H.activeElement&&!((D=ue(l.button))!=null&&D.contains(a.value.activeElement)))return;$.preventDefault(),$.stopPropagation(),l.closePopover();break}}function I($){h.value||$.key===lt.Space&&$.preventDefault()}function O($){var P,k;e.disabled||(h.value?(l.closePopover(),(P=ue(l.button))==null||P.focus()):($.preventDefault(),$.stopPropagation(),l.popoverState.value===1&&(f==null||f(l.buttonId.value)),l.togglePopover(),(k=ue(l.button))==null||k.focus()))}function S($){$.preventDefault(),$.stopPropagation()}let E=Hv();function T(){let $=ue(l.panel);if(!$)return;function P(){Tt(E.value,{[pr.Forwards]:()=>Gr($,Pn.First),[pr.Backwards]:()=>Gr($,Pn.Last)})===ga.Error&&Gr(Bd().filter(k=>k.dataset.headlessuiFocusGuard!=="true"),Tt(E.value,{[pr.Forwards]:Pn.Next,[pr.Backwards]:Pn.Previous}),{relativeTo:ue(l.button)})}P()}return()=>{let $=l.popoverState.value===0,P={open:$},{...k}=e,A=h.value?{ref:v,type:_.value,onKeydown:w,onClick:O}:{ref:v,id:s,type:_.value,"aria-expanded":l.popoverState.value===0,"aria-controls":ue(l.panel)?l.panelId.value:void 0,disabled:e.disabled?!0:void 0,onKeydown:w,onKeyup:I,onClick:O,onMousedown:S};return dt(Fe,[St({ourProps:A,theirProps:{...t,...k},slot:P,attrs:t,slots:n,name:"PopoverButton"}),$&&!h.value&&l.isPortalled.value&&dt(_o,{id:y,features:to.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:T})])}}});ve({name:"PopoverOverlay",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0}},setup(e,{attrs:t,slots:n}){let r=Wd("PopoverOverlay"),o=`headlessui-popover-overlay-${zt()}`,s=ps(),l=ce(()=>s!==null?(s.value&Pt.Open)===Pt.Open:r.popoverState.value===0);function a(){r.closePopover()}return()=>{let c={open:r.popoverState.value===0};return St({ourProps:{id:o,"aria-hidden":!0,onClick:a},theirProps:e,slot:c,attrs:t,slots:n,features:rr.RenderStrategy|rr.Static,visible:l.value,name:"PopoverOverlay"})}}});let mj=ve({name:"PopoverPanel",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},focus:{type:Boolean,default:!1},id:{type:String,default:null}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:r}){var o;let s=(o=e.id)!=null?o:`headlessui-popover-panel-${zt()}`,{focus:l}=e,a=Wd("PopoverPanel"),c=ce(()=>jr(a.panel)),f=`headlessui-focus-sentinel-before-${zt()}`,p=`headlessui-focus-sentinel-after-${zt()}`;r({el:a.panel,$el:a.panel}),gt(()=>{a.panelId.value=s}),Zt(()=>{a.panelId.value=null}),Yt(y$,a.panelId),jt(()=>{var S,E;if(!l||a.popoverState.value!==0||!a.panel)return;let T=(S=c.value)==null?void 0:S.activeElement;(E=ue(a.panel))!=null&&E.contains(T)||Gr(ue(a.panel),Pn.First)});let h=ps(),v=ce(()=>h!==null?(h.value&Pt.Open)===Pt.Open:a.popoverState.value===0);function y(S){var E,T;switch(S.key){case lt.Escape:if(a.popoverState.value!==0||!ue(a.panel)||c.value&&!((E=ue(a.panel))!=null&&E.contains(c.value.activeElement)))return;S.preventDefault(),S.stopPropagation(),a.closePopover(),(T=ue(a.button))==null||T.focus();break}}function _(S){var E,T,$,P,k;let A=S.relatedTarget;A&&ue(a.panel)&&((E=ue(a.panel))!=null&&E.contains(A)||(a.closePopover(),(($=(T=ue(a.beforePanelSentinel))==null?void 0:T.contains)!=null&&$.call(T,A)||(k=(P=ue(a.afterPanelSentinel))==null?void 0:P.contains)!=null&&k.call(P,A))&&A.focus({preventScroll:!0})))}let w=Hv();function I(){let S=ue(a.panel);if(!S)return;function E(){Tt(w.value,{[pr.Forwards]:()=>{var T;Gr(S,Pn.First)===ga.Error&&((T=ue(a.afterPanelSentinel))==null||T.focus())},[pr.Backwards]:()=>{var T;(T=ue(a.button))==null||T.focus({preventScroll:!0})}})}E()}function O(){let S=ue(a.panel);if(!S)return;function E(){Tt(w.value,{[pr.Forwards]:()=>{let T=ue(a.button),$=ue(a.panel);if(!T)return;let P=Bd(),k=P.indexOf(T),A=P.slice(0,k+1),H=[...P.slice(k+1),...A];for(let D of H.slice())if(D.dataset.headlessuiFocusGuard==="true"||$!=null&&$.contains(D)){let F=H.indexOf(D);F!==-1&&H.splice(F,1)}Gr(H,Pn.First,{sorted:!1})},[pr.Backwards]:()=>{var T;Gr(S,Pn.Previous)===ga.Error&&((T=ue(a.button))==null||T.focus())}})}E()}return()=>{let S={open:a.popoverState.value===0,close:a.close},{focus:E,...T}=e,$={ref:a.panel,id:s,onKeydown:y,onFocusout:l&&a.popoverState.value===0?_:void 0,tabIndex:-1};return St({ourProps:$,theirProps:{...t,...T},attrs:t,slot:S,slots:{...n,default:(...P)=>{var k;return[dt(Fe,[v.value&&a.isPortalled.value&&dt(_o,{id:f,ref:a.beforePanelSentinel,features:to.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:I}),(k=n.default)==null?void 0:k.call(n,...P),v.value&&a.isPortalled.value&&dt(_o,{id:p,ref:a.afterPanelSentinel,features:to.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:O})])]}},features:rr.RenderStrategy|rr.Static,visible:v.value,name:"PopoverPanel"})}}});ve({name:"PopoverGroup",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"}},setup(e,{attrs:t,slots:n,expose:r}){let o=_e(null),s=nd([]),l=ce(()=>jr(o)),a=KU();r({el:o,$el:o});function c(v){let y=s.value.indexOf(v);y!==-1&&s.value.splice(y,1)}function f(v){return s.value.push(v),()=>{c(v)}}function p(){var v;let y=l.value;if(!y)return!1;let _=y.activeElement;return(v=ue(o))!=null&&v.contains(_)?!0:s.value.some(w=>{var I,O;return((I=y.getElementById(w.buttonId.value))==null?void 0:I.contains(_))||((O=y.getElementById(w.panelId.value))==null?void 0:O.contains(_))})}function h(v){for(let y of s.value)y.buttonId.value!==v&&y.close()}return Yt(v$,{registerPopover:f,unregisterPopover:c,isFocusWithinPopoverGroup:p,closeOthers:h,mainTreeNodeRef:a.mainTreeNodeRef}),()=>dt(Fe,[St({ourProps:{ref:o},theirProps:{...e,...t},slot:{},attrs:t,slots:n,name:"PopoverGroup"}),dt(a.MainTreeNode)])}});let _$=Symbol("LabelContext");function w$(){let e=kt(_$,null);if(e===null){let t=new Error("You used a <Label /> component, but it is not inside a parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,w$),t}return e}function vj({slot:e={},name:t="Label",props:n={}}={}){let r=_e([]);function o(s){return r.value.push(s),()=>{let l=r.value.indexOf(s);l!==-1&&r.value.splice(l,1)}}return Yt(_$,{register:o,slot:e,name:t,props:n}),ce(()=>r.value.length>0?r.value.join(" "):void 0)}let gj=ve({name:"Label",props:{as:{type:[Object,String],default:"label"},passive:{type:[Boolean],default:!1},id:{type:String,default:null}},setup(e,{slots:t,attrs:n}){var r;let o=(r=e.id)!=null?r:`headlessui-label-${zt()}`,s=w$();return gt(()=>Zt(s.register(o))),()=>{let{name:l="Label",slot:a={},props:c={}}=s,{passive:f,...p}=e,h={...Object.entries(c).reduce((v,[y,_])=>Object.assign(v,{[y]:jn(_)}),{}),id:o};return f&&(delete h.onClick,delete h.htmlFor,delete p.onClick),St({ourProps:h,theirProps:p,slot:a,attrs:n,slots:t,name:l})}}}),S$=Symbol("GroupContext"),yj=ve({name:"SwitchGroup",props:{as:{type:[Object,String],default:"template"}},setup(e,{slots:t,attrs:n}){let r=_e(null),o=vj({name:"SwitchLabel",props:{htmlFor:ce(()=>{var l;return(l=r.value)==null?void 0:l.id}),onClick(l){r.value&&(l.currentTarget.tagName==="LABEL"&&l.preventDefault(),r.value.click(),r.value.focus({preventScroll:!0}))}}}),s=c$({name:"SwitchDescription"});return Yt(S$,{switchRef:r,labelledby:o,describedby:s}),()=>St({theirProps:e,ourProps:{},slot:{},slots:t,attrs:n,name:"SwitchGroup"})}}),bj=ve({name:"Switch",emits:{"update:modelValue":e=>!0},props:{as:{type:[Object,String],default:"button"},modelValue:{type:Boolean,default:void 0},defaultChecked:{type:Boolean,optional:!0},form:{type:String,optional:!0},name:{type:String,optional:!0},value:{type:String,optional:!0},id:{type:String,default:null},disabled:{type:Boolean,default:!1},tabIndex:{type:Number,default:0}},inheritAttrs:!1,setup(e,{emit:t,attrs:n,slots:r,expose:o}){var s;let l=(s=e.id)!=null?s:`headlessui-switch-${zt()}`,a=kt(S$,null),[c,f]=Nv(ce(()=>e.modelValue),S=>t("update:modelValue",S),ce(()=>e.defaultChecked));function p(){f(!c.value)}let h=_e(null),v=a===null?h:a.switchRef,y=Hd(ce(()=>({as:e.as,type:n.type})),v);o({el:v,$el:v});function _(S){S.preventDefault(),p()}function w(S){S.key===lt.Space?(S.preventDefault(),p()):S.key===lt.Enter&&AU(S.currentTarget)}function I(S){S.preventDefault()}let O=ce(()=>{var S,E;return(E=(S=ue(v))==null?void 0:S.closest)==null?void 0:E.call(S,"form")});return gt(()=>{Ft([O],()=>{if(!O.value||e.defaultChecked===void 0)return;function S(){f(e.defaultChecked)}return O.value.addEventListener("reset",S),()=>{var E;(E=O.value)==null||E.removeEventListener("reset",S)}},{immediate:!0})}),()=>{let{name:S,value:E,form:T,tabIndex:$,...P}=e,k={checked:c.value},A={id:l,ref:v,role:"switch",type:y.value,tabIndex:$===-1?0:$,"aria-checked":c.value,"aria-labelledby":a==null?void 0:a.labelledby.value,"aria-describedby":a==null?void 0:a.describedby.value,onClick:_,onKeyup:w,onKeypress:I};return dt(Fe,[S!=null&&c.value!=null?dt(_o,Bv({features:to.Hidden,as:"input",type:"checkbox",hidden:!0,readOnly:!0,checked:c.value,form:T,disabled:P.disabled,name:S,value:E})):null,St({ourProps:A,theirProps:{...n,...fs(P,["modelValue","defaultChecked"])},slot:k,attrs:n,slots:r,name:"Switch"})])}}}),_j=gj;function wj(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function Fp(e,...t){e&&t.length>0&&e.classList.add(...t)}function Yu(e,...t){e&&t.length>0&&e.classList.remove(...t)}var Bh=(e=>(e.Finished="finished",e.Cancelled="cancelled",e))(Bh||{});function Sj(e,t){let n=wi();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:o}=getComputedStyle(e),[s,l]=[r,o].map(a=>{let[c=0]=a.split(",").filter(Boolean).map(f=>f.includes("ms")?parseFloat(f):parseFloat(f)*1e3).sort((f,p)=>p-f);return c});return s!==0?n.setTimeout(()=>t("finished"),s+l):t("finished"),n.add(()=>t("cancelled")),n.dispose}function U1(e,t,n,r,o,s){let l=wi(),a=s!==void 0?wj(s):()=>{};return Yu(e,...o),Fp(e,...t,...n),l.nextFrame(()=>{Yu(e,...n),Fp(e,...r),l.add(Sj(e,c=>(Yu(e,...r,...t),Fp(e,...o),a(c))))}),l.add(()=>Yu(e,...t,...n,...r,...o)),l.add(()=>a("cancelled")),l.dispose}function Bi(e=""){return e.split(/\s+/).filter(t=>t.length>1)}let Gv=Symbol("TransitionContext");var Ej=(e=>(e.Visible="visible",e.Hidden="hidden",e))(Ej||{});function xj(){return kt(Gv,null)!==null}function $j(){let e=kt(Gv,null);if(e===null)throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");return e}function Cj(){let e=kt(Xv,null);if(e===null)throw new Error("A <TransitionChild /> is used but it is missing a parent <TransitionRoot />.");return e}let Xv=Symbol("NestingContext");function zd(e){return"children"in e?zd(e.children):e.value.filter(({state:t})=>t==="visible").length>0}function E$(e){let t=_e([]),n=_e(!1);gt(()=>n.value=!0),Zt(()=>n.value=!1);function r(s,l=fi.Hidden){let a=t.value.findIndex(({id:c})=>c===s);a!==-1&&(Tt(l,{[fi.Unmount](){t.value.splice(a,1)},[fi.Hidden](){t.value[a].state="hidden"}}),!zd(t)&&n.value&&(e==null||e()))}function o(s){let l=t.value.find(({id:a})=>a===s);return l?l.state!=="visible"&&(l.state="visible"):t.value.push({id:s,state:"visible"}),()=>r(s,fi.Unmount)}return{children:t,register:o,unregister:r}}let x$=rr.RenderStrategy,$$=ve({props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(e,{emit:t,attrs:n,slots:r,expose:o}){let s=_e(0);function l(){s.value|=Pt.Opening,t("beforeEnter")}function a(){s.value&=~Pt.Opening,t("afterEnter")}function c(){s.value|=Pt.Closing,t("beforeLeave")}function f(){s.value&=~Pt.Closing,t("afterLeave")}if(!xj()&&CU())return()=>dt(C$,{...e,onBeforeEnter:l,onAfterEnter:a,onBeforeLeave:c,onAfterLeave:f},r);let p=_e(null),h=ce(()=>e.unmount?fi.Unmount:fi.Hidden);o({el:p,$el:p});let{show:v,appear:y}=$j(),{register:_,unregister:w}=Cj(),I=_e(v.value?"visible":"hidden"),O={value:!0},S=zt(),E={value:!1},T=E$(()=>{!E.value&&I.value!=="hidden"&&(I.value="hidden",w(S),f())});gt(()=>{let K=_(S);Zt(K)}),jt(()=>{if(h.value===fi.Hidden&&S){if(v.value&&I.value!=="visible"){I.value="visible";return}Tt(I.value,{hidden:()=>w(S),visible:()=>_(S)})}});let $=Bi(e.enter),P=Bi(e.enterFrom),k=Bi(e.enterTo),A=Bi(e.entered),H=Bi(e.leave),D=Bi(e.leaveFrom),F=Bi(e.leaveTo);gt(()=>{jt(()=>{if(I.value==="visible"){let K=ue(p);if(K instanceof Comment&&K.data==="")throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}})});function z(K){let te=O.value&&!y.value,we=ue(p);!we||!(we instanceof HTMLElement)||te||(E.value=!0,v.value&&l(),v.value||c(),K(v.value?U1(we,$,P,k,A,be=>{E.value=!1,be===Bh.Finished&&a()}):U1(we,H,D,F,A,be=>{E.value=!1,be===Bh.Finished&&(zd(T)||(I.value="hidden",w(S),f()))})))}return gt(()=>{Ft([v],(K,te,we)=>{z(we),O.value=!1},{immediate:!0})}),Yt(Xv,T),Vd(ce(()=>Tt(I.value,{visible:Pt.Open,hidden:Pt.Closed})|s.value)),()=>{let{appear:K,show:te,enter:we,enterFrom:be,enterTo:Oe,entered:Ae,leave:Ye,leaveFrom:ft,leaveTo:Le,...Ke}=e,Q={ref:p},ae={...Ke,...y.value&&v.value&&Fa.isServer?{class:wt([n.class,Ke.class,...$,...P])}:{}};return St({theirProps:ae,ourProps:Q,slot:{},slots:r,attrs:n,features:x$,visible:I.value==="visible",name:"TransitionChild"})}}}),Tj=$$,C$=ve({inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:""},enterFrom:{type:[String],default:""},enterTo:{type:[String],default:""},entered:{type:[String],default:""},leave:{type:[String],default:""},leaveFrom:{type:[String],default:""},leaveTo:{type:[String],default:""}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(e,{emit:t,attrs:n,slots:r}){let o=ps(),s=ce(()=>e.show===null&&o!==null?(o.value&Pt.Open)===Pt.Open:e.show);jt(()=>{if(![!0,!1].includes(s.value))throw new Error('A <Transition /> is used but it is missing a `:show="true | false"` prop.')});let l=_e(s.value?"visible":"hidden"),a=E$(()=>{l.value="hidden"}),c=_e(!0),f={show:s,appear:ce(()=>e.appear||!c.value)};return gt(()=>{jt(()=>{c.value=!1,s.value?l.value="visible":zd(a)||(l.value="hidden")})}),Yt(Xv,a),Yt(Gv,f),()=>{let p=fs(e,["show","appear","unmount","onBeforeEnter","onBeforeLeave","onAfterEnter","onAfterLeave"]),h={unmount:e.unmount};return St({ourProps:{...h,as:"template"},theirProps:{},slot:{},slots:{...r,default:()=>[dt(Tj,{onBeforeEnter:()=>t("beforeEnter"),onAfterEnter:()=>t("afterEnter"),onBeforeLeave:()=>t("beforeLeave"),onAfterLeave:()=>t("afterLeave"),...n,...h,...p},r.default)]},attrs:{},features:x$,visible:l.value==="visible",name:"Transition"})}}});const Oj=ve({components:{Dialog:nj,DialogOverlay:rj,TransitionChild:$$,TransitionRoot:C$,XIcon:Da},props:{open:{type:Boolean,default:!0},size:{type:String,default:"small"}},methods:{close(){this.$emit("close")}}}),Aj={class:"fixed inset-0 overflow-y-auto font-sans",style:{"z-index":"10000"}},Ij={class:"flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0"},Pj=g("span",{class:"hidden sm:inline-block sm:align-middle sm:h-screen","aria-hidden":"true"},"\u200B",-1),kj={class:"hidden sm:block absolute top-0 right-0 pt-4 pr-4"},Rj=g("span",{class:"sr-only"},"Close",-1);function Lj(e,t,n,r,o,s){const l=X("DialogOverlay"),a=X("TransitionChild"),c=X("XIcon"),f=X("Dialog"),p=X("TransitionRoot");return N(),bt(p,{as:"template",show:e.open},{default:ye(()=>[q(f,{as:"div",onClose:t[1]||(t[1]=h=>e.close()),"data-client":"podlove"},{default:ye(()=>[g("div",Aj,[g("div",Ij,[q(a,{as:"template",enter:"ease-out duration-300","enter-from":"opacity-0","enter-to":"opacity-100",leave:"ease-in duration-200","leave-from":"opacity-100","leave-to":"opacity-0"},{default:ye(()=>[q(l,{class:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"})]),_:1}),Pj,q(a,{as:"template",enter:"ease-out duration-300","enter-from":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95","enter-to":"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200","leave-from":"opacity-100 translate-y-0 sm:scale-100","leave-to":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"},{default:ye(()=>[g("div",{class:wt(["relative inline-block align-bottom bg-white rounded-lg px-4 pt-5 pb-4 text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:w-full sm:p-6",{"sm:max-w-sm":e.size==="small","sm:max-w-md":e.size==="medium"}])},[g("div",kj,[g("button",{type:"button",class:"bg-white rounded-md text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500",onClick:t[0]||(t[0]=h=>e.close())},[Rj,q(c,{class:"h-6 w-6","aria-hidden":"true"})])]),gr(e.$slots,"default")],2)]),_:3})])])]),_:3})]),_:3},8,["show"])}var ja=Be(Oj,[["render",Lj]]);const Nj=ve({props:{variant:{type:String,default:"default"},size:{type:String,default:"medium"},disabled:{type:Boolean,default:!1}},computed:{variantClass(){switch(this.variant){case"default":return"focus:outline-none text-gray-700 bg-white border border-gray-300 hover:bg-gray-50 focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 disabled:bg-gray-100";case"primary":return"focus:ring-offset-2 text-white focus:ring-indigo-500 bg-indigo-600 hover:bg-indigo-700 disabled:bg-indigo-300";case"primary-disabled":return"focus:ring-offset-2 text-white focus:ring-indigo-500 bg-indigo-600 opacity-50 cursor-not-allowed";case"secondary":return"focus:ring-offset-2 text-indigo-700 focus:ring-indigo-500 bg-indigo-100 hover:bg-indigo-200 disabled:bg-indigo-50";case"secondary-disabled":return"focus:ring-offset-2 text-indigo-700 focus:ring-indigo-500 bg-indigo-100 disabled:bg-indigo-50 opacity-50 cursor-not-allowed";case"danger":return"bg-red-600 text-white hover:bg-red-700 focus:ring-2 focus:ring-offset-2 focus:ring-red-500 disabled:bg-red-300"}},sizeClass(){switch(this.size){case"small":return"px-2.5 py-1.5 text-xs font-medium rounded ";case"medium":return"px-3 py-2 text-sm leading-4 font-medium rounded-md";case"large":return"px-6 py-3 text-base font-medium rounded-md"}}}}),Mj=["disabled"];function Dj(e,t,n,r,o,s){return N(),V("button",{type:"button",class:wt(["inline-flex items-center focus:outline-none focus:ring-2 border border-transparent shadow-sm whitespace-nowrap disabled:opacity-75",[e.variantClass,e.sizeClass]]),disabled:e.disabled},[gr(e.$slots,"default")],10,Mj)}var Vn=Be(Nj,[["render",Dj]]);const Fj=ve({components:{PodloveButton:Vn,Modal:ja,PencilIcon:D2,XIcon:Da},setup(){return{state:yt({poster:G.episode.poster,episodePoster:G.episode.episodePoster,asset:G.settings.imageAsset}),dispatch:it().dispatch}},data(){return{modalOpen:!1,inputValue:null}},computed:{posterStyle(){const e=this.state.episodePoster||this.state.poster;return e===null?{}:{"background-image":`url(${e})`}}},methods:{openModal(){this.modalOpen=!0},closeModal(){this.modalOpen=!1},selectImage(){this.dispatch(cD())},updatePoster(e){const t=Y.exports.get(e,["target","value"],null);this.dispatch($t({prop:"episode_poster",value:t}))}}}),Bj={class:"border-gray-200 border-b pb-2 px-4 -mx-6 mb-4"},Uj={class:"text-lg leading-6 font-medium text-gray-900"},jj={class:"relative"},Hj=["value"],Vj=["title"],Wj={class:"mt-2 text-sm text-gray-500"},zj={class:"mt-2 flex justify-end"},qj={class:"block text-sm font-medium text-gray-700"},Kj={key:0,class:"absolute z-10 left-0 top-0 w-full h-full flex justify-center items-center bg-white bg-opacity-40 hover:opacity-0 text-gray-500 opacity-100"},Gj={key:1,class:"absolute z-10 left-0 top-0 w-full h-full flex flex-col justify-center items-center bg-white bg-opacity-50 text-gray-500 opacity-0 hover:opacity-100"},Xj={class:"w-full text-center"},Jj={class:"w-full text-center"},Yj={class:"w-full text-center"};function Zj(e,t,n,r,o,s){const l=X("x-icon"),a=X("podlove-button"),c=X("modal"),f=X("pencil-icon");return N(),V("div",null,[q(c,{size:"medium",open:e.modalOpen,onClose:t[3]||(t[3]=p=>e.closeModal())},{default:ye(()=>[g("div",Bj,[g("h3",Uj,U(e.__("Episode Poster","podlove-podcasting-plugin-for-wordpress")),1)]),g("div",jj,[g("input",{name:"episode-poster",type:"text",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md pr-8",value:e.state.episodePoster,onChange:t[0]||(t[0]=p=>e.updatePoster(p))},null,40,Hj),g("button",{class:"absolute right-2 top-1/2 -mt-3 text-gray-400 hover:text-gray-700",title:e.__("Clear Input","podlove-podcasting-plugin-for-wordpress"),onClick:t[1]||(t[1]=p=>e.updatePoster(null))},[q(l,{class:"w-6 h-6"})],8,Vj)]),g("p",Wj,U(e.__("Enter URL or select image from media library. Apple/iTunes recommends 3000 x 3000 pixel JPG or PNG","podlove-podcasting-plugin-for-wordpress")),1),g("p",zj,[q(a,{variant:"primary",onClick:t[2]||(t[2]=p=>e.closeModal())},{default:ye(()=>[Ge(U(e.__("Use this URL","podlove-podcasting-plugin-for-wordpress")),1)]),_:1})])]),_:1},8,["open"]),g("label",qj,U(e.__("Poster","podlove-podcasting-plugin-for-wordpress")),1),g("div",{class:"border shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block relative w-44 h-44 sm:text-sm border-gray-300 rounded-md mt-1 overflow-hidden bg-cover bg-no-repeat bg-center",style:as(e.posterStyle)},[e.state.asset==="manual"?(N(),V("div",Kj,[q(f,{class:"h-6 w-6","aria-hidden":"true"})])):qe("",!0),e.state.asset==="manual"?(N(),V("div",Gj,[q(a,{onClick:t[4]||(t[4]=p=>e.openModal()),class:"w-32 mb-2"},{default:ye(()=>[g("span",Xj,U(e.__("URL","podlove-podcasting-plugin-for-wordpress")),1)]),_:1}),q(a,{class:"w-32 text-center mb-2",onClick:t[5]||(t[5]=p=>e.selectImage())},{default:ye(()=>[g("span",Jj,U(e.__("Media","podlove-podcasting-plugin-for-wordpress")),1)]),_:1}),q(a,{variant:"danger",class:"w-32 text-center",disabled:e.state.episodePoster===null,onClick:t[6]||(t[6]=p=>e.updatePoster(null))},{default:ye(()=>[g("span",Yj,U(e.__("Reset","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["disabled"])])):qe("",!0)],4)])}var Qj=Be(Fj,[["render",Zj]]);const eH=ve({components:{Module:Nn},setup(){return{state:yt({number:G.episode.number}),dispatch:it().dispatch}},methods:{updateNumber(e){this.dispatch($t({prop:"number",value:e.target.value}))}}}),tH={for:"episode-number",class:"block text-sm font-medium text-gray-700"},nH={class:"mt-1 mb-1"},rH=["value"],oH={class:"mt-2 text-sm text-gray-500"};function iH(e,t,n,r,o,s){return N(),V("div",null,[g("label",tH,U(e.__("Number","podlove-podcasting-plugin-for-wordpress")),1),g("div",nH,[g("input",{name:"episode-number",type:"number",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",value:e.state.number,onInput:t[0]||(t[0]=l=>e.updateNumber(l))},null,40,rH)]),g("p",oH,U(e.__("An episode number (1, 2, 3 etc.)","podlove-podcasting-plugin-for-wordpress")),1)])}var sH=Be(eH,[["render",iH]]);const lH=ve({setup(){return{state:yt({explicit:G.episode.explicit}),dispatch:it().dispatch}},methods:{updateExplicit(e){this.dispatch($t({prop:"explicit",value:e.target.checked}))}}}),aH={class:"relative flex items-start"},uH={class:"flex items-center h-5"},cH=["checked"],dH={class:"ml-3 text-sm"},fH={for:"explicit-content",class:"font-medium text-gray-700"},pH={class:"text-gray-500"};function hH(e,t,n,r,o,s){return N(),V("div",aH,[g("div",uH,[g("input",{id:"explicit-content",type:"checkbox",class:"focus:ring-indigo-500 h-4 w-4 text-indigo-600 border-gray-300 rounded",checked:e.state.explicit,onInput:t[0]||(t[0]=l=>e.updateExplicit(l))},null,40,cH)]),g("div",dH,[g("label",fH,U(e.state.explicit?e.__("Explicit Content!","podlove-podcasting-plugin-for-wordpress"):e.__("Explicit Content?","podlove-podcasting-plugin-for-wordpress")),1),g("p",pH,U(e.__("For example, profanity or content that may not be suitable for children","podlove-podcasting-plugin-for-wordpress")),1)])])}var mH=Be(lH,[["render",hH]]);const vH=ve({components:{Module:Nn},setup(){return{state:yt({title:G.episode.title,post_title:G.post.title}),dispatch:it().dispatch}},methods:{updateTitle(e){this.dispatch($t({prop:"title",value:e.target.value}))}}}),gH={for:"episode-title",class:"block text-sm font-medium text-gray-700"},yH={class:"mt-1"},bH=["value","placeholder"],_H={class:"mt-2 text-sm text-gray-500"};function wH(e,t,n,r,o,s){return N(),V("div",null,[g("label",gH,U(e.__("Title","podlove-podcasting-plugin-for-wordpress")),1),g("div",yH,[g("input",{name:"episode-title",type:"text",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",value:e.state.title,placeholder:e.state.post_title,onInput:t[0]||(t[0]=l=>e.updateTitle(l))},null,40,bH)]),g("p",_H,U(e.__("Clear, concise name for your episode. It is recommended to not include the podcast title, episode number, season number or date in this tag.","podlove-podcasting-plugin-for-wordpress")),1)])}var SH=Be(vH,[["render",wH]]);const EH=ve({setup(){const e=yt({subtitle:G.episode.subtitle}),t=ce(()=>{var n;return 255-(((n=e==null?void 0:e.subtitle)==null?void 0:n.length)||"")});return{state:e,charactersLeft:t,dispatch:it().dispatch}},methods:{updateSubtitle(e){this.dispatch($t({prop:"subtitle",value:e.target.value}))}}}),xH={for:"subtitle",class:"block text-sm font-medium text-gray-700"},$H={class:"mt-1"},CH=["value"],TH={class:"mt-2 text-sm text-gray-500 flex justify-between"};function OH(e,t,n,r,o,s){return N(),V("div",null,[g("label",xH,U(e.__("Subtitle","podlove-podcasting-plugin-for-wordpress")),1),g("div",$H,[g("textarea",{id:"subtitle",name:"subtitle",maxlength:"250",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 mt-1 block w-full sm:text-sm border border-gray-300 rounded-md resize-y",value:e.state.subtitle,onInput:t[0]||(t[0]=l=>e.updateSubtitle(l))},null,40,CH)]),g("p",TH,[g("span",null,U(e.__("Single sentence describing the episode.","podlove-podcasting-plugin-for-wordpress")),1),g("span",null,U(e.charactersLeft),1)])])}var AH=Be(EH,[["render",OH]]);const IH=ve({setup(){const e=yt({summary:G.episode.summary}),t=ce(()=>{var n;return 4e3-(((n=e==null?void 0:e.summary)==null?void 0:n.length)||"")});return{state:e,charactersLeft:t,dispatch:it().dispatch}},methods:{updateSummary(e){this.dispatch($t({prop:"summary",value:e.target.value}))}}}),PH={for:"summary",class:"block text-sm font-medium text-gray-700"},kH={class:"mt-1"},RH=["value"],LH={class:"mt-2 text-sm text-gray-500 flex justify-end"};function NH(e,t,n,r,o,s){return N(),V("div",null,[g("label",PH,U(e.__("Summary","podlove-podcasting-plugin-for-wordpress")),1),g("div",kH,[g("textarea",{id:"summary",name:"summary",maxlength:"4000",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 mt-1 block w-full sm:text-sm border border-gray-300 rounded-md resize-y",value:e.state.summary,onInput:t[0]||(t[0]=l=>e.updateSummary(l))},null,40,RH)]),g("p",LH,[g("span",null,U(e.charactersLeft),1)])])}var MH=Be(IH,[["render",NH]]);const DH=ve({components:{Module:Nn},setup(){return{state:yt({type:G.episode.type}),dispatch:it().dispatch}},methods:{updateType(e){this.dispatch($t({prop:"type",value:e.target.value}))}}}),FH={for:"episode-type",class:"block text-sm font-medium text-gray-700"},BH={class:"mt-1"},UH=["value"],jH={value:"full"},HH={value:"trailer"},VH={value:"bonus"},WH={class:"mt-2 text-sm text-gray-500"};function zH(e,t,n,r,o,s){return N(),V("div",null,[g("label",FH,U(e.__("Type","podlove-podcasting-plugin-for-wordpress")),1),g("div",BH,[g("select",{name:"episode-type",class:"block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm rounded-md",value:e.state.type,onInput:t[0]||(t[0]=l=>e.updateType(l))},[g("option",null,U(e.__("Please choose ...","podlove-podcasting-plugin-for-wordpress")),1),g("option",jH,U(e.__("full (complete content of an episode)","podlove-podcasting-plugin-for-wordpress")),1),g("option",HH,U(e.__("trailer (short, promotional piece of content that represents a preview of an episode)","podlove-podcasting-plugin-for-wordpress")),1),g("option",VH,U(e.__("bonus (extra content for an episode, for example behind the scenes information)","podlove-podcasting-plugin-for-wordpress")),1)],40,UH)]),g("p",WH,U(e.__("Episode type. May be used by podcast clients.","podlove-podcasting-plugin-for-wordpress")),1)])}var qH=Be(DH,[["render",zH]]);const KH=ve({components:{Module:Nn,EpisodePoster:Qj,EpisodeNumber:sH,EpisodeContent:mH,EpisodeTitle:SH,EpisodeSubtitle:AH,EpisodeSummary:MH,EpisodeType:qH},setup(){return{state:yt({explicitContentEnabled:G.settings.enableEpisodeExplicit}),dispatch:it().dispatch}},created(){this.dispatch(Od())}}),GH={class:"p-3"},XH={class:"flex justify-items-stretch mb-5"},JH={class:"mb-2 w-full"},YH={class:"flex mb-5"},ZH={class:"mb-5"},QH={class:"mb-5"};function eV(e,t,n,r,o,s){const l=X("episode-poster"),a=X("episode-number"),c=X("episode-content"),f=X("episode-type"),p=X("episode-title"),h=X("episode-subtitle"),v=X("episode-summary"),y=X("module");return N(),bt(y,{name:"description",title:e.__("Episode Description","podlove-podcasting-plugin-for-wordpress")},{default:ye(()=>[g("div",GH,[g("div",XH,[q(l,{class:"mr-5"}),g("div",JH,[g("div",YH,[q(a,{class:"w-full"}),e.state.explicitContentEnabled?(N(),bt(c,{key:0,class:"ml-5 w-full"})):qe("",!0)]),q(f,{class:"w-full"})])]),g("div",ZH,[q(p,{class:"w-full"})]),g("div",QH,[q(h,{class:"w-full"})]),g("div",null,[q(v,{class:"w-full"})])])]),_:1},8,["title"])}var tV=Be(KH,[["render",eV]]);const nV=ve({data(){return{visible:!1}},props:{name:String},methods:{}}),rV=["data-tab"];function oV(e,t,n,r,o,s){return N(),V("div",{class:"hidden","data-tab":e.name},[gr(e.$slots,"default")],8,rV)}var T$=Be(nV,[["render",oV]]);const iV=ve({data(){return{activeTab:"",tabs:[]}},props:{active:{type:String,default:null}},created(){var e,t;this.tabs=((t=(e=this.$slots).default)==null?void 0:t.call(e).map(n=>({name:Y.exports.get(n,["props","name"]),title:Y.exports.get(n,["props","title"])})))||[]},mounted(){this.active?this.toggleTab(this.active):this.toggleTab(Y.exports.get(this.tabs,[0,"name"]))},methods:{toggleTab(e){this.activeTab=e,Array.from(this.$refs.tabs.children).forEach(t=>{t.dataset.tab===e?t.classList.remove("hidden"):t.classList.add("hidden")})}}}),sV={class:"block"},lV={class:"border-b border-gray-200"},aV={class:"-mb-px flex space-x-8 mx-2","aria-label":"Tabs"},uV=["onClick"],cV={ref:"tabs"};function dV(e,t,n,r,o,s){return N(),V("div",null,[g("div",sV,[g("div",lV,[g("nav",aV,[(N(!0),V(Fe,null,Mt(e.tabs,l=>(N(),V("button",{onClick:a=>e.toggleTab(l.name),key:l.name,class:wt([l.name===e.activeTab?"border-indigo-500 text-indigo-600":"border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300","group inline-flex items-center py-4 px-1 border-b-2 font-medium text-sm"])},[g("span",null,U(l.title),1)],10,uV))),128))])])]),g("div",cV,[gr(e.$slots,"default")],512)])}var O$=Be(iV,[["render",dV]]);const fV=ve({components:{PodloveButton:Vn,PlusSmIcon:Lv,BookmarkAltIcon:z9,UploadIcon:V9},setup(){return{state:yt({chapters:G.chapters.list,selected:G.chapters.selected,selectedIndex:G.chapters.selectedIndex,episodeDuration:G.episode.duration}),dispatch:it().dispatch}},computed:{selectedIndex(){return this.state.selectedIndex},episodeDuration(){return this.state.episodeDuration?Nt.fromString(this.state.episodeDuration).totalMs:0},chapters(){return this.state.chapters.reduce((e,t,n,r)=>{const o=Y.exports.get(r,n+1),s=o===void 0;let l;s?l=this.episodeDuration?this.episodeDuration-(t.start||0):-1:l=(o.start||0)-(t.start||0);const a=l<=0?"Unknown":new Nt(l).prettyShort;return[...e,{index:n,title:t.title,start:t.start?new Nt(t.start).pretty:new Nt(0).pretty,image:t.image,duration:a}]},[])},hasChapterImages(){return this.chapters.reduce((e,t)=>e||!!t.image,!1)}},methods:{selectChapter(e){e===this.state.selectedIndex?this.dispatch(di(null)):this.dispatch(di(e))},updateChapter(e,t){const n=t.target.value;if(this.state.selectedIndex===null)return;let r;switch(e){case"start":r=Nt.fromString(n).totalMs;break;default:r=n}this.dispatch(QM({chapter:{[e]:r},index:this.state.selectedIndex}))},removeChapter(){this.dispatch(eD(this.state.selectedIndex))},async addChapter(){this.dispatch(tD()),this.dispatch(di(this.state.chapters.length-1));const e=this.$refs.chaptersContainer;await rn(),e.scrollTo({top:e.scrollHeight-e.clientHeight,behavior:"smooth"})},formatTime(e){return new Nt(e).pretty},selectImage(){this.dispatch(iD())}}}),pV={key:0},hV={class:"md:flex p-2 sm:block"},mV={class:"w-full"},vV={class:"h-96 overflow-x-auto",ref:"chaptersContainer"},gV={class:"min-w-full divide-y divide-gray-200 mb-2"},yV={ref:"chapters"},bV=["onClick"],_V={key:0,class:"px-2 py-2 w-16"},wV=["src"],SV={class:"px-3 py-2 w-32 whitespace-nowrap text-sm font-medium text-gray-900 tabular-nums"},EV={class:"px-3 py-2 whitespace-nowrap text-sm text-gray-600"},xV={class:"px-3 py-2 whitespace-nowrap text-sm text-gray-600 text-right tabular-nums"},$V={key:0,class:"md:w-4/12 sm:w-full md:mx-4 md:my-2 mt-0"},CV={class:"mb-5 mt-2"},TV={for:"chapter-title",class:"block text-sm font-medium text-gray-700"},OV={class:"mt-1"},AV=["value"],IV={class:"mb-5"},PV={for:"chapter-href",class:"block text-sm font-medium text-gray-700"},kV={class:"text-xs"},RV={class:"mt-1"},LV=["value"],NV={class:"mb-5"},MV={for:"chapter-start",class:"block text-sm font-medium text-gray-700"},DV={class:"mt-1"},FV=["value"],BV={class:"mb-5"},UV={for:"chapter-image",class:"block text-sm font-medium text-gray-700"},jV={class:"text-xs"},HV={class:"mt-1 relative"},VV=["value"],WV=["title"],zV={class:"mb-5 ml-1"},qV={class:"mt-5 ml-5 pb-5"},KV={key:1,class:"text-center h-96 flex items-center justify-center flex-col"},GV={class:"mt-2 text-sm font-medium text-gray-900"},XV={class:"mt-1 text-sm text-gray-500"},JV={class:"mt-6"};function YV(e,t,n,r,o,s){const l=X("upload-icon"),a=X("podlove-button"),c=X("plus-sm-icon"),f=X("bookmark-alt-icon");return e.chapters.length>0?(N(),V("div",pV,[g("div",hV,[g("div",mV,[g("div",vV,[g("table",gV,[g("tbody",yV,[(N(!0),V(Fe,null,Mt(e.chapters,(p,h)=>(N(),V("tr",{onClick:v=>e.selectChapter(h),key:`chapter-${h}`,class:wt(["cursor-pointer",{"bg-indigo-100":e.selectedIndex===h,active:e.selectedIndex===h,"bg-white":h%2===0&&e.selectedIndex!==h,"bg-gray-50":h%2!==0&&e.selectedIndex!==h}])},[e.hasChapterImages?(N(),V("td",_V,[p!=null&&p.image?(N(),V("img",{key:0,class:"w-12 h-12 rounded",src:p==null?void 0:p.image},null,8,wV)):qe("",!0)])):qe("",!0),g("td",SV,U(p.start),1),g("td",EV,U(p.title),1),g("td",xV,U(p.duration),1)],10,bV))),128))],512)])],512)]),e.state.selected?(N(),V("div",$V,[g("div",CV,[g("label",TV,U(e.__("Title","podlove-podcasting-plugin-for-wordpress")),1),g("div",OV,[g("input",{name:"chapter-title",type:"text",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",onChange:t[0]||(t[0]=p=>e.updateChapter("title",p)),value:e.state.selected.title},null,40,AV)])]),g("div",IV,[g("label",PV,[Ge("Url "),g("span",kV,U(e.__("(optional)","podlove-podcasting-plugin-for-wordpress")),1)]),g("div",RV,[g("input",{name:"chapter-href",type:"text",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",onChange:t[1]||(t[1]=p=>e.updateChapter("href",p)),value:e.state.selected.href},null,40,LV)])]),g("div",NV,[g("label",MV,U(e.__("Start","podlove-podcasting-plugin-for-wordpress")),1),g("div",DV,[g("input",{name:"chapter-title",type:"text",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",onChange:t[2]||(t[2]=p=>e.updateChapter("start",p)),value:e.formatTime(e.state.selected.start)},null,40,FV)])]),g("div",BV,[g("label",UV,[Ge(U(e.__("Image","podlove-podcasting-plugin-for-wordpress"))+" ",1),g("span",jV,U(e.__("(optional)","podlove-podcasting-plugin-for-wordpress")),1)]),g("div",HV,[g("input",{name:"chapter-image",type:"text",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",onChange:t[3]||(t[3]=p=>e.updateChapter("image",p)),value:e.state.selected.image},null,40,VV),g("button",{onClick:t[4]||(t[4]=Sc(p=>e.selectImage(),["prevent"])),title:e.__("Select Chapter Image","podlove-podcasting-plugin-for-wordpress"),class:"absolute right-2 top-1/2 -mt-3 text-gray-400 hover:text-gray-700"},[q(l,{class:"w-6 h-6"})],8,WV)])]),g("div",zV,[q(a,{variant:"danger",onClick:t[5]||(t[5]=p=>e.removeChapter())},{default:ye(()=>[Ge(U(e.__("Delete Chapter","podlove-podcasting-plugin-for-wordpress")),1)]),_:1})])])):qe("",!0)]),g("div",qV,[q(a,{variant:"primary",onClick:t[6]||(t[6]=p=>e.addChapter())},{default:ye(()=>[q(c,{class:"-ml-0.5 mr-2 h-4 w-4","aria-hidden":"true"}),Ge(" "+U(e.__("Add Chapter","podlove-podcasting-plugin-for-wordpress")),1)]),_:1})])])):(N(),V("div",KV,[q(f,{class:"mx-auto h-12 w-12 text-gray-400"}),g("h3",GV,U(e.__("No chapters","podlove-podcasting-plugin-for-wordpress")),1),g("p",XV,U(e.__("Get started by creating a new chapter.","podlove-podcasting-plugin-for-wordpress")),1),g("div",JV,[q(a,{variant:"primary",onClick:t[7]||(t[7]=p=>e.addChapter()),class:"ml-1"},{default:ye(()=>[q(c,{class:"-ml-0.5 mr-2 h-4 w-4","aria-hidden":"true"}),Ge(" "+U(e.__("Add Chapter","podlove-podcasting-plugin-for-wordpress")),1)]),_:1})])]))}var ZV=Be(fV,[["render",YV]]);function Uh(e,t,n){var r,o,s,l,a;t==null&&(t=100);function c(){var p=Date.now()-l;p<t&&p>=0?r=setTimeout(c,t-p):(r=null,n||(a=e.apply(s,o),s=o=null))}var f=function(){s=this,o=arguments,l=Date.now();var p=n&&!r;return r||(r=setTimeout(c,t)),p&&(a=e.apply(s,o),s=o=null),a};return f.clear=function(){r&&(clearTimeout(r),r=null)},f.flush=function(){r&&(a=e.apply(s,o),s=o=null,clearTimeout(r),r=null)},f}Uh.debounce=Uh;var Bp=Uh;function QV(e,t,n){dn(e)?Ft(e,(r,o)=>{o==null||o.removeEventListener(t,n),r==null||r.addEventListener(t,n)}):gt(()=>{e.addEventListener(t,n)}),cs(()=>{var r;(r=jn(e))===null||r===void 0||r.removeEventListener(t,n)})}function eW(e,t){const n="pointerdown";return typeof window=="undefined"||!window?void 0:QV(window,n,o=>{const s=jn(e);!s||s===o.target||o.composedPath().includes(s)||t(o)})}function tW(e,t,n){let r=null;const o=_e(!1);gt(()=>{(e.content!==void 0||n.value)&&(o.value=!0),r=new MutationObserver(s),r.observe(t.value,{childList:!0,subtree:!0})}),cs(()=>r.disconnect()),Ft(n,l=>{l?o.value=!0:o.value=!1});const s=()=>{e.content?o.value=!0:o.value=!1};return{hasContent:o}}function Zs(e,t){var n=e.getBoundingClientRect(),r=1,o=1;return{width:n.width/r,height:n.height/o,top:n.top/o,right:n.right/r,bottom:n.bottom/o,left:n.left/r,x:n.left/r,y:n.top/o}}function lo(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Jv(e){var t=lo(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function ya(e){var t=lo(e).Element;return e instanceof t||e instanceof Element}function Rr(e){var t=lo(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function A$(e){if(typeof ShadowRoot=="undefined")return!1;var t=lo(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function nW(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function rW(e){return e===lo(e)||!Rr(e)?Jv(e):nW(e)}function wo(e){return e?(e.nodeName||"").toLowerCase():null}function $i(e){return((ya(e)?e.ownerDocument:e.document)||window.document).documentElement}function Yv(e){return Zs($i(e)).left+Jv(e).scrollLeft}function Wo(e){return lo(e).getComputedStyle(e)}function Zv(e){var t=Wo(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function oW(e){var t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,r=t.height/e.offsetHeight||1;return n!==1||r!==1}function iW(e,t,n){n===void 0&&(n=!1);var r=Rr(t);Rr(t)&&oW(t);var o=$i(t),s=Zs(e),l={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(r||!r&&!n)&&((wo(t)!=="body"||Zv(o))&&(l=rW(t)),Rr(t)?(a=Zs(t),a.x+=t.clientLeft,a.y+=t.clientTop):o&&(a.x=Yv(o))),{x:s.left+l.scrollLeft-a.x,y:s.top+l.scrollTop-a.y,width:s.width,height:s.height}}function Qv(e){var t=Zs(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function qd(e){return wo(e)==="html"?e:e.assignedSlot||e.parentNode||(A$(e)?e.host:null)||$i(e)}function I$(e){return["html","body","#document"].indexOf(wo(e))>=0?e.ownerDocument.body:Rr(e)&&Zv(e)?e:I$(qd(e))}function Ql(e,t){var n;t===void 0&&(t=[]);var r=I$(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),s=lo(r),l=o?[s].concat(s.visualViewport||[],Zv(r)?r:[]):r,a=t.concat(l);return o?a:a.concat(Ql(qd(l)))}function sW(e){return["table","td","th"].indexOf(wo(e))>=0}function j1(e){return!Rr(e)||Wo(e).position==="fixed"?null:e.offsetParent}function lW(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&Rr(e)){var r=Wo(e);if(r.position==="fixed")return null}for(var o=qd(e);Rr(o)&&["html","body"].indexOf(wo(o))<0;){var s=Wo(o);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return o;o=o.parentNode}return null}function Ha(e){for(var t=lo(e),n=j1(e);n&&sW(n)&&Wo(n).position==="static";)n=j1(n);return n&&(wo(n)==="html"||wo(n)==="body"&&Wo(n).position==="static")?t:n||lW(e)||t}var Lr="top",no="bottom",ro="right",Nr="left",eg="auto",Va=[Lr,no,ro,Nr],Qs="start",ba="end",aW="clippingParents",P$="viewport",Nl="popper",uW="reference",H1=Va.reduce(function(e,t){return e.concat([t+"-"+Qs,t+"-"+ba])},[]),k$=[].concat(Va,[eg]).reduce(function(e,t){return e.concat([t,t+"-"+Qs,t+"-"+ba])},[]),cW="beforeRead",dW="read",fW="afterRead",pW="beforeMain",hW="main",mW="afterMain",vW="beforeWrite",gW="write",yW="afterWrite",bW=[cW,dW,fW,pW,hW,mW,vW,gW,yW];function _W(e){var t=new Map,n=new Set,r=[];e.forEach(function(s){t.set(s.name,s)});function o(s){n.add(s.name);var l=[].concat(s.requires||[],s.requiresIfExists||[]);l.forEach(function(a){if(!n.has(a)){var c=t.get(a);c&&o(c)}}),r.push(s)}return e.forEach(function(s){n.has(s.name)||o(s)}),r}function wW(e){var t=_W(e);return bW.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function SW(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function yo(e){return e.split("-")[0]}function EW(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}function xW(e){var t=lo(e),n=$i(e),r=t.visualViewport,o=n.clientWidth,s=n.clientHeight,l=0,a=0;return r&&(o=r.width,s=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(l=r.offsetLeft,a=r.offsetTop)),{width:o,height:s,x:l+Yv(e),y:a}}var mi=Math.max,_a=Math.min,Zu=Math.round;function $W(e){var t,n=$i(e),r=Jv(e),o=(t=e.ownerDocument)==null?void 0:t.body,s=mi(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),l=mi(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+Yv(e),c=-r.scrollTop;return Wo(o||n).direction==="rtl"&&(a+=mi(n.clientWidth,o?o.clientWidth:0)-s),{width:s,height:l,x:a,y:c}}function R$(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&A$(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function jh(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function CW(e){var t=Zs(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function V1(e,t){return t===P$?jh(xW(e)):Rr(t)?CW(t):jh($W($i(e)))}function TW(e){var t=Ql(qd(e)),n=["absolute","fixed"].indexOf(Wo(e).position)>=0,r=n&&Rr(e)?Ha(e):e;return ya(r)?t.filter(function(o){return ya(o)&&R$(o,r)&&wo(o)!=="body"}):[]}function OW(e,t,n){var r=t==="clippingParents"?TW(e):[].concat(t),o=[].concat(r,[n]),s=o[0],l=o.reduce(function(a,c){var f=V1(e,c);return a.top=mi(f.top,a.top),a.right=_a(f.right,a.right),a.bottom=_a(f.bottom,a.bottom),a.left=mi(f.left,a.left),a},V1(e,s));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function el(e){return e.split("-")[1]}function tg(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function L$(e){var t=e.reference,n=e.element,r=e.placement,o=r?yo(r):null,s=r?el(r):null,l=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,c;switch(o){case Lr:c={x:l,y:t.y-n.height};break;case no:c={x:l,y:t.y+t.height};break;case ro:c={x:t.x+t.width,y:a};break;case Nr:c={x:t.x-n.width,y:a};break;default:c={x:t.x,y:t.y}}var f=o?tg(o):null;if(f!=null){var p=f==="y"?"height":"width";switch(s){case Qs:c[f]=c[f]-(t[p]/2-n[p]/2);break;case ba:c[f]=c[f]+(t[p]/2-n[p]/2);break}}return c}function N$(){return{top:0,right:0,bottom:0,left:0}}function M$(e){return Object.assign({},N$(),e)}function D$(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}function ng(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,s=n.boundary,l=s===void 0?aW:s,a=n.rootBoundary,c=a===void 0?P$:a,f=n.elementContext,p=f===void 0?Nl:f,h=n.altBoundary,v=h===void 0?!1:h,y=n.padding,_=y===void 0?0:y,w=M$(typeof _!="number"?_:D$(_,Va)),I=p===Nl?uW:Nl,O=e.rects.popper,S=e.elements[v?I:p],E=OW(ya(S)?S:S.contextElement||$i(e.elements.popper),l,c),T=Zs(e.elements.reference),$=L$({reference:T,element:O,strategy:"absolute",placement:o}),P=jh(Object.assign({},O,$)),k=p===Nl?P:T,A={top:E.top-k.top+w.top,bottom:k.bottom-E.bottom+w.bottom,left:E.left-k.left+w.left,right:k.right-E.right+w.right},H=e.modifiersData.offset;if(p===Nl&&H){var D=H[o];Object.keys(A).forEach(function(F){var z=[ro,no].indexOf(F)>=0?1:-1,K=[Lr,no].indexOf(F)>=0?"y":"x";A[F]+=D[K]*z})}return A}var W1={placement:"bottom",modifiers:[],strategy:"absolute"};function z1(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function AW(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,s=o===void 0?W1:o;return function(a,c,f){f===void 0&&(f=s);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},W1,s),modifiersData:{},elements:{reference:a,popper:c},attributes:{},styles:{}},h=[],v=!1,y={state:p,setOptions:function(O){var S=typeof O=="function"?O(p.options):O;w(),p.options=Object.assign({},s,p.options,S),p.scrollParents={reference:ya(a)?Ql(a):a.contextElement?Ql(a.contextElement):[],popper:Ql(c)};var E=wW(EW([].concat(r,p.options.modifiers)));return p.orderedModifiers=E.filter(function(T){return T.enabled}),_(),y.update()},forceUpdate:function(){if(!v){var O=p.elements,S=O.reference,E=O.popper;if(!!z1(S,E)){p.rects={reference:iW(S,Ha(E),p.options.strategy==="fixed"),popper:Qv(E)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(D){return p.modifiersData[D.name]=Object.assign({},D.data)});for(var T=0;T<p.orderedModifiers.length;T++){if(p.reset===!0){p.reset=!1,T=-1;continue}var $=p.orderedModifiers[T],P=$.fn,k=$.options,A=k===void 0?{}:k,H=$.name;typeof P=="function"&&(p=P({state:p,options:A,name:H,instance:y})||p)}}}},update:SW(function(){return new Promise(function(I){y.forceUpdate(),I(p)})}),destroy:function(){w(),v=!0}};if(!z1(a,c))return y;y.setOptions(f).then(function(I){!v&&f.onFirstUpdate&&f.onFirstUpdate(I)});function _(){p.orderedModifiers.forEach(function(I){var O=I.name,S=I.options,E=S===void 0?{}:S,T=I.effect;if(typeof T=="function"){var $=T({state:p,name:O,instance:y,options:E}),P=function(){};h.push($||P)}})}function w(){h.forEach(function(I){return I()}),h=[]}return y}}var Qu={passive:!0};function IW(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,s=o===void 0?!0:o,l=r.resize,a=l===void 0?!0:l,c=lo(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&f.forEach(function(p){p.addEventListener("scroll",n.update,Qu)}),a&&c.addEventListener("resize",n.update,Qu),function(){s&&f.forEach(function(p){p.removeEventListener("scroll",n.update,Qu)}),a&&c.removeEventListener("resize",n.update,Qu)}}var PW={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:IW,data:{}};function kW(e){var t=e.state,n=e.name;t.modifiersData[n]=L$({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var RW={name:"popperOffsets",enabled:!0,phase:"read",fn:kW,data:{}},LW={top:"auto",right:"auto",bottom:"auto",left:"auto"};function NW(e){var t=e.x,n=e.y,r=window,o=r.devicePixelRatio||1;return{x:Zu(Zu(t*o)/o)||0,y:Zu(Zu(n*o)/o)||0}}function q1(e){var t,n=e.popper,r=e.popperRect,o=e.placement,s=e.variation,l=e.offsets,a=e.position,c=e.gpuAcceleration,f=e.adaptive,p=e.roundOffsets,h=p===!0?NW(l):typeof p=="function"?p(l):l,v=h.x,y=v===void 0?0:v,_=h.y,w=_===void 0?0:_,I=l.hasOwnProperty("x"),O=l.hasOwnProperty("y"),S=Nr,E=Lr,T=window;if(f){var $=Ha(n),P="clientHeight",k="clientWidth";$===lo(n)&&($=$i(n),Wo($).position!=="static"&&a==="absolute"&&(P="scrollHeight",k="scrollWidth")),$=$,(o===Lr||(o===Nr||o===ro)&&s===ba)&&(E=no,w-=$[P]-r.height,w*=c?1:-1),(o===Nr||(o===Lr||o===no)&&s===ba)&&(S=ro,y-=$[k]-r.width,y*=c?1:-1)}var A=Object.assign({position:a},f&&LW);if(c){var H;return Object.assign({},A,(H={},H[E]=O?"0":"",H[S]=I?"0":"",H.transform=(T.devicePixelRatio||1)<=1?"translate("+y+"px, "+w+"px)":"translate3d("+y+"px, "+w+"px, 0)",H))}return Object.assign({},A,(t={},t[E]=O?w+"px":"",t[S]=I?y+"px":"",t.transform="",t))}function MW(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,s=n.adaptive,l=s===void 0?!0:s,a=n.roundOffsets,c=a===void 0?!0:a,f={placement:yo(t.placement),variation:el(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,q1(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,q1(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var DW={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:MW,data:{}};function FW(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},s=t.elements[n];!Rr(s)||!wo(s)||(Object.assign(s.style,r),Object.keys(o).forEach(function(l){var a=o[l];a===!1?s.removeAttribute(l):s.setAttribute(l,a===!0?"":a)}))})}function BW(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],s=t.attributes[r]||{},l=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=l.reduce(function(c,f){return c[f]="",c},{});!Rr(o)||!wo(o)||(Object.assign(o.style,a),Object.keys(s).forEach(function(c){o.removeAttribute(c)}))})}}var UW={name:"applyStyles",enabled:!0,phase:"write",fn:FW,effect:BW,requires:["computeStyles"]},jW=[PW,RW,DW,UW],HW=AW({defaultModifiers:jW});function VW(e){return e==="x"?"y":"x"}function fc(e,t,n){return mi(e,_a(t,n))}function WW(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,s=o===void 0?!0:o,l=n.altAxis,a=l===void 0?!1:l,c=n.boundary,f=n.rootBoundary,p=n.altBoundary,h=n.padding,v=n.tether,y=v===void 0?!0:v,_=n.tetherOffset,w=_===void 0?0:_,I=ng(t,{boundary:c,rootBoundary:f,padding:h,altBoundary:p}),O=yo(t.placement),S=el(t.placement),E=!S,T=tg(O),$=VW(T),P=t.modifiersData.popperOffsets,k=t.rects.reference,A=t.rects.popper,H=typeof w=="function"?w(Object.assign({},t.rects,{placement:t.placement})):w,D={x:0,y:0};if(!!P){if(s||a){var F=T==="y"?Lr:Nr,z=T==="y"?no:ro,K=T==="y"?"height":"width",te=P[T],we=P[T]+I[F],be=P[T]-I[z],Oe=y?-A[K]/2:0,Ae=S===Qs?k[K]:A[K],Ye=S===Qs?-A[K]:-k[K],ft=t.elements.arrow,Le=y&&ft?Qv(ft):{width:0,height:0},Ke=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:N$(),Q=Ke[F],ae=Ke[z],fe=fc(0,k[K],Le[K]),Se=E?k[K]/2-Oe-fe-Q-H:Ae-fe-Q-H,He=E?-k[K]/2+Oe+fe+ae+H:Ye+fe+ae+H,De=t.elements.arrow&&Ha(t.elements.arrow),tt=De?T==="y"?De.clientTop||0:De.clientLeft||0:0,vn=t.modifiersData.offset?t.modifiersData.offset[t.placement][T]:0,ln=P[T]+Se-vn-tt,L=P[T]+He-vn;if(s){var B=fc(y?_a(we,ln):we,te,y?mi(be,L):be);P[T]=B,D[T]=B-te}if(a){var Z=T==="x"?Lr:Nr,le=T==="x"?no:ro,ie=P[$],pe=ie+I[Z],Ee=ie-I[le],he=fc(y?_a(pe,ln):pe,ie,y?mi(Ee,L):Ee);P[$]=he,D[$]=he-ie}}t.modifiersData[r]=D}}var zW={name:"preventOverflow",enabled:!0,phase:"main",fn:WW,requiresIfExists:["offset"]},qW={left:"right",right:"left",bottom:"top",top:"bottom"};function pc(e){return e.replace(/left|right|bottom|top/g,function(t){return qW[t]})}var KW={start:"end",end:"start"};function K1(e){return e.replace(/start|end/g,function(t){return KW[t]})}function GW(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,s=n.rootBoundary,l=n.padding,a=n.flipVariations,c=n.allowedAutoPlacements,f=c===void 0?k$:c,p=el(r),h=p?a?H1:H1.filter(function(_){return el(_)===p}):Va,v=h.filter(function(_){return f.indexOf(_)>=0});v.length===0&&(v=h);var y=v.reduce(function(_,w){return _[w]=ng(e,{placement:w,boundary:o,rootBoundary:s,padding:l})[yo(w)],_},{});return Object.keys(y).sort(function(_,w){return y[_]-y[w]})}function XW(e){if(yo(e)===eg)return[];var t=pc(e);return[K1(e),t,K1(t)]}function JW(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,s=o===void 0?!0:o,l=n.altAxis,a=l===void 0?!0:l,c=n.fallbackPlacements,f=n.padding,p=n.boundary,h=n.rootBoundary,v=n.altBoundary,y=n.flipVariations,_=y===void 0?!0:y,w=n.allowedAutoPlacements,I=t.options.placement,O=yo(I),S=O===I,E=c||(S||!_?[pc(I)]:XW(I)),T=[I].concat(E).reduce(function(ae,fe){return ae.concat(yo(fe)===eg?GW(t,{placement:fe,boundary:p,rootBoundary:h,padding:f,flipVariations:_,allowedAutoPlacements:w}):fe)},[]),$=t.rects.reference,P=t.rects.popper,k=new Map,A=!0,H=T[0],D=0;D<T.length;D++){var F=T[D],z=yo(F),K=el(F)===Qs,te=[Lr,no].indexOf(z)>=0,we=te?"width":"height",be=ng(t,{placement:F,boundary:p,rootBoundary:h,altBoundary:v,padding:f}),Oe=te?K?ro:Nr:K?no:Lr;$[we]>P[we]&&(Oe=pc(Oe));var Ae=pc(Oe),Ye=[];if(s&&Ye.push(be[z]<=0),a&&Ye.push(be[Oe]<=0,be[Ae]<=0),Ye.every(function(ae){return ae})){H=F,A=!1;break}k.set(F,Ye)}if(A)for(var ft=_?3:1,Le=function(fe){var Se=T.find(function(He){var De=k.get(He);if(De)return De.slice(0,fe).every(function(tt){return tt})});if(Se)return H=Se,"break"},Ke=ft;Ke>0;Ke--){var Q=Le(Ke);if(Q==="break")break}t.placement!==H&&(t.modifiersData[r]._skip=!0,t.placement=H,t.reset=!0)}}var YW={name:"flip",enabled:!0,phase:"main",fn:JW,requiresIfExists:["offset"],data:{_skip:!1}};function ZW(e,t,n){var r=yo(e),o=[Nr,Lr].indexOf(r)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,l=s[0],a=s[1];return l=l||0,a=(a||0)*o,[Nr,ro].indexOf(r)>=0?{x:a,y:l}:{x:l,y:a}}function QW(e){var t=e.state,n=e.options,r=e.name,o=n.offset,s=o===void 0?[0,0]:o,l=k$.reduce(function(p,h){return p[h]=ZW(h,t.rects,s),p},{}),a=l[t.placement],c=a.x,f=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=f),t.modifiersData[r]=l}var ez={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:QW},tz=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,M$(typeof t!="number"?t:D$(t,Va))};function nz(e){var t,n=e.state,r=e.name,o=e.options,s=n.elements.arrow,l=n.modifiersData.popperOffsets,a=yo(n.placement),c=tg(a),f=[Nr,ro].indexOf(a)>=0,p=f?"height":"width";if(!(!s||!l)){var h=tz(o.padding,n),v=Qv(s),y=c==="y"?Lr:Nr,_=c==="y"?no:ro,w=n.rects.reference[p]+n.rects.reference[c]-l[c]-n.rects.popper[p],I=l[c]-n.rects.reference[c],O=Ha(s),S=O?c==="y"?O.clientHeight||0:O.clientWidth||0:0,E=w/2-I/2,T=h[y],$=S-v[p]-h[_],P=S/2-v[p]/2+E,k=fc(T,P,$),A=c;n.modifiersData[r]=(t={},t[A]=k,t.centerOffset=k-P,t)}}function rz(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||!R$(t.elements.popper,o)||(t.elements.arrow=o))}var oz={name:"arrow",enabled:!0,phase:"main",fn:nz,effect:rz,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};const Up=e=>parseInt(e,10);function iz({arrowPadding:e,emit:t,locked:n,offsetDistance:r,offsetSkid:o,placement:s,popperNode:l,triggerNode:a}){const c=Si({isOpen:!1,popperInstance:null}),f=w=>{var I;(I=c.popperInstance)===null||I===void 0||I.setOptions(O=>({...O,modifiers:[...O.modifiers,{name:"eventListeners",enabled:w}]}))},p=()=>f(!0),h=()=>f(!1),v=()=>{!c.isOpen||(c.isOpen=!1,t("close:popper"))},y=()=>{c.isOpen||(c.isOpen=!0,t("open:popper"))};Ft([()=>c.isOpen,s],async([w])=>{w?(await _(),p()):h()});const _=async()=>{await rn(),c.popperInstance=HW(a.value,l.value,{placement:s.value,modifiers:[zW,YW,{name:"flip",enabled:!n.value},oz,{name:"arrow",options:{padding:Up(e.value)}},ez,{name:"offset",options:{offset:[Up(o.value),Up(r.value)]}}]}),c.popperInstance.update()};return cs(()=>{var w;(w=c.popperInstance)===null||w===void 0||w.destroy()}),{...rm(c),open:y,close:v}}const sz={id:"arrow","data-popper-arrow":""};function lz(e,t){return N(),V("div",sz)}function F$(e,t){t===void 0&&(t={});var n=t.insertAt;if(!(!e||typeof document=="undefined")){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",n==="top"&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}var az=` 62 62 #arrow[data-v-20b7fd4a], 63 63 #arrow[data-v-20b7fd4a]::before { … … 115 115 left: -5px; 116 116 } 117 `;F$( lz);const rg={};rg.render=sz;rg.__scopeId="data-v-20b7fd4a";var az=rg;const uz=["onKeyup"];var B$={props:{placement:{type:String,default:"bottom",validator:function(e){return["auto","auto-start","auto-end","top","top-start","top-end","bottom","bottom-start","bottom-end","right","right-start","right-end","left","left-start","left-end"].includes(e)}},disableClickAway:{type:Boolean,default:!1},offsetSkid:{type:String,default:"0"},offsetDistance:{type:String,default:"12"},hover:{type:Boolean,default:!1},show:{type:Boolean,default:null},disabled:{type:Boolean,default:!1},openDelay:{type:[Number,String],default:0},closeDelay:{type:[Number,String],default:0},zIndex:{type:[Number,String],default:9999},arrow:{type:Boolean,default:!1},arrowPadding:{type:String,default:"0"},interactive:{type:Boolean,default:!0},locked:{type:Boolean,default:!1},content:{type:String,default:null}},emits:["open:popper","close:popper"],setup(e,{emit:t}){const n=e;Iw(Ae=>({c81fc0a4:e.zIndex}));const r=_w(),o=_e(null),s=_e(null),l=_e(null),a=_e(!1);gt(()=>{const Ae=r.default();if(Ae&&Ae.length>1)return console.error(`[Popper]: The <Popper> component expects only one child element at its root. You passed ${Ae.length} child nodes.`)});const{arrowPadding:c,closeDelay:f,content:p,disableClickAway:h,disabled:v,interactive:y,locked:_,offsetDistance:w,offsetSkid:I,openDelay:O,placement:S,show:E}=rm(n),{isOpen:T,open:$,close:P}=oz({arrowPadding:c,emit:t,locked:_,offsetDistance:w,offsetSkid:I,placement:S,popperNode:s,triggerNode:l}),{hasContent:k}=eW(r,s,p),A=ce(()=>E.value!==null),H=ce(()=>v.value||!k.value),D=ce(()=>T.value&&!H.value),F=ce(()=>!h.value&&!A.value),z=ce(()=>y.value?`border: ${w.value}px solid transparent; margin: -${w.value}px;`:null),K=Bp.debounce($,O.value),te=Bp.debounce(P,f.value),we=async()=>{H.value||A.value||(te.clear(),K())},be=async()=>{A.value||(K.clear(),te())},Oe=()=>{T.value?be():we()};return Ft([k,v],([Ae,Ye])=>{T.value&&(!Ae||Ye)&&P()}),Ft(T,Ae=>{Ae?a.value=!0:Bp.debounce(()=>{a.value=!1},200)}),jt(()=>{A.value&&(E.value?K():te())}),jt(()=>{F.value&&QV(o,be)}),(Ae,Ye)=>(N(),V("div",{class:"inline-block",style:as(jn(z)),onMouseleave:Ye[2]||(Ye[2]=ft=>e.hover&&be()),ref:(ft,Le)=>{Le.popperContainerNode=ft,o.value=ft}},[g("div",{ref:(ft,Le)=>{Le.triggerNode=ft,l.value=ft},onMouseover:Ye[0]||(Ye[0]=ft=>e.hover&&we()),onClick:Oe,onFocus:we,onKeyup:Hw(be,["esc"])},[gr(Ae.$slots,"default")],40,uz),q(Ei,{name:"fade"},{default:ye(()=>[G_(g("div",{onClick:Ye[1]||(Ye[1]=ft=>!jn(y)&&be()),class:"popper",ref:(ft,Le)=>{Le.popperNode=ft,s.value=ft}},[gr(Ae.$slots,"content",{close:jn(P),isOpen:a.value},()=>[Xe(U(jn(p)),1)]),e.arrow?(N(),bt(az,{key:0})):qe("",!0)],512),[[bm,jn(D)]])]),_:3})],36))}},cz=`117 `;F$(az);const rg={};rg.render=lz;rg.__scopeId="data-v-20b7fd4a";var uz=rg;const cz=["onKeyup"];var B$={props:{placement:{type:String,default:"bottom",validator:function(e){return["auto","auto-start","auto-end","top","top-start","top-end","bottom","bottom-start","bottom-end","right","right-start","right-end","left","left-start","left-end"].includes(e)}},disableClickAway:{type:Boolean,default:!1},offsetSkid:{type:String,default:"0"},offsetDistance:{type:String,default:"12"},hover:{type:Boolean,default:!1},show:{type:Boolean,default:null},disabled:{type:Boolean,default:!1},openDelay:{type:[Number,String],default:0},closeDelay:{type:[Number,String],default:0},zIndex:{type:[Number,String],default:9999},arrow:{type:Boolean,default:!1},arrowPadding:{type:String,default:"0"},interactive:{type:Boolean,default:!0},locked:{type:Boolean,default:!1},content:{type:String,default:null}},emits:["open:popper","close:popper"],setup(e,{emit:t}){const n=e;Iw(Ae=>({c81fc0a4:e.zIndex}));const r=_w(),o=_e(null),s=_e(null),l=_e(null),a=_e(!1);gt(()=>{const Ae=r.default();if(Ae&&Ae.length>1)return console.error(`[Popper]: The <Popper> component expects only one child element at its root. You passed ${Ae.length} child nodes.`)});const{arrowPadding:c,closeDelay:f,content:p,disableClickAway:h,disabled:v,interactive:y,locked:_,offsetDistance:w,offsetSkid:I,openDelay:O,placement:S,show:E}=rm(n),{isOpen:T,open:$,close:P}=iz({arrowPadding:c,emit:t,locked:_,offsetDistance:w,offsetSkid:I,placement:S,popperNode:s,triggerNode:l}),{hasContent:k}=tW(r,s,p),A=ce(()=>E.value!==null),H=ce(()=>v.value||!k.value),D=ce(()=>T.value&&!H.value),F=ce(()=>!h.value&&!A.value),z=ce(()=>y.value?`border: ${w.value}px solid transparent; margin: -${w.value}px;`:null),K=Bp.debounce($,O.value),te=Bp.debounce(P,f.value),we=async()=>{H.value||A.value||(te.clear(),K())},be=async()=>{A.value||(K.clear(),te())},Oe=()=>{T.value?be():we()};return Ft([k,v],([Ae,Ye])=>{T.value&&(!Ae||Ye)&&P()}),Ft(T,Ae=>{Ae?a.value=!0:Bp.debounce(()=>{a.value=!1},200)}),jt(()=>{A.value&&(E.value?K():te())}),jt(()=>{F.value&&eW(o,be)}),(Ae,Ye)=>(N(),V("div",{class:"inline-block",style:as(jn(z)),onMouseleave:Ye[2]||(Ye[2]=ft=>e.hover&&be()),ref:(ft,Le)=>{Le.popperContainerNode=ft,o.value=ft}},[g("div",{ref:(ft,Le)=>{Le.triggerNode=ft,l.value=ft},onMouseover:Ye[0]||(Ye[0]=ft=>e.hover&&we()),onClick:Oe,onFocus:we,onKeyup:Hw(be,["esc"])},[gr(Ae.$slots,"default")],40,cz),q(Ei,{name:"fade"},{default:ye(()=>[G_(g("div",{onClick:Ye[1]||(Ye[1]=ft=>!jn(y)&&be()),class:"popper",ref:(ft,Le)=>{Le.popperNode=ft,s.value=ft}},[gr(Ae.$slots,"content",{close:jn(P),isOpen:a.value},()=>[Ge(U(jn(p)),1)]),e.arrow?(N(),bt(uz,{key:0})):qe("",!0)],512),[[bm,jn(D)]])]),_:3})],36))}},dz=` 118 118 .inline-block[data-v-5784ed69] { 119 119 display: inline-block; … … 146 146 opacity: 0; 147 147 } 148 `;F$( cz);B$.__scopeId="data-v-5784ed69";var dz=(()=>{const e=B$;return e.install=t=>{t.component("Popper",e)},e})();const fz=ve({components:{Popper:dz},props:{direction:{type:String,default:"left"}},data(){return{visible:!0}},computed:{caretClasses(){switch(this.direction){case"left":return"left-0 -ml-2 bottom-0 top-0 h-full"}}},methods:{show(){this.visible=!0},hide(){this.visible=!1}}}),pz={class:"bg-white p-4 rounded shadow-lg max-w-md"};function hz(e,t,n,r,o,s){const l=X("Popper");return N(),V("div",null,[q(l,{hover:"",openDelay:"200",closeDelay:"100",arrow:!0},{content:ye(()=>[g("div",pz,[gr(e.$slots,"content")])]),default:ye(()=>[gr(e.$slots,"trigger")]),_:3})])}var mz=Be(fz,[["render",hz]]);const vz=ve({components:{PodloveButton:Vn,Tooltip:mz},setup(){return{dispatch:it().dispatch}},methods:{simulateImportClick(){this.$refs.import.click()},importChapters(){const e=this.$refs.import;if(!!e)try{const t=new FileReader;t.onload=n=>{this.dispatch(nD(n.target.result))},t.readAsText(Y.exports.get(e,["files",0],""))(this.$refs.importForm).reset()}catch{}}}}),gz={class:"text-xs"},yz={class:"text-gray-600 leading-3 font-semibold mb-2"},bz={class:"text-gray-500 ml-1"},_z={class:"mb-1"},wz={class:"text-blue-500 underline",href:"https://podlove.org/simple-chapters/",target:"_blank"},Sz=g("code",null,".psc",-1),Ez={class:"mb-1"},xz={class:"text-blue-500 underline",href:"http://www.audacityteam.org",target:"_blank"},$z={class:"mb-1"},Cz={class:"text-blue-500 underline",href:"https://hindenburg.com",target:"_blank"},Tz=g("code",null,".txt",-1);function Oz(e,t,n,r,o,s){const l=X("podlove-button"),a=X("tooltip");return N(),bt(a,null,{trigger:ye(()=>[q(l,{variant:"secondary",size:"small",onClick:t[0]||(t[0]=c=>e.simulateImportClick())},{default:ye(()=>[Xe(U(e.__("Import","podlove-podcasting-plugin-for-wordpress")),1)]),_:1}),g("input",{ref:"import",type:"file",onChange:t[1]||(t[1]=(...c)=>e.importChapters&&e.importChapters(...c)),class:"hidden"},null,544)]),content:ye(()=>[g("div",gz,[g("p",yz,U(e.__("Accepts:","podlove-podcasting-plugin-for-wordpress")),1),g("ul",bz,[g("li",_z,[g("a",wz,U(e.__("Podlove Simple Chapters","podlove-podcasting-plugin-for-wordpress")),1),Xe(" ("),Sz,Xe("), ")]),g("li",Ez,[g("a",xz,U(e.__("Audacity","podlove-podcasting-plugin-for-wordpress")),1),Xe(" "+U(e.__("Track Labels","podlove-podcasting-plugin-for-wordpress"))+", ",1)]),g("li",$z,[g("a",Cz,U(e.__("Hindenburg","podlove-podcasting-plugin-for-wordpress")),1),Xe(" "+U(e.__("project files and MP4Chaps","podlove-podcasting-plugin-for-wordpress"))+" (",1),Tz,Xe(") ")])])])]),_:1})}var Az=Be(vz,[["render",Oz]]);const Iz=ve({components:{Popover:b$,PopoverButton:hj,PopoverPanel:mj}});function Pz(e,t,n,r,o,s){const l=X("PopoverButton"),a=X("PopoverPanel"),c=X("Popover",!0);return N(),bt(c,{class:"relative"},{default:ye(()=>[q(l,null,{default:ye(()=>[gr(e.$slots,"trigger")]),_:3}),q(Ei,{"enter-active-class":"transition duration-200 ease-out","enter-from-class":"translate-y-1 opacity-0","enter-to-class":"translate-y-0 opacity-100","leave-active-class":"transition duration-150 ease-in","leave-from-class":"translate-y-0 opacity-100","leave-to-class":"translate-y-1 opacity-0"},{default:ye(()=>[q(a,{class:"absolute"},{default:ye(()=>[gr(e.$slots,"content",{class:"overflow-hidden"})]),_:3})]),_:3})]),_:3})}var U$=Be(Iz,[["render",Pz]]);const kz=ve({components:{Popover:U$,PodloveButton:Vn},setup(){return{dispatch:it().dispatch}},methods:{download(e){this.dispatch(oD(e))}}}),Rz={class:"bg-white p-7 -translate-x-full z-10 mt-3 transform ml-16 rounded-lg shadow-lg"},Lz={class:"text-sm font-medium text-gray-900 truncate w-full mr-2"},Nz=g("div",{class:"text-sm text-gray-500"},".psc",-1),Mz={class:"text-sm font-medium text-gray-900 truncate w-full mr-2"},Dz=g("div",{class:"text-sm text-gray-500"},".txt",-1);function Fz(e,t,n,r,o,s){const l=X("podlove-button"),a=X("popover");return N(),V("div",null,[q(a,null,{trigger:ye(()=>[q(l,{variant:"secondary",size:"small"},{default:ye(()=>[Xe(U(e.__("Export","podlove-podcasting-plugin-for-wordpress")),1)]),_:1})]),content:ye(()=>[g("div",Rz,[g("a",{onClick:t[0]||(t[0]=c=>e.download("psc")),class:"flex items-center p-2 -m-3 transition duration-150 ease-in-out rounded-lg cursor-pointer bg-gray-100 hover:bg-indigo-100 focus:outline-none focus-visible:ring focus-visible:ring-indigo-500 focus-visible:ring-opacity-50 mb-4"},[g("div",Lz,U(e.__("Podlove Simple Chapters","podlove-podcasting-plugin-for-wordpress")),1),Nz]),g("a",{onClick:t[1]||(t[1]=c=>e.download("mp4")),class:"flex items-center p-2 -m-3 transition duration-150 ease-in-out rounded-lg cursor-pointer bg-gray-100 hover:bg-indigo-100 focus:outline-none focus-visible:ring focus-visible:ring-indigo-500 focus-visible:ring-opacity-50"},[g("div",Mz,U(e.__("MP4Chaps","podlove-podcasting-plugin-for-wordpress")),1),Dz])])]),_:1})])}var Bz=Be(kz,[["render",Fz]]);const Uz=ve({components:{Module:Nn,TabsContainer:O$,Tab:T$,ChaptersForm:YV,ChaptersImport:Az,ChaptersExport:Bz},setup(){return{dispatch:it().dispatch}},created(){this.dispatch(ZM())}});function jz(e,t,n,r,o,s){const l=X("chapters-import"),a=X("chapters-export"),c=X("chapters-form"),f=X("module");return N(),bt(f,{name:"chapters",title:e.__("Chapter Marks","podlove-podcasting-plugin-for-wordpress")},{actions:ye(()=>[q(l,{class:"mr-1"}),q(a)]),default:ye(()=>[q(c)]),_:1},8,["title"])}var Hz=Be(Uz,[["render",jz]]);const Vz={},Wz={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},zz=g("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-6-3a2 2 0 11-4 0 2 2 0 014 0zm-2 4a5 5 0 00-4.546 2.916A5.986 5.986 0 0010 16a5.986 5.986 0 004.546-2.084A5 5 0 0010 11z","clip-rule":"evenodd"},null,-1),qz=[zz];function Kz(e,t){return N(),V("svg",Wz,qz)}var Gz=Be(Vz,[["render",Kz]]);const Xz=ve({props:{outlet:{type:String,default:"header"}},components:{PodloveButton:Vn,UploadIcon:R2,DocumentTextIcon:N2},setup(){return{dispatch:it().dispatch}},methods:{simulateImportClick(){this.$refs.import.click()},importTranscriptFromAsset(){this.dispatch(TD())},handleImport(){const e=this.$refs.import;if(!!e)try{const t=new FileReader;t.onload=n=>{this.dispatch(CD(n.target.result))},t.readAsText(Y.exports.get(e,["files",0],""))(this.$refs.importForm).reset()}catch{}}}}),Jz={ref:"importForm",class:"cursor-pointer"},Yz={class:"grid grid-cols-2"};function Zz(e,t,n,r,o,s){const l=X("upload-icon"),a=X("podlove-button");return N(),V("form",Jz,[g("div",Yz,[g("div",null,[q(a,{variant:"primary",onClick:e.simulateImportClick,class:"ml-1"},{default:ye(()=>[q(l,{class:"-ml-0.5 mr-2 h-4 w-4","aria-hidden":"true"}),Xe(" "+U(e.__("Import Transcript","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["onClick"]),g("input",{ref:"import",accept:"text/vtt",type:"file",onChange:t[0]||(t[0]=(...c)=>e.handleImport&&e.handleImport(...c)),class:"hidden",key:""},null,544)]),g("div",null,[q(a,{variant:"primary",onClick:e.importTranscriptFromAsset,class:"ml-1"},{default:ye(()=>[Xe(U(e.__("Get From Asset","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["onClick"])])])],512)}var Qz=Be(Xz,[["render",Zz]]);const eq=ve({components:{Avatar:Gz,TranscriptsImport:Qz,DocumentTextIcon:N2},setup(){return{state:yt({transcripts:G.transcripts.list,contributors:G.contributors.contributors,voices:G.transcripts.voices})}},computed:{voices(){return this.state.contributors.reduce((e,t)=>{var r;const n=(r=this.state.voices.find(o=>o.contributor===t.id))==null?void 0:r.voice;return{...e,[n]:{id:t.id,name:t.realname,avatar:t.avatar_url}}},{})},transcripts(){return this.state.transcripts.reduce((e,t)=>{const n=Y.exports.last(e);return n&&n.voiceId===t.voice?[...Y.exports.dropRight(e),{...n,voiceId:t.voice,content:[...n.content,{text:t.text,start:t.start_ms,end:t.end_ms}]}]:[...e,{voiceId:t.voice,content:[{text:t.text,start:t.start_ms,end:t.end_ms}]}]},[]).map(e=>({...e,voice:Y.exports.get(this.voices,[e.voiceId],{name:e.voiceId})}))}},methods:{formatTime(e){return new Nt(e).prettyShort}}}),tq={key:0,class:"h-96 p-2 overflow-x-auto"},nq={class:"mr-2 w-12 text-gray-400 select-none"},rq=["src"],oq={class:"w-full font-light text-sm mr-2"},iq={class:"block font-bold"},sq={class:"flex justify-between"},lq={class:"ml-1 font-mono select-none"},aq={key:1,class:"text-center h-96 flex items-center justify-center flex-col"},uq={class:"mt-2 text-sm font-medium text-gray-900"},cq={class:"mt-1 text-sm text-gray-500"},dq={class:"mt-6"};function fq(e,t,n,r,o,s){const l=X("avatar"),a=X("document-text-icon"),c=X("transcripts-import");return e.transcripts.length>0?(N(),V("div",tq,[(N(!0),V(Fe,null,Mt(e.transcripts,(f,p)=>{var h,v,y;return N(),V("div",{class:"flex mb-2",key:`transcript-${p}`},[g("div",nq,[(h=f==null?void 0:f.voice)!=null&&h.avatar?(N(),V("img",{key:0,class:"w-12 h-12 rounded",src:(v=f==null?void 0:f.voice)==null?void 0:v.avatar},null,8,rq)):(N(),bt(l,{key:1}))]),g("div",oq,[g("span",iq,U((y=f==null?void 0:f.voice)==null?void 0:y.name),1),g("span",sq,[g("span",null,[(N(!0),V(Fe,null,Mt(f.content,(_,w)=>(N(),V("span",{class:"mr-1",key:`transcript-${p}-content-${w}`},U(_.text),1))),128))]),g("span",lq,U(e.formatTime(f.content[0].start)),1)])])])}),128))])):(N(),V("div",aq,[q(a,{class:"mx-auto h-12 w-12 text-gray-400"}),g("h3",uq,U(e.__("No transcript yet","podlove-podcasting-plugin-for-wordpress")),1),g("p",cq,U(e.__("Get started by importing a transcript.","podlove-podcasting-plugin-for-wordpress")),1),g("div",dq,[q(c,{outlet:"content",class:"mr-1"})])]))}var pq=Be(eq,[["render",fq]]);const hq=ve({components:{PodloveButton:Vn,Modal:ja},data(){return{modalOpen:!1}},setup(){return{state:yt({contributors:G.contributors.contributors,voices:G.transcripts.voices}),dispatch:it().dispatch}},computed:{sortedContributors(){return this.state.contributors.sort((e,t)=>{const n=e.publicname||e.realname||e.nickname,r=t.publicname||t.realname||t.nickname;return n.localeCompare(r)})}},methods:{updateContributor(e,t){const n=t.target.value;this.dispatch($D({voice:e,contributor:n}))},openVoices(){this.modalOpen=!0},closeVoices(){this.modalOpen=!1}}}),mq={key:0},vq={class:"border-gray-200 border-b pb-2 px-4 -mx-6 mb-4"},gq={class:"text-lg leading-6 font-medium text-gray-900"},yq={for:"country",class:"block text-sm font-medium text-gray-700"},bq=["value","onChange"],_q=g("option",{value:"0"},null,-1),wq=["value"];function Sq(e,t,n,r,o,s){const l=X("podlove-button"),a=X("modal");return e.state.voices.length>0?(N(),V("div",mq,[q(l,{variant:"secondary",size:"small",onClick:t[0]||(t[0]=c=>e.openVoices())},{default:ye(()=>[Xe(U(e.__("Voices","podlove-podcasting-plugin-for-wordpress")),1)]),_:1}),q(a,{open:e.modalOpen,onClose:t[1]||(t[1]=c=>e.closeVoices())},{default:ye(()=>[g("div",vq,[g("h3",gq,U(e.__("Transcript Voices","podlove-podcasting-plugin-for-wordpress")),1)]),(N(!0),V(Fe,null,Mt(e.state.voices,(c,f)=>(N(),V("div",{key:`voice-${f}`,class:wt(["w-full py-2 px-4",{"bg-white":f%2}])},[g("label",yq,U(c.voice),1),g("select",{value:c.contributor,class:"mt-1 block w-full py-2 px-3 border border-gray-300 bg-white rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm",onChange:p=>e.updateContributor(c.voice,p)},[_q,(N(!0),V(Fe,null,Mt(e.sortedContributors,(p,h)=>(N(),V("option",{key:`voice-${f}-contributor-${h}`,value:p.id},U(p.publicname||p.realname||p.nickname),9,wq))),128))],40,bq)],2))),128))]),_:1},8,["open"])])):qe("",!0)}var Eq=Be(hq,[["render",Sq]]);const xq=[{title:"Export webvtt",type:"webvtt",file:"transcript.webvtt",ending:".webvtt"},{title:"Export json (flat)",type:"json",file:"transcript.json",ending:".json"},{title:"Export json (grouped)",type:"json_grouped",file:"transcript.json",ending:".json"},{title:"Export xml",type:"xml",file:"transcript.xml",ending:".xml"}],$q=ve({components:{Popover:U$,PodloveButton:Vn},setup(){return{state:yt({post:G.post.id,baseUrl:G.runtime.baseUrl,transcripts:G.transcripts.list})}},data(){return{exportTypes:xq}}}),Cq={key:0},Tq={class:"bg-white p-7 pb-1 -translate-x-full z-10 mt-3 transform ml-16 rounded-lg shadow-lg"},Oq=["download","href"],Aq={class:"text-sm font-medium text-gray-900 truncate w-full mr-2"},Iq={class:"text-sm text-gray-500"};function Pq(e,t,n,r,o,s){const l=X("podlove-button"),a=X("popover");return e.state.transcripts.length>0?(N(),V("div",Cq,[q(a,null,{trigger:ye(()=>[q(l,{variant:"secondary",size:"small",tabindex:"-1"},{default:ye(()=>[Xe(U(e.__("Export","podlove-podcasting-plugin-for-wordpress")),1)]),_:1})]),content:ye(()=>[g("div",Tq,[(N(!0),V(Fe,null,Mt(e.exportTypes,(c,f)=>(N(),V("a",{key:`type-${f}`,download:c.file,href:`${e.state.baseUrl}/?p=${e.state.post}&podlove_transcript=${c.type}`,class:"flex items-center p-2 -m-3 transition duration-150 ease-in-out rounded-lg cursor-pointer bg-gray-100 hover:bg-indigo-100 focus:outline-none focus-visible:ring focus-visible:ring-indigo-500 focus-visible:ring-opacity-50 mb-4"},[g("div",Aq,U(c.title),1),g("div",Iq,U(c.ending),1)],8,Oq))),128))])]),_:1})])):qe("",!0)}var kq=Be($q,[["render",Pq]]);const Rq=ve({components:{PodloveButton:Vn,Modal:ja,ExclamationIcon:M2,DialogTitle:oj},data(){return{modalVisible:!1}},setup(){return{state:yt({transcripts:G.transcripts.list}),dispatch:it().dispatch}},methods:{deleteTranscripts(){this.closeModal(),this.dispatch(OD())},openModal(){this.modalVisible=!0},closeModal(){this.modalVisible=!1}}}),Lq={key:0},Nq={class:"sm:flex sm:items-start"},Mq={class:"mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-red-100 sm:mx-0 sm:h-10 sm:w-10"},Dq={class:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left"},Fq={class:"mt-2"},Bq={class:"text-sm text-gray-500"},Uq={class:"mt-5 sm:mt-4 sm:flex sm:flex-row-reverse"};function jq(e,t,n,r,o,s){const l=X("podlove-button"),a=X("exclamation-icon"),c=X("DialogTitle"),f=X("modal");return e.state.transcripts.length>0?(N(),V("div",Lq,[q(l,{variant:"secondary",size:"small",onClick:t[0]||(t[0]=p=>e.openModal())},{default:ye(()=>[Xe("Clear")]),_:1}),q(f,{open:e.modalVisible,onClose:t[3]||(t[3]=p=>e.closeModal())},{default:ye(()=>[g("div",Nq,[g("div",Mq,[q(a,{class:"h-6 w-6 text-red-600","aria-hidden":"true"})]),g("div",Dq,[q(c,{as:"h3",class:"text-lg leading-6 font-medium text-gray-900"},{default:ye(()=>[Xe(" Clear Transcript ")]),_:1}),g("div",Fq,[g("p",Bq,U(e.__("Are you sure you want to clear your transcript?","podlove-podcasting-plugin-for-wordpress")),1)])])]),g("div",Uq,[q(l,{class:"sm:ml-3 sm:w-auto sm:text-sm",variant:"danger",onClick:t[1]||(t[1]=p=>e.deleteTranscripts())},{default:ye(()=>[Xe(U(e.__("Clear","podlove-podcasting-plugin-for-wordpress")),1)]),_:1}),q(l,{class:"sm:ml-3 sm:w-auto sm:text-sm",onClick:t[2]||(t[2]=p=>e.closeModal())},{default:ye(()=>[Xe(U(e.__("Cancel","podlove-podcasting-plugin-for-wordpress")),1)]),_:1})])]),_:1},8,["open"])])):qe("",!0)}var Hq=Be(Rq,[["render",jq]]);const Vq=ve({components:{Module:Nn,TabsContainer:O$,Tab:T$,TranscriptsList:pq,TranscriptsVoices:Eq,TranscriptsExport:kq,TranscriptsDelete:Hq},setup(){return{dispatch:it().dispatch}},created(){this.dispatch(ix()),this.dispatch(SD())}});function Wq(e,t,n,r,o,s){const l=X("transcripts-voices"),a=X("transcripts-export"),c=X("transcripts-delete"),f=X("transcripts-list"),p=X("module");return N(),bt(p,{name:"transcript",title:e.__("Transcripts","podlove-podcasting-plugin-for-wordpress")},{actions:ye(()=>[q(l,{class:"mr-1"}),q(a,{class:"mr-1"}),q(c)]),default:ye(()=>[q(f)]),_:1},8,["title"])}var zq=Be(Vq,[["render",Wq]]);function qq(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"fill-rule":"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12Zm13.36-1.814a.75.75 0 1 0-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 0 0-1.06 1.06l2.25 2.25a.75.75 0 0 0 1.14-.094l3.75-5.25Z","clip-rule":"evenodd"})])}function Kd(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"fill-rule":"evenodd",d:"M19.916 4.626a.75.75 0 0 1 .208 1.04l-9 13.5a.75.75 0 0 1-1.154.114l-6-6a.75.75 0 0 1 1.06-1.06l5.353 5.353 8.493-12.74a.75.75 0 0 1 1.04-.207Z","clip-rule":"evenodd"})])}function Gd(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"fill-rule":"evenodd",d:"M11.47 4.72a.75.75 0 0 1 1.06 0l3.75 3.75a.75.75 0 0 1-1.06 1.06L12 6.31 8.78 9.53a.75.75 0 0 1-1.06-1.06l3.75-3.75Zm-3.75 9.75a.75.75 0 0 1 1.06 0L12 17.69l3.22-3.22a.75.75 0 1 1 1.06 1.06l-3.75 3.75a.75.75 0 0 1-1.06 0l-3.75-3.75a.75.75 0 0 1 0-1.06Z","clip-rule":"evenodd"})])}function j$(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"fill-rule":"evenodd",d:"M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25Zm-1.72 6.97a.75.75 0 1 0-1.06 1.06L10.94 12l-1.72 1.72a.75.75 0 1 0 1.06 1.06L12 13.06l1.72 1.72a.75.75 0 1 0 1.06-1.06L13.06 12l1.72-1.72a.75.75 0 1 0-1.06-1.06L12 10.94l-1.72-1.72Z","clip-rule":"evenodd"})])}const Kq=ve({props:["file_key","track_index"],components:{Listbox:Vv,ListboxButton:zv,ListboxLabel:Wv,ListboxOption:Kv,ListboxOptions:qv,CheckIcon:Kd,SelectorIcon:Gd,DocumentCheckIcon:Y9},setup(){return{state:yt({services:G.auphonic.incomingServices,serviceFiles:G.auphonic.serviceFiles,fileSelections:G.auphonic.fileSelections,episodeSlug:G.episode.slug}),dispatch:it().dispatch}},methods:{set(e,t){this.dispatch(Cx({key:this.file_key,prop:e,value:t})),Number.isInteger(this.track_index)&&this.dispatch(Ox({track:{},index:this.track_index}))},handleFileSelection(e){this.set("fileSelection",e.target.value)},handleUrlUpdate(e){this.set("urlValue",e.target.value)},handleFileUploadSelection(e){const t=e.target.files;t?this.set("fileValue",t[0]):this.set("fileValue",null)},handleServiceSelection(e){this.set("currentServiceSelection",e.target.value)},setEpisodeSlug(e){this.dispatch($t({prop:"slug",value:e})),this.dispatch(Dx())}},computed:{services(){return this.state.services},currentService(){return this.state.services.find(e=>e.uuid===this.currentServiceSelection)},serviceFiles(){return Y.exports.get(this.state,["serviceFiles",this.currentServiceSelection],null)},fileSelection(){return this.state.fileSelections[this.file_key]},filenameSelectedForUpload(){var e,t;return(t=(e=this.fileSelection)==null?void 0:e.fileValue)==null?void 0:t.name},currentServiceSelection(){var e;return(e=this.fileSelection)==null?void 0:e.currentServiceSelection},urlFieldValue(){return this.fileSelection.urlValue},externalFileFieldValue(){return this.fileSelection.fileSelection},slugCandidate(){if(this.currentServiceSelection=="url"&&this.urlFieldValue)return this.urlFieldValue.split("/").reverse()[0].split(".")[0];if(this.currentServiceSelection=="file"){const e=this.filenameSelectedForUpload;return e?e.split(".")[0]:null}return null},shouldSuggestSlug(){return this.slugCandidate!=null&&this.slugCandidate!=this.state.episodeSlug}}}),Gq={class:"flex flex-col gap-2"},Xq=g("label",{class:"block md:hidden text-sm font-medium text-gray-700"},"Upload Method",-1),Jq=["value","selected"],Yq={key:0},Zq={key:0},Qq=["for"],eK={key:0,class:"sm:mt-1"},tK={class:"text-sm font-normal"},nK={key:1,class:"sm:mt-1"},rK=["id"],oK={key:1},iK=["for"],sK={class:"mt-1"},lK=["id","value"],aK={key:2},uK={key:0},cK=["for"],dK=["id","value"],fK=["value"],pK={key:1},hK={key:3,class:"mt-3"},mK={class:"font-mono"};function vK(e,t,n,r,o,s){const l=X("DocumentCheckIcon");return N(),V("div",null,[g("div",Gq,[g("div",null,[Xq,g("select",{onChange:t[0]||(t[0]=(...a)=>e.handleServiceSelection&&e.handleServiceSelection(...a)),class:"mt-1 block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm rounded-md"},[(N(!0),V(Fe,null,Mt(e.services,a=>(N(),V("option",{key:a.uuid,value:a.uuid,selected:a.uuid==e.currentServiceSelection},U(a.type)+": "+U(a.display_name),9,Jq))),128))],32)]),e.currentService?(N(),V("div",Yq,[e.currentService.type==="file"?(N(),V("div",Zq,[g("label",{for:e.file_key+"file-upload",class:"relative cursor-pointer bg-white rounded-md font-medium text-indigo-600 hover:text-indigo-500 focus-within:outline-none focus-within:ring-2 focus-within:ring-offset-2 focus-within:ring-indigo-500"},[e.filenameSelectedForUpload?(N(),V("div",eK,[Xe(" Upload "),g("span",tK,U(e.filenameSelectedForUpload),1)])):(N(),V("div",nK,U(e.__("Upload a file","podlove-podcasting-plugin-for-wordpress")),1)),g("input",{id:e.file_key+"file-upload",name:"file-upload",type:"file",class:"sr-only",onInput:t[1]||(t[1]=(...a)=>e.handleFileUploadSelection&&e.handleFileUploadSelection(...a))},null,40,rK)],8,Qq)])):e.currentService.type==="url"?(N(),V("div",oK,[g("label",{for:e.file_key+"audio_source_url",class:"block text-sm font-medium text-gray-700"},"File URL",8,iK),g("div",sK,[g("input",{type:"url",name:"audio_source_url",id:e.file_key+"audio_source_url",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",placeholder:"https://example.com/audio.flac",value:e.urlFieldValue,onInput:t[2]||(t[2]=(...a)=>e.handleUrlUpdate&&e.handleUrlUpdate(...a))},null,40,lK)])])):(N(),V("div",aK,[e.serviceFiles!==null?(N(),V("div",uK,[g("label",{for:e.file_key+"external_file",class:"block text-sm font-medium text-gray-700"},"File",8,cK),g("select",{name:"audio_external_file",id:e.file_key+"external_file",class:"mt-1 block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm rounded-md",value:e.externalFileFieldValue,onChange:t[3]||(t[3]=(...a)=>e.handleFileSelection&&e.handleFileSelection(...a))},[(N(!0),V(Fe,null,Mt(e.serviceFiles,a=>(N(),V("option",{key:a,value:a,d:""},U(a),9,fK))),128))],40,dK)])):(N(),V("div",pK,"..."))])),e.shouldSuggestSlug?(N(),V("div",hK,[g("button",{onClick:t[4]||(t[4]=()=>e.setEpisodeSlug(e.slugCandidate)),type:"button",class:"relative text-xs inline-flex items-center rounded-md bg-white px-3 py-2 font-medium text-gray-500 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50"},[q(l,{class:"-ml-0.5 mr-1.5 h-4 w-4 text-gray-400","aria-hidden":"true"}),g("span",null,[Xe(U(e.__("Use as Episode Slug:","podlove-podcasting-plugin-for-wordpress"))+" ",1),g("span",mK,U(e.slugCandidate),1)])])])):qe("",!0)])):qe("",!0)])])}var gK=Be(Kq,[["render",vK]]);const yK=ve({components:{ClipboardCheckIcon:X9,ExternalLinkIcon:P2,ExclamationIcon:M2},setup(){return{state:yt({production:G.auphonic.production,title:G.episode.title,subtitle:G.episode.subtitle,summary:G.episode.summary,duration:G.episode.duration,slug:G.episode.slug,license_name:G.episode.license_name,license_url:G.episode.license_url,chapters:G.chapters.list}),dispatch:it().dispatch}},methods:{isDifferent(e){switch(e.title){case"chapters":const t=e.here.map(r=>r.start+(r.title||"")+(r.href||"")+(r.image||"")).join(";"),n=e.there.map(r=>Math.round((r.start_output_sec||0)*1e3)+(r.title||"")+(r.url||"")+(r.image||"")).join(";");return t!=n;default:return e.there!=e.here}},renderEntryPreview(e){switch(e.title){case"chapters":return e.there.map(n=>n.start+" "+n.title).join(" / ");default:return e.there}},importMeta(e,t){switch(e){case"chapters":const r=t.map(o=>({start:Math.round((o.start_output_sec||0)*1e3),title:o.title||"",href:o.url||"",image:""}));this.dispatch(LE(r));break;default:this.dispatch($t({prop:e,value:t}));break}},importAllMeta(){this.visibleEntries.forEach(e=>{this.importMeta(e.title,e.there)})}},computed:{production(){return this.state.production||{}},entries(){const e=this.state.production,t=this.state;return[{key:1,title:"title",here:t.title,there:e.metadata.title},{key:2,title:"subtitle",here:t.subtitle,there:e.metadata.subtitle},{key:3,title:"summary",here:t.summary,there:e.metadata.summary},{key:5,title:"license_name",here:t.license_name,there:e.metadata.license},{key:6,title:"license_url",here:t.license_url,there:e.metadata.license_url},{key:9,title:"slug",here:t.slug,there:e.output_basename},{key:10,title:"chapters",here:t.chapters,there:e.chapters}]},visibleEntries(){return this.entries.filter(e=>e.there&&this.isDifferent(e))}}}),bK={key:0,class:"rounded-md bg-green-50 p-4"},_K={class:"flex"},wK={class:"flex-shrink-0"},SK={class:"ml-3"},EK={class:"text-sm font-medium text-green-800"},xK={class:"mt-2 text-sm text-green-700"},$K=["href"],CK={key:1,class:"rounded-md bg-yellow-50 p-4 mt-4"},TK={class:"flex"},OK={class:"flex-shrink-0"},AK={class:"ml-3"},IK={class:"text-sm font-medium text-yellow-800"},PK={class:"mt-2 text-sm text-yellow-700"},kK={key:2,class:"mt-4 overflow-hidden rounded-lg bg-white shadow"},RK={class:"p-6"},LK=g("h3",{class:"text-lg font-medium leading-6 text-gray-900"},"Import Metadata",-1),NK={class:"mt-1 text-sm text-gray-500"},MK={class:"mt-6 flow-root"},DK={role:"list",class:"-my-5 divide-y divide-gray-200"},FK={class:"flex items-center space-x-4"},BK={class:"min-w-0 flex-1"},UK={class:"truncate text-sm text-gray-500"},jK={class:"truncate text-sm font-medium text-gray-900"},HK=["onClick"],VK={class:"hidden sm:inline"},WK={class:"mt-6"},zK={key:3,class:"mt-4 overflow-hidden rounded-lg bg-white shadow"},qK={class:"p-6"};function KK(e,t,n,r,o,s){const l=X("ClipboardCheckIcon"),a=X("ExternalLinkIcon"),c=X("ExclamationIcon");return N(),V("div",null,[e.production.status==3?(N(),V("div",bK,[g("div",_K,[g("div",wK,[q(l,{class:"h-5 w-5 text-green-400","aria-hidden":"true"})]),g("div",SK,[g("h3",EK,U(e.__("Done","podlove-podcasting-plugin-for-wordpress")),1),g("div",xK,[g("p",null,[g("a",{href:e.production.status_page,target:"_blank",class:"underline inline-flex items-center"},[Xe(U(e.__("View Results","podlove-podcasting-plugin-for-wordpress"))+" ",1),q(a,{class:"ml-0.5 mr-1 h-4 w-4","aria-hidden":"true"})],8,$K),Xe(" "+U(e.__("on the Auphonic status page.","podlove-podcasting-plugin-for-wordpress")),1)])])])])])):qe("",!0),e.production.warning_message?(N(),V("div",CK,[g("div",TK,[g("div",OK,[q(c,{class:"h-5 w-5 text-yellow-400","aria-hidden":"true"})]),g("div",AK,[g("h3",IK,U(e.__("Warning","podlove-podcasting-plugin-for-wordpress")),1),g("div",PK,[g("p",null,U(e.production.warning_message),1)])])])])):qe("",!0),e.visibleEntries.length>0?(N(),V("div",kK,[g("div",RK,[g("div",null,[LK,g("p",NK,U(e.__("These values from your Auphonic Production differ from your local values:","podlove-podcasting-plugin-for-wordpress")),1)]),g("div",MK,[g("ul",DK,[(N(!0),V(Fe,null,Mt(e.visibleEntries,f=>(N(),V("li",{key:f.key,class:"py-4"},[g("div",FK,[g("div",BK,[g("p",UK,[g("em",null,U(f.title),1),Xe(" "+U(e.__("in the Auphonic Production is:","podlove-podcasting-plugin-for-wordpress")),1)]),g("p",jK,U(e.renderEntryPreview(f)),1)]),g("div",null,[g("button",{onClick:Sc(p=>e.importMeta(f.title,f.there),["prevent"]),class:"inline-flex items-center rounded-full border border-gray-300 bg-white px-2.5 py-0.5 text-sm font-medium leading-5 text-gray-700 shadow-sm hover:bg-gray-50","aria-label":"Import from Auphonic"},[Xe(U(e.__("Import","podlove-podcasting-plugin-for-wordpress")),1),g("span",VK,"\xA0"+U(e.__("from Auphonic","podlove-podcasting-plugin-for-wordpress")),1)],8,HK)])])]))),128))])]),g("div",WK,[g("button",{onClick:t[0]||(t[0]=Sc((...f)=>e.importAllMeta&&e.importAllMeta(...f),["prevent"])),class:"flex w-full items-center justify-center rounded-md border border-gray-300 bg-white px-4 py-2 text-sm font-medium text-gray-700 shadow-sm hover:bg-gray-50"},U(e.__("Import all from Auphonic","podlove-podcasting-plugin-for-wordpress")),1)])])])):(N(),V("div",zK,[g("div",qK,U(e.__("Nothing to import","podlove-podcasting-plugin-for-wordpress")),1)]))])}var GK=Be(yK,[["render",KK]]);const XK=ve({components:{Switch:bj,SwitchGroup:yj,SwitchLabel:_j},data(){return{enabled:!1}},methods:{handleUpdate(e){this.enabled=e,this.dispatch(Ax(e))}},setup(){return{state:yt({publishWhenDone:G.auphonic.publishWhenDone}),dispatch:it().dispatch}},mounted(){this.enabled=this.state.publishWhenDone}}),JK={class:"text-sm text-gray-900"};function YK(e,t,n,r,o,s){const l=X("Switch"),a=X("SwitchLabel"),c=X("SwitchGroup");return N(),V("div",null,[q(c,{as:"div",class:"flex items-center"},{default:ye(()=>[q(l,{modelValue:e.enabled,"onUpdate:modelValue":e.handleUpdate,class:wt([e.enabled?"bg-indigo-600":"bg-gray-200","relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2"])},{default:ye(()=>[g("span",{"aria-hidden":"true",class:wt([e.enabled?"translate-x-5":"translate-x-0","pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out"])},null,2)]),_:1},8,["modelValue","onUpdate:modelValue","class"]),q(a,{as:"span",class:"ml-3"},{default:ye(()=>[g("span",JK,U(e.__("Publish Episode when Production is done","podlove-podcasting-plugin-for-wordpress")),1)]),_:1})]),_:1})])}var ZK=Be(XK,[["render",YK]]);const QK=ve({props:{className:{type:String,default:""}}}),eG=g("g",{transform:"translate(-12.73496,-48.464)"},[g("path",{d:"m 28.623,223.469 c -3.277,-0.007 -7.473,0.836 -12.588,2.528 l 1.46,6.491 c 3.476,-1.302 6.689,-1.95 9.638,-1.944 3.472,0.008 5.797,0.63 6.975,1.868 1.176,1.237 1.762,3.569 1.754,6.998 l -7.373,-0.017 c -5.047,-0.011 -8.933,1.031 -11.655,3.125 -2.725,2.092 -4.091,5.007 -4.099,8.739 -0.008,3.334 1.198,6.07 3.618,8.207 2.419,2.14 5.661,3.212 9.726,3.221 4.389,0.01 8.063,-1.161 11.017,-3.512 l 1.075,2.655 7.471,0.017 0.052,-23.199 c 0.011,-4.848 -1.243,-8.587 -3.759,-11.214 -2.519,-2.628 -6.956,-3.949 -13.312,-3.963 z m 7.6,30 c -0.33,0.195 -0.92,0.505 -1.772,0.929 -0.853,0.424 -1.738,0.734 -2.656,0.929 -0.92,0.193 -2.033,0.29 -3.343,0.287 -1.966,-0.004 -3.506,-0.443 -4.618,-1.314 -1.113,-0.873 -1.666,-2.08 -1.663,-3.618 0.007,-3.079 2.467,-4.611 7.382,-4.601 4.916,0.011 6.685,0.006 6.685,0.006 l -0.015,7.382 z m 41.315,-29.3 9.241,0.021 -0.084,37.845 -6.489,-0.014 -1.173,-2.754 c -2.494,1.173 -5.743,3.524 -12.295,3.51 -5.701,-0.013 -13.761,-0.336 -13.723,-17.135 l 0.048,-21.527 9.339,0.021 -0.051,22.806 c -0.013,5.661 2.719,7.772 6.863,7.781 2.883,0.007 5.638,-0.74 8.262,-2.243 l 0.062,-28.311 z m 44.305,1.377 c -2.751,-1.251 -5.502,-1.88 -8.254,-1.887 -3.801,-0.008 -7.539,1 -11.212,3.023 l -1.076,-2.46 -6.586,-0.015 -0.111,49.679 9.436,0.021 0.029,-13.013 c 1.505,0.659 4.534,1.975 8.154,1.983 6.096,0.014 10.833,-1.728 14.215,-5.226 3.385,-3.498 5.083,-8.296 5.097,-14.391 0.011,-4.719 -0.914,-8.538 -2.776,-11.458 -1.863,-2.918 -4.166,-5.005 -6.916,-6.256 z m -3.061,27.173 c -2.066,1.863 -4.772,2.792 -8.114,2.784 -2.425,-0.005 -4.587,-0.633 -6.484,-1.883 l 0.047,-21.135 c 2.098,-0.912 4.36,-1.367 6.786,-1.362 7.274,0.017 10.902,4.219 10.884,12.608 -0.01,4.129 -1.049,7.124 -3.119,8.988 z m 53.325,-12.021 -0.048,21.43 -9.437,-0.021 0.051,-22.708 c 0.005,-2.293 -0.45,-4.145 -1.363,-5.557 -0.917,-1.411 -2.717,-2.12 -5.402,-2.125 -2.427,-0.005 -5.408,0.676 -8.949,2.044 l -0.063,28.311 -9.437,-0.021 0.111,-49.608 9.436,0.021 -0.03,13.827 c 3.935,-1.628 7.736,-2.441 11.406,-2.433 5.636,0.012 13.762,0.659 13.725,16.84 z m 92.456,-16.111 9.437,0.021 -0.084,37.747 -9.437,-0.021 0.084,-37.747 z m 46.696,29.103 2.643,6.102 c -1.97,1.11 -4.085,1.99 -6.347,2.639 -2.263,0.649 -4.969,0.972 -8.113,0.965 -5.898,-0.013 -10.629,-1.825 -14.192,-5.438 -3.564,-3.611 -5.337,-8.368 -5.324,-14.266 0.014,-6.095 1.793,-10.891 5.339,-14.389 3.547,-3.497 8.302,-5.241 14.266,-5.228 3.014,0.006 5.586,0.307 7.715,0.901 2.127,0.595 4.371,1.453 6.729,2.571 l -2.67,6.187 c -2.356,-0.792 -4.208,-1.369 -5.548,-1.732 -1.345,-0.363 -2.9,-0.547 -4.67,-0.551 -3.735,-0.008 -6.572,1.1 -8.509,3.323 -1.938,2.224 -2.912,5.203 -2.921,8.938 -0.008,3.605 1,6.54 3.028,8.805 2.024,2.266 4.809,3.403 8.347,3.412 1.77,0.004 3.326,-0.173 4.673,-0.531 1.339,-0.356 3.193,-0.926 5.554,-1.708 z m -53.79,-12.801 -0.048,21.43 -9.338,-0.021 0.05,-22.609 c 0.016,-7.021 -4.21,-7.677 -6.766,-7.683 -2.295,-0.005 -5.344,0.676 -9.146,2.044 l -0.062,28.212 -9.339,-0.021 0.084,-37.747 6.683,0.015 1.175,2.755 c 4.462,-2.152 8.818,-3.225 13.081,-3.215 4.405,0.01 13.663,0.163 13.626,16.84 z m -59.894,-17.042 c -5.898,-0.013 -10.62,1.731 -14.167,5.227 -3.545,3.499 -5.327,8.294 -5.341,14.389 -0.009,3.801 0.784,7.178 2.385,10.131 1.6,2.953 3.854,5.268 6.769,6.946 2.913,1.676 6.301,2.52 10.169,2.528 3.866,0.009 7.274,-0.82 10.228,-2.483 2.955,-1.665 5.234,-3.969 6.848,-6.915 1.612,-2.946 2.423,-6.351 2.432,-10.218 0.013,-5.963 -1.73,-10.719 -5.228,-14.265 -3.5,-3.546 -8.195,-5.327 -14.095,-5.34 z m 6.866,28.62 c -1.809,2.095 -4.152,3.137 -7.035,3.131 -2.753,-0.006 -5.047,-1.076 -6.874,-3.21 -1.831,-2.133 -2.741,-5.102 -2.732,-8.903 0.008,-3.866 0.949,-6.879 2.821,-9.037 1.872,-2.159 4.15,-3.235 6.84,-3.229 2.752,0.006 5.059,1.077 6.922,3.21 1.862,2.134 2.791,5.167 2.783,9.099 -0.009,3.868 -0.918,6.848 -2.725,8.939 z"}),g("path",{d:"M 53.464,198.261 H 13.619 c 0,-0.001 0,-0.004 0,-0.006 0,-82.727 67.065,-149.791 149.788,-149.791 82.729,0 149.794,67.063 149.794,149.791 0,0.002 0,0.005 0,0.006 h -39.844 c 0.006,-0.435 0.017,-0.869 0.017,-1.306 0,-60.731 -49.234,-109.963 -109.967,-109.963 -60.727,0 -109.959,49.232 -109.959,109.963 -10e-4,0.437 0.011,0.871 0.016,1.306 z m 189.059,0 c 0.019,-0.705 0.053,-1.407 0.053,-2.117 0,-43.723 -35.444,-79.167 -79.167,-79.167 -43.722,0 -79.166,35.445 -79.166,79.167 0,0.71 0.035,1.412 0.054,2.117 h 39.67 c -0.085,-1.047 -0.14,-2.103 -0.14,-3.172 0,-21.861 17.721,-39.584 39.582,-39.584 21.862,0 39.583,17.723 39.583,39.584 0,1.069 -0.055,2.125 -0.139,3.172 h 39.67 z"})],-1),tG=[eG];function nG(e,t,n,r,o,s){return N(),V("svg",{class:wt(e.className),viewBox:"0 0 301.24005 225.44299",stroke:"currentColor",fill:"currentColor","aria-hidden":"true"},tG,2)}var og=Be(QK,[["render",nG]]);const rG=ve({components:{PodloveButton:Vn,FileChooser:gK,CogIcon:J9,ChevronDownIcon:k2,ChevronRightIcon:K9,XIcon:Da,DatabaseIcon:G9,ExternalLinkIcon:P2,CloudIcon:L2,TrashIcon:Z9,ArrowDownIcon:A2,ArrowDownTrayIcon:H9,AuphonicLogo:og,DonePage:GK,WebhookToggle:ZK},data(){return{algorithmSettings:{},showImportPage:!1}},setup(){return{state:yt({production:G.auphonic.production,tracks:G.auphonic.tracks,isSaving:G.auphonic.isSaving}),dispatch:it().dispatch}},methods:{saveProduction(){this.dispatch(xx({uuid:this.production.uuid}))},startProduction(){this.dispatch(wh({uuid:this.production.uuid}))},deselectProduction(){this.dispatch(Sx())},addTrack(){this.dispatch(o7())},removeTrack(e){this.dispatch(Tx(e))},updateTrack(e,t,n){this.dispatch(Ox({track:{[e]:t},index:n}))},algorithmSettingsVisible(e){return!0},toggleAlgorithmSettingVisible(e){this.algorithmSettings[e]=!Y.exports.get(this.algorithmSettings,e,!1)},handleSelectForeBackground(e,t){this.updateTrack("fore_background",e.target.value,t)},handleToggleNoiseHum(e,t){this.updateTrack("noise_and_hum_reduction",e.target.checked,t)},handleToggleFiltering(e,t){this.updateTrack("filtering",e.target.checked,t)},handleUpdateIdentifier(e,t){this.updateTrack("identifier_new",e.target.value,t)}},computed:{production(){return this.state.production||{}},isSaving(){return this.state.isSaving},showProcessingScreen(){return[1,4,5,6,7,8,12,13,14].includes(this.production.status)},showUploadScreen(){return this.production.status===0},showTrackEditor(){return[9,10,11].includes(this.production.status)},tracks(){return this.state.tracks||[]},isMultitrack(){return this.state.production&&this.state.production.is_multitrack}}}),oG={class:"pb-5 space-y-4"},iG={class:"space-y-8"},sG={class:"bg-white px-4 sm:px-6"},lG={class:"-ml-4 -mt-4 flex flex-wrap items-center justify-between sm:flex-nowrap"},aG={class:"ml-4 mt-4"},uG={class:"flex items-center"},cG={class:"flex-shrink-0"},dG={class:"ml-4"},fG={class:"text-base font-semibold leading-6 text-gray-900"},pG={class:"text-sm text-gray-500"},hG={class:"ml-4 mt-4 flex items-center space-x-4 text-xs"},mG={key:0,class:"inline-flex items-center animate-pulse text-green-600"},vG={key:0},gG={key:1},yG={class:"space-y-4"},bG={key:0},_G={key:1},wG={class:"rounded-md bg-indigo-50 p-4"},SG={class:"flex"},EG={class:"flex-shrink-0"},xG={class:"ml-3"},$G={class:"text-sm font-medium text-indigo-800"},CG={class:"mt-2 text-sm text-indigo-700"},TG={key:2},OG={key:3},AG={class:"bg-white shadow overflow-hidden rounded-md"},IG={class:"px-6 pt-4 hidden md:block"},PG={class:"md:grid md:grid-cols-3 md:gap-12"},kG={class:"block text-sm font-medium text-gray-700 md:col-span-1"},RG={class:"block text-sm font-medium text-gray-700 mt-5 md:mt-0 md:col-span-1"},LG={class:"block text-sm font-medium text-gray-700 mt-5 md:mt-0 md:col-span-1"},NG=g("div",{class:"block w-8 md:col-span-1"},null,-1),MG={role:"list",class:"divide-y divide-gray-200"},DG={class:"md:grid md:grid-cols-3 md:gap-12"},FG={class:"md:col-span-1"},BG=["for"],UG=["id","value","onInput"],jG={class:"mt-5 md:mt-0 md:col-span-1"},HG={class:"sm:items-baseline"},VG={class:"mt-4 sm:mt-0"},WG={key:0,class:"mt-1 text-sm text-gray-700"},zG={class:"md:col-span-1"},qG={key:0,role:"group",class:"bg-gr"},KG={class:"sm:items-baseline"},GG={class:""},XG={class:"block md:hidden text-sm font-medium text-gray-700 py-2"},JG={class:"max-w-lg relative"},YG=["title","onClick"],ZG={class:"space-y-4"},QG={class:"relative flex items-start"},eX={class:"flex items-center h-5"},tX=["id","checked","onInput"],nX={class:"ml-3 text-sm"},rX=["for"],oX={class:"relative flex items-start"},iX={class:"flex items-center h-5"},sX=["id","checked","onInput"],lX={class:"ml-3 text-sm"},aX=["for"],uX={class:"relative flex justify-start align-middle items-center gap-3"},cX={class:"text-sm"},dX=["for"],fX=["value","onInput","id"],pX={value:"auto"},hX={value:"foreground"},mX={value:"background"},vX={value:"ducking"},gX={value:"unchanged"},yX={class:"bg-gray-50 px-4 py-4 sm:px-6"},bX={key:4,class:"grid grid-cols-1 gap-y-6 gap-x-4 sm:grid-cols-6"},_X={class:"sm:col-span-4"},wX={class:"text-base font-medium text-gray-900"},SX={class:"mt-2"},EX={key:0,class:"mt-1 text-sm text-gray-700"},xX={class:"pt-5"},$X={class:"flex flex-col sm:flex-row gap-4 sm:gap-2 justify-between"},CX={class:"flex justify-end gap-3"},TX=["href"];function OX(e,t,n,r,o,s){var O,S,E,T;const l=X("AuphonicLogo"),a=X("CloudIcon"),c=X("ArrowDownTrayIcon"),f=X("XIcon"),p=X("DatabaseIcon"),h=X("DonePage"),v=X("FileChooser"),y=X("TrashIcon"),_=X("podlove-button"),w=X("WebhookToggle"),I=X("ExternalLinkIcon");return N(),V("form",oG,[g("div",iG,[g("div",sG,[g("div",lG,[g("div",aG,[g("div",uG,[g("div",cG,[q(l,{className:"mx-auto h-12 w-12 text-gray-400"})]),g("div",dG,[g("h3",fG,U((S=(O=e.production)==null?void 0:O.metadata)==null?void 0:S.title),1),g("p",pG,U(new Date(Date.parse((E=e.production)==null?void 0:E.creation_time)).toLocaleString()),1)])])]),g("div",hG,[e.isSaving?(N(),V("span",mG,[q(a,{class:"mr-1 h-4 w-4","aria-hidden":"true"}),Xe(" "+U(e.__("Saving","podlove-podcasting-plugin-for-wordpress")),1)])):qe("",!0),e.production.status!==3?(N(),V("button",{key:1,onClick:t[0]||(t[0]=$=>e.showImportPage=!e.showImportPage),type:"button",class:"relative inline-flex items-center rounded-md bg-white px-3 py-2 font-medium text-gray-500 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50"},[q(c,{class:"-ml-0.5 mr-1.5 h-4 w-4 text-gray-400","aria-hidden":"true"}),e.showImportPage?(N(),V("span",vG,U(e.__("Hide Import","podlove-podcasting-plugin-for-wordpress")),1)):qe("",!0),e.showImportPage?qe("",!0):(N(),V("span",gG,U(e.__("Show Import","podlove-podcasting-plugin-for-wordpress")),1))])):qe("",!0),g("button",{onClick:t[1]||(t[1]=(...$)=>e.deselectProduction&&e.deselectProduction(...$)),type:"button",class:"relative inline-flex items-center rounded-md bg-white px-3 py-2 font-medium text-gray-500 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50"},[q(f,{class:"-ml-0.5 mr-1.5 h-4 w-4 text-gray-400","aria-hidden":"true"}),g("span",null,U(e.__("Deselect Production","podlove-podcasting-plugin-for-wordpress")),1)])])])]),g("div",yG,[e.showUploadScreen?(N(),V("div",bG,U(e.__("Uploading...","podlove-podcasting-plugin-for-wordpress")),1)):qe("",!0),e.showProcessingScreen?(N(),V("div",_G,[g("div",wG,[g("div",SG,[g("div",EG,[q(p,{class:"h-5 w-5 text-indigo-400","aria-hidden":"true"})]),g("div",xG,[g("h3",$G,U(e.production.status_string),1),g("div",CG,[g("p",null,U(e.__("Auphonic is now processing your production. Please wait for it to finish.","podlove-podcasting-plugin-for-wordpress")),1)])])])])])):qe("",!0),e.production.status==3||e.showImportPage?(N(),V("div",TG,[q(h)])):qe("",!0),e.isMultitrack&&e.showTrackEditor?(N(),V("div",OG,[g("div",AG,[g("div",IG,[g("div",PG,[g("div",kG,U(e.__("Track Identifier","podlove-podcasting-plugin-for-wordpress")),1),g("div",RG,U(e.__("Upload Method","podlove-podcasting-plugin-for-wordpress")),1),g("div",LG,U(e.__("Algorithm","podlove-podcasting-plugin-for-wordpress")),1),NG])]),g("ul",MG,[(N(!0),V(Fe,null,Mt(e.tracks,($,P)=>(N(),V("li",{key:`xtrack-${P}`,class:"px-6 py-4"},[g("div",DG,[g("div",FG,[g("label",{for:`track-id-${P}`,class:"block md:hidden text-sm font-medium text-gray-700"},U(e.__("Track Identifier","podlove-podcasting-plugin-for-wordpress")),9,BG),g("input",{id:`track-id-${P}`,type:"text",value:$.identifier_new,onInput:k=>e.handleUpdateIdentifier(k,P),class:"mt-1 max-w-lg block w-full shadow-sm focus:ring-indigo-500 focus:border-indigo-500 sm:max-w-xs sm:text-sm border-gray-300 rounded-md"},null,40,UG)]),g("div",jG,[g("div",HG,[g("div",VG,[q(v,{track_index:P,file_key:`${e.production.uuid}_t${P}`},null,8,["track_index","file_key"]),$.input_file_name?(N(),V("div",WG,U(e.__("Uploaded File:","podlove-podcasting-plugin-for-wordpress"))+" "+U($.input_file_name),1)):qe("",!0)])])]),g("div",zG,[e.algorithmSettingsVisible(P)?(N(),V("div",qG,[g("div",KG,[g("div",GG,[g("div",XG,U(e.__("Algorithm","podlove-podcasting-plugin-for-wordpress")),1),g("div",JG,[g("div",{title:e.__("Remove Track","podlove-podcasting-plugin-for-wordpress"),onClick:k=>e.removeTrack($.identifier),class:"absolute z-10 right-0 top-0 cursor-pointer text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500"},[q(y,{class:"h-6 w-6","aria-hidden":"true"})],8,YG),g("div",ZG,[g("div",QG,[g("div",eX,[g("input",{id:`track_${P}_filtering`,type:"checkbox",class:"focus:ring-indigo-500 h-4 w-4 text-indigo-600 border-gray-300 rounded",checked:$.filtering,onInput:k=>e.handleToggleFiltering(k,P)},null,40,tX)]),g("div",nX,[g("label",{for:`track_${P}_filtering`,class:"text-gray-700"},U(e.__("Filtering","podlove-podcasting-plugin-for-wordpress")),9,rX)])]),g("div",null,[g("div",oX,[g("div",iX,[g("input",{id:`track_${P}_noisehum`,type:"checkbox",class:"focus:ring-indigo-500 h-4 w-4 text-indigo-600 border-gray-300 rounded",checked:$.noise_and_hum_reduction,onInput:k=>e.handleToggleNoiseHum(k,P)},null,40,sX)]),g("div",lX,[g("label",{for:`track_${P}_noisehum`,class:"text-gray-700"},U(e.__("Noise and Hum Reduction","podlove-podcasting-plugin-for-wordpress")),9,aX)])])]),g("div",null,[g("div",uX,[g("div",cX,[g("label",{for:`track_${P}_fgbg`,class:"text-gray-700"},U(e.__("Fore/Background","podlove-podcasting-plugin-for-wordpress")),9,dX)]),g("select",{value:$.fore_background,onInput:k=>e.handleSelectForeBackground(k,P),id:`track_${P}_fgbg`,class:"mt-1 block w-[168px] pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm rounded-md"},[g("option",pX,U(e.__("Auto","podlove-podcasting-plugin-for-wordpress")),1),g("option",hX,U(e.__("Foreground Track","podlove-podcasting-plugin-for-wordpress")),1),g("option",mX,U(e.__("Background Track","podlove-podcasting-plugin-for-wordpress")),1),g("option",vX,U(e.__("Duck this Track","podlove-podcasting-plugin-for-wordpress")),1),g("option",gX,U(e.__("Unchanged (Foreground)","podlove-podcasting-plugin-for-wordpress")),1)],40,fX)])])])])])])])):qe("",!0)])])]))),128))]),g("div",yX,[q(_,{variant:"primary",onClick:e.addTrack},{default:ye(()=>[Xe(U(e.__("Add Track","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["onClick"])])])])):e.showTrackEditor?(N(),V("div",bX,[g("fieldset",_X,[g("legend",wX,U(e.__("Audio Source","podlove-podcasting-plugin-for-wordpress")),1),g("div",SX,[q(v,{file_key:e.production.uuid},null,8,["file_key"]),e.production.input_file?(N(),V("div",EX,U(e.__("Uploaded File:","podlove-podcasting-plugin-for-wordpress"))+" "+U(e.production.input_file),1)):qe("",!0)])])])):qe("",!0)])]),g("div",xX,[g("div",$X,[q(w),g("div",CX,[g("a",{href:(T=e.production)==null?void 0:T.edit_page,target:"_blank",class:"inline-flex items-center rounded border border-gray-300 bg-white px-2.5 py-1.5 text-xs font-medium text-gray-500 shadow-sm hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2"},[Xe(U(e.__("Edit in Auphonic","podlove-podcasting-plugin-for-wordpress"))+" ",1),q(I,{class:"ml-1 -mr-0.5 h-4 w-4","aria-hidden":"true"})],8,TX),q(_,{variant:e.isSaving?"secondary-disabled":"secondary",onClick:e.saveProduction},{default:ye(()=>[Xe(U(e.__("Save Production","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["variant","onClick"]),q(_,{variant:"primary",onClick:e.startProduction},{default:ye(()=>[Xe(U(e.__("Start Production","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["onClick"])])])])])}var AX=Be(rG,[["render",OX]]);const IX=ve({components:{Listbox:Vv,ListboxButton:zv,ListboxLabel:Wv,ListboxOption:Kv,ListboxOptions:qv,CheckIcon:Kd,SelectorIcon:Gd},setup(){return{state:yt({productions:G.auphonic.productions,production:G.auphonic.production}),dispatch:it().dispatch}},methods:{setProduction(e){this.dispatch(ds(e))}},computed:{productions(){return this.state.productions.map(e=>{const t=e.creation_time.split("T")[0],n=e.metadata.title;return{...e,_select:{name:n,date:t}}})},currentProduction(){return this.state.production}}}),PX={class:"mt-1 relative"},kX={class:"w-full inline-flex truncate"},RX={key:0,class:"truncate"},LX={key:1,class:"truncate"},NX={class:"absolute inset-y-0 right-0 flex items-center pr-2 pointer-events-none"},MX={class:"flex justify-between"},DX={class:wt(["font-normal","truncate"])};function FX(e,t,n,r,o,s){const l=X("ListboxLabel"),a=X("SelectorIcon"),c=X("ListboxButton"),f=X("ListboxOption"),p=X("ListboxOptions"),h=X("Listbox");return N(),bt(h,{as:"div","onUpdate:modelValue":e.setProduction,value:e.currentProduction},{default:ye(()=>[q(l,{class:"block text-sm font-medium text-gray-600 sr-only"},{default:ye(()=>[Xe(U(e.__("Select Existing Production","podlove-podcasting-plugin-for-wordpress")),1)]),_:1}),g("div",PX,[q(c,{class:"relative w-full bg-white border border-gray-300 rounded-md shadow-sm pl-3 pr-10 py-2 text-left cursor-default focus:outline-none focus:ring-1 focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"},{default:ye(()=>[g("span",kX,[e.currentProduction?(N(),V("span",RX,U(e.currentProduction.metadata.title),1)):(N(),V("span",LX,"\xA0"))]),g("span",NX,[q(a,{class:"h-5 w-5 text-gray-400","aria-hidden":"true"})])]),_:1}),q(Ei,{"leave-active-class":"transition ease-in duration-100","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:ye(()=>[q(p,{class:"absolute z-10 mt-1 w-full bg-white shadow-lg max-h-36 rounded-md py-1 text-base ring-1 ring-black ring-opacity-5 overflow-auto focus:outline-none sm:text-sm"},{default:ye(()=>[(N(!0),V(Fe,null,Mt(e.productions,v=>(N(),bt(f,{as:"template",key:v._select.date,value:v},{default:ye(({active:y})=>[g("li",{class:wt([y?"text-white bg-indigo-600":"text-gray-900","cursor-default select-none relative py-2 pl-3 pr-9"])},[g("div",MX,[g("span",DX,[g("span",{class:wt([y?"text-indigo-200":"text-gray-500","ml-2 truncate"])},U(v._select.date),3),Xe(" "+U(v._select.name),1)]),g("span",{class:wt([y?"text-indigo-200":"text-gray-500","ml-2 truncate flex-shrink-0"])},U(v.status_string),3)])],2)]),_:2},1032,["value"]))),128))]),_:1})]),_:1})])]),_:1},8,["onUpdate:modelValue","value"])}var BX=Be(IX,[["render",FX]]);const UX=ve({components:{Listbox:Vv,ListboxButton:zv,ListboxLabel:Wv,ListboxOption:Kv,ListboxOptions:qv,CheckIcon:Kd,SelectorIcon:Gd},setup(){return{state:yt({presets:G.auphonic.presets,currentPreset:G.auphonic.preset}),dispatch:it().dispatch}},methods:{setPreset(e){this.dispatch(bv(e.uuid))}},computed:{presets(){return this.state.presets.map(e=>{const t=e.creation_time.split("T")[0],n=e.preset_name,r=e.is_multitrack;return{...e,_select:{name:n,date:t,is_multitrack:r}}}).toSorted((e,t)=>{const n=e._select.name.toUpperCase(),r=t._select.name.toUpperCase();return n<r?-1:n>r?1:0})},currentPreset(){const e=this.state.currentPreset;return this.presets.find(t=>t.uuid===e)}}}),jX={class:"mt-1 relative"},HX={class:"w-full inline-flex truncate"},VX={key:0,class:"truncate"},WX={key:1,class:"truncate"},zX={class:"absolute inset-y-0 right-0 flex items-center pr-2 pointer-events-none"},qX={class:"flex"},KX={class:wt(["font-normal","truncate"])};function GX(e,t,n,r,o,s){const l=X("ListboxLabel"),a=X("SelectorIcon"),c=X("ListboxButton"),f=X("ListboxOption"),p=X("ListboxOptions"),h=X("Listbox");return N(),bt(h,{as:"div","onUpdate:modelValue":e.setPreset,value:e.currentPreset},{default:ye(()=>[q(l,{class:"block text-sm font-medium text-gray-600 sr-only"},{default:ye(()=>[Xe(U(e.__("Select Preset","podlove-podcasting-plugin-for-wordpress")),1)]),_:1}),g("div",jX,[q(c,{class:"relative w-full bg-white border border-gray-300 rounded-md shadow-sm pl-3 pr-10 py-2 text-left cursor-default focus:outline-none focus:ring-1 focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"},{default:ye(()=>[g("span",HX,[e.currentPreset?(N(),V("span",VX,U(e.currentPreset._select.name),1)):(N(),V("span",WX,"\xA0"))]),g("span",zX,[q(a,{class:"h-5 w-5 text-gray-400","aria-hidden":"true"})])]),_:1}),q(Ei,{"leave-active-class":"transition ease-in duration-100","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:ye(()=>[q(p,{class:"absolute z-10 mt-1 w-full bg-white shadow-lg max-h-36 rounded-md py-1 text-base ring-1 ring-black ring-opacity-5 overflow-auto focus:outline-none sm:text-sm"},{default:ye(()=>[(N(!0),V(Fe,null,Mt(e.presets,v=>(N(),bt(f,{as:"template",key:v._select.date,value:v},{default:ye(({active:y})=>[g("li",{class:wt([y?"text-white bg-indigo-600":"text-gray-900","cursor-default select-none relative py-2 pl-3 pr-9"])},[g("div",qX,[g("span",KX,U(v._select.name),1),v._select.is_multitrack?(N(),V("span",{key:0,class:wt([y?"text-indigo-200":"text-gray-500","ml-2 truncate"])},U(e.__("Multitrack","podlove-podcasting-plugin-for-wordpress")),3)):qe("",!0)])],2)]),_:2},1032,["value"]))),128))]),_:1})]),_:1})])]),_:1},8,["onUpdate:modelValue","value"])}var XX=Be(UX,[["render",GX]]);const JX=ve({components:{Module:Nn,PodloveButton:Vn,PlusSmIcon:Lv,RefreshIcon:I2,SelectProduction:BX,SelectPreset:XX,AuphonicLogo:og},data(){return{}},setup(){return{state:yt({presetUUID:G.auphonic.preset,presets:G.auphonic.presets,isInitializing:G.auphonic.isInitializing}),dispatch:it().dispatch}},methods:{handleCreateProduction(){switch(this.buttonState){case"single":this.createProduction();break;case"multi":this.createMultitrackProduction();break}},createProduction(){this.dispatch(QD())},createMultitrackProduction(){this.dispatch(e7())}},computed:{preset(){return this.state.presets.find(e=>e.uuid===this.state.presetUUID)},isInitializing(){return this.state.isInitializing},buttonState(){return this.preset?this.preset.is_multitrack?"multi":"single":"idle"}}}),YX={class:"m-6 text-center max-w-5xl"},ZX={key:0,class:"w-full flex justify-center"},QX={class:"animate-pulse mt-4 flex space-x-4"},eJ={class:"mt-1 text-sm text-gray-500"},tJ={class:"sm:divide-x sm:divide-gray-200 mt-6 py-6 gap-8 sm:gap-0 grid grid-cols-1 sm:grid-cols-2"},nJ={class:"flow-root sm:px-6"},rJ={class:"relative -m-2 p-2 flex items-center justify-around space-x-4 rounded-xl hover:bg-gray-50 focus-within:ring-2 focus-within:ring-indigo-500"},oJ={class:"text-sm font-medium text-gray-900"},iJ={class:"mt-2 sm:mt-8 flex justify-center align-middle content-center items-center gap-3"},sJ={class:"w-full max-w-md"},lJ={class:"mt-10 flex flex-col justify-center align-middle content-center items-center gap-3"},aJ={class:"flow-root sm:px-6"},uJ={class:"relative -m-2 p-2 flex items-center justify-around space-x-4 rounded-xl hover:bg-gray-50 focus-within:ring-2 focus-within:ring-indigo-500"},cJ={class:"text-sm font-medium text-gray-900"},dJ={class:"mt-2 sm:mt-8 flex justify-center align-middle content-center items-center gap-3"},fJ={class:"w-full max-w-md"};function pJ(e,t,n,r,o,s){const l=X("AuphonicLogo"),a=X("RefreshIcon"),c=X("SelectPreset"),f=X("plus-sm-icon"),p=X("podlove-button"),h=X("SelectProduction");return N(),V("div",null,[g("div",YX,[q(l,{className:"mx-auto h-16 w-16 text-gray-400"}),e.isInitializing?(N(),V("div",ZX,[g("div",QX,[q(a,{class:"animate-spin h-5 w-5 mr-3"}),Xe(" "+U(e.__("Loading...","podlove-podcasting-plugin-for-wordpress")),1)])])):qe("",!0),g("div",{class:wt({"text-left":!0,"opacity-0":e.isInitializing})},[g("p",eJ,U(e.__("Manage your audio post production with Auphonic. Get started by selecting an existing production or create a new one from an Auphonic preset.","podlove-podcasting-plugin-for-wordpress")),1),g("div",tJ,[g("div",nJ,[g("div",rJ,[g("div",null,[g("h3",oJ,U(e.__("Create New Production from Preset","podlove-podcasting-plugin-for-wordpress")),1)])]),g("div",iJ,[g("div",sJ,[q(c)])]),g("div",lJ,[q(p,{disabled:e.buttonState=="idle",variant:e.buttonState=="idle"?"primary-disabled":"primary",onClick:e.handleCreateProduction},{default:ye(()=>[q(f,{class:"-ml-0.5 mr-2 h-4 w-4","aria-hidden":"true"}),Xe(" "+U(e.buttonState=="multi"?e.__("Create Multitrack Production","podlove-podcasting-plugin-for-wordpress"):e.__("Create Production","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["disabled","variant","onClick"])])]),g("div",aJ,[g("div",uJ,[g("div",null,[g("h3",cJ,U(e.__("Select Existing Production","podlove-podcasting-plugin-for-wordpress")),1)])]),g("div",dJ,[g("div",fJ,[q(h)])])])])],2)])])}var hJ=Be(JX,[["render",pJ]]);const mJ=ve({components:{Module:Nn,ManageProductionForm:AX,StartScreen:hJ,AuphonicLogo:og},setup(){return{state:yt({productionId:G.auphonic.productionId,isInitializing:G.auphonic.isInitializing}),dispatch:it().dispatch}},computed:{productionId(){return this.state.productionId||""},isInitializing(){return this.state.isInitializing},isProductionSelected(){return!!this.productionId}},created(){this.dispatch(JD())}}),vJ={key:0},gJ={key:1,class:"m-7"};function yJ(e,t,n,r,o,s){const l=X("StartScreen"),a=X("ManageProductionForm"),c=X("module");return N(),bt(c,{name:"auphonic",title:"Auphonic"},{default:ye(()=>[e.isProductionSelected?qe("",!0):(N(),V("div",vJ,[q(l)])),e.productionId?(N(),V("div",gJ,[q(a)])):qe("",!0)]),_:1})}var bJ=Be(mJ,[["render",yJ]]);const _J=ve({components:{ArrowUpIcon:W9,ArrowDownIcon:A2,XIcon:Da,UserCircleIcon:F2,PencilIcon:D2},props:{data:{type:Object,default:()=>({id:null,contributor_id:null,role_id:null,group_id:null,position:null,comment:null,identifier:null,avatar:null,name:null,mail:null,department:null,organisation:null,jobtitle:null,gender:null,nickname:null,count:null})},first:{type:Boolean,default:!1},last:{type:Boolean,default:!1}},setup(){return{dispatch:it().dispatch,state:yt({roles:G.contributors.roles,groups:G.contributors.groups,baseUrl:G.runtime.baseUrl})}},computed:{editLink(){return`${this.state.baseUrl}/wp-admin/admin.php?page=podlove_contributor_settings&action=edit&contributor=${this.data.contributor_id}`}},methods:{moveContributionUp(){this.dispatch(dD(this.data))},moveContributionDown(){this.dispatch(fD(this.data))},deleteContribution(){this.dispatch(pD(this.data))},updateRole(e){const t=Y.exports.get(e,["target","value"]);this.dispatch(Tp({...this.data,role_id:t}))},updateGroup(e){const t=Y.exports.get(e,["target","value"]);console.log(t),this.dispatch(Tp({...this.data,group_id:t}))},updateComment(e){const t=Y.exports.get(e,["target","value"]);this.dispatch(Tp({...this.data,comment:t}))}}}),wJ={class:"block hover:bg-gray-50"},SJ={class:"flex items-center px-4 py-4 sm:px-6"},EJ={class:"flex min-w-0 flex-1 items-center"},xJ={class:"flex-shrink-0"},$J=["src","alt"],CJ={class:"min-w-0 flex-1 px-2 md:grid md:gap-4"},TJ={class:"flex-shrink-0"},OJ={class:"truncate text-sm font-medium text-gray-900"},AJ={class:"flex items-center text-sm text-gray-500"},IJ={class:"truncate"},PJ={class:"min-w-0 flex-1 px-4 md:grid md:gap-4"},kJ={for:"location",class:"block text-sm font-medium leading-6 text-gray-900"},RJ=["value","selected"],LJ={class:"min-w-0 flex-1 px-4 md:grid md:gap-4"},NJ={for:"location",class:"block text-sm font-medium leading-6 text-gray-900"},MJ=["value","selected"],DJ={class:"min-w-0 flex-1 px-4 md:grid md:gap-4"},FJ={for:"email",class:"block text-sm font-medium leading-6 text-gray-900"},BJ={class:"mt-2"},UJ=["value","placeholder"],jJ={class:"flex space-x-2 justify-end mt-[30px]"},HJ=["disabled"],VJ=["disabled"],WJ=["href"];function zJ(e,t,n,r,o,s){const l=X("UserCircleIcon"),a=X("arrow-up-icon"),c=X("arrow-down-icon"),f=X("pencil-icon"),p=X("x-icon");return N(),V("div",wJ,[g("div",SJ,[g("div",EJ,[g("div",xJ,[e.data.avatar_url?(N(),V("img",{key:0,class:"h-12 w-12 rounded-full",src:e.data.avatar_url,alt:e.data.name,onError:t[0]||(t[0]=h=>e.data.avatar_url="")},null,40,$J)):qe("",!0),e.data.avatar_url?qe("",!0):(N(),bt(l,{key:1,class:"h-12 w-12 flex-shrink-0 rounded-full text-gray-500"}))]),g("div",CJ,[g("div",TJ,[g("p",OJ,U(e.data.realname),1),g("p",AJ,[g("span",IJ,U(e.data.nickname),1)])])]),g("div",PJ,[g("div",null,[g("label",kJ,U(e.__("Role","podlove-podcasting-plugin-for-wordpress")),1),g("select",{class:"mt-2 block w-full rounded-md border-0 py-1.5 pl-3 pr-10 text-gray-900 ring-1 ring-inset ring-gray-300 focus:ring-2 focus:ring-indigo-600 sm:text-sm sm:leading-6",onChange:t[1]||(t[1]=h=>e.updateRole(h))},[(N(!0),V(Fe,null,Mt(e.state.roles,h=>(N(),V("option",{value:h.id,selected:h.id===e.data.role_id},U(h.title),9,RJ))),256))],32)])]),g("div",LJ,[g("div",null,[g("label",NJ,U(e.__("Group","podlove-podcasting-plugin-for-wordpress")),1),g("select",{class:"mt-2 block w-full rounded-md border-0 py-1.5 pl-3 pr-10 text-gray-900 ring-1 ring-inset ring-gray-300 focus:ring-2 focus:ring-indigo-600 sm:text-sm sm:leading-6",onChange:t[2]||(t[2]=h=>e.updateGroup(h))},[(N(!0),V(Fe,null,Mt(e.state.groups,h=>(N(),V("option",{value:h.id,selected:h.id===e.data.group_id},U(h.title),9,MJ))),256))],32)])]),g("div",DJ,[g("div",null,[g("label",FJ,U(e.__("Comment","podlove-podcasting-plugin-for-wordpress")),1),g("div",BJ,[g("input",{type:"text",value:e.data.comment,onInput:t[3]||(t[3]=h=>e.updateComment(h)),class:"block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6",placeholder:e.__("Comment","podlove-podcasting-plugin-for-wordpress")},null,40,UJ)])])]),g("div",jJ,[g("button",{onClick:t[4]||(t[4]=h=>e.moveContributionUp()),disabled:e.first,class:wt({"text-indigo-600":!e.first,"text-gray-500":e.first})},[q(a,{class:"w-5 h-5"})],10,HJ),g("button",{onClick:t[5]||(t[5]=h=>e.moveContributionDown()),disabled:e.last,class:wt({"text-indigo-600":!e.last,"text-gray-500":e.last})},[q(c,{class:"w-5 h-5"})],10,VJ),g("a",{href:e.editLink,target:"_blank",class:"text-gray-400"},[q(f,{class:"w-5 h-5"})],8,WJ),g("button",{class:"text-red-600",onClick:t[6]||(t[6]=h=>e.deleteContribution())},[q(p,{class:"w-5 h-5"})])])])])])}var qJ=Be(_J,[["render",zJ]]),Qn="top",Br="bottom",Ur="right",er="left",ig="auto",Wa=[Qn,Br,Ur,er],tl="start",wa="end",KJ="clippingParents",H$="viewport",Ml="popper",GJ="reference",G1=Wa.reduce(function(e,t){return e.concat([t+"-"+tl,t+"-"+wa])},[]),V$=[].concat(Wa,[ig]).reduce(function(e,t){return e.concat([t,t+"-"+tl,t+"-"+wa])},[]),XJ="beforeRead",JJ="read",YJ="afterRead",ZJ="beforeMain",QJ="main",eY="afterMain",tY="beforeWrite",nY="write",rY="afterWrite",oY=[XJ,JJ,YJ,ZJ,QJ,eY,tY,nY,rY];function So(e){return e?(e.nodeName||"").toLowerCase():null}function ao(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function nl(e){var t=ao(e).Element;return e instanceof t||e instanceof Element}function Mr(e){var t=ao(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function sg(e){if(typeof ShadowRoot=="undefined")return!1;var t=ao(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function iY(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},s=t.elements[n];!Mr(s)||!So(s)||(Object.assign(s.style,r),Object.keys(o).forEach(function(l){var a=o[l];a===!1?s.removeAttribute(l):s.setAttribute(l,a===!0?"":a)}))})}function sY(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],s=t.attributes[r]||{},l=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=l.reduce(function(c,f){return c[f]="",c},{});!Mr(o)||!So(o)||(Object.assign(o.style,a),Object.keys(s).forEach(function(c){o.removeAttribute(c)}))})}}var lY={name:"applyStyles",enabled:!0,phase:"write",fn:iY,effect:sY,requires:["computeStyles"]};function bo(e){return e.split("-")[0]}var ts=Math.max,qc=Math.min,rl=Math.round;function ol(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),r=1,o=1;if(Mr(e)&&t){var s=e.offsetHeight,l=e.offsetWidth;l>0&&(r=rl(n.width)/l||1),s>0&&(o=rl(n.height)/s||1)}return{width:n.width/r,height:n.height/o,top:n.top/o,right:n.right/r,bottom:n.bottom/o,left:n.left/r,x:n.left/r,y:n.top/o}}function lg(e){var t=ol(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function W$(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&sg(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function zo(e){return ao(e).getComputedStyle(e)}function aY(e){return["table","td","th"].indexOf(So(e))>=0}function Ci(e){return((nl(e)?e.ownerDocument:e.document)||window.document).documentElement}function Xd(e){return So(e)==="html"?e:e.assignedSlot||e.parentNode||(sg(e)?e.host:null)||Ci(e)}function X1(e){return!Mr(e)||zo(e).position==="fixed"?null:e.offsetParent}function uY(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&Mr(e)){var r=zo(e);if(r.position==="fixed")return null}var o=Xd(e);for(sg(o)&&(o=o.host);Mr(o)&&["html","body"].indexOf(So(o))<0;){var s=zo(o);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return o;o=o.parentNode}return null}function za(e){for(var t=ao(e),n=X1(e);n&&aY(n)&&zo(n).position==="static";)n=X1(n);return n&&(So(n)==="html"||So(n)==="body"&&zo(n).position==="static")?t:n||uY(e)||t}function ag(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ea(e,t,n){return ts(e,qc(t,n))}function cY(e,t,n){var r=ea(e,t,n);return r>n?n:r}function z$(){return{top:0,right:0,bottom:0,left:0}}function q$(e){return Object.assign({},z$(),e)}function K$(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var dY=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,q$(typeof t!="number"?t:K$(t,Wa))};function fY(e){var t,n=e.state,r=e.name,o=e.options,s=n.elements.arrow,l=n.modifiersData.popperOffsets,a=bo(n.placement),c=ag(a),f=[er,Ur].indexOf(a)>=0,p=f?"height":"width";if(!(!s||!l)){var h=dY(o.padding,n),v=lg(s),y=c==="y"?Qn:er,_=c==="y"?Br:Ur,w=n.rects.reference[p]+n.rects.reference[c]-l[c]-n.rects.popper[p],I=l[c]-n.rects.reference[c],O=za(s),S=O?c==="y"?O.clientHeight||0:O.clientWidth||0:0,E=w/2-I/2,T=h[y],$=S-v[p]-h[_],P=S/2-v[p]/2+E,k=ea(T,P,$),A=c;n.modifiersData[r]=(t={},t[A]=k,t.centerOffset=k-P,t)}}function pY(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||!W$(t.elements.popper,o)||(t.elements.arrow=o))}var hY={name:"arrow",enabled:!0,phase:"main",fn:fY,effect:pY,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function il(e){return e.split("-")[1]}var mY={top:"auto",right:"auto",bottom:"auto",left:"auto"};function vY(e){var t=e.x,n=e.y,r=window,o=r.devicePixelRatio||1;return{x:rl(t*o)/o||0,y:rl(n*o)/o||0}}function J1(e){var t,n=e.popper,r=e.popperRect,o=e.placement,s=e.variation,l=e.offsets,a=e.position,c=e.gpuAcceleration,f=e.adaptive,p=e.roundOffsets,h=e.isFixed,v=l.x,y=v===void 0?0:v,_=l.y,w=_===void 0?0:_,I=typeof p=="function"?p({x:y,y:w}):{x:y,y:w};y=I.x,w=I.y;var O=l.hasOwnProperty("x"),S=l.hasOwnProperty("y"),E=er,T=Qn,$=window;if(f){var P=za(n),k="clientHeight",A="clientWidth";if(P===ao(n)&&(P=Ci(n),zo(P).position!=="static"&&a==="absolute"&&(k="scrollHeight",A="scrollWidth")),P=P,o===Qn||(o===er||o===Ur)&&s===wa){T=Br;var H=h&&P===$&&$.visualViewport?$.visualViewport.height:P[k];w-=H-r.height,w*=c?1:-1}if(o===er||(o===Qn||o===Br)&&s===wa){E=Ur;var D=h&&P===$&&$.visualViewport?$.visualViewport.width:P[A];y-=D-r.width,y*=c?1:-1}}var F=Object.assign({position:a},f&&mY),z=p===!0?vY({x:y,y:w}):{x:y,y:w};if(y=z.x,w=z.y,c){var K;return Object.assign({},F,(K={},K[T]=S?"0":"",K[E]=O?"0":"",K.transform=($.devicePixelRatio||1)<=1?"translate("+y+"px, "+w+"px)":"translate3d("+y+"px, "+w+"px, 0)",K))}return Object.assign({},F,(t={},t[T]=S?w+"px":"",t[E]=O?y+"px":"",t.transform="",t))}function gY(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,s=n.adaptive,l=s===void 0?!0:s,a=n.roundOffsets,c=a===void 0?!0:a,f={placement:bo(t.placement),variation:il(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,J1(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,J1(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var yY={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:gY,data:{}},ec={passive:!0};function bY(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,s=o===void 0?!0:o,l=r.resize,a=l===void 0?!0:l,c=ao(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&f.forEach(function(p){p.addEventListener("scroll",n.update,ec)}),a&&c.addEventListener("resize",n.update,ec),function(){s&&f.forEach(function(p){p.removeEventListener("scroll",n.update,ec)}),a&&c.removeEventListener("resize",n.update,ec)}}var _Y={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:bY,data:{}},wY={left:"right",right:"left",bottom:"top",top:"bottom"};function hc(e){return e.replace(/left|right|bottom|top/g,function(t){return wY[t]})}var SY={start:"end",end:"start"};function Y1(e){return e.replace(/start|end/g,function(t){return SY[t]})}function ug(e){var t=ao(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function cg(e){return ol(Ci(e)).left+ug(e).scrollLeft}function EY(e){var t=ao(e),n=Ci(e),r=t.visualViewport,o=n.clientWidth,s=n.clientHeight,l=0,a=0;return r&&(o=r.width,s=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(l=r.offsetLeft,a=r.offsetTop)),{width:o,height:s,x:l+cg(e),y:a}}function xY(e){var t,n=Ci(e),r=ug(e),o=(t=e.ownerDocument)==null?void 0:t.body,s=ts(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),l=ts(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+cg(e),c=-r.scrollTop;return zo(o||n).direction==="rtl"&&(a+=ts(n.clientWidth,o?o.clientWidth:0)-s),{width:s,height:l,x:a,y:c}}function dg(e){var t=zo(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function G$(e){return["html","body","#document"].indexOf(So(e))>=0?e.ownerDocument.body:Mr(e)&&dg(e)?e:G$(Xd(e))}function ta(e,t){var n;t===void 0&&(t=[]);var r=G$(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),s=ao(r),l=o?[s].concat(s.visualViewport||[],dg(r)?r:[]):r,a=t.concat(l);return o?a:a.concat(ta(Xd(l)))}function Hh(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function $Y(e){var t=ol(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function Z1(e,t){return t===H$?Hh(EY(e)):nl(t)?$Y(t):Hh(xY(Ci(e)))}function CY(e){var t=ta(Xd(e)),n=["absolute","fixed"].indexOf(zo(e).position)>=0,r=n&&Mr(e)?za(e):e;return nl(r)?t.filter(function(o){return nl(o)&&W$(o,r)&&So(o)!=="body"}):[]}function TY(e,t,n){var r=t==="clippingParents"?CY(e):[].concat(t),o=[].concat(r,[n]),s=o[0],l=o.reduce(function(a,c){var f=Z1(e,c);return a.top=ts(f.top,a.top),a.right=qc(f.right,a.right),a.bottom=qc(f.bottom,a.bottom),a.left=ts(f.left,a.left),a},Z1(e,s));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function X$(e){var t=e.reference,n=e.element,r=e.placement,o=r?bo(r):null,s=r?il(r):null,l=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,c;switch(o){case Qn:c={x:l,y:t.y-n.height};break;case Br:c={x:l,y:t.y+t.height};break;case Ur:c={x:t.x+t.width,y:a};break;case er:c={x:t.x-n.width,y:a};break;default:c={x:t.x,y:t.y}}var f=o?ag(o):null;if(f!=null){var p=f==="y"?"height":"width";switch(s){case tl:c[f]=c[f]-(t[p]/2-n[p]/2);break;case wa:c[f]=c[f]+(t[p]/2-n[p]/2);break}}return c}function Sa(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,s=n.boundary,l=s===void 0?KJ:s,a=n.rootBoundary,c=a===void 0?H$:a,f=n.elementContext,p=f===void 0?Ml:f,h=n.altBoundary,v=h===void 0?!1:h,y=n.padding,_=y===void 0?0:y,w=q$(typeof _!="number"?_:K$(_,Wa)),I=p===Ml?GJ:Ml,O=e.rects.popper,S=e.elements[v?I:p],E=TY(nl(S)?S:S.contextElement||Ci(e.elements.popper),l,c),T=ol(e.elements.reference),$=X$({reference:T,element:O,strategy:"absolute",placement:o}),P=Hh(Object.assign({},O,$)),k=p===Ml?P:T,A={top:E.top-k.top+w.top,bottom:k.bottom-E.bottom+w.bottom,left:E.left-k.left+w.left,right:k.right-E.right+w.right},H=e.modifiersData.offset;if(p===Ml&&H){var D=H[o];Object.keys(A).forEach(function(F){var z=[Ur,Br].indexOf(F)>=0?1:-1,K=[Qn,Br].indexOf(F)>=0?"y":"x";A[F]+=D[K]*z})}return A}function OY(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,s=n.rootBoundary,l=n.padding,a=n.flipVariations,c=n.allowedAutoPlacements,f=c===void 0?V$:c,p=il(r),h=p?a?G1:G1.filter(function(_){return il(_)===p}):Wa,v=h.filter(function(_){return f.indexOf(_)>=0});v.length===0&&(v=h);var y=v.reduce(function(_,w){return _[w]=Sa(e,{placement:w,boundary:o,rootBoundary:s,padding:l})[bo(w)],_},{});return Object.keys(y).sort(function(_,w){return y[_]-y[w]})}function AY(e){if(bo(e)===ig)return[];var t=hc(e);return[Y1(e),t,Y1(t)]}function IY(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,s=o===void 0?!0:o,l=n.altAxis,a=l===void 0?!0:l,c=n.fallbackPlacements,f=n.padding,p=n.boundary,h=n.rootBoundary,v=n.altBoundary,y=n.flipVariations,_=y===void 0?!0:y,w=n.allowedAutoPlacements,I=t.options.placement,O=bo(I),S=O===I,E=c||(S||!_?[hc(I)]:AY(I)),T=[I].concat(E).reduce(function(ae,fe){return ae.concat(bo(fe)===ig?OY(t,{placement:fe,boundary:p,rootBoundary:h,padding:f,flipVariations:_,allowedAutoPlacements:w}):fe)},[]),$=t.rects.reference,P=t.rects.popper,k=new Map,A=!0,H=T[0],D=0;D<T.length;D++){var F=T[D],z=bo(F),K=il(F)===tl,te=[Qn,Br].indexOf(z)>=0,we=te?"width":"height",be=Sa(t,{placement:F,boundary:p,rootBoundary:h,altBoundary:v,padding:f}),Oe=te?K?Ur:er:K?Br:Qn;$[we]>P[we]&&(Oe=hc(Oe));var Ae=hc(Oe),Ye=[];if(s&&Ye.push(be[z]<=0),a&&Ye.push(be[Oe]<=0,be[Ae]<=0),Ye.every(function(ae){return ae})){H=F,A=!1;break}k.set(F,Ye)}if(A)for(var ft=_?3:1,Le=function(fe){var Se=T.find(function(He){var De=k.get(He);if(De)return De.slice(0,fe).every(function(tt){return tt})});if(Se)return H=Se,"break"},Ke=ft;Ke>0;Ke--){var Q=Le(Ke);if(Q==="break")break}t.placement!==H&&(t.modifiersData[r]._skip=!0,t.placement=H,t.reset=!0)}}var PY={name:"flip",enabled:!0,phase:"main",fn:IY,requiresIfExists:["offset"],data:{_skip:!1}};function Q1(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function e_(e){return[Qn,Ur,Br,er].some(function(t){return e[t]>=0})}function kY(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,s=t.modifiersData.preventOverflow,l=Sa(t,{elementContext:"reference"}),a=Sa(t,{altBoundary:!0}),c=Q1(l,r),f=Q1(a,o,s),p=e_(c),h=e_(f);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:f,isReferenceHidden:p,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":h})}var RY={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:kY};function LY(e,t,n){var r=bo(e),o=[er,Qn].indexOf(r)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,l=s[0],a=s[1];return l=l||0,a=(a||0)*o,[er,Ur].indexOf(r)>=0?{x:a,y:l}:{x:l,y:a}}function NY(e){var t=e.state,n=e.options,r=e.name,o=n.offset,s=o===void 0?[0,0]:o,l=V$.reduce(function(p,h){return p[h]=LY(h,t.rects,s),p},{}),a=l[t.placement],c=a.x,f=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=f),t.modifiersData[r]=l}var MY={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:NY};function DY(e){var t=e.state,n=e.name;t.modifiersData[n]=X$({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var FY={name:"popperOffsets",enabled:!0,phase:"read",fn:DY,data:{}};function BY(e){return e==="x"?"y":"x"}function UY(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,s=o===void 0?!0:o,l=n.altAxis,a=l===void 0?!1:l,c=n.boundary,f=n.rootBoundary,p=n.altBoundary,h=n.padding,v=n.tether,y=v===void 0?!0:v,_=n.tetherOffset,w=_===void 0?0:_,I=Sa(t,{boundary:c,rootBoundary:f,padding:h,altBoundary:p}),O=bo(t.placement),S=il(t.placement),E=!S,T=ag(O),$=BY(T),P=t.modifiersData.popperOffsets,k=t.rects.reference,A=t.rects.popper,H=typeof w=="function"?w(Object.assign({},t.rects,{placement:t.placement})):w,D=typeof H=="number"?{mainAxis:H,altAxis:H}:Object.assign({mainAxis:0,altAxis:0},H),F=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,z={x:0,y:0};if(!!P){if(s){var K,te=T==="y"?Qn:er,we=T==="y"?Br:Ur,be=T==="y"?"height":"width",Oe=P[T],Ae=Oe+I[te],Ye=Oe-I[we],ft=y?-A[be]/2:0,Le=S===tl?k[be]:A[be],Ke=S===tl?-A[be]:-k[be],Q=t.elements.arrow,ae=y&&Q?lg(Q):{width:0,height:0},fe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:z$(),Se=fe[te],He=fe[we],De=ea(0,k[be],ae[be]),tt=E?k[be]/2-ft-De-Se-D.mainAxis:Le-De-Se-D.mainAxis,vn=E?-k[be]/2+ft+De+He+D.mainAxis:Ke+De+He+D.mainAxis,ln=t.elements.arrow&&za(t.elements.arrow),L=ln?T==="y"?ln.clientTop||0:ln.clientLeft||0:0,B=(K=F==null?void 0:F[T])!=null?K:0,Z=Oe+tt-B-L,le=Oe+vn-B,ie=ea(y?qc(Ae,Z):Ae,Oe,y?ts(Ye,le):Ye);P[T]=ie,z[T]=ie-Oe}if(a){var pe,Ee=T==="x"?Qn:er,he=T==="x"?Br:Ur,me=P[$],se=$==="y"?"height":"width",Re=me+I[Ee],Pe=me-I[he],Me=[Qn,er].indexOf(O)!==-1,je=(pe=F==null?void 0:F[$])!=null?pe:0,rt=Me?Re:me-k[se]-A[se]-je+D.altAxis,mt=Me?me+k[se]+A[se]-je-D.altAxis:Pe,ct=y&&Me?cY(rt,me,mt):ea(y?rt:Re,me,y?mt:Pe);P[$]=ct,z[$]=ct-me}t.modifiersData[r]=z}}var jY={name:"preventOverflow",enabled:!0,phase:"main",fn:UY,requiresIfExists:["offset"]};function HY(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function VY(e){return e===ao(e)||!Mr(e)?ug(e):HY(e)}function WY(e){var t=e.getBoundingClientRect(),n=rl(t.width)/e.offsetWidth||1,r=rl(t.height)/e.offsetHeight||1;return n!==1||r!==1}function zY(e,t,n){n===void 0&&(n=!1);var r=Mr(t),o=Mr(t)&&WY(t),s=Ci(t),l=ol(e,o),a={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((So(t)!=="body"||dg(s))&&(a=VY(t)),Mr(t)?(c=ol(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):s&&(c.x=cg(s))),{x:l.left+a.scrollLeft-c.x,y:l.top+a.scrollTop-c.y,width:l.width,height:l.height}}function qY(e){var t=new Map,n=new Set,r=[];e.forEach(function(s){t.set(s.name,s)});function o(s){n.add(s.name);var l=[].concat(s.requires||[],s.requiresIfExists||[]);l.forEach(function(a){if(!n.has(a)){var c=t.get(a);c&&o(c)}}),r.push(s)}return e.forEach(function(s){n.has(s.name)||o(s)}),r}function KY(e){var t=qY(e);return oY.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function GY(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function XY(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var t_={placement:"bottom",modifiers:[],strategy:"absolute"};function n_(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function JY(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,s=o===void 0?t_:o;return function(a,c,f){f===void 0&&(f=s);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},t_,s),modifiersData:{},elements:{reference:a,popper:c},attributes:{},styles:{}},h=[],v=!1,y={state:p,setOptions:function(O){var S=typeof O=="function"?O(p.options):O;w(),p.options=Object.assign({},s,p.options,S),p.scrollParents={reference:nl(a)?ta(a):a.contextElement?ta(a.contextElement):[],popper:ta(c)};var E=KY(XY([].concat(r,p.options.modifiers)));return p.orderedModifiers=E.filter(function(T){return T.enabled}),_(),y.update()},forceUpdate:function(){if(!v){var O=p.elements,S=O.reference,E=O.popper;if(!!n_(S,E)){p.rects={reference:zY(S,za(E),p.options.strategy==="fixed"),popper:lg(E)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(D){return p.modifiersData[D.name]=Object.assign({},D.data)});for(var T=0;T<p.orderedModifiers.length;T++){if(p.reset===!0){p.reset=!1,T=-1;continue}var $=p.orderedModifiers[T],P=$.fn,k=$.options,A=k===void 0?{}:k,H=$.name;typeof P=="function"&&(p=P({state:p,options:A,name:H,instance:y})||p)}}}},update:GY(function(){return new Promise(function(I){y.forceUpdate(),I(p)})}),destroy:function(){w(),v=!0}};if(!n_(a,c))return y;y.setOptions(f).then(function(I){!v&&f.onFirstUpdate&&f.onFirstUpdate(I)});function _(){p.orderedModifiers.forEach(function(I){var O=I.name,S=I.options,E=S===void 0?{}:S,T=I.effect;if(typeof T=="function"){var $=T({state:p,name:O,instance:y,options:E}),P=function(){};h.push($||P)}})}function w(){h.forEach(function(I){return I()}),h=[]}return y}}var YY=[_Y,FY,yY,lY,MY,PY,jY,hY,RY],ZY=JY({defaultModifiers:YY});function QY(e){let t=_e(null),n=_e(null);return gt(()=>{jt(r=>{if(!n.value||!t.value)return;let o=n.value.el||n.value,s=t.value.el||t.value;if(!(s instanceof HTMLElement)||!(o instanceof HTMLElement))return;let{destroy:l}=ZY(s,o,e);r(l)})}),[t,n]}const eZ=ve({data(){return{query:"",data:""}},emits:["addContributor","createContributor","close"],setup(){let[e,t]=QY({placement:"bottom-end",strategy:"fixed",modifiers:[{name:"offset",options:{offset:[0,10]}},{name:"sameWidth",enabled:!0,fn:({state:n})=>{n.styles.popper.width=`${n.rects.reference.width}px`},phase:"beforeWrite",requires:["computeStyles"]}]});return{dispatch:it().dispatch,state:yt({contributors:G.contributors.contributors,episodeContributions:G.episode.contributions}),trigger:e,container:t}},components:{CheckIcon:q9,XIcon:Da,ChevronDownIcon:k2,Combobox:Z2,ComboboxButton:Q2,ComboboxInput:e$,ComboboxLabel:NU,ComboboxOption:n$,ComboboxOptions:t$,UserCircleIcon:F2,Image},computed:{filteredContributors(){return[...this.query.length>0?[{id:null,avatar_url:null,realname:`${this.__("Create: ","podlove-podcasting-plugin-for-wordpress")}${this.query}`}]:[],...this.state.contributors.filter(e=>!this.state.episodeContributions.some(t=>t.contributor_id&&t.contributor_id.toString()===e.id.toString())).filter(e=>!this.query||((e==null?void 0:e.realname)||"").toUpperCase().includes(this.query.toUpperCase()))]}},watch:{data(e){e.id?this.$emit("addContributor",e):this.$emit("createContributor",this.query)}},methods:{filterContributors(e){this.query=Y.exports.get(e,["target","value"],"")},close(){this.$emit("close")}}}),tZ={class:"block hover:bg-gray-50"},nZ={class:"flex items-center px-4 py-4 sm:px-6"},rZ={class:"flex min-w-0 flex-1 items-center"},oZ={class:"min-w-0 flex-1 px-4 md:grid md:grid-cols-2 md:gap-4"},iZ={class:"relative mt-2 max-w-sm"},sZ={ref:"container"},lZ={class:"flex items-center"},aZ=["src","onError"],uZ={class:"flex space-x-2 justify-end"};function cZ(e,t,n,r,o,s){const l=X("ComboboxLabel"),a=X("ComboboxInput"),c=X("ChevronDownIcon"),f=X("ComboboxButton"),p=X("UserCircleIcon"),h=X("CheckIcon"),v=X("ComboboxOption"),y=X("ComboboxOptions"),_=X("Combobox"),w=X("x-icon");return N(),V("div",tZ,[g("div",nZ,[g("div",rZ,[g("div",oZ,[q(_,{as:"div",modelValue:e.data,"onUpdate:modelValue":t[1]||(t[1]=I=>e.data=I)},{default:ye(()=>[q(l,{class:"block text-sm font-medium leading-6 text-gray-900"},{default:ye(()=>[Xe(U(e.__("Select Contributor","podlove-podcasting-plugin-for-wordpress")),1)]),_:1}),g("div",iZ,[q(a,{ref:"trigger",class:"w-full rounded-md border-0 bg-white py-1.5 pl-3 pr-12 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6",onChange:t[0]||(t[0]=I=>e.filterContributors(I)),displayValue:()=>e.query},null,8,["displayValue"]),q(f,{class:"absolute inset-y-0 right-0 flex items-center rounded-r-md px-2 focus:outline-none"},{default:ye(()=>[q(c,{class:"h-5 w-5 text-gray-400","aria-hidden":"true"})]),_:1})]),g("div",sZ,[e.filteredContributors.length>0?(N(),bt(y,{key:0,class:"absolute max-w-sm z-50 mt-1 max-h-56 w-full overflow-auto rounded-md bg-white py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm"},{default:ye(()=>[(N(!0),V(Fe,null,Mt(e.filteredContributors,I=>(N(),bt(v,{key:I.id||"create",value:I,as:"template"},{default:ye(({active:O,selected:S})=>[g("li",{class:wt(["relative cursor-default select-none py-2 pl-3 pr-9",O?"bg-indigo-600 text-white":"text-gray-900"])},[g("div",lZ,[I.avatar_url?(N(),V("img",{key:0,src:I.avatar_url,alt:"",class:"h-6 w-6 flex-shrink-0 rounded-full",onError:E=>I.avatar_url=""},null,40,aZ)):qe("",!0),I.avatar_url?qe("",!0):(N(),bt(p,{key:1,class:"h-6 w-6 flex-shrink-0 rounded-full text-gray-500"})),g("span",{class:wt(["ml-3 truncate",S&&"font-semibold"])},U(I.realname),3)]),S?(N(),V("span",{key:0,class:wt(["absolute inset-y-0 right-0 flex items-center pr-4",O?"text-white":"text-indigo-600"])},[q(h,{class:"h-5 w-5","aria-hidden":"true"})],2)):qe("",!0)],2)]),_:2},1032,["value"]))),128))]),_:1})):qe("",!0)],512)]),_:1},8,["modelValue"])])]),g("div",uZ,[g("button",{class:"text-red-600",onClick:t[2]||(t[2]=I=>e.close())},[q(w,{class:"w-5 h-5"})])])])])}var dZ=Be(eZ,[["render",cZ]]);const fZ=ve({components:{Module:Nn,PodloveButton:Vn,PlusSmIcon:Lv,Contribution:qJ,AddContribution:dZ},data(){return{addContributorInput:!1}},setup(){return{dispatch:it().dispatch,state:yt({contributions:G.episode.contributions,roles:G.contributors.roles,groups:G.contributors.groups})}},created(){this.dispatch(ix())},methods:{showAddContributor(){this.addContributorInput=!0},addContributor(e){this.addContributorInput=!1,this.dispatch(zE(e))},createContributor(e){this.addContributorInput=!1,this.dispatch(hD(e))},closeAddContributor(){this.addContributorInput=!1}}}),pZ={role:"list",class:"divide-y divide-gray-200"},hZ={key:0,class:"mb-0"},mZ={class:"py-5 px-6 border-t border-gray-200"};function vZ(e,t,n,r,o,s){const l=X("Contribution"),a=X("AddContribution"),c=X("plus-sm-icon"),f=X("podlove-button"),p=X("module");return N(),bt(p,{name:"chapters",title:e.__("Contributors","podlove-podcasting-plugin-for-wordpress"),class:"overflow-hidden"},{actions:ye(()=>[]),default:ye(()=>[g("ul",pZ,[(N(!0),V(Fe,null,Mt(e.state.contributions,(h,v)=>(N(),V("li",{class:"mb-0",key:h.position},[h!=null&&h.contributor_id?(N(),bt(l,{key:0,data:h,first:v===0,last:v===e.state.contributions.length-1},null,8,["data","first","last"])):qe("",!0)]))),128)),e.addContributorInput?(N(),V("li",hZ,[q(a,{onAddContributor:t[0]||(t[0]=h=>e.addContributor(h)),onCreateContributor:t[1]||(t[1]=h=>e.createContributor(h)),onClose:t[2]||(t[2]=h=>e.closeAddContributor())})])):qe("",!0)]),g("div",mZ,[q(f,{variant:"primary",onClick:t[3]||(t[3]=h=>e.showAddContributor())},{default:ye(()=>[q(c,{class:"-ml-0.5 mr-2 h-4 w-4","aria-hidden":"true"}),Xe(" "+U(e.__("Add Contributor","podlove-podcasting-plugin-for-wordpress")),1)]),_:1})])]),_:1},8,["title"])}var gZ=Be(fZ,[["render",vZ]]);const yZ=ve({setup(){return{state:yt({slug:G.episode.slug,baseUri:G.settings.mediaFileBaseUri}),dispatch:it().dispatch}},methods:{updateSlug(e){this.dispatch($t({prop:"slug",value:e.target.value})),this.dispatch(Dx())}},computed:{assetPrefix(){var n;let e=(n=this.state.baseUri)==null?void 0:n.replace(/https?:\/\//i,"").trim();if(!e)return"";const t=e.trim().replace(/\/+$/g,"").lastIndexOf("/");return e.length>30&&t>-1&&(e=e.slice(t)),e}}}),bZ={for:"filename_slug",class:"block text-sm font-medium leading-6 text-gray-900 sm:pt-1.5"},_Z={class:"mt-2 sm:col-span-2 sm:mt-0"},wZ={class:"flex rounded-md shadow-sm ring-1 ring-inset ring-gray-300 focus-within:ring-2 focus-within:ring-inset focus-within:ring-indigo-600"},SZ={class:"flex select-none items-center pl-3 text-gray-500 sm:text-sm"},EZ=["value"],xZ=g("span",{class:"flex slect-none items-center text-gray-500 sm:text-sm pr-2"},".ext",-1);function $Z(e,t,n,r,o,s){return N(),V(Fe,null,[g("label",bZ,U(e.__("Filename / Slug","podlove-podcasting-plugin-for-wordpress")),1),g("div",_Z,[g("div",wZ,[g("span",SZ,U(e.assetPrefix),1),g("input",{type:"text",name:"filename_slug",id:"filename_slug",autocomplete:"filename_slug",class:"block flex-1 border-0 bg-transparent py-1.5 pl-1 text-gray-900 placeholder:text-gray-400 focus:ring-0 sm:text-sm sm:leading-6",placeholder:"",value:e.state.slug,onInput:t[0]||(t[0]=l=>e.updateSlug(l))},null,40,EZ),xZ])])],64)}var CZ=Be(yZ,[["render",$Z]]);const TZ=ve({components:{PodloveButton:Vn,UploadIcon:R2},setup(){return{state:yt({}),dispatch:it().dispatch}},methods:{uploadIntent(){this.dispatch(b7())}},computed:{}}),OZ={for:"mediafile_upload",class:"block text-sm font-medium leading-6 text-gray-900 sm:pt-1.5"},AZ={class:"mt-2 sm:col-span-2 sm:mt-0"};function IZ(e,t,n,r,o,s){const l=X("upload-icon"),a=X("podlove-button");return N(),V(Fe,null,[g("label",OZ,U(e.__("Upload","podlove-podcasting-plugin-for-wordpress")),1),g("div",AZ,[g("div",null,[q(a,{variant:"primary",onClick:e.uploadIntent,class:"ml-1"},{default:ye(()=>[q(l,{class:"-ml-0.5 mr-2 h-4 w-4","aria-hidden":"true"}),Xe(" "+U(e.__("Upload Media File","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["onClick"])])])],64)}var PZ=Be(TZ,[["render",IZ]]);const kZ={},RZ={class:"text-center"},LZ=g("svg",{class:"mx-auto h-12 w-12 text-gray-400",fill:"none",viewBox:"0 0 24 24",strokeWidth:"{1.5}",stroke:"currentColor"},[g("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.42 15.17L17.25 21A2.652 2.652 0 0021 17.25l-5.877-5.877M11.42 15.17l2.496-3.03c.317-.384.74-.626 1.208-.766M11.42 15.17l-4.655 5.653a2.548 2.548 0 11-3.586-3.586l6.837-5.63m5.108-.233c.55-.164 1.163-.188 1.743-.14a4.5 4.5 0 004.486-6.336l-3.276 3.277a3.004 3.004 0 01-2.25-2.25l3.276-3.276a4.5 4.5 0 00-6.336 4.486c.091 1.076-.071 2.264-.904 2.95l-.102.085m-1.745 1.437L5.909 7.5H4.5L2.25 3.75l1.5-1.5L7.5 4.5v1.409l4.26 4.26m-1.745 1.437l1.745-1.437m6.615 8.206L15.75 15.75M4.867 19.125h.008v.008h-.008v-.008z"})],-1),NZ={class:"mt-2 text-sm font-semibold text-gray-900"},MZ={class:"mt-1 text-sm text-gray-500"};function DZ(e,t){return N(),V("div",RZ,[LZ,g("h3",NZ,U(e.__("No Assets","podlove-podcasting-plugin-for-wordpress")),1),g("p",MZ,U(e.__("Please go to Podlove \u2192 Episode Assets and define at least one audio asset.","podlove-podcasting-plugin-for-wordpress")),1)])}var FZ=Be(kZ,[["render",DZ]]);const BZ=ve({components:{CheckCircleIcon:qq,XCircleIcon:j$,CloudIcon:L2,AssetsEmptyState:FZ},setup(){return{state:yt({files:G.mediafiles.files,duration:G.episode.duration}),dispatch:it().dispatch}},methods:{handleToggle(e){const t=e.target,n=t.checked,r=parseInt(t.value);n?this.dispatch(v7(r)):this.dispatch(g7(r))},handleVerify(e){this.dispatch(y7(e))},fileSize(e){const t=e.size;if(!t||t<1)return"???";var n=t/1024;if(n<500)return n.toFixed(2)+" kB";var r=n/1024;return r.toFixed(2)+" MB"}},computed:{files(){return this.state.files},hasFiles(){return this.files.length>0},duration(){const e="--:--:--.---";if(!this.state.duration)return e;const t=Nt.fromString(this.state.duration);return t.totalMs===0?e:t.pretty}}}),UZ={for:"assets",class:"block text-sm font-medium leading-6 text-gray-900 sm:pt-1.5"},jZ={class:"mt-2 sm:col-span-2 sm:mt-0"},HZ={key:0},VZ={class:"min-w-full table-fixed divide-y divide-gray-300"},WZ={scope:"col",class:"py-3.5 pl-3 text-left text-sm font-semibold text-gray-900"},zZ={scope:"col",class:"py-3.5 pr-3 text-left text-sm font-semibold text-gray-900"},qZ={scope:"col",class:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900"},KZ=g("th",{scope:"col",class:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900"},null,-1),GZ={class:"divide-y divide-gray-200 bg-white"},XZ={class:"relative px-7 sm:w-12 sm:px-6"},JZ={key:0,class:"inline-flex items-center animate-pulse text-green-600 absolute left-[-14px] top-1/2 -mt-2.5"},YZ=["value","checked"],ZZ={class:"text-sm"},QZ={class:"whitespace-nowrap px-3 py-4 text-sm text-gray-500"},eQ={class:"flex flex-col"},tQ=["href"],nQ={class:"flex"},rQ={key:3},oQ={class:"whitespace-nowrap px-3 py-4 text-sm text-gray-500"},iQ=["onClick"],sQ={class:"mt-3 text-sm leading-6 text-gray-600"};function lQ(e,t,n,r,o,s){const l=X("CloudIcon"),a=X("CheckCircleIcon"),c=X("XCircleIcon"),f=X("AssetsEmptyState");return N(),V(Fe,null,[g("label",UZ,U(e.__("Assets","podlove-podcasting-plugin-for-wordpress")),1),g("div",jZ,[e.hasFiles?(N(),V("div",HZ,[g("table",VZ,[g("thead",null,[g("tr",null,[g("th",WZ,U(e.__("Enable","podlove-podcasting-plugin-for-wordpress")),1),g("th",zZ,U(e.__("Asset","podlove-podcasting-plugin-for-wordpress")),1),g("th",qZ,U(e.__("File","podlove-podcasting-plugin-for-wordpress")),1),KZ])]),g("tbody",GZ,[(N(!0),V(Fe,null,Mt(e.files,p=>(N(),V("tr",{key:p.asset_id,class:wt({"opacity-50":!p.enable})},[g("td",XZ,[p.is_verifying?(N(),V("div",JZ,[q(l,{class:"h-5 w-5","aria-hidden":"true"})])):qe("",!0),g("input",{type:"checkbox",class:"absolute left-4 top-1/2 -mt-2 h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-600",value:p.asset_id,checked:p.enable,onClick:t[0]||(t[0]=(...h)=>e.handleToggle&&e.handleToggle(...h))},null,8,YZ)]),g("td",ZZ,U(p.asset),1),g("td",QZ,[g("div",eQ,[g("a",{href:p.url,target:"_blank",class:"text-gray-700 underline"},U(p.url),9,tQ),g("span",nQ,[p.size>0?(N(),bt(a,{key:0,class:"mr-1.5 h-5 w-5 flex-shrink-0 text-green-400","aria-hidden":"true"})):(N(),bt(c,{key:1,class:wt(["mr-1.5 h-5 w-5 flex-shrink-0",{"text-gray-400":!p.enable,"text-red-400":p.enable}]),"aria-hidden":"true"},null,8,["class"])),p.size?(N(),V("span",rQ,U(e.fileSize(p)),1)):(N(),V("span",{key:2,class:wt({"text-gray-400":!p.enable,"text-red-400":p.enable})},U(e.__("File not found","podlove-podcasting-plugin-for-wordpress")),3))])])]),g("td",oQ,[g("button",{type:"button",class:"inline-flex items-center rounded-md bg-white px-2.5 py-1.5 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50 disabled:cursor-not-allowed disabled:opacity-30 disabled:hover:bg-white",onClick:()=>e.handleVerify(p.asset_id)},U(e.__("Verify","podlove-podcasting-plugin-for-wordpress")),9,iQ)])],2))),128))])]),g("p",sQ,U(e.__("Duration:","podlove-podcasting-plugin-for-wordpress"))+" "+U(e.duration),1)])):(N(),bt(f,{key:1}))])],64)}var aQ=Be(BZ,[["render",lQ]]);const uQ=ve({components:{Module:Nn,RefreshIcon:I2,MediaSlug:CZ,MediaUpload:PZ,AssetsTable:aQ},setup(){return{state:yt({isInitializing:G.mediafiles.isInitializing,modules:G.settings.modules}),dispatch:it().dispatch}},computed:{isInitializing(){return this.state.isInitializing},isMediaUploadEnabled(){var e;return(e=this.state.modules)==null?void 0:e.includes("wordpress_file_upload")}},created(){this.dispatch(p7())}}),cQ={key:0,class:"w-full flex justify-center m-12 text-center"},dQ={class:"animate-pulse mt-4 flex space-x-4"},fQ={key:1},pQ={class:"px-6"},hQ={class:"mt-10 sm:mt-0 space-y-8 border-b border-gray-900/10 pb-12 sm:space-y-0 sm:divide-y sm:divide-gray-900/10 sm:pb-0"},mQ={class:"sm:grid sm:grid-cols-[175px_auto_auto] sm:items-start sm:gap-4 sm:py-6"},vQ={key:0,class:"sm:grid sm:grid-cols-[175px_auto_auto] sm:items-start sm:gap-4 sm:py-6"},gQ={class:"sm:grid sm:grid-cols-[175px_auto_auto] sm:items-start sm:gap-4 sm:py-6"};function yQ(e,t,n,r,o,s){const l=X("RefreshIcon"),a=X("MediaSlug"),c=X("MediaUpload"),f=X("AssetsTable"),p=X("module");return N(),bt(p,{name:"mediafiles",title:"Media Files"},{default:ye(()=>[g("div",null,[e.isInitializing?(N(),V("div",cQ,[g("div",dQ,[q(l,{class:"animate-spin h-5 w-5 mr-3"}),Xe(" "+U(e.__("Loading...","podlove-podcasting-plugin-for-wordpress")),1)])])):(N(),V("div",fQ,[g("div",pQ,[g("div",hQ,[g("div",mQ,[q(a)]),e.isMediaUploadEnabled?(N(),V("div",vQ,[q(c)])):qe("",!0),g("div",gQ,[q(f)])])])]))])]),_:1})}var bQ=Be(uQ,[["render",yQ]]);const _Q=ve({name:"PodloveCombobox",components:{Combobox:Z2,ComboboxButton:Q2,ComboboxInput:e$,ComboboxOption:n$,ComboboxOptions:t$,CheckIcon:Kd,SelectorIcon:Gd},props:{options:Array,selectValues:Array,placeholder:{type:String,default:"Select an option"},multiple:{type:Boolean,default:!1},error:String},computed:{label(){var t;const e=(t=this.selectValues)==null?void 0:t.length;return e===0?"No option is selected":e===1?"One option is selected":(e==null?void 0:e.toString())+" options are selected"},filterOptions(){var e;return this.query===""?this.options:(e=this.options)==null?void 0:e.filter(t=>t.title.toLowerCase().includes(this.query.toLowerCase()))}},data(){return{query:""}},methods:{selectItem(e){this.$emit("update",e)},onChange(e){this.query=e.target.value},resetQuery(){this.query=""}}}),wQ={class:"relative mt-1 focus-visible:border-indigo-500 focus:ring-indigo-500"},SQ={class:"shadow-sm flex sm:text-sm rounded-md absolute inset-y-0 right-10 items-center pr-2 pointer-events-none"},EQ={key:0,class:"cursor-default select-none relative py-2 px-4 text-gray-700"},xQ={key:0,class:"flex absolute inset-y-0 left-0 items-center pl-3 text-amber-600"},$Q={key:0,class:"text-xs text-red-400 mt-1"};function CQ(e,t,n,r,o,s){const l=X("ComboboxInput"),a=X("SelectorIcon"),c=X("ComboboxButton"),f=X("CheckIcon"),p=X("ComboboxOption"),h=X("ComboboxOptions"),v=X("Combobox",!0);return N(),bt(v,{"model-value":e.selectValues,multiple:e.multiple,"onUpdate:modelValue":t[0]||(t[0]=y=>e.selectItem(y))},{default:ye(()=>[g("div",wQ,[q(c,{class:"w-full flex items-center",onClick:e.resetQuery},{default:ye(()=>[q(l,{onChange:e.onChange,class:"relative py-2 pl-3 w-full bg-white rounded-lg shadow-md cursor-default sm:text-sm border-gray-300"},null,8,["onChange"]),g("div",SQ,U(e.label),1),q(a,{class:"w-5 h-5 text-gray-400","aria-hidden":"true"})]),_:1},8,["onClick"]),q(Ei,{"leave-active-class":`148 `;F$(dz);B$.__scopeId="data-v-5784ed69";var fz=(()=>{const e=B$;return e.install=t=>{t.component("Popper",e)},e})();const pz=ve({components:{Popper:fz},props:{direction:{type:String,default:"left"}},data(){return{visible:!0}},computed:{caretClasses(){switch(this.direction){case"left":return"left-0 -ml-2 bottom-0 top-0 h-full"}}},methods:{show(){this.visible=!0},hide(){this.visible=!1}}}),hz={class:"bg-white p-4 rounded shadow-lg max-w-md"};function mz(e,t,n,r,o,s){const l=X("Popper");return N(),V("div",null,[q(l,{hover:"",openDelay:"200",closeDelay:"100",arrow:!0},{content:ye(()=>[g("div",hz,[gr(e.$slots,"content")])]),default:ye(()=>[gr(e.$slots,"trigger")]),_:3})])}var vz=Be(pz,[["render",mz]]);const gz=ve({components:{PodloveButton:Vn,Tooltip:vz},setup(){return{dispatch:it().dispatch}},methods:{simulateImportClick(){this.$refs.import.click()},importChapters(){const e=this.$refs.import;if(!!e)try{const t=new FileReader;t.onload=n=>{this.dispatch(nD(n.target.result))},t.readAsText(Y.exports.get(e,["files",0],""))(this.$refs.importForm).reset()}catch{}}}}),yz={class:"text-xs"},bz={class:"text-gray-600 leading-3 font-semibold mb-2"},_z={class:"text-gray-500 ml-1"},wz={class:"mb-1"},Sz={class:"text-blue-500 underline",href:"https://podlove.org/simple-chapters/",target:"_blank"},Ez=g("code",null,".psc",-1),xz={class:"mb-1"},$z={class:"text-blue-500 underline",href:"http://www.audacityteam.org",target:"_blank"},Cz={class:"mb-1"},Tz={class:"text-blue-500 underline",href:"https://hindenburg.com",target:"_blank"},Oz=g("code",null,".txt",-1);function Az(e,t,n,r,o,s){const l=X("podlove-button"),a=X("tooltip");return N(),bt(a,null,{trigger:ye(()=>[q(l,{variant:"secondary",size:"small",onClick:t[0]||(t[0]=c=>e.simulateImportClick())},{default:ye(()=>[Ge(U(e.__("Import","podlove-podcasting-plugin-for-wordpress")),1)]),_:1}),g("input",{ref:"import",type:"file",onChange:t[1]||(t[1]=(...c)=>e.importChapters&&e.importChapters(...c)),class:"hidden"},null,544)]),content:ye(()=>[g("div",yz,[g("p",bz,U(e.__("Accepts:","podlove-podcasting-plugin-for-wordpress")),1),g("ul",_z,[g("li",wz,[g("a",Sz,U(e.__("Podlove Simple Chapters","podlove-podcasting-plugin-for-wordpress")),1),Ge(" ("),Ez,Ge("), ")]),g("li",xz,[g("a",$z,U(e.__("Audacity","podlove-podcasting-plugin-for-wordpress")),1),Ge(" "+U(e.__("Track Labels","podlove-podcasting-plugin-for-wordpress"))+", ",1)]),g("li",Cz,[g("a",Tz,U(e.__("Hindenburg","podlove-podcasting-plugin-for-wordpress")),1),Ge(" "+U(e.__("project files and MP4Chaps","podlove-podcasting-plugin-for-wordpress"))+" (",1),Oz,Ge(") ")])])])]),_:1})}var Iz=Be(gz,[["render",Az]]);const Pz=ve({components:{Popover:b$,PopoverButton:hj,PopoverPanel:mj}});function kz(e,t,n,r,o,s){const l=X("PopoverButton"),a=X("PopoverPanel"),c=X("Popover",!0);return N(),bt(c,{class:"relative"},{default:ye(()=>[q(l,null,{default:ye(()=>[gr(e.$slots,"trigger")]),_:3}),q(Ei,{"enter-active-class":"transition duration-200 ease-out","enter-from-class":"translate-y-1 opacity-0","enter-to-class":"translate-y-0 opacity-100","leave-active-class":"transition duration-150 ease-in","leave-from-class":"translate-y-0 opacity-100","leave-to-class":"translate-y-1 opacity-0"},{default:ye(()=>[q(a,{class:"absolute"},{default:ye(()=>[gr(e.$slots,"content",{class:"overflow-hidden"})]),_:3})]),_:3})]),_:3})}var U$=Be(Pz,[["render",kz]]);const Rz=ve({components:{Popover:U$,PodloveButton:Vn},setup(){return{dispatch:it().dispatch}},methods:{download(e){this.dispatch(oD(e))}}}),Lz={class:"bg-white p-7 -translate-x-full z-10 mt-3 transform ml-16 rounded-lg shadow-lg"},Nz={class:"text-sm font-medium text-gray-900 truncate w-full mr-2"},Mz=g("div",{class:"text-sm text-gray-500"},".psc",-1),Dz={class:"text-sm font-medium text-gray-900 truncate w-full mr-2"},Fz=g("div",{class:"text-sm text-gray-500"},".txt",-1);function Bz(e,t,n,r,o,s){const l=X("podlove-button"),a=X("popover");return N(),V("div",null,[q(a,null,{trigger:ye(()=>[q(l,{variant:"secondary",size:"small"},{default:ye(()=>[Ge(U(e.__("Export","podlove-podcasting-plugin-for-wordpress")),1)]),_:1})]),content:ye(()=>[g("div",Lz,[g("a",{onClick:t[0]||(t[0]=c=>e.download("psc")),class:"flex items-center p-2 -m-3 transition duration-150 ease-in-out rounded-lg cursor-pointer bg-gray-100 hover:bg-indigo-100 focus:outline-none focus-visible:ring focus-visible:ring-indigo-500 focus-visible:ring-opacity-50 mb-4"},[g("div",Nz,U(e.__("Podlove Simple Chapters","podlove-podcasting-plugin-for-wordpress")),1),Mz]),g("a",{onClick:t[1]||(t[1]=c=>e.download("mp4")),class:"flex items-center p-2 -m-3 transition duration-150 ease-in-out rounded-lg cursor-pointer bg-gray-100 hover:bg-indigo-100 focus:outline-none focus-visible:ring focus-visible:ring-indigo-500 focus-visible:ring-opacity-50"},[g("div",Dz,U(e.__("MP4Chaps","podlove-podcasting-plugin-for-wordpress")),1),Fz])])]),_:1})])}var Uz=Be(Rz,[["render",Bz]]);const jz=ve({components:{Module:Nn,TabsContainer:O$,Tab:T$,ChaptersForm:ZV,ChaptersImport:Iz,ChaptersExport:Uz},setup(){return{dispatch:it().dispatch}},created(){this.dispatch(ZM())}});function Hz(e,t,n,r,o,s){const l=X("chapters-import"),a=X("chapters-export"),c=X("chapters-form"),f=X("module");return N(),bt(f,{name:"chapters",title:e.__("Chapter Marks","podlove-podcasting-plugin-for-wordpress")},{actions:ye(()=>[q(l,{class:"mr-1"}),q(a)]),default:ye(()=>[q(c)]),_:1},8,["title"])}var Vz=Be(jz,[["render",Hz]]);const Wz={},zz={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},qz=g("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-6-3a2 2 0 11-4 0 2 2 0 014 0zm-2 4a5 5 0 00-4.546 2.916A5.986 5.986 0 0010 16a5.986 5.986 0 004.546-2.084A5 5 0 0010 11z","clip-rule":"evenodd"},null,-1),Kz=[qz];function Gz(e,t){return N(),V("svg",zz,Kz)}var Xz=Be(Wz,[["render",Gz]]);const Jz=ve({props:{outlet:{type:String,default:"header"}},components:{PodloveButton:Vn,UploadIcon:R2,DocumentTextIcon:N2},setup(){return{dispatch:it().dispatch}},methods:{simulateImportClick(){this.$refs.import.click()},importTranscriptFromAsset(){this.dispatch(TD())},handleImport(){const e=this.$refs.import;if(!!e)try{const t=new FileReader;t.onload=n=>{this.dispatch(CD(n.target.result))},t.readAsText(Y.exports.get(e,["files",0],""))(this.$refs.importForm).reset()}catch{}}}}),Yz={ref:"importForm",class:"cursor-pointer"},Zz={class:"grid grid-cols-2"};function Qz(e,t,n,r,o,s){const l=X("upload-icon"),a=X("podlove-button");return N(),V("form",Yz,[g("div",Zz,[g("div",null,[q(a,{variant:"primary",onClick:e.simulateImportClick,class:"ml-1"},{default:ye(()=>[q(l,{class:"-ml-0.5 mr-2 h-4 w-4","aria-hidden":"true"}),Ge(" "+U(e.__("Import Transcript","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["onClick"]),g("input",{ref:"import",accept:"text/vtt",type:"file",onChange:t[0]||(t[0]=(...c)=>e.handleImport&&e.handleImport(...c)),class:"hidden",key:""},null,544)]),g("div",null,[q(a,{variant:"primary",onClick:e.importTranscriptFromAsset,class:"ml-1"},{default:ye(()=>[Ge(U(e.__("Get From Asset","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["onClick"])])])],512)}var eq=Be(Jz,[["render",Qz]]);const tq=ve({components:{Avatar:Xz,TranscriptsImport:eq,DocumentTextIcon:N2},setup(){return{state:yt({transcripts:G.transcripts.list,contributors:G.contributors.contributors,voices:G.transcripts.voices})}},computed:{voices(){return this.state.contributors.reduce((e,t)=>{var r;const n=(r=this.state.voices.find(o=>o.contributor===t.id))==null?void 0:r.voice;return{...e,[n]:{id:t.id,name:t.realname,avatar:t.avatar_url}}},{})},transcripts(){return this.state.transcripts.reduce((e,t)=>{const n=Y.exports.last(e);return n&&n.voiceId===t.voice?[...Y.exports.dropRight(e),{...n,voiceId:t.voice,content:[...n.content,{text:t.text,start:t.start_ms,end:t.end_ms}]}]:[...e,{voiceId:t.voice,content:[{text:t.text,start:t.start_ms,end:t.end_ms}]}]},[]).map(e=>({...e,voice:Y.exports.get(this.voices,[e.voiceId],{name:e.voiceId})}))}},methods:{formatTime(e){return new Nt(e).prettyShort}}}),nq={key:0,class:"h-96 p-2 overflow-x-auto"},rq={class:"mr-2 w-12 text-gray-400 select-none"},oq=["src"],iq={class:"w-full font-light text-sm mr-2"},sq={class:"block font-bold"},lq={class:"flex justify-between"},aq={class:"ml-1 font-mono select-none"},uq={key:1,class:"text-center h-96 flex items-center justify-center flex-col"},cq={class:"mt-2 text-sm font-medium text-gray-900"},dq={class:"mt-1 text-sm text-gray-500"},fq={class:"mt-6"};function pq(e,t,n,r,o,s){const l=X("avatar"),a=X("document-text-icon"),c=X("transcripts-import");return e.transcripts.length>0?(N(),V("div",nq,[(N(!0),V(Fe,null,Mt(e.transcripts,(f,p)=>{var h,v,y;return N(),V("div",{class:"flex mb-2",key:`transcript-${p}`},[g("div",rq,[(h=f==null?void 0:f.voice)!=null&&h.avatar?(N(),V("img",{key:0,class:"w-12 h-12 rounded",src:(v=f==null?void 0:f.voice)==null?void 0:v.avatar},null,8,oq)):(N(),bt(l,{key:1}))]),g("div",iq,[g("span",sq,U((y=f==null?void 0:f.voice)==null?void 0:y.name),1),g("span",lq,[g("span",null,[(N(!0),V(Fe,null,Mt(f.content,(_,w)=>(N(),V("span",{class:"mr-1",key:`transcript-${p}-content-${w}`},U(_.text),1))),128))]),g("span",aq,U(e.formatTime(f.content[0].start)),1)])])])}),128))])):(N(),V("div",uq,[q(a,{class:"mx-auto h-12 w-12 text-gray-400"}),g("h3",cq,U(e.__("No transcript yet","podlove-podcasting-plugin-for-wordpress")),1),g("p",dq,U(e.__("Get started by importing a transcript.","podlove-podcasting-plugin-for-wordpress")),1),g("div",fq,[q(c,{outlet:"content",class:"mr-1"})])]))}var hq=Be(tq,[["render",pq]]);const mq=ve({components:{PodloveButton:Vn,Modal:ja},data(){return{modalOpen:!1}},setup(){return{state:yt({contributors:G.contributors.contributors,voices:G.transcripts.voices}),dispatch:it().dispatch}},computed:{sortedContributors(){return this.state.contributors.sort((e,t)=>{const n=e.publicname||e.realname||e.nickname,r=t.publicname||t.realname||t.nickname;return n.localeCompare(r)})}},methods:{updateContributor(e,t){const n=t.target.value;this.dispatch($D({voice:e,contributor:n}))},openVoices(){this.modalOpen=!0},closeVoices(){this.modalOpen=!1}}}),vq={key:0},gq={class:"border-gray-200 border-b pb-2 px-4 -mx-6 mb-4"},yq={class:"text-lg leading-6 font-medium text-gray-900"},bq={for:"country",class:"block text-sm font-medium text-gray-700"},_q=["value","onChange"],wq=g("option",{value:"0"},null,-1),Sq=["value"];function Eq(e,t,n,r,o,s){const l=X("podlove-button"),a=X("modal");return e.state.voices.length>0?(N(),V("div",vq,[q(l,{variant:"secondary",size:"small",onClick:t[0]||(t[0]=c=>e.openVoices())},{default:ye(()=>[Ge(U(e.__("Voices","podlove-podcasting-plugin-for-wordpress")),1)]),_:1}),q(a,{open:e.modalOpen,onClose:t[1]||(t[1]=c=>e.closeVoices())},{default:ye(()=>[g("div",gq,[g("h3",yq,U(e.__("Transcript Voices","podlove-podcasting-plugin-for-wordpress")),1)]),(N(!0),V(Fe,null,Mt(e.state.voices,(c,f)=>(N(),V("div",{key:`voice-${f}`,class:wt(["w-full py-2 px-4",{"bg-white":f%2}])},[g("label",bq,U(c.voice),1),g("select",{value:c.contributor,class:"mt-1 block w-full py-2 px-3 border border-gray-300 bg-white rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm",onChange:p=>e.updateContributor(c.voice,p)},[wq,(N(!0),V(Fe,null,Mt(e.sortedContributors,(p,h)=>(N(),V("option",{key:`voice-${f}-contributor-${h}`,value:p.id},U(p.publicname||p.realname||p.nickname),9,Sq))),128))],40,_q)],2))),128))]),_:1},8,["open"])])):qe("",!0)}var xq=Be(mq,[["render",Eq]]);const $q=[{title:"Export webvtt",type:"webvtt",file:"transcript.webvtt",ending:".webvtt"},{title:"Export json (flat)",type:"json",file:"transcript.json",ending:".json"},{title:"Export json (grouped)",type:"json_grouped",file:"transcript.json",ending:".json"},{title:"Export xml",type:"xml",file:"transcript.xml",ending:".xml"}],Cq=ve({components:{Popover:U$,PodloveButton:Vn},setup(){return{state:yt({post:G.post.id,baseUrl:G.runtime.baseUrl,transcripts:G.transcripts.list})}},data(){return{exportTypes:$q}}}),Tq={key:0},Oq={class:"bg-white p-7 pb-1 -translate-x-full z-10 mt-3 transform ml-16 rounded-lg shadow-lg"},Aq=["download","href"],Iq={class:"text-sm font-medium text-gray-900 truncate w-full mr-2"},Pq={class:"text-sm text-gray-500"};function kq(e,t,n,r,o,s){const l=X("podlove-button"),a=X("popover");return e.state.transcripts.length>0?(N(),V("div",Tq,[q(a,null,{trigger:ye(()=>[q(l,{variant:"secondary",size:"small",tabindex:"-1"},{default:ye(()=>[Ge(U(e.__("Export","podlove-podcasting-plugin-for-wordpress")),1)]),_:1})]),content:ye(()=>[g("div",Oq,[(N(!0),V(Fe,null,Mt(e.exportTypes,(c,f)=>(N(),V("a",{key:`type-${f}`,download:c.file,href:`${e.state.baseUrl}/?p=${e.state.post}&podlove_transcript=${c.type}`,class:"flex items-center p-2 -m-3 transition duration-150 ease-in-out rounded-lg cursor-pointer bg-gray-100 hover:bg-indigo-100 focus:outline-none focus-visible:ring focus-visible:ring-indigo-500 focus-visible:ring-opacity-50 mb-4"},[g("div",Iq,U(c.title),1),g("div",Pq,U(c.ending),1)],8,Aq))),128))])]),_:1})])):qe("",!0)}var Rq=Be(Cq,[["render",kq]]);const Lq=ve({components:{PodloveButton:Vn,Modal:ja,ExclamationIcon:M2,DialogTitle:oj},data(){return{modalVisible:!1}},setup(){return{state:yt({transcripts:G.transcripts.list}),dispatch:it().dispatch}},methods:{deleteTranscripts(){this.closeModal(),this.dispatch(OD())},openModal(){this.modalVisible=!0},closeModal(){this.modalVisible=!1}}}),Nq={key:0},Mq={class:"sm:flex sm:items-start"},Dq={class:"mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-red-100 sm:mx-0 sm:h-10 sm:w-10"},Fq={class:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left"},Bq={class:"mt-2"},Uq={class:"text-sm text-gray-500"},jq={class:"mt-5 sm:mt-4 sm:flex sm:flex-row-reverse"};function Hq(e,t,n,r,o,s){const l=X("podlove-button"),a=X("exclamation-icon"),c=X("DialogTitle"),f=X("modal");return e.state.transcripts.length>0?(N(),V("div",Nq,[q(l,{variant:"secondary",size:"small",onClick:t[0]||(t[0]=p=>e.openModal())},{default:ye(()=>[Ge("Clear")]),_:1}),q(f,{open:e.modalVisible,onClose:t[3]||(t[3]=p=>e.closeModal())},{default:ye(()=>[g("div",Mq,[g("div",Dq,[q(a,{class:"h-6 w-6 text-red-600","aria-hidden":"true"})]),g("div",Fq,[q(c,{as:"h3",class:"text-lg leading-6 font-medium text-gray-900"},{default:ye(()=>[Ge(" Clear Transcript ")]),_:1}),g("div",Bq,[g("p",Uq,U(e.__("Are you sure you want to clear your transcript?","podlove-podcasting-plugin-for-wordpress")),1)])])]),g("div",jq,[q(l,{class:"sm:ml-3 sm:w-auto sm:text-sm",variant:"danger",onClick:t[1]||(t[1]=p=>e.deleteTranscripts())},{default:ye(()=>[Ge(U(e.__("Clear","podlove-podcasting-plugin-for-wordpress")),1)]),_:1}),q(l,{class:"sm:ml-3 sm:w-auto sm:text-sm",onClick:t[2]||(t[2]=p=>e.closeModal())},{default:ye(()=>[Ge(U(e.__("Cancel","podlove-podcasting-plugin-for-wordpress")),1)]),_:1})])]),_:1},8,["open"])])):qe("",!0)}var Vq=Be(Lq,[["render",Hq]]);const Wq=ve({components:{Module:Nn,TabsContainer:O$,Tab:T$,TranscriptsList:hq,TranscriptsVoices:xq,TranscriptsExport:Rq,TranscriptsDelete:Vq},setup(){return{dispatch:it().dispatch}},created(){this.dispatch(ix()),this.dispatch(SD())}});function zq(e,t,n,r,o,s){const l=X("transcripts-voices"),a=X("transcripts-export"),c=X("transcripts-delete"),f=X("transcripts-list"),p=X("module");return N(),bt(p,{name:"transcript",title:e.__("Transcripts","podlove-podcasting-plugin-for-wordpress")},{actions:ye(()=>[q(l,{class:"mr-1"}),q(a,{class:"mr-1"}),q(c)]),default:ye(()=>[q(f)]),_:1},8,["title"])}var qq=Be(Wq,[["render",zq]]);function Kq(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"fill-rule":"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12Zm13.36-1.814a.75.75 0 1 0-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 0 0-1.06 1.06l2.25 2.25a.75.75 0 0 0 1.14-.094l3.75-5.25Z","clip-rule":"evenodd"})])}function Kd(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"fill-rule":"evenodd",d:"M19.916 4.626a.75.75 0 0 1 .208 1.04l-9 13.5a.75.75 0 0 1-1.154.114l-6-6a.75.75 0 0 1 1.06-1.06l5.353 5.353 8.493-12.74a.75.75 0 0 1 1.04-.207Z","clip-rule":"evenodd"})])}function Gd(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"fill-rule":"evenodd",d:"M11.47 4.72a.75.75 0 0 1 1.06 0l3.75 3.75a.75.75 0 0 1-1.06 1.06L12 6.31 8.78 9.53a.75.75 0 0 1-1.06-1.06l3.75-3.75Zm-3.75 9.75a.75.75 0 0 1 1.06 0L12 17.69l3.22-3.22a.75.75 0 1 1 1.06 1.06l-3.75 3.75a.75.75 0 0 1-1.06 0l-3.75-3.75a.75.75 0 0 1 0-1.06Z","clip-rule":"evenodd"})])}function j$(e,t){return N(),V("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[g("path",{"fill-rule":"evenodd",d:"M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25Zm-1.72 6.97a.75.75 0 1 0-1.06 1.06L10.94 12l-1.72 1.72a.75.75 0 1 0 1.06 1.06L12 13.06l1.72 1.72a.75.75 0 1 0 1.06-1.06L13.06 12l1.72-1.72a.75.75 0 1 0-1.06-1.06L12 10.94l-1.72-1.72Z","clip-rule":"evenodd"})])}const Gq=ve({props:["file_key","track_index"],components:{Listbox:Vv,ListboxButton:zv,ListboxLabel:Wv,ListboxOption:Kv,ListboxOptions:qv,CheckIcon:Kd,SelectorIcon:Gd,DocumentCheckIcon:Y9},setup(){return{state:yt({services:G.auphonic.incomingServices,serviceFiles:G.auphonic.serviceFiles,fileSelections:G.auphonic.fileSelections,episodeSlug:G.episode.slug}),dispatch:it().dispatch}},methods:{set(e,t){this.dispatch(Cx({key:this.file_key,prop:e,value:t})),Number.isInteger(this.track_index)&&this.dispatch(Ox({track:{},index:this.track_index}))},handleFileSelection(e){this.set("fileSelection",e.target.value)},handleUrlUpdate(e){this.set("urlValue",e.target.value)},handleFileUploadSelection(e){const t=e.target.files;t?this.set("fileValue",t[0]):this.set("fileValue",null)},handleServiceSelection(e){this.set("currentServiceSelection",e.target.value)},setEpisodeSlug(e){this.dispatch($t({prop:"slug",value:e})),this.dispatch(Dx())}},computed:{services(){return this.state.services},currentService(){return this.state.services.find(e=>e.uuid===this.currentServiceSelection)},serviceFiles(){return Y.exports.get(this.state,["serviceFiles",this.currentServiceSelection],null)},fileSelection(){return this.state.fileSelections[this.file_key]},filenameSelectedForUpload(){var e,t;return(t=(e=this.fileSelection)==null?void 0:e.fileValue)==null?void 0:t.name},currentServiceSelection(){var e;return(e=this.fileSelection)==null?void 0:e.currentServiceSelection},urlFieldValue(){return this.fileSelection.urlValue},externalFileFieldValue(){return this.fileSelection.fileSelection},slugCandidate(){if(this.currentServiceSelection=="url"&&this.urlFieldValue)return this.urlFieldValue.split("/").reverse()[0].split(".")[0];if(this.currentServiceSelection=="file"){const e=this.filenameSelectedForUpload;return e?e.split(".")[0]:null}return null},shouldSuggestSlug(){return this.slugCandidate!=null&&this.slugCandidate!=this.state.episodeSlug}}}),Xq={class:"flex flex-col gap-2"},Jq=g("label",{class:"block md:hidden text-sm font-medium text-gray-700"},"Upload Method",-1),Yq=["value","selected"],Zq={key:0},Qq={key:0},eK=["for"],tK={key:0,class:"sm:mt-1"},nK={class:"text-sm font-normal"},rK={key:1,class:"sm:mt-1"},oK=["id"],iK={key:1},sK=["for"],lK={class:"mt-1"},aK=["id","value"],uK={key:2},cK={key:0},dK=["for"],fK=["id","value"],pK=["value"],hK={key:1},mK={key:3,class:"mt-3"},vK={class:"font-mono"};function gK(e,t,n,r,o,s){const l=X("DocumentCheckIcon");return N(),V("div",null,[g("div",Xq,[g("div",null,[Jq,g("select",{onChange:t[0]||(t[0]=(...a)=>e.handleServiceSelection&&e.handleServiceSelection(...a)),class:"mt-1 block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm rounded-md"},[(N(!0),V(Fe,null,Mt(e.services,a=>(N(),V("option",{key:a.uuid,value:a.uuid,selected:a.uuid==e.currentServiceSelection},U(a.type)+": "+U(a.display_name),9,Yq))),128))],32)]),e.currentService?(N(),V("div",Zq,[e.currentService.type==="file"?(N(),V("div",Qq,[g("label",{for:e.file_key+"file-upload",class:"relative cursor-pointer bg-white rounded-md font-medium text-indigo-600 hover:text-indigo-500 focus-within:outline-none focus-within:ring-2 focus-within:ring-offset-2 focus-within:ring-indigo-500"},[e.filenameSelectedForUpload?(N(),V("div",tK,[Ge(" Upload "),g("span",nK,U(e.filenameSelectedForUpload),1)])):(N(),V("div",rK,U(e.__("Upload a file","podlove-podcasting-plugin-for-wordpress")),1)),g("input",{id:e.file_key+"file-upload",name:"file-upload",type:"file",class:"sr-only",onInput:t[1]||(t[1]=(...a)=>e.handleFileUploadSelection&&e.handleFileUploadSelection(...a))},null,40,oK)],8,eK)])):e.currentService.type==="url"?(N(),V("div",iK,[g("label",{for:e.file_key+"audio_source_url",class:"block text-sm font-medium text-gray-700"},"File URL",8,sK),g("div",lK,[g("input",{type:"url",name:"audio_source_url",id:e.file_key+"audio_source_url",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",placeholder:"https://example.com/audio.flac",value:e.urlFieldValue,onInput:t[2]||(t[2]=(...a)=>e.handleUrlUpdate&&e.handleUrlUpdate(...a))},null,40,aK)])])):(N(),V("div",uK,[e.serviceFiles!==null?(N(),V("div",cK,[g("label",{for:e.file_key+"external_file",class:"block text-sm font-medium text-gray-700"},"File",8,dK),g("select",{name:"audio_external_file",id:e.file_key+"external_file",class:"mt-1 block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm rounded-md",value:e.externalFileFieldValue,onChange:t[3]||(t[3]=(...a)=>e.handleFileSelection&&e.handleFileSelection(...a))},[(N(!0),V(Fe,null,Mt(e.serviceFiles,a=>(N(),V("option",{key:a,value:a,d:""},U(a),9,pK))),128))],40,fK)])):(N(),V("div",hK,"..."))])),e.shouldSuggestSlug?(N(),V("div",mK,[g("button",{onClick:t[4]||(t[4]=()=>e.setEpisodeSlug(e.slugCandidate)),type:"button",class:"relative text-xs inline-flex items-center rounded-md bg-white px-3 py-2 font-medium text-gray-500 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50"},[q(l,{class:"-ml-0.5 mr-1.5 h-4 w-4 text-gray-400","aria-hidden":"true"}),g("span",null,[Ge(U(e.__("Use as Episode Slug:","podlove-podcasting-plugin-for-wordpress"))+" ",1),g("span",vK,U(e.slugCandidate),1)])])])):qe("",!0)])):qe("",!0)])])}var yK=Be(Gq,[["render",gK]]);const bK=ve({components:{ClipboardCheckIcon:X9,ExternalLinkIcon:P2,ExclamationIcon:M2},setup(){return{state:yt({production:G.auphonic.production,title:G.episode.title,subtitle:G.episode.subtitle,summary:G.episode.summary,duration:G.episode.duration,slug:G.episode.slug,license_name:G.episode.license_name,license_url:G.episode.license_url,chapters:G.chapters.list}),dispatch:it().dispatch}},methods:{isDifferent(e){switch(e.title){case"chapters":const t=e.here.map(r=>r.start+(r.title||"")+(r.href||"")+(r.image||"")).join(";"),n=e.there.map(r=>Math.round((r.start_output_sec||0)*1e3)+(r.title||"")+(r.url||"")+(r.image||"")).join(";");return t!=n;default:return e.there!=e.here}},renderEntryPreview(e){switch(e.title){case"chapters":return e.there.map(n=>n.start+" "+n.title).join(" / ");default:return e.there}},importMeta(e,t){switch(e){case"chapters":const r=t.map(o=>({start:Math.round((o.start_output_sec||0)*1e3),title:o.title||"",href:o.url||"",image:""}));this.dispatch(LE(r));break;default:this.dispatch($t({prop:e,value:t}));break}},importAllMeta(){this.visibleEntries.forEach(e=>{this.importMeta(e.title,e.there)})}},computed:{production(){return this.state.production||{}},entries(){const e=this.state.production,t=this.state;return[{key:1,title:"title",here:t.title,there:e.metadata.title},{key:2,title:"subtitle",here:t.subtitle,there:e.metadata.subtitle},{key:3,title:"summary",here:t.summary,there:e.metadata.summary},{key:5,title:"license_name",here:t.license_name,there:e.metadata.license},{key:6,title:"license_url",here:t.license_url,there:e.metadata.license_url},{key:9,title:"slug",here:t.slug,there:e.output_basename},{key:10,title:"chapters",here:t.chapters,there:e.chapters}]},visibleEntries(){return this.entries.filter(e=>e.there&&this.isDifferent(e))}}}),_K={key:0,class:"rounded-md bg-green-50 p-4"},wK={class:"flex"},SK={class:"flex-shrink-0"},EK={class:"ml-3"},xK={class:"text-sm font-medium text-green-800"},$K={class:"mt-2 text-sm text-green-700"},CK=["href"],TK={key:1,class:"rounded-md bg-yellow-50 p-4 mt-4"},OK={class:"flex"},AK={class:"flex-shrink-0"},IK={class:"ml-3"},PK={class:"text-sm font-medium text-yellow-800"},kK={class:"mt-2 text-sm text-yellow-700"},RK={key:2,class:"mt-4 overflow-hidden rounded-lg bg-white shadow"},LK={class:"p-6"},NK=g("h3",{class:"text-lg font-medium leading-6 text-gray-900"},"Import Metadata",-1),MK={class:"mt-1 text-sm text-gray-500"},DK={class:"mt-6 flow-root"},FK={role:"list",class:"-my-5 divide-y divide-gray-200"},BK={class:"flex items-center space-x-4"},UK={class:"min-w-0 flex-1"},jK={class:"truncate text-sm text-gray-500"},HK={class:"truncate text-sm font-medium text-gray-900"},VK=["onClick"],WK={class:"hidden sm:inline"},zK={class:"mt-6"},qK={key:3,class:"mt-4 overflow-hidden rounded-lg bg-white shadow"},KK={class:"p-6"};function GK(e,t,n,r,o,s){const l=X("ClipboardCheckIcon"),a=X("ExternalLinkIcon"),c=X("ExclamationIcon");return N(),V("div",null,[e.production.status==3?(N(),V("div",_K,[g("div",wK,[g("div",SK,[q(l,{class:"h-5 w-5 text-green-400","aria-hidden":"true"})]),g("div",EK,[g("h3",xK,U(e.__("Done","podlove-podcasting-plugin-for-wordpress")),1),g("div",$K,[g("p",null,[g("a",{href:e.production.status_page,target:"_blank",class:"underline inline-flex items-center"},[Ge(U(e.__("View Results","podlove-podcasting-plugin-for-wordpress"))+" ",1),q(a,{class:"ml-0.5 mr-1 h-4 w-4","aria-hidden":"true"})],8,CK),Ge(" "+U(e.__("on the Auphonic status page.","podlove-podcasting-plugin-for-wordpress")),1)])])])])])):qe("",!0),e.production.warning_message?(N(),V("div",TK,[g("div",OK,[g("div",AK,[q(c,{class:"h-5 w-5 text-yellow-400","aria-hidden":"true"})]),g("div",IK,[g("h3",PK,U(e.__("Warning","podlove-podcasting-plugin-for-wordpress")),1),g("div",kK,[g("p",null,U(e.production.warning_message),1)])])])])):qe("",!0),e.visibleEntries.length>0?(N(),V("div",RK,[g("div",LK,[g("div",null,[NK,g("p",MK,U(e.__("These values from your Auphonic Production differ from your local values:","podlove-podcasting-plugin-for-wordpress")),1)]),g("div",DK,[g("ul",FK,[(N(!0),V(Fe,null,Mt(e.visibleEntries,f=>(N(),V("li",{key:f.key,class:"py-4"},[g("div",BK,[g("div",UK,[g("p",jK,[g("em",null,U(f.title),1),Ge(" "+U(e.__("in the Auphonic Production is:","podlove-podcasting-plugin-for-wordpress")),1)]),g("p",HK,U(e.renderEntryPreview(f)),1)]),g("div",null,[g("button",{onClick:Sc(p=>e.importMeta(f.title,f.there),["prevent"]),class:"inline-flex items-center rounded-full border border-gray-300 bg-white px-2.5 py-0.5 text-sm font-medium leading-5 text-gray-700 shadow-sm hover:bg-gray-50","aria-label":"Import from Auphonic"},[Ge(U(e.__("Import","podlove-podcasting-plugin-for-wordpress")),1),g("span",WK,"\xA0"+U(e.__("from Auphonic","podlove-podcasting-plugin-for-wordpress")),1)],8,VK)])])]))),128))])]),g("div",zK,[g("button",{onClick:t[0]||(t[0]=Sc((...f)=>e.importAllMeta&&e.importAllMeta(...f),["prevent"])),class:"flex w-full items-center justify-center rounded-md border border-gray-300 bg-white px-4 py-2 text-sm font-medium text-gray-700 shadow-sm hover:bg-gray-50"},U(e.__("Import all from Auphonic","podlove-podcasting-plugin-for-wordpress")),1)])])])):(N(),V("div",qK,[g("div",KK,U(e.__("Nothing to import","podlove-podcasting-plugin-for-wordpress")),1)]))])}var XK=Be(bK,[["render",GK]]);const JK=ve({components:{Switch:bj,SwitchGroup:yj,SwitchLabel:_j},data(){return{enabled:!1}},methods:{handleUpdate(e){this.enabled=e,this.dispatch(Ax(e))}},setup(){return{state:yt({publishWhenDone:G.auphonic.publishWhenDone}),dispatch:it().dispatch}},mounted(){this.enabled=this.state.publishWhenDone}}),YK={class:"text-sm text-gray-900"};function ZK(e,t,n,r,o,s){const l=X("Switch"),a=X("SwitchLabel"),c=X("SwitchGroup");return N(),V("div",null,[q(c,{as:"div",class:"flex items-center"},{default:ye(()=>[q(l,{modelValue:e.enabled,"onUpdate:modelValue":e.handleUpdate,class:wt([e.enabled?"bg-indigo-600":"bg-gray-200","relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2"])},{default:ye(()=>[g("span",{"aria-hidden":"true",class:wt([e.enabled?"translate-x-5":"translate-x-0","pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out"])},null,2)]),_:1},8,["modelValue","onUpdate:modelValue","class"]),q(a,{as:"span",class:"ml-3"},{default:ye(()=>[g("span",YK,U(e.__("Publish Episode when Production is done","podlove-podcasting-plugin-for-wordpress")),1)]),_:1})]),_:1})])}var QK=Be(JK,[["render",ZK]]);const eG=ve({props:{className:{type:String,default:""}}}),tG=g("g",{transform:"translate(-12.73496,-48.464)"},[g("path",{d:"m 28.623,223.469 c -3.277,-0.007 -7.473,0.836 -12.588,2.528 l 1.46,6.491 c 3.476,-1.302 6.689,-1.95 9.638,-1.944 3.472,0.008 5.797,0.63 6.975,1.868 1.176,1.237 1.762,3.569 1.754,6.998 l -7.373,-0.017 c -5.047,-0.011 -8.933,1.031 -11.655,3.125 -2.725,2.092 -4.091,5.007 -4.099,8.739 -0.008,3.334 1.198,6.07 3.618,8.207 2.419,2.14 5.661,3.212 9.726,3.221 4.389,0.01 8.063,-1.161 11.017,-3.512 l 1.075,2.655 7.471,0.017 0.052,-23.199 c 0.011,-4.848 -1.243,-8.587 -3.759,-11.214 -2.519,-2.628 -6.956,-3.949 -13.312,-3.963 z m 7.6,30 c -0.33,0.195 -0.92,0.505 -1.772,0.929 -0.853,0.424 -1.738,0.734 -2.656,0.929 -0.92,0.193 -2.033,0.29 -3.343,0.287 -1.966,-0.004 -3.506,-0.443 -4.618,-1.314 -1.113,-0.873 -1.666,-2.08 -1.663,-3.618 0.007,-3.079 2.467,-4.611 7.382,-4.601 4.916,0.011 6.685,0.006 6.685,0.006 l -0.015,7.382 z m 41.315,-29.3 9.241,0.021 -0.084,37.845 -6.489,-0.014 -1.173,-2.754 c -2.494,1.173 -5.743,3.524 -12.295,3.51 -5.701,-0.013 -13.761,-0.336 -13.723,-17.135 l 0.048,-21.527 9.339,0.021 -0.051,22.806 c -0.013,5.661 2.719,7.772 6.863,7.781 2.883,0.007 5.638,-0.74 8.262,-2.243 l 0.062,-28.311 z m 44.305,1.377 c -2.751,-1.251 -5.502,-1.88 -8.254,-1.887 -3.801,-0.008 -7.539,1 -11.212,3.023 l -1.076,-2.46 -6.586,-0.015 -0.111,49.679 9.436,0.021 0.029,-13.013 c 1.505,0.659 4.534,1.975 8.154,1.983 6.096,0.014 10.833,-1.728 14.215,-5.226 3.385,-3.498 5.083,-8.296 5.097,-14.391 0.011,-4.719 -0.914,-8.538 -2.776,-11.458 -1.863,-2.918 -4.166,-5.005 -6.916,-6.256 z m -3.061,27.173 c -2.066,1.863 -4.772,2.792 -8.114,2.784 -2.425,-0.005 -4.587,-0.633 -6.484,-1.883 l 0.047,-21.135 c 2.098,-0.912 4.36,-1.367 6.786,-1.362 7.274,0.017 10.902,4.219 10.884,12.608 -0.01,4.129 -1.049,7.124 -3.119,8.988 z m 53.325,-12.021 -0.048,21.43 -9.437,-0.021 0.051,-22.708 c 0.005,-2.293 -0.45,-4.145 -1.363,-5.557 -0.917,-1.411 -2.717,-2.12 -5.402,-2.125 -2.427,-0.005 -5.408,0.676 -8.949,2.044 l -0.063,28.311 -9.437,-0.021 0.111,-49.608 9.436,0.021 -0.03,13.827 c 3.935,-1.628 7.736,-2.441 11.406,-2.433 5.636,0.012 13.762,0.659 13.725,16.84 z m 92.456,-16.111 9.437,0.021 -0.084,37.747 -9.437,-0.021 0.084,-37.747 z m 46.696,29.103 2.643,6.102 c -1.97,1.11 -4.085,1.99 -6.347,2.639 -2.263,0.649 -4.969,0.972 -8.113,0.965 -5.898,-0.013 -10.629,-1.825 -14.192,-5.438 -3.564,-3.611 -5.337,-8.368 -5.324,-14.266 0.014,-6.095 1.793,-10.891 5.339,-14.389 3.547,-3.497 8.302,-5.241 14.266,-5.228 3.014,0.006 5.586,0.307 7.715,0.901 2.127,0.595 4.371,1.453 6.729,2.571 l -2.67,6.187 c -2.356,-0.792 -4.208,-1.369 -5.548,-1.732 -1.345,-0.363 -2.9,-0.547 -4.67,-0.551 -3.735,-0.008 -6.572,1.1 -8.509,3.323 -1.938,2.224 -2.912,5.203 -2.921,8.938 -0.008,3.605 1,6.54 3.028,8.805 2.024,2.266 4.809,3.403 8.347,3.412 1.77,0.004 3.326,-0.173 4.673,-0.531 1.339,-0.356 3.193,-0.926 5.554,-1.708 z m -53.79,-12.801 -0.048,21.43 -9.338,-0.021 0.05,-22.609 c 0.016,-7.021 -4.21,-7.677 -6.766,-7.683 -2.295,-0.005 -5.344,0.676 -9.146,2.044 l -0.062,28.212 -9.339,-0.021 0.084,-37.747 6.683,0.015 1.175,2.755 c 4.462,-2.152 8.818,-3.225 13.081,-3.215 4.405,0.01 13.663,0.163 13.626,16.84 z m -59.894,-17.042 c -5.898,-0.013 -10.62,1.731 -14.167,5.227 -3.545,3.499 -5.327,8.294 -5.341,14.389 -0.009,3.801 0.784,7.178 2.385,10.131 1.6,2.953 3.854,5.268 6.769,6.946 2.913,1.676 6.301,2.52 10.169,2.528 3.866,0.009 7.274,-0.82 10.228,-2.483 2.955,-1.665 5.234,-3.969 6.848,-6.915 1.612,-2.946 2.423,-6.351 2.432,-10.218 0.013,-5.963 -1.73,-10.719 -5.228,-14.265 -3.5,-3.546 -8.195,-5.327 -14.095,-5.34 z m 6.866,28.62 c -1.809,2.095 -4.152,3.137 -7.035,3.131 -2.753,-0.006 -5.047,-1.076 -6.874,-3.21 -1.831,-2.133 -2.741,-5.102 -2.732,-8.903 0.008,-3.866 0.949,-6.879 2.821,-9.037 1.872,-2.159 4.15,-3.235 6.84,-3.229 2.752,0.006 5.059,1.077 6.922,3.21 1.862,2.134 2.791,5.167 2.783,9.099 -0.009,3.868 -0.918,6.848 -2.725,8.939 z"}),g("path",{d:"M 53.464,198.261 H 13.619 c 0,-0.001 0,-0.004 0,-0.006 0,-82.727 67.065,-149.791 149.788,-149.791 82.729,0 149.794,67.063 149.794,149.791 0,0.002 0,0.005 0,0.006 h -39.844 c 0.006,-0.435 0.017,-0.869 0.017,-1.306 0,-60.731 -49.234,-109.963 -109.967,-109.963 -60.727,0 -109.959,49.232 -109.959,109.963 -10e-4,0.437 0.011,0.871 0.016,1.306 z m 189.059,0 c 0.019,-0.705 0.053,-1.407 0.053,-2.117 0,-43.723 -35.444,-79.167 -79.167,-79.167 -43.722,0 -79.166,35.445 -79.166,79.167 0,0.71 0.035,1.412 0.054,2.117 h 39.67 c -0.085,-1.047 -0.14,-2.103 -0.14,-3.172 0,-21.861 17.721,-39.584 39.582,-39.584 21.862,0 39.583,17.723 39.583,39.584 0,1.069 -0.055,2.125 -0.139,3.172 h 39.67 z"})],-1),nG=[tG];function rG(e,t,n,r,o,s){return N(),V("svg",{class:wt(e.className),viewBox:"0 0 301.24005 225.44299",stroke:"currentColor",fill:"currentColor","aria-hidden":"true"},nG,2)}var og=Be(eG,[["render",rG]]);const oG=ve({components:{PodloveButton:Vn,FileChooser:yK,CogIcon:J9,ChevronDownIcon:k2,ChevronRightIcon:K9,XIcon:Da,DatabaseIcon:G9,ExternalLinkIcon:P2,CloudIcon:L2,TrashIcon:Z9,ArrowDownIcon:A2,ArrowDownTrayIcon:H9,AuphonicLogo:og,DonePage:XK,WebhookToggle:QK},data(){return{algorithmSettings:{},showImportPage:!1}},setup(){return{state:yt({production:G.auphonic.production,tracks:G.auphonic.tracks,isSaving:G.auphonic.isSaving}),dispatch:it().dispatch}},methods:{saveProduction(){this.dispatch(xx({uuid:this.production.uuid}))},startProduction(){this.dispatch(wh({uuid:this.production.uuid}))},deselectProduction(){this.dispatch(Sx())},addTrack(){this.dispatch(o7())},removeTrack(e){this.dispatch(Tx(e))},updateTrack(e,t,n){this.dispatch(Ox({track:{[e]:t},index:n}))},algorithmSettingsVisible(e){return!0},toggleAlgorithmSettingVisible(e){this.algorithmSettings[e]=!Y.exports.get(this.algorithmSettings,e,!1)},handleSelectForeBackground(e,t){this.updateTrack("fore_background",e.target.value,t)},handleToggleNoiseHum(e,t){this.updateTrack("noise_and_hum_reduction",e.target.checked,t)},handleToggleFiltering(e,t){this.updateTrack("filtering",e.target.checked,t)},handleUpdateIdentifier(e,t){this.updateTrack("identifier_new",e.target.value,t)}},computed:{production(){return this.state.production||{}},isSaving(){return this.state.isSaving},showProcessingScreen(){return[1,4,5,6,7,8,12,13,14].includes(this.production.status)},showUploadScreen(){return this.production.status===0},showTrackEditor(){return[9,10,11].includes(this.production.status)},tracks(){return this.state.tracks||[]},isMultitrack(){return this.state.production&&this.state.production.is_multitrack}}}),iG={class:"pb-5 space-y-4"},sG={class:"space-y-8"},lG={class:"bg-white px-4 sm:px-6"},aG={class:"-ml-4 -mt-4 flex flex-wrap items-center justify-between sm:flex-nowrap"},uG={class:"ml-4 mt-4"},cG={class:"flex items-center"},dG={class:"flex-shrink-0"},fG={class:"ml-4"},pG={class:"text-base font-semibold leading-6 text-gray-900"},hG={class:"text-sm text-gray-500"},mG={class:"ml-4 mt-4 flex items-center space-x-4 text-xs"},vG={key:0,class:"inline-flex items-center animate-pulse text-green-600"},gG={key:0},yG={key:1},bG={class:"space-y-4"},_G={key:0},wG={key:1},SG={class:"rounded-md bg-indigo-50 p-4"},EG={class:"flex"},xG={class:"flex-shrink-0"},$G={class:"ml-3"},CG={class:"text-sm font-medium text-indigo-800"},TG={class:"mt-2 text-sm text-indigo-700"},OG={key:2},AG={key:3},IG={class:"bg-white shadow overflow-hidden rounded-md"},PG={class:"px-6 pt-4 hidden md:block"},kG={class:"md:grid md:grid-cols-3 md:gap-12"},RG={class:"block text-sm font-medium text-gray-700 md:col-span-1"},LG={class:"block text-sm font-medium text-gray-700 mt-5 md:mt-0 md:col-span-1"},NG={class:"block text-sm font-medium text-gray-700 mt-5 md:mt-0 md:col-span-1"},MG=g("div",{class:"block w-8 md:col-span-1"},null,-1),DG={role:"list",class:"divide-y divide-gray-200"},FG={class:"md:grid md:grid-cols-3 md:gap-12"},BG={class:"md:col-span-1"},UG=["for"],jG=["id","value","onInput"],HG={class:"mt-5 md:mt-0 md:col-span-1"},VG={class:"sm:items-baseline"},WG={class:"mt-4 sm:mt-0"},zG={key:0,class:"mt-1 text-sm text-gray-700"},qG={class:"md:col-span-1"},KG={key:0,role:"group",class:"bg-gr"},GG={class:"sm:items-baseline"},XG={class:""},JG={class:"block md:hidden text-sm font-medium text-gray-700 py-2"},YG={class:"max-w-lg relative"},ZG=["title","onClick"],QG={class:"space-y-4"},eX={class:"relative flex items-start"},tX={class:"flex items-center h-5"},nX=["id","checked","onInput"],rX={class:"ml-3 text-sm"},oX=["for"],iX={class:"relative flex items-start"},sX={class:"flex items-center h-5"},lX=["id","checked","onInput"],aX={class:"ml-3 text-sm"},uX=["for"],cX={class:"relative flex justify-start align-middle items-center gap-3"},dX={class:"text-sm"},fX=["for"],pX=["value","onInput","id"],hX={value:"auto"},mX={value:"foreground"},vX={value:"background"},gX={value:"ducking"},yX={value:"unchanged"},bX={class:"bg-gray-50 px-4 py-4 sm:px-6"},_X={key:4,class:"grid grid-cols-1 gap-y-6 gap-x-4 sm:grid-cols-6"},wX={class:"sm:col-span-4"},SX={class:"text-base font-medium text-gray-900"},EX={class:"mt-2"},xX={key:0,class:"mt-1 text-sm text-gray-700"},$X={class:"pt-5"},CX={class:"flex flex-col sm:flex-row gap-4 sm:gap-2 justify-between"},TX={class:"flex justify-end gap-3"},OX=["href"];function AX(e,t,n,r,o,s){var O,S,E,T;const l=X("AuphonicLogo"),a=X("CloudIcon"),c=X("ArrowDownTrayIcon"),f=X("XIcon"),p=X("DatabaseIcon"),h=X("DonePage"),v=X("FileChooser"),y=X("TrashIcon"),_=X("podlove-button"),w=X("WebhookToggle"),I=X("ExternalLinkIcon");return N(),V("form",iG,[g("div",sG,[g("div",lG,[g("div",aG,[g("div",uG,[g("div",cG,[g("div",dG,[q(l,{className:"mx-auto h-12 w-12 text-gray-400"})]),g("div",fG,[g("h3",pG,U((S=(O=e.production)==null?void 0:O.metadata)==null?void 0:S.title),1),g("p",hG,U(new Date(Date.parse((E=e.production)==null?void 0:E.creation_time)).toLocaleString()),1)])])]),g("div",mG,[e.isSaving?(N(),V("span",vG,[q(a,{class:"mr-1 h-4 w-4","aria-hidden":"true"}),Ge(" "+U(e.__("Saving","podlove-podcasting-plugin-for-wordpress")),1)])):qe("",!0),e.production.status!==3?(N(),V("button",{key:1,onClick:t[0]||(t[0]=$=>e.showImportPage=!e.showImportPage),type:"button",class:"relative inline-flex items-center rounded-md bg-white px-3 py-2 font-medium text-gray-500 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50"},[q(c,{class:"-ml-0.5 mr-1.5 h-4 w-4 text-gray-400","aria-hidden":"true"}),e.showImportPage?(N(),V("span",gG,U(e.__("Hide Import","podlove-podcasting-plugin-for-wordpress")),1)):qe("",!0),e.showImportPage?qe("",!0):(N(),V("span",yG,U(e.__("Show Import","podlove-podcasting-plugin-for-wordpress")),1))])):qe("",!0),g("button",{onClick:t[1]||(t[1]=(...$)=>e.deselectProduction&&e.deselectProduction(...$)),type:"button",class:"relative inline-flex items-center rounded-md bg-white px-3 py-2 font-medium text-gray-500 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50"},[q(f,{class:"-ml-0.5 mr-1.5 h-4 w-4 text-gray-400","aria-hidden":"true"}),g("span",null,U(e.__("Deselect Production","podlove-podcasting-plugin-for-wordpress")),1)])])])]),g("div",bG,[e.showUploadScreen?(N(),V("div",_G,U(e.__("Uploading...","podlove-podcasting-plugin-for-wordpress")),1)):qe("",!0),e.showProcessingScreen?(N(),V("div",wG,[g("div",SG,[g("div",EG,[g("div",xG,[q(p,{class:"h-5 w-5 text-indigo-400","aria-hidden":"true"})]),g("div",$G,[g("h3",CG,U(e.production.status_string),1),g("div",TG,[g("p",null,U(e.__("Auphonic is now processing your production. Please wait for it to finish.","podlove-podcasting-plugin-for-wordpress")),1)])])])])])):qe("",!0),e.production.status==3||e.showImportPage?(N(),V("div",OG,[q(h)])):qe("",!0),e.isMultitrack&&e.showTrackEditor?(N(),V("div",AG,[g("div",IG,[g("div",PG,[g("div",kG,[g("div",RG,U(e.__("Track Identifier","podlove-podcasting-plugin-for-wordpress")),1),g("div",LG,U(e.__("Upload Method","podlove-podcasting-plugin-for-wordpress")),1),g("div",NG,U(e.__("Algorithm","podlove-podcasting-plugin-for-wordpress")),1),MG])]),g("ul",DG,[(N(!0),V(Fe,null,Mt(e.tracks,($,P)=>(N(),V("li",{key:`xtrack-${P}`,class:"px-6 py-4"},[g("div",FG,[g("div",BG,[g("label",{for:`track-id-${P}`,class:"block md:hidden text-sm font-medium text-gray-700"},U(e.__("Track Identifier","podlove-podcasting-plugin-for-wordpress")),9,UG),g("input",{id:`track-id-${P}`,type:"text",value:$.identifier_new,onInput:k=>e.handleUpdateIdentifier(k,P),class:"mt-1 max-w-lg block w-full shadow-sm focus:ring-indigo-500 focus:border-indigo-500 sm:max-w-xs sm:text-sm border-gray-300 rounded-md"},null,40,jG)]),g("div",HG,[g("div",VG,[g("div",WG,[q(v,{track_index:P,file_key:`${e.production.uuid}_t${P}`},null,8,["track_index","file_key"]),$.input_file_name?(N(),V("div",zG,U(e.__("Uploaded File:","podlove-podcasting-plugin-for-wordpress"))+" "+U($.input_file_name),1)):qe("",!0)])])]),g("div",qG,[e.algorithmSettingsVisible(P)?(N(),V("div",KG,[g("div",GG,[g("div",XG,[g("div",JG,U(e.__("Algorithm","podlove-podcasting-plugin-for-wordpress")),1),g("div",YG,[g("div",{title:e.__("Remove Track","podlove-podcasting-plugin-for-wordpress"),onClick:k=>e.removeTrack($.identifier),class:"absolute z-10 right-0 top-0 cursor-pointer text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500"},[q(y,{class:"h-6 w-6","aria-hidden":"true"})],8,ZG),g("div",QG,[g("div",eX,[g("div",tX,[g("input",{id:`track_${P}_filtering`,type:"checkbox",class:"focus:ring-indigo-500 h-4 w-4 text-indigo-600 border-gray-300 rounded",checked:$.filtering,onInput:k=>e.handleToggleFiltering(k,P)},null,40,nX)]),g("div",rX,[g("label",{for:`track_${P}_filtering`,class:"text-gray-700"},U(e.__("Filtering","podlove-podcasting-plugin-for-wordpress")),9,oX)])]),g("div",null,[g("div",iX,[g("div",sX,[g("input",{id:`track_${P}_noisehum`,type:"checkbox",class:"focus:ring-indigo-500 h-4 w-4 text-indigo-600 border-gray-300 rounded",checked:$.noise_and_hum_reduction,onInput:k=>e.handleToggleNoiseHum(k,P)},null,40,lX)]),g("div",aX,[g("label",{for:`track_${P}_noisehum`,class:"text-gray-700"},U(e.__("Noise and Hum Reduction","podlove-podcasting-plugin-for-wordpress")),9,uX)])])]),g("div",null,[g("div",cX,[g("div",dX,[g("label",{for:`track_${P}_fgbg`,class:"text-gray-700"},U(e.__("Fore/Background","podlove-podcasting-plugin-for-wordpress")),9,fX)]),g("select",{value:$.fore_background,onInput:k=>e.handleSelectForeBackground(k,P),id:`track_${P}_fgbg`,class:"mt-1 block w-[168px] pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm rounded-md"},[g("option",hX,U(e.__("Auto","podlove-podcasting-plugin-for-wordpress")),1),g("option",mX,U(e.__("Foreground Track","podlove-podcasting-plugin-for-wordpress")),1),g("option",vX,U(e.__("Background Track","podlove-podcasting-plugin-for-wordpress")),1),g("option",gX,U(e.__("Duck this Track","podlove-podcasting-plugin-for-wordpress")),1),g("option",yX,U(e.__("Unchanged (Foreground)","podlove-podcasting-plugin-for-wordpress")),1)],40,pX)])])])])])])])):qe("",!0)])])]))),128))]),g("div",bX,[q(_,{variant:"primary",onClick:e.addTrack},{default:ye(()=>[Ge(U(e.__("Add Track","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["onClick"])])])])):e.showTrackEditor?(N(),V("div",_X,[g("fieldset",wX,[g("legend",SX,U(e.__("Audio Source","podlove-podcasting-plugin-for-wordpress")),1),g("div",EX,[q(v,{file_key:e.production.uuid},null,8,["file_key"]),e.production.input_file?(N(),V("div",xX,U(e.__("Uploaded File:","podlove-podcasting-plugin-for-wordpress"))+" "+U(e.production.input_file),1)):qe("",!0)])])])):qe("",!0)])]),g("div",$X,[g("div",CX,[q(w),g("div",TX,[g("a",{href:(T=e.production)==null?void 0:T.edit_page,target:"_blank",class:"inline-flex items-center rounded border border-gray-300 bg-white px-2.5 py-1.5 text-xs font-medium text-gray-500 shadow-sm hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2"},[Ge(U(e.__("Edit in Auphonic","podlove-podcasting-plugin-for-wordpress"))+" ",1),q(I,{class:"ml-1 -mr-0.5 h-4 w-4","aria-hidden":"true"})],8,OX),q(_,{variant:e.isSaving?"secondary-disabled":"secondary",onClick:e.saveProduction},{default:ye(()=>[Ge(U(e.__("Save Production","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["variant","onClick"]),q(_,{variant:"primary",onClick:e.startProduction},{default:ye(()=>[Ge(U(e.__("Start Production","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["onClick"])])])])])}var IX=Be(oG,[["render",AX]]);const PX=ve({components:{Listbox:Vv,ListboxButton:zv,ListboxLabel:Wv,ListboxOption:Kv,ListboxOptions:qv,CheckIcon:Kd,SelectorIcon:Gd},setup(){return{state:yt({productions:G.auphonic.productions,production:G.auphonic.production}),dispatch:it().dispatch}},methods:{setProduction(e){this.dispatch(ds(e))}},computed:{productions(){return this.state.productions.map(e=>{const t=e.creation_time.split("T")[0],n=e.metadata.title;return{...e,_select:{name:n,date:t}}})},currentProduction(){return this.state.production}}}),kX={class:"mt-1 relative"},RX={class:"w-full inline-flex truncate"},LX={key:0,class:"truncate"},NX={key:1,class:"truncate"},MX={class:"absolute inset-y-0 right-0 flex items-center pr-2 pointer-events-none"},DX={class:"flex justify-between"},FX={class:wt(["font-normal","truncate"])};function BX(e,t,n,r,o,s){const l=X("ListboxLabel"),a=X("SelectorIcon"),c=X("ListboxButton"),f=X("ListboxOption"),p=X("ListboxOptions"),h=X("Listbox");return N(),bt(h,{as:"div","onUpdate:modelValue":e.setProduction,value:e.currentProduction},{default:ye(()=>[q(l,{class:"block text-sm font-medium text-gray-600 sr-only"},{default:ye(()=>[Ge(U(e.__("Select Existing Production","podlove-podcasting-plugin-for-wordpress")),1)]),_:1}),g("div",kX,[q(c,{class:"relative w-full bg-white border border-gray-300 rounded-md shadow-sm pl-3 pr-10 py-2 text-left cursor-default focus:outline-none focus:ring-1 focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"},{default:ye(()=>[g("span",RX,[e.currentProduction?(N(),V("span",LX,U(e.currentProduction.metadata.title),1)):(N(),V("span",NX,"\xA0"))]),g("span",MX,[q(a,{class:"h-5 w-5 text-gray-400","aria-hidden":"true"})])]),_:1}),q(Ei,{"leave-active-class":"transition ease-in duration-100","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:ye(()=>[q(p,{class:"absolute z-10 mt-1 w-full bg-white shadow-lg max-h-36 rounded-md py-1 text-base ring-1 ring-black ring-opacity-5 overflow-auto focus:outline-none sm:text-sm"},{default:ye(()=>[(N(!0),V(Fe,null,Mt(e.productions,v=>(N(),bt(f,{as:"template",key:v._select.date,value:v},{default:ye(({active:y})=>[g("li",{class:wt([y?"text-white bg-indigo-600":"text-gray-900","cursor-default select-none relative py-2 pl-3 pr-9"])},[g("div",DX,[g("span",FX,[g("span",{class:wt([y?"text-indigo-200":"text-gray-500","ml-2 truncate"])},U(v._select.date),3),Ge(" "+U(v._select.name),1)]),g("span",{class:wt([y?"text-indigo-200":"text-gray-500","ml-2 truncate flex-shrink-0"])},U(v.status_string),3)])],2)]),_:2},1032,["value"]))),128))]),_:1})]),_:1})])]),_:1},8,["onUpdate:modelValue","value"])}var UX=Be(PX,[["render",BX]]);const jX=ve({components:{Listbox:Vv,ListboxButton:zv,ListboxLabel:Wv,ListboxOption:Kv,ListboxOptions:qv,CheckIcon:Kd,SelectorIcon:Gd},setup(){return{state:yt({presets:G.auphonic.presets,currentPreset:G.auphonic.preset}),dispatch:it().dispatch}},methods:{setPreset(e){this.dispatch(bv(e.uuid))}},computed:{presets(){return this.state.presets.map(e=>{const t=e.creation_time.split("T")[0],n=e.preset_name,r=e.is_multitrack;return{...e,_select:{name:n,date:t,is_multitrack:r}}}).toSorted((e,t)=>{const n=e._select.name.toUpperCase(),r=t._select.name.toUpperCase();return n<r?-1:n>r?1:0})},currentPreset(){const e=this.state.currentPreset;return this.presets.find(t=>t.uuid===e)}}}),HX={class:"mt-1 relative"},VX={class:"w-full inline-flex truncate"},WX={key:0,class:"truncate"},zX={key:1,class:"truncate"},qX={class:"absolute inset-y-0 right-0 flex items-center pr-2 pointer-events-none"},KX={class:"flex"},GX={class:wt(["font-normal","truncate"])};function XX(e,t,n,r,o,s){const l=X("ListboxLabel"),a=X("SelectorIcon"),c=X("ListboxButton"),f=X("ListboxOption"),p=X("ListboxOptions"),h=X("Listbox");return N(),bt(h,{as:"div","onUpdate:modelValue":e.setPreset,value:e.currentPreset},{default:ye(()=>[q(l,{class:"block text-sm font-medium text-gray-600 sr-only"},{default:ye(()=>[Ge(U(e.__("Select Preset","podlove-podcasting-plugin-for-wordpress")),1)]),_:1}),g("div",HX,[q(c,{class:"relative w-full bg-white border border-gray-300 rounded-md shadow-sm pl-3 pr-10 py-2 text-left cursor-default focus:outline-none focus:ring-1 focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"},{default:ye(()=>[g("span",VX,[e.currentPreset?(N(),V("span",WX,U(e.currentPreset._select.name),1)):(N(),V("span",zX,"\xA0"))]),g("span",qX,[q(a,{class:"h-5 w-5 text-gray-400","aria-hidden":"true"})])]),_:1}),q(Ei,{"leave-active-class":"transition ease-in duration-100","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:ye(()=>[q(p,{class:"absolute z-10 mt-1 w-full bg-white shadow-lg max-h-36 rounded-md py-1 text-base ring-1 ring-black ring-opacity-5 overflow-auto focus:outline-none sm:text-sm"},{default:ye(()=>[(N(!0),V(Fe,null,Mt(e.presets,v=>(N(),bt(f,{as:"template",key:v._select.date,value:v},{default:ye(({active:y})=>[g("li",{class:wt([y?"text-white bg-indigo-600":"text-gray-900","cursor-default select-none relative py-2 pl-3 pr-9"])},[g("div",KX,[g("span",GX,U(v._select.name),1),v._select.is_multitrack?(N(),V("span",{key:0,class:wt([y?"text-indigo-200":"text-gray-500","ml-2 truncate"])},U(e.__("Multitrack","podlove-podcasting-plugin-for-wordpress")),3)):qe("",!0)])],2)]),_:2},1032,["value"]))),128))]),_:1})]),_:1})])]),_:1},8,["onUpdate:modelValue","value"])}var JX=Be(jX,[["render",XX]]);const YX=ve({components:{Module:Nn,PodloveButton:Vn,PlusSmIcon:Lv,RefreshIcon:I2,SelectProduction:UX,SelectPreset:JX,AuphonicLogo:og},data(){return{}},setup(){return{state:yt({presetUUID:G.auphonic.preset,presets:G.auphonic.presets,isInitializing:G.auphonic.isInitializing}),dispatch:it().dispatch}},methods:{handleCreateProduction(){switch(this.buttonState){case"single":this.createProduction();break;case"multi":this.createMultitrackProduction();break}},createProduction(){this.dispatch(QD())},createMultitrackProduction(){this.dispatch(e7())}},computed:{preset(){return this.state.presets.find(e=>e.uuid===this.state.presetUUID)},isInitializing(){return this.state.isInitializing},buttonState(){return this.preset?this.preset.is_multitrack?"multi":"single":"idle"}}}),ZX={class:"m-6 text-center max-w-5xl"},QX={key:0,class:"w-full flex justify-center"},eJ={class:"animate-pulse mt-4 flex space-x-4"},tJ={class:"mt-1 text-sm text-gray-500"},nJ={class:"sm:divide-x sm:divide-gray-200 mt-6 py-6 gap-8 sm:gap-0 grid grid-cols-1 sm:grid-cols-2"},rJ={class:"flow-root sm:px-6"},oJ={class:"relative -m-2 p-2 flex items-center justify-around space-x-4 rounded-xl hover:bg-gray-50 focus-within:ring-2 focus-within:ring-indigo-500"},iJ={class:"text-sm font-medium text-gray-900"},sJ={class:"mt-2 sm:mt-8 flex justify-center align-middle content-center items-center gap-3"},lJ={class:"w-full max-w-md"},aJ={class:"mt-10 flex flex-col justify-center align-middle content-center items-center gap-3"},uJ={class:"flow-root sm:px-6"},cJ={class:"relative -m-2 p-2 flex items-center justify-around space-x-4 rounded-xl hover:bg-gray-50 focus-within:ring-2 focus-within:ring-indigo-500"},dJ={class:"text-sm font-medium text-gray-900"},fJ={class:"mt-2 sm:mt-8 flex justify-center align-middle content-center items-center gap-3"},pJ={class:"w-full max-w-md"};function hJ(e,t,n,r,o,s){const l=X("AuphonicLogo"),a=X("RefreshIcon"),c=X("SelectPreset"),f=X("plus-sm-icon"),p=X("podlove-button"),h=X("SelectProduction");return N(),V("div",null,[g("div",ZX,[q(l,{className:"mx-auto h-16 w-16 text-gray-400"}),e.isInitializing?(N(),V("div",QX,[g("div",eJ,[q(a,{class:"animate-spin h-5 w-5 mr-3"}),Ge(" "+U(e.__("Loading...","podlove-podcasting-plugin-for-wordpress")),1)])])):qe("",!0),g("div",{class:wt({"text-left":!0,"opacity-0":e.isInitializing})},[g("p",tJ,U(e.__("Manage your audio post production with Auphonic. Get started by selecting an existing production or create a new one from an Auphonic preset.","podlove-podcasting-plugin-for-wordpress")),1),g("div",nJ,[g("div",rJ,[g("div",oJ,[g("div",null,[g("h3",iJ,U(e.__("Create New Production from Preset","podlove-podcasting-plugin-for-wordpress")),1)])]),g("div",sJ,[g("div",lJ,[q(c)])]),g("div",aJ,[q(p,{disabled:e.buttonState=="idle",variant:e.buttonState=="idle"?"primary-disabled":"primary",onClick:e.handleCreateProduction},{default:ye(()=>[q(f,{class:"-ml-0.5 mr-2 h-4 w-4","aria-hidden":"true"}),Ge(" "+U(e.buttonState=="multi"?e.__("Create Multitrack Production","podlove-podcasting-plugin-for-wordpress"):e.__("Create Production","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["disabled","variant","onClick"])])]),g("div",uJ,[g("div",cJ,[g("div",null,[g("h3",dJ,U(e.__("Select Existing Production","podlove-podcasting-plugin-for-wordpress")),1)])]),g("div",fJ,[g("div",pJ,[q(h)])])])])],2)])])}var mJ=Be(YX,[["render",hJ]]);const vJ=ve({components:{Module:Nn,ManageProductionForm:IX,StartScreen:mJ,AuphonicLogo:og},setup(){return{state:yt({productionId:G.auphonic.productionId,isInitializing:G.auphonic.isInitializing}),dispatch:it().dispatch}},computed:{productionId(){return this.state.productionId||""},isInitializing(){return this.state.isInitializing},isProductionSelected(){return!!this.productionId}},created(){this.dispatch(JD())}}),gJ={key:0},yJ={key:1,class:"m-7"};function bJ(e,t,n,r,o,s){const l=X("StartScreen"),a=X("ManageProductionForm"),c=X("module");return N(),bt(c,{name:"auphonic",title:"Auphonic"},{default:ye(()=>[e.isProductionSelected?qe("",!0):(N(),V("div",gJ,[q(l)])),e.productionId?(N(),V("div",yJ,[q(a)])):qe("",!0)]),_:1})}var _J=Be(vJ,[["render",bJ]]);const wJ=ve({components:{ArrowUpIcon:W9,ArrowDownIcon:A2,XIcon:Da,UserCircleIcon:F2,PencilIcon:D2},props:{data:{type:Object,default:()=>({id:null,contributor_id:null,role_id:null,group_id:null,position:null,comment:null,identifier:null,avatar:null,name:null,mail:null,department:null,organisation:null,jobtitle:null,gender:null,nickname:null,count:null})},first:{type:Boolean,default:!1},last:{type:Boolean,default:!1}},setup(){return{dispatch:it().dispatch,state:yt({roles:G.contributors.roles,groups:G.contributors.groups,baseUrl:G.runtime.baseUrl})}},computed:{editLink(){return`${this.state.baseUrl}/wp-admin/admin.php?page=podlove_contributor_settings&action=edit&contributor=${this.data.contributor_id}`}},methods:{moveContributionUp(){this.dispatch(dD(this.data))},moveContributionDown(){this.dispatch(fD(this.data))},deleteContribution(){this.dispatch(pD(this.data))},updateRole(e){const t=Y.exports.get(e,["target","value"]);this.dispatch(Tp({...this.data,role_id:t}))},updateGroup(e){const t=Y.exports.get(e,["target","value"]);console.log(t),this.dispatch(Tp({...this.data,group_id:t}))},updateComment(e){const t=Y.exports.get(e,["target","value"]);this.dispatch(Tp({...this.data,comment:t}))}}}),SJ={class:"block hover:bg-gray-50"},EJ={class:"flex items-center px-4 py-4 sm:px-6"},xJ={class:"flex min-w-0 flex-1 items-center"},$J={class:"flex-shrink-0"},CJ=["src","alt"],TJ={class:"min-w-0 flex-1 px-2 md:grid md:gap-4"},OJ={class:"flex-shrink-0"},AJ={class:"truncate text-sm font-medium text-gray-900"},IJ={class:"flex items-center text-sm text-gray-500"},PJ={class:"truncate"},kJ={class:"min-w-0 flex-1 px-4 md:grid md:gap-4"},RJ={for:"location",class:"block text-sm font-medium leading-6 text-gray-900"},LJ=["value","selected"],NJ={class:"min-w-0 flex-1 px-4 md:grid md:gap-4"},MJ={for:"location",class:"block text-sm font-medium leading-6 text-gray-900"},DJ=["value","selected"],FJ={class:"min-w-0 flex-1 px-4 md:grid md:gap-4"},BJ={for:"email",class:"block text-sm font-medium leading-6 text-gray-900"},UJ={class:"mt-2"},jJ=["value","placeholder"],HJ={class:"flex space-x-2 justify-end mt-[30px]"},VJ=["disabled"],WJ=["disabled"],zJ=["href"];function qJ(e,t,n,r,o,s){const l=X("UserCircleIcon"),a=X("arrow-up-icon"),c=X("arrow-down-icon"),f=X("pencil-icon"),p=X("x-icon");return N(),V("div",SJ,[g("div",EJ,[g("div",xJ,[g("div",$J,[e.data.avatar_url?(N(),V("img",{key:0,class:"h-12 w-12 rounded-full",src:e.data.avatar_url,alt:e.data.name,onError:t[0]||(t[0]=h=>e.data.avatar_url="")},null,40,CJ)):qe("",!0),e.data.avatar_url?qe("",!0):(N(),bt(l,{key:1,class:"h-12 w-12 flex-shrink-0 rounded-full text-gray-500"}))]),g("div",TJ,[g("div",OJ,[g("p",AJ,U(e.data.realname),1),g("p",IJ,[g("span",PJ,U(e.data.nickname),1)])])]),g("div",kJ,[g("div",null,[g("label",RJ,U(e.__("Role","podlove-podcasting-plugin-for-wordpress")),1),g("select",{class:"mt-2 block w-full rounded-md border-0 py-1.5 pl-3 pr-10 text-gray-900 ring-1 ring-inset ring-gray-300 focus:ring-2 focus:ring-indigo-600 sm:text-sm sm:leading-6",onChange:t[1]||(t[1]=h=>e.updateRole(h))},[(N(!0),V(Fe,null,Mt(e.state.roles,h=>(N(),V("option",{value:h.id,selected:h.id===e.data.role_id},U(h.title),9,LJ))),256))],32)])]),g("div",NJ,[g("div",null,[g("label",MJ,U(e.__("Group","podlove-podcasting-plugin-for-wordpress")),1),g("select",{class:"mt-2 block w-full rounded-md border-0 py-1.5 pl-3 pr-10 text-gray-900 ring-1 ring-inset ring-gray-300 focus:ring-2 focus:ring-indigo-600 sm:text-sm sm:leading-6",onChange:t[2]||(t[2]=h=>e.updateGroup(h))},[(N(!0),V(Fe,null,Mt(e.state.groups,h=>(N(),V("option",{value:h.id,selected:h.id===e.data.group_id},U(h.title),9,DJ))),256))],32)])]),g("div",FJ,[g("div",null,[g("label",BJ,U(e.__("Comment","podlove-podcasting-plugin-for-wordpress")),1),g("div",UJ,[g("input",{type:"text",value:e.data.comment,onInput:t[3]||(t[3]=h=>e.updateComment(h)),class:"block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6",placeholder:e.__("Comment","podlove-podcasting-plugin-for-wordpress")},null,40,jJ)])])]),g("div",HJ,[g("button",{onClick:t[4]||(t[4]=h=>e.moveContributionUp()),disabled:e.first,class:wt({"text-indigo-600":!e.first,"text-gray-500":e.first})},[q(a,{class:"w-5 h-5"})],10,VJ),g("button",{onClick:t[5]||(t[5]=h=>e.moveContributionDown()),disabled:e.last,class:wt({"text-indigo-600":!e.last,"text-gray-500":e.last})},[q(c,{class:"w-5 h-5"})],10,WJ),g("a",{href:e.editLink,target:"_blank",class:"text-gray-400"},[q(f,{class:"w-5 h-5"})],8,zJ),g("button",{class:"text-red-600",onClick:t[6]||(t[6]=h=>e.deleteContribution())},[q(p,{class:"w-5 h-5"})])])])])])}var KJ=Be(wJ,[["render",qJ]]),Qn="top",Br="bottom",Ur="right",er="left",ig="auto",Wa=[Qn,Br,Ur,er],tl="start",wa="end",GJ="clippingParents",H$="viewport",Ml="popper",XJ="reference",G1=Wa.reduce(function(e,t){return e.concat([t+"-"+tl,t+"-"+wa])},[]),V$=[].concat(Wa,[ig]).reduce(function(e,t){return e.concat([t,t+"-"+tl,t+"-"+wa])},[]),JJ="beforeRead",YJ="read",ZJ="afterRead",QJ="beforeMain",eY="main",tY="afterMain",nY="beforeWrite",rY="write",oY="afterWrite",iY=[JJ,YJ,ZJ,QJ,eY,tY,nY,rY,oY];function So(e){return e?(e.nodeName||"").toLowerCase():null}function ao(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function nl(e){var t=ao(e).Element;return e instanceof t||e instanceof Element}function Mr(e){var t=ao(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function sg(e){if(typeof ShadowRoot=="undefined")return!1;var t=ao(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function sY(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},s=t.elements[n];!Mr(s)||!So(s)||(Object.assign(s.style,r),Object.keys(o).forEach(function(l){var a=o[l];a===!1?s.removeAttribute(l):s.setAttribute(l,a===!0?"":a)}))})}function lY(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],s=t.attributes[r]||{},l=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=l.reduce(function(c,f){return c[f]="",c},{});!Mr(o)||!So(o)||(Object.assign(o.style,a),Object.keys(s).forEach(function(c){o.removeAttribute(c)}))})}}var aY={name:"applyStyles",enabled:!0,phase:"write",fn:sY,effect:lY,requires:["computeStyles"]};function bo(e){return e.split("-")[0]}var ts=Math.max,qc=Math.min,rl=Math.round;function ol(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),r=1,o=1;if(Mr(e)&&t){var s=e.offsetHeight,l=e.offsetWidth;l>0&&(r=rl(n.width)/l||1),s>0&&(o=rl(n.height)/s||1)}return{width:n.width/r,height:n.height/o,top:n.top/o,right:n.right/r,bottom:n.bottom/o,left:n.left/r,x:n.left/r,y:n.top/o}}function lg(e){var t=ol(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function W$(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&sg(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function zo(e){return ao(e).getComputedStyle(e)}function uY(e){return["table","td","th"].indexOf(So(e))>=0}function Ci(e){return((nl(e)?e.ownerDocument:e.document)||window.document).documentElement}function Xd(e){return So(e)==="html"?e:e.assignedSlot||e.parentNode||(sg(e)?e.host:null)||Ci(e)}function X1(e){return!Mr(e)||zo(e).position==="fixed"?null:e.offsetParent}function cY(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&Mr(e)){var r=zo(e);if(r.position==="fixed")return null}var o=Xd(e);for(sg(o)&&(o=o.host);Mr(o)&&["html","body"].indexOf(So(o))<0;){var s=zo(o);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return o;o=o.parentNode}return null}function za(e){for(var t=ao(e),n=X1(e);n&&uY(n)&&zo(n).position==="static";)n=X1(n);return n&&(So(n)==="html"||So(n)==="body"&&zo(n).position==="static")?t:n||cY(e)||t}function ag(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ea(e,t,n){return ts(e,qc(t,n))}function dY(e,t,n){var r=ea(e,t,n);return r>n?n:r}function z$(){return{top:0,right:0,bottom:0,left:0}}function q$(e){return Object.assign({},z$(),e)}function K$(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var fY=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,q$(typeof t!="number"?t:K$(t,Wa))};function pY(e){var t,n=e.state,r=e.name,o=e.options,s=n.elements.arrow,l=n.modifiersData.popperOffsets,a=bo(n.placement),c=ag(a),f=[er,Ur].indexOf(a)>=0,p=f?"height":"width";if(!(!s||!l)){var h=fY(o.padding,n),v=lg(s),y=c==="y"?Qn:er,_=c==="y"?Br:Ur,w=n.rects.reference[p]+n.rects.reference[c]-l[c]-n.rects.popper[p],I=l[c]-n.rects.reference[c],O=za(s),S=O?c==="y"?O.clientHeight||0:O.clientWidth||0:0,E=w/2-I/2,T=h[y],$=S-v[p]-h[_],P=S/2-v[p]/2+E,k=ea(T,P,$),A=c;n.modifiersData[r]=(t={},t[A]=k,t.centerOffset=k-P,t)}}function hY(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||!W$(t.elements.popper,o)||(t.elements.arrow=o))}var mY={name:"arrow",enabled:!0,phase:"main",fn:pY,effect:hY,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function il(e){return e.split("-")[1]}var vY={top:"auto",right:"auto",bottom:"auto",left:"auto"};function gY(e){var t=e.x,n=e.y,r=window,o=r.devicePixelRatio||1;return{x:rl(t*o)/o||0,y:rl(n*o)/o||0}}function J1(e){var t,n=e.popper,r=e.popperRect,o=e.placement,s=e.variation,l=e.offsets,a=e.position,c=e.gpuAcceleration,f=e.adaptive,p=e.roundOffsets,h=e.isFixed,v=l.x,y=v===void 0?0:v,_=l.y,w=_===void 0?0:_,I=typeof p=="function"?p({x:y,y:w}):{x:y,y:w};y=I.x,w=I.y;var O=l.hasOwnProperty("x"),S=l.hasOwnProperty("y"),E=er,T=Qn,$=window;if(f){var P=za(n),k="clientHeight",A="clientWidth";if(P===ao(n)&&(P=Ci(n),zo(P).position!=="static"&&a==="absolute"&&(k="scrollHeight",A="scrollWidth")),P=P,o===Qn||(o===er||o===Ur)&&s===wa){T=Br;var H=h&&P===$&&$.visualViewport?$.visualViewport.height:P[k];w-=H-r.height,w*=c?1:-1}if(o===er||(o===Qn||o===Br)&&s===wa){E=Ur;var D=h&&P===$&&$.visualViewport?$.visualViewport.width:P[A];y-=D-r.width,y*=c?1:-1}}var F=Object.assign({position:a},f&&vY),z=p===!0?gY({x:y,y:w}):{x:y,y:w};if(y=z.x,w=z.y,c){var K;return Object.assign({},F,(K={},K[T]=S?"0":"",K[E]=O?"0":"",K.transform=($.devicePixelRatio||1)<=1?"translate("+y+"px, "+w+"px)":"translate3d("+y+"px, "+w+"px, 0)",K))}return Object.assign({},F,(t={},t[T]=S?w+"px":"",t[E]=O?y+"px":"",t.transform="",t))}function yY(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,s=n.adaptive,l=s===void 0?!0:s,a=n.roundOffsets,c=a===void 0?!0:a,f={placement:bo(t.placement),variation:il(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,J1(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,J1(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var bY={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:yY,data:{}},ec={passive:!0};function _Y(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,s=o===void 0?!0:o,l=r.resize,a=l===void 0?!0:l,c=ao(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&f.forEach(function(p){p.addEventListener("scroll",n.update,ec)}),a&&c.addEventListener("resize",n.update,ec),function(){s&&f.forEach(function(p){p.removeEventListener("scroll",n.update,ec)}),a&&c.removeEventListener("resize",n.update,ec)}}var wY={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:_Y,data:{}},SY={left:"right",right:"left",bottom:"top",top:"bottom"};function hc(e){return e.replace(/left|right|bottom|top/g,function(t){return SY[t]})}var EY={start:"end",end:"start"};function Y1(e){return e.replace(/start|end/g,function(t){return EY[t]})}function ug(e){var t=ao(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function cg(e){return ol(Ci(e)).left+ug(e).scrollLeft}function xY(e){var t=ao(e),n=Ci(e),r=t.visualViewport,o=n.clientWidth,s=n.clientHeight,l=0,a=0;return r&&(o=r.width,s=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(l=r.offsetLeft,a=r.offsetTop)),{width:o,height:s,x:l+cg(e),y:a}}function $Y(e){var t,n=Ci(e),r=ug(e),o=(t=e.ownerDocument)==null?void 0:t.body,s=ts(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),l=ts(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+cg(e),c=-r.scrollTop;return zo(o||n).direction==="rtl"&&(a+=ts(n.clientWidth,o?o.clientWidth:0)-s),{width:s,height:l,x:a,y:c}}function dg(e){var t=zo(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function G$(e){return["html","body","#document"].indexOf(So(e))>=0?e.ownerDocument.body:Mr(e)&&dg(e)?e:G$(Xd(e))}function ta(e,t){var n;t===void 0&&(t=[]);var r=G$(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),s=ao(r),l=o?[s].concat(s.visualViewport||[],dg(r)?r:[]):r,a=t.concat(l);return o?a:a.concat(ta(Xd(l)))}function Hh(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function CY(e){var t=ol(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function Z1(e,t){return t===H$?Hh(xY(e)):nl(t)?CY(t):Hh($Y(Ci(e)))}function TY(e){var t=ta(Xd(e)),n=["absolute","fixed"].indexOf(zo(e).position)>=0,r=n&&Mr(e)?za(e):e;return nl(r)?t.filter(function(o){return nl(o)&&W$(o,r)&&So(o)!=="body"}):[]}function OY(e,t,n){var r=t==="clippingParents"?TY(e):[].concat(t),o=[].concat(r,[n]),s=o[0],l=o.reduce(function(a,c){var f=Z1(e,c);return a.top=ts(f.top,a.top),a.right=qc(f.right,a.right),a.bottom=qc(f.bottom,a.bottom),a.left=ts(f.left,a.left),a},Z1(e,s));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function X$(e){var t=e.reference,n=e.element,r=e.placement,o=r?bo(r):null,s=r?il(r):null,l=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,c;switch(o){case Qn:c={x:l,y:t.y-n.height};break;case Br:c={x:l,y:t.y+t.height};break;case Ur:c={x:t.x+t.width,y:a};break;case er:c={x:t.x-n.width,y:a};break;default:c={x:t.x,y:t.y}}var f=o?ag(o):null;if(f!=null){var p=f==="y"?"height":"width";switch(s){case tl:c[f]=c[f]-(t[p]/2-n[p]/2);break;case wa:c[f]=c[f]+(t[p]/2-n[p]/2);break}}return c}function Sa(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,s=n.boundary,l=s===void 0?GJ:s,a=n.rootBoundary,c=a===void 0?H$:a,f=n.elementContext,p=f===void 0?Ml:f,h=n.altBoundary,v=h===void 0?!1:h,y=n.padding,_=y===void 0?0:y,w=q$(typeof _!="number"?_:K$(_,Wa)),I=p===Ml?XJ:Ml,O=e.rects.popper,S=e.elements[v?I:p],E=OY(nl(S)?S:S.contextElement||Ci(e.elements.popper),l,c),T=ol(e.elements.reference),$=X$({reference:T,element:O,strategy:"absolute",placement:o}),P=Hh(Object.assign({},O,$)),k=p===Ml?P:T,A={top:E.top-k.top+w.top,bottom:k.bottom-E.bottom+w.bottom,left:E.left-k.left+w.left,right:k.right-E.right+w.right},H=e.modifiersData.offset;if(p===Ml&&H){var D=H[o];Object.keys(A).forEach(function(F){var z=[Ur,Br].indexOf(F)>=0?1:-1,K=[Qn,Br].indexOf(F)>=0?"y":"x";A[F]+=D[K]*z})}return A}function AY(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,s=n.rootBoundary,l=n.padding,a=n.flipVariations,c=n.allowedAutoPlacements,f=c===void 0?V$:c,p=il(r),h=p?a?G1:G1.filter(function(_){return il(_)===p}):Wa,v=h.filter(function(_){return f.indexOf(_)>=0});v.length===0&&(v=h);var y=v.reduce(function(_,w){return _[w]=Sa(e,{placement:w,boundary:o,rootBoundary:s,padding:l})[bo(w)],_},{});return Object.keys(y).sort(function(_,w){return y[_]-y[w]})}function IY(e){if(bo(e)===ig)return[];var t=hc(e);return[Y1(e),t,Y1(t)]}function PY(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,s=o===void 0?!0:o,l=n.altAxis,a=l===void 0?!0:l,c=n.fallbackPlacements,f=n.padding,p=n.boundary,h=n.rootBoundary,v=n.altBoundary,y=n.flipVariations,_=y===void 0?!0:y,w=n.allowedAutoPlacements,I=t.options.placement,O=bo(I),S=O===I,E=c||(S||!_?[hc(I)]:IY(I)),T=[I].concat(E).reduce(function(ae,fe){return ae.concat(bo(fe)===ig?AY(t,{placement:fe,boundary:p,rootBoundary:h,padding:f,flipVariations:_,allowedAutoPlacements:w}):fe)},[]),$=t.rects.reference,P=t.rects.popper,k=new Map,A=!0,H=T[0],D=0;D<T.length;D++){var F=T[D],z=bo(F),K=il(F)===tl,te=[Qn,Br].indexOf(z)>=0,we=te?"width":"height",be=Sa(t,{placement:F,boundary:p,rootBoundary:h,altBoundary:v,padding:f}),Oe=te?K?Ur:er:K?Br:Qn;$[we]>P[we]&&(Oe=hc(Oe));var Ae=hc(Oe),Ye=[];if(s&&Ye.push(be[z]<=0),a&&Ye.push(be[Oe]<=0,be[Ae]<=0),Ye.every(function(ae){return ae})){H=F,A=!1;break}k.set(F,Ye)}if(A)for(var ft=_?3:1,Le=function(fe){var Se=T.find(function(He){var De=k.get(He);if(De)return De.slice(0,fe).every(function(tt){return tt})});if(Se)return H=Se,"break"},Ke=ft;Ke>0;Ke--){var Q=Le(Ke);if(Q==="break")break}t.placement!==H&&(t.modifiersData[r]._skip=!0,t.placement=H,t.reset=!0)}}var kY={name:"flip",enabled:!0,phase:"main",fn:PY,requiresIfExists:["offset"],data:{_skip:!1}};function Q1(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function e_(e){return[Qn,Ur,Br,er].some(function(t){return e[t]>=0})}function RY(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,s=t.modifiersData.preventOverflow,l=Sa(t,{elementContext:"reference"}),a=Sa(t,{altBoundary:!0}),c=Q1(l,r),f=Q1(a,o,s),p=e_(c),h=e_(f);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:f,isReferenceHidden:p,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":h})}var LY={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:RY};function NY(e,t,n){var r=bo(e),o=[er,Qn].indexOf(r)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,l=s[0],a=s[1];return l=l||0,a=(a||0)*o,[er,Ur].indexOf(r)>=0?{x:a,y:l}:{x:l,y:a}}function MY(e){var t=e.state,n=e.options,r=e.name,o=n.offset,s=o===void 0?[0,0]:o,l=V$.reduce(function(p,h){return p[h]=NY(h,t.rects,s),p},{}),a=l[t.placement],c=a.x,f=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=f),t.modifiersData[r]=l}var DY={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:MY};function FY(e){var t=e.state,n=e.name;t.modifiersData[n]=X$({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var BY={name:"popperOffsets",enabled:!0,phase:"read",fn:FY,data:{}};function UY(e){return e==="x"?"y":"x"}function jY(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,s=o===void 0?!0:o,l=n.altAxis,a=l===void 0?!1:l,c=n.boundary,f=n.rootBoundary,p=n.altBoundary,h=n.padding,v=n.tether,y=v===void 0?!0:v,_=n.tetherOffset,w=_===void 0?0:_,I=Sa(t,{boundary:c,rootBoundary:f,padding:h,altBoundary:p}),O=bo(t.placement),S=il(t.placement),E=!S,T=ag(O),$=UY(T),P=t.modifiersData.popperOffsets,k=t.rects.reference,A=t.rects.popper,H=typeof w=="function"?w(Object.assign({},t.rects,{placement:t.placement})):w,D=typeof H=="number"?{mainAxis:H,altAxis:H}:Object.assign({mainAxis:0,altAxis:0},H),F=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,z={x:0,y:0};if(!!P){if(s){var K,te=T==="y"?Qn:er,we=T==="y"?Br:Ur,be=T==="y"?"height":"width",Oe=P[T],Ae=Oe+I[te],Ye=Oe-I[we],ft=y?-A[be]/2:0,Le=S===tl?k[be]:A[be],Ke=S===tl?-A[be]:-k[be],Q=t.elements.arrow,ae=y&&Q?lg(Q):{width:0,height:0},fe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:z$(),Se=fe[te],He=fe[we],De=ea(0,k[be],ae[be]),tt=E?k[be]/2-ft-De-Se-D.mainAxis:Le-De-Se-D.mainAxis,vn=E?-k[be]/2+ft+De+He+D.mainAxis:Ke+De+He+D.mainAxis,ln=t.elements.arrow&&za(t.elements.arrow),L=ln?T==="y"?ln.clientTop||0:ln.clientLeft||0:0,B=(K=F==null?void 0:F[T])!=null?K:0,Z=Oe+tt-B-L,le=Oe+vn-B,ie=ea(y?qc(Ae,Z):Ae,Oe,y?ts(Ye,le):Ye);P[T]=ie,z[T]=ie-Oe}if(a){var pe,Ee=T==="x"?Qn:er,he=T==="x"?Br:Ur,me=P[$],se=$==="y"?"height":"width",Re=me+I[Ee],Pe=me-I[he],Me=[Qn,er].indexOf(O)!==-1,je=(pe=F==null?void 0:F[$])!=null?pe:0,rt=Me?Re:me-k[se]-A[se]-je+D.altAxis,mt=Me?me+k[se]+A[se]-je-D.altAxis:Pe,ct=y&&Me?dY(rt,me,mt):ea(y?rt:Re,me,y?mt:Pe);P[$]=ct,z[$]=ct-me}t.modifiersData[r]=z}}var HY={name:"preventOverflow",enabled:!0,phase:"main",fn:jY,requiresIfExists:["offset"]};function VY(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function WY(e){return e===ao(e)||!Mr(e)?ug(e):VY(e)}function zY(e){var t=e.getBoundingClientRect(),n=rl(t.width)/e.offsetWidth||1,r=rl(t.height)/e.offsetHeight||1;return n!==1||r!==1}function qY(e,t,n){n===void 0&&(n=!1);var r=Mr(t),o=Mr(t)&&zY(t),s=Ci(t),l=ol(e,o),a={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((So(t)!=="body"||dg(s))&&(a=WY(t)),Mr(t)?(c=ol(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):s&&(c.x=cg(s))),{x:l.left+a.scrollLeft-c.x,y:l.top+a.scrollTop-c.y,width:l.width,height:l.height}}function KY(e){var t=new Map,n=new Set,r=[];e.forEach(function(s){t.set(s.name,s)});function o(s){n.add(s.name);var l=[].concat(s.requires||[],s.requiresIfExists||[]);l.forEach(function(a){if(!n.has(a)){var c=t.get(a);c&&o(c)}}),r.push(s)}return e.forEach(function(s){n.has(s.name)||o(s)}),r}function GY(e){var t=KY(e);return iY.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function XY(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function JY(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var t_={placement:"bottom",modifiers:[],strategy:"absolute"};function n_(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function YY(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,s=o===void 0?t_:o;return function(a,c,f){f===void 0&&(f=s);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},t_,s),modifiersData:{},elements:{reference:a,popper:c},attributes:{},styles:{}},h=[],v=!1,y={state:p,setOptions:function(O){var S=typeof O=="function"?O(p.options):O;w(),p.options=Object.assign({},s,p.options,S),p.scrollParents={reference:nl(a)?ta(a):a.contextElement?ta(a.contextElement):[],popper:ta(c)};var E=GY(JY([].concat(r,p.options.modifiers)));return p.orderedModifiers=E.filter(function(T){return T.enabled}),_(),y.update()},forceUpdate:function(){if(!v){var O=p.elements,S=O.reference,E=O.popper;if(!!n_(S,E)){p.rects={reference:qY(S,za(E),p.options.strategy==="fixed"),popper:lg(E)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(D){return p.modifiersData[D.name]=Object.assign({},D.data)});for(var T=0;T<p.orderedModifiers.length;T++){if(p.reset===!0){p.reset=!1,T=-1;continue}var $=p.orderedModifiers[T],P=$.fn,k=$.options,A=k===void 0?{}:k,H=$.name;typeof P=="function"&&(p=P({state:p,options:A,name:H,instance:y})||p)}}}},update:XY(function(){return new Promise(function(I){y.forceUpdate(),I(p)})}),destroy:function(){w(),v=!0}};if(!n_(a,c))return y;y.setOptions(f).then(function(I){!v&&f.onFirstUpdate&&f.onFirstUpdate(I)});function _(){p.orderedModifiers.forEach(function(I){var O=I.name,S=I.options,E=S===void 0?{}:S,T=I.effect;if(typeof T=="function"){var $=T({state:p,name:O,instance:y,options:E}),P=function(){};h.push($||P)}})}function w(){h.forEach(function(I){return I()}),h=[]}return y}}var ZY=[wY,BY,bY,aY,DY,kY,HY,mY,LY],QY=YY({defaultModifiers:ZY});function eZ(e){let t=_e(null),n=_e(null);return gt(()=>{jt(r=>{if(!n.value||!t.value)return;let o=n.value.el||n.value,s=t.value.el||t.value;if(!(s instanceof HTMLElement)||!(o instanceof HTMLElement))return;let{destroy:l}=QY(s,o,e);r(l)})}),[t,n]}const tZ=ve({data(){return{query:"",data:""}},emits:["addContributor","createContributor","close"],setup(){let[e,t]=eZ({placement:"bottom-end",strategy:"fixed",modifiers:[{name:"offset",options:{offset:[0,10]}},{name:"sameWidth",enabled:!0,fn:({state:n})=>{n.styles.popper.width=`${n.rects.reference.width}px`},phase:"beforeWrite",requires:["computeStyles"]}]});return{dispatch:it().dispatch,state:yt({contributors:G.contributors.contributors,episodeContributions:G.episode.contributions}),trigger:e,container:t}},components:{CheckIcon:q9,XIcon:Da,ChevronDownIcon:k2,Combobox:Z2,ComboboxButton:Q2,ComboboxInput:e$,ComboboxLabel:NU,ComboboxOption:n$,ComboboxOptions:t$,UserCircleIcon:F2,Image},computed:{filteredContributors(){return[...this.query.length>0?[{id:null,avatar_url:null,realname:`${this.__("Create: ","podlove-podcasting-plugin-for-wordpress")}${this.query}`}]:[],...this.state.contributors.filter(e=>!this.state.episodeContributions.some(t=>t.contributor_id&&t.contributor_id.toString()===e.id.toString())).filter(e=>!this.query||((e==null?void 0:e.realname)||"").toUpperCase().includes(this.query.toUpperCase()))]}},watch:{data(e){e.id?this.$emit("addContributor",e):this.$emit("createContributor",this.query)}},methods:{filterContributors(e){this.query=Y.exports.get(e,["target","value"],"")},close(){this.$emit("close")}}}),nZ={class:"block hover:bg-gray-50"},rZ={class:"flex items-center px-4 py-4 sm:px-6"},oZ={class:"flex min-w-0 flex-1 items-center"},iZ={class:"min-w-0 flex-1 px-4 md:grid md:grid-cols-2 md:gap-4"},sZ={class:"relative mt-2 max-w-sm"},lZ={ref:"container"},aZ={class:"flex items-center"},uZ=["src","onError"],cZ={class:"flex space-x-2 justify-end"};function dZ(e,t,n,r,o,s){const l=X("ComboboxLabel"),a=X("ComboboxInput"),c=X("ChevronDownIcon"),f=X("ComboboxButton"),p=X("UserCircleIcon"),h=X("CheckIcon"),v=X("ComboboxOption"),y=X("ComboboxOptions"),_=X("Combobox"),w=X("x-icon");return N(),V("div",nZ,[g("div",rZ,[g("div",oZ,[g("div",iZ,[q(_,{as:"div",modelValue:e.data,"onUpdate:modelValue":t[1]||(t[1]=I=>e.data=I)},{default:ye(()=>[q(l,{class:"block text-sm font-medium leading-6 text-gray-900"},{default:ye(()=>[Ge(U(e.__("Select Contributor","podlove-podcasting-plugin-for-wordpress")),1)]),_:1}),g("div",sZ,[q(a,{ref:"trigger",class:"w-full rounded-md border-0 bg-white py-1.5 pl-3 pr-12 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6",onChange:t[0]||(t[0]=I=>e.filterContributors(I)),displayValue:()=>e.query},null,8,["displayValue"]),q(f,{class:"absolute inset-y-0 right-0 flex items-center rounded-r-md px-2 focus:outline-none"},{default:ye(()=>[q(c,{class:"h-5 w-5 text-gray-400","aria-hidden":"true"})]),_:1})]),g("div",lZ,[e.filteredContributors.length>0?(N(),bt(y,{key:0,class:"absolute max-w-sm z-50 mt-1 max-h-56 w-full overflow-auto rounded-md bg-white py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm"},{default:ye(()=>[(N(!0),V(Fe,null,Mt(e.filteredContributors,I=>(N(),bt(v,{key:I.id||"create",value:I,as:"template"},{default:ye(({active:O,selected:S})=>[g("li",{class:wt(["relative cursor-default select-none py-2 pl-3 pr-9",O?"bg-indigo-600 text-white":"text-gray-900"])},[g("div",aZ,[I.avatar_url?(N(),V("img",{key:0,src:I.avatar_url,alt:"",class:"h-6 w-6 flex-shrink-0 rounded-full",onError:E=>I.avatar_url=""},null,40,uZ)):qe("",!0),I.avatar_url?qe("",!0):(N(),bt(p,{key:1,class:"h-6 w-6 flex-shrink-0 rounded-full text-gray-500"})),g("span",{class:wt(["ml-3 truncate",S&&"font-semibold"])},U(I.realname),3)]),S?(N(),V("span",{key:0,class:wt(["absolute inset-y-0 right-0 flex items-center pr-4",O?"text-white":"text-indigo-600"])},[q(h,{class:"h-5 w-5","aria-hidden":"true"})],2)):qe("",!0)],2)]),_:2},1032,["value"]))),128))]),_:1})):qe("",!0)],512)]),_:1},8,["modelValue"])])]),g("div",cZ,[g("button",{class:"text-red-600",onClick:t[2]||(t[2]=I=>e.close())},[q(w,{class:"w-5 h-5"})])])])])}var fZ=Be(tZ,[["render",dZ]]);const pZ=ve({components:{Module:Nn,PodloveButton:Vn,PlusSmIcon:Lv,Contribution:KJ,AddContribution:fZ},data(){return{addContributorInput:!1}},setup(){return{dispatch:it().dispatch,state:yt({contributions:G.episode.contributions,roles:G.contributors.roles,groups:G.contributors.groups})}},created(){this.dispatch(ix())},methods:{showAddContributor(){this.addContributorInput=!0},addContributor(e){this.addContributorInput=!1,this.dispatch(zE(e))},createContributor(e){this.addContributorInput=!1,this.dispatch(hD(e))},closeAddContributor(){this.addContributorInput=!1}}}),hZ={role:"list",class:"divide-y divide-gray-200"},mZ={key:0,class:"mb-0"},vZ={class:"py-5 px-6 border-t border-gray-200"};function gZ(e,t,n,r,o,s){const l=X("Contribution"),a=X("AddContribution"),c=X("plus-sm-icon"),f=X("podlove-button"),p=X("module");return N(),bt(p,{name:"chapters",title:e.__("Contributors","podlove-podcasting-plugin-for-wordpress"),class:"overflow-hidden"},{actions:ye(()=>[]),default:ye(()=>[g("ul",hZ,[(N(!0),V(Fe,null,Mt(e.state.contributions,(h,v)=>(N(),V("li",{class:"mb-0",key:h.position},[h!=null&&h.contributor_id?(N(),bt(l,{key:0,data:h,first:v===0,last:v===e.state.contributions.length-1},null,8,["data","first","last"])):qe("",!0)]))),128)),e.addContributorInput?(N(),V("li",mZ,[q(a,{onAddContributor:t[0]||(t[0]=h=>e.addContributor(h)),onCreateContributor:t[1]||(t[1]=h=>e.createContributor(h)),onClose:t[2]||(t[2]=h=>e.closeAddContributor())})])):qe("",!0)]),g("div",vZ,[q(f,{variant:"primary",onClick:t[3]||(t[3]=h=>e.showAddContributor())},{default:ye(()=>[q(c,{class:"-ml-0.5 mr-2 h-4 w-4","aria-hidden":"true"}),Ge(" "+U(e.__("Add Contributor","podlove-podcasting-plugin-for-wordpress")),1)]),_:1})])]),_:1},8,["title"])}var yZ=Be(pZ,[["render",gZ]]);const bZ=ve({setup(){return{state:yt({slug:G.episode.slug,baseUri:G.settings.mediaFileBaseUri}),dispatch:it().dispatch}},methods:{updateSlug(e){this.dispatch($t({prop:"slug",value:e.target.value})),this.dispatch(Dx())}},computed:{assetPrefix(){var n;let e=(n=this.state.baseUri)==null?void 0:n.replace(/https?:\/\//i,"").trim();if(!e)return"";const t=e.trim().replace(/\/+$/g,"").lastIndexOf("/");return e.length>30&&t>-1&&(e=e.slice(t)),e}}}),_Z={for:"filename_slug",class:"block text-sm font-medium leading-6 text-gray-900 sm:pt-1.5"},wZ={class:"mt-2 sm:col-span-2 sm:mt-0"},SZ={class:"flex rounded-md shadow-sm ring-1 ring-inset ring-gray-300 focus-within:ring-2 focus-within:ring-inset focus-within:ring-indigo-600"},EZ={class:"flex select-none items-center pl-3 text-gray-500 sm:text-sm"},xZ=["value"],$Z=g("span",{class:"flex slect-none items-center text-gray-500 sm:text-sm pr-2"},".ext",-1);function CZ(e,t,n,r,o,s){return N(),V(Fe,null,[g("label",_Z,U(e.__("Filename / Slug","podlove-podcasting-plugin-for-wordpress")),1),g("div",wZ,[g("div",SZ,[g("span",EZ,U(e.assetPrefix),1),g("input",{type:"text",name:"filename_slug",id:"filename_slug",autocomplete:"filename_slug",class:"block flex-1 border-0 bg-transparent py-1.5 pl-1 text-gray-900 placeholder:text-gray-400 focus:ring-0 sm:text-sm sm:leading-6",placeholder:"",value:e.state.slug,onInput:t[0]||(t[0]=l=>e.updateSlug(l))},null,40,xZ),$Z])])],64)}var TZ=Be(bZ,[["render",CZ]]);const OZ=ve({components:{PodloveButton:Vn,UploadIcon:R2},setup(){return{state:yt({}),dispatch:it().dispatch}},methods:{uploadIntent(){this.dispatch(b7())}},computed:{}}),AZ={for:"mediafile_upload",class:"block text-sm font-medium leading-6 text-gray-900 sm:pt-1.5"},IZ={class:"mt-2 sm:col-span-2 sm:mt-0"};function PZ(e,t,n,r,o,s){const l=X("upload-icon"),a=X("podlove-button");return N(),V(Fe,null,[g("label",AZ,U(e.__("Upload","podlove-podcasting-plugin-for-wordpress")),1),g("div",IZ,[g("div",null,[q(a,{variant:"primary",onClick:e.uploadIntent,class:"ml-1"},{default:ye(()=>[q(l,{class:"-ml-0.5 mr-2 h-4 w-4","aria-hidden":"true"}),Ge(" "+U(e.__("Upload Media File","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["onClick"])])])],64)}var kZ=Be(OZ,[["render",PZ]]);const RZ={},LZ={class:"text-center"},NZ=g("svg",{class:"mx-auto h-12 w-12 text-gray-400",fill:"none",viewBox:"0 0 24 24",strokeWidth:"{1.5}",stroke:"currentColor"},[g("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.42 15.17L17.25 21A2.652 2.652 0 0021 17.25l-5.877-5.877M11.42 15.17l2.496-3.03c.317-.384.74-.626 1.208-.766M11.42 15.17l-4.655 5.653a2.548 2.548 0 11-3.586-3.586l6.837-5.63m5.108-.233c.55-.164 1.163-.188 1.743-.14a4.5 4.5 0 004.486-6.336l-3.276 3.277a3.004 3.004 0 01-2.25-2.25l3.276-3.276a4.5 4.5 0 00-6.336 4.486c.091 1.076-.071 2.264-.904 2.95l-.102.085m-1.745 1.437L5.909 7.5H4.5L2.25 3.75l1.5-1.5L7.5 4.5v1.409l4.26 4.26m-1.745 1.437l1.745-1.437m6.615 8.206L15.75 15.75M4.867 19.125h.008v.008h-.008v-.008z"})],-1),MZ={class:"mt-2 text-sm font-semibold text-gray-900"},DZ={class:"mt-1 text-sm text-gray-500"};function FZ(e,t){return N(),V("div",LZ,[NZ,g("h3",MZ,U(e.__("No Assets","podlove-podcasting-plugin-for-wordpress")),1),g("p",DZ,U(e.__("Please go to Podlove \u2192 Episode Assets and define at least one audio asset.","podlove-podcasting-plugin-for-wordpress")),1)])}var BZ=Be(RZ,[["render",FZ]]);const UZ=ve({components:{CheckCircleIcon:Kq,XCircleIcon:j$,CloudIcon:L2,AssetsEmptyState:BZ},setup(){return{state:yt({files:G.mediafiles.files,duration:G.episode.duration}),dispatch:it().dispatch}},methods:{handleToggle(e){const t=e.target,n=t.checked,r=parseInt(t.value);n?this.dispatch(v7(r)):this.dispatch(g7(r))},handleVerify(e){this.dispatch(y7(e))},fileSize(e){const t=e.size;if(!t||t<1)return"???";var n=t/1024;if(n<500)return n.toFixed(2)+" kB";var r=n/1024;return r.toFixed(2)+" MB"}},computed:{files(){return this.state.files},hasFiles(){return this.files.length>0},duration(){const e="--:--:--.---";if(!this.state.duration)return e;const t=Nt.fromString(this.state.duration);return t.totalMs===0?e:t.pretty}}}),jZ={for:"assets",class:"block text-sm font-medium leading-6 text-gray-900 sm:pt-1.5"},HZ={class:"mt-2 sm:col-span-2 sm:mt-0"},VZ={key:0},WZ={class:"min-w-full table-fixed divide-y divide-gray-300"},zZ={scope:"col",class:"py-3.5 pl-3 text-left text-sm font-semibold text-gray-900"},qZ={scope:"col",class:"py-3.5 pr-3 text-left text-sm font-semibold text-gray-900"},KZ={scope:"col",class:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900"},GZ=g("th",{scope:"col",class:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900"},null,-1),XZ={class:"divide-y divide-gray-200 bg-white"},JZ={class:"relative px-7 sm:w-12 sm:px-6"},YZ={key:0,class:"inline-flex items-center animate-pulse text-green-600 absolute left-[-14px] top-1/2 -mt-2.5"},ZZ=["value","checked"],QZ={class:"text-sm"},eQ={class:"whitespace-nowrap px-3 py-4 text-sm text-gray-500"},tQ={class:"flex flex-col"},nQ=["href"],rQ={class:"flex"},oQ={key:3},iQ={class:"whitespace-nowrap px-3 py-4 text-sm text-gray-500"},sQ=["onClick"],lQ={class:"mt-3 text-sm leading-6 text-gray-600"};function aQ(e,t,n,r,o,s){const l=X("CloudIcon"),a=X("CheckCircleIcon"),c=X("XCircleIcon"),f=X("AssetsEmptyState");return N(),V(Fe,null,[g("label",jZ,U(e.__("Assets","podlove-podcasting-plugin-for-wordpress")),1),g("div",HZ,[e.hasFiles?(N(),V("div",VZ,[g("table",WZ,[g("thead",null,[g("tr",null,[g("th",zZ,U(e.__("Enable","podlove-podcasting-plugin-for-wordpress")),1),g("th",qZ,U(e.__("Asset","podlove-podcasting-plugin-for-wordpress")),1),g("th",KZ,U(e.__("File","podlove-podcasting-plugin-for-wordpress")),1),GZ])]),g("tbody",XZ,[(N(!0),V(Fe,null,Mt(e.files,p=>(N(),V("tr",{key:p.asset_id,class:wt({"opacity-50":!p.enable})},[g("td",JZ,[p.is_verifying?(N(),V("div",YZ,[q(l,{class:"h-5 w-5","aria-hidden":"true"})])):qe("",!0),g("input",{type:"checkbox",class:"absolute left-4 top-1/2 -mt-2 h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-600",value:p.asset_id,checked:p.enable,onClick:t[0]||(t[0]=(...h)=>e.handleToggle&&e.handleToggle(...h))},null,8,ZZ)]),g("td",QZ,U(p.asset),1),g("td",eQ,[g("div",tQ,[g("a",{href:p.url,target:"_blank",class:"text-gray-700 underline"},U(p.url),9,nQ),g("span",rQ,[p.size>0?(N(),bt(a,{key:0,class:"mr-1.5 h-5 w-5 flex-shrink-0 text-green-400","aria-hidden":"true"})):(N(),bt(c,{key:1,class:wt(["mr-1.5 h-5 w-5 flex-shrink-0",{"text-gray-400":!p.enable,"text-red-400":p.enable}]),"aria-hidden":"true"},null,8,["class"])),p.size?(N(),V("span",oQ,U(e.fileSize(p)),1)):(N(),V("span",{key:2,class:wt({"text-gray-400":!p.enable,"text-red-400":p.enable})},U(e.__("File not found","podlove-podcasting-plugin-for-wordpress")),3))])])]),g("td",iQ,[g("button",{type:"button",class:"inline-flex items-center rounded-md bg-white px-2.5 py-1.5 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50 disabled:cursor-not-allowed disabled:opacity-30 disabled:hover:bg-white",onClick:()=>e.handleVerify(p.asset_id)},U(e.__("Verify","podlove-podcasting-plugin-for-wordpress")),9,sQ)])],2))),128))])]),g("p",lQ,U(e.__("Duration:","podlove-podcasting-plugin-for-wordpress"))+" "+U(e.duration),1)])):(N(),bt(f,{key:1}))])],64)}var uQ=Be(UZ,[["render",aQ]]);const cQ=ve({components:{Module:Nn,RefreshIcon:I2,MediaSlug:TZ,MediaUpload:kZ,AssetsTable:uQ},setup(){return{state:yt({isInitializing:G.mediafiles.isInitializing,modules:G.settings.modules}),dispatch:it().dispatch}},computed:{isInitializing(){return this.state.isInitializing},isMediaUploadEnabled(){var e;return(e=this.state.modules)==null?void 0:e.includes("wordpress_file_upload")}},created(){this.dispatch(p7())}}),dQ={key:0,class:"w-full flex justify-center m-12 text-center"},fQ={class:"animate-pulse mt-4 flex space-x-4"},pQ={key:1},hQ={class:"px-6"},mQ={class:"mt-10 sm:mt-0 space-y-8 border-b border-gray-900/10 pb-12 sm:space-y-0 sm:divide-y sm:divide-gray-900/10 sm:pb-0"},vQ={class:"sm:grid sm:grid-cols-[175px_auto_auto] sm:items-start sm:gap-4 sm:py-6"},gQ={key:0,class:"sm:grid sm:grid-cols-[175px_auto_auto] sm:items-start sm:gap-4 sm:py-6"},yQ={class:"sm:grid sm:grid-cols-[175px_auto_auto] sm:items-start sm:gap-4 sm:py-6"};function bQ(e,t,n,r,o,s){const l=X("RefreshIcon"),a=X("MediaSlug"),c=X("MediaUpload"),f=X("AssetsTable"),p=X("module");return N(),bt(p,{name:"mediafiles",title:"Media Files"},{default:ye(()=>[g("div",null,[e.isInitializing?(N(),V("div",dQ,[g("div",fQ,[q(l,{class:"animate-spin h-5 w-5 mr-3"}),Ge(" "+U(e.__("Loading...","podlove-podcasting-plugin-for-wordpress")),1)])])):(N(),V("div",pQ,[g("div",hQ,[g("div",mQ,[g("div",vQ,[q(a)]),e.isMediaUploadEnabled?(N(),V("div",gQ,[q(c)])):qe("",!0),g("div",yQ,[q(f)])])])]))])]),_:1})}var _Q=Be(cQ,[["render",bQ]]);const wQ=ve({name:"PodloveCombobox",components:{Combobox:Z2,ComboboxButton:Q2,ComboboxInput:e$,ComboboxOption:n$,ComboboxOptions:t$,CheckIcon:Kd,SelectorIcon:Gd},props:{options:Array,selectValues:Array,placeholder:{type:String,default:"Select an option"},multiple:{type:Boolean,default:!1},error:String},computed:{label(){var t;const e=(t=this.selectValues)==null?void 0:t.length;return e===0?"No option is selected":e===1?"One option is selected":(e==null?void 0:e.toString())+" options are selected"},filterOptions(){var e;return this.query===""?this.options:(e=this.options)==null?void 0:e.filter(t=>t.title.toLowerCase().includes(this.query.toLowerCase()))}},data(){return{query:""}},methods:{selectItem(e){this.$emit("update",e)},onChange(e){this.query=e.target.value},resetQuery(){this.query=""}}}),SQ={class:"relative mt-1 focus-visible:border-indigo-500 focus:ring-indigo-500"},EQ={class:"shadow-sm flex sm:text-sm rounded-md absolute inset-y-0 right-10 items-center pr-2 pointer-events-none"},xQ={key:0,class:"cursor-default select-none relative py-2 px-4 text-gray-700"},$Q={key:0,class:"flex absolute inset-y-0 left-0 items-center pl-3 text-amber-600"},CQ={key:0,class:"text-xs text-red-400 mt-1"};function TQ(e,t,n,r,o,s){const l=X("ComboboxInput"),a=X("SelectorIcon"),c=X("ComboboxButton"),f=X("CheckIcon"),p=X("ComboboxOption"),h=X("ComboboxOptions"),v=X("Combobox",!0);return N(),bt(v,{"model-value":e.selectValues,multiple:e.multiple,"onUpdate:modelValue":t[0]||(t[0]=y=>e.selectItem(y))},{default:ye(()=>[g("div",SQ,[q(c,{class:"w-full flex items-center",onClick:e.resetQuery},{default:ye(()=>[q(l,{onChange:e.onChange,class:"relative py-2 pl-3 w-full bg-white rounded-lg shadow-md cursor-default sm:text-sm border-gray-300"},null,8,["onChange"]),g("div",EQ,U(e.label),1),q(a,{class:"w-5 h-5 text-gray-400","aria-hidden":"true"})]),_:1},8,["onClick"]),q(Ei,{"leave-active-class":` 149 149 transition 150 150 duration-100 … … 154 154 `,"leave-to-class":` 155 155 opacity-0 156 `},{default:ye(()=>[q(h,{class:"-top-2 transform -translate-y-full overflow-auto absolute z-10 py-1 mt-1 w-full max-h-60 text-base bg-white rounded-md ring-1 ring-black ring-opacity-5 shadow-lg focus:outline-none sm:text-sm"},{default:ye(()=>{var y;return[((y=e.filterOptions)==null?void 0:y.length)===0&&e.query!==""?(N(),V("div", EQ," Nothing found. ")):qe("",!0),(N(!0),V(Fe,null,Mt(e.filterOptions,_=>(N(),bt(p,{key:_.title,value:_.id,as:"template"},{default:ye(({active:w,selected:I})=>[g("li",{class:wt([w?"bg-amber-100 text-amber-900":"text-gray-900","relative cursor-default select-none py-2 pl-10 pr-4"])},[g("span",{class:wt([I?"font-medium":"font-normal","block truncate"])},U(_.title),3),I?(N(),V("span",xQ,[q(f,{"aria-hidden":"true",class:"w-5 h-5"})])):qe("",!0)],2)]),_:2},1032,["value"]))),128))]}),_:1})]),_:1}),e.error?(N(),V("div",$Q,U(e.error),1)):qe("",!0)])]),_:1},8,["model-value","multiple"])}var TQ=Be(_Q,[["render",CQ]]);const OQ=ve({name:"PodloveTag",components:{XCircleIcon:j$},props:{value:String,id:Number},methods:{removeTag(){this.$emit("removeTag",this.id)}}}),AQ={class:"m-1 inline-flex"},IQ={class:"flex items-center text-xs font-bold uppercase px-3 py-1 bg-indigo-200 text-indigo-700 rounded-full"};function PQ(e,t,n,r,o,s){const l=X("XCircleIcon");return N(),V("div",AQ,[g("span",IQ,[Xe(U(e.value)+" ",1),g("button",{class:"ml-1",onClick:t[0]||(t[0]=(...a)=>e.removeTag&&e.removeTag(...a))},[q(l,{class:"w-5 h-5"})])])])}var kQ=Be(OQ,[["render",PQ]]);const RQ=ve({components:{Module:Nn,PodloveListbox:TQ,Tag:kQ},setup(){return{state:yt({episodeList:G.relatedEpisodes.episodeList,selectEpisodes:G.relatedEpisodes.selectEpisode}),dispatch:it().dispatch}},created(){this.dispatch(x7())},computed:{fullEpisodeList(){return this.state.episodeList.length==0?this.state.episodeList:this.state.selectEpisodes.length==0?[{id:0,title:"Select all episodes"},...this.state.episodeList]:[{id:-1,title:"Deselect all episodes"},...this.state.episodeList]},selectEpisodeNames(){var e;return(e=this.state.episodeList)==null?void 0:e.filter(t=>this.state.selectEpisodes.includes(t.id))}},methods:{updateRelEpisodes(e){e.includes(0)?this.state.selectEpisodes=this.state.episodeList.map(function(t){return t.id}):e.includes(-1)?this.state.selectEpisodes=[]:this.state.selectEpisodes=e,this.dispatch(Ux(this.state.selectEpisodes))},removeTag(e){const t=this.state.selectEpisodes.findIndex(n=>n==e);this.state.selectEpisodes.splice(t,1)}}}),LQ={class:"p-3"},NQ={class:"mt-2 text-sm text-gray-500"},MQ={class:"pl-3 pb-3"};function DQ(e,t,n,r,o,s){const l=X("PodloveListbox"),a=X("Tag"),c=X("module");return N(),bt(c,{name:"relatedEpisodes",title:e.__("Related episodes","podlove-podcasting-plugin-for-wordpress")},{default:ye(()=>[g("div",LQ,[g("div",null,[q(l,{placeholder:"Select episode",options:e.fullEpisodeList,selectValues:e.state.selectEpisodes,onUpdate:t[0]||(t[0]=f=>e.updateRelEpisodes(f)),multiple:""},null,8,["options","selectValues"])]),g("p",NQ,U(e.__("Select related episodes to this episode.","podlove-podcasting-plugin-for-wordpress")),1)]),g("div",MQ,[(N(!0),V(Fe,null,Mt(e.selectEpisodeNames,f=>(N(),bt(a,{value:f.title,id:Number(f.id),onRemoveTag:t[1]||(t[1]=p=>e.removeTag(p))},null,8,["value","id"]))),256))])]),_:1},8,["title"])}var FQ=Be(RQ,[["render",DQ]]);const BQ=ve({components:{PodloveButton:Vn},setup(){return{dispatch:it().dispatch}},methods:{clearSoundbite(){this.dispatch($t({prop:"soundbite_start",value:null})),this.dispatch($t({prop:"soundbite_duration",value:null})),this.dispatch($t({prop:"soundbite_title",value:null}))}}});function UQ(e,t,n,r,o,s){const l=X("podlove-button");return N(),bt(l,{variant:"secondary",size:"small",onClick:t[0]||(t[0]=a=>e.clearSoundbite())},{default:ye(()=>[Xe(U(e.__("Clear","podlove-podcasting-plugin-for-wordpress")),1)]),_:1})}var jQ=Be(BQ,[["render",UQ]]);const HQ=ve({setup(){return{state:yt({soundbite_start:G.episode.soundbite_start,soundbite_duration:G.episode.soundbite_duration,soundbite_title:G.episode.soundbite_title}),dispatch:it().dispatch}},computed:{soundbite_end(){if(this.state.soundbite_start!=null&&this.state.soundbite_duration!=null){let e=Nt.fromString(this.state.soundbite_start).totalMs,t=Nt.fromString(this.state.soundbite_duration).totalMs,n=e+t;return new Nt(n).pretty}return""}},methods:{updateSoundbiteStart(e){const t=e.target.value;let n=Nt.fromString(t).totalMs;this.dispatch($t({prop:"soundbite_start",value:new Nt(n).pretty}))},updateSoundbiteEnd(e){const t=e.target.value;let n=Nt.fromString(t).totalMs,r=Nt.fromString(this.state.soundbite_start).totalMs;if(r<n){let o=n-r;this.dispatch($t({prop:"soundbite_duration",value:new Nt(o).pretty}))}},updateSoundbiteDuration(e){const t=e.target.value;let n=Nt.fromString(t).totalMs;this.dispatch($t({prop:"soundbite_duration",value:new Nt(n).pretty}))},updateSoundbiteTitle(e){this.dispatch($t({prop:"soundbite_title",value:e.target.value}))}}}),VQ={class:"grid md:grid-cols-4 md:grid-rows-1 sm:grid-rows-4 p-3"},WQ={class:"mb-5 ml-5"},zQ={for:"soundbite-start",class:"block text-sm font-medium text-gray-700"},qQ={class:"mt-1"},KQ=["value"],GQ={class:"mb-5 ml-5"},XQ={for:"soundbite-end",class:"block text-sm font-medium text-gray-700"},JQ={class:"mt-1"},YQ=["value"],ZQ={class:"mb-5 ml-5"},QQ={for:"soundbite-duration",class:"block text-sm font-medium text-gray-700"},eee={class:"mt-1"},tee=["value"],nee={class:"mb-5 ml-5 md:mr-5"},ree={for:"soundbite-title",class:"block text-sm font-medium text-gray-700"},oee={class:"text-xs"},iee={class:"mt-1"},see=["value"];function lee(e,t,n,r,o,s){return N(),V("div",VQ,[g("div",WQ,[g("label",zQ,U(e.__("Start","podlove-podcasting-plugin-for-wordpress")),1),g("div",qQ,[g("input",{name:"soundbite-start",type:"text",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",placeholder:"HH:MM:SS",value:e.state.soundbite_start,onChange:t[0]||(t[0]=l=>e.updateSoundbiteStart(l))},null,40,KQ)])]),g("div",GQ,[g("label",XQ,U(e.__("End","podlove-podcasting-plugin-for-wordpress")),1),g("div",JQ,[g("input",{name:"soundbite-end",type:"text",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",placeholder:"HH:MM:SS",value:e.soundbite_end,onChange:t[1]||(t[1]=l=>e.updateSoundbiteEnd(l))},null,40,YQ)])]),g("div",ZQ,[g("label",QQ,U(e.__("Duration","podlove-podcasting-plugin-for-wordpress")),1),g("div",eee,[g("input",{name:"soundbite-duration",type:"text",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",placeholder:"HH:MM:SS",value:e.state.soundbite_duration,onChange:t[2]||(t[2]=l=>e.updateSoundbiteDuration(l))},null,40,tee)])]),g("div",nee,[g("label",ree,[Xe(U(e.__("Soundbite title","podlove-podcasting-plugin-for-wordpress"))+" ",1),g("span",oee,U(e.__("(optional)","podlove-podcasting-plugin-for-wordpress")),1)]),g("div",iee,[g("input",{name:"soundbite-title",type:"text",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",value:e.state.soundbite_title,onChange:t[3]||(t[3]=l=>e.updateSoundbiteTitle(l))},null,40,see)])])])}var aee=Be(HQ,[["render",lee]]);const uee=ve({components:{Module:Nn,SoundbiteForm:aee,SoundbiteClear:jQ},setup(){return{dispatch:it().dispatch}},created(){this.dispatch(Od())}});function cee(e,t,n,r,o,s){const l=X("soundbite-clear"),a=X("soundbite-form"),c=X("module");return N(),bt(c,{name:"soundbite",title:e.__("Soundbite","podlove-podcasting-plugin-for-wordpress")},{actions:ye(()=>[q(l)]),default:ye(()=>[q(a)]),_:1},8,["title"])}var dee=Be(uee,[["render",cee]]);const fee=ve({components:{},setup(){return{state:yt({shows:G.shows.list,current:G.episode.currentShow}),dispatch:it().dispatch}},computed:{shows(){return this.state.shows},current(){return this.state.current||""}},methods:{setShow(e){this.dispatch($t({prop:"show",value:e!=null?e:""}))}},created(){this.dispatch(jx())}}),pee={class:"flex items-center"},hee=["checked"],mee={for:"podlove-show-default",class:"ml-2 block text-sm leading-6 text-gray-900"},vee={class:"flex items-center"},gee=["id","value","onInput","checked"],yee=["for"];function bee(e,t,n,r,o,s){return N(),V("div",null,[g("div",pee,[g("input",{id:"podlove-show-default",name:"podlove-episode-show",type:"radio",class:"h-4 w-4 border-gray-300 text-indigo-600 focus:ring-indigo-600",value:null,onInput:t[0]||(t[0]=l=>e.setShow(null)),checked:e.current===""},null,40,hee),g("label",mee,U(e.__("Podcast (no show assignment)","podlove-podcasting-plugin-for-wordpress")),1)]),(N(!0),V(Fe,null,Mt(e.shows,l=>(N(),V("div",vee,[g("input",{id:"podlove-show-"+l.slug,name:"podlove-episode-show",type:"radio",class:"h-4 w-4 border-gray-300 text-indigo-600 focus:ring-indigo-600",value:l.id,onInput:a=>e.setShow(l.slug),checked:l.slug===e.current},null,40,gee),g("label",{for:"podlove-show-"+l.slug,class:"ml-2 block text-sm leading-6 text-gray-900"},U(l.title),9,yee)]))),256))])}var _ee=Be(fee,[["render",bee],["__scopeId","data-v-7b1f1f84"]]),Lt=(e=>(e.cc0="Public Domain License",e.pdmark="Public Domain Mark License",e.cc3="Creative Commons 3.0 and earlier",e.cc4="Creative Commons 4.0",e))(Lt||{}),hr=(e=>(e.yes="Yes",e.no="No",e))(hr||{}),hn=(e=>(e.yes="Yes",e.yesbutshare="Yes, as long as others share alike",e.no="No",e))(hn||{}),cn=(e=>(e.Episode="Episode",e.Podcast="Podcast",e))(cn||{});const js=[{symbol:"international",name:"International",version:"3.0"},{symbol:"ar",name:"Argentina",version:"2.5"},{symbol:"au",name:"Australia",version:"3.0"},{symbol:"at",name:"Austria",version:"3.0"},{symbol:"be",name:"Belgium",version:"2.0"},{symbol:"br",name:"Brazil",version:"3.0"},{symbol:"bg",name:"Bulgaria",version:"2.5"},{symbol:"ca",name:"Canada",version:"2.5"},{symbol:"cl",name:"Chile",version:"3.0"},{symbol:"cn",name:"China Mainland",version:"3.0"},{symbol:"co",name:"Colombia",version:"2.5"},{symbol:"cr",name:"Costa Rica",version:"3.0"},{symbol:"hr",name:"Croatia",version:"3.0"},{symbol:"cz",name:"Czech Republic",version:"3.0"},{symbol:"dk",name:"Denmark",version:"2.5"},{symbol:"ec",name:"Ecuador",version:"3.0"},{symbol:"eg",name:"Egypt",version:"3.0"},{symbol:"ee",name:"Estonia",version:"3.0"},{symbol:"fi",name:"Finland",version:"1.0"},{symbol:"fr",name:"France",version:"3.0"},{symbol:"de",name:"Germany",version:"3.0"},{symbol:"gr",name:"Greece",version:"3.0"},{symbol:"gt",name:"Guatemala",version:"3.0"},{symbol:"hk",name:"Hong Kong",version:"3.0"},{symbol:"hu",name:"Hungary",version:"2.5"},{symbol:"igo",name:"IGO",version:"3.0"},{symbol:"in",name:"India",version:"2.5"},{symbol:"ie",name:"Ireland",version:"3.0"},{symbol:"il",name:"Israel",version:"2.5"},{symbol:"it",name:"Italy",version:"3.0"},{symbol:"jp",name:"Japan",version:"2.1"},{symbol:"lu",name:"Luxembourg",version:"3.0"},{symbol:"mk",name:"Macedonia",version:"2.5"},{symbol:"my",name:"Malaysia",version:"2.5"},{symbol:"mt",name:"Malta",version:"2.5"},{symbol:"mx",name:"Mexico",version:"2.5"},{symbol:"nl",name:"Netherlands",version:"3.0"},{symbol:"nz",name:"New Zealand",version:"3.0"},{symbol:"no",name:"Norway",version:"3.0"},{symbol:"pe",name:"Peru",version:"2.5"},{symbol:"ph",name:"Philippines",version:"3.0"},{symbol:"pl",name:"Poland",version:"3.0"},{symbol:"pt",name:"Portugal",version:"3.0"},{symbol:"pr",name:"Puerto Rico",version:"3.0"},{symbol:"ro",name:"Romania",version:"3.0"},{symbol:"rs",name:"Serbia",version:"3.0"},{symbol:"sg",name:"Singapore",version:"3.0"},{symbol:"si",name:"Slovenia",version:"2.5"},{symbol:"za",name:"South Africa",version:"2.5"},{symbol:"kp",name:"South Korea",version:"2.0"},{symbol:"es",name:"Spain",version:"3.0"},{symbol:"se",name:"Sweden",version:"2.5"},{symbol:"ch",name:"Switzerland",version:"3.0"},{symbol:"tw",name:"Taiwan",version:"3.0"},{symbol:"th",name:"Thailand",version:"3.0"},{symbol:"gb",name:"UK: England & Wales",version:"2.0"},{symbol:"gb_sc",name:"UK: Scotland",version:"2.5"},{symbol:"ug",name:"Uganda",version:"3.0"},{symbol:"us",name:"United States",version:"3.0"},{symbol:"vn",name:"Vietnam",version:"3.0"}],wee=ve({components:{Module:Nn},props:{scope:{type:String,default:cn.Episode}},setup(){return{state:yt({episodeLicenseName:G.episode.license_name,podcastLicenseName:G.podcast.license_name}),dispatch:it().dispatch}},created(){this.dispatch(Od())},computed:{getLicenseName(){return this.scope==cn.Episode?this.state.episodeLicenseName:this.state.podcastLicenseName}},methods:{updateLicenseName(e){this.scope===cn.Episode&&this.dispatch($t({prop:"license_name",value:e.target.value})),this.scope===cn.Podcast&&this.dispatch(Zl({prop:"license_name",value:e.target.value}))}}}),See={for:"episode-license-name",class:"block text-sm font-medium text-gray-700"},Eee={class:"mt-1"},xee=["value"];function $ee(e,t,n,r,o,s){return N(),V("div",null,[g("label",See,U(e.__("License name","podlove-podcasting-plugin-for-wordpress")),1),g("div",Eee,[g("input",{name:"episode-license-name",type:"text",value:e.getLicenseName,onInput:t[0]||(t[0]=(...l)=>e.updateLicenseName&&e.updateLicenseName(...l)),class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md"},null,40,xee)])])}var Cee=Be(wee,[["render",$ee]]);const Tee=ve({components:{Module:Nn},props:{scope:{type:String,default:cn.Episode}},setup(){return{state:yt({episodeLicenseUrl:G.episode.license_url,podcastLicenseUrl:G.podcast.license_url}),dispatch:it().dispatch}},created(){this.dispatch(Od())},computed:{getLicenseUrl(){return this.scope==cn.Episode?this.state.episodeLicenseUrl:this.state.podcastLicenseUrl}},methods:{updateLicenseUrl(e){this.scope===cn.Episode&&this.dispatch($t({prop:"license_url",value:e.target.value})),this.scope===cn.Podcast&&this.dispatch(Zl({prop:"license_url",value:e.target.value}))}}}),Oee={for:"episode-license-name",class:"block text-sm font-medium text-gray-700"},Aee={class:"mt-1"},Iee=["value"],Pee={class:"mt-2 text-sm text-gray-500"};function kee(e,t,n,r,o,s){return N(),V("div",null,[g("label",Oee,U(e.__("License url","podlove-podcasting-plugin-for-wordpress")),1),g("div",Aee,[g("input",{name:"episode-license-name",type:"text",value:e.getLicenseUrl,onInput:t[0]||(t[0]=(...l)=>e.updateLicenseUrl&&e.updateLicenseUrl(...l)),class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md"},null,40,Iee)]),g("p",Pee,U(e.__("Example: http://creativecommons.org/licenses/by/3.0/","podlove-podcasting-plugin-for-wordpress")),1)])}var Ree=Be(Tee,[["render",kee]]),Lee="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFgAAAAfCAMAAABUFvrSAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAPBQTFRFLy8v7+/vz8/PHx8fDw8P+vn3X19fj4+P39/fn5+fb29vT09Pr6+v+fn53t7eZWVl6urq/f395+fn5eXl9/f38fHxMTEx+/v7jo6Ozc3N2dnZ8/PzhISE/v7+5OTk9vXz6ejoPj4+kJCQ3d3d6unnxcXFi4uL0tLS5ubm9PT0QUFB4uLi1dXV7Ozsvr6+LCwsy8vL6urnnp6ezs7O+Pj48vLyenp69fX1+fj2urq6CgsJ09PTl5eXt7e31tbW4eHhjY2N9vb2U1NTGRkZTU1NbW1tioqKf39/ysrK6Oflv7+/Pz8/7erh////AAAA////iBrkuAAAAFB0Uk5T/////////////////////////////////////////////////////////////////////////////////////////////////////////wATc6Z5AAACrklEQVR42rSW53bbMAyFOVSRGnbsZji7e++992ALFsj7v00BaiTpsfzDtXGOEw3qI3B1QUqd0FriRNGftQQpwrXEebAHDr1qsC9tI48Nejq69+g/Re7B4czFbPfLZFytBKwVH1eFQTRF5MPvn45vqRWAhatMJwrI2fb4zds0IoYQctbHys/yCUuWp/oCp5AXKZEhcM4j5L8BELxmGX5M3h2mEQHBY4gYiX8RjUEgQLnD8jn0GqtBcM0yCC/NHcUWnPOH4z3VgIk09OBIRvdgy5Nk4AbBlrKWlshikYyubI9fNuBQYNGDOYoeHLFcpLEhKtJ4olLg0Jhkf3KjlQKKrAeXsUZ1CuZsi8GMeVZJuBKIqFFKykS7B+OdVgoehyBEAYOA+SWKxl5XZcpoLjim6jEj8tBpwbrkW5sbPTjV5JpbLtWEAlaeC86GwIofloFcnKIo2aX84+jixtmuifMBalhj6sEF2cRPIv8DXqJBTjO2VEMrRZ9xzgtT4GQrgFqRAh5QisOs/FGQK2BFQC3WmA/gVOMGzK4wbJyI3mlto3ST9Aj3Bj8RxRnyTuNiV5CXJhRXaHbF1mbnCvZDzZgqYWqLAvaeH2zAZgBs0vSNj5lLpvHxtYNx13kVRpEgOddg4NbnS7k3DdhhPR88v/Pi6MFhB3YM7grnemqepUCj0aYrfG8A3OrarBWVbla7h89v7/Qt7XmRMiGRIssFkPGpQ9eArR4Ai7DCk9XNt6toOdt+n0aIKwreXIJHU8n7LyFzLgKj6iK5QrFN1PB6bKFbj2vG5NNX97+tYgeRUpQDrcHJ1pcfjSZ3V7TnnWnYrD6avfi6os0UdWh3aeU0Trf2n169+XPp+Hz+u0L33xXTO5sf9x7/WjqeMXh2YU68vqSfXP69fFynNX67rSn+CjAANTLO7qEvlcgAAAAASUVORK5CYII=",Nee="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFgAAAAfCAMAAABUFvrSAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAPNQTFRFv7+/7+/vX19fDw8PHx8fn5+fLy8v39/fz8/Pb29vr6+vT09Pj4+P+fn5/f39ZWVl5eXlzs7O6urq8fHx9/f36ejovr6++/v7jY2N4+Pj2dnZp6enzc3Nenp69PT08/PzXFxc8vLyTk5OIyMj9fX13d3d5ubmXl5eDAwMNjY2JiYmra2t1NTUxcXF4uLiLCsrFxcXVVVV/v7+GRkZMTExW1tbyMjIt7e3np6ednZ2mJiY7Ozsjo6O1dXV3t7e7e3t09PTkJCQi4uL7u7uy8vLU1NTCgsJ4eHh1tbWioqKysrK5+fnf39/Pz8/7erh////AAAA7t9IFQAAArpJREFUeNq0ludy2zAQhA8dLJLl3u303nt3ejMuwPs/Te4AmrIzYn7YEjTUsIAfib1dgBDTQlqE9GchLUGKC2n/gD2AnztYGCzyNCaORz8eXlDkHmzU9KS+ezB5cWcuYCGZV9UAdcVPuLR+7+XVeYBJBWVORGkJ/Xzb737PPTCEYJMOmjdNB1IlGfhKwHwV/wOuUrJiqryzKe1vL7/OPULugPRs2pAPIEF2fwypjXRbMwiGjisMvRDbQuiU7j/Ye1TASUXowZi86MEqeqUEDIJ5SK6vH5ZHXVm9vl/AoY2mB3sXTQ9GHuuwxj7vFd14h4dLxdy5sVHAVFHVgyuEqKdguknKITBd1N1hgEqWqKS09fajLVJQs7HGOloG15HYiMgaC9FIGsEAGOm2kg7V9iVU6ebhh8c9ONXs9SxTloLDRWCk/k4PgW0efVFLVS52BsS1ydKpnhbtjPsV4rDGxVInEicJHXh0vHSxgNhUdeC6zcNCcwrMAeE0Yg2GQxL4FNVLlz/UocnxmakxS9cWQxSxNTGaAiZXOLIfRgFRkDsoD57tGLgOyM6Imj0zA0zqcg2yK3ztobPPu9Hxs6545Ic6l4ISGI3OPneCPFnAMACui8id15WPLk9Ey2uTWx24IYf5zrlOVNHxCKTzBWzoNxMcdVJiSsZiYxwfvukiTRuCUORKwrT0JgDJRC9YAzpDth4AG34nDnKF2PAkJ8hZG6OV2yeRFo5kqCufJwsXJYASnpIeClgPgfm0PLWuCJqv5Obqbj+71fQgyo5jUbGNCkBy6J0rYB7RbDC/oe1XO+Cjo2vvn85jBbF5saPUuew3+2W00sxlzRNn5r/wZPPytzktpiRgt5wq6eJ4befVp8+/zt22zn5XAK0gJks9Ppj83Pv6+9xteehLaDxaXVk/Pn9bTwv8dltQ+yvAAF/L4Ldao5NwAAAAAElFTkSuQmCC",Mee="/wp-content/plugins/podlove-publisher/client/dist/0_0.png",Dee="/wp-content/plugins/podlove-publisher/client/dist/0_1.png",Fee="/wp-content/plugins/podlove-publisher/client/dist/1_0.png",Bee="/wp-content/plugins/podlove-publisher/client/dist/1_1.png",Uee="/wp-content/plugins/podlove-publisher/client/dist/10_0.png",jee="/wp-content/plugins/podlove-publisher/client/dist/10_1.png";function Ul(e){if(e.type===null||e.type!="cc")return null;if(e.version===Lt.cc0)return"http://creativecommons.org/publicdomain/zero/1.0/";if(e.version===Lt.pdmark)return"http://creativecommons.org/publicdomain/mark/1.0/";if(e.version===Lt.cc3){let t="http://creativecommons.org/licenses/by";return e.optionCommercial===hr.no&&(t=t+"-nc"),e.optionModification===hn.yes?t=t+"/":e.optionModification===hn.no?t=t+"-nd/":t=t+"-sa/",e.optionJurisdication===null||e.optionJurisdication.symbol==="international"?t=t+"3.0/":t=t+e.optionJurisdication.version+"/"+e.optionJurisdication.symbol+"/",t+"deed.en"}if(e.version===Lt.cc4){let t="http://creativecommons.org/licenses/by";return e.optionCommercial==hr.no&&(t=t+"-nc"),e.optionModification==hn.yes?t=t+"/":e.optionModification==hn.no?t=t+"-nd/":t=t+"-sa/",t+"4.0"}return null}function r_(e,t){if(e.type===null||e.type!=="cc")return null;if(e.version===Lt.cc0)return Lee;if(e.version===Lt.pdmark)return Nee;if(e.optionModification===null||e.optionCommercial===null)return null;switch(e.optionModification){case hn.no:return e.optionCommercial===hr.no?Mee:Dee;case hn.yes:return e.optionCommercial===hr.no?Fee:Bee;case hn.yesbutshare:return e.optionCommercial===hr.no?Uee:jee}}function o_(e){const t=e.toLowerCase();if(t.indexOf("creativecommons.org")<0)return{type:null,version:null,optionCommercial:null,optionModification:null,optionJurisdication:null};let n=null;t.indexOf("/publicdomain/zero/")>=0?n=Lt.cc0:t.indexOf("/publicdomain/mark/")>=0?n=Lt.pdmark:t.indexOf("/4.0")>=0?n=Lt.cc4:n=Lt.cc3;const r=t.split("/").slice(4);let o=hr.yes;r[0].includes("nc")&&(o=hr.no);let s=hn.yes;r[0].includes("sa")?s=hn.yesbutshare:r[0].includes("nd")&&(s=hn.no);let l=js[0];if(r.length>2){const a=js.findIndex(c=>c.symbol===r[2]);a>0&&(l=js[a])}return{type:"cc",version:n,optionCommercial:o,optionModification:s,optionJurisdication:l}}const Hee=ve({components:{Module:Nn},props:{licenseData:{type:null,default:{type:"cc",version:Lt.pdmark,optionCommercial:null,optionModification:null,optionJurisdication:null}}},setup(){return{state:yt({baseUrl:G.runtime.baseUrl}),dispatch:it().dispatch}},computed:{licenseUrl(){return Ul(this.licenseData)},imageUrl(){return r_(this.licenseData,this.state.baseUrl)},isImageAvailable(){return r_(this.licenseData,this.state.baseUrl)!==null}}}),Vee={class:"mt-3"},Wee=g("div",{class:"mb-3 text-sm font-medium text-gray-700"}," License preview: ",-1),zee={key:0},qee={class:"mb-3 w-full"},Kee={class:"flex justify-center items-center"},Gee=["src"],Xee={class:"mb-3 w-full text-center"},Jee=g("p",{class:"text-sm font-medium text-gray-700"},"This work is licensend under ",-1),Yee=["href"],Zee={key:0},Qee=g("p",{class:"text-sm font-medium text-gray-700"},"No license selected!",-1),ete=[Qee];function tte(e,t,n,r,o,s){return N(),V("div",Vee,[Wee,e.isImageAvailable?(N(),V("div",zee,[g("div",null,[g("div",qee,[g("div",Kee,[g("img",{class:"text-center",src:`${e.imageUrl}`},null,8,Gee)])]),g("div",Xee,[Jee,g("a",{class:"text-sm font-medium text-gray-700",href:`${e.licenseUrl}`},U(e.licenseUrl),9,Yee)])]),e.isImageAvailable?qe("",!0):(N(),V("div",Zee,ete))])):qe("",!0)])}var nte=Be(Hee,[["render",tte]]);const rte=Object.entries(Lt).map(([e,t])=>({key:e,value:t})),ote=Object.entries(hr).map(([e,t])=>({key:e,value:t})),ite=Object.entries(hn).map(([e,t])=>({key:e,value:t})),ste=ve({components:{PodloveButton:Vn,Modal:ja,LicensePreview:nte},data(){return{PodloveLicenseVersionList:rte,PodloveLicenseOptionCommercialList:ote,PodloveLicenseOptionModificationList:ite,PodloveLicenseOptionJurisdication:js}},setup(){return{state:yt({episodeLicenseUrl:G.episode.license_url,podcastLicenseUrl:G.podcast.license_url}),dispatch:it().dispatch}},props:{scope:{type:String,default:cn.Episode}},computed:{isCommercialNModificationNeeded(){return this.getLicenseData().type==="cc"&&(this.getLicenseData().version===Lt.cc3||this.getLicenseData().version===Lt.cc4)},isJurisdicationNeeded(){return this.getLicenseData().type==="cc"&&this.getLicenseData().version===Lt.cc3}},methods:{updateVersion(e){let t=this.getLicenseData();switch(t.type="cc",e.target.value){case Lt.cc0:t.version=Lt.cc0;break;case Lt.pdmark:t.version=Lt.pdmark;break;case Lt.cc3:t.version=Lt.cc3;break;case Lt.cc4:t.version=Lt.cc4;break}this.updateLicenseDataNameNUrl(t)},updateCommercial(e){let t=this.getLicenseData();switch(e.target.value){case hr.yes:t.optionCommercial=hr.yes;break;case hr.no:t.optionCommercial=hr.no;break}this.updateLicenseDataUrl(t)},updateModification(e){let t=this.getLicenseData();switch(e.target.value){case hn.yes:t.optionModification=hn.yes;break;case hn.yesbutshare:t.optionModification=hn.yesbutshare;break;case hn.no:t.optionModification=hn.no;break}this.updateLicenseDataUrl(t)},updateJurisdication(e){let t=this.getLicenseData();const n=e.target.value,r=js.findIndex(o=>o.name===n);r!==void 0&&(t.optionJurisdication=js[r],this.updateLicenseDataUrl(t))},updateLicenseDataUrl(e){this.scope===cn.Episode&&this.dispatch($t({prop:"license_url",value:Ul(e)})),this.scope===cn.Podcast&&this.dispatch(Zl({prop:"license_url",value:Ul(e)}))},updateLicenseDataNameNUrl(e){this.scope===cn.Episode&&(this.dispatch($t({prop:"license_name",value:e.version})),this.dispatch($t({prop:"license_url",value:Ul(e)}))),this.scope===cn.Podcast&&(this.dispatch(Zl({prop:"license_name",value:e.version})),this.dispatch(Zl({prop:"license_url",value:Ul(e)})))},getLicenseData(){return this.scope===cn.Episode?this.state.episodeLicenseUrl===null||this.state.episodeLicenseUrl===void 0?{type:"cc",version:Lt.pdmark,optionCommercial:null,optionModification:null,optionJurisdication:null}:o_(this.state.episodeLicenseUrl):this.state.podcastLicenseUrl===null||this.state.podcastLicenseUrl===void 0?{type:"cc",version:Lt.pdmark,optionCommercial:null,optionModification:null,optionJurisdication:null}:o_(this.state.podcastLicenseUrl)}}}),lte={class:"border-gray-200 border-b pb-2 px-3 py-5"},ate={class:"text-lg leading-6 font-medium text-gray-900"},ute={class:"mb-3"},cte=g("label",{class:"block text-sm font-medium text-gray-700"}," Version: ",-1),dte=["value"],fte=["value"],pte={key:0,class:"mb-3"},hte=g("label",{class:"block text-sm font-medium text-gray-700"}," Allow modifications of your work? ",-1),mte=["value"],vte=["value"],gte={key:1,class:"mb-3"},yte=g("label",{class:"block text-sm font-medium text-gray-700"}," Allow commercial uses of your work? ",-1),bte=["value"],_te=["value"],wte={key:2,class:"mb-3"},Ste=g("label",{class:"block text-sm font-medium text-gray-700"}," License Jurisdiction ",-1),Ete=["value"],xte=["value"],$te={class:"mb-5"};function Cte(e,t,n,r,o,s){var a;const l=X("LicensePreview");return N(),V(Fe,null,[g("div",lte,[g("h3",ate,U(e.__("License Selector","podlove-podcasting-plugin-for-wordpress")),1)]),g("div",null,[g("div",ute,[cte,g("select",{value:e.getLicenseData().version,onInput:t[0]||(t[0]=c=>e.updateVersion(c)),class:"mt-1 block w-full py-2 px-3 border border-gray-300 bg-white rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"},[(N(!0),V(Fe,null,Mt(e.PodloveLicenseVersionList,(c,f)=>(N(),V("option",{value:c.value,key:`version-${f}`},U(c.value),9,fte))),128))],40,dte)]),e.isCommercialNModificationNeeded?(N(),V("div",pte,[hte,g("select",{value:e.getLicenseData().optionModification,onInput:t[1]||(t[1]=c=>e.updateModification(c)),class:"mt-1 block w-full py-2 px-3 border border-gray-300 bg-white rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"},[(N(!0),V(Fe,null,Mt(e.PodloveLicenseOptionModificationList,(c,f)=>(N(),V("option",{value:c.value,key:`modification-${f}`},U(c.value),9,vte))),128))],40,mte)])):qe("",!0),e.isCommercialNModificationNeeded?(N(),V("div",gte,[yte,g("select",{value:e.getLicenseData().optionCommercial,onInput:t[2]||(t[2]=c=>e.updateCommercial(c)),class:"mt-1 block w-full py-2 px-3 border border-gray-300 bg-white rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"},[(N(!0),V(Fe,null,Mt(e.PodloveLicenseOptionCommercialList,(c,f)=>(N(),V("option",{value:c.value,key:`commercial-${f}`},U(c.value),9,_te))),128))],40,bte)])):qe("",!0),e.isJurisdicationNeeded?(N(),V("div",wte,[Ste,g("select",{value:(a=e.getLicenseData().optionJurisdication)==null?void 0:a.name,onInput:t[3]||(t[3]=c=>e.updateJurisdication(c)),class:"mt-1 block w-full py-2 px-3 border border-gray-300 bg-white rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"},[(N(!0),V(Fe,null,Mt(e.PodloveLicenseOptionJurisdication,(c,f)=>(N(),V("option",{value:c.name,key:`jurisdiction-${f}`},U(c.name),9,xte))),128))],40,Ete)])):qe("",!0),g("div",$te,[q(l,{"license-data":e.getLicenseData()},null,8,["license-data"])])])],64)}var J$=Be(ste,[["render",Cte]]);const Tte=ve({components:{PodloveButton:Vn,Modal:ja,LicenseSelector:J$},props:{scope:{type:String,default:cn.Episode}},data(){return{openDialog:!1}},methods:{openSelector(){this.openDialog=!0},closeSelector(){this.openDialog=!1}}});function Ote(e,t,n,r,o,s){const l=X("podlove-button"),a=X("LicenseSelector"),c=X("modal");return N(),V(Fe,null,[q(l,{variant:"secondary",size:"small",onClick:e.openSelector},{default:ye(()=>[Xe(U(e.__("License Selector","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["onClick"]),q(c,{open:e.openDialog,onClose:e.closeSelector},{default:ye(()=>[q(a,{scope:e.scope},null,8,["scope"])]),_:1},8,["open","onClose"])],64)}var Ate=Be(Tte,[["render",Ote]]);const Ite=ve({components:{Module:Nn,LicenseName:Cee,LicenseUrl:Ree,LicenseSelector:J$,LicenseSelectorButton:Ate},props:{scope:{type:String,default:cn.Episode}},computed:{isScopeEpisode(){return this.scope===cn.Episode},getModuleTitle(){return this.scope===cn.Episode?"Episode License":"Podcast License"}}}),Pte={key:0},kte={class:"p-3"},Rte={class:"mb-3"},Lte={class:"mb-3"},Nte={key:0};function Mte(e,t,n,r,o,s){const l=X("LicenseSelectorButton"),a=X("LicenseName"),c=X("LicenseUrl"),f=X("LicenseSelector"),p=X("module");return N(),bt(p,{name:"license",title:e.getModuleTitle},{actions:ye(()=>[e.isScopeEpisode?(N(),V("div",Pte,[q(l,{scope:e.scope},null,8,["scope"])])):qe("",!0)]),default:ye(()=>[g("div",kte,[g("div",Rte,[q(a,{scope:e.scope},null,8,["scope"])]),g("div",Lte,[q(c,{scope:e.scope},null,8,["scope"])]),e.isScopeEpisode?qe("",!0):(N(),V("div",Nte,[q(f,{scope:e.scope},null,8,["scope"])]))])]),_:1},8,["title"])}var Dte=Be(Ite,[["render",Mte]]),Fte={PodloveDescription:eV,PodloveChapters:Hz,PodloveTranscripts:zq,PodloveAuphonic:bJ,PodloveContributors:gZ,PodloveMediaFiles:bQ,PodloveRelatedEpisodes:FQ,PodloveSoundbite:dee,PodloveShowSelect:_ee,PodloveLicense:Dte};window.addEventListener("load",()=>{document.querySelectorAll('[data-client="podlove"]:not([data-loaded="true"])').forEach(e=>{e.setAttribute("data-loaded","true");const t=Kw({components:{...Fte}});h6({store:Fd,app:t}),t.use(fF),t.mount(e)})});globalThis.initPodloveUI=e=>{Fd.dispatch(zM(e))};156 `},{default:ye(()=>[q(h,{class:"-top-2 transform -translate-y-full overflow-auto absolute z-10 py-1 mt-1 w-full max-h-60 text-base bg-white rounded-md ring-1 ring-black ring-opacity-5 shadow-lg focus:outline-none sm:text-sm"},{default:ye(()=>{var y;return[((y=e.filterOptions)==null?void 0:y.length)===0&&e.query!==""?(N(),V("div",xQ," Nothing found. ")):qe("",!0),(N(!0),V(Fe,null,Mt(e.filterOptions,_=>(N(),bt(p,{key:_.title,value:_.id,as:"template"},{default:ye(({active:w,selected:I})=>[g("li",{class:wt([w?"bg-amber-100 text-amber-900":"text-gray-900","relative cursor-default select-none py-2 pl-10 pr-4"])},[g("span",{class:wt([I?"font-medium":"font-normal","block truncate"])},U(_.title),3),I?(N(),V("span",$Q,[q(f,{"aria-hidden":"true",class:"w-5 h-5"})])):qe("",!0)],2)]),_:2},1032,["value"]))),128))]}),_:1})]),_:1}),e.error?(N(),V("div",CQ,U(e.error),1)):qe("",!0)])]),_:1},8,["model-value","multiple"])}var OQ=Be(wQ,[["render",TQ]]);const AQ=ve({name:"PodloveTag",components:{XCircleIcon:j$},props:{value:String,id:Number},methods:{removeTag(){this.$emit("removeTag",this.id)}}}),IQ={class:"m-1 inline-flex"},PQ={class:"flex items-center text-xs font-bold uppercase px-3 py-1 bg-indigo-200 text-indigo-700 rounded-full"};function kQ(e,t,n,r,o,s){const l=X("XCircleIcon");return N(),V("div",IQ,[g("span",PQ,[Ge(U(e.value)+" ",1),g("button",{class:"ml-1",onClick:t[0]||(t[0]=(...a)=>e.removeTag&&e.removeTag(...a))},[q(l,{class:"w-5 h-5"})])])])}var RQ=Be(AQ,[["render",kQ]]);const LQ=ve({components:{Module:Nn,PodloveListbox:OQ,Tag:RQ},setup(){return{state:yt({episodeList:G.relatedEpisodes.episodeList,selectEpisodes:G.relatedEpisodes.selectEpisode}),dispatch:it().dispatch}},created(){this.dispatch(x7())},computed:{fullEpisodeList(){return this.state.episodeList.length==0?this.state.episodeList:this.state.selectEpisodes.length==0?[{id:0,title:"Select all episodes"},...this.state.episodeList]:[{id:-1,title:"Deselect all episodes"},...this.state.episodeList]},selectEpisodeNames(){var e;return(e=this.state.episodeList)==null?void 0:e.filter(t=>this.state.selectEpisodes.includes(t.id))}},methods:{updateRelEpisodes(e){e.includes(0)?this.state.selectEpisodes=this.state.episodeList.map(function(t){return t.id}):e.includes(-1)?this.state.selectEpisodes=[]:this.state.selectEpisodes=e,this.dispatch(Ux(this.state.selectEpisodes))},removeTag(e){const t=this.state.selectEpisodes.findIndex(n=>n==e);this.state.selectEpisodes.splice(t,1)}}}),NQ={class:"p-3"},MQ={class:"mt-2 text-sm text-gray-500"},DQ={class:"pl-3 pb-3"};function FQ(e,t,n,r,o,s){const l=X("PodloveListbox"),a=X("Tag"),c=X("module");return N(),bt(c,{name:"relatedEpisodes",title:e.__("Related episodes","podlove-podcasting-plugin-for-wordpress")},{default:ye(()=>[g("div",NQ,[g("div",null,[q(l,{placeholder:"Select episode",options:e.fullEpisodeList,selectValues:e.state.selectEpisodes,onUpdate:t[0]||(t[0]=f=>e.updateRelEpisodes(f)),multiple:""},null,8,["options","selectValues"])]),g("p",MQ,U(e.__("Select related episodes to this episode.","podlove-podcasting-plugin-for-wordpress")),1)]),g("div",DQ,[(N(!0),V(Fe,null,Mt(e.selectEpisodeNames,f=>(N(),bt(a,{value:f.title,id:Number(f.id),onRemoveTag:t[1]||(t[1]=p=>e.removeTag(p))},null,8,["value","id"]))),256))])]),_:1},8,["title"])}var BQ=Be(LQ,[["render",FQ]]);const UQ=ve({components:{PodloveButton:Vn},setup(){return{dispatch:it().dispatch}},methods:{clearSoundbite(){this.dispatch($t({prop:"soundbite_start",value:null})),this.dispatch($t({prop:"soundbite_duration",value:null})),this.dispatch($t({prop:"soundbite_title",value:null}))}}});function jQ(e,t,n,r,o,s){const l=X("podlove-button");return N(),bt(l,{variant:"secondary",size:"small",onClick:t[0]||(t[0]=a=>e.clearSoundbite())},{default:ye(()=>[Ge(U(e.__("Clear","podlove-podcasting-plugin-for-wordpress")),1)]),_:1})}var HQ=Be(UQ,[["render",jQ]]);const VQ=ve({setup(){return{state:yt({soundbite_start:G.episode.soundbite_start,soundbite_duration:G.episode.soundbite_duration,soundbite_title:G.episode.soundbite_title}),dispatch:it().dispatch}},computed:{soundbite_end(){if(this.state.soundbite_start!=null&&this.state.soundbite_duration!=null){let e=Nt.fromString(this.state.soundbite_start).totalMs,t=Nt.fromString(this.state.soundbite_duration).totalMs,n=e+t;return new Nt(n).pretty}return""}},methods:{updateSoundbiteStart(e){const t=e.target.value;let n=Nt.fromString(t).totalMs;this.dispatch($t({prop:"soundbite_start",value:new Nt(n).pretty}))},updateSoundbiteEnd(e){const t=e.target.value;let n=Nt.fromString(t).totalMs,r=Nt.fromString(this.state.soundbite_start).totalMs;if(r<n){let o=n-r;this.dispatch($t({prop:"soundbite_duration",value:new Nt(o).pretty}))}},updateSoundbiteDuration(e){const t=e.target.value;let n=Nt.fromString(t).totalMs;this.dispatch($t({prop:"soundbite_duration",value:new Nt(n).pretty}))},updateSoundbiteTitle(e){this.dispatch($t({prop:"soundbite_title",value:e.target.value}))}}}),WQ={class:"grid md:grid-cols-4 md:grid-rows-1 sm:grid-rows-4 p-3"},zQ={class:"mb-5 ml-5"},qQ={for:"soundbite-start",class:"block text-sm font-medium text-gray-700"},KQ={class:"mt-1"},GQ=["value"],XQ={class:"mb-5 ml-5"},JQ={for:"soundbite-end",class:"block text-sm font-medium text-gray-700"},YQ={class:"mt-1"},ZQ=["value"],QQ={class:"mb-5 ml-5"},eee={for:"soundbite-duration",class:"block text-sm font-medium text-gray-700"},tee={class:"mt-1"},nee=["value"],ree={class:"mb-5 ml-5 md:mr-5"},oee={for:"soundbite-title",class:"block text-sm font-medium text-gray-700"},iee={class:"text-xs"},see={class:"mt-1"},lee=["value"];function aee(e,t,n,r,o,s){return N(),V("div",WQ,[g("div",zQ,[g("label",qQ,U(e.__("Start","podlove-podcasting-plugin-for-wordpress")),1),g("div",KQ,[g("input",{name:"soundbite-start",type:"text",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",placeholder:"HH:MM:SS",value:e.state.soundbite_start,onChange:t[0]||(t[0]=l=>e.updateSoundbiteStart(l))},null,40,GQ)])]),g("div",XQ,[g("label",JQ,U(e.__("End","podlove-podcasting-plugin-for-wordpress")),1),g("div",YQ,[g("input",{name:"soundbite-end",type:"text",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",placeholder:"HH:MM:SS",value:e.soundbite_end,onChange:t[1]||(t[1]=l=>e.updateSoundbiteEnd(l))},null,40,ZQ)])]),g("div",QQ,[g("label",eee,U(e.__("Duration","podlove-podcasting-plugin-for-wordpress")),1),g("div",tee,[g("input",{name:"soundbite-duration",type:"text",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",placeholder:"HH:MM:SS",value:e.state.soundbite_duration,onChange:t[2]||(t[2]=l=>e.updateSoundbiteDuration(l))},null,40,nee)])]),g("div",ree,[g("label",oee,[Ge(U(e.__("Soundbite title","podlove-podcasting-plugin-for-wordpress"))+" ",1),g("span",iee,U(e.__("(optional)","podlove-podcasting-plugin-for-wordpress")),1)]),g("div",see,[g("input",{name:"soundbite-title",type:"text",class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",value:e.state.soundbite_title,onChange:t[3]||(t[3]=l=>e.updateSoundbiteTitle(l))},null,40,lee)])])])}var uee=Be(VQ,[["render",aee]]);const cee=ve({components:{Module:Nn,SoundbiteForm:uee,SoundbiteClear:HQ},setup(){return{dispatch:it().dispatch}},created(){this.dispatch(Od())}});function dee(e,t,n,r,o,s){const l=X("soundbite-clear"),a=X("soundbite-form"),c=X("module");return N(),bt(c,{name:"soundbite",title:e.__("Soundbite","podlove-podcasting-plugin-for-wordpress")},{actions:ye(()=>[q(l)]),default:ye(()=>[q(a)]),_:1},8,["title"])}var fee=Be(cee,[["render",dee]]);const pee=ve({components:{},setup(){return{state:yt({shows:G.shows.list,current:G.episode.currentShow}),dispatch:it().dispatch}},computed:{shows(){return this.state.shows},current(){return this.state.current||""}},methods:{setShow(e){this.dispatch($t({prop:"show",value:e!=null?e:""}))}},created(){this.dispatch(jx())}}),hee={class:"flex items-center"},mee=["checked"],vee={for:"podlove-show-default",class:"ml-2 block text-sm leading-6 text-gray-900"},gee={class:"flex items-center"},yee=["id","value","onInput","checked"],bee=["for"];function _ee(e,t,n,r,o,s){return N(),V("div",null,[g("div",hee,[g("input",{id:"podlove-show-default",name:"podlove-episode-show",type:"radio",class:"h-4 w-4 border-gray-300 text-indigo-600 focus:ring-indigo-600",value:null,onInput:t[0]||(t[0]=l=>e.setShow(null)),checked:e.current===""},null,40,mee),g("label",vee,U(e.__("Podcast (no show assignment)","podlove-podcasting-plugin-for-wordpress")),1)]),(N(!0),V(Fe,null,Mt(e.shows,l=>(N(),V("div",gee,[g("input",{id:"podlove-show-"+l.slug,name:"podlove-episode-show",type:"radio",class:"h-4 w-4 border-gray-300 text-indigo-600 focus:ring-indigo-600",value:l.id,onInput:a=>e.setShow(l.slug),checked:l.slug===e.current},null,40,yee),g("label",{for:"podlove-show-"+l.slug,class:"ml-2 block text-sm leading-6 text-gray-900"},U(l.title),9,bee)]))),256))])}var wee=Be(pee,[["render",_ee],["__scopeId","data-v-7b1f1f84"]]),Lt=(e=>(e.cc0="Public Domain License",e.pdmark="Public Domain Mark License",e.cc3="Creative Commons 3.0 and earlier",e.cc4="Creative Commons 4.0",e))(Lt||{}),hr=(e=>(e.yes="Yes",e.no="No",e))(hr||{}),hn=(e=>(e.yes="Yes",e.yesbutshare="Yes, as long as others share alike",e.no="No",e))(hn||{}),cn=(e=>(e.Episode="Episode",e.Podcast="Podcast",e))(cn||{});const js=[{symbol:"international",name:"International",version:"3.0"},{symbol:"ar",name:"Argentina",version:"2.5"},{symbol:"au",name:"Australia",version:"3.0"},{symbol:"at",name:"Austria",version:"3.0"},{symbol:"be",name:"Belgium",version:"2.0"},{symbol:"br",name:"Brazil",version:"3.0"},{symbol:"bg",name:"Bulgaria",version:"2.5"},{symbol:"ca",name:"Canada",version:"2.5"},{symbol:"cl",name:"Chile",version:"3.0"},{symbol:"cn",name:"China Mainland",version:"3.0"},{symbol:"co",name:"Colombia",version:"2.5"},{symbol:"cr",name:"Costa Rica",version:"3.0"},{symbol:"hr",name:"Croatia",version:"3.0"},{symbol:"cz",name:"Czech Republic",version:"3.0"},{symbol:"dk",name:"Denmark",version:"2.5"},{symbol:"ec",name:"Ecuador",version:"3.0"},{symbol:"eg",name:"Egypt",version:"3.0"},{symbol:"ee",name:"Estonia",version:"3.0"},{symbol:"fi",name:"Finland",version:"1.0"},{symbol:"fr",name:"France",version:"3.0"},{symbol:"de",name:"Germany",version:"3.0"},{symbol:"gr",name:"Greece",version:"3.0"},{symbol:"gt",name:"Guatemala",version:"3.0"},{symbol:"hk",name:"Hong Kong",version:"3.0"},{symbol:"hu",name:"Hungary",version:"2.5"},{symbol:"igo",name:"IGO",version:"3.0"},{symbol:"in",name:"India",version:"2.5"},{symbol:"ie",name:"Ireland",version:"3.0"},{symbol:"il",name:"Israel",version:"2.5"},{symbol:"it",name:"Italy",version:"3.0"},{symbol:"jp",name:"Japan",version:"2.1"},{symbol:"lu",name:"Luxembourg",version:"3.0"},{symbol:"mk",name:"Macedonia",version:"2.5"},{symbol:"my",name:"Malaysia",version:"2.5"},{symbol:"mt",name:"Malta",version:"2.5"},{symbol:"mx",name:"Mexico",version:"2.5"},{symbol:"nl",name:"Netherlands",version:"3.0"},{symbol:"nz",name:"New Zealand",version:"3.0"},{symbol:"no",name:"Norway",version:"3.0"},{symbol:"pe",name:"Peru",version:"2.5"},{symbol:"ph",name:"Philippines",version:"3.0"},{symbol:"pl",name:"Poland",version:"3.0"},{symbol:"pt",name:"Portugal",version:"3.0"},{symbol:"pr",name:"Puerto Rico",version:"3.0"},{symbol:"ro",name:"Romania",version:"3.0"},{symbol:"rs",name:"Serbia",version:"3.0"},{symbol:"sg",name:"Singapore",version:"3.0"},{symbol:"si",name:"Slovenia",version:"2.5"},{symbol:"za",name:"South Africa",version:"2.5"},{symbol:"kp",name:"South Korea",version:"2.0"},{symbol:"es",name:"Spain",version:"3.0"},{symbol:"se",name:"Sweden",version:"2.5"},{symbol:"ch",name:"Switzerland",version:"3.0"},{symbol:"tw",name:"Taiwan",version:"3.0"},{symbol:"th",name:"Thailand",version:"3.0"},{symbol:"gb",name:"UK: England & Wales",version:"2.0"},{symbol:"gb_sc",name:"UK: Scotland",version:"2.5"},{symbol:"ug",name:"Uganda",version:"3.0"},{symbol:"us",name:"United States",version:"3.0"},{symbol:"vn",name:"Vietnam",version:"3.0"}],See=ve({components:{Module:Nn},props:{scope:{type:String,default:cn.Episode}},setup(){return{state:yt({episodeLicenseName:G.episode.license_name,podcastLicenseName:G.podcast.license_name}),dispatch:it().dispatch}},created(){this.dispatch(Od())},computed:{getLicenseName(){return this.scope==cn.Episode?this.state.episodeLicenseName:this.state.podcastLicenseName}},methods:{updateLicenseName(e){this.scope===cn.Episode&&this.dispatch($t({prop:"license_name",value:e.target.value})),this.scope===cn.Podcast&&this.dispatch(Zl({prop:"license_name",value:e.target.value}))}}}),Eee={for:"episode-license-name",class:"block text-sm font-medium text-gray-700"},xee={class:"mt-1"},$ee=["value"];function Cee(e,t,n,r,o,s){return N(),V("div",null,[g("label",Eee,U(e.__("License name","podlove-podcasting-plugin-for-wordpress")),1),g("div",xee,[g("input",{name:"episode-license-name",type:"text",value:e.getLicenseName,onInput:t[0]||(t[0]=(...l)=>e.updateLicenseName&&e.updateLicenseName(...l)),class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md"},null,40,$ee)])])}var Tee=Be(See,[["render",Cee]]);const Oee=ve({components:{Module:Nn},props:{scope:{type:String,default:cn.Episode}},setup(){return{state:yt({episodeLicenseUrl:G.episode.license_url,podcastLicenseUrl:G.podcast.license_url}),dispatch:it().dispatch}},created(){this.dispatch(Od())},computed:{getLicenseUrl(){return this.scope==cn.Episode?this.state.episodeLicenseUrl:this.state.podcastLicenseUrl}},methods:{updateLicenseUrl(e){this.scope===cn.Episode&&this.dispatch($t({prop:"license_url",value:e.target.value})),this.scope===cn.Podcast&&this.dispatch(Zl({prop:"license_url",value:e.target.value}))}}}),Aee={for:"episode-license-name",class:"block text-sm font-medium text-gray-700"},Iee={class:"mt-1"},Pee=["value"],kee={class:"mt-2 text-sm text-gray-500"};function Ree(e,t,n,r,o,s){return N(),V("div",null,[g("label",Aee,U(e.__("License url","podlove-podcasting-plugin-for-wordpress")),1),g("div",Iee,[g("input",{name:"episode-license-name",type:"text",value:e.getLicenseUrl,onInput:t[0]||(t[0]=(...l)=>e.updateLicenseUrl&&e.updateLicenseUrl(...l)),class:"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md"},null,40,Pee)]),g("p",kee,U(e.__("Example: http://creativecommons.org/licenses/by/3.0/","podlove-podcasting-plugin-for-wordpress")),1)])}var Lee=Be(Oee,[["render",Ree]]),Nee="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFgAAAAfCAMAAABUFvrSAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAPBQTFRFLy8v7+/vz8/PHx8fDw8P+vn3X19fj4+P39/fn5+fb29vT09Pr6+v+fn53t7eZWVl6urq/f395+fn5eXl9/f38fHxMTEx+/v7jo6Ozc3N2dnZ8/PzhISE/v7+5OTk9vXz6ejoPj4+kJCQ3d3d6unnxcXFi4uL0tLS5ubm9PT0QUFB4uLi1dXV7Ozsvr6+LCwsy8vL6urnnp6ezs7O+Pj48vLyenp69fX1+fj2urq6CgsJ09PTl5eXt7e31tbW4eHhjY2N9vb2U1NTGRkZTU1NbW1tioqKf39/ysrK6Oflv7+/Pz8/7erh////AAAA////iBrkuAAAAFB0Uk5T/////////////////////////////////////////////////////////////////////////////////////////////////////////wATc6Z5AAACrklEQVR42rSW53bbMAyFOVSRGnbsZji7e++992ALFsj7v00BaiTpsfzDtXGOEw3qI3B1QUqd0FriRNGftQQpwrXEebAHDr1qsC9tI48Nejq69+g/Re7B4czFbPfLZFytBKwVH1eFQTRF5MPvn45vqRWAhatMJwrI2fb4zds0IoYQctbHys/yCUuWp/oCp5AXKZEhcM4j5L8BELxmGX5M3h2mEQHBY4gYiX8RjUEgQLnD8jn0GqtBcM0yCC/NHcUWnPOH4z3VgIk09OBIRvdgy5Nk4AbBlrKWlshikYyubI9fNuBQYNGDOYoeHLFcpLEhKtJ4olLg0Jhkf3KjlQKKrAeXsUZ1CuZsi8GMeVZJuBKIqFFKykS7B+OdVgoehyBEAYOA+SWKxl5XZcpoLjim6jEj8tBpwbrkW5sbPTjV5JpbLtWEAlaeC86GwIofloFcnKIo2aX84+jixtmuifMBalhj6sEF2cRPIv8DXqJBTjO2VEMrRZ9xzgtT4GQrgFqRAh5QisOs/FGQK2BFQC3WmA/gVOMGzK4wbJyI3mlto3ST9Aj3Bj8RxRnyTuNiV5CXJhRXaHbF1mbnCvZDzZgqYWqLAvaeH2zAZgBs0vSNj5lLpvHxtYNx13kVRpEgOddg4NbnS7k3DdhhPR88v/Pi6MFhB3YM7grnemqepUCj0aYrfG8A3OrarBWVbla7h89v7/Qt7XmRMiGRIssFkPGpQ9eArR4Ai7DCk9XNt6toOdt+n0aIKwreXIJHU8n7LyFzLgKj6iK5QrFN1PB6bKFbj2vG5NNX97+tYgeRUpQDrcHJ1pcfjSZ3V7TnnWnYrD6avfi6os0UdWh3aeU0Trf2n169+XPp+Hz+u0L33xXTO5sf9x7/WjqeMXh2YU68vqSfXP69fFynNX67rSn+CjAANTLO7qEvlcgAAAAASUVORK5CYII=",Mee="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFgAAAAfCAMAAABUFvrSAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAPNQTFRFv7+/7+/vX19fDw8PHx8fn5+fLy8v39/fz8/Pb29vr6+vT09Pj4+P+fn5/f39ZWVl5eXlzs7O6urq8fHx9/f36ejovr6++/v7jY2N4+Pj2dnZp6enzc3Nenp69PT08/PzXFxc8vLyTk5OIyMj9fX13d3d5ubmXl5eDAwMNjY2JiYmra2t1NTUxcXF4uLiLCsrFxcXVVVV/v7+GRkZMTExW1tbyMjIt7e3np6ednZ2mJiY7Ozsjo6O1dXV3t7e7e3t09PTkJCQi4uL7u7uy8vLU1NTCgsJ4eHh1tbWioqKysrK5+fnf39/Pz8/7erh////AAAA7t9IFQAAArpJREFUeNq0ludy2zAQhA8dLJLl3u303nt3ejMuwPs/Te4AmrIzYn7YEjTUsIAfib1dgBDTQlqE9GchLUGKC2n/gD2AnztYGCzyNCaORz8eXlDkHmzU9KS+ezB5cWcuYCGZV9UAdcVPuLR+7+XVeYBJBWVORGkJ/Xzb737PPTCEYJMOmjdNB1IlGfhKwHwV/wOuUrJiqryzKe1vL7/OPULugPRs2pAPIEF2fwypjXRbMwiGjisMvRDbQuiU7j/Ye1TASUXowZi86MEqeqUEDIJ5SK6vH5ZHXVm9vl/AoY2mB3sXTQ9GHuuwxj7vFd14h4dLxdy5sVHAVFHVgyuEqKdguknKITBd1N1hgEqWqKS09fajLVJQs7HGOloG15HYiMgaC9FIGsEAGOm2kg7V9iVU6ebhh8c9ONXs9SxTloLDRWCk/k4PgW0efVFLVS52BsS1ydKpnhbtjPsV4rDGxVInEicJHXh0vHSxgNhUdeC6zcNCcwrMAeE0Yg2GQxL4FNVLlz/UocnxmakxS9cWQxSxNTGaAiZXOLIfRgFRkDsoD57tGLgOyM6Imj0zA0zqcg2yK3ztobPPu9Hxs6545Ic6l4ISGI3OPneCPFnAMACui8id15WPLk9Ey2uTWx24IYf5zrlOVNHxCKTzBWzoNxMcdVJiSsZiYxwfvukiTRuCUORKwrT0JgDJRC9YAzpDth4AG34nDnKF2PAkJ8hZG6OV2yeRFo5kqCufJwsXJYASnpIeClgPgfm0PLWuCJqv5Obqbj+71fQgyo5jUbGNCkBy6J0rYB7RbDC/oe1XO+Cjo2vvn85jBbF5saPUuew3+2W00sxlzRNn5r/wZPPytzktpiRgt5wq6eJ4befVp8+/zt22zn5XAK0gJks9Ppj83Pv6+9xteehLaDxaXVk/Pn9bTwv8dltQ+yvAAF/L4Ldao5NwAAAAAElFTkSuQmCC",Dee="/wp-content/plugins/podlove-publisher/client/dist/0_0.png",Fee="/wp-content/plugins/podlove-publisher/client/dist/0_1.png",Bee="/wp-content/plugins/podlove-publisher/client/dist/1_0.png",Uee="/wp-content/plugins/podlove-publisher/client/dist/1_1.png",jee="/wp-content/plugins/podlove-publisher/client/dist/10_0.png",Hee="/wp-content/plugins/podlove-publisher/client/dist/10_1.png";function Ul(e){if(e.type===null||e.type!="cc")return null;if(e.version===Lt.cc0)return"http://creativecommons.org/publicdomain/zero/1.0/";if(e.version===Lt.pdmark)return"http://creativecommons.org/publicdomain/mark/1.0/";if(e.version===Lt.cc3){let t="http://creativecommons.org/licenses/by";return e.optionCommercial===hr.no&&(t=t+"-nc"),e.optionModification===hn.yes?t=t+"/":e.optionModification===hn.no?t=t+"-nd/":t=t+"-sa/",e.optionJurisdication===null||e.optionJurisdication.symbol==="international"?t=t+"3.0/":t=t+e.optionJurisdication.version+"/"+e.optionJurisdication.symbol+"/",t+"deed.en"}if(e.version===Lt.cc4){let t="http://creativecommons.org/licenses/by";return e.optionCommercial==hr.no&&(t=t+"-nc"),e.optionModification==hn.yes?t=t+"/":e.optionModification==hn.no?t=t+"-nd/":t=t+"-sa/",t+"4.0"}return null}function r_(e,t){if(e.type===null||e.type!=="cc")return null;if(e.version===Lt.cc0)return Nee;if(e.version===Lt.pdmark)return Mee;if(e.optionModification===null||e.optionCommercial===null)return null;switch(e.optionModification){case hn.no:return e.optionCommercial===hr.no?Dee:Fee;case hn.yes:return e.optionCommercial===hr.no?Bee:Uee;case hn.yesbutshare:return e.optionCommercial===hr.no?jee:Hee}}function o_(e){const t=e.toLowerCase();if(t.indexOf("creativecommons.org")<0)return{type:null,version:null,optionCommercial:null,optionModification:null,optionJurisdication:null};let n=null;t.indexOf("/publicdomain/zero/")>=0?n=Lt.cc0:t.indexOf("/publicdomain/mark/")>=0?n=Lt.pdmark:t.indexOf("/4.0")>=0?n=Lt.cc4:n=Lt.cc3;const r=t.split("/").slice(4);let o=hr.yes;r[0].includes("nc")&&(o=hr.no);let s=hn.yes;r[0].includes("sa")?s=hn.yesbutshare:r[0].includes("nd")&&(s=hn.no);let l=js[0];if(r.length>2){const a=js.findIndex(c=>c.symbol===r[2]);a>0&&(l=js[a])}return{type:"cc",version:n,optionCommercial:o,optionModification:s,optionJurisdication:l}}const Vee=ve({components:{Module:Nn},props:{licenseData:{type:null,default:{type:"cc",version:Lt.pdmark,optionCommercial:null,optionModification:null,optionJurisdication:null}}},setup(){return{state:yt({baseUrl:G.runtime.baseUrl}),dispatch:it().dispatch}},computed:{licenseUrl(){return Ul(this.licenseData)},imageUrl(){return r_(this.licenseData,this.state.baseUrl)},isImageAvailable(){return r_(this.licenseData,this.state.baseUrl)!==null}}}),Wee={class:"mt-3"},zee=g("div",{class:"mb-3 text-sm font-medium text-gray-700"}," License preview: ",-1),qee={key:0},Kee={class:"mb-3 w-full"},Gee={class:"flex justify-center items-center"},Xee=["src"],Jee={class:"mb-3 w-full text-center"},Yee=g("p",{class:"text-sm font-medium text-gray-700"},"This work is licensend under ",-1),Zee=["href"],Qee={key:0},ete=g("p",{class:"text-sm font-medium text-gray-700"},"No license selected!",-1),tte=[ete];function nte(e,t,n,r,o,s){return N(),V("div",Wee,[zee,e.isImageAvailable?(N(),V("div",qee,[g("div",null,[g("div",Kee,[g("div",Gee,[g("img",{class:"text-center",src:`${e.imageUrl}`},null,8,Xee)])]),g("div",Jee,[Yee,g("a",{class:"text-sm font-medium text-gray-700",href:`${e.licenseUrl}`},U(e.licenseUrl),9,Zee)])]),e.isImageAvailable?qe("",!0):(N(),V("div",Qee,tte))])):qe("",!0)])}var rte=Be(Vee,[["render",nte]]);const ote=Object.entries(Lt).map(([e,t])=>({key:e,value:t})),ite=Object.entries(hr).map(([e,t])=>({key:e,value:t})),ste=Object.entries(hn).map(([e,t])=>({key:e,value:t})),lte=ve({components:{PodloveButton:Vn,Modal:ja,LicensePreview:rte},data(){return{PodloveLicenseVersionList:ote,PodloveLicenseOptionCommercialList:ite,PodloveLicenseOptionModificationList:ste,PodloveLicenseOptionJurisdication:js}},setup(){return{state:yt({episodeLicenseUrl:G.episode.license_url,podcastLicenseUrl:G.podcast.license_url}),dispatch:it().dispatch}},props:{scope:{type:String,default:cn.Episode}},computed:{isCommercialNModificationNeeded(){return this.getLicenseData().type==="cc"&&(this.getLicenseData().version===Lt.cc3||this.getLicenseData().version===Lt.cc4)},isJurisdicationNeeded(){return this.getLicenseData().type==="cc"&&this.getLicenseData().version===Lt.cc3}},methods:{updateVersion(e){let t=this.getLicenseData();switch(t.type="cc",e.target.value){case Lt.cc0:t.version=Lt.cc0;break;case Lt.pdmark:t.version=Lt.pdmark;break;case Lt.cc3:t.version=Lt.cc3;break;case Lt.cc4:t.version=Lt.cc4;break}this.updateLicenseDataNameNUrl(t)},updateCommercial(e){let t=this.getLicenseData();switch(e.target.value){case hr.yes:t.optionCommercial=hr.yes;break;case hr.no:t.optionCommercial=hr.no;break}this.updateLicenseDataUrl(t)},updateModification(e){let t=this.getLicenseData();switch(e.target.value){case hn.yes:t.optionModification=hn.yes;break;case hn.yesbutshare:t.optionModification=hn.yesbutshare;break;case hn.no:t.optionModification=hn.no;break}this.updateLicenseDataUrl(t)},updateJurisdication(e){let t=this.getLicenseData();const n=e.target.value,r=js.findIndex(o=>o.name===n);r!==void 0&&(t.optionJurisdication=js[r],this.updateLicenseDataUrl(t))},updateLicenseDataUrl(e){this.scope===cn.Episode&&this.dispatch($t({prop:"license_url",value:Ul(e)})),this.scope===cn.Podcast&&this.dispatch(Zl({prop:"license_url",value:Ul(e)}))},updateLicenseDataNameNUrl(e){this.scope===cn.Episode&&(this.dispatch($t({prop:"license_name",value:e.version})),this.dispatch($t({prop:"license_url",value:Ul(e)}))),this.scope===cn.Podcast&&(this.dispatch(Zl({prop:"license_name",value:e.version})),this.dispatch(Zl({prop:"license_url",value:Ul(e)})))},getLicenseData(){return this.scope===cn.Episode?this.state.episodeLicenseUrl===null||this.state.episodeLicenseUrl===void 0?{type:"cc",version:Lt.pdmark,optionCommercial:null,optionModification:null,optionJurisdication:null}:o_(this.state.episodeLicenseUrl):this.state.podcastLicenseUrl===null||this.state.podcastLicenseUrl===void 0?{type:"cc",version:Lt.pdmark,optionCommercial:null,optionModification:null,optionJurisdication:null}:o_(this.state.podcastLicenseUrl)}}}),ate={class:"border-gray-200 border-b pb-2 px-3 py-5"},ute={class:"text-lg leading-6 font-medium text-gray-900"},cte={class:"mb-3"},dte=g("label",{class:"block text-sm font-medium text-gray-700"}," Version: ",-1),fte=["value"],pte=["value"],hte={key:0,class:"mb-3"},mte=g("label",{class:"block text-sm font-medium text-gray-700"}," Allow modifications of your work? ",-1),vte=["value"],gte=["value"],yte={key:1,class:"mb-3"},bte=g("label",{class:"block text-sm font-medium text-gray-700"}," Allow commercial uses of your work? ",-1),_te=["value"],wte=["value"],Ste={key:2,class:"mb-3"},Ete=g("label",{class:"block text-sm font-medium text-gray-700"}," License Jurisdiction ",-1),xte=["value"],$te=["value"],Cte={class:"mb-5"};function Tte(e,t,n,r,o,s){var a;const l=X("LicensePreview");return N(),V(Fe,null,[g("div",ate,[g("h3",ute,U(e.__("License Selector","podlove-podcasting-plugin-for-wordpress")),1)]),g("div",null,[g("div",cte,[dte,g("select",{value:e.getLicenseData().version,onInput:t[0]||(t[0]=c=>e.updateVersion(c)),class:"mt-1 block w-full py-2 px-3 border border-gray-300 bg-white rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"},[(N(!0),V(Fe,null,Mt(e.PodloveLicenseVersionList,(c,f)=>(N(),V("option",{value:c.value,key:`version-${f}`},U(c.value),9,pte))),128))],40,fte)]),e.isCommercialNModificationNeeded?(N(),V("div",hte,[mte,g("select",{value:e.getLicenseData().optionModification,onInput:t[1]||(t[1]=c=>e.updateModification(c)),class:"mt-1 block w-full py-2 px-3 border border-gray-300 bg-white rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"},[(N(!0),V(Fe,null,Mt(e.PodloveLicenseOptionModificationList,(c,f)=>(N(),V("option",{value:c.value,key:`modification-${f}`},U(c.value),9,gte))),128))],40,vte)])):qe("",!0),e.isCommercialNModificationNeeded?(N(),V("div",yte,[bte,g("select",{value:e.getLicenseData().optionCommercial,onInput:t[2]||(t[2]=c=>e.updateCommercial(c)),class:"mt-1 block w-full py-2 px-3 border border-gray-300 bg-white rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"},[(N(!0),V(Fe,null,Mt(e.PodloveLicenseOptionCommercialList,(c,f)=>(N(),V("option",{value:c.value,key:`commercial-${f}`},U(c.value),9,wte))),128))],40,_te)])):qe("",!0),e.isJurisdicationNeeded?(N(),V("div",Ste,[Ete,g("select",{value:(a=e.getLicenseData().optionJurisdication)==null?void 0:a.name,onInput:t[3]||(t[3]=c=>e.updateJurisdication(c)),class:"mt-1 block w-full py-2 px-3 border border-gray-300 bg-white rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"},[(N(!0),V(Fe,null,Mt(e.PodloveLicenseOptionJurisdication,(c,f)=>(N(),V("option",{value:c.name,key:`jurisdiction-${f}`},U(c.name),9,$te))),128))],40,xte)])):qe("",!0),g("div",Cte,[q(l,{"license-data":e.getLicenseData()},null,8,["license-data"])])])],64)}var J$=Be(lte,[["render",Tte]]);const Ote=ve({components:{PodloveButton:Vn,Modal:ja,LicenseSelector:J$},props:{scope:{type:String,default:cn.Episode}},data(){return{openDialog:!1}},methods:{openSelector(){this.openDialog=!0},closeSelector(){this.openDialog=!1}}});function Ate(e,t,n,r,o,s){const l=X("podlove-button"),a=X("LicenseSelector"),c=X("modal");return N(),V(Fe,null,[q(l,{variant:"secondary",size:"small",onClick:e.openSelector},{default:ye(()=>[Ge(U(e.__("License Selector","podlove-podcasting-plugin-for-wordpress")),1)]),_:1},8,["onClick"]),q(c,{open:e.openDialog,onClose:e.closeSelector},{default:ye(()=>[q(a,{scope:e.scope},null,8,["scope"])]),_:1},8,["open","onClose"])],64)}var Ite=Be(Ote,[["render",Ate]]);const Pte=ve({components:{Module:Nn,LicenseName:Tee,LicenseUrl:Lee,LicenseSelector:J$,LicenseSelectorButton:Ite},props:{scope:{type:String,default:cn.Episode}},computed:{isScopeEpisode(){return this.scope===cn.Episode},getModuleTitle(){return this.scope===cn.Episode?"Episode License":"Podcast License"}}}),kte={key:0},Rte={class:"p-3"},Lte={class:"mb-3"},Nte={class:"mb-3"},Mte={key:0};function Dte(e,t,n,r,o,s){const l=X("LicenseSelectorButton"),a=X("LicenseName"),c=X("LicenseUrl"),f=X("LicenseSelector"),p=X("module");return N(),bt(p,{name:"license",title:e.getModuleTitle},{actions:ye(()=>[e.isScopeEpisode?(N(),V("div",kte,[q(l,{scope:e.scope},null,8,["scope"])])):qe("",!0)]),default:ye(()=>[g("div",Rte,[g("div",Lte,[q(a,{scope:e.scope},null,8,["scope"])]),g("div",Nte,[q(c,{scope:e.scope},null,8,["scope"])]),e.isScopeEpisode?qe("",!0):(N(),V("div",Mte,[q(f,{scope:e.scope},null,8,["scope"])]))])]),_:1},8,["title"])}var Fte=Be(Pte,[["render",Dte]]),Bte={PodloveDescription:tV,PodloveChapters:Vz,PodloveTranscripts:qq,PodloveAuphonic:_J,PodloveContributors:yZ,PodloveMediaFiles:_Q,PodloveRelatedEpisodes:BQ,PodloveSoundbite:fee,PodloveShowSelect:wee,PodloveLicense:Fte};window.addEventListener("load",()=>{document.querySelectorAll('[data-client="podlove"]:not([data-loaded="true"])').forEach(e=>{e.setAttribute("data-loaded","true");const t=Kw({components:{...Bte}});h6({store:Fd,app:t}),t.use(fF),t.mount(e)})});globalThis.initPodloveUI=e=>{Fd.dispatch(zM(e))}; -
podlove-podcasting-plugin-for-wordpress/trunk/lib/modules/transcripts/transcripts.php
r3050611 r3126894 35 35 36 36 add_action('wp', [$this, 'serve_transcript_file']); 37 38 add_action('podlove_xml_export', [$this, 'expandExportFile']); 39 add_filter('podlove_import_jobs', [$this, 'expandImport']); 37 40 38 41 // external assets … … 516 519 } 517 520 521 /** 522 * Expands "Import/Export" module: export logic. 523 */ 524 public function expandExportFile(\SimpleXMLElement $xml) 525 { 526 \Podlove\Modules\ImportExport\Export\PodcastExporter::exportTable($xml, 'transcripts', 'transcript', '\Podlove\Modules\Transcripts\Model\Transcript'); 527 \Podlove\Modules\ImportExport\Export\PodcastExporter::exportTable($xml, 'voice_assignments', 'voice_assignment', '\Podlove\Modules\Transcripts\Model\VoiceAssignment'); 528 } 529 530 /** 531 * Expands "Import/Export" module: import logic. 532 * 533 * @param mixed $jobs 534 */ 535 public function expandImport($jobs) 536 { 537 $jobs[] = '\Podlove\Modules\Transcripts\Jobs\ImportTranscriptsJob'; 538 $jobs[] = '\Podlove\Modules\Transcripts\Jobs\ImportVoiceAssignmentsJob'; 539 540 return $jobs; 541 } 542 518 543 private function print_rss_feed_links($podcast, $episode) 519 544 { 520 545 if ($podcast->feed_transcripts == 'none') { 521 546 return; 522 } else if ($podcast->feed_transcripts == 'generated') { 547 } 548 if ($podcast->feed_transcripts == 'generated') { 523 549 if (!Transcript::exists_for_episode($episode->id)) { 524 550 return; … … 535 561 536 562 return; 537 } elseif (preg_match('/^asset_(?<id>\d+)$/', $podcast->feed_transcripts, $matches) === 1) { 563 } 564 if (preg_match('/^asset_(?<id>\d+)$/', $podcast->feed_transcripts, $matches) === 1) { 538 565 $asset_id = $matches['id']; 539 566 $asset = Model\EpisodeAsset::find_by_id($asset_id); -
podlove-podcasting-plugin-for-wordpress/trunk/podlove.php
r3122481 r3126894 4 4 * Plugin URI: https://podlove.org/podlove-podcast-publisher/ 5 5 * Description: The one and only next generation podcast publishing system. Seriously. It's magical and sparkles a lot. 6 * Version: 4.1.1 26 * Version: 4.1.13 7 7 * Requires at least: 4.9.6 8 8 * Requires PHP: 8.0 -
podlove-podcasting-plugin-for-wordpress/trunk/readme.txt
r3122481 r3126894 3 3 Donate link: https://opencollective.com/podlove 4 4 Tags: podlove, podcast, publishing, rss, audio 5 Tested up to: 6. 5.46 Stable tag: 4.1.1 25 Tested up to: 6.6.1 6 Stable tag: 4.1.13 7 7 Requires at least: 4.9.6 8 8 Requires PHP: 8.0 … … 115 115 116 116 == Changelog == 117 118 = 4.1.13 = 119 120 * add transcripts to import/export 121 * add confirmation button on modal to input episode image url 122 * fix: selecting an episode image updates the preview 117 123 118 124 = 4.1.12 = -
podlove-podcasting-plugin-for-wordpress/trunk/vendor/composer/autoload_classmap.php
r3026472 r3126894 681 681 'Podlove\\Modules\\TitleMigration\\State' => $baseDir . '/lib/modules/title_migration/state.php', 682 682 'Podlove\\Modules\\TitleMigration\\Title_Migration' => $baseDir . '/lib/modules/title_migration/title_migration.php', 683 'Podlove\\Modules\\Transcripts\\Jobs\\ImportTranscriptsJob' => $baseDir . '/lib/modules/transcripts/jobs/import_transcripts_job.php', 684 'Podlove\\Modules\\Transcripts\\Jobs\\ImportVoiceAssignmentsJob' => $baseDir . '/lib/modules/transcripts/jobs/import_voice_assignments_job.php', 683 685 'Podlove\\Modules\\Transcripts\\Model\\Transcript' => $baseDir . '/lib/modules/transcripts/model/transcript.php', 684 686 'Podlove\\Modules\\Transcripts\\Model\\VoiceAssignment' => $baseDir . '/lib/modules/transcripts/model/voice_assignment.php', -
podlove-podcasting-plugin-for-wordpress/trunk/vendor/composer/autoload_static.php
r3026472 r3126894 797 797 'Podlove\\Modules\\TitleMigration\\State' => __DIR__ . '/../..' . '/lib/modules/title_migration/state.php', 798 798 'Podlove\\Modules\\TitleMigration\\Title_Migration' => __DIR__ . '/../..' . '/lib/modules/title_migration/title_migration.php', 799 'Podlove\\Modules\\Transcripts\\Jobs\\ImportTranscriptsJob' => __DIR__ . '/../..' . '/lib/modules/transcripts/jobs/import_transcripts_job.php', 800 'Podlove\\Modules\\Transcripts\\Jobs\\ImportVoiceAssignmentsJob' => __DIR__ . '/../..' . '/lib/modules/transcripts/jobs/import_voice_assignments_job.php', 799 801 'Podlove\\Modules\\Transcripts\\Model\\Transcript' => __DIR__ . '/../..' . '/lib/modules/transcripts/model/transcript.php', 800 802 'Podlove\\Modules\\Transcripts\\Model\\VoiceAssignment' => __DIR__ . '/../..' . '/lib/modules/transcripts/model/voice_assignment.php', -
podlove-podcasting-plugin-for-wordpress/trunk/vendor/composer/installed.php
r3122481 r3126894 2 2 'root' => array( 3 3 'name' => 'podlove/podcast-publisher', 4 'pretty_version' => '4.1.1 2',5 'version' => '4.1.1 2.0',6 'reference' => ' 6a012067d8d94c859345ed764a47394b3a6ab13e',4 'pretty_version' => '4.1.13', 5 'version' => '4.1.13.0', 6 'reference' => '511f55536a568ba13efa9dc4051bf416b84a45c7', 7 7 'type' => 'library', 8 8 'install_path' => __DIR__ . '/../../', … … 135 135 ), 136 136 'podlove/podcast-publisher' => array( 137 'pretty_version' => '4.1.1 2',138 'version' => '4.1.1 2.0',139 'reference' => ' 6a012067d8d94c859345ed764a47394b3a6ab13e',137 'pretty_version' => '4.1.13', 138 'version' => '4.1.13.0', 139 'reference' => '511f55536a568ba13efa9dc4051bf416b84a45c7', 140 140 'type' => 'library', 141 141 'install_path' => __DIR__ . '/../../',
Note: See TracChangeset
for help on using the changeset viewer.